-
Sets the user’s street address.
Declaration
Swift
public func addressLine1(_ addressLine1: String) -> Builder
Parameters
addressLine1
The user’s street address
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s address, second line.
Declaration
Swift
public func addressLine2(_ addressLine2: String) -> Builder
Parameters
addressLine2
The user’s address, second line.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Builds a new instance of the
HyperwalletUser
.Declaration
Swift
public func build() -> HyperwalletUser
Return Value
a new instance of the
HyperwalletUser
. -
Sets the business contact’s street address.
Declaration
Swift
public func businessContactAddressLine1(_ businessContactAddressLine1: String) -> Builder
Parameters
businessContactAddressLine1
The business contact’s street address.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business contact’s address, second line.
Declaration
Swift
public func businessContactAddressLine2(_ businessContactAddressLine2: String) -> Builder
Parameters
businessContactAddressLine2
The business contact’s address, second line.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business contact’s city.
Declaration
Swift
public func businessContactCity(_ businessContactCity: String) -> Builder
Parameters
businessContactCity
The business contact’s city.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business contact’s country.
Declaration
Swift
public func businessContactCountry(_ businessContactCountry: String) -> Builder
Parameters
businessContactCountry
The business contact’s city.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business contact’s postal code.
Declaration
Swift
public func businessContactPostalCode(_ businessContactPostalCode: String) -> Builder
Parameters
businessContactPostalCode
The business contact’s postal code.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s role in the organization.
Declaration
Swift
public func businessContactRole(_ businessContactRole: BusinessContactRole) -> Builder
Parameters
businessContactPostalCode
The
BusinessContactRole
.Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business contact’s state, province or region.
Declaration
Swift
public func businessContactStateProvince(_ businessContactStateProvince: String) -> Builder
Parameters
businessContactStateProvince
The business contact’s state, province or region.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business name.
Declaration
Swift
public func businessName(_ businessName: String) -> Builder
Parameters
businessName
The business name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business’ operating name.
Declaration
Swift
public func businessOperatingName(_ businessOperatingName: String) -> Builder
Parameters
businessName
The business’ operating name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the country where the business is registered.
Declaration
Swift
public func businessRegistrationCountry(_ businessRegistrationCountry: String) -> Builder
Parameters
businessRegistrationCountry
The country where the business is registered.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business registration number or identifier assigned by a government body.
Declaration
Swift
public func businessRegistrationId(_ businessRegistrationId: String) -> Builder
Parameters
businessRegistrationId
The business registration number or identifier assigned by a government body.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the state, province or region where the business is registered.
Declaration
Swift
public func businessRegistrationStateProvince(_ businessRegistrationStateProvince: String) -> Builder
Parameters
businessRegistrationStateProvince
The business registration number or identifier assigned by a government body.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the business type.
Declaration
Swift
public func businessType(_ businessType: BusinessType) -> Builder
Parameters
businessRegistrationStateProvince
The
BusinessType
.Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s city.
Declaration
Swift
public func city(_ city: String) -> Builder
Parameters
city
The user’s city.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s country.
Declaration
Swift
public func country(_ country: String) -> Builder
Parameters
country
The user’s country.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s birth country.
Declaration
Swift
public func countryOfBirth(_ countryOfBirth: String) -> Builder
Parameters
country
The user’s birth country.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s country of citizenship or nationality.
Declaration
Swift
public func countryOfNationality(_ countryOfNationality: String) -> Builder
Parameters
countryOfNationality
The user’s country of citizenship or nationality.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the datetime the user account was created on in ISO 8601 format (YYYY-MM-DDThh:mm:ss). Note that the timezone used is UTC, therefore no time offset is returned.
Declaration
Swift
public func createdOn(_ createdOn: String) -> Builder
Parameters
createdOn
The datetime the user account was created on in ISO 8601 format (YYYY-MM-DDThh:mm:ss). Note that the timezone used is UTC, therefore no time offset is returned.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s date of birth (All users must be at least 13 years old).
Declaration
Swift
public func dateOfBirth(_ dateOfBirth: String) -> Builder
Parameters
dateOfBirth
The user’s date of birth (All users must be at least 13 years old).
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s driver’s license number.
Declaration
Swift
public func driversLicenseId(_ driversLicenseId: String) -> Builder
Parameters
driversLicenseId
The user’s driver’s license number.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the contact email address for the user account. This must be unique for your program, so you cannot have two users belonging to the same program with the same email address.
Declaration
Swift
public func email(_ email: String) -> Builder
Parameters
driversLicenseId
the contact email address for the user account. This must be unique for your program, so you cannot have two users belonging to the same program with the same email address.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s employer identifier, generally used for tax purposes.
Declaration
Swift
public func employerId(_ employerId: String) -> Builder
Parameters
employerId
The user’s employer identifier, generally used for tax purposes.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s first name.
Declaration
Swift
public func firstName(_ firstName: String) -> Builder
Parameters
firstName
The user’s first name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s government ID number, such as a Social Security Number.
Declaration
Swift
public func governmentId(_ governmentId: String) -> Builder
Parameters
governmentId
The user’s government ID number, such as a Social Security Number.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s government ID type.
Declaration
Swift
public func governmentIdType(_ governmentIdType: String) -> Builder
Parameters
governmentIdType
The user’s government ID type.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the preferred language for the user’s account. Defaults to English if not provided.
Declaration
Swift
public func language(_ language: String) -> Builder
Parameters
language
The preferred language for the user’s account. Defaults to English if not provided.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s last name.
Declaration
Swift
public func lastName(_ lastName: String) -> Builder
Parameters
lastName
The user’s last name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s middle name.
Declaration
Swift
public func middleName(_ middleName: String) -> Builder
Parameters
middleName
The user’s middle name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s cell phone number.
Declaration
Swift
public func mobileNumber(_ mobileNumber: String) -> Builder
Parameters
middleName
The user’s middle name.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s passport number.
Declaration
Swift
public func passportId(_ passportId: String) -> Builder
Parameters
passportId
The user’s passport number.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s phone number.
Declaration
Swift
public func phoneNumber(_ phoneNumber: String) -> Builder
Parameters
passportId
The user’s phone number.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s postal code.
Declaration
Swift
public func postalCode(_ postalCode: String) -> Builder
Parameters
postalCode
The user’s postal code.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user’s profile type.
Declaration
Swift
public func profileType(_ profileType: ProfileType) -> Builder
Parameters
profileType
The
ProfileType
.Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the unique identifier for the program to which the user will belong.
Declaration
Swift
public func programToken(_ programToken: String) -> Builder
Parameters
programToken
The unique identifier for the program to which the user will belong.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the field value based on the
UserField.RawValue
Declaration
Swift
public func setField(key: UserField.RawValue, value: String) -> Builder
Parameters
key
The
UserField.RawValue
valuevalue
The value
-
Sets the user’s state, province or region.
Declaration
Swift
public func stateProvince(_ stateProvince: String) -> Builder
Parameters
stateProvince
The user’s state, province or region.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the user account status.
Declaration
Swift
public func status(_ status: Status) -> Builder
Parameters
status
The user’s state, province or region.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the local time of a region or a country. e.g. GMT, PST, …
Declaration
Swift
public func timeZone(_ timeZone: String) -> Builder
Parameters
timeZone
The local time of a region or a country.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the unique, auto-generated user identifier. Max 64 characters, prefixed with “usr-”.
Declaration
Swift
public func token(_ token: String) -> Builder
Parameters
token
The unique, auto-generated user identifier. Max 64 characters, prefixed with “usr-”.
Return Value
a self reference of
HyperwalletUser.Builder
instance. -
Sets the the user’s verification status. A user may be required to verify their identity after a certain threshold of payments is reached.
Declaration
Swift
public func verificationStatus(_ verificationStatus: VerificationStatus) -> Builder
Parameters
verificationStatus
The user’s verification status. A user may be required to verify their identity after a certainthreshold of payments is reached.
Return Value
a self reference of
HyperwalletUser.Builder
instance.