|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Generated by: https://openapi-generator.tech |
| 5 | +""" |
| 6 | + |
| 7 | +import pprint |
| 8 | +import re # noqa: F401 |
| 9 | + |
| 10 | +import six |
| 11 | + |
| 12 | +from regula.documentreader.webclient.gen.configuration import Configuration |
| 13 | +# this line was added to enable pycharm type hinting |
| 14 | +from regula.documentreader.webclient.gen.models import * |
| 15 | + |
| 16 | + |
| 17 | +""" |
| 18 | +
|
| 19 | +""" |
| 20 | +class ImageTransactionData(object): |
| 21 | + """NOTE: This class is auto generated by OpenAPI Generator. |
| 22 | + Ref: https://openapi-generator.tech |
| 23 | +
|
| 24 | + Do not edit the class manually. |
| 25 | + """ |
| 26 | + |
| 27 | + """ |
| 28 | + Attributes: |
| 29 | + openapi_types (dict): The key is attribute name |
| 30 | + and the value is attribute type. |
| 31 | + attribute_map (dict): The key is attribute name |
| 32 | + and the value is json key in definition. |
| 33 | + """ |
| 34 | + openapi_types = { |
| 35 | + 'image': 'ImagesFieldValue' |
| 36 | + } |
| 37 | + |
| 38 | + attribute_map = { |
| 39 | + 'image': 'image' |
| 40 | + } |
| 41 | + |
| 42 | + def __init__(self, image=None, local_vars_configuration=None): # noqa: E501 |
| 43 | + """ImageTransactionData - a model defined in OpenAPI""" # noqa: E501 |
| 44 | + if local_vars_configuration is None: |
| 45 | + local_vars_configuration = Configuration() |
| 46 | + self.local_vars_configuration = local_vars_configuration |
| 47 | + |
| 48 | + self._image = None |
| 49 | + self.discriminator = None |
| 50 | + |
| 51 | + if image is not None: |
| 52 | + self.image = image |
| 53 | + |
| 54 | + @property |
| 55 | + def image(self): |
| 56 | + """Gets the image of this ImageTransactionData. # noqa: E501 |
| 57 | +
|
| 58 | +
|
| 59 | + :return: The image of this ImageTransactionData. # noqa: E501 |
| 60 | + :rtype: ImagesFieldValue |
| 61 | + """ |
| 62 | + return self._image |
| 63 | + |
| 64 | + @image.setter |
| 65 | + def image(self, image): |
| 66 | + """Sets the image of this ImageTransactionData. |
| 67 | +
|
| 68 | +
|
| 69 | + :param image: The image of this ImageTransactionData. # noqa: E501 |
| 70 | + :type image: ImagesFieldValue |
| 71 | + """ |
| 72 | + |
| 73 | + self._image = image |
| 74 | + |
| 75 | + def to_dict(self): |
| 76 | + """Returns the model properties as a dict""" |
| 77 | + result = {} |
| 78 | + |
| 79 | + for attr, _ in six.iteritems(self.openapi_types): |
| 80 | + value = getattr(self, attr) |
| 81 | + if isinstance(value, list): |
| 82 | + result[attr] = list(map( |
| 83 | + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, |
| 84 | + value |
| 85 | + )) |
| 86 | + elif hasattr(value, "to_dict"): |
| 87 | + result[attr] = value.to_dict() |
| 88 | + elif isinstance(value, dict): |
| 89 | + result[attr] = dict(map( |
| 90 | + lambda item: (item[0], item[1].to_dict()) |
| 91 | + if hasattr(item[1], "to_dict") else item, |
| 92 | + value.items() |
| 93 | + )) |
| 94 | + else: |
| 95 | + result[attr] = value |
| 96 | + |
| 97 | + return result |
| 98 | + |
| 99 | + def to_str(self): |
| 100 | + """Returns the string representation of the model""" |
| 101 | + return pprint.pformat(self.to_dict()) |
| 102 | + |
| 103 | + def __repr__(self): |
| 104 | + """For `print` and `pprint`""" |
| 105 | + return self.to_str() |
| 106 | + |
| 107 | + def __eq__(self, other): |
| 108 | + """Returns true if both objects are equal""" |
| 109 | + if not isinstance(other, ImageTransactionData): |
| 110 | + return False |
| 111 | + |
| 112 | + return self.to_dict() == other.to_dict() |
| 113 | + |
| 114 | + def __ne__(self, other): |
| 115 | + """Returns true if both objects are not equal""" |
| 116 | + if not isinstance(other, ImageTransactionData): |
| 117 | + return True |
| 118 | + |
| 119 | + return self.to_dict() != other.to_dict() |
0 commit comments