CardTransactionFeeValue
public enum CardTransactionFeeValue : Codable, Sendable
Quote service fee value.
-
Use this service fee value type if you want a service fee percentage to be applied on the total amount of the transaction.
Declaration
Swift
case amount(Int64) -
If you want a service fee percentage to be applied on the total amount of the transaction, up to a certain amount.
Declaration
Swift
case percent(PreciseDecimal, cap: Int64? = nil) -
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
-
Encodes the instance by encoding to the given decoder.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.
View on GitHub