Skip to content

Commit c428230

Browse files
[fern-generated] Update SDK
Generated by Fern CLI Version: unknown Generators: - fernapi/fern-ruby-sdk: 1.0.0-rc84
1 parent 652411f commit c428230

10 files changed

Lines changed: 30 additions & 112 deletions

File tree

‎.fern/metadata.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
"generatorConfig": {
66
"enableWireTests": true
77
},
8-
"originGitCommit": "b05364cda2b85e35d8daa9ff2c24bbabbbd9652a",
9-
"sdkVersion": "46.1.0.20260819"
8+
"originGitCommit": "37b3f34f979590cc8d882c9ab2fe92748bfb0556",
9+
"sdkVersion": "47.0.0.20260916"
1010
}

‎Gemfile.lock‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
PATH
22
remote: .
33
specs:
4-
square.rb (46.1.0.20260819)
4+
square.rb (47.0.0.20260916)
55

66
GEM
77
remote: https://rubygems.org/
88
specs:
99
addressable (2.9.0)
1010
public_suffix (>= 2.0.2, < 8.0)
1111
ast (2.4.3)
12-
bigdecimal (4.1.2)
12+
bigdecimal (4.1.3)
1313
coderay (1.1.3)
1414
crack (1.0.1)
1515
bigdecimal
1616
rexml
1717
hashdiff (1.2.1)
18-
io-console (0.9.2)
19-
json (2.21.2)
18+
io-console (0.9.3)
19+
json (3.0.2)
2020
language_server-protocol (3.17.0.6)
2121
lint_roller (1.1.0)
2222
method_source (1.1.0)
2323
minitest (5.27.0)
2424
minitest-rg (5.4.0)
2525
minitest (>= 5.0, < 7)
26-
parallel (2.1.0)
26+
parallel (2.2.0)
2727
parser (3.3.12.0)
2828
ast (~> 2.4.1)
2929
racc
@@ -40,8 +40,8 @@ GEM
4040
reline (0.7.0)
4141
io-console (~> 0.5)
4242
rexml (3.4.4)
43-
rubocop (1.89.0)
44-
json (~> 2.3)
43+
rubocop (1.91.0)
44+
json (>= 2.3)
4545
language_server-protocol (~> 3.17.0.2)
4646
lint_roller (~> 1.1.0)
4747
parallel (>= 1.10)
@@ -62,14 +62,14 @@ GEM
6262
unicode-display_width (3.2.0)
6363
unicode-emoji (~> 4.1)
6464
unicode-emoji (4.2.0)
65-
webmock (3.26.2)
65+
webmock (3.26.4)
6666
addressable (>= 2.8.0)
6767
crack (>= 0.3.2)
6868
hashdiff (>= 0.4.0, < 2.0.0)
6969

7070
PLATFORMS
7171
ruby
72-
x86_64-linux
72+
x86_64-linux-musl
7373

7474
DEPENDENCIES
7575
minitest (~> 5.16)

‎lib/square.rb‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,6 @@
483483
require_relative "square/types/transfer_order_status"
484484
require_relative "square/types/transfer_order"
485485
require_relative "square/types/cancel_transfer_order_response"
486-
require_relative "square/types/capture_transaction_response"
487486
require_relative "square/types/card_automatically_updated_event_object"
488487
require_relative "square/types/card_automatically_updated_event_data"
489488
require_relative "square/types/card_automatically_updated_event"
@@ -1378,7 +1377,6 @@
13781377
require_relative "square/types/vendor_updated_event_data"
13791378
require_relative "square/types/vendor_updated_event"
13801379
require_relative "square/types/visibility_filter"
1381-
require_relative "square/types/void_transaction_response"
13821380
require_relative "square/types/get_loyalty_account_request"
13831381
require_relative "square/types/get_loyalty_program_request"
13841382
require_relative "square/types/get_loyalty_promotion_request"

‎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/46.1.0.20260819",
13+
"User-Agent" => "square.rb/47.0.0.20260916",
1414
"X-Fern-Language" => "Ruby",
1515
Authorization: "Bearer #{token}"
1616
}

‎lib/square/locations/transactions/client.rb‎

Lines changed: 10 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,6 @@ def get(request_options: {}, **params)
9898
end
9999
end
100100

101-
# Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
102-
# endpoint with a `delay_capture` value of `true`.
103-
#
104-
#
105-
# See [Delayed capture
106-
# transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
107-
# for more information.
108-
#
109101
# @param request_options [Hash]
110102
# @param params [Hash]
111103
# @option request_options [String] :base_url
@@ -116,7 +108,7 @@ def get(request_options: {}, **params)
116108
# @option params [String] :location_id
117109
# @option params [String] :transaction_id
118110
#
119-
# @return [Square::Types::CaptureTransactionResponse]
111+
# @return [untyped]
120112
def capture(request_options: {}, **params)
121113
params = Square::Internal::Types::Utils.normalize_keys(params)
122114
request = Square::Internal::JSON::Request.new(
@@ -131,22 +123,12 @@ def capture(request_options: {}, **params)
131123
raise Square::Errors::TimeoutError
132124
end
133125
code = response.code.to_i
134-
if code.between?(200, 299)
135-
Square::Types::CaptureTransactionResponse.load(response.body)
136-
else
137-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
138-
raise error_class.new(response.body, code: code)
139-
end
126+
return if code.between?(200, 299)
127+
128+
error_class = Square::Errors::ResponseError.subclass_for_code(code)
129+
raise error_class.new(response.body, code: code)
140130
end
141131

142-
# Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
143-
# endpoint with a `delay_capture` value of `true`.
144-
#
145-
#
146-
# See [Delayed capture
147-
# transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
148-
# for more information.
149-
#
150132
# @param request_options [Hash]
151133
# @param params [Hash]
152134
# @option request_options [String] :base_url
@@ -157,7 +139,7 @@ def capture(request_options: {}, **params)
157139
# @option params [String] :location_id
158140
# @option params [String] :transaction_id
159141
#
160-
# @return [Square::Types::VoidTransactionResponse]
142+
# @return [untyped]
161143
def void(request_options: {}, **params)
162144
params = Square::Internal::Types::Utils.normalize_keys(params)
163145
request = Square::Internal::JSON::Request.new(
@@ -172,12 +154,10 @@ def void(request_options: {}, **params)
172154
raise Square::Errors::TimeoutError
173155
end
174156
code = response.code.to_i
175-
if code.between?(200, 299)
176-
Square::Types::VoidTransactionResponse.load(response.body)
177-
else
178-
error_class = Square::Errors::ResponseError.subclass_for_code(code)
179-
raise error_class.new(response.body, code: code)
180-
end
157+
return if code.between?(200, 299)
158+
159+
error_class = Square::Errors::ResponseError.subclass_for_code(code)
160+
raise error_class.new(response.body, code: code)
181161
end
182162
end
183163
end

‎lib/square/types/capture_transaction_response.rb‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎lib/square/types/void_transaction_response.rb‎

Lines changed: 0 additions & 11 deletions
This file was deleted.

‎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 = "46.1.0.20260819"
4+
VERSION = "47.0.0.20260916"
55
end

‎reference.md‎

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -24935,29 +24935,10 @@ client.locations.transactions.get(
2493524935
</dl>
2493624936
</details>
2493724937

24938-
<details><summary><code>client.locations.transactions.<a href="/lib/square/locations/transactions/client.rb">capture</a>(location_id, transaction_id) -> Square::Types::CaptureTransactionResponse</code></summary>
24938+
<details><summary><code>client.locations.transactions.<a href="/lib/square/locations/transactions/client.rb">capture</a>(location_id, transaction_id) -> </code></summary>
2493924939
<dl>
2494024940
<dd>
2494124941

24942-
#### 📝 Description
24943-
24944-
<dl>
24945-
<dd>
24946-
24947-
<dl>
24948-
<dd>
24949-
24950-
Captures a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
24951-
endpoint with a `delay_capture` value of `true`.
24952-
24953-
24954-
See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
24955-
for more information.
24956-
</dd>
24957-
</dl>
24958-
</dd>
24959-
</dl>
24960-
2496124942
#### 🔌 Usage
2496224943

2496324944
<dl>
@@ -24985,15 +24966,15 @@ client.locations.transactions.capture(
2498524966
<dl>
2498624967
<dd>
2498724968

24988-
**location_id:** `String` —
24969+
**location_id:** `String`
2498924970

2499024971
</dd>
2499124972
</dl>
2499224973

2499324974
<dl>
2499424975
<dd>
2499524976

24996-
**transaction_id:** `String` —
24977+
**transaction_id:** `String`
2499724978

2499824979
</dd>
2499924980
</dl>
@@ -25013,29 +24994,10 @@ client.locations.transactions.capture(
2501324994
</dl>
2501424995
</details>
2501524996

25016-
<details><summary><code>client.locations.transactions.<a href="/lib/square/locations/transactions/client.rb">void</a>(location_id, transaction_id) -> Square::Types::VoidTransactionResponse</code></summary>
24997+
<details><summary><code>client.locations.transactions.<a href="/lib/square/locations/transactions/client.rb">void</a>(location_id, transaction_id) -> </code></summary>
2501724998
<dl>
2501824999
<dd>
2501925000

25020-
#### 📝 Description
25021-
25022-
<dl>
25023-
<dd>
25024-
25025-
<dl>
25026-
<dd>
25027-
25028-
Cancels a transaction that was created with the [Charge](api-endpoint:Transactions-Charge)
25029-
endpoint with a `delay_capture` value of `true`.
25030-
25031-
25032-
See [Delayed capture transactions](https://developer.squareup.com/docs/payments/transactions/overview#delayed-capture)
25033-
for more information.
25034-
</dd>
25035-
</dl>
25036-
</dd>
25037-
</dl>
25038-
2503925001
#### 🔌 Usage
2504025002

2504125003
<dl>
@@ -25063,15 +25025,15 @@ client.locations.transactions.void(
2506325025
<dl>
2506425026
<dd>
2506525027

25066-
**location_id:** `String` —
25028+
**location_id:** `String`
2506725029

2506825030
</dd>
2506925031
</dl>
2507025032

2507125033
<dl>
2507225034
<dd>
2507325035

25074-
**transaction_id:** `String` —
25036+
**transaction_id:** `String`
2507525037

2507625038
</dd>
2507725039
</dl>

‎wiremock/wiremock-mappings.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)