criteo-api-retailmedia-sdk 2024.4.0.250409__py3-none-any.whl → 2024.4.0.250606__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (39) hide show
  1. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/RECORD +15 -39
  3. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_04/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_04/api/balance_api.py +10 -913
  6. criteo_api_retailmedia_v2024_04/api/campaign_api.py +102 -988
  7. criteo_api_retailmedia_v2024_04/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_04/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_04/model/async_campaigns_report.py +4 -4
  10. criteo_api_retailmedia_v2024_04/model/async_line_items_report.py +4 -4
  11. criteo_api_retailmedia_v2024_04/model/async_revenue_report.py +4 -4
  12. criteo_api_retailmedia_v2024_04/model/external_common_line_item.py +4 -0
  13. criteo_api_retailmedia_v2024_04/model/external_line_item_page202110.py +3 -3
  14. criteo_api_retailmedia_v2024_04/models/__init__.py +0 -24
  15. criteo_api_retailmedia_v2024_04/model/add_funds_to_balance_request.py +0 -269
  16. criteo_api_retailmedia_v2024_04/model/balance_response.py +0 -281
  17. criteo_api_retailmedia_v2024_04/model/balance_response_paged_list_response.py +0 -287
  18. criteo_api_retailmedia_v2024_04/model/change_dates_of_balance_request.py +0 -269
  19. criteo_api_retailmedia_v2024_04/model/change_details.py +0 -275
  20. criteo_api_retailmedia_v2024_04/model/create_balance_request.py +0 -269
  21. criteo_api_retailmedia_v2024_04/model/external_add_funds_to_balance.py +0 -279
  22. criteo_api_retailmedia_v2024_04/model/external_balance_response.py +0 -375
  23. criteo_api_retailmedia_v2024_04/model/external_change_dates_of_balance.py +0 -281
  24. criteo_api_retailmedia_v2024_04/model/external_create_balance.py +0 -314
  25. criteo_api_retailmedia_v2024_04/model/external_promoted_product202110.py +0 -263
  26. criteo_api_retailmedia_v2024_04/model/external_update_balance_model.py +0 -283
  27. criteo_api_retailmedia_v2024_04/model/insertion_order_history_change_data_capture.py +0 -303
  28. criteo_api_retailmedia_v2024_04/model/metadata.py +0 -273
  29. criteo_api_retailmedia_v2024_04/model/page_of_insertion_order_history_change_data_capture.py +0 -276
  30. criteo_api_retailmedia_v2024_04/model/promoted_product202110_list_request.py +0 -269
  31. criteo_api_retailmedia_v2024_04/model/promoted_product202110_paged_list_response.py +0 -287
  32. criteo_api_retailmedia_v2024_04/model/resource_of_add_funds_to_balance.py +0 -277
  33. criteo_api_retailmedia_v2024_04/model/resource_of_balance_response.py +0 -277
  34. criteo_api_retailmedia_v2024_04/model/resource_of_change_dates_of_balance.py +0 -277
  35. criteo_api_retailmedia_v2024_04/model/resource_of_create_balance.py +0 -277
  36. criteo_api_retailmedia_v2024_04/model/resource_of_promoted_product202110.py +0 -277
  37. criteo_api_retailmedia_v2024_04/model/resource_of_update_balance_model.py +0 -277
  38. criteo_api_retailmedia_v2024_04/model/update_balance_model_request.py +0 -269
  39. {criteo_api_retailmedia_sdk-2024.4.0.250409.dist-info → criteo_api_retailmedia_sdk-2024.4.0.250606.dist-info}/top_level.txt +0 -0
@@ -1,375 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_v2024_04.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalBalanceResponse(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- ('balance_type',): {
59
- 'UNKNOWN': "unknown",
60
- 'CAPPED': "capped",
61
- 'UNCAPPED': "uncapped",
62
- },
63
- ('private_market_billing_type',): {
64
- 'NOTAPPLICABLE': "notApplicable",
65
- 'BILLBYRETAILER': "billByRetailer",
66
- 'BILLBYCRITEO': "billByCriteo",
67
- 'UNKNOWN': "unknown",
68
- },
69
- ('spend_type',): {
70
- 'ONSITE': "Onsite",
71
- 'OFFSITE': "Offsite",
72
- 'OFFSITEAWARENESS': "OffsiteAwareness",
73
- },
74
- ('status',): {
75
- 'UNKNOWN': "unknown",
76
- 'SCHEDULED': "scheduled",
77
- 'ACTIVE': "active",
78
- 'ENDED': "ended",
79
- },
80
- }
81
-
82
- validations = {
83
- }
84
-
85
- @cached_property
86
- def additional_properties_type():
87
- """
88
- This must be a method because a model may have properties that are
89
- of type self, this must run after the class is loaded
90
- """
91
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
92
-
93
- _nullable = False
94
-
95
- @cached_property
96
- def openapi_types():
97
- """
98
- This must be a method because a model may have properties that are
99
- of type self, this must run after the class is loaded
100
-
101
- Returns
102
- openapi_types (dict): The key is attribute name
103
- and the value is attribute type.
104
- """
105
- return {
106
- 'balance_type': (str,), # noqa: E501
107
- 'created_at': (datetime,), # noqa: E501
108
- 'deposited': (float, none_type,), # noqa: E501
109
- 'end_date': (date,), # noqa: E501
110
- 'memo': (str,), # noqa: E501
111
- 'name': (str,), # noqa: E501
112
- 'po_number': (str,), # noqa: E501
113
- 'private_market_billing_type': (str,), # noqa: E501
114
- 'remaining': (float, none_type,), # noqa: E501
115
- 'sales_force_id': (str,), # noqa: E501
116
- 'spend_type': (str,), # noqa: E501
117
- 'spent': (float, none_type,), # noqa: E501
118
- 'start_date': (date,), # noqa: E501
119
- 'status': (str,), # noqa: E501
120
- 'updated_at': (datetime,), # noqa: E501
121
- }
122
-
123
- @cached_property
124
- def discriminator():
125
- return None
126
-
127
-
128
- attribute_map = {
129
- 'balance_type': 'balanceType', # noqa: E501
130
- 'created_at': 'createdAt', # noqa: E501
131
- 'deposited': 'deposited', # noqa: E501
132
- 'end_date': 'endDate', # noqa: E501
133
- 'memo': 'memo', # noqa: E501
134
- 'name': 'name', # noqa: E501
135
- 'po_number': 'poNumber', # noqa: E501
136
- 'private_market_billing_type': 'privateMarketBillingType', # noqa: E501
137
- 'remaining': 'remaining', # noqa: E501
138
- 'sales_force_id': 'salesForceId', # noqa: E501
139
- 'spend_type': 'spendType', # noqa: E501
140
- 'spent': 'spent', # noqa: E501
141
- 'start_date': 'startDate', # noqa: E501
142
- 'status': 'status', # noqa: E501
143
- 'updated_at': 'updatedAt', # noqa: E501
144
- }
145
-
146
- read_only_vars = {
147
- }
148
-
149
- _composed_schemas = {}
150
-
151
- @classmethod
152
- @convert_js_args_to_python_args
153
- def _from_openapi_data(cls, balance_type, created_at, deposited, end_date, memo, name, po_number, private_market_billing_type, remaining, sales_force_id, spend_type, spent, start_date, status, updated_at, *args, **kwargs): # noqa: E501
154
- """ExternalBalanceResponse - a model defined in OpenAPI
155
-
156
- Args:
157
- balance_type (str): Type of the balance
158
- created_at (datetime):
159
- deposited (float, none_type): Amount of billable funds allotted to the balance.
160
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
161
- memo (str): Memo
162
- name (str): Name of the balance.
163
- po_number (str): Purchase Order number.
164
- private_market_billing_type (str): Billing type for Private Market.
165
- remaining (float, none_type):
166
- sales_force_id (str): SalesForceId the balance is linked to.
167
- spend_type (str): Spend Type of the balance.
168
- spent (float, none_type):
169
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
170
- status (str):
171
- updated_at (datetime):
172
-
173
- Keyword Args:
174
- _check_type (bool): if True, values for parameters in openapi_types
175
- will be type checked and a TypeError will be
176
- raised if the wrong type is input.
177
- Defaults to True
178
- _path_to_item (tuple/list): This is a list of keys or values to
179
- drill down to the model in received_data
180
- when deserializing a response
181
- _spec_property_naming (bool): True if the variable names in the input data
182
- are serialized names, as specified in the OpenAPI document.
183
- False if the variable names in the input data
184
- are pythonic names, e.g. snake case (default)
185
- _configuration (Configuration): the instance to use when
186
- deserializing a file_type parameter.
187
- If passed, type conversion is attempted
188
- If omitted no type conversion is done.
189
- _visited_composed_classes (tuple): This stores a tuple of
190
- classes that we have traveled through so that
191
- if we see that class again we will not use its
192
- discriminator again.
193
- When traveling through a discriminator, the
194
- composed schema that is
195
- is traveled through is added to this set.
196
- For example if Animal has a discriminator
197
- petType and we pass in "Dog", and the class Dog
198
- allOf includes Animal, we move through Animal
199
- once using the discriminator, and pick Dog.
200
- Then in Dog, we will make an instance of the
201
- Animal class but this time we won't travel
202
- through its discriminator because we passed in
203
- _visited_composed_classes = (Animal,)
204
- """
205
-
206
- _check_type = kwargs.pop('_check_type', True)
207
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
208
- _path_to_item = kwargs.pop('_path_to_item', ())
209
- _configuration = kwargs.pop('_configuration', None)
210
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
211
-
212
- self = super(OpenApiModel, cls).__new__(cls)
213
-
214
- if args:
215
- for arg in args:
216
- if isinstance(arg, dict):
217
- kwargs.update(arg)
218
- else:
219
- raise ApiTypeError(
220
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
221
- args,
222
- self.__class__.__name__,
223
- ),
224
- path_to_item=_path_to_item,
225
- valid_classes=(self.__class__,),
226
- )
227
-
228
- self._data_store = {}
229
- self._check_type = _check_type
230
- self._spec_property_naming = _spec_property_naming
231
- self._path_to_item = _path_to_item
232
- self._configuration = _configuration
233
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
234
-
235
- self.balance_type = balance_type
236
- self.created_at = created_at
237
- self.deposited = deposited
238
- self.end_date = end_date
239
- self.memo = memo
240
- self.name = name
241
- self.po_number = po_number
242
- self.private_market_billing_type = private_market_billing_type
243
- self.remaining = remaining
244
- self.sales_force_id = sales_force_id
245
- self.spend_type = spend_type
246
- self.spent = spent
247
- self.start_date = start_date
248
- self.status = status
249
- self.updated_at = updated_at
250
- for var_name, var_value in kwargs.items():
251
- if var_name not in self.attribute_map and \
252
- self._configuration is not None and \
253
- self._configuration.discard_unknown_keys and \
254
- self.additional_properties_type is None:
255
- # discard variable.
256
- continue
257
- setattr(self, var_name, var_value)
258
- return self
259
-
260
- required_properties = set([
261
- '_data_store',
262
- '_check_type',
263
- '_spec_property_naming',
264
- '_path_to_item',
265
- '_configuration',
266
- '_visited_composed_classes',
267
- ])
268
-
269
- @convert_js_args_to_python_args
270
- def __init__(self, balance_type, created_at, deposited, end_date, memo, name, po_number, private_market_billing_type, remaining, sales_force_id, spend_type, spent, start_date, status, updated_at, *args, **kwargs): # noqa: E501
271
- """ExternalBalanceResponse - a model defined in OpenAPI
272
-
273
- Args:
274
- balance_type (str): Type of the balance
275
- created_at (datetime):
276
- deposited (float, none_type): Amount of billable funds allotted to the balance.
277
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
278
- memo (str): Memo
279
- name (str): Name of the balance.
280
- po_number (str): Purchase Order number.
281
- private_market_billing_type (str): Billing type for Private Market.
282
- remaining (float, none_type):
283
- sales_force_id (str): SalesForceId the balance is linked to.
284
- spend_type (str): Spend Type of the balance.
285
- spent (float, none_type):
286
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
287
- status (str):
288
- updated_at (datetime):
289
-
290
- Keyword Args:
291
- _check_type (bool): if True, values for parameters in openapi_types
292
- will be type checked and a TypeError will be
293
- raised if the wrong type is input.
294
- Defaults to True
295
- _path_to_item (tuple/list): This is a list of keys or values to
296
- drill down to the model in received_data
297
- when deserializing a response
298
- _spec_property_naming (bool): True if the variable names in the input data
299
- are serialized names, as specified in the OpenAPI document.
300
- False if the variable names in the input data
301
- are pythonic names, e.g. snake case (default)
302
- _configuration (Configuration): the instance to use when
303
- deserializing a file_type parameter.
304
- If passed, type conversion is attempted
305
- If omitted no type conversion is done.
306
- _visited_composed_classes (tuple): This stores a tuple of
307
- classes that we have traveled through so that
308
- if we see that class again we will not use its
309
- discriminator again.
310
- When traveling through a discriminator, the
311
- composed schema that is
312
- is traveled through is added to this set.
313
- For example if Animal has a discriminator
314
- petType and we pass in "Dog", and the class Dog
315
- allOf includes Animal, we move through Animal
316
- once using the discriminator, and pick Dog.
317
- Then in Dog, we will make an instance of the
318
- Animal class but this time we won't travel
319
- through its discriminator because we passed in
320
- _visited_composed_classes = (Animal,)
321
- """
322
-
323
- _check_type = kwargs.pop('_check_type', True)
324
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
325
- _path_to_item = kwargs.pop('_path_to_item', ())
326
- _configuration = kwargs.pop('_configuration', None)
327
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
328
-
329
- if args:
330
- for arg in args:
331
- if isinstance(arg, dict):
332
- kwargs.update(arg)
333
- else:
334
- raise ApiTypeError(
335
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
336
- args,
337
- self.__class__.__name__,
338
- ),
339
- path_to_item=_path_to_item,
340
- valid_classes=(self.__class__,),
341
- )
342
-
343
- self._data_store = {}
344
- self._check_type = _check_type
345
- self._spec_property_naming = _spec_property_naming
346
- self._path_to_item = _path_to_item
347
- self._configuration = _configuration
348
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
349
-
350
- self.balance_type = balance_type
351
- self.created_at = created_at
352
- self.deposited = deposited
353
- self.end_date = end_date
354
- self.memo = memo
355
- self.name = name
356
- self.po_number = po_number
357
- self.private_market_billing_type = private_market_billing_type
358
- self.remaining = remaining
359
- self.sales_force_id = sales_force_id
360
- self.spend_type = spend_type
361
- self.spent = spent
362
- self.start_date = start_date
363
- self.status = status
364
- self.updated_at = updated_at
365
- for var_name, var_value in kwargs.items():
366
- if var_name not in self.attribute_map and \
367
- self._configuration is not None and \
368
- self._configuration.discard_unknown_keys and \
369
- self.additional_properties_type is None:
370
- # discard variable.
371
- continue
372
- setattr(self, var_name, var_value)
373
- if var_name in self.read_only_vars:
374
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
375
- f"class with read only attributes.")
@@ -1,281 +0,0 @@
1
- """
2
- Criteo API
3
-
4
- Criteo API - RetailMedia # noqa: E501
5
-
6
- The version of the OpenAPI document: 2024-04
7
- Generated by: https://openapi-generator.tech
8
- """
9
-
10
-
11
- import re # noqa: F401
12
- import sys # noqa: F401
13
-
14
- from criteo_api_retailmedia_v2024_04.model_utils import ( # noqa: F401
15
- ApiTypeError,
16
- ModelComposed,
17
- ModelNormal,
18
- ModelSimple,
19
- cached_property,
20
- change_keys_js_to_python,
21
- convert_js_args_to_python_args,
22
- date,
23
- datetime,
24
- file_type,
25
- none_type,
26
- validate_get_composed_info,
27
- OpenApiModel
28
- )
29
- from criteo_api_retailmedia_v2024_04.exceptions import ApiAttributeError
30
-
31
-
32
-
33
- class ExternalChangeDatesOfBalance(ModelNormal):
34
- """NOTE: This class is auto generated by OpenAPI Generator.
35
- Ref: https://openapi-generator.tech
36
-
37
- Do not edit the class manually.
38
-
39
- Attributes:
40
- allowed_values (dict): The key is the tuple path to the attribute
41
- and the for var_name this is (var_name,). The value is a dict
42
- with a capitalized key describing the allowed value and an allowed
43
- value. These dicts store the allowed enum values.
44
- attribute_map (dict): The key is attribute name
45
- and the value is json key in definition.
46
- discriminator_value_class_map (dict): A dict to go from the discriminator
47
- variable value to the discriminator class name.
48
- validations (dict): The key is the tuple path to the attribute
49
- and the for var_name this is (var_name,). The value is a dict
50
- that stores validations for max_length, min_length, max_items,
51
- min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
- inclusive_minimum, and regex.
53
- additional_properties_type (tuple): A tuple of classes accepted
54
- as additional properties values.
55
- """
56
-
57
- allowed_values = {
58
- }
59
-
60
- validations = {
61
- }
62
-
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
-
71
- _nullable = False
72
-
73
- @cached_property
74
- def openapi_types():
75
- """
76
- This must be a method because a model may have properties that are
77
- of type self, this must run after the class is loaded
78
-
79
- Returns
80
- openapi_types (dict): The key is attribute name
81
- and the value is attribute type.
82
- """
83
- return {
84
- 'end_date': (date,), # noqa: E501
85
- 'memo': (str,), # noqa: E501
86
- 'start_date': (date,), # noqa: E501
87
- }
88
-
89
- @cached_property
90
- def discriminator():
91
- return None
92
-
93
-
94
- attribute_map = {
95
- 'end_date': 'endDate', # noqa: E501
96
- 'memo': 'memo', # noqa: E501
97
- 'start_date': 'startDate', # noqa: E501
98
- }
99
-
100
- read_only_vars = {
101
- }
102
-
103
- _composed_schemas = {}
104
-
105
- @classmethod
106
- @convert_js_args_to_python_args
107
- def _from_openapi_data(cls, end_date, memo, start_date, *args, **kwargs): # noqa: E501
108
- """ExternalChangeDatesOfBalance - a model defined in OpenAPI
109
-
110
- Args:
111
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
112
- memo (str): Memo
113
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
114
-
115
- Keyword Args:
116
- _check_type (bool): if True, values for parameters in openapi_types
117
- will be type checked and a TypeError will be
118
- raised if the wrong type is input.
119
- Defaults to True
120
- _path_to_item (tuple/list): This is a list of keys or values to
121
- drill down to the model in received_data
122
- when deserializing a response
123
- _spec_property_naming (bool): True if the variable names in the input data
124
- are serialized names, as specified in the OpenAPI document.
125
- False if the variable names in the input data
126
- are pythonic names, e.g. snake case (default)
127
- _configuration (Configuration): the instance to use when
128
- deserializing a file_type parameter.
129
- If passed, type conversion is attempted
130
- If omitted no type conversion is done.
131
- _visited_composed_classes (tuple): This stores a tuple of
132
- classes that we have traveled through so that
133
- if we see that class again we will not use its
134
- discriminator again.
135
- When traveling through a discriminator, the
136
- composed schema that is
137
- is traveled through is added to this set.
138
- For example if Animal has a discriminator
139
- petType and we pass in "Dog", and the class Dog
140
- allOf includes Animal, we move through Animal
141
- once using the discriminator, and pick Dog.
142
- Then in Dog, we will make an instance of the
143
- Animal class but this time we won't travel
144
- through its discriminator because we passed in
145
- _visited_composed_classes = (Animal,)
146
- """
147
-
148
- _check_type = kwargs.pop('_check_type', True)
149
- _spec_property_naming = kwargs.pop('_spec_property_naming', True)
150
- _path_to_item = kwargs.pop('_path_to_item', ())
151
- _configuration = kwargs.pop('_configuration', None)
152
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
-
154
- self = super(OpenApiModel, cls).__new__(cls)
155
-
156
- if args:
157
- for arg in args:
158
- if isinstance(arg, dict):
159
- kwargs.update(arg)
160
- else:
161
- raise ApiTypeError(
162
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
- args,
164
- self.__class__.__name__,
165
- ),
166
- path_to_item=_path_to_item,
167
- valid_classes=(self.__class__,),
168
- )
169
-
170
- self._data_store = {}
171
- self._check_type = _check_type
172
- self._spec_property_naming = _spec_property_naming
173
- self._path_to_item = _path_to_item
174
- self._configuration = _configuration
175
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
-
177
- self.end_date = end_date
178
- self.memo = memo
179
- self.start_date = start_date
180
- for var_name, var_value in kwargs.items():
181
- if var_name not in self.attribute_map and \
182
- self._configuration is not None and \
183
- self._configuration.discard_unknown_keys and \
184
- self.additional_properties_type is None:
185
- # discard variable.
186
- continue
187
- setattr(self, var_name, var_value)
188
- return self
189
-
190
- required_properties = set([
191
- '_data_store',
192
- '_check_type',
193
- '_spec_property_naming',
194
- '_path_to_item',
195
- '_configuration',
196
- '_visited_composed_classes',
197
- ])
198
-
199
- @convert_js_args_to_python_args
200
- def __init__(self, end_date, memo, start_date, *args, **kwargs): # noqa: E501
201
- """ExternalChangeDatesOfBalance - a model defined in OpenAPI
202
-
203
- Args:
204
- end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
205
- memo (str): Memo
206
- start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
207
-
208
- Keyword Args:
209
- _check_type (bool): if True, values for parameters in openapi_types
210
- will be type checked and a TypeError will be
211
- raised if the wrong type is input.
212
- Defaults to True
213
- _path_to_item (tuple/list): This is a list of keys or values to
214
- drill down to the model in received_data
215
- when deserializing a response
216
- _spec_property_naming (bool): True if the variable names in the input data
217
- are serialized names, as specified in the OpenAPI document.
218
- False if the variable names in the input data
219
- are pythonic names, e.g. snake case (default)
220
- _configuration (Configuration): the instance to use when
221
- deserializing a file_type parameter.
222
- If passed, type conversion is attempted
223
- If omitted no type conversion is done.
224
- _visited_composed_classes (tuple): This stores a tuple of
225
- classes that we have traveled through so that
226
- if we see that class again we will not use its
227
- discriminator again.
228
- When traveling through a discriminator, the
229
- composed schema that is
230
- is traveled through is added to this set.
231
- For example if Animal has a discriminator
232
- petType and we pass in "Dog", and the class Dog
233
- allOf includes Animal, we move through Animal
234
- once using the discriminator, and pick Dog.
235
- Then in Dog, we will make an instance of the
236
- Animal class but this time we won't travel
237
- through its discriminator because we passed in
238
- _visited_composed_classes = (Animal,)
239
- """
240
-
241
- _check_type = kwargs.pop('_check_type', True)
242
- _spec_property_naming = kwargs.pop('_spec_property_naming', False)
243
- _path_to_item = kwargs.pop('_path_to_item', ())
244
- _configuration = kwargs.pop('_configuration', None)
245
- _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
246
-
247
- if args:
248
- for arg in args:
249
- if isinstance(arg, dict):
250
- kwargs.update(arg)
251
- else:
252
- raise ApiTypeError(
253
- "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
254
- args,
255
- self.__class__.__name__,
256
- ),
257
- path_to_item=_path_to_item,
258
- valid_classes=(self.__class__,),
259
- )
260
-
261
- self._data_store = {}
262
- self._check_type = _check_type
263
- self._spec_property_naming = _spec_property_naming
264
- self._path_to_item = _path_to_item
265
- self._configuration = _configuration
266
- self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
-
268
- self.end_date = end_date
269
- self.memo = memo
270
- self.start_date = start_date
271
- for var_name, var_value in kwargs.items():
272
- if var_name not in self.attribute_map and \
273
- self._configuration is not None and \
274
- self._configuration.discard_unknown_keys and \
275
- self.additional_properties_type is None:
276
- # discard variable.
277
- continue
278
- setattr(self, var_name, var_value)
279
- if var_name in self.read_only_vars:
280
- raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
281
- f"class with read only attributes.")