Builder

public final class Builder

A helper class to build the HyperwalletPaperCheck instance.

  • Creates a new instance of the HyperwalletPaperCheck.Builder based on the required parameter to updaate Bank card.

    Declaration

    Swift

    public init(token: String)

    Parameters

    token

    The bank card token.

  • Creates a new instance of the HyperwalletPaperCheck.Builder based on the required parameters to create paper check.

    Declaration

    Swift

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

    Parameters

    transferMethodCountry

    The bank account country.

    transferMethodCurrency

    The bank account currency.

    transferMethodProfileType

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

    transferMethodType

    The bank account type, i.e, PAPER_CHECK

  • Sets the bank account holder’s street address.

    Declaration

    Swift

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

    Parameters

    addressLine1

    The bank account holder’s street address.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s address, second line.

    Declaration

    Swift

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

    Parameters

    addressLine2

    The bank account holder’s address, second line.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the user’s relationship with the bank account holder.

    Declaration

    Swift

    public func bankAccountRelationship(_ relationship: String) -> Builder

    Parameters

    relationship

    The RelationshipType

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s city.

    Declaration

    Swift

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

    Parameters

    city

    The bank account holder’s city.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s country.

    Declaration

    Swift

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

    Parameters

    country

    The bank account holder’s country.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s postal code.

    Declaration

    Swift

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

    Parameters

    postalCode

    The bank account holder’s postal code.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the shipping method for paper check.

    Declaration

    Swift

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

    Parameters

    shippingMethod

    The bank account holder’s postal code.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s state, province or region.

    Declaration

    Swift

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

    Parameters

    stateProvince

    The bank account holder’s state, province or region.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Declaration

    Swift

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

    Parameters

    profileType

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

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s last name.

    Declaration

    Swift

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

    Parameters

    lastName

    The bank account holder’s last name.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s middle name.

    Declaration

    Swift

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

    Parameters

    middleName

    The bank account holder’s middle name.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s cell phone number.

    Declaration

    Swift

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

    Parameters

    mobileNumber

    The bank account holder’s cell phone number.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s passport number.

    Declaration

    Swift

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

    Parameters

    passportId

    The bank account holder’s passport number.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s phone number.

    Declaration

    Swift

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

    Parameters

    phoneNumber

    The bank account holder’s phone number.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s birth country.

    Declaration

    Swift

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

    Parameters

    countryOfBirth

    The bank account holder’s birth country.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Declaration

    Swift

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

    Parameters

    countryOfNationality

    The bank account holder’s birth country.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s date of birth (All users must be at least 13 years old).

    Declaration

    Swift

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

    Parameters

    dateOfBirth

    The bank account holder’s date of birth

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s driver’s license number.

    Declaration

    Swift

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

    Parameters

    driversLicenseId

    The bank account holder’s driver’s license number.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s employer identifier, generally used for tax purposes.

    Declaration

    Swift

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

    Parameters

    employerId

    The bank account holder’s employer identifier, generally used for tax purposes.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s first name.

    Declaration

    Swift

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

    Parameters

    firstName

    The bank account holder’s first name.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s gender.

    Declaration

    Swift

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

    Parameters

    gender

    The bank account holder’s gender.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s government ID number, such as a Social Security Number.

    Declaration

    Swift

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

    Parameters

    governmentId

    The bank account holder’s government ID number, such as a Social Security Number.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s government ID type.

    Declaration

    Swift

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

    Parameters

    governmentIdType

    The bank account holder’s government ID type.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s role in the organization.

    Declaration

    Swift

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

    Parameters

    businessContactRole

    The bank account holder’s role in the organization.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the name of the bank account holder’s business.

    Declaration

    Swift

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

    Parameters

    businessName

    The name of the bank account holder’s business.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the country where the bank account holder’s business is registered.

    Declaration

    Swift

    public func businessRegistrationCountry(_ country: String) -> Builder

    Parameters

    businessRegistrationCountry

    The country where the bank account holder’s business is registered.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s business registration number or identifier, as assigned by the relevant government body.

    Declaration

    Swift

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

    Parameters

    businessRegistrationId

    The bank account holder’s business registration number or identifier, as assigned by the relevant government body.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the state, province or region where the bank account holder’s business is registered.

    Declaration

    Swift

    public func businessRegistrationStateProvince(_ stateProvince: String) -> Builder

    Parameters

    businessRegistrationStateProvince

    The state, province or region where the bank account holder’s business is registered.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Sets the bank account holder’s business type.

    Declaration

    Swift

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

    Parameters

    businessType

    The bank account holder’s business type.

    Return Value

    a self HyperwalletPaperCheck.Builder instance.

  • Builds a new instance of the HyperwalletPaperCheck.

    Declaration

    Swift

    public func build() -> HyperwalletPaperCheck

    Return Value

    a new instance of the HyperwalletPaperCheck.