AlRemittances
public final class AlRemittances
SDK Initialization object.
-
AlRemittances
object instance.Declaration
Swift
public static let shared: AlRemittances
-
Create a beneficiary for a user account.
Declaration
Swift
public func createBeneficiary(token: String, accountUuid: String, beneficiaryData: CreateBeneficiaryRequest, delegate: BeneficiaryDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
beneficiaryData
A
CreateBeneficiaryRequest
data model.delegate
The delegate to receive SDK updates.
-
Lists beneficiary accounts for a user.
Declaration
Swift
public func listBeneficiaries(token: String, accountUuid: String, limit: UInt? = nil, offset: UInt? = nil, type: String? = nil, delegate: BeneficiaryDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
limit
The number of items per page. Optional.
offset
Start after offset amount of records. Optional.
type
The beneficiaries type. Can be expressed by
BeneficiaryType
cases. Optional.delegate
The delegate to receive SDK updates.
-
Gets a beneficiary account for a user.
Declaration
Swift
public func getBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, delegate: BeneficiaryDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
beneficiaryUuid
The uuid of the beneficiary.
delegate
The delegate to receive SDK updates.
-
Updates a beneficiary account for a user.
Declaration
Swift
public func updateBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, beneficiaryData: UpdateBeneficiaryRequest, delegate: BeneficiaryDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
beneficiaryUuid
The uuid of the beneficiary.
beneficiaryData
A
UpdateBeneficiaryRequest
data model with the data updated.delegate
The delegate to receive SDK updates.
-
Deletes a beneficiary account for a user.
Declaration
Swift
public func deleteBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, delegate: BeneficiaryDelegate)
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
beneficiaryUuid
The uuid of the beneficiary.
delegate
The delegate to receive SDK updates.
-
Creates a remittance quote for a beneficiary.
Declaration
Swift
public func createQuote(token: String, walletUuid: String, data: CreateQuoteRequest, delegate: GlobalPaymentsDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
CreateQuoteRequest
data model.delegate
The delegate to receive SDK updates.
-
Creates a remittance transaction to a beneficiary.
Declaration
Swift
public func createRemittance(token: String, walletUuid: String, data: CreateRemittanceRequest, delegate: GlobalPaymentsDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
CreateRemittanceRequest
data model.delegate
The delegate to receive SDK updates.
-
Transfers funds to a beneficiary.
Declaration
Swift
public func transferFunds(token: String, walletUuid: String, data: TransferFundsRequest, delegate: GlobalPaymentsDelegate)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
TransferFundsRequest
data model.delegate
The delegate to receive SDK updates.
-
List cash pickup cities.
Declaration
Swift
public func listCashPickupCities(token: String, query: CashPickupCitiesQuery, delegate: CashPickupDelegate)
Parameters
token
The token to authenticate the SDK.
query
The query to filter the retrieved cash pickup cities.
delegate
The delegate to receive SDK updates.
-
List cash pickup locations.
Declaration
Swift
public func listCashPickupLocations(token: String, query: CashPickupLocationsQuery, delegate: CashPickupDelegate)
Parameters
token
The token to authenticate the SDK.
query
The query to filter the retrieved cash pickup locations.
delegate
The delegate to receive SDK updates.
-
Get cash pickup location.
Declaration
Swift
public func getCashPickupLocation(token: String, locationUuid: String, delegate: CashPickupDelegate)
Parameters
token
The token to authenticate the SDK.
locationUuid
The unique uuid of a location.
delegate
The delegate to receive SDK updates.
-
Async bindings.
See moreDeclaration
Swift
public class Async
-
Creates a beneficiary for a user account.
Declaration
Swift
func createBeneficiary(token: String, accountUuid: String, beneficiaryData: CreateBeneficiaryRequest, completion: @escaping (Result<Beneficiary, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
beneficiaryData
A
CreateBeneficiaryRequest
data model.completion
Called when the call was completed.
-
Lists beneficiary accounts for a user.
Declaration
Swift
func listBeneficiaries(token: String, accountUuid: String, limit: UInt? = nil, offset: UInt? = nil, type: String? = nil, completion: @escaping (Result<[Beneficiary], EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
limit
The number of items per page. Optional.
offset
Start after offset amount of records. Optional.
type
The beneficiaries type. Can be expressed by
BeneficiaryType
cases. Optional.completion
Called when the call was completed.
-
Gets a beneficiary account for a user.
Declaration
Swift
func getBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, completion: @escaping (Result<Beneficiary, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
accountUuid
The user account uuid value.
beneficiaryUuid
The uuid of the beneficiary.
completion
Called when the call was completed.
-
Updates a beneficiary account for a user.
Declaration
Swift
func updateBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, beneficiaryData: UpdateBeneficiaryRequest, completion: @escaping (Result<Beneficiary, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
beneficiaryUuid
The uuid of the beneficiary.
beneficiaryData
A
UpdateBeneficiaryRequest
data model with the data updated.completion
Called when the call was completed.
-
Deletes a beneficiary account for a user.
Declaration
Swift
func deleteBeneficiary(token: String, accountUuid: String, beneficiaryUuid: String, completion: @escaping (Result<Bool, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
accountUuid
The uuid of the account.
beneficiaryUuid
The uuid of the beneficiary.
completion
Called when the call was completed.
-
Creates a remittance quote for a beneficiary.
Declaration
Swift
func createQuote(token: String, walletUuid: String, data: CreateQuoteRequest, completion: @escaping (Result<Quote, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
CreateQuoteRequest
data model.completion
Called when the call was completed.
-
Creates a remittance transaction to a beneficiary.
Declaration
Swift
func createRemittance(token: String, walletUuid: String, data: CreateRemittanceRequest, completion: @escaping (Result<Remittance, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
CreateRemittanceRequest
data model.completion
Called when the call was completed.
-
Transfers funds to a beneficiary.
Declaration
Swift
func transferFunds(token: String, walletUuid: String, data: TransferFundsRequest, completion: @escaping (Result<TransferFunds, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
walletUuid
The unique uuid of a wallet.
data
A
TransferFundsRequest
data model.completion
Called when the call was completed.
-
List cash pickup cities.
Declaration
Swift
func listCashPickupCities(token: String, query: CashPickupCitiesQuery, completion: @escaping (Result<[CashPickupCity], EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
query
The query to filter the retrieved cash pickup cities.
completion
Called when the call was completed.
-
List cash pickup locations.
Declaration
Swift
func listCashPickupLocations(token: String, query: CashPickupLocationsQuery, completion: @escaping (Result<[CashPickupLocation], EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
query
The query to filter the retrieved cash pickup locations.
completion
Called when the call was completed.
-
Get cash pickup location.
Declaration
Swift
func getCashPickupLocation(token: String, locationUuid: String, completion: @escaping (Result<CashPickupLocation, EventError>) -> Void)
Parameters
token
The token to authenticate the SDK.
locationUuid
The unique uuid of a location.
completion
Called when the call was completed.
-
Combine bindings.
See moreDeclaration
Swift
public class Futures