CreditCardPaymentDetail¶
- class oci.osp_gateway.models.CreditCardPaymentDetail(**kwargs)¶
Bases:
PaymentDetailCredit card Payment related details
Attributes:
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail.
A constant which can be used with the payment_method property of a PaymentDetail.
A constant which can be used with the payment_method property of a PaymentDetail.
A constant which can be used with the payment_method property of a PaymentDetail.
A constant which can be used with the payment_method property of a PaymentDetail.
Gets the amount_paid of this PaymentDetail.
Gets the credit_card_type of this CreditCardPaymentDetail.
Gets the last_digits of this CreditCardPaymentDetail.
Gets the name_on_card of this CreditCardPaymentDetail.
Gets the paid_by of this PaymentDetail.
[Required] Gets the payment_method of this PaymentDetail.
Gets the time_expiration of this CreditCardPaymentDetail.
Gets the time_paid_on of this PaymentDetail.
Methods:
__init__(**kwargs)Initializes a new CreditCardPaymentDetail object with values from keyword arguments.
get_subtype(object_dictionary)Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- CREDIT_CARD_TYPE_AMEX = 'AMEX'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “AMEX”
- CREDIT_CARD_TYPE_DINER = 'DINER'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “DINER”
- CREDIT_CARD_TYPE_DISCOVER = 'DISCOVER'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “DISCOVER”
- CREDIT_CARD_TYPE_ELO = 'ELO'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “ELO”
- CREDIT_CARD_TYPE_JCB = 'JCB'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “JCB”
- CREDIT_CARD_TYPE_MASTERCARD = 'MASTERCARD'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “MASTERCARD”
- CREDIT_CARD_TYPE_VISA = 'VISA'¶
A constant which can be used with the credit_card_type property of a CreditCardPaymentDetail. This constant has a value of “VISA”
- PAYMENT_METHOD_CREDIT_CARD = 'CREDIT_CARD'¶
A constant which can be used with the payment_method property of a PaymentDetail. This constant has a value of “CREDIT_CARD”
- PAYMENT_METHOD_ECHECK = 'ECHECK'¶
A constant which can be used with the payment_method property of a PaymentDetail. This constant has a value of “ECHECK”
- PAYMENT_METHOD_OTHER = 'OTHER'¶
A constant which can be used with the payment_method property of a PaymentDetail. This constant has a value of “OTHER”
- PAYMENT_METHOD_PAYPAL = 'PAYPAL'¶
A constant which can be used with the payment_method property of a PaymentDetail. This constant has a value of “PAYPAL”
- __init__(**kwargs)¶
Initializes a new CreditCardPaymentDetail object with values from keyword arguments. The default value of the
payment_methodattribute of this class isCREDIT_CARDand it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):- Parameters
time_paid_on (datetime) – The value to assign to the time_paid_on property of this CreditCardPaymentDetail.
paid_by (str) – The value to assign to the paid_by property of this CreditCardPaymentDetail.
payment_method (str) – The value to assign to the payment_method property of this CreditCardPaymentDetail. Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”, “ECHECK”, “OTHER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
amount_paid (float) – The value to assign to the amount_paid property of this CreditCardPaymentDetail.
name_on_card (str) – The value to assign to the name_on_card property of this CreditCardPaymentDetail.
credit_card_type (str) – The value to assign to the credit_card_type property of this CreditCardPaymentDetail. Allowed values for this property are: “VISA”, “AMEX”, “MASTERCARD”, “DISCOVER”, “JCB”, “DINER”, “ELO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
last_digits (str) – The value to assign to the last_digits property of this CreditCardPaymentDetail.
time_expiration (datetime) – The value to assign to the time_expiration property of this CreditCardPaymentDetail.
- property amount_paid¶
Gets the amount_paid of this PaymentDetail. Amount that paid
- Returns
The amount_paid of this PaymentDetail.
- Return type
float
- property credit_card_type¶
Gets the credit_card_type of this CreditCardPaymentDetail. Credit card type
Allowed values for this property are: “VISA”, “AMEX”, “MASTERCARD”, “DISCOVER”, “JCB”, “DINER”, “ELO”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The credit_card_type of this CreditCardPaymentDetail.
- Return type
str
- static get_subtype(object_dictionary)¶
Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.
- property last_digits¶
Gets the last_digits of this CreditCardPaymentDetail. Last four digits of the card
- Returns
The last_digits of this CreditCardPaymentDetail.
- Return type
str
- property name_on_card¶
Gets the name_on_card of this CreditCardPaymentDetail. Name on the credit card
- Returns
The name_on_card of this CreditCardPaymentDetail.
- Return type
str
- property paid_by¶
Gets the paid_by of this PaymentDetail. example
- Returns
The paid_by of this PaymentDetail.
- Return type
str
- property payment_method¶
[Required] Gets the payment_method of this PaymentDetail. Payment method
Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”, “ECHECK”, “OTHER”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The payment_method of this PaymentDetail.
- Return type
str
- property time_expiration¶
Gets the time_expiration of this CreditCardPaymentDetail. Expired date of the credit card
- Returns
The time_expiration of this CreditCardPaymentDetail.
- Return type
datetime
- property time_paid_on¶
Gets the time_paid_on of this PaymentDetail. Paid the invoice on this day
- Returns
The time_paid_on of this PaymentDetail.
- Return type
datetime