Async

public class Async

Async bindings.

Beneficiary

  • Creates a beneficiary for a user account.

    Declaration

    Swift

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

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    beneficiaryData

    A CreateBeneficiaryRequest data model.

    Return Value

    A Beneficiary object.

  • Gets a beneficiary account for a user.

    Declaration

    Swift

    public func getBeneficiary(token: String,
                               accountUuid: String,
                               beneficiaryUuid: String) async throws -> 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 object.

  • 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 -> [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 array.

  • Updates a beneficiary account for a user.

    Declaration

    Swift

    public func updateBeneficiary(token: String,
                                  accountUuid: String,
                                  beneficiaryUuid: String,
                                  beneficiaryData: UpdateBeneficiaryRequest) async throws -> 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 object.

  • Deletes a beneficiary account for a user.

    Declaration

    Swift

    public func deleteBeneficiary(token: String,
                                  accountUuid: String,
                                  beneficiaryUuid: String) async throws -> Bool

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The uuid of the account.

    beneficiaryUuid

    The uuid of the beneficiary.

    Return Value

    True if successful.

Global Payments

Payout Methods