PaypalPaymentDetail¶
- class oci.osp_gateway.models.PaypalPaymentDetail(**kwargs)¶
Bases:
PaymentDetailPayPal Payment related details
Attributes:
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 paid_by of this PaymentDetail.
[Required] Gets the payment_method of this PaymentDetail.
Gets the paypal_id of this PaypalPaymentDetail.
Gets the paypal_reference of this PaypalPaymentDetail.
Gets the time_paid_on of this PaymentDetail.
Methods:
__init__(**kwargs)Initializes a new PaypalPaymentDetail 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 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 PaypalPaymentDetail object with values from keyword arguments. The default value of the
payment_methodattribute of this class isPAYPALand 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 PaypalPaymentDetail.
paid_by (str) – The value to assign to the paid_by property of this PaypalPaymentDetail.
payment_method (str) – The value to assign to the payment_method property of this PaypalPaymentDetail. Allowed values for this property are: “CREDIT_CARD”, “PAYPAL”, “ECHECK”, “OTHER”
amount_paid (float) – The value to assign to the amount_paid property of this PaypalPaymentDetail.
paypal_id (str) – The value to assign to the paypal_id property of this PaypalPaymentDetail.
paypal_reference (str) – The value to assign to the paypal_reference property of this PaypalPaymentDetail.
- property amount_paid¶
Gets the amount_paid of this PaymentDetail. Amount that paid
- Returns
The amount_paid of this PaymentDetail.
- Return type
float
- 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 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 paypal_id¶
Gets the paypal_id of this PaypalPaymentDetail. The id (email address) of the paypal payment
- Returns
The paypal_id of this PaypalPaymentDetail.
- Return type
str
- property paypal_reference¶
Gets the paypal_reference of this PaypalPaymentDetail. paypal payment reference
- Returns
The paypal_reference of this PaypalPaymentDetail.
- Return type
str
- 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