TransactionDetailChargeAttribute
public struct TransactionDetailChargeAttribute : Hashable
Transaction detail. Depending on transaction type will detail things like fees, real credit card transaction details etc.
-
Representation of a markup formula.
See moreDeclaration
Swift
public struct Markup : Hashable
-
Enum describing the state of the transaction charge detail. Historically all transaction charges would complete immediately, resulting in a
See moreCLEARED
state, however some transactions, particularly those backed by ACH funding sources can take some time to resolve so will begin asPENDING
and may result in failure.Declaration
Swift
public enum ChargeDetailState : Hashable
-
Amount the merchant charged the virtual card.
Declaration
Swift
public let virtualCardAmount: CurrencyAmount
-
Markup formula applied to billedAmount to calculate.
Declaration
Swift
public let markup: Markup
-
Markup amount added to
Transaction.transactedAmout
.Declaration
Swift
public let markupAmount: CurrencyAmount
-
Amount charged to funding source.
Declaration
Swift
public let fundingSourceAmount: CurrencyAmount
-
ID of funding source that funded this item.
Declaration
Swift
public let fundingSourceId: String
-
Description that will show on the real funding source statement.
Declaration
Swift
public let description: String
-
Current state of the transaction detail charge
Declaration
Swift
public let state: ChargeDetailState
-
Initialize an instance of
TransactionDetailChargeAttribute
.Declaration
Swift
public init( virtualCardAmount: CurrencyAmount, markup: Markup, markupAmount: CurrencyAmount, fundingSourceAmount: CurrencyAmount, fundingSourceId: String, description: String, state: ChargeDetailState )