|
| 1 | +# coding: utf-8 |
| 2 | + |
| 3 | +""" |
| 4 | + Xero Accounting API |
| 5 | +
|
| 6 | + No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 |
| 7 | +
|
| 8 | + |
| 9 | + Generated by: https://openapi-generator.tech |
| 10 | +""" |
| 11 | + |
| 12 | + |
| 13 | +import re # noqa: F401 |
| 14 | + |
| 15 | +from xero_python.models import BaseModel |
| 16 | + |
| 17 | + |
| 18 | +class LineItemItem(BaseModel): |
| 19 | + """NOTE: This class is auto generated by OpenAPI Generator. |
| 20 | + Ref: https://openapi-generator.tech |
| 21 | +
|
| 22 | + Do not edit the class manually. |
| 23 | + """ |
| 24 | + |
| 25 | + """ |
| 26 | + Attributes: |
| 27 | + openapi_types (dict): The key is attribute name |
| 28 | + and the value is attribute type. |
| 29 | + attribute_map (dict): The key is attribute name |
| 30 | + and the value is json key in definition. |
| 31 | + """ |
| 32 | + openapi_types = {"code": "str", "name": "str", "item_id": "str"} |
| 33 | + |
| 34 | + attribute_map = {"code": "Code", "name": "Name", "item_id": "ItemID"} |
| 35 | + |
| 36 | + def __init__(self, code=None, name=None, item_id=None): # noqa: E501 |
| 37 | + """LineItemItem - a model defined in OpenAPI""" # noqa: E501 |
| 38 | + |
| 39 | + self._code = None |
| 40 | + self._name = None |
| 41 | + self._item_id = None |
| 42 | + self.discriminator = None |
| 43 | + |
| 44 | + if code is not None: |
| 45 | + self.code = code |
| 46 | + if name is not None: |
| 47 | + self.name = name |
| 48 | + if item_id is not None: |
| 49 | + self.item_id = item_id |
| 50 | + |
| 51 | + @property |
| 52 | + def code(self): |
| 53 | + """Gets the code of this LineItemItem. # noqa: E501 |
| 54 | +
|
| 55 | + User defined item code (max length = 30) # noqa: E501 |
| 56 | +
|
| 57 | + :return: The code of this LineItemItem. # noqa: E501 |
| 58 | + :rtype: str |
| 59 | + """ |
| 60 | + return self._code |
| 61 | + |
| 62 | + @code.setter |
| 63 | + def code(self, code): |
| 64 | + """Sets the code of this LineItemItem. |
| 65 | +
|
| 66 | + User defined item code (max length = 30) # noqa: E501 |
| 67 | +
|
| 68 | + :param code: The code of this LineItemItem. # noqa: E501 |
| 69 | + :type: str |
| 70 | + """ |
| 71 | + if code is not None and len(code) > 30: |
| 72 | + raise ValueError( |
| 73 | + "Invalid value for `code`, " "length must be less than or equal to `30`" |
| 74 | + ) # noqa: E501 |
| 75 | + |
| 76 | + self._code = code |
| 77 | + |
| 78 | + @property |
| 79 | + def name(self): |
| 80 | + """Gets the name of this LineItemItem. # noqa: E501 |
| 81 | +
|
| 82 | + The name of the item (max length = 50) # noqa: E501 |
| 83 | +
|
| 84 | + :return: The name of this LineItemItem. # noqa: E501 |
| 85 | + :rtype: str |
| 86 | + """ |
| 87 | + return self._name |
| 88 | + |
| 89 | + @name.setter |
| 90 | + def name(self, name): |
| 91 | + """Sets the name of this LineItemItem. |
| 92 | +
|
| 93 | + The name of the item (max length = 50) # noqa: E501 |
| 94 | +
|
| 95 | + :param name: The name of this LineItemItem. # noqa: E501 |
| 96 | + :type: str |
| 97 | + """ |
| 98 | + if name is not None and len(name) > 50: |
| 99 | + raise ValueError( |
| 100 | + "Invalid value for `name`, " "length must be less than or equal to `50`" |
| 101 | + ) # noqa: E501 |
| 102 | + |
| 103 | + self._name = name |
| 104 | + |
| 105 | + @property |
| 106 | + def item_id(self): |
| 107 | + """Gets the item_id of this LineItemItem. # noqa: E501 |
| 108 | +
|
| 109 | + The Xero identifier for an Item # noqa: E501 |
| 110 | +
|
| 111 | + :return: The item_id of this LineItemItem. # noqa: E501 |
| 112 | + :rtype: str |
| 113 | + """ |
| 114 | + return self._item_id |
| 115 | + |
| 116 | + @item_id.setter |
| 117 | + def item_id(self, item_id): |
| 118 | + """Sets the item_id of this LineItemItem. |
| 119 | +
|
| 120 | + The Xero identifier for an Item # noqa: E501 |
| 121 | +
|
| 122 | + :param item_id: The item_id of this LineItemItem. # noqa: E501 |
| 123 | + :type: str |
| 124 | + """ |
| 125 | + |
| 126 | + self._item_id = item_id |
0 commit comments