PaymentOption

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

Bases: object

Payment option of a subscription.

Attributes

PAYMENT_METHOD_CREDIT_CARD A constant which can be used with the payment_method property of a PaymentOption.
PAYMENT_METHOD_PAYPAL A constant which can be used with the payment_method property of a PaymentOption.
payment_method [Required] Gets the payment_method of this PaymentOption.
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 PaymentOption 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.
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 PaymentOption object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

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 PaymentOption.
  • wallet_transaction_id (str) – The value to assign to the wallet_transaction_id property of this PaymentOption.
  • payment_method (str) – The value to assign to the payment_method property of this PaymentOption. 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’.
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.

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