Skip to content

Commit c93e057

Browse files
SDK regeneration (#222)
* [fern-generated] Update SDK Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84 * Manually relock Gemfile.lock --------- Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: fern-support <126544928+fern-support@users.noreply.github.com>
1 parent f631923 commit c93e057

23 files changed

Lines changed: 140 additions & 27 deletions

.fern/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"cliVersion": "3.49.3",
2+
"cliVersion": "3.98.5",
33
"generatorName": "fernapi/fern-ruby-sdk",
44
"generatorVersion": "1.0.0-rc84",
55
"generatorConfig": {
66
"enableWireTests": true
77
},
8-
"sdkVersion": "45.0.2.20260122"
8+
"sdkVersion": "45.1.0.20260520"
99
}

.fern/replay.lock

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.fernignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@ lib/square/transfer_orders/client.rb
1818
# Iterator does not handle nil item fields (when API returns nil instead of empty array for no items)
1919
# Manually added nil checks to avoid calling .shift/.empty? on nil
2020
lib/square/internal/iterators/item_iterator.rb
21+
.fern/replay.lock
22+
.fern/replay.yml
23+
.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.fern/replay.lock linguist-generated=true

Gemfile.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
PATH
22
remote: .
33
specs:
4-
square.rb (45.0.2.20260122)
4+
square.rb (45.1.0.20260520)
55
apimatic_core (~> 0.3.11)
66
apimatic_core_interfaces (~> 0.2.1)
77
apimatic_faraday_client_adapter (~> 0.1.4)
88

99
GEM
1010
remote: https://rubygems.org/
1111
specs:
12-
addressable (2.8.8)
12+
addressable (2.9.0)
1313
public_suffix (>= 2.0.2, < 8.0)
1414
apimatic_core (0.3.21)
1515
apimatic_core_interfaces (~> 0.2.0)
@@ -29,14 +29,14 @@ GEM
2929
faraday-retry (~> 2.0)
3030
ast (2.4.3)
3131
base64 (0.3.0)
32-
bigdecimal (4.0.1)
32+
bigdecimal (4.1.2)
3333
certifi (2018.01.18)
3434
coderay (1.1.3)
3535
connection_pool (3.0.2)
3636
crack (1.0.1)
3737
bigdecimal
3838
rexml
39-
faraday (2.14.0)
39+
faraday (2.14.2)
4040
faraday-net_http (>= 2.0, < 3.5)
4141
json
4242
logger
@@ -45,11 +45,11 @@ GEM
4545
faraday-gzip (3.1.0)
4646
faraday (>= 2.0, < 3)
4747
zlib (~> 3.0)
48-
faraday-http-cache (2.6.1)
48+
faraday-http-cache (2.7.0)
4949
faraday (>= 0.8)
5050
faraday-multipart (1.2.0)
5151
multipart-post (~> 2.0)
52-
faraday-net_http (3.4.2)
52+
faraday-net_http (3.4.3)
5353
net-http (~> 0.5)
5454
faraday-net_http_persistent (2.3.1)
5555
faraday (~> 2.5)
@@ -58,7 +58,7 @@ GEM
5858
faraday (~> 2.0)
5959
hashdiff (1.2.1)
6060
io-console (0.8.2)
61-
json (2.18.0)
61+
json (2.19.5)
6262
language_server-protocol (3.17.0.5)
6363
lint_roller (1.1.0)
6464
logger (1.7.0)
@@ -75,43 +75,43 @@ GEM
7575
uri (>= 0.11.1)
7676
net-http-persistent (4.0.8)
7777
connection_pool (>= 2.2.4, < 4)
78-
nokogiri (1.19.0)
78+
nokogiri (1.19.3)
7979
mini_portile2 (~> 2.8.2)
8080
racc (~> 1.4)
81-
nokogiri (1.19.0-x86_64-linux-musl)
81+
nokogiri (1.19.3-x86_64-linux-musl)
8282
racc (~> 1.4)
83-
parallel (1.27.0)
84-
parser (3.3.10.1)
83+
parallel (2.1.0)
84+
parser (3.3.11.1)
8585
ast (~> 2.4.1)
8686
racc
8787
prism (1.9.0)
8888
pry (0.16.0)
8989
coderay (~> 1.1)
9090
method_source (~> 1.0)
9191
reline (>= 0.6.0)
92-
public_suffix (7.0.2)
92+
public_suffix (7.0.5)
9393
racc (1.8.1)
9494
rainbow (3.1.1)
95-
rake (13.3.1)
96-
regexp_parser (2.11.3)
95+
rake (13.4.2)
96+
regexp_parser (2.12.0)
9797
reline (0.6.3)
9898
io-console (~> 0.5)
9999
rexml (3.4.4)
100-
rubocop (1.84.0)
100+
rubocop (1.86.2)
101101
json (~> 2.3)
102102
language_server-protocol (~> 3.17.0.2)
103103
lint_roller (~> 1.1.0)
104-
parallel (~> 1.10)
104+
parallel (>= 1.10)
105105
parser (>= 3.3.0.2)
106106
rainbow (>= 2.2.2, < 4.0)
107107
regexp_parser (>= 2.9.3, < 3.0)
108108
rubocop-ast (>= 1.49.0, < 2.0)
109109
ruby-progressbar (~> 1.7)
110110
unicode-display_width (>= 2.4.0, < 4.0)
111-
rubocop-ast (1.49.0)
111+
rubocop-ast (1.49.1)
112112
parser (>= 3.3.7.2)
113113
prism (~> 1.7)
114-
rubocop-minitest (0.38.2)
114+
rubocop-minitest (0.39.1)
115115
lint_roller (~> 1.1)
116116
rubocop (>= 1.75.0, < 2.0)
117117
rubocop-ast (>= 1.38.0, < 2.0)
@@ -120,11 +120,11 @@ GEM
120120
unicode-emoji (~> 4.1)
121121
unicode-emoji (4.2.0)
122122
uri (1.1.1)
123-
webmock (3.26.1)
123+
webmock (3.26.2)
124124
addressable (>= 2.8.0)
125125
crack (>= 0.3.2)
126126
hashdiff (>= 0.4.0, < 2.0.0)
127-
zlib (3.2.2)
127+
zlib (3.2.3)
128128

129129
PLATFORMS
130130
ruby

lib/square.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,11 +422,16 @@
422422
require_relative "square/types/cancel_loyalty_promotion_response"
423423
require_relative "square/types/cancel_payment_by_idempotency_key_response"
424424
require_relative "square/types/card_payment_timeline"
425+
require_relative "square/types/card_surcharge_details"
425426
require_relative "square/types/device_details"
426427
require_relative "square/types/card_payment_details"
427428
require_relative "square/types/cash_app_details"
428429
require_relative "square/types/cash_payment_details"
430+
require_relative "square/types/lightning_details"
429431
require_relative "square/types/digital_wallet_details"
432+
require_relative "square/types/felica_details_felica_brand"
433+
require_relative "square/types/felica_details"
434+
require_relative "square/types/electronic_money_details"
430435
require_relative "square/types/external_payment_details"
431436
require_relative "square/types/offline_payment_details"
432437
require_relative "square/types/processing_fee"

lib/square/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def initialize(base_url: nil, token: ENV.fetch("SQUARE_TOKEN", nil))
1010
@raw_client = Square::Internal::Http::RawClient.new(
1111
base_url: base_url || Square::Environment::PRODUCTION,
1212
headers: {
13-
"User-Agent" => "square.rb/45.0.2.20260122",
13+
"User-Agent" => "square.rb/45.1.0.20260520",
1414
"X-Fern-Language" => "Ruby",
1515
Authorization: "Bearer #{token}"
1616
}

lib/square/payments/types/create_payment_request.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class CreatePaymentRequest < Internal::Types::Model
99
field :amount_money, -> { Square::Types::Money }, optional: true, nullable: false
1010
field :tip_money, -> { Square::Types::Money }, optional: true, nullable: false
1111
field :app_fee_money, -> { Square::Types::Money }, optional: true, nullable: false
12+
field :app_fee_allocations, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
1213
field :delay_duration, -> { String }, optional: true, nullable: false
1314
field :delay_action, -> { String }, optional: true, nullable: false
1415
field :autocomplete, -> { Internal::Types::Boolean }, optional: true, nullable: false

lib/square/refunds/types/refund_payment_request.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class RefundPaymentRequest < Internal::Types::Model
77
field :idempotency_key, -> { String }, optional: false, nullable: false
88
field :amount_money, -> { Square::Types::Money }, optional: false, nullable: false
99
field :app_fee_money, -> { Square::Types::Money }, optional: true, nullable: false
10+
field :app_fee_allocations, -> { Internal::Types::Array[Object] }, optional: true, nullable: false
1011
field :payment_id, -> { String }, optional: true, nullable: false
1112
field :destination_id, -> { String }, optional: true, nullable: false
1213
field :unlinked, -> { Internal::Types::Boolean }, optional: true, nullable: false

lib/square/types/card_payment_details.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class CardPaymentDetails < Internal::Types::Model
2020
field :card_payment_timeline, -> { Square::Types::CardPaymentTimeline }, optional: true, nullable: false
2121
field :refund_requires_card_presence, -> { Internal::Types::Boolean }, optional: true, nullable: false
2222
field :errors, -> { Internal::Types::Array[Square::Types::Error] }, optional: true, nullable: false
23+
field :applied_card_surcharge_details, -> { Square::Types::CardSurchargeDetails }, optional: true, nullable: false
24+
field :wallet_type, -> { String }, optional: true, nullable: false
2325
end
2426
end
2527
end

0 commit comments

Comments
 (0)