Skip to content

Commit 7a7e783

Browse files
docs(api): clarify simulate_clearing supports multiple calls in transactions
1 parent fcd1926 commit 7a7e783

5 files changed

Lines changed: 26 additions & 20 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 214
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-9e397c65ffb81e2928b8ecf979769a79131ae6058b6fb373a5e930dc8a168732.yml
3-
openapi_spec_hash: 93aea3855d2d1c390107d223762aa818
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-1514911f233cb8bf0d6752c45bfa53a61b8f9b8ff215a4ea94a95f9505911000.yml
3+
openapi_spec_hash: 9820a9c9a4ff778c627041eb53fd4ee5
44
config_hash: 5bb913c05ebeb301ec925b16e75bb251

lib/lithic/models/transaction_simulate_clearing_params.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ class TransactionSimulateClearingParams < Lithic::Internal::Type::BaseModel
2020
# example, entering 100 in this field will result in a -100 amount in the
2121
# transaction, if the original authorization is a credit authorization.
2222
#
23-
# If `amount` is not set, the full amount of the transaction will be cleared.
24-
# Transactions that have already cleared, either partially or fully, cannot be
25-
# cleared again using this endpoint.
23+
# If `amount` is not set, the full amount of the transaction will be cleared. This
24+
# endpoint may be called multiple times against the same authorization to simulate
25+
# a multiple-completion scenario, with each call creating a separate clearing
26+
# event.
2627
#
2728
# @return [Integer, nil]
2829
optional :amount, Integer

lib/lithic/resources/transactions.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,10 @@ def simulate_authorization_advice(params)
210210
# Clears an existing authorization, either debit or credit. After this event, the
211211
# transaction transitions from `PENDING` to `SETTLED` status.
212212
#
213-
# If `amount` is not set, the full amount of the transaction will be cleared.
214-
# Transactions that have already cleared, either partially or fully, cannot be
215-
# cleared again using this endpoint.
213+
# If `amount` is not set, the full amount of the transaction will be cleared. This
214+
# endpoint may be called multiple times against the same authorization to simulate
215+
# a multiple-completion scenario, with each call creating a separate clearing
216+
# event.
216217
#
217218
# @overload simulate_clearing(token:, amount: nil, request_options: {})
218219
#

rbi/lithic/models/transaction_simulate_clearing_params.rbi

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ module Lithic
2424
# example, entering 100 in this field will result in a -100 amount in the
2525
# transaction, if the original authorization is a credit authorization.
2626
#
27-
# If `amount` is not set, the full amount of the transaction will be cleared.
28-
# Transactions that have already cleared, either partially or fully, cannot be
29-
# cleared again using this endpoint.
27+
# If `amount` is not set, the full amount of the transaction will be cleared. This
28+
# endpoint may be called multiple times against the same authorization to simulate
29+
# a multiple-completion scenario, with each call creating a separate clearing
30+
# event.
3031
sig { returns(T.nilable(Integer)) }
3132
attr_reader :amount
3233

@@ -49,9 +50,10 @@ module Lithic
4950
# example, entering 100 in this field will result in a -100 amount in the
5051
# transaction, if the original authorization is a credit authorization.
5152
#
52-
# If `amount` is not set, the full amount of the transaction will be cleared.
53-
# Transactions that have already cleared, either partially or fully, cannot be
54-
# cleared again using this endpoint.
53+
# If `amount` is not set, the full amount of the transaction will be cleared. This
54+
# endpoint may be called multiple times against the same authorization to simulate
55+
# a multiple-completion scenario, with each call creating a separate clearing
56+
# event.
5557
amount: nil,
5658
request_options: {}
5759
)

rbi/lithic/resources/transactions.rbi

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,10 @@ module Lithic
208208
# Clears an existing authorization, either debit or credit. After this event, the
209209
# transaction transitions from `PENDING` to `SETTLED` status.
210210
#
211-
# If `amount` is not set, the full amount of the transaction will be cleared.
212-
# Transactions that have already cleared, either partially or fully, cannot be
213-
# cleared again using this endpoint.
211+
# If `amount` is not set, the full amount of the transaction will be cleared. This
212+
# endpoint may be called multiple times against the same authorization to simulate
213+
# a multiple-completion scenario, with each call creating a separate clearing
214+
# event.
214215
sig do
215216
params(
216217
token: String,
@@ -227,9 +228,10 @@ module Lithic
227228
# example, entering 100 in this field will result in a -100 amount in the
228229
# transaction, if the original authorization is a credit authorization.
229230
#
230-
# If `amount` is not set, the full amount of the transaction will be cleared.
231-
# Transactions that have already cleared, either partially or fully, cannot be
232-
# cleared again using this endpoint.
231+
# If `amount` is not set, the full amount of the transaction will be cleared. This
232+
# endpoint may be called multiple times against the same authorization to simulate
233+
# a multiple-completion scenario, with each call creating a separate clearing
234+
# event.
233235
amount: nil,
234236
request_options: {}
235237
)

0 commit comments

Comments
 (0)