Skip to content

Commit 0bfa146

Browse files
committed
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84
1 parent f631923 commit 0bfa146

23 files changed

Lines changed: 134 additions & 83 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: 14 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,141 +1,79 @@
11
PATH
22
remote: .
33
specs:
4-
square.rb (45.0.2.20260122)
5-
apimatic_core (~> 0.3.11)
6-
apimatic_core_interfaces (~> 0.2.1)
7-
apimatic_faraday_client_adapter (~> 0.1.4)
4+
square.rb (45.1.0.20260520)
85

96
GEM
107
remote: https://rubygems.org/
118
specs:
12-
addressable (2.8.8)
9+
addressable (2.9.0)
1310
public_suffix (>= 2.0.2, < 8.0)
14-
apimatic_core (0.3.21)
15-
apimatic_core_interfaces (~> 0.2.0)
16-
certifi (~> 2018.1, >= 2018.01.18)
17-
faraday-multipart (~> 1.0)
18-
nokogiri (~> 1.13, >= 1.13.10)
19-
apimatic_core_interfaces (0.2.3)
20-
apimatic_faraday_client_adapter (0.1.6)
21-
apimatic_core_interfaces (~> 0.2.0)
22-
certifi (~> 2018.1, >= 2018.01.18)
23-
faraday (~> 2.0, >= 2.0.1)
24-
faraday-follow_redirects (~> 0.2)
25-
faraday-gzip (>= 1, < 4)
26-
faraday-http-cache (~> 2.2)
27-
faraday-multipart (~> 1.0)
28-
faraday-net_http_persistent (~> 2.0)
29-
faraday-retry (~> 2.0)
3011
ast (2.4.3)
31-
base64 (0.3.0)
32-
bigdecimal (4.0.1)
33-
certifi (2018.01.18)
12+
bigdecimal (4.1.2)
3413
coderay (1.1.3)
35-
connection_pool (3.0.2)
3614
crack (1.0.1)
3715
bigdecimal
3816
rexml
39-
faraday (2.14.0)
40-
faraday-net_http (>= 2.0, < 3.5)
41-
json
42-
logger
43-
faraday-follow_redirects (0.5.0)
44-
faraday (>= 1, < 3)
45-
faraday-gzip (3.1.0)
46-
faraday (>= 2.0, < 3)
47-
zlib (~> 3.0)
48-
faraday-http-cache (2.6.1)
49-
faraday (>= 0.8)
50-
faraday-multipart (1.2.0)
51-
multipart-post (~> 2.0)
52-
faraday-net_http (3.4.2)
53-
net-http (~> 0.5)
54-
faraday-net_http_persistent (2.3.1)
55-
faraday (~> 2.5)
56-
net-http-persistent (>= 4.0.4, < 5)
57-
faraday-retry (2.4.0)
58-
faraday (~> 2.0)
5917
hashdiff (1.2.1)
6018
io-console (0.8.2)
61-
json (2.18.0)
19+
json (2.19.5)
6220
language_server-protocol (3.17.0.5)
6321
lint_roller (1.1.0)
64-
logger (1.7.0)
6522
method_source (1.1.0)
66-
mini_portile2 (2.8.9)
6723
minitest (5.27.0)
68-
minitest-proveit (1.0.1)
69-
minitest (> 5, < 7)
7024
minitest-rg (5.4.0)
7125
minitest (>= 5.0, < 7)
72-
multipart-post (2.4.1)
73-
mutex_m (0.3.0)
74-
net-http (0.9.1)
75-
uri (>= 0.11.1)
76-
net-http-persistent (4.0.8)
77-
connection_pool (>= 2.2.4, < 4)
78-
nokogiri (1.19.0)
79-
mini_portile2 (~> 2.8.2)
80-
racc (~> 1.4)
81-
nokogiri (1.19.0-x86_64-linux-musl)
82-
racc (~> 1.4)
83-
parallel (1.27.0)
84-
parser (3.3.10.1)
26+
parallel (2.1.0)
27+
parser (3.3.11.1)
8528
ast (~> 2.4.1)
8629
racc
8730
prism (1.9.0)
8831
pry (0.16.0)
8932
coderay (~> 1.1)
9033
method_source (~> 1.0)
9134
reline (>= 0.6.0)
92-
public_suffix (7.0.2)
35+
public_suffix (7.0.5)
9336
racc (1.8.1)
9437
rainbow (3.1.1)
95-
rake (13.3.1)
96-
regexp_parser (2.11.3)
38+
rake (13.4.2)
39+
regexp_parser (2.12.0)
9740
reline (0.6.3)
9841
io-console (~> 0.5)
9942
rexml (3.4.4)
100-
rubocop (1.84.0)
43+
rubocop (1.86.2)
10144
json (~> 2.3)
10245
language_server-protocol (~> 3.17.0.2)
10346
lint_roller (~> 1.1.0)
104-
parallel (~> 1.10)
47+
parallel (>= 1.10)
10548
parser (>= 3.3.0.2)
10649
rainbow (>= 2.2.2, < 4.0)
10750
regexp_parser (>= 2.9.3, < 3.0)
10851
rubocop-ast (>= 1.49.0, < 2.0)
10952
ruby-progressbar (~> 1.7)
11053
unicode-display_width (>= 2.4.0, < 4.0)
111-
rubocop-ast (1.49.0)
54+
rubocop-ast (1.49.1)
11255
parser (>= 3.3.7.2)
11356
prism (~> 1.7)
114-
rubocop-minitest (0.38.2)
57+
rubocop-minitest (0.39.1)
11558
lint_roller (~> 1.1)
11659
rubocop (>= 1.75.0, < 2.0)
11760
rubocop-ast (>= 1.38.0, < 2.0)
11861
ruby-progressbar (1.13.0)
11962
unicode-display_width (3.2.0)
12063
unicode-emoji (~> 4.1)
12164
unicode-emoji (4.2.0)
122-
uri (1.1.1)
123-
webmock (3.26.1)
65+
webmock (3.26.2)
12466
addressable (>= 2.8.0)
12567
crack (>= 0.3.2)
12668
hashdiff (>= 0.4.0, < 2.0.0)
127-
zlib (3.2.2)
12869

12970
PLATFORMS
13071
ruby
13172
x86_64-linux-musl
13273

13374
DEPENDENCIES
134-
base64
13575
minitest (~> 5.16)
136-
minitest-proveit (~> 1.0)
13776
minitest-rg
138-
mutex_m
13977
pry
14078
rake (~> 13.0)
14179
rubocop (~> 1.21)

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)