CreditCardPaymentOption¶
- class oci.osp_gateway.models.CreditCardPaymentOption(**kwargs)¶
Bases:
PaymentOptionCredit card Payment related details
Attributes:
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
A constant which can be used with the payment_method property of a PaymentOption.
A constant which can be used with the payment_method property of a PaymentOption.
Gets the credit_card_type of this CreditCardPaymentOption.
Gets the last_digits of this CreditCardPaymentOption.
Gets the name_on_card of this CreditCardPaymentOption.
[Required] Gets the payment_method of this PaymentOption.
Gets the time_expiration of this CreditCardPaymentOption.
Gets the wallet_instrument_id of this PaymentOption.
Gets the wallet_transaction_id of this PaymentOption.
Methods:
__init__(**kwargs)Initializes a new CreditCardPaymentOption 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 CreditCardPaymentOption. 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 PaymentOption. This constant has a value of “CREDIT_CARD”
- PAYMENT_METHOD_PAYPAL = 'PAYPAL'¶
A constant which can be used with the payment_method property of a PaymentOption. This constant has a value of “PAYPAL”
- __init__(**kwargs)¶
Initializes a new CreditCardPaymentOption 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
wallet_instrument_id (str) – The value to assign to the wallet_instrument_id property of this CreditCardPaymentOption.
wallet_transaction_id (str) – The value to assign to the wallet_transaction_id property of this CreditCardPaymentOption.
payment_method (str) – The value to assign to the payment_method property of this CreditCardPaymentOption. Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
credit_card_type (str) – The value to assign to the credit_card_type property of this CreditCardPaymentOption. 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 CreditCardPaymentOption.
name_on_card (str) – The value to assign to the name_on_card property of this CreditCardPaymentOption.
time_expiration (datetime) – The value to assign to the time_expiration property of this CreditCardPaymentOption.
- property credit_card_type¶
Gets the credit_card_type of this CreditCardPaymentOption. 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 CreditCardPaymentOption.
- 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 CreditCardPaymentOption. Last four digits of the card.
- Returns
The last_digits of this CreditCardPaymentOption.
- Return type
str
- property name_on_card¶
Gets the name_on_card of this CreditCardPaymentOption. Name on the credit card.
- Returns
The name_on_card of this CreditCardPaymentOption.
- Return type
str
- property payment_method¶
[Required] Gets the payment_method of this PaymentOption. Payment method
Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The payment_method of this PaymentOption.
- Return type
str
- property time_expiration¶
Gets the time_expiration of this CreditCardPaymentOption. Expired date of the credit card.
- Returns
The time_expiration of this CreditCardPaymentOption.
- Return type
datetime
- property wallet_instrument_id¶
Gets the wallet_instrument_id of this PaymentOption. Wallet instrument internal id.
- Returns
The wallet_instrument_id of this PaymentOption.
- Return type
str
- property wallet_transaction_id¶
Gets the wallet_transaction_id of this PaymentOption. Wallet transaction id.
- Returns
The wallet_transaction_id of this PaymentOption.
- Return type
str