Class TransactionSimulateClearingParams.Body.Builder
-
- All Implemented Interfaces:
public final class TransactionSimulateClearingParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
token
final TransactionSimulateClearingParams.Body.Builder token(String token)
The transaction token returned from the /v1/simulate/authorize response.
-
token
final TransactionSimulateClearingParams.Body.Builder token(JsonField<String> token)
Sets Builder.token to an arbitrary JSON value.
You should usually call Builder.token with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
amount
final TransactionSimulateClearingParams.Body.Builder amount(Long amount)
Amount (in cents) to clear. Typically this will match the amount in the original authorization, but can be higher or lower. The sign of this amount will automatically match the sign of the original authorization's amount. For example, entering 100 in this field will result in a -100 amount in the transaction, if the original authorization is a credit authorization.
If
amountis not set, the full amount of the transaction will be cleared. Transactions that have already cleared, either partially or fully, cannot be cleared again using this endpoint.
-
amount
final TransactionSimulateClearingParams.Body.Builder amount(JsonField<Long> amount)
Sets Builder.amount to an arbitrary JSON value.
You should usually call Builder.amount with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TransactionSimulateClearingParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TransactionSimulateClearingParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TransactionSimulateClearingParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TransactionSimulateClearingParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TransactionSimulateClearingParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TransactionSimulateClearingParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.token()
-
-
-
-