CreateQuoteRequest

public struct CreateQuoteRequest : Encodable

Create beneficiary request model.

  • The amount to be sent to the beneficiary, in cents.

    Declaration

    Swift

    public let amount: Int
  • The beneficiary identifier. Beneficiary should be of type international

    Declaration

    Swift

    public let beneficiaryUuid: String
  • Provides the ability to create a quote with the amount either in the origin or the destination currency. The keys can be mapped from QuoteAmountCurrency if you want type safety.

    Declaration

    Swift

    public let amountCurrency: String
  • The exchange rate to be applied to this transaction; it is only possible to use this parameter if the business account allows for external management of exchange rates.

    Declaration

    Swift

    public let exchangeRate: String?
  • The exchange rate markup to perform on the mid-market rate. This is a percent value. Optional.

    Declaration

    Swift

    public let exchangeRateMarkup: PreciseDecimal?
  • The array of Service Fees objects as per system definition. Optional.

    Declaration

    Swift

    public let serviceFees: [ServiceFee]?
  • Auxiliary constructor.

    Declaration

    Swift

    public init(amount: Int,
                beneficiaryUuid: String,
                amountCurrency: String,
                exchangeRate: String? = nil,
                exchangeRateMarkup: PreciseDecimal? = nil,
                serviceFees: [ServiceFee]? = nil)

    Parameters

    amount

    The amount to be sent to the beneficiary, in cents.

    beneficiaryUuid

    The beneficiary identifier.

    amountCurrency

    Provides the ability to create a quote with the amount either in the origin or the destination currency. The keys can be mapped from QuoteAmountCurrency if you want type safety.

    exchangeRate

    The exchange rate to be applied to this transaction; it is only possible to use this parameter if the business account allows for external management of exchange rates.

    exchangeRateMarkup

    The exchange rate markup to perform on the mid-market rate. This is a percent value.

    serviceFees

    The array of Service Fees objects as per system definition.