SimulateAuthorizationResponse
public struct SimulateAuthorizationResponse : Equatable
Simulated authorization response.
-
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
-
Initialize an instance of
SimulateAuthorizationResponse
.Declaration
Swift
public init(id: String, approved: Bool, billedAmount: CurrencyAmount, createdAt: Date, updatedAt: Date, declineReason: String? = nil)