CreditCardPaymentOption

class oci.osp_gateway.models.CreditCardPaymentOption(**kwargs)

Bases: oci.osp_gateway.models.payment_option.PaymentOption

Credit card Payment related details

Attributes

CREDIT_CARD_TYPE_AMEX A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_DINER A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_DISCOVER A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_ELO A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_JCB A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_MASTERCARD A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
CREDIT_CARD_TYPE_VISA A constant which can be used with the credit_card_type property of a CreditCardPaymentOption.
PAYMENT_METHOD_CREDIT_CARD str(object=’’) -> str
PAYMENT_METHOD_PAYPAL str(object=’’) -> str
credit_card_type Gets the credit_card_type of this CreditCardPaymentOption.
last_digits Gets the last_digits of this CreditCardPaymentOption.
name_on_card Gets the name_on_card of this CreditCardPaymentOption.
payment_method [Required] Gets the payment_method of this PaymentOption.
time_expiration Gets the time_expiration of this CreditCardPaymentOption.
wallet_instrument_id Gets the wallet_instrument_id of this PaymentOption.
wallet_transaction_id 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'
PAYMENT_METHOD_PAYPAL = 'PAYPAL'
__init__(**kwargs)

Initializes a new CreditCardPaymentOption object with values from keyword arguments. The default value of the payment_method attribute of this class is CREDIT_CARD and 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.
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.

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
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
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
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
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
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