@@ -136,9 +136,10 @@ func (r *TransactionService) SimulateAuthorizationAdvice(ctx context.Context, bo
136136// Clears an existing authorization, either debit or credit. After this event, the
137137// transaction transitions from `PENDING` to `SETTLED` status.
138138//
139- // If `amount` is not set, the full amount of the transaction will be cleared.
140- // Transactions that have already cleared, either partially or fully, cannot be
141- // cleared again using this endpoint.
139+ // If `amount` is not set, the full amount of the transaction will be cleared. This
140+ // endpoint may be called multiple times against the same authorization to simulate
141+ // a multiple-completion scenario, with each call creating a separate clearing
142+ // event.
142143func (r * TransactionService ) SimulateClearing (ctx context.Context , body TransactionSimulateClearingParams , opts ... option.RequestOption ) (res * TransactionSimulateClearingResponse , err error ) {
143144 opts = slices .Concat (r .Options , opts )
144145 path := "v1/simulate/clearing"
@@ -2140,9 +2141,10 @@ type TransactionSimulateClearingParams struct {
21402141 // example, entering 100 in this field will result in a -100 amount in the
21412142 // transaction, if the original authorization is a credit authorization.
21422143 //
2143- // If `amount` is not set, the full amount of the transaction will be cleared.
2144- // Transactions that have already cleared, either partially or fully, cannot be
2145- // cleared again using this endpoint.
2144+ // If `amount` is not set, the full amount of the transaction will be cleared. This
2145+ // endpoint may be called multiple times against the same authorization to simulate
2146+ // a multiple-completion scenario, with each call creating a separate clearing
2147+ // event.
21462148 Amount param.Field [int64 ] `json:"amount"`
21472149}
21482150
0 commit comments