TransactionSimulateVoidParams

Voids a pending authorization. If amount is 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.

Types

Link copied to clipboard
class Body
Link copied to clipboard
Link copied to clipboard
object Companion
Link copied to clipboard
class Type : Enum

Type of event to simulate. Defaults to AUTHORIZATION_REVERSAL.

Functions

Link copied to clipboard

Additional headers to send with the request.

Link copied to clipboard

Additional query param to send with the request.

Link copied to clipboard

Returns the raw JSON value of amount.

Link copied to clipboard
Link copied to clipboard
open override fun _headers(): Headers

The full set of headers in the parameters, including both fixed and additional headers.

Link copied to clipboard
open override fun _queryParams(): QueryParams

The full set of query params in the parameters, including both fixed and additional query params.

Link copied to clipboard

Returns the raw JSON value of token.

Link copied to clipboard

Returns the raw JSON value of type.

Link copied to clipboard
fun amount(): Long?

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.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun token(): String

The transaction token returned from the /v1/simulate/authorize response.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Type of event to simulate. Defaults to AUTHORIZATION_REVERSAL.