Futures

public class Futures

Combine bindings.

Beneficiary

  • Creates a beneficiary for a user account.

    Declaration

    Swift

    public func createBeneficiary(token: String,
                                  accountUuid: String,
                                  beneficiaryData: CreateBeneficiaryRequest) -> Future<Beneficiary, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    beneficiaryData

    A CreateBeneficiaryRequest data model.

    Return Value

    A Future object.

  • Gets a beneficiary account for a user.

    Declaration

    Swift

    public func getBeneficiary(token: String,
                               accountUuid: String,
                               beneficiaryUuid: String) -> Future<Beneficiary, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The user account uuid value.

    beneficiaryUuid

    The uuid of the beneficiary.

    Return Value

    A Future 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) -> Future<[Beneficiary], EventError>

    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 Future object.

  • Updates a beneficiary account for a user.

    Declaration

    Swift

    public func updateBeneficiary(token: String,
                                  accountUuid: String,
                                  beneficiaryUuid: String,
                                  beneficiaryData: UpdateBeneficiaryRequest) -> Future<Beneficiary, EventError>

    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 Future object.

  • Deletes a beneficiary account for a user.

    Declaration

    Swift

    public func deleteBeneficiary(token: String,
                                  accountUuid: String,
                                  beneficiaryUuid: String) -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    accountUuid

    The uuid of the account.

    beneficiaryUuid

    The uuid of the beneficiary.

    Return Value

    A Future object.

Global Payments

Payout Methods

  • Create a payout method.

    Declaration

    Swift

    public func createPayoutMethod(token: String,
                                   beneficiaryUuid: String,
                                   data: CreatePayoutMethodRequest) -> Future<PayoutMethod, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    beneficiaryUuid

    The uuid of the beneficiary.

    data

    Return Value

    A Future object.

  • List payout methods.

    Declaration

    Swift

    public func listPayoutMethods(token: String,
                                  beneficiaryUuid: String,
                                  limit: UInt? = nil,
                                  offset: UInt? = nil) -> Future<[PayoutMethod], EventError>

    Parameters

    token

    The token to authenticate the SDK.

    beneficiaryUuid

    The uuid of the beneficiary.

    limit

    The number of items per page. Optional.

    offset

    Start after offset amount of records. Optional.

    Return Value

    A Future object.

  • Get a payout method.

    Declaration

    Swift

    public func getPayoutMethod(token: String,
                                payoutMethodUuid: String) -> Future<PayoutMethod, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    payoutMethodUuid

    The uuid of the payout method

    Return Value

    A Future object.

  • Update a payout method.

    Declaration

    Swift

    public func updatePayoutMethod(token: String,
                                   payoutMethodUuid: String,
                                   data: UpdatePayoutMethodRequest) -> Future<PayoutMethod, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    payoutMethodUuid

    The uuid of the payout method

    data

    Return Value

    A Future object.

  • Delete a payout method.

    Declaration

    Swift

    public func deletePayoutMethod(token: String,
                                   payoutMethodUuid: String) -> Future<Bool, EventError>

    Parameters

    token

    The token to authenticate the SDK.

    payoutMethodUuid

    The uuid of the payout method.

    Return Value

    A Future object.