-
Creates a new instance of the
HyperwalletBankAccount.Builderbased on the required parameter to update Bank account.Declaration
Swift
public init(token: String)Parameters
tokenThe unique, auto-generated user identifier. Max 64 characters, prefixed with “usr-”.
-
Creates a new instance of the
HyperwalletBankAccount.Builderbased on the required parameters to create Bank account.Declaration
Swift
public init(transferMethodCountry: String, transferMethodCurrency: String, transferMethodProfileType: String, transferMethodType: String)Parameters
transferMethodCountryThe bank account country.
transferMethodCurrencyThe bank account currency.
transferMethodProfileTypeThe bank account holder’s profile type, e.g. INDIVIDUAL or BUSINESS
transferMethodTypeThe bank account type, e.g. BANK_ACCOUNT or WIRE_ACCOUNT
-
Sets the bank account holder’s street address.
Declaration
Swift
public func addressLine1(_ addressLine1: String) -> BuilderParameters
addressLine1The bank account holder’s street address.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s address, second line.
Declaration
Swift
public func addressLine2(_ addressLine2: String) -> BuilderParameters
addressLine2The bank account holder’s address, second line.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account number, IBAN or equivalent. If you are providing an IBAN, the first two letters of the IBAN must match the
transferMethodCountryDeclaration
Swift
public func bankAccountId(_ bankAccountId: String) -> BuilderParameters
bankAccountIdThe bank account number, IBAN or equivalent.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the purpose of the bank account (e.g. checking, savings, etc).
Declaration
Swift
public func bankAccountPurpose(_ purpose: String) -> BuilderParameters
purposeThe
PurposeTypeReturn Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the user’s relationship with the bank account holder.
Declaration
Swift
public func bankAccountRelationship(_ relationship: String) -> BuilderParameters
relationshipThe
RelationshipTypeReturn Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank code or equivalent (e.g. BIC/SWIFT code).
Declaration
Swift
public func bankId(_ bankId: String) -> BuilderParameters
bankIdThe bank code or equivalent (e.g. BIC/SWIFT code)
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank name.
Declaration
Swift
public func bankName(_ bankName: String) -> BuilderParameters
bankNameThe bank name
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the branch code, transit number, routing number or equivalent.
Declaration
Swift
public func branchId(_ branchId: String) -> BuilderParameters
branchIdThe branch code, transit number, routing number or equivalent.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the branch name.
Declaration
Swift
public func branchName(_ branchName: String) -> BuilderParameters
branchNameThe branch name.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s role in the organization.
Declaration
Swift
public func businessContactRole(_ businessContactRole: String) -> BuilderParameters
businessContactRoleThe bank account holder’s role in the organization.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the name of the bank account holder’s business.
Declaration
Swift
public func businessName(_ businessName: String) -> BuilderParameters
businessNameThe name of the bank account holder’s business.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the country where the bank account holder’s business is registered.
Declaration
Swift
public func businessRegistrationCountry(_ country: String) -> BuilderParameters
businessRegistrationCountryThe country where the bank account holder’s business is registered.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
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) -> BuilderParameters
businessRegistrationIdThe bank account holder’s business registration number or identifier, as assigned by the relevant government body.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the state, province or region where the bank account holder’s business is registered.
Declaration
Swift
public func businessRegistrationStateProvince(_ stateProvince: String) -> BuilderParameters
businessRegistrationStateProvinceThe state, province or region where the bank account holder’s business is registered.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s business type.
Declaration
Swift
public func businessType(_ businessType: String) -> BuilderParameters
businessTypeThe bank account holder’s business type.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s city.
Declaration
Swift
public func city(_ city: String) -> BuilderParameters
cityThe bank account holder’s city.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s country.
Declaration
Swift
public func country(_ country: String) -> BuilderParameters
countryThe bank account holder’s country.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s birth country.
Declaration
Swift
public func countryOfBirth(_ countryOfBirth: String) -> BuilderParameters
countryOfBirthThe bank account holder’s birth country.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Declaration
Swift
public func countryOfNationality(_ countryOfNationality: String) -> BuilderParameters
countryOfNationalityThe bank account holder’s birth country.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
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) -> BuilderParameters
dateOfBirthThe bank account holder’s date of birth
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s driver’s license number.
Declaration
Swift
public func driversLicenseId(_ driversLicenseId: String) -> BuilderParameters
driversLicenseIdThe bank account holder’s driver’s license number.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s employer identifier, generally used for tax purposes.
Declaration
Swift
public func employerId(_ employerId: String) -> BuilderParameters
employerIdThe bank account holder’s employer identifier, generally used for tax purposes.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s first name.
Declaration
Swift
public func firstName(_ firstName: String) -> BuilderParameters
firstNameThe bank account holder’s first name.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s gender.
Declaration
Swift
public func gender(_ gender: String) -> BuilderParameters
genderThe bank account holder’s gender.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s government ID number, such as a Social Security Number.
Declaration
Swift
public func governmentId(_ governmentId: String) -> BuilderParameters
governmentIdThe bank account holder’s government ID number, such as a Social Security Number.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s government ID type.
Declaration
Swift
public func governmentIdType(_ governmentIdType: String) -> BuilderParameters
governmentIdTypeThe bank account holder’s government ID type.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the account number at the intermediary bank.
Declaration
Swift
public func intermediaryBankAccountId(_ accountId: String) -> BuilderParameters
intermediaryBankAccountIdThe account number at the intermediary bank.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank street address.
Declaration
Swift
public func intermediaryBankAddressLine1(_ addressLine1: String) -> BuilderParameters
intermediaryBankAddressLine1The intermediary bank street address.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank street address, second line.
Declaration
Swift
public func intermediaryBankAddressLine2(_ addressLine2: String) -> BuilderParameters
intermediaryBankAddressLine2The intermediary bank street address, second line.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank city.
Declaration
Swift
public func intermediaryBankCity(_ city: String) -> BuilderParameters
intermediaryBankCityThe intermediary bank city.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank country.
Declaration
Swift
public func intermediaryBankCountry(_ country: String) -> BuilderParameters
intermediaryBankCountryThe intermediary bank country.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank’s 11-character SWIFT code.
Declaration
Swift
public func intermediaryBankId(_ intermediaryBankId: String) -> BuilderParameters
intermediaryBankIdThe intermediary bank’s 11-character SWIFT code.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank name.
Declaration
Swift
public func intermediaryBankName(_ name: String) -> BuilderParameters
intermediaryBankNameThe intermediary bank name.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank postal code.
Declaration
Swift
public func intermediaryBankPostalCode(_ postalCode: String) -> BuilderParameters
intermediaryBankPostalCodeThe intermediary bank postal code.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the intermediary bank state, province or region.
Declaration
Swift
public func intermediaryBankStateProvince(_ stateProvince: String) -> BuilderParameters
intermediaryBankStateProvinceThe intermediary bank state, province or region.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s last name.
Declaration
Swift
public func lastName(_ lastName: String) -> BuilderParameters
lastNameThe bank account holder’s last name.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s middle name.
Declaration
Swift
public func middleName(_ middleName: String) -> BuilderParameters
middleNameThe bank account holder’s middle name.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s cell phone number.
Declaration
Swift
public func mobileNumber(_ mobileNumber: String) -> BuilderParameters
mobileNumberThe bank account holder’s cell phone number.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s passport number.
Declaration
Swift
public func passportId(_ passportId: String) -> BuilderParameters
passportIdThe bank account holder’s passport number.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s phone number.
Declaration
Swift
public func phoneNumber(_ phoneNumber: String) -> BuilderParameters
phoneNumberThe bank account holder’s phone number.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s postal code.
Declaration
Swift
public func postalCode(_ postalCode: String) -> BuilderParameters
postalCodeThe bank account holder’s postal code.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s profile type.
Declaration
Swift
public func profileType(_ profileType: String) -> BuilderParameters
profileTypeThe bank account holder’s profile type, e.g. INDIVIDUAL or BUSINESS
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the bank account holder’s state, province or region.
Declaration
Swift
public func stateProvince(_ stateProvince: String) -> BuilderParameters
stateProvinceThe bank account holder’s state, province or region.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets the type of transfer method, e.g. BANK_ACCOUNT or WIRE_ACCOUNT.
Declaration
Swift
public func type(_ type: String) -> BuilderParameters
typeThe type of transfer method, e.g. BANK_ACCOUNT or WIRE_ACCOUNT.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Sets wire transfer instructions.
Declaration
Swift
public func wireInstructions(_ wireInstructions: String) -> BuilderParameters
wireInstructionsWire transfer instructions.
Return Value
a self
HyperwalletBankAccount.Builderinstance. -
Builds a new instance of the
HyperwalletBankAccount.Declaration
Swift
public func build() -> HyperwalletBankAccountReturn Value
a new instance of the
HyperwalletBankAccount.
View on GitHub