AlRemittances

public final class AlRemittances : Sendable

SDK Initialization object.

  • AlRemittances object instance.

    Declaration

    Swift

    public static let shared: AlRemittances

Beneficiary

  • Create a beneficiary for a user account.

    Declaration

    Swift

    public func createBeneficiary(
        token: String,
        accountUuid: String,
        data: CreateBeneficiaryRequest
    ) async throws(ALEventError) -> Beneficiary

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    data

    A CreateBeneficiaryRequest data model.

    Return Value

    A Beneficiary.

  • Lists beneficiary accounts for a user.

    Declaration

    Swift

    public func listBeneficiaries(
        token: String,
        accountUuid: String,
        limit: UInt? = nil,
        offset: UInt? = nil,
        type: String? = nil
    ) async throws(ALEventError) -> [Beneficiary]

    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.

    Return Value

    A Beneficiary list.

  • Gets a beneficiary account for a user.

    Declaration

    Swift

    public func getBeneficiary(
        token: String,
        accountUuid: String,
        beneficiaryUuid: String
    ) async throws(ALEventError) -> Beneficiary

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    beneficiaryUuid

    The 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) -> Beneficiary

    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.

    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

    token

    The token to authenticate the SDK.

    accountUuid

    The uuid of the account.

    beneficiaryUuid

    The uuid of the beneficiary.

Global Payments

Cash Pickup

Payout Methods