Class TransactionSimulateVoidParams
-
- All Implemented Interfaces:
-
com.lithic.api.core.Params
public final class TransactionSimulateVoidParams implements Params
Voids a pending authorization. If
amountis not set, the full amount will be voided. Can be used on partially voided transactions but not partially cleared transactions. Simulating an authorization expiry on credit authorizations or credit authorization advice is not currently supported but will be added soon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classTransactionSimulateVoidParams.Bodypublic final classTransactionSimulateVoidParams.BuilderA builder for TransactionSimulateVoidParams.
public final classTransactionSimulateVoidParams.TypeType 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.
-
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()The transaction token returned from the /v1/simulate/authorize response. final JsonField<Long>_amount()Amount (in cents) to void. final JsonField<TransactionSimulateVoidParams.Type>_type()Type of event to simulate. final Map<String, JsonValue>_additionalBodyProperties()final Headers_additionalHeaders()final QueryParams_additionalQueryParams()Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. final TransactionSimulateVoidParams.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static TransactionSimulateVoidParams.Builderbuilder()Returns a mutable builder for constructing an instance of TransactionSimulateVoidParams. -
-
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()
The transaction token returned from the /v1/simulate/authorize response.
-
_amount
final JsonField<Long> _amount()
Amount (in cents) to void. Typically this will match the amount in the original authorization, but can be less.
-
_type
final JsonField<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.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
-
_additionalHeaders
final Headers _additionalHeaders()
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
toBuilder
final TransactionSimulateVoidParams.Builder toBuilder()
-
builder
final static TransactionSimulateVoidParams.Builder builder()
Returns a mutable builder for constructing an instance of TransactionSimulateVoidParams.
The following fields are required:
.token()
-
-
-
-