@Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class CreditCardPaymentOption extends PaymentOption
Credit card Payment related details
Note: Objects should always be created or deserialized using the CreditCardPaymentOption.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the CreditCardPaymentOption.Builder
, which maintain a
set of all explicitly set fields called CreditCardPaymentOption.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
CreditCardPaymentOption.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CreditCardPaymentOption(String walletInstrumentId,
String walletTransactionId,
CreditCardType creditCardType,
String lastDigits,
String nameOnCard,
Date timeExpiration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CreditCardPaymentOption.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
CreditCardType |
getCreditCardType()
Credit card type.
|
String |
getLastDigits()
Last four digits of the card.
|
String |
getNameOnCard()
Name on the credit card.
|
Date |
getTimeExpiration()
Expired date of the credit card.
|
int |
hashCode() |
CreditCardPaymentOption.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getWalletInstrumentId, getWalletTransactionId
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public CreditCardPaymentOption(String walletInstrumentId, String walletTransactionId, CreditCardType creditCardType, String lastDigits, String nameOnCard, Date timeExpiration)
public static CreditCardPaymentOption.Builder builder()
Create a new builder.
public CreditCardPaymentOption.Builder toBuilder()
public CreditCardType getCreditCardType()
Credit card type.
public String getLastDigits()
Last four digits of the card.
public String getNameOnCard()
Name on the credit card.
public Date getTimeExpiration()
Expired date of the credit card.
public String toString()
toString
in class PaymentOption
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class PaymentOption
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class PaymentOption
public int hashCode()
hashCode
in class PaymentOption
Copyright © 2016–2024. All rights reserved.