Skip to content

Commit e21f9e5

Browse files
🌿 Fern Regeneration -- January 28, 2026 (#217)
* SDK regeneration * Fix tests for new spec * skip auth test --------- Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com> Co-authored-by: fern-support <126544928+fern-support@users.noreply.github.com>
1 parent 6e714ab commit e21f9e5

176 files changed

Lines changed: 3499 additions & 5672 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.fern/metadata.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"cliVersion": "3.38.0",
2+
"cliVersion": "3.49.3",
33
"generatorName": "fernapi/fern-ruby-sdk",
4-
"generatorVersion": "1.0.0-rc66",
4+
"generatorVersion": "1.0.0-rc84",
55
"generatorConfig": {
66
"enableWireTests": true
7-
}
7+
},
8+
"sdkVersion": "45.0.1.20260122"
89
}

Gemfile.lock

Lines changed: 67 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,90 @@
11
PATH
22
remote: .
33
specs:
4-
square (45.0.0.20260122)
4+
square.rb (45.0.1.20260122)
5+
apimatic_core (~> 0.3.11)
6+
apimatic_core_interfaces (~> 0.2.1)
7+
apimatic_faraday_client_adapter (~> 0.1.4)
58

69
GEM
710
remote: https://rubygems.org/
811
specs:
912
addressable (2.8.8)
1013
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)
1130
ast (2.4.3)
31+
base64 (0.3.0)
1232
bigdecimal (4.0.1)
33+
certifi (2018.01.18)
1334
coderay (1.1.3)
35+
connection_pool (3.0.2)
1436
crack (1.0.1)
1537
bigdecimal
1638
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)
1759
hashdiff (1.2.1)
1860
io-console (0.8.2)
1961
json (2.18.0)
2062
language_server-protocol (3.17.0.5)
2163
lint_roller (1.1.0)
64+
logger (1.7.0)
2265
method_source (1.1.0)
66+
mini_portile2 (2.8.9)
2367
minitest (5.27.0)
68+
minitest-proveit (1.0.1)
69+
minitest (> 5, < 7)
2470
minitest-rg (5.4.0)
2571
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)
2683
parallel (1.27.0)
2784
parser (3.3.10.1)
2885
ast (~> 2.4.1)
2986
racc
30-
prism (1.8.0)
87+
prism (1.9.0)
3188
pry (0.16.0)
3289
coderay (~> 1.1)
3390
method_source (~> 1.0)
@@ -40,15 +97,15 @@ GEM
4097
reline (0.6.3)
4198
io-console (~> 0.5)
4299
rexml (3.4.4)
43-
rubocop (1.82.1)
100+
rubocop (1.84.0)
44101
json (~> 2.3)
45102
language_server-protocol (~> 3.17.0.2)
46103
lint_roller (~> 1.1.0)
47104
parallel (~> 1.10)
48105
parser (>= 3.3.0.2)
49106
rainbow (>= 2.2.2, < 4.0)
50107
regexp_parser (>= 2.9.3, < 3.0)
51-
rubocop-ast (>= 1.48.0, < 2.0)
108+
rubocop-ast (>= 1.49.0, < 2.0)
52109
ruby-progressbar (~> 1.7)
53110
unicode-display_width (>= 2.4.0, < 4.0)
54111
rubocop-ast (1.49.0)
@@ -62,23 +119,28 @@ GEM
62119
unicode-display_width (3.2.0)
63120
unicode-emoji (~> 4.1)
64121
unicode-emoji (4.2.0)
122+
uri (1.1.1)
65123
webmock (3.26.1)
66124
addressable (>= 2.8.0)
67125
crack (>= 0.3.2)
68126
hashdiff (>= 0.4.0, < 2.0.0)
127+
zlib (3.2.2)
69128

70129
PLATFORMS
71130
ruby
72131
x86_64-linux-musl
73132

74133
DEPENDENCIES
134+
base64
75135
minitest (~> 5.16)
136+
minitest-proveit (~> 1.0)
76137
minitest-rg
138+
mutex_m
77139
pry
78140
rake (~> 13.0)
79141
rubocop (~> 1.21)
80142
rubocop-minitest
81-
square!
143+
square.rb!
82144
webmock
83145

84146
BUNDLED WITH

lib/square/apple_pay/client.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,12 @@ def initialize(client:)
3737
#
3838
# @return [Square::Types::RegisterDomainResponse]
3939
def register_domain(request_options: {}, **params)
40-
body_prop_names = %i[domain_name]
41-
body_bag = params.slice(*body_prop_names)
42-
40+
params = Square::Internal::Types::Utils.normalize_keys(params)
4341
request = Square::Internal::JSON::Request.new(
4442
base_url: request_options[:base_url],
4543
method: "POST",
4644
path: "v2/apple-pay/domains",
47-
body: Square::ApplePay::Types::RegisterDomainRequest.new(body_bag).to_h,
45+
body: Square::ApplePay::Types::RegisterDomainRequest.new(params).to_h,
4846
request_options: request_options
4947
)
5048
begin

lib/square/bank_accounts/client.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(client:)
2626
#
2727
# @return [Square::Types::ListBankAccountsResponse]
2828
def list(request_options: {}, **params)
29-
params = Square::Internal::Types::Utils.symbolize_keys(params)
29+
params = Square::Internal::Types::Utils.normalize_keys(params)
3030
query_param_names = %i[cursor limit location_id customer_id]
3131
query_params = {}
3232
query_params["cursor"] = params[:cursor] if params.key?(:cursor)
@@ -75,14 +75,12 @@ def list(request_options: {}, **params)
7575
#
7676
# @return [Square::Types::CreateBankAccountResponse]
7777
def create_bank_account(request_options: {}, **params)
78-
body_prop_names = %i[idempotency_key source_id customer_id]
79-
body_bag = params.slice(*body_prop_names)
80-
78+
params = Square::Internal::Types::Utils.normalize_keys(params)
8179
request = Square::Internal::JSON::Request.new(
8280
base_url: request_options[:base_url],
8381
method: "POST",
8482
path: "v2/bank-accounts",
85-
body: Square::BankAccounts::Types::CreateBankAccountRequest.new(body_bag).to_h,
83+
body: Square::BankAccounts::Types::CreateBankAccountRequest.new(params).to_h,
8684
request_options: request_options
8785
)
8886
begin
@@ -112,6 +110,7 @@ def create_bank_account(request_options: {}, **params)
112110
#
113111
# @return [Square::Types::GetBankAccountByV1IdResponse]
114112
def get_by_v_1_id(request_options: {}, **params)
113+
params = Square::Internal::Types::Utils.normalize_keys(params)
115114
request = Square::Internal::JSON::Request.new(
116115
base_url: request_options[:base_url],
117116
method: "GET",
@@ -145,6 +144,7 @@ def get_by_v_1_id(request_options: {}, **params)
145144
#
146145
# @return [Square::Types::GetBankAccountResponse]
147146
def get(request_options: {}, **params)
147+
params = Square::Internal::Types::Utils.normalize_keys(params)
148148
request = Square::Internal::JSON::Request.new(
149149
base_url: request_options[:base_url],
150150
method: "GET",
@@ -178,6 +178,7 @@ def get(request_options: {}, **params)
178178
#
179179
# @return [Square::Types::DisableBankAccountResponse]
180180
def disable_bank_account(request_options: {}, **params)
181+
params = Square::Internal::Types::Utils.normalize_keys(params)
181182
request = Square::Internal::JSON::Request.new(
182183
base_url: request_options[:base_url],
183184
method: "POST",

lib/square/bookings/client.rb

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def initialize(client:)
3333
#
3434
# @return [Square::Types::ListBookingsResponse]
3535
def list(request_options: {}, **params)
36-
params = Square::Internal::Types::Utils.symbolize_keys(params)
36+
params = Square::Internal::Types::Utils.normalize_keys(params)
3737
query_param_names = %i[limit cursor customer_id team_member_id location_id start_at_min start_at_max]
3838
query_params = {}
3939
query_params["limit"] = params[:limit] if params.key?(:limit)
@@ -100,14 +100,12 @@ def list(request_options: {}, **params)
100100
#
101101
# @return [Square::Types::CreateBookingResponse]
102102
def create(request_options: {}, **params)
103-
body_prop_names = %i[idempotency_key booking]
104-
body_bag = params.slice(*body_prop_names)
105-
103+
params = Square::Internal::Types::Utils.normalize_keys(params)
106104
request = Square::Internal::JSON::Request.new(
107105
base_url: request_options[:base_url],
108106
method: "POST",
109107
path: "v2/bookings",
110-
body: Square::Bookings::Types::CreateBookingRequest.new(body_bag).to_h,
108+
body: Square::Bookings::Types::CreateBookingRequest.new(params).to_h,
111109
request_options: request_options
112110
)
113111
begin
@@ -140,14 +138,12 @@ def create(request_options: {}, **params)
140138
#
141139
# @return [Square::Types::SearchAvailabilityResponse]
142140
def search_availability(request_options: {}, **params)
143-
body_prop_names = %i[query]
144-
body_bag = params.slice(*body_prop_names)
145-
141+
params = Square::Internal::Types::Utils.normalize_keys(params)
146142
request = Square::Internal::JSON::Request.new(
147143
base_url: request_options[:base_url],
148144
method: "POST",
149145
path: "v2/bookings/availability/search",
150-
body: Square::Bookings::Types::SearchAvailabilityRequest.new(body_bag).to_h,
146+
body: Square::Bookings::Types::SearchAvailabilityRequest.new(params).to_h,
151147
request_options: request_options
152148
)
153149
begin
@@ -180,14 +176,12 @@ def search_availability(request_options: {}, **params)
180176
#
181177
# @return [Square::Types::BulkRetrieveBookingsResponse]
182178
def bulk_retrieve_bookings(request_options: {}, **params)
183-
body_prop_names = %i[booking_ids]
184-
body_bag = params.slice(*body_prop_names)
185-
179+
params = Square::Internal::Types::Utils.normalize_keys(params)
186180
request = Square::Internal::JSON::Request.new(
187181
base_url: request_options[:base_url],
188182
method: "POST",
189183
path: "v2/bookings/bulk-retrieve",
190-
body: Square::Bookings::Types::BulkRetrieveBookingsRequest.new(body_bag).to_h,
184+
body: Square::Bookings::Types::BulkRetrieveBookingsRequest.new(params).to_h,
191185
request_options: request_options
192186
)
193187
begin
@@ -215,7 +209,8 @@ def bulk_retrieve_bookings(request_options: {}, **params)
215209
# @option request_options [Integer] :timeout_in_seconds
216210
#
217211
# @return [Square::Types::GetBusinessBookingProfileResponse]
218-
def get_business_profile(request_options: {}, **_params)
212+
def get_business_profile(request_options: {}, **params)
213+
Square::Internal::Types::Utils.normalize_keys(params)
219214
request = Square::Internal::JSON::Request.new(
220215
base_url: request_options[:base_url],
221216
method: "GET",
@@ -249,6 +244,7 @@ def get_business_profile(request_options: {}, **_params)
249244
#
250245
# @return [Square::Types::RetrieveLocationBookingProfileResponse]
251246
def retrieve_location_booking_profile(request_options: {}, **params)
247+
params = Square::Internal::Types::Utils.normalize_keys(params)
252248
request = Square::Internal::JSON::Request.new(
253249
base_url: request_options[:base_url],
254250
method: "GET",
@@ -281,14 +277,12 @@ def retrieve_location_booking_profile(request_options: {}, **params)
281277
#
282278
# @return [Square::Types::BulkRetrieveTeamMemberBookingProfilesResponse]
283279
def bulk_retrieve_team_member_booking_profiles(request_options: {}, **params)
284-
body_prop_names = %i[team_member_ids]
285-
body_bag = params.slice(*body_prop_names)
286-
280+
params = Square::Internal::Types::Utils.normalize_keys(params)
287281
request = Square::Internal::JSON::Request.new(
288282
base_url: request_options[:base_url],
289283
method: "POST",
290284
path: "v2/bookings/team-member-booking-profiles/bulk-retrieve",
291-
body: Square::Bookings::Types::BulkRetrieveTeamMemberBookingProfilesRequest.new(body_bag).to_h,
285+
body: Square::Bookings::Types::BulkRetrieveTeamMemberBookingProfilesRequest.new(params).to_h,
292286
request_options: request_options
293287
)
294288
begin
@@ -322,6 +316,7 @@ def bulk_retrieve_team_member_booking_profiles(request_options: {}, **params)
322316
#
323317
# @return [Square::Types::GetBookingResponse]
324318
def get(request_options: {}, **params)
319+
params = Square::Internal::Types::Utils.normalize_keys(params)
325320
request = Square::Internal::JSON::Request.new(
326321
base_url: request_options[:base_url],
327322
method: "GET",
@@ -363,16 +358,16 @@ def get(request_options: {}, **params)
363358
#
364359
# @return [Square::Types::UpdateBookingResponse]
365360
def update(request_options: {}, **params)
366-
path_param_names = %i[booking_id]
367-
body_params = params.except(*path_param_names)
368-
body_prop_names = %i[idempotency_key booking]
369-
body_bag = body_params.slice(*body_prop_names)
361+
params = Square::Internal::Types::Utils.normalize_keys(params)
362+
request_data = Square::Bookings::Types::UpdateBookingRequest.new(params).to_h
363+
non_body_param_names = ["booking_id"]
364+
body = request_data.except(*non_body_param_names)
370365

371366
request = Square::Internal::JSON::Request.new(
372367
base_url: request_options[:base_url],
373368
method: "PUT",
374369
path: "v2/bookings/#{params[:booking_id]}",
375-
body: Square::Bookings::Types::UpdateBookingRequest.new(body_bag).to_h,
370+
body: body,
376371
request_options: request_options
377372
)
378373
begin
@@ -410,16 +405,16 @@ def update(request_options: {}, **params)
410405
#
411406
# @return [Square::Types::CancelBookingResponse]
412407
def cancel(request_options: {}, **params)
413-
path_param_names = %i[booking_id]
414-
body_params = params.except(*path_param_names)
415-
body_prop_names = %i[idempotency_key booking_version]
416-
body_bag = body_params.slice(*body_prop_names)
408+
params = Square::Internal::Types::Utils.normalize_keys(params)
409+
request_data = Square::Bookings::Types::CancelBookingRequest.new(params).to_h
410+
non_body_param_names = ["booking_id"]
411+
body = request_data.except(*non_body_param_names)
417412

418413
request = Square::Internal::JSON::Request.new(
419414
base_url: request_options[:base_url],
420415
method: "POST",
421416
path: "v2/bookings/#{params[:booking_id]}/cancel",
422-
body: Square::Bookings::Types::CancelBookingRequest.new(body_bag).to_h,
417+
body: body,
423418
request_options: request_options
424419
)
425420
begin

0 commit comments

Comments
 (0)