Skip to content

Commit 564c187

Browse files
SDK regeneration (#201)
Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>
1 parent 7834f9c commit 564c187

10 files changed

+21
-4
lines changed

lib/square.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,7 @@
701701
require_relative "square/types/destination_details_cash_refund_details"
702702
require_relative "square/types/destination_details_external_refund_details"
703703
require_relative "square/types/destination_details"
704+
require_relative "square/types/device_attributes_device_type"
704705
require_relative "square/types/device_attributes"
705706
require_relative "square/types/device_status_category"
706707
require_relative "square/types/device_status"
@@ -1671,4 +1672,3 @@
16711672
require_relative "square/webhooks/subscriptions/types/update_webhook_subscription_signature_key_request"
16721673
require_relative "square/webhooks/subscriptions/types/test_webhook_subscription_request"
16731674
require_relative "square/environment"
1674-
require_relative "square/file_param"

lib/square/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def initialize(base_url:, token: ENV.fetch("SQUARE_TOKEN", nil))
77
@raw_client = Square::Internal::Http::RawClient.new(
88
base_url: base_url,
99
headers: {
10-
"User-Agent": "square.rb/44.0.1.20250820",
10+
"User-Agent": "square.rb/44.1.0.20250924",
1111
"X-Fern-Language": "Ruby",
1212
Authorization: "Bearer #{token}"
1313
}

lib/square/types/device_attributes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Square
44
module Types
55
class DeviceAttributes < Internal::Types::Model
6-
field :type, -> { String }, optional: false, nullable: false
6+
field :type, -> { Square::Types::DeviceAttributesDeviceType }, optional: false, nullable: false
77
field :manufacturer, -> { String }, optional: false, nullable: false
88
field :model, -> { String }, optional: true, nullable: false
99
field :name, -> { String }, optional: true, nullable: false
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
module Square
4+
module Types
5+
module DeviceAttributesDeviceType
6+
extend Square::Internal::Types::Enum
7+
8+
TERMINAL = "TERMINAL"
9+
HANDHELD = "HANDHELD"
10+
end
11+
end
12+
end

lib/square/types/device_component_details_ethernet_details.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Types
55
class DeviceComponentDetailsEthernetDetails < Internal::Types::Model
66
field :active, -> { Internal::Types::Boolean }, optional: true, nullable: false
77
field :ip_address_v_4, -> { String }, optional: true, nullable: false
8+
field :mac_address, -> { String }, optional: true, nullable: false
89
end
910
end
1011
end

lib/square/types/device_component_details_wi_fi_details.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class DeviceComponentDetailsWiFiDetails < Internal::Types::Model
88
field :ip_address_v_4, -> { String }, optional: true, nullable: false
99
field :secure_connection, -> { String }, optional: true, nullable: false
1010
field :signal_strength, -> { Square::Types::DeviceComponentDetailsMeasurement }, optional: true, nullable: false
11+
field :mac_address, -> { String }, optional: true, nullable: false
1112
end
1213
end
1314
end

lib/square/types/subscription.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ class Subscription < Internal::Types::Model
2626
field :actions, -> { Internal::Types::Array[Square::Types::SubscriptionAction] }, optional: true, nullable: false
2727
field :monthly_billing_anchor_date, -> { Integer }, optional: true, nullable: false
2828
field :phases, -> { Internal::Types::Array[Square::Types::Phase] }, optional: true, nullable: false
29+
field :completed_date, -> { String }, optional: true, nullable: false
2930
end
3031
end
3132
end

lib/square/types/subscription_action_type.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module SubscriptionActionType
1010
RESUME = "RESUME"
1111
SWAP_PLAN = "SWAP_PLAN"
1212
CHANGE_BILLING_ANCHOR_DATE = "CHANGE_BILLING_ANCHOR_DATE"
13+
COMPLETE = "COMPLETE"
1314
end
1415
end
1516
end

lib/square/types/subscription_status.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module SubscriptionStatus
1010
CANCELED = "CANCELED"
1111
DEACTIVATED = "DEACTIVATED"
1212
PAUSED = "PAUSED"
13+
COMPLETED = "COMPLETED"
1314
end
1415
end
1516
end

lib/square/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module Square
4-
VERSION = "44.0.1.20250820"
4+
VERSION = "44.1.0.20250924"
55
end

0 commit comments

Comments
 (0)