criteo-api-retailmedia-sdk 2024.10.0.241029__py3-none-any.whl → 2024.10.0.250205__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 (82) hide show
  1. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/RECORD +70 -81
  3. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_10/api/accounts_api.py +30 -41
  6. criteo_api_retailmedia_v2024_10/api/campaign_api.py +26 -285
  7. criteo_api_retailmedia_v2024_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +44 -0
  10. criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +44 -0
  11. criteo_api_retailmedia_v2024_10/model/async_revenue_report.py +29 -2
  12. criteo_api_retailmedia_v2024_10/model/balance_response_v2_response.py +1 -1
  13. criteo_api_retailmedia_v2024_10/model/change_details_v1.py +8 -18
  14. criteo_api_retailmedia_v2024_10/model/choice_option.py +1 -8
  15. criteo_api_retailmedia_v2024_10/model/choice_variable_specification.py +1 -8
  16. criteo_api_retailmedia_v2024_10/model/choice_variable_value.py +1 -7
  17. criteo_api_retailmedia_v2024_10/model/color_variable_value.py +7 -19
  18. criteo_api_retailmedia_v2024_10/model/{external_creative_v2.py → creative2.py} +23 -30
  19. criteo_api_retailmedia_v2024_10/model/creative202110.py +7 -13
  20. criteo_api_retailmedia_v2024_10/model/creative202110_list_response.py +13 -20
  21. criteo_api_retailmedia_v2024_10/model/creative202210.py +12 -19
  22. criteo_api_retailmedia_v2024_10/model/creative202210_response.py +10 -17
  23. criteo_api_retailmedia_v2024_10/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
  24. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_response.py → creative2_response.py} +20 -20
  25. criteo_api_retailmedia_v2024_10/model/creative_create_model202207.py +4 -11
  26. criteo_api_retailmedia_v2024_10/model/creative_update_model202207.py +4 -11
  27. criteo_api_retailmedia_v2024_10/model/{resource_of_creative_v2.py → entity_resource_of_retail_media_account.py} +14 -14
  28. criteo_api_retailmedia_v2024_10/model/{creative_v2_response.py → entity_resource_outcome_of_retail_media_account.py} +9 -9
  29. criteo_api_retailmedia_v2024_10/model/external_line_item_bid_multipliers_v2.py +1 -1
  30. criteo_api_retailmedia_v2024_10/model/{retail_media_account.py → external_retail_media_account.py} +29 -23
  31. criteo_api_retailmedia_v2024_10/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +18 -12
  32. criteo_api_retailmedia_v2024_10/model/{external_text_variable_value.py → external_retail_media_brands.py} +7 -7
  33. criteo_api_retailmedia_v2024_10/model/{external_hyperlink_variable_value.py → external_retail_media_seller.py} +12 -8
  34. criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py +281 -0
  35. criteo_api_retailmedia_v2024_10/model/external_retailer.py +2 -0
  36. criteo_api_retailmedia_v2024_10/model/files_variable_value.py +2 -7
  37. criteo_api_retailmedia_v2024_10/model/files_variables_specification.py +7 -15
  38. criteo_api_retailmedia_v2024_10/model/hyperlink_variable_value.py +7 -19
  39. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_request.py +1 -1
  40. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_response.py +1 -1
  41. criteo_api_retailmedia_v2024_10/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
  42. criteo_api_retailmedia_v2024_10/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  43. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
  44. criteo_api_retailmedia_v2024_10/model/resource_of_creative202110.py +6 -13
  45. criteo_api_retailmedia_v2024_10/model/resource_of_creative202210.py +2 -9
  46. criteo_api_retailmedia_v2024_10/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
  47. criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_v2.py +1 -1
  48. criteo_api_retailmedia_v2024_10/model/resource_of_template.py +2 -9
  49. criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment.py +31 -18
  50. criteo_api_retailmedia_v2024_10/model/section.py +6 -9
  51. criteo_api_retailmedia_v2024_10/model/template.py +13 -24
  52. criteo_api_retailmedia_v2024_10/model/template_list_response.py +13 -20
  53. criteo_api_retailmedia_v2024_10/model/template_response.py +10 -17
  54. criteo_api_retailmedia_v2024_10/model/template_variable.py +1 -8
  55. criteo_api_retailmedia_v2024_10/model/template_variable_value.py +7 -8
  56. criteo_api_retailmedia_v2024_10/model/text_variable_specification.py +2 -8
  57. criteo_api_retailmedia_v2024_10/model/text_variable_value.py +7 -19
  58. criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py +12 -5
  59. criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py +9 -2
  60. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  61. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brands.py +9 -2
  62. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_seller_account_creation.py +9 -2
  63. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  64. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brands.py +14 -7
  65. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller.py +14 -7
  66. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py +14 -7
  67. criteo_api_retailmedia_v2024_10/model/{creative_v2_list_response.py → value_resource_outcome_of_retail_media_brands.py} +9 -9
  68. criteo_api_retailmedia_v2024_10/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
  69. criteo_api_retailmedia_v2024_10/models/__init__.py +15 -26
  70. criteo_api_retailmedia_v2024_10/model/approval_status_model.py +0 -292
  71. criteo_api_retailmedia_v2024_10/model/external_choice_variable_value.py +0 -269
  72. criteo_api_retailmedia_v2024_10/model/external_color_variable_value.py +0 -268
  73. criteo_api_retailmedia_v2024_10/model/external_files_variable_value.py +0 -272
  74. criteo_api_retailmedia_v2024_10/model/external_template_variable_value.py +0 -309
  75. criteo_api_retailmedia_v2024_10/model/negotiation_state_model.py +0 -293
  76. criteo_api_retailmedia_v2024_10/model/proposal_status_model.py +0 -284
  77. criteo_api_retailmedia_v2024_10/model/resource_of_retail_media_account.py +0 -270
  78. criteo_api_retailmedia_v2024_10/model/retail_media_brands.py +0 -257
  79. criteo_api_retailmedia_v2024_10/model/retail_media_contactlist_amendment_attributes.py +0 -292
  80. criteo_api_retailmedia_v2024_10/model/retail_media_seller.py +0 -261
  81. criteo_api_retailmedia_v2024_10/model/retail_media_seller_account_creation.py +0 -274
  82. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250205.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalPageTypeEnvironment(ModelNormal):
33
+ class PageTypeEnvironment2(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -86,13 +86,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
86
86
  validations = {
87
87
  }
88
88
 
89
- @cached_property
90
- def additional_properties_type():
91
- """
92
- This must be a method because a model may have properties that are
93
- of type self, this must run after the class is loaded
94
- """
95
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
89
+ additional_properties_type = None
96
90
 
97
91
  _nullable = False
98
92
 
@@ -129,7 +123,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
129
123
  @classmethod
130
124
  @convert_js_args_to_python_args
131
125
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
132
- """ExternalPageTypeEnvironment - a model defined in OpenAPI
126
+ """PageTypeEnvironment2 - a model defined in OpenAPI
133
127
 
134
128
  Keyword Args:
135
129
  _check_type (bool): if True, values for parameters in openapi_types
@@ -216,7 +210,7 @@ class ExternalPageTypeEnvironment(ModelNormal):
216
210
 
217
211
  @convert_js_args_to_python_args
218
212
  def __init__(self, *args, **kwargs): # noqa: E501
219
- """ExternalPageTypeEnvironment - a model defined in OpenAPI
213
+ """PageTypeEnvironment2 - a model defined in OpenAPI
220
214
 
221
215
  Keyword Args:
222
216
  _check_type (bool): if True, values for parameters in openapi_types
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class PageTypeEnvironment(ModelNormal):
33
+ class PageTypeEnvironment202210(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -56,6 +56,7 @@ class PageTypeEnvironment(ModelNormal):
56
56
 
57
57
  allowed_values = {
58
58
  ('page_type',): {
59
+ 'None': None,
59
60
  'SEARCH': "Search",
60
61
  'HOME': "Home",
61
62
  'BROWSE': "Browse",
@@ -67,6 +68,7 @@ class PageTypeEnvironment(ModelNormal):
67
68
  'DEALS': "Deals",
68
69
  },
69
70
  ('environments',): {
71
+ 'None': None,
70
72
  'WEB': "Web",
71
73
  'MOBILE': "Mobile",
72
74
  'APP': "App",
@@ -80,13 +82,7 @@ class PageTypeEnvironment(ModelNormal):
80
82
  validations = {
81
83
  }
82
84
 
83
- @cached_property
84
- def additional_properties_type():
85
- """
86
- This must be a method because a model may have properties that are
87
- of type self, this must run after the class is loaded
88
- """
89
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
85
+ additional_properties_type = None
90
86
 
91
87
  _nullable = False
92
88
 
@@ -101,8 +97,8 @@ class PageTypeEnvironment(ModelNormal):
101
97
  and the value is attribute type.
102
98
  """
103
99
  return {
104
- 'page_type': (str,), # noqa: E501
105
- 'environments': ([str],), # noqa: E501
100
+ 'page_type': (str, none_type,), # noqa: E501
101
+ 'environments': ([str], none_type,), # noqa: E501
106
102
  }
107
103
 
108
104
  @cached_property
@@ -123,7 +119,7 @@ class PageTypeEnvironment(ModelNormal):
123
119
  @classmethod
124
120
  @convert_js_args_to_python_args
125
121
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
126
- """PageTypeEnvironment - a model defined in OpenAPI
122
+ """PageTypeEnvironment202210 - a model defined in OpenAPI
127
123
 
128
124
  Keyword Args:
129
125
  _check_type (bool): if True, values for parameters in openapi_types
@@ -156,8 +152,8 @@ class PageTypeEnvironment(ModelNormal):
156
152
  Animal class but this time we won't travel
157
153
  through its discriminator because we passed in
158
154
  _visited_composed_classes = (Animal,)
159
- page_type (str): Creative PageType. [optional] # noqa: E501
160
- environments ([str]): List of environments per PageType. [optional] # noqa: E501
155
+ page_type (str, none_type): Creative PageType. [optional] # noqa: E501
156
+ environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
161
157
  """
162
158
 
163
159
  _check_type = kwargs.pop('_check_type', True)
@@ -210,7 +206,7 @@ class PageTypeEnvironment(ModelNormal):
210
206
 
211
207
  @convert_js_args_to_python_args
212
208
  def __init__(self, *args, **kwargs): # noqa: E501
213
- """PageTypeEnvironment - a model defined in OpenAPI
209
+ """PageTypeEnvironment202210 - a model defined in OpenAPI
214
210
 
215
211
  Keyword Args:
216
212
  _check_type (bool): if True, values for parameters in openapi_types
@@ -243,8 +239,8 @@ class PageTypeEnvironment(ModelNormal):
243
239
  Animal class but this time we won't travel
244
240
  through its discriminator because we passed in
245
241
  _visited_composed_classes = (Animal,)
246
- page_type (str): Creative PageType. [optional] # noqa: E501
247
- environments ([str]): List of environments per PageType. [optional] # noqa: E501
242
+ page_type (str, none_type): Creative PageType. [optional] # noqa: E501
243
+ environments ([str], none_type): List of environments per PageType. [optional] # noqa: E501
248
244
  """
249
245
 
250
246
  _check_type = kwargs.pop('_check_type', True)
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_10.model.proposal_status_model import ProposalStatusModel
34
- globals()['ProposalStatusModel'] = ProposalStatusModel
33
+ from criteo_api_retailmedia_v2024_10.model.creative2 import Creative2
34
+ globals()['Creative2'] = Creative2
35
35
 
36
36
 
37
- class ProposalStatusModelResource(ModelNormal):
37
+ class ResourceOfCreative2(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -66,7 +66,7 @@ class ProposalStatusModelResource(ModelNormal):
66
66
 
67
67
  additional_properties_type = None
68
68
 
69
- _nullable = False
69
+ _nullable = True
70
70
 
71
71
  @cached_property
72
72
  def openapi_types():
@@ -80,9 +80,9 @@ class ProposalStatusModelResource(ModelNormal):
80
80
  """
81
81
  lazy_import()
82
82
  return {
83
+ 'attributes': (Creative2,), # noqa: E501
83
84
  'id': (str, none_type,), # noqa: E501
84
85
  'type': (str, none_type,), # noqa: E501
85
- 'attributes': (ProposalStatusModel,), # noqa: E501
86
86
  }
87
87
 
88
88
  @cached_property
@@ -91,9 +91,9 @@ class ProposalStatusModelResource(ModelNormal):
91
91
 
92
92
 
93
93
  attribute_map = {
94
+ 'attributes': 'attributes', # noqa: E501
94
95
  'id': 'id', # noqa: E501
95
96
  'type': 'type', # noqa: E501
96
- 'attributes': 'attributes', # noqa: E501
97
97
  }
98
98
 
99
99
  read_only_vars = {
@@ -104,7 +104,7 @@ class ProposalStatusModelResource(ModelNormal):
104
104
  @classmethod
105
105
  @convert_js_args_to_python_args
106
106
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
- """ProposalStatusModelResource - a model defined in OpenAPI
107
+ """ResourceOfCreative2 - a model defined in OpenAPI
108
108
 
109
109
  Keyword Args:
110
110
  _check_type (bool): if True, values for parameters in openapi_types
@@ -137,9 +137,9 @@ class ProposalStatusModelResource(ModelNormal):
137
137
  Animal class but this time we won't travel
138
138
  through its discriminator because we passed in
139
139
  _visited_composed_classes = (Animal,)
140
- id (str, none_type): [optional] # noqa: E501
141
- type (str, none_type): [optional] # noqa: E501
142
- attributes (ProposalStatusModel): [optional] # noqa: E501
140
+ attributes (Creative2): [optional] # noqa: E501
141
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
142
+ type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
143
143
  """
144
144
 
145
145
  _check_type = kwargs.pop('_check_type', True)
@@ -192,7 +192,7 @@ class ProposalStatusModelResource(ModelNormal):
192
192
 
193
193
  @convert_js_args_to_python_args
194
194
  def __init__(self, *args, **kwargs): # noqa: E501
195
- """ProposalStatusModelResource - a model defined in OpenAPI
195
+ """ResourceOfCreative2 - a model defined in OpenAPI
196
196
 
197
197
  Keyword Args:
198
198
  _check_type (bool): if True, values for parameters in openapi_types
@@ -225,9 +225,9 @@ class ProposalStatusModelResource(ModelNormal):
225
225
  Animal class but this time we won't travel
226
226
  through its discriminator because we passed in
227
227
  _visited_composed_classes = (Animal,)
228
- id (str, none_type): [optional] # noqa: E501
229
- type (str, none_type): [optional] # noqa: E501
230
- attributes (ProposalStatusModel): [optional] # noqa: E501
228
+ attributes (Creative2): [optional] # noqa: E501
229
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
230
+ type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
231
231
  """
232
232
 
233
233
  _check_type = kwargs.pop('_check_type', True)
@@ -64,16 +64,9 @@ class ResourceOfCreative202110(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
- _nullable = False
69
+ _nullable = True
77
70
 
78
71
  @cached_property
79
72
  def openapi_types():
@@ -87,9 +80,9 @@ class ResourceOfCreative202110(ModelNormal):
87
80
  """
88
81
  lazy_import()
89
82
  return {
83
+ 'attributes': (Creative202110,), # noqa: E501
90
84
  'id': (str, none_type,), # noqa: E501
91
85
  'type': (str, none_type,), # noqa: E501
92
- 'attributes': (Creative202110,), # noqa: E501
93
86
  }
94
87
 
95
88
  @cached_property
@@ -98,9 +91,9 @@ class ResourceOfCreative202110(ModelNormal):
98
91
 
99
92
 
100
93
  attribute_map = {
94
+ 'attributes': 'attributes', # noqa: E501
101
95
  'id': 'id', # noqa: E501
102
96
  'type': 'type', # noqa: E501
103
- 'attributes': 'attributes', # noqa: E501
104
97
  }
105
98
 
106
99
  read_only_vars = {
@@ -144,9 +137,9 @@ class ResourceOfCreative202110(ModelNormal):
144
137
  Animal class but this time we won't travel
145
138
  through its discriminator because we passed in
146
139
  _visited_composed_classes = (Animal,)
140
+ attributes (Creative202110): [optional] # noqa: E501
147
141
  id (str, none_type): Id of the entity. [optional] # noqa: E501
148
142
  type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
149
- attributes (Creative202110): [optional] # noqa: E501
150
143
  """
151
144
 
152
145
  _check_type = kwargs.pop('_check_type', True)
@@ -232,9 +225,9 @@ class ResourceOfCreative202110(ModelNormal):
232
225
  Animal class but this time we won't travel
233
226
  through its discriminator because we passed in
234
227
  _visited_composed_classes = (Animal,)
228
+ attributes (Creative202110): [optional] # noqa: E501
235
229
  id (str, none_type): Id of the entity. [optional] # noqa: E501
236
230
  type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
237
- attributes (Creative202110): [optional] # noqa: E501
238
231
  """
239
232
 
240
233
  _check_type = kwargs.pop('_check_type', True)
@@ -64,16 +64,9 @@ class ResourceOfCreative202210(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
- _nullable = False
69
+ _nullable = True
77
70
 
78
71
  @cached_property
79
72
  def openapi_types():
@@ -73,7 +73,7 @@ class ResourceOfLineItemBidMultipliersV2(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -73,7 +73,7 @@ class ResourceOfPreferredLineItemV2(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -64,16 +64,9 @@ class ResourceOfTemplate(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
- _nullable = False
69
+ _nullable = True
77
70
 
78
71
  @cached_property
79
72
  def openapi_types():
@@ -29,10 +29,6 @@ from criteo_api_retailmedia_v2024_10.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_v2024_10.model.retail_media_contactlist_amendment_attributes import RetailMediaContactlistAmendmentAttributes
34
- globals()['RetailMediaContactlistAmendmentAttributes'] = RetailMediaContactlistAmendmentAttributes
35
-
36
32
 
37
33
  class RetailMediaContactlistAmendment(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
@@ -59,6 +55,19 @@ class RetailMediaContactlistAmendment(ModelNormal):
59
55
  """
60
56
 
61
57
  allowed_values = {
58
+ ('operation',): {
59
+ 'ADD': "add",
60
+ 'REMOVE': "remove",
61
+ },
62
+ ('identifier_type',): {
63
+ 'None': None,
64
+ 'EMAIL': "Email",
65
+ 'USERIDENTIFIER': "UserIdentifier",
66
+ 'IDENTITYLINK': "IdentityLink",
67
+ 'GUM': "Gum",
68
+ 'CUSTOMERID': "CustomerId",
69
+ 'PHONENUMBER': "PhoneNumber",
70
+ },
62
71
  }
63
72
 
64
73
  validations = {
@@ -70,7 +79,6 @@ class RetailMediaContactlistAmendment(ModelNormal):
70
79
  This must be a method because a model may have properties that are
71
80
  of type self, this must run after the class is loaded
72
81
  """
73
- lazy_import()
74
82
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
83
 
76
84
  _nullable = False
@@ -85,10 +93,10 @@ class RetailMediaContactlistAmendment(ModelNormal):
85
93
  openapi_types (dict): The key is attribute name
86
94
  and the value is attribute type.
87
95
  """
88
- lazy_import()
89
96
  return {
90
- 'attributes': (RetailMediaContactlistAmendmentAttributes,), # noqa: E501
91
- 'type': (str, none_type,), # noqa: E501
97
+ 'operation': (str,), # noqa: E501
98
+ 'identifiers': ([str],), # noqa: E501
99
+ 'identifier_type': (str, none_type,), # noqa: E501
92
100
  }
93
101
 
94
102
  @cached_property
@@ -97,8 +105,9 @@ class RetailMediaContactlistAmendment(ModelNormal):
97
105
 
98
106
 
99
107
  attribute_map = {
100
- 'attributes': 'attributes', # noqa: E501
101
- 'type': 'type', # noqa: E501
108
+ 'operation': 'operation', # noqa: E501
109
+ 'identifiers': 'identifiers', # noqa: E501
110
+ 'identifier_type': 'identifierType', # noqa: E501
102
111
  }
103
112
 
104
113
  read_only_vars = {
@@ -108,11 +117,12 @@ class RetailMediaContactlistAmendment(ModelNormal):
108
117
 
109
118
  @classmethod
110
119
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, attributes, *args, **kwargs): # noqa: E501
120
+ def _from_openapi_data(cls, operation, identifiers, *args, **kwargs): # noqa: E501
112
121
  """RetailMediaContactlistAmendment - a model defined in OpenAPI
113
122
 
114
123
  Args:
115
- attributes (RetailMediaContactlistAmendmentAttributes):
124
+ operation (str): Whether to add or remove users
125
+ identifiers ([str]): The users to add or remove, each in the schema specified
116
126
 
117
127
  Keyword Args:
118
128
  _check_type (bool): if True, values for parameters in openapi_types
@@ -145,7 +155,7 @@ class RetailMediaContactlistAmendment(ModelNormal):
145
155
  Animal class but this time we won't travel
146
156
  through its discriminator because we passed in
147
157
  _visited_composed_classes = (Animal,)
148
- type (str, none_type): User List. [optional] # noqa: E501
158
+ identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
149
159
  """
150
160
 
151
161
  _check_type = kwargs.pop('_check_type', True)
@@ -177,7 +187,8 @@ class RetailMediaContactlistAmendment(ModelNormal):
177
187
  self._configuration = _configuration
178
188
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
189
 
180
- self.attributes = attributes
190
+ self.operation = operation
191
+ self.identifiers = identifiers
181
192
  for var_name, var_value in kwargs.items():
182
193
  if var_name not in self.attribute_map and \
183
194
  self._configuration is not None and \
@@ -198,11 +209,12 @@ class RetailMediaContactlistAmendment(ModelNormal):
198
209
  ])
199
210
 
200
211
  @convert_js_args_to_python_args
201
- def __init__(self, attributes, *args, **kwargs): # noqa: E501
212
+ def __init__(self, operation, identifiers, *args, **kwargs): # noqa: E501
202
213
  """RetailMediaContactlistAmendment - a model defined in OpenAPI
203
214
 
204
215
  Args:
205
- attributes (RetailMediaContactlistAmendmentAttributes):
216
+ operation (str): Whether to add or remove users
217
+ identifiers ([str]): The users to add or remove, each in the schema specified
206
218
 
207
219
  Keyword Args:
208
220
  _check_type (bool): if True, values for parameters in openapi_types
@@ -235,7 +247,7 @@ class RetailMediaContactlistAmendment(ModelNormal):
235
247
  Animal class but this time we won't travel
236
248
  through its discriminator because we passed in
237
249
  _visited_composed_classes = (Animal,)
238
- type (str, none_type): User List. [optional] # noqa: E501
250
+ identifier_type (str, none_type): What type of identifiers are used. [optional] # noqa: E501
239
251
  """
240
252
 
241
253
  _check_type = kwargs.pop('_check_type', True)
@@ -265,7 +277,8 @@ class RetailMediaContactlistAmendment(ModelNormal):
265
277
  self._configuration = _configuration
266
278
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
279
 
268
- self.attributes = attributes
280
+ self.operation = operation
281
+ self.identifiers = identifiers
269
282
  for var_name, var_value in kwargs.items():
270
283
  if var_name not in self.attribute_map and \
271
284
  self._configuration is not None and \
@@ -64,16 +64,9 @@ class Section(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
69
- """
70
- This must be a method because a model may have properties that are
71
- of type self, this must run after the class is loaded
72
- """
73
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
- _nullable = False
69
+ _nullable = True
77
70
 
78
71
  @cached_property
79
72
  def openapi_types():
@@ -89,6 +82,7 @@ class Section(ModelNormal):
89
82
  return {
90
83
  'template_variables': ([TemplateVariable],), # noqa: E501
91
84
  'title': (str, none_type,), # noqa: E501
85
+ 'description': (str, none_type,), # noqa: E501
92
86
  }
93
87
 
94
88
  @cached_property
@@ -99,6 +93,7 @@ class Section(ModelNormal):
99
93
  attribute_map = {
100
94
  'template_variables': 'templateVariables', # noqa: E501
101
95
  'title': 'title', # noqa: E501
96
+ 'description': 'description', # noqa: E501
102
97
  }
103
98
 
104
99
  read_only_vars = {
@@ -146,6 +141,7 @@ class Section(ModelNormal):
146
141
  through its discriminator because we passed in
147
142
  _visited_composed_classes = (Animal,)
148
143
  title (str, none_type): [optional] # noqa: E501
144
+ description (str, none_type): [optional] # noqa: E501
149
145
  """
150
146
 
151
147
  _check_type = kwargs.pop('_check_type', True)
@@ -236,6 +232,7 @@ class Section(ModelNormal):
236
232
  through its discriminator because we passed in
237
233
  _visited_composed_classes = (Animal,)
238
234
  title (str, none_type): [optional] # noqa: E501
235
+ description (str, none_type): [optional] # noqa: E501
239
236
  """
240
237
 
241
238
  _check_type = kwargs.pop('_check_type', True)
@@ -76,14 +76,7 @@ class Template(ModelNormal):
76
76
  validations = {
77
77
  }
78
78
 
79
- @cached_property
80
- def additional_properties_type():
81
- """
82
- This must be a method because a model may have properties that are
83
- of type self, this must run after the class is loaded
84
- """
85
- lazy_import()
86
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
79
+ additional_properties_type = None
87
80
 
88
81
  _nullable = False
89
82
 
@@ -107,7 +100,6 @@ class Template(ModelNormal):
107
100
  'created_at': (datetime,), # noqa: E501
108
101
  'updated_at': (datetime,), # noqa: E501
109
102
  'sections': ([Section],), # noqa: E501
110
- 'retailer_id': (int,), # noqa: E501
111
103
  'sku_collection_max': (int, none_type,), # noqa: E501
112
104
  'sku_per_collection_max': (int, none_type,), # noqa: E501
113
105
  'displayable_skus_max': (int, none_type,), # noqa: E501
@@ -127,7 +119,6 @@ class Template(ModelNormal):
127
119
  'created_at': 'createdAt', # noqa: E501
128
120
  'updated_at': 'updatedAt', # noqa: E501
129
121
  'sections': 'sections', # noqa: E501
130
- 'retailer_id': 'retailerId', # noqa: E501
131
122
  'sku_collection_max': 'skuCollectionMax', # noqa: E501
132
123
  'sku_per_collection_max': 'skuPerCollectionMax', # noqa: E501
133
124
  'displayable_skus_max': 'displayableSkusMax', # noqa: E501
@@ -146,9 +137,9 @@ class Template(ModelNormal):
146
137
  Args:
147
138
  creative_format (str): The kind of creative this template can be used to build.
148
139
  name (str): The name of the template
149
- sku_collection_min (int): TODO: what is it ?
150
- sku_per_collection_min (int): TODO: what is it ?
151
- all_collections_mandatory (bool): TODO: what is it ?
140
+ sku_collection_min (int): Minimum number of skus in the collection
141
+ sku_per_collection_min (int): Minimum number of skus per collection
142
+ all_collections_mandatory (bool): Marks whether or not all collections are mandatory
152
143
  created_at (datetime): The time at which the template was created
153
144
  updated_at (datetime): The time at which the template was updated
154
145
  sections ([Section]): The sections holding various template variables
@@ -184,10 +175,9 @@ class Template(ModelNormal):
184
175
  Animal class but this time we won't travel
185
176
  through its discriminator because we passed in
186
177
  _visited_composed_classes = (Animal,)
187
- retailer_id (int): The retailer associated to the template. [optional] # noqa: E501
188
- sku_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
189
- sku_per_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
190
- displayable_skus_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
178
+ sku_collection_max (int, none_type): Maximum number of skus in the collection. [optional] # noqa: E501
179
+ sku_per_collection_max (int, none_type): Maximum number of skus per collection. [optional] # noqa: E501
180
+ displayable_skus_max (int, none_type): Maximum number of displayable skus. [optional] # noqa: E501
191
181
  """
192
182
 
193
183
  _check_type = kwargs.pop('_check_type', True)
@@ -253,9 +243,9 @@ class Template(ModelNormal):
253
243
  Args:
254
244
  creative_format (str): The kind of creative this template can be used to build.
255
245
  name (str): The name of the template
256
- sku_collection_min (int): TODO: what is it ?
257
- sku_per_collection_min (int): TODO: what is it ?
258
- all_collections_mandatory (bool): TODO: what is it ?
246
+ sku_collection_min (int): Minimum number of skus in the collection
247
+ sku_per_collection_min (int): Minimum number of skus per collection
248
+ all_collections_mandatory (bool): Marks whether or not all collections are mandatory
259
249
  created_at (datetime): The time at which the template was created
260
250
  updated_at (datetime): The time at which the template was updated
261
251
  sections ([Section]): The sections holding various template variables
@@ -291,10 +281,9 @@ class Template(ModelNormal):
291
281
  Animal class but this time we won't travel
292
282
  through its discriminator because we passed in
293
283
  _visited_composed_classes = (Animal,)
294
- retailer_id (int): The retailer associated to the template. [optional] # noqa: E501
295
- sku_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
296
- sku_per_collection_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
297
- displayable_skus_max (int, none_type): TODO: what is it ?. [optional] # noqa: E501
284
+ sku_collection_max (int, none_type): Maximum number of skus in the collection. [optional] # noqa: E501
285
+ sku_per_collection_max (int, none_type): Maximum number of skus per collection. [optional] # noqa: E501
286
+ displayable_skus_max (int, none_type): Maximum number of displayable skus. [optional] # noqa: E501
298
287
  """
299
288
 
300
289
  _check_type = kwargs.pop('_check_type', True)