Class TransactionSimulateVoidParams.Body.Builder
-
- All Implemented Interfaces:
public final class TransactionSimulateVoidParams.Body.BuilderA builder for Body.
-
-
Method Summary
-
-
Method Detail
-
token
final TransactionSimulateVoidParams.Body.Builder token(String token)
The transaction token returned from the /v1/simulate/authorize response.
-
token
final TransactionSimulateVoidParams.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 TransactionSimulateVoidParams.Body.Builder amount(Long amount)
Amount (in cents) to void. Typically this will match the amount in the original authorization, but can be less. Applies to authorization reversals only. An authorization expiry will always apply to the full pending amount.
-
amount
final TransactionSimulateVoidParams.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.
-
type
final TransactionSimulateVoidParams.Body.Builder type(TransactionSimulateVoidParams.Type type)
Type of event to simulate. Defaults to
AUTHORIZATION_REVERSAL.AUTHORIZATION_EXPIRYindicates authorization has expired and been reversed by Lithic.AUTHORIZATION_REVERSALindicates authorization was reversed by the merchant.
-
type
final TransactionSimulateVoidParams.Body.Builder type(JsonField<TransactionSimulateVoidParams.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final TransactionSimulateVoidParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final TransactionSimulateVoidParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final TransactionSimulateVoidParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final TransactionSimulateVoidParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final TransactionSimulateVoidParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final TransactionSimulateVoidParams.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()
-
-
-
-