SimulateAuthorizationResponse

public struct SimulateAuthorizationResponse : Equatable

Simulated authorization response.

Properties

  • id

    ID of authorization response. If approved, ID may be used in subsequent incremental authorizations, reversals and debits.

    Declaration

    Swift

    public var id: String
  • Whether or not authorization is approved.

    Declaration

    Swift

    public var approved: Bool
  • Amount billed in card’s currency.

    Declaration

    Swift

    public var billedAmount: CurrencyAmount
  • Decline reason code. Only present if not approved.

    Declaration

    Swift

    public var declineReason: String?
  • Date/timestamp response was created at.

    Declaration

    Swift

    public var createdAt: Date
  • Date/timestamp response was last updated at.

    Declaration

    Swift

    public var updatedAt: Date

Lifecycle