-
Creates a new instance of the
HyperwalletBankCard.Builder
based on the required parameter to update Bank card.Declaration
Swift
public init(token: String)
Parameters
token
The bank card token.
-
Creates a new instance of the
HyperwalletBankCard.Builder
based on the required parameters to create Bank card.Declaration
Swift
public init(transferMethodCountry: String, transferMethodCurrency: String, transferMethodProfileType: String)
Parameters
transferMethodCountry
The bank card country.
transferMethodCurrency
The bank card currency.
transferMethodProfileType
The method profile type
-
Builds a new instance of the
HyperwalletBankCard
.Declaration
Swift
public func build() -> HyperwalletBankCard
Return Value
a new instance of the
HyperwalletBankCard
. -
Sets the card number
Declaration
Swift
public func cardNumber(_ cardNumber: String) -> Builder
Parameters
cardNumber
The 16-digit card number
Return Value
a self reference of
HyperwalletBankCard.Builder
instance. -
Sets the card security code which is embossed or printed on the card.
Declaration
Swift
public func cvv(_ cvv: String) -> Builder
Parameters
cvv
the card security code which is embossed or printed on the card
Return Value
a self reference of
HyperwalletBankCard.Builder
instance. -
Sets the expiration date.
Declaration
Swift
public func dateOfExpiry(_ dateOfExpiry: String) -> Builder
Parameters
dateOfExpiry
the expiration date for the card (YYYY-MM).
Return Value
a self reference of
HyperwalletBankCard.Builder
instance.