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 moreCLEAREDstate, however some transactions, particularly those backed by ACH funding sources can take some time to resolve so will begin asPENDINGand 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 -
Timestamp at which the transaction was initiated with the funding source if any
Declaration
Swift
public let transactedAt: Date? -
Timestamp at which the transaction was completed with the funding source, if any
Declaration
Swift
public let settledAt: Date? -
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
-
init(virtualCardAmount:markup: markupAmount: fundingSourceAmount: transactedAt: settledAt: fundingSourceId: description: state: ) Initialize an instance of
TransactionDetailChargeAttribute.Declaration
Swift
public init( virtualCardAmount: CurrencyAmount, markup: Markup, markupAmount: CurrencyAmount, fundingSourceAmount: CurrencyAmount, transactedAt: Date?, settledAt: Date?, fundingSourceId: String, description: String, state: ChargeDetailState )
TransactionDetailChargeAttribute Structure Reference