Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, amount=None, currency_code=None):
# type: (Optional[str], Optional[str]) -> None
"""This response object specifies amount and currency authorized/captured.
:param amount: Amount authorized/captured.
:type amount: (optional) str
:param currency_code: Currency code for the amount.
:type currency_code: (optional) str
"""
self.__discriminator_value = None # type: str
super(Price, self).__init__(amount=amount, currency_code=currency_code)
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, Price):
return False
return self.__dict__ == other.__dict__
#
import pprint
import re # noqa: F401
import six
import typing
from enum import Enum
from ask_sdk_model.interfaces.amazonpay.model.v1.price import Price
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union
from datetime import datetime
class Price(Price):
"""
This response object specifies amount and currency authorized/captured.
:param amount: Amount authorized/captured.
:type amount: (optional) str
:param currency_code: Currency code for the amount.
:type currency_code: (optional) str
"""
deserialized_types = {
'amount': 'str',
'currency_code': 'str'
} # type: Dict
attribute_map = {