ask_sdk_model.interfaces.amazonpay.model.response package¶
Submodules¶
Note
Canonical imports have been added in the __init__.py
of the package.
This helps in importing the class directly from the package, than
through the module.
For eg: if package a
has module b
with
class C
, you can do from a import C
instead of
from a.b import C
.
ask_sdk_model.interfaces.amazonpay.model.response.authorization_details module¶
Bases:
ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details.AuthorizationDetails
This object encapsulates details about an Authorization object including the status, amount captured and fee charged.
Parameters: - amazon_authorization_id ((optional) str) – This is AmazonPay generated identifier for this authorization transaction.
- authorization_reference_id ((optional) str) – This is 3P seller's identifier for this authorization transaction. This identifier must be unique for all of your authorization transactions.
- seller_authorization_note ((optional) str) – A description for the transaction that is included in emails to the user. Appears only when AuthorizeAndCapture is chosen.
- authorization_amount ((optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price) –
- captured_amount ((optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price) –
- authorization_fee ((optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price) –
- id_list ((optional) list[str]) – list of AmazonCaptureId identifiers that have been requested on this Authorization object.
- creation_timestamp ((optional) datetime) – This is the time at which the authorization was created.
- expiration_timestamp ((optional) datetime) – This is the time at which the authorization expires.
- authorization_status ((optional) ask_sdk_model.interfaces.amazonpay.model.response.authorization_status.AuthorizationStatus) –
- soft_decline ((optional) bool) – This indicates whether an authorization resulted in a soft decline.
- capture_now ((optional) bool) – This indicates whether a direct capture against the payment contract was specified.
- soft_descriptor ((optional) str) – This is the description to be shown on the buyer's payment instrument statement if AuthorizeAndCapture was chosen.
- authorization_billing_address ((optional) ask_sdk_model.interfaces.amazonpay.model.response.destination.Destination) –
Returns the model properties as a dict
Returns the string representation of the model
ask_sdk_model.interfaces.amazonpay.model.response.authorization_status module¶
Bases:
ask_sdk_model.interfaces.amazonpay.model.v1.authorization_status.AuthorizationStatus
Indicates the current status of an Authorization object, a Capture object, or a Refund object.
Parameters: - state ((optional) ask_sdk_model.interfaces.amazonpay.model.response.state.State) –
- reason_code ((optional) str) – The reason that the Authorization object, Capture object, or Refund object is in the current state. For more information, see - https://pay.amazon.com/us/developer/documentation/apireference/201752950
- reason_description ((optional) str) – Reason desciption corresponding to the reason code
- last_update_timestamp ((optional) datetime) – A timestamp that indicates the time when the authorization, capture, or refund state was last updated. In ISO 8601 format
Returns the model properties as a dict
Returns the string representation of the model
ask_sdk_model.interfaces.amazonpay.model.response.billing_agreement_details module¶
-
class
ask_sdk_model.interfaces.amazonpay.model.response.billing_agreement_details.
BillingAgreementDetails
(billing_agreement_id=None, creation_timestamp=None, destination=None, checkout_language=None, release_environment=None, billing_agreement_status=None, billing_address=None)¶ Bases:
ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_details.BillingAgreementDetails
The result attributes from successful SetupAmazonPay call.
Parameters: - billing_agreement_id ((optional) str) – Billing agreement id which can be used for one time and recurring purchases
- creation_timestamp ((optional) datetime) – Time at which billing agreement details created.
- destination ((optional) ask_sdk_model.interfaces.amazonpay.model.v1.destination.Destination) – The default shipping address of the buyer. Returned if needAmazonShippingAddress is set to true.
- checkout_language ((optional) str) – Merchant's preferred language of checkout.
- release_environment ((optional) ask_sdk_model.interfaces.amazonpay.model.response.release_environment.ReleaseEnvironment) –
- billing_agreement_status ((optional) ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status.BillingAgreementStatus) –
- billing_address ((optional) ask_sdk_model.interfaces.amazonpay.model.response.destination.Destination) – The Billing Address of the payment instrument associated with Billing Agreement.
-
attribute_map
= {'billing_address': 'billingAddress', 'billing_agreement_id': 'billingAgreementId', 'billing_agreement_status': 'billingAgreementStatus', 'checkout_language': 'checkoutLanguage', 'creation_timestamp': 'creationTimestamp', 'destination': 'destination', 'release_environment': 'releaseEnvironment'}¶
-
deserialized_types
= {'billing_address': 'ask_sdk_model.interfaces.amazonpay.model.response.destination.Destination', 'billing_agreement_id': 'str', 'billing_agreement_status': 'ask_sdk_model.interfaces.amazonpay.model.v1.billing_agreement_status.BillingAgreementStatus', 'checkout_language': 'str', 'creation_timestamp': 'datetime', 'destination': 'ask_sdk_model.interfaces.amazonpay.model.v1.destination.Destination', 'release_environment': 'ask_sdk_model.interfaces.amazonpay.model.response.release_environment.ReleaseEnvironment'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
ask_sdk_model.interfaces.amazonpay.model.response.destination module¶
-
class
ask_sdk_model.interfaces.amazonpay.model.response.destination.
Destination
(name=None, company_name=None, address_line1=None, address_line2=None, address_line3=None, city=None, district_or_county=None, state_or_region=None, postal_code=None, country_code=None, phone=None)¶ Bases:
ask_sdk_model.interfaces.amazonpay.model.v1.destination.Destination
Parameters: - name ((optional) str) – The name or business name
- company_name ((optional) str) – The company name
- address_line1 ((optional) str) – The first line of the address. At least one AddressLine (AddressLine1, AddressLine2, or AddressLine3) is required.
- address_line2 ((optional) str) – The second line of the address. At least one AddressLine (AddressLine1, AddressLine2, or AddressLine3) is required.
- address_line3 ((optional) str) – The third line of the address. At least one AddressLine (AddressLine1, AddressLine2, or AddressLine3) is required.
- city ((optional) str) – The city
- district_or_county ((optional) str) – The district or County
- state_or_region ((optional) str) – The state or region. This element is free text and can be either a 2-character code, fully spelled out, or abbreviated. Required. Note :- This response element is returned only in the U.S.
- postal_code ((optional) str) – The postal code.
- country_code ((optional) str) – The country code, in ISO 3166 format
- phone ((optional) str) – The phone number
-
attribute_map
= {'address_line1': 'addressLine1', 'address_line2': 'addressLine2', 'address_line3': 'addressLine3', 'city': 'city', 'company_name': 'companyName', 'country_code': 'countryCode', 'district_or_county': 'districtOrCounty', 'name': 'name', 'phone': 'phone', 'postal_code': 'postalCode', 'state_or_region': 'stateOrRegion'}¶
-
deserialized_types
= {'address_line1': 'str', 'address_line2': 'str', 'address_line3': 'str', 'city': 'str', 'company_name': 'str', 'country_code': 'str', 'district_or_county': 'str', 'name': 'str', 'phone': 'str', 'postal_code': 'str', 'state_or_region': 'str'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
ask_sdk_model.interfaces.amazonpay.model.response.price module¶
-
class
ask_sdk_model.interfaces.amazonpay.model.response.price.
Price
(amount=None, currency_code=None)¶ Bases:
ask_sdk_model.interfaces.amazonpay.model.v1.price.Price
This response object specifies amount and currency authorized/captured.
Parameters: -
attribute_map
= {'amount': 'amount', 'currency_code': 'currencyCode'}¶
-
deserialized_types
= {'amount': 'str', 'currency_code': 'str'}¶
-
supports_multiple_types
= False¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
ask_sdk_model.interfaces.amazonpay.model.response.release_environment module¶
-
class
ask_sdk_model.interfaces.amazonpay.model.response.release_environment.
ReleaseEnvironment
¶ Bases:
enum.Enum
Indicates if the contract is for a Live (Production) or Sandbox environment.
Allowed enum values: [LIVE, SANDBOX]
-
LIVE
= 'LIVE'¶
-
SANDBOX
= 'SANDBOX'¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-
ask_sdk_model.interfaces.amazonpay.model.response.state module¶
-
class
ask_sdk_model.interfaces.amazonpay.model.response.state.
State
¶ Bases:
enum.Enum
Indicates the state that the Authorization object is in. For more information see “Authorization states and reason codes” under “States and reason codes” section in Amazon Pay API Reference Guide.
Allowed enum values: [Pending, Open, Declined, Closed]
-
Closed
= 'Closed'¶
-
Declined
= 'Declined'¶
-
Open
= 'Open'¶
-
Pending
= 'Pending'¶
-
to_dict
()¶ Returns the model properties as a dict
-
to_str
()¶ Returns the string representation of the model
-