PaypalPaymentOption

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

Bases: PaymentOption

PayPal Payment related details

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.

email_address

Gets the email_address of this PaypalPaymentOption.

ext_billing_agreement_id

Gets the ext_billing_agreement_id of this PaypalPaymentOption.

first_name

Gets the first_name of this PaypalPaymentOption.

last_name

Gets the last_name of this PaypalPaymentOption.

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 PaypalPaymentOption 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 PaypalPaymentOption object with values from keyword arguments. The default value of the payment_method attribute of this class is PAYPAL 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 PaypalPaymentOption.

  • wallet_transaction_id (str) – The value to assign to the wallet_transaction_id property of this PaypalPaymentOption.

  • payment_method (str) – The value to assign to the payment_method property of this PaypalPaymentOption. Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”

  • email_address (str) – The value to assign to the email_address property of this PaypalPaymentOption.

  • first_name (str) – The value to assign to the first_name property of this PaypalPaymentOption.

  • last_name (str) – The value to assign to the last_name property of this PaypalPaymentOption.

  • ext_billing_agreement_id (str) – The value to assign to the ext_billing_agreement_id property of this PaypalPaymentOption.

property email_address

Gets the email_address of this PaypalPaymentOption. The email address of the paypal user.

Returns

The email_address of this PaypalPaymentOption.

Return type

str

property ext_billing_agreement_id

Gets the ext_billing_agreement_id of this PaypalPaymentOption. Agreement id for the paypal account.

Returns

The ext_billing_agreement_id of this PaypalPaymentOption.

Return type

str

property first_name

Gets the first_name of this PaypalPaymentOption. First name of the paypal user.

Returns

The first_name of this PaypalPaymentOption.

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_name

Gets the last_name of this PaypalPaymentOption. Last name of the paypal user.

Returns

The last_name of this PaypalPaymentOption.

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