@Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class CreditCardPaymentDetail extends PaymentDetail
Credit card Payment related details
Note: Objects should always be created or deserialized using the CreditCardPaymentDetail.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 CreditCardPaymentDetail.Builder
, which maintain a
set of all explicitly set fields called CreditCardPaymentDetail.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 |
CreditCardPaymentDetail.Builder |
static class |
CreditCardPaymentDetail.CreditCardType
Credit card type
|
PaymentDetail.PaymentMethod
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
CreditCardPaymentDetail(Date timePaidOn,
String paidBy,
BigDecimal amountPaid,
String nameOnCard,
CreditCardPaymentDetail.CreditCardType creditCardType,
String lastDigits,
Date timeExpiration)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static CreditCardPaymentDetail.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
CreditCardPaymentDetail.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() |
CreditCardPaymentDetail.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
getAmountPaid, getPaidBy, getTimePaidOn
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public CreditCardPaymentDetail(Date timePaidOn, String paidBy, BigDecimal amountPaid, String nameOnCard, CreditCardPaymentDetail.CreditCardType creditCardType, String lastDigits, Date timeExpiration)
public static CreditCardPaymentDetail.Builder builder()
Create a new builder.
public CreditCardPaymentDetail.Builder toBuilder()
public String getNameOnCard()
Name on the credit card
public CreditCardPaymentDetail.CreditCardType getCreditCardType()
Credit card type
public String getLastDigits()
Last four digits of the card
public Date getTimeExpiration()
Expired date of the credit card
public String toString()
toString
in class PaymentDetail
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class PaymentDetail
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class PaymentDetail
public int hashCode()
hashCode
in class PaymentDetail
Copyright © 2016–2024. All rights reserved.