WithdrawFundsRequest

public struct WithdrawFundsRequest : Codable

Withdraw funds request model.

  • The token corresponding to the payment method being used.

    Declaration

    Swift

    public var paymentMethodUuid: String
  • The amount is the value associated with the request, in cents.

    Declaration

    Swift

    public var amount: Int64
  • Service fees associated with the load funds transaction.

    Declaration

    Swift

    public var serviceFees: [ServiceFee]?
  • This value is used for idempotency purposes.

    Declaration

    Swift

    public var externalId: String
  • Options related to transaction handling.

    Declaration

    Swift

    public let transactionOptions: TransactionOptions?
  • Allows for any number of custom metadata keys and values to be stored with a given transaction.

    Declaration

    Swift

    public var metadata: [String : Any]?
  • Auxiliary constructor.

    Declaration

    Swift

    public init(
        paymentMethodUuid: String,
        amount: Int64,
        externalId: String,
        serviceFees: [ServiceFee]? = nil,
        transactionOptions: TransactionOptions? = nil,
        metadata: [String: Any]? = nil)

    Parameters

    paymentMethodUuid

    The token corresponding to the payment method being used.

    amount

    The amount is the value associated with the request, in cents.

    externalId

    This value is used for idempotency purposes.

    serviceFees

    Service fees associated with the load funds transaction.

    transactionOptions

    Options related to transaction handling.

    metadata

    Allows for any number of custom metadata keys and values to be stored with a given transaction.

  • 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.