CardTransactionFeeValue

public enum CardTransactionFeeValue : Codable

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) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes the instance by encoding to the given decoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.