GetQuotePreviewRequest
public struct GetQuotePreviewRequest : Encodable, Sendable
Get quote preview request model.
-
The amount.
Declaration
Swift
public let amount: GetQuotePreviewAmount
-
The source amount currency.
Declaration
Swift
public let sourceCurrency: Currency
-
The target amount currency.
Declaration
Swift
public let targetCurrency: Currency
-
The country where the funds will be transferred to.
Declaration
Swift
public let country: Country
-
The Payout Method type.
Declaration
Swift
public let payoutMethodType: PayoutMethodType
-
The UUID of the cash pickup location.
Declaration
Swift
public let cashPickupLocationUuid: String?
-
The exchange rate markup to perform on the mid-market rate. This is a percent value.
Declaration
Swift
public let exchangeRateMarkup: PreciseDecimal?
-
The service fees.
Declaration
Swift
public let serviceFees: [ServiceFee]?
-
init(amount:
sourceCurrency: targetCurrency: country: payoutMethodType: cashPickupLocationUuid: exchangeRateMarkup: serviceFees: ) Auxiliary constructor.
Declaration
Swift
public init( amount: GetQuotePreviewAmount, sourceCurrency: Currency, targetCurrency: Currency, country: Country, payoutMethodType: PayoutMethodType, cashPickupLocationUuid: String? = nil, exchangeRateMarkup: PreciseDecimal? = nil, serviceFees: [ServiceFee]? = nil )
Parameters
amount
The amount.
sourceCurrency
The source amount currency.
targetCurrency
The target amount currency.
country
The country where the funds will be transferred to.
payoutMethodType
The Payout Method type.
cashPickupLocationUuid
The UUID of the cash pickup location.
exchangeRateMarkup
The exchange rate markup to perform on the mid-market rate. This is a percent value.
serviceFees
The service fees.