Builder

public final class Builder

A helper class to build the HyperwalletVenmoAccount instance.

  • Creates a new instance of the HyperwalletVenmoAccount based on the required parameter to update Venmo account.

    Declaration

    Swift

    public init(token: String)

    Parameters

    token

    The Venmo account token.

  • Creates a new instance of the HyperwalletVenmoAccount based on the required parameters to create Venmo account.

    Declaration

    Swift

    public init(transferMethodCountry: String, transferMethodCurrency: String, transferMethodProfileType: String)

    Parameters

    transferMethodCountry

    The Venmo account country.

    transferMethodCurrency

    The Venmo account currency.

    transferMethodProfileType

    The Venmo account holder’s profile type, e.g. INDIVIDUAL or BUSINESS

  • Sets the accountId address

    Declaration

    Swift

    public func accountId(_ accountId: String) -> Builder

    Parameters

    accountId

    The accountId as phone number user want to create a Venmo account

    Return Value

    a self HyperwalletVenmoAccount.Builder instance.

  • Sets the bank account holder’s profile type.

    Declaration

    Swift

    public func profileType(_ profileType: String) -> Builder

    Parameters

    profileType

    The Venmo account holder’s profile type, e.g. INDIVIDUAL or BUSINESS

    Return Value

    a self HyperwalletVenmoAccount.Builder instance.

  • Builds a new instance of the HyperwalletVenmoAccount.

    Declaration

    Swift

    public func build() -> HyperwalletVenmoAccount

    Return Value

    a new instance of the HyperwalletVenmoAccount.