-
Creates a new instance of the
HyperwalletPayPalAccount
based on the required parameter to update PayPal account.Declaration
Swift
public init(token: String)
Parameters
token
The PayPal account token.
-
Creates a new instance of the
HyperwalletPrepaidCard
based on the required parameters to create prepaid card account.Declaration
Swift
public init(transferMethodProfileType: String)
Parameters
transferMethodProfileType
The prepaid card account holder’s profile type, e.g. INDIVIDUAL or BUSINESS
-
Sets the card package
Declaration
Swift
public func cardPackage(_ cardPackage: String) -> Builder
Parameters
cardPackage
The card package name or identifier. You must provide an exact cardPackage value that has been been configured for the program or leave it blank. If left blank, the default card package will be automatically selected.
Return Value
a self
HyperwalletPrepaidCard.Builder
instance. -
Sets userToken for an instant issue card
Declaration
Swift
public func userToken(_ userToken: String) -> Builder
Parameters
userToken
The unique, auto-generated user identifier. Max 64 characters, prefixed with “usr-”.
Return Value
a self
HyperwalletPrepaidCard.Builder
instance. -
Builds a new instance of the
HyperwalletPrepaidCard
.Declaration
Swift
public func build() -> HyperwalletPrepaidCard
Return Value
a new instance of the
HyperwalletPrepaidCard
.