Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
#
import pprint
import re # noqa: F401
import six
import typing
from enum import Enum
from ask_sdk_model.interfaces.amazonpay.v1.amazon_pay_error_response import AmazonPayErrorResponse
if typing.TYPE_CHECKING:
from typing import Dict, List, Optional, Union
from datetime import datetime
class AmazonPayErrorResponse(AmazonPayErrorResponse):
"""
Error response for SetupAmazonPay and ChargeAmazonPay calls.
:param error_code: Error code indicating the succinct cause of error
:type error_code: (optional) str
:param error_message: Description of the error.
:type error_message: (optional) str
"""
deserialized_types = {
'error_code': 'str',
'error_message': 'str'
} # type: Dict
attribute_map = {
def __eq__(self, other):
# type: (object) -> bool
"""Returns true if both objects are equal"""
if not isinstance(other, AmazonPayErrorResponse):
return False
return self.__dict__ == other.__dict__
def __init__(self, error_code=None, error_message=None):
# type: (Optional[str], Optional[str]) -> None
"""Error response for SetupAmazonPay and ChargeAmazonPay calls.
:param error_code: Error code indicating the succinct cause of error
:type error_code: (optional) str
:param error_message: Description of the error.
:type error_message: (optional) str
"""
self.__discriminator_value = None # type: str
super(AmazonPayErrorResponse, self).__init__(error_code=error_code, error_message=error_message)