Class TransactionSimulateVoidParams.Body
-
- All Implemented Interfaces:
public final class TransactionSimulateVoidParams.Body
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTransactionSimulateVoidParams.Body.BuilderA builder for Body.
-
Method Summary
Modifier and Type Method Description final Stringtoken()The transaction token returned from the /v1/simulate/authorize response. final Optional<Long>amount()Amount (in cents) to void. final Optional<TransactionSimulateVoidParams.Type>type()Type of event to simulate. final JsonField<String>_token()Returns the raw JSON value of token. final JsonField<Long>_amount()Returns the raw JSON value of amount. final JsonField<TransactionSimulateVoidParams.Type>_type()Returns the raw JSON value of type. final Map<String, JsonValue>_additionalProperties()final TransactionSimulateVoidParams.Body.BuildertoBuilder()final TransactionSimulateVoidParams.Bodyvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TransactionSimulateVoidParams.Body.Builderbuilder()Returns a mutable builder for constructing an instance of Body. -
-
Method Detail
-
amount
final Optional<Long> amount()
Amount (in cents) to void. Typically this will match the amount in the original authorization, but can be less.
-
type
final Optional<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.
-
_token
final JsonField<String> _token()
Returns the raw JSON value of token.
Unlike token, this method doesn't throw if the JSON field has an unexpected type.
-
_amount
final JsonField<Long> _amount()
Returns the raw JSON value of amount.
Unlike amount, this method doesn't throw if the JSON field has an unexpected type.
-
_type
final JsonField<TransactionSimulateVoidParams.Type> _type()
Returns the raw JSON value of type.
Unlike type, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final TransactionSimulateVoidParams.Body.Builder toBuilder()
-
validate
final TransactionSimulateVoidParams.Body validate()
-
builder
final static TransactionSimulateVoidParams.Body.Builder builder()
Returns a mutable builder for constructing an instance of Body.
The following fields are required:
.token()
-
-
-
-