Input for creating a payment session.
Name | Type | Description | Notes |
---|---|---|---|
billing_address | AddressInput | [optional] | |
customer | CustomerInput | [optional] | |
discount_total | MoneyInput | [optional] | |
external_reference | str | Your reference to identify the payment session. | [optional] |
items | List[ItemInput] | List of items that the customer is purchasing. | [optional] |
payment_capture_type | PaymentCaptureType | [optional] | |
payment_method | PaymentMethod | ||
requires_shipping | bool | Whether the customer is required to provide a shipping address. | [optional] [default to False] |
session_key | str | The unique identifier for the payment session. If the same session key has been used, the existing payment session will be updated with the new values. | |
shipping_address | AddressInput | [optional] | |
shipping_total | MoneyInput | [optional] | |
tax_total | MoneyInput | [optional] | |
total | MoneyInput |
from openapi_client.models.payment_session_create_input import PaymentSessionCreateInput
# TODO update the JSON string below
json = "{}"
# create an instance of PaymentSessionCreateInput from a JSON string
payment_session_create_input_instance = PaymentSessionCreateInput.from_json(json)
# print the JSON string representation of the object
print(PaymentSessionCreateInput.to_json())
# convert the object into a dict
payment_session_create_input_dict = payment_session_create_input_instance.to_dict()
# create an instance of PaymentSessionCreateInput from a dict
payment_session_create_input_from_dict = PaymentSessionCreateInput.from_dict(payment_session_create_input_dict)