AlRemittances
public final class AlRemittances : Sendable
SDK Initialization object.
-
AlRemittancesobject instance.Declaration
Swift
public static let shared: AlRemittances
-
createBeneficiary(token:AsynchronousaccountUuid: data: ) Create a beneficiary for a user account.
Declaration
Swift
public func createBeneficiary( token: String, accountUuid: String, data: CreateBeneficiaryRequest ) async throws(ALEventError) -> BeneficiaryParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
dataA
CreateBeneficiaryRequestdata model.Return Value
A
Beneficiary. -
listBeneficiaries(token:AsynchronousaccountUuid: query: ) Lists beneficiary accounts for a user.
Declaration
Swift
public func listBeneficiaries( token: String, accountUuid: String, query: ListBeneficiariesQuery? = nil ) async throws(ALEventError) -> [Beneficiary]Parameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
limitThe number of items per page. Optional.
offsetStart after offset amount of records. Optional.
typeThe beneficiaries type. Can be expressed by
BeneficiaryTypecases. Optional.Return Value
A
Beneficiarylist. -
getBeneficiary(token:AsynchronousaccountUuid: beneficiaryUuid: ) Gets a beneficiary account for a user.
Declaration
Swift
public func getBeneficiary( token: String, accountUuid: String, beneficiaryUuid: String ) async throws(ALEventError) -> BeneficiaryParameters
tokenThe token to authenticate the SDK.
accountUuidThe user account uuid value.
beneficiaryUuidThe uuid of the beneficiary.
Return Value
A
Beneficiary. -
Updates a beneficiary account for a user.
Declaration
Swift
public func updateBeneficiary( token: String, accountUuid: String, beneficiaryUuid: String, beneficiaryData: UpdateBeneficiaryRequest ) async throws(ALEventError) -> BeneficiaryParameters
tokenThe token to authenticate the SDK.
accountUuidThe uuid of the account.
beneficiaryUuidThe uuid of the beneficiary.
beneficiaryDataA
UpdateBeneficiaryRequestdata model with the data updated.Return Value
A
Beneficiary. -
Deletes a beneficiary account for a user.
Declaration
Swift
public func deleteBeneficiary( token: String, accountUuid: String, beneficiaryUuid: String ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
accountUuidThe uuid of the account.
beneficiaryUuidThe uuid of the beneficiary.
-
createQuote(token:AsynchronouswalletUuid: data: ) Creates a remittance quote for a beneficiary.
Declaration
Swift
public func createQuote( token: String, walletUuid: String, data: CreateQuoteRequest ) async throws(ALEventError) -> QuoteParameters
tokenThe token to authenticate the SDK.
walletUuidThe unique uuid of a wallet.
dataA
CreateQuoteRequestdata model.Return Value
A
Quote. -
getQuotePreview(token:Asynchronousdata: ) Gets a quote preview.
Declaration
Swift
public func getQuotePreview( token: String, data: GetQuotePreviewRequest ) async throws(ALEventError) -> QuotePreviewParameters
tokenThe token to authenticate the SDK.
dataA
GetQuotePreviewRequestdata model.Return Value
A
QuotePreview. -
createRemittance(token:AsynchronouswalletUuid: data: ) Creates a remittance transaction to a beneficiary.
Declaration
Swift
public func createRemittance( token: String, walletUuid: String, data: CreateRemittanceRequest ) async throws(ALEventError) -> RemittanceParameters
tokenThe token to authenticate the SDK.
walletUuidThe unique uuid of a wallet.
dataA
CreateRemittanceRequestdata model.Return Value
A
Remittance.
-
listCashPickupCities(token:Asynchronousquery: ) List cash pickup cities.
Declaration
Swift
public func listCashPickupCities( token: String, query: CashPickupCitiesQuery ) async throws(ALEventError) -> [CashPickupCity]Parameters
tokenThe token to authenticate the SDK.
queryThe query to filter the retrieved cash pickup cities.
Return Value
A
CashPickupCitylist. -
listCashPickupLocations(token:Asynchronousquery: ) List cash pickup locations.
Declaration
Swift
public func listCashPickupLocations( token: String, query: CashPickupLocationsQuery ) async throws(ALEventError) -> [CashPickupLocation]Parameters
tokenThe token to authenticate the SDK.
queryThe query to filter the retrieved cash pickup locations.
Return Value
A
CashPickupLocationlist. -
getCashPickupLocation(token:AsynchronouslocationUuid: ) Get cash pickup location.
Declaration
Swift
public func getCashPickupLocation( token: String, locationUuid: String ) async throws(ALEventError) -> CashPickupLocationParameters
tokenThe token to authenticate the SDK.
locationUuidThe unique uuid of a location.
Return Value
-
listSupportedCurrencies(token:Asynchronous) Lists supported currencies.
Declaration
Swift
public func listSupportedCurrencies( token: String ) async throws(ALEventError) -> SupportedCurrenciesParameters
tokenThe token to authenticate the SDK.
Return Value
-
listSupportedBanks(token:Asynchronouscountry: ) Lists supported banks.
Declaration
Swift
public func listSupportedBanks( token: String, country: Country ) async throws(ALEventError) -> [BankDetails]Parameters
tokenThe token to authenticate the SDK.
countryThe country of the bank.
Return Value
A
BankDetailslist. -
getSupportedBankDetails(token:AsynchronousbankUuid: ) Get supported bank details.
Declaration
Swift
public func getSupportedBankDetails( token: String, bankUuid: String ) async throws(ALEventError) -> BankDetailsParameters
tokenThe token to authenticate the SDK.
bankUuidThe uuid of a bank.
Return Value
A
BankDetails. -
createPayoutMethod(token:AsynchronousbeneficiaryUuid: data: ) Create a payout method.
Declaration
Swift
public func createPayoutMethod( token: String, beneficiaryUuid: String, data: CreatePayoutMethodRequest ) async throws(ALEventError) -> PayoutMethodParameters
tokenThe token to authenticate the SDK.
beneficiaryUuidThe uuid of the beneficiary.
dataA
CreatePayoutMethodRequestdata model.Return Value
A
PayoutMethod. -
List payout methods.
Declaration
Swift
public func listPayoutMethods( token: String, beneficiaryUuid: String, limit: UInt? = nil, offset: UInt? = nil ) async throws(ALEventError) -> [PayoutMethod]Parameters
tokenThe token to authenticate the SDK.
beneficiaryUuidThe uuid of the beneficiary.
limitThe number of items per page. Optional.
offsetStart after offset amount of records. Optional.
Return Value
A
PayoutMethodlist. -
getPayoutMethod(token:AsynchronouspayoutMethodUuid: ) Get a payout method.
Declaration
Swift
public func getPayoutMethod( token: String, payoutMethodUuid: String ) async throws(ALEventError) -> PayoutMethodParameters
tokenThe token to authenticate the SDK.
payoutMethodUuidThe uuid of the payout method.
Return Value
A
PayoutMethod. -
updatePayoutMethod(token:AsynchronouspayoutMethodUuid: data: ) Update a payout method.
Declaration
Swift
public func updatePayoutMethod( token: String, payoutMethodUuid: String, data: UpdatePayoutMethodRequest ) async throws(ALEventError) -> PayoutMethodParameters
tokenThe token to authenticate the SDK.
payoutMethodUuidThe uuid of the payout method.
dataA
UpdatePayoutMethodRequestdata model.Return Value
A
PayoutMethod. -
deletePayoutMethod(token:AsynchronouspayoutMethodUuid: ) Delete a payout method.
Declaration
Swift
public func deletePayoutMethod( token: String, payoutMethodUuid: String ) async throws(ALEventError)Parameters
tokenThe token to authenticate the SDK.
payoutMethodUuidThe uuid of the payout method.
View on GitHub