Skip to content

Commit 6cdb92f

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.40.0
1 parent 45dea25 commit 6cdb92f

12 files changed

Lines changed: 74 additions & 14 deletions

‎.fern/metadata.json‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"enableWireTests": true,
77
"omitUnsetModelFields": true
88
},
9-
"originGitCommit": "f1e181827110c8ff2dad958ade935292d8025065",
9+
"originGitCommit": "fe05a7bfa9fa36b9c9ca155f665081693d1a7508",
1010
"originGitCommitIsDirty": false,
1111
"invokedBy": "ci",
12-
"requestedVersion": "48.0.0.20260916",
13-
"ciProvider": "github",
14-
"sdkVersion": "48.0.0.20260916"
12+
"requestedVersion": "48.1.0.20261118",
13+
"ciProvider": "buildkite",
14+
"sdkVersion": "48.1.0.20261118"
1515
}

‎lib/square.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ module Types
550550
autoload :InventoryAlertType, ::File.join(__dir__, "square/types/inventory_alert_type")
551551
autoload :ItemVariationLocationOverrides, ::File.join(__dir__, "square/types/item_variation_location_overrides")
552552
autoload :CatalogItemVariation, ::File.join(__dir__, "square/types/catalog_item_variation")
553+
autoload :CatalogModifierColor, ::File.join(__dir__, "square/types/catalog_modifier_color")
553554
autoload :ModifierLocationOverrides, ::File.join(__dir__, "square/types/modifier_location_overrides")
554555
autoload :CatalogModifier, ::File.join(__dir__, "square/types/catalog_modifier")
555556
autoload :CatalogModifierListModifierType, ::File.join(__dir__, "square/types/catalog_modifier_list_modifier_type")
@@ -940,6 +941,7 @@ module Types
940941
autoload :CheckoutMerchantSettingsPaymentMethodsPaymentMethod, ::File.join(__dir__, "square/types/checkout_merchant_settings_payment_methods_payment_method")
941942
autoload :CheckoutMerchantSettingsPaymentMethods, ::File.join(__dir__, "square/types/checkout_merchant_settings_payment_methods")
942943
autoload :CheckoutMerchantSettings, ::File.join(__dir__, "square/types/checkout_merchant_settings")
944+
autoload :CheckoutOptionsPhoneCollection, ::File.join(__dir__, "square/types/checkout_options_phone_collection")
943945
autoload :CustomField, ::File.join(__dir__, "square/types/custom_field")
944946
autoload :ShippingFee, ::File.join(__dir__, "square/types/shipping_fee")
945947
autoload :CheckoutOptions, ::File.join(__dir__, "square/types/checkout_options")

‎lib/square/client.rb‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ def initialize(base_url: nil, token: ENV.fetch("SQUARE_TOKEN", nil), max_retries
1212
@raw_client = Square::Internal::Http::RawClient.new(
1313
base_url: base_url || Square::Environment::PRODUCTION,
1414
headers: {
15-
"User-Agent" => "square.rb/48.0.0.20260916",
15+
"User-Agent" => "square.rb/48.1.0.20261118",
1616
"X-Fern-Language" => "Ruby",
1717
Authorization: "Bearer #{token}",
18-
"Square-Version" => "2026-09-16"
18+
"Square-Version" => "2026-11-18"
1919
},
2020
max_retries: max_retries,
2121
timeout: timeout

‎lib/square/types/accepted_payment_methods.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ class AcceptedPaymentMethods < Internal::Types::Model
1212
field :cash_app_pay, -> { Internal::Types::Boolean }, optional: true, nullable: true
1313

1414
field :afterpay_clearpay, -> { Internal::Types::Boolean }, optional: true, nullable: true
15+
16+
field :bank_account, -> { Internal::Types::Boolean }, optional: true, nullable: true
1517
end
1618
end
1719
end

‎lib/square/types/catalog_modifier.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class CatalogModifier < Internal::Types::Model
2626
field :hidden_online, -> { Internal::Types::Boolean }, optional: true, nullable: true
2727

2828
field :child_modifier_list_ids, -> { Internal::Types::Array[String] }, optional: true, nullable: true
29+
30+
field :kitchen_color, -> { Square::Types::CatalogModifierColor }, optional: true, nullable: false
2931
end
3032
end
3133
end
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "../../square"
4+
5+
module Square
6+
module Types
7+
module CatalogModifierColor
8+
extend Square::Internal::Types::Enum
9+
10+
BURGUNDY = "BURGUNDY"
11+
TAUPE = "TAUPE"
12+
BROWN = "BROWN"
13+
FOREST = "FOREST"
14+
TEAL = "TEAL"
15+
SKY = "SKY"
16+
ORANGE = "ORANGE"
17+
YELLOW = "YELLOW"
18+
GREEN = "GREEN"
19+
BLUE = "BLUE"
20+
PURPLE = "PURPLE"
21+
PINK = "PINK"
22+
GOLD = "GOLD"
23+
BURGUNDY_DARK = "BURGUNDY_DARK"
24+
RED_DARK = "RED_DARK"
25+
BROWN_DARK = "BROWN_DARK"
26+
FOREST_DARK = "FOREST_DARK"
27+
BLUE_BRIGHT = "BLUE_BRIGHT"
28+
PURPLE_DARK = "PURPLE_DARK"
29+
PINK_BRIGHT = "PINK_BRIGHT"
30+
ORANGE_DARK = "ORANGE_DARK"
31+
SKY_DARK = "SKY_DARK"
32+
PURPLE_MID = "PURPLE_MID"
33+
end
34+
end
35+
end

‎lib/square/types/checkout_merchant_settings_payment_methods.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class CheckoutMerchantSettingsPaymentMethods < Internal::Types::Model
1111

1212
field :cash_app, -> { Square::Types::CheckoutMerchantSettingsPaymentMethodsPaymentMethod }, optional: true, nullable: false
1313

14+
field :bank_account, -> { Square::Types::CheckoutMerchantSettingsPaymentMethodsPaymentMethod }, optional: true, nullable: false
15+
1416
field :afterpay_clearpay, -> { Square::Types::CheckoutMerchantSettingsPaymentMethodsAfterpayClearpay }, optional: true, nullable: false
1517
end
1618
end

‎lib/square/types/checkout_options.rb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class CheckoutOptions < Internal::Types::Model
2626
field :enable_coupon, -> { Internal::Types::Boolean }, optional: true, nullable: true
2727

2828
field :enable_loyalty, -> { Internal::Types::Boolean }, optional: true, nullable: true
29+
30+
field :phone_collection, -> { Square::Types::CheckoutOptionsPhoneCollection }, optional: true, nullable: false
2931
end
3032
end
3133
end
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# frozen_string_literal: true
2+
3+
require_relative "../../square"
4+
5+
module Square
6+
module Types
7+
module CheckoutOptionsPhoneCollection
8+
extend Square::Internal::Types::Enum
9+
10+
REQUIRED = "REQUIRED"
11+
OPTIONAL = "OPTIONAL"
12+
HIDDEN = "HIDDEN"
13+
end
14+
end
15+
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 = "48.0.0.20260916"
4+
VERSION = "48.1.0.20261118"
55
end

0 commit comments

Comments
 (0)