Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, AuthorizationDetails):
return False
return self.__dict__ == other.__dict__
import re # noqa: F401
import six
import typing
from enum import Enum
from ask_sdk_model.interfaces.amazonpay.model.v1.authorization_details import AuthorizationDetails
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union
from datetime import datetime
from ask_sdk_model.interfaces.amazonpay.model.response.authorization_status import AuthorizationStatus
from ask_sdk_model.interfaces.amazonpay.model.response.destination import Destination
from ask_sdk_model.interfaces.amazonpay.model.response.price import Price
class AuthorizationDetails(AuthorizationDetails):
"""
This object encapsulates details about an Authorization object including the status, amount captured and fee charged.
:param amazon_authorization_id: This is AmazonPay generated identifier for this authorization transaction.
:type amazon_authorization_id: (optional) str
:param authorization_reference_id: This is 3P seller's identifier for this authorization transaction. This identifier must be unique for all of your authorization transactions.
:type authorization_reference_id: (optional) str
:param seller_authorization_note: A description for the transaction that is included in emails to the user. Appears only when AuthorizeAndCapture is chosen.
:type seller_authorization_note: (optional) str
:param authorization_amount:
:type authorization_amount: (optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price
:param captured_amount:
:type captured_amount: (optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price
:param authorization_fee:
:type authorization_fee: (optional) ask_sdk_model.interfaces.amazonpay.model.response.price.Price
:param expiration_timestamp: This is the time at which the authorization expires.
:type expiration_timestamp: (optional) datetime
:param authorization_status:
:type authorization_status: (optional) ask_sdk_model.interfaces.amazonpay.model.response.authorization_status.AuthorizationStatus
:param soft_decline: This indicates whether an authorization resulted in a soft decline.
:type soft_decline: (optional) bool
:param capture_now: This indicates whether a direct capture against the payment contract was specified.
:type capture_now: (optional) bool
:param soft_descriptor: This is the description to be shown on the buyer's payment instrument statement if AuthorizeAndCapture was chosen.
:type soft_descriptor: (optional) str
:param authorization_billing_address:
:type authorization_billing_address: (optional) ask_sdk_model.interfaces.amazonpay.model.response.destination.Destination
"""
self.__discriminator_value = None # type: str
super(AuthorizationDetails, self).__init__(amazon_authorization_id=amazon_authorization_id, authorization_reference_id=authorization_reference_id, seller_authorization_note=seller_authorization_note, authorization_amount=authorization_amount, captured_amount=captured_amount, authorization_fee=authorization_fee, id_list=id_list, creation_timestamp=creation_timestamp, expiration_timestamp=expiration_timestamp, authorization_status=authorization_status, soft_decline=soft_decline, capture_now=capture_now, soft_descriptor=soft_descriptor)
self.authorization_amount = authorization_amount
self.captured_amount = captured_amount
self.authorization_fee = authorization_fee
self.authorization_status = authorization_status
self.authorization_billing_address = authorization_billing_address