-
Creates a new instance of the
HyperwalletTransfer.Builderbased on the required parameters to create a transfer.Declaration
Swift
public init(clientTransferId: String, sourceToken: String, destinationToken: String)Parameters
clientTransferIdA client defined transfer identifier. This is the unique ID assigned to the transfer on your system. Max 50 characters.
sourceTokenA token identifying the source of funds. It can be a prepaid card token prefixed with
trm-or user token prefixed withusr-.destinationTokenA token identifying where the funds have been sent. It is your merchant account token prefixed with
act-. -
Sets the transfer destination amount.
Declaration
Swift
public func destinationAmount(_ destinationAmount: String?) -> BuilderParameters
destinationAmountThe payment amount in the specified currency loaded into your merchant account.
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Sets the transfer destination currency.
Declaration
Swift
public func destinationCurrency(_ destinationCurrency: String?) -> BuilderParameters
destinationCurrencyThe currency of the payment amount loaded into your merchant account in ISO 4217 format.
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Sets the transfer memo.
Declaration
Swift
public func memo(_ memo: String?) -> BuilderParameters
memoAn internal memo for the SpendBack transfer (will not be visible to the user making the payment).
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Sets the transfer notes.
Declaration
Swift
public func notes(_ notes: String?) -> BuilderParameters
notesA description for the SpendBack transfer.
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Sets the transfer source amount.
Declaration
Swift
public func sourceAmount(_ sourceAmount: String?) -> BuilderParameters
sourceAmountThe payment amount in the specified currency that is debited from the sourceToken.
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Sets the transfer source currency.
Declaration
Swift
public func sourceCurrency(_ sourceCurrency: String?) -> BuilderParameters
sourceCurrencyThe currency of the payment amount debited from the sourceToken in ISO 4217 format.
Return Value
a self
HyperwalletTransfer.Builderinstance. -
Declaration
Swift
public func build() -> HyperwalletTransferReturn Value
a new instance of the
HyperwalletTransfer.
View on GitHub