public class GooglePayCard extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GooglePayCard.Builder
Class to build instances of
GooglePayCard. |
| Constructor and Description |
|---|
GooglePayCard()
Default constructor.
|
GooglePayCard(String name,
String number,
String expiry,
String lastDigits,
CardType type,
CardBrand brand,
Address billingAddress)
Initialization constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
getBillingAddress()
Getter for BillingAddress.
|
CardBrand |
getBrand()
Getter for Brand.
|
String |
getExpiry()
Getter for Expiry.
|
String |
getLastDigits()
Getter for LastDigits.
|
String |
getName()
Getter for Name.
|
String |
getNumber()
Getter for Number.
|
CardType |
getType()
Getter for Type.
|
void |
setBillingAddress(Address billingAddress)
Setter for BillingAddress.
|
void |
setBrand(CardBrand brand)
Setter for Brand.
|
void |
setExpiry(String expiry)
Setter for Expiry.
|
void |
setLastDigits(String lastDigits)
Setter for LastDigits.
|
void |
setName(String name)
Setter for Name.
|
void |
setNumber(String number)
Setter for Number.
|
void |
setType(CardType type)
Setter for Type.
|
GooglePayCard.Builder |
toBuilder()
Builds a new
GooglePayCard.Builder object. |
String |
toString()
Converts this GooglePayCard into string format.
|
public GooglePayCard()
public GooglePayCard(String name, String number, String expiry, String lastDigits, CardType type, CardBrand brand, Address billingAddress)
name - String value for name.number - String value for number.expiry - String value for expiry.lastDigits - String value for lastDigits.type - CardType value for type.brand - CardBrand value for brand.billingAddress - Address value for billingAddress.public String getName()
public void setName(String name)
name - Value for Stringpublic String getNumber()
public void setNumber(String number)
number - Value for Stringpublic String getExpiry()
public void setExpiry(String expiry)
expiry - Value for Stringpublic String getLastDigits()
public void setLastDigits(String lastDigits)
lastDigits - Value for Stringpublic CardType getType()
public void setType(CardType type)
type - Value for CardTypepublic CardBrand getBrand()
public void setBrand(CardBrand brand)
brand - Value for CardBrandpublic Address getBillingAddress()
public void setBillingAddress(Address billingAddress)
billingAddress - Value for Addresspublic String toString()
public GooglePayCard.Builder toBuilder()
GooglePayCard.Builder object.
Creates the instance with the state of the current model.GooglePayCard.Builder objectCopyright © 2025. All rights reserved.