-
Creates a new instance of the
HyperwalletPayPalAccountbased on the required parameter to update PayPal account.Declaration
Swift
public init(token: String)Parameters
tokenThe PayPal account token.
-
Creates a new instance of the
HyperwalletPayPalAccountbased on the required parameters to create PayPal account.Declaration
Swift
public init(transferMethodCountry: String, transferMethodCurrency: String, transferMethodProfileType: String)Parameters
transferMethodCountryThe PayPal account country.
transferMethodCurrencyThe PayPal account currency.
transferMethodProfileTypeThe bank account holder’s profile type, e.g. INDIVIDUAL or BUSINESS
-
Sets the email address
Declaration
Swift
public func email(_ email: String) -> BuilderParameters
emailThe email address user want to create a PayPal account
Return Value
a self
HyperwalletPayPalAccount.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. -
Builds a new instance of the
HyperwalletPayPalAccount.Declaration
Swift
public func build() -> HyperwalletPayPalAccountReturn Value
a new instance of the
HyperwalletPayPalAccount.
View on GitHub