criteo-api-retailmedia-sdk 0.0.240731__py3-none-any.whl → 0.0.241029__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.
Files changed (69) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +442 -0
  3. criteo_api_retailmedia_preview/api/analytics_api.py +3 -3
  4. criteo_api_retailmedia_preview/api/audience_api.py +89 -232
  5. criteo_api_retailmedia_preview/api/balance_api.py +4 -16
  6. criteo_api_retailmedia_preview/api/campaign_api.py +10 -574
  7. criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +186 -0
  8. criteo_api_retailmedia_preview/api_client.py +4 -4
  9. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  10. criteo_api_retailmedia_preview/configuration.py +1 -1
  11. criteo_api_retailmedia_preview/model/balance_response_v2.py +10 -10
  12. criteo_api_retailmedia_preview/model/bot_message.py +277 -0
  13. criteo_api_retailmedia_preview/model/botmessage.py +329 -0
  14. criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
  15. criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_list_response.py → entity_resource_collection_outcome_of_retail_media_account.py} +8 -8
  16. criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_resource.py → entity_resource_of_retail_media_account.py} +9 -18
  17. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  18. criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2.py → external_retail_media_account.py} +54 -32
  19. criteo_api_retailmedia_preview/model/http_validation_error.py +269 -0
  20. criteo_api_retailmedia_preview/model/inbot_discussion.py +272 -0
  21. criteo_api_retailmedia_preview/model/{rm_legacy_segment_customer_list.py → inbot_discussion_body_model.py} +17 -17
  22. criteo_api_retailmedia_preview/model/{rm_legacy_audience_user_behavior_details_v2.py → inbot_discussion_data_instance_model.py} +17 -17
  23. criteo_api_retailmedia_preview/model/location_inner.py +259 -0
  24. criteo_api_retailmedia_preview/model/message.py +273 -0
  25. criteo_api_retailmedia_preview/model/message_body_model.py +275 -0
  26. criteo_api_retailmedia_preview/model/message_data_instance_model.py +279 -0
  27. criteo_api_retailmedia_preview/model/message_error.py +275 -0
  28. criteo_api_retailmedia_preview/model/product.py +4 -0
  29. criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v1.py → product_recommendation.py} +46 -47
  30. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_outcome.py +6 -4
  31. criteo_api_retailmedia_preview/model/report_detail_warning.py +285 -0
  32. criteo_api_retailmedia_preview/model/report_detail_warnings.py +281 -0
  33. criteo_api_retailmedia_preview/model/report_ok_response.py +16 -2
  34. criteo_api_retailmedia_preview/model/resource_of_retail_media_account.py +270 -0
  35. criteo_api_retailmedia_preview/model/{value_resource_outcome_of_line_item_budget_overrides.py → resource_outcome_of_retail_media_account.py} +8 -8
  36. criteo_api_retailmedia_preview/model/retail_media_account.py +301 -0
  37. criteo_api_retailmedia_preview/model/retail_media_seller.py +261 -0
  38. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +274 -0
  39. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +275 -0
  40. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +307 -0
  41. criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v2_resource.py → rm_audience_entity_v1_resource.py} +8 -8
  42. criteo_api_retailmedia_preview/model/{rm_legacy_audience_get_entity_v1_list_response.py → rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py} +14 -8
  43. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +271 -0
  44. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +273 -0
  45. criteo_api_retailmedia_preview/model/rm_audience_search_input_v1.py +269 -0
  46. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +271 -0
  47. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +17 -9
  48. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +11 -0
  49. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +10 -0
  50. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +16 -5
  51. criteo_api_retailmedia_preview/model/{rm_legacy_segment_user_behavior_v2.py → rm_events_v1.py} +41 -49
  52. criteo_api_retailmedia_preview/model/validation_error.py +287 -0
  53. criteo_api_retailmedia_preview/model/{value_resource_input_of_campaign_budget_overrides.py → value_resource_collection_input_of_retail_media_seller.py} +8 -8
  54. criteo_api_retailmedia_preview/model/{value_resource_outcome_of_campaign_budget_overrides.py → value_resource_collection_outcome_of_retail_media_seller.py} +8 -8
  55. criteo_api_retailmedia_preview/model/{value_resource_input_of_line_item_budget_overrides.py → value_resource_input_of_retail_media_seller_account_creation.py} +8 -8
  56. criteo_api_retailmedia_preview/model/{value_resource_of_campaign_budget_overrides.py → value_resource_of_retail_media_seller.py} +8 -8
  57. criteo_api_retailmedia_preview/model/{value_resource_of_line_item_budget_overrides.py → value_resource_of_retail_media_seller_account_creation.py} +8 -8
  58. criteo_api_retailmedia_preview/models/__init__.py +37 -22
  59. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/METADATA +3 -3
  60. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/RECORD +62 -46
  61. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/WHEEL +1 -1
  62. criteo_api_retailmedia_preview/model/campaign_budget_overrides.py +0 -276
  63. criteo_api_retailmedia_preview/model/campaign_daily_budget_override.py +0 -283
  64. criteo_api_retailmedia_preview/model/campaign_monthly_budget_override.py +0 -283
  65. criteo_api_retailmedia_preview/model/daily_line_item_budget_override.py +0 -281
  66. criteo_api_retailmedia_preview/model/line_item_budget_overrides.py +0 -276
  67. criteo_api_retailmedia_preview/model/monthly_line_item_budeget_override.py +0 -283
  68. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v1.py +0 -291
  69. {criteo_api_retailmedia_sdk-0.0.240731.dist-info → criteo_api_retailmedia_sdk-0.0.241029.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,275 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
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_preview.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_preview.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class MessageError(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
+ 'trace_id': (str, none_type,), # noqa: E501
85
+ 'type': (str, none_type,), # noqa: E501
86
+ 'code': (str, none_type,), # noqa: E501
87
+ 'instance': (str, none_type,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'trace_id': 'traceId', # noqa: E501
97
+ 'type': 'type', # noqa: E501
98
+ 'code': 'code', # noqa: E501
99
+ 'instance': 'instance', # noqa: E501
100
+ }
101
+
102
+ read_only_vars = {
103
+ }
104
+
105
+ _composed_schemas = {}
106
+
107
+ @classmethod
108
+ @convert_js_args_to_python_args
109
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
+ """MessageError - a model defined in OpenAPI
111
+
112
+ Keyword Args:
113
+ _check_type (bool): if True, values for parameters in openapi_types
114
+ will be type checked and a TypeError will be
115
+ raised if the wrong type is input.
116
+ Defaults to True
117
+ _path_to_item (tuple/list): This is a list of keys or values to
118
+ drill down to the model in received_data
119
+ when deserializing a response
120
+ _spec_property_naming (bool): True if the variable names in the input data
121
+ are serialized names, as specified in the OpenAPI document.
122
+ False if the variable names in the input data
123
+ are pythonic names, e.g. snake case (default)
124
+ _configuration (Configuration): the instance to use when
125
+ deserializing a file_type parameter.
126
+ If passed, type conversion is attempted
127
+ If omitted no type conversion is done.
128
+ _visited_composed_classes (tuple): This stores a tuple of
129
+ classes that we have traveled through so that
130
+ if we see that class again we will not use its
131
+ discriminator again.
132
+ When traveling through a discriminator, the
133
+ composed schema that is
134
+ is traveled through is added to this set.
135
+ For example if Animal has a discriminator
136
+ petType and we pass in "Dog", and the class Dog
137
+ allOf includes Animal, we move through Animal
138
+ once using the discriminator, and pick Dog.
139
+ Then in Dog, we will make an instance of the
140
+ Animal class but this time we won't travel
141
+ through its discriminator because we passed in
142
+ _visited_composed_classes = (Animal,)
143
+ trace_id (str, none_type): correlation ID, unique to each request. [optional] # noqa: E501
144
+ type (str, none_type): error category. [optional] # noqa: E501
145
+ code (str, none_type): error code. [optional] # noqa: E501
146
+ instance (str, none_type): specific occurrence of the problem. [optional] # noqa: E501
147
+ """
148
+
149
+ _check_type = kwargs.pop('_check_type', True)
150
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
+ _path_to_item = kwargs.pop('_path_to_item', ())
152
+ _configuration = kwargs.pop('_configuration', None)
153
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
+
155
+ self = super(OpenApiModel, cls).__new__(cls)
156
+
157
+ if args:
158
+ for arg in args:
159
+ if isinstance(arg, dict):
160
+ kwargs.update(arg)
161
+ else:
162
+ raise ApiTypeError(
163
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
+ args,
165
+ self.__class__.__name__,
166
+ ),
167
+ path_to_item=_path_to_item,
168
+ valid_classes=(self.__class__,),
169
+ )
170
+
171
+ self._data_store = {}
172
+ self._check_type = _check_type
173
+ self._spec_property_naming = _spec_property_naming
174
+ self._path_to_item = _path_to_item
175
+ self._configuration = _configuration
176
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
+
178
+ for var_name, var_value in kwargs.items():
179
+ if var_name not in self.attribute_map and \
180
+ self._configuration is not None and \
181
+ self._configuration.discard_unknown_keys and \
182
+ self.additional_properties_type is None:
183
+ # discard variable.
184
+ continue
185
+ setattr(self, var_name, var_value)
186
+ return self
187
+
188
+ required_properties = set([
189
+ '_data_store',
190
+ '_check_type',
191
+ '_spec_property_naming',
192
+ '_path_to_item',
193
+ '_configuration',
194
+ '_visited_composed_classes',
195
+ ])
196
+
197
+ @convert_js_args_to_python_args
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """MessageError - a model defined in OpenAPI
200
+
201
+ Keyword Args:
202
+ _check_type (bool): if True, values for parameters in openapi_types
203
+ will be type checked and a TypeError will be
204
+ raised if the wrong type is input.
205
+ Defaults to True
206
+ _path_to_item (tuple/list): This is a list of keys or values to
207
+ drill down to the model in received_data
208
+ when deserializing a response
209
+ _spec_property_naming (bool): True if the variable names in the input data
210
+ are serialized names, as specified in the OpenAPI document.
211
+ False if the variable names in the input data
212
+ are pythonic names, e.g. snake case (default)
213
+ _configuration (Configuration): the instance to use when
214
+ deserializing a file_type parameter.
215
+ If passed, type conversion is attempted
216
+ If omitted no type conversion is done.
217
+ _visited_composed_classes (tuple): This stores a tuple of
218
+ classes that we have traveled through so that
219
+ if we see that class again we will not use its
220
+ discriminator again.
221
+ When traveling through a discriminator, the
222
+ composed schema that is
223
+ is traveled through is added to this set.
224
+ For example if Animal has a discriminator
225
+ petType and we pass in "Dog", and the class Dog
226
+ allOf includes Animal, we move through Animal
227
+ once using the discriminator, and pick Dog.
228
+ Then in Dog, we will make an instance of the
229
+ Animal class but this time we won't travel
230
+ through its discriminator because we passed in
231
+ _visited_composed_classes = (Animal,)
232
+ trace_id (str, none_type): correlation ID, unique to each request. [optional] # noqa: E501
233
+ type (str, none_type): error category. [optional] # noqa: E501
234
+ code (str, none_type): error code. [optional] # noqa: E501
235
+ instance (str, none_type): specific occurrence of the problem. [optional] # noqa: E501
236
+ """
237
+
238
+ _check_type = kwargs.pop('_check_type', True)
239
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
240
+ _path_to_item = kwargs.pop('_path_to_item', ())
241
+ _configuration = kwargs.pop('_configuration', None)
242
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
243
+
244
+ if args:
245
+ for arg in args:
246
+ if isinstance(arg, dict):
247
+ kwargs.update(arg)
248
+ else:
249
+ raise ApiTypeError(
250
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
251
+ args,
252
+ self.__class__.__name__,
253
+ ),
254
+ path_to_item=_path_to_item,
255
+ valid_classes=(self.__class__,),
256
+ )
257
+
258
+ self._data_store = {}
259
+ self._check_type = _check_type
260
+ self._spec_property_naming = _spec_property_naming
261
+ self._path_to_item = _path_to_item
262
+ self._configuration = _configuration
263
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
264
+
265
+ for var_name, var_value in kwargs.items():
266
+ if var_name not in self.attribute_map and \
267
+ self._configuration is not None and \
268
+ self._configuration.discard_unknown_keys and \
269
+ self.additional_properties_type is None:
270
+ # discard variable.
271
+ continue
272
+ setattr(self, var_name, var_value)
273
+ if var_name in self.read_only_vars:
274
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
275
+ f"class with read only attributes.")
@@ -189,6 +189,7 @@ class Product(ModelNormal):
189
189
  'external_seller_name': (str, none_type,), # noqa: E501
190
190
  'number_of_reviews': (int, none_type,), # noqa: E501
191
191
  'product_rating': (str, none_type,), # noqa: E501
192
+ 'badge': (str, none_type,), # noqa: E501
192
193
  }
193
194
 
194
195
  @cached_property
@@ -278,6 +279,7 @@ class Product(ModelNormal):
278
279
  'external_seller_name': 'externalSellerName', # noqa: E501
279
280
  'number_of_reviews': 'numberOfReviews', # noqa: E501
280
281
  'product_rating': 'productRating', # noqa: E501
282
+ 'badge': 'badge', # noqa: E501
281
283
  }
282
284
 
283
285
  read_only_vars = {
@@ -404,6 +406,7 @@ class Product(ModelNormal):
404
406
  external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
405
407
  number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
406
408
  product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
409
+ badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
407
410
  """
408
411
 
409
412
  channel = kwargs.get('channel', "online")
@@ -578,6 +581,7 @@ class Product(ModelNormal):
578
581
  external_seller_name (str, none_type): The external name of the seller (case sensitive and 50 UTF8 characters max). This information is required by the Criteo Offsite Ads.. [optional] # noqa: E501
579
582
  number_of_reviews (int, none_type): The number of customer reviews for the product. [optional] # noqa: E501
580
583
  product_rating (str, none_type): The product rating for the product. [optional] # noqa: E501
584
+ badge (str, none_type): URL of a badge image to display on the product.. [optional] # noqa: E501
581
585
  """
582
586
 
583
587
  channel = kwargs.get('channel', "online")
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class RmLegacySegmentUserBehaviorV1(ModelNormal):
33
+ class ProductRecommendation(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -55,31 +55,16 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
55
55
  """
56
56
 
57
57
  allowed_values = {
58
- ('user_type',): {
59
- 'VIEWER': "viewer",
60
- 'BUYER': "buyer",
61
- 'ADDTOCARTER': "addToCarter",
62
- },
63
- ('lookback_window',): {
64
- 'P7D': "P7D",
65
- 'P14D': "P14D",
66
- 'P30D': "P30D",
67
- 'P45D': "P45D",
68
- 'P60D': "P60D",
69
- 'P90D': "P90D",
70
- 'P120D': "P120D",
71
- 'P150D': "P150D",
72
- 'P180D': "P180D",
73
- },
74
- ('target_type',): {
75
- 'None': None,
76
- 'BRAND': "brand",
77
- 'CATEGORY': "category",
78
- },
79
58
  }
80
59
 
81
60
  validations = {
82
- ('target_ids',): {
61
+ ('image_url',): {
62
+ 'max_length': 65536,
63
+ 'min_length': 1,
64
+ },
65
+ ('url',): {
66
+ 'max_length': 65536,
67
+ 'min_length': 1,
83
68
  },
84
69
  }
85
70
 
@@ -104,10 +89,14 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
104
89
  and the value is attribute type.
105
90
  """
106
91
  return {
107
- 'user_type': (str,), # noqa: E501
108
- 'lookback_window': (str,), # noqa: E501
109
- 'target_type': (str, none_type,), # noqa: E501
110
- 'target_ids': ([str], none_type,), # noqa: E501
92
+ 'rationale': (str,), # noqa: E501
93
+ 'name': (str, none_type,), # noqa: E501
94
+ 'description': (str, none_type,), # noqa: E501
95
+ 'image_url': (str, none_type,), # noqa: E501
96
+ 'url': (str, none_type,), # noqa: E501
97
+ 'brand': (str, none_type,), # noqa: E501
98
+ 'price': (float, none_type,), # noqa: E501
99
+ 'currency': (str, none_type,), # noqa: E501
111
100
  }
112
101
 
113
102
  @cached_property
@@ -116,10 +105,14 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
116
105
 
117
106
 
118
107
  attribute_map = {
119
- 'user_type': 'userType', # noqa: E501
120
- 'lookback_window': 'lookbackWindow', # noqa: E501
121
- 'target_type': 'targetType', # noqa: E501
122
- 'target_ids': 'targetIds', # noqa: E501
108
+ 'rationale': 'rationale', # noqa: E501
109
+ 'name': 'name', # noqa: E501
110
+ 'description': 'description', # noqa: E501
111
+ 'image_url': 'imageUrl', # noqa: E501
112
+ 'url': 'url', # noqa: E501
113
+ 'brand': 'brand', # noqa: E501
114
+ 'price': 'price', # noqa: E501
115
+ 'currency': 'currency', # noqa: E501
123
116
  }
124
117
 
125
118
  read_only_vars = {
@@ -129,12 +122,11 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
129
122
 
130
123
  @classmethod
131
124
  @convert_js_args_to_python_args
132
- def _from_openapi_data(cls, user_type, lookback_window, *args, **kwargs): # noqa: E501
133
- """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
125
+ def _from_openapi_data(cls, rationale, *args, **kwargs): # noqa: E501
126
+ """ProductRecommendation - a model defined in OpenAPI
134
127
 
135
128
  Args:
136
- user_type (str): Type of shopper activity used to generate the audience.
137
- lookback_window (str): Length of lookback window
129
+ rationale (str): reason for this recommendation, given by the bot
138
130
 
139
131
  Keyword Args:
140
132
  _check_type (bool): if True, values for parameters in openapi_types
@@ -167,8 +159,13 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
167
159
  Animal class but this time we won't travel
168
160
  through its discriminator because we passed in
169
161
  _visited_composed_classes = (Animal,)
170
- target_type (str, none_type): Type of target. [optional] # noqa: E501
171
- target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
162
+ name (str, none_type): name of the product. [optional] # noqa: E501
163
+ description (str, none_type): description of the product. [optional] # noqa: E501
164
+ image_url (str, none_type): url of the product image. [optional] # noqa: E501
165
+ url (str, none_type): url of the product on the retailer website. [optional] # noqa: E501
166
+ brand (str, none_type): brand of the product. [optional] # noqa: E501
167
+ price (float, none_type): numerical value of the price of the product. [optional] # noqa: E501
168
+ currency (str, none_type): currency of the price of the product. [optional] # noqa: E501
172
169
  """
173
170
 
174
171
  _check_type = kwargs.pop('_check_type', True)
@@ -200,8 +197,7 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
200
197
  self._configuration = _configuration
201
198
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
202
199
 
203
- self.user_type = user_type
204
- self.lookback_window = lookback_window
200
+ self.rationale = rationale
205
201
  for var_name, var_value in kwargs.items():
206
202
  if var_name not in self.attribute_map and \
207
203
  self._configuration is not None and \
@@ -222,12 +218,11 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
222
218
  ])
223
219
 
224
220
  @convert_js_args_to_python_args
225
- def __init__(self, user_type, lookback_window, *args, **kwargs): # noqa: E501
226
- """RmLegacySegmentUserBehaviorV1 - a model defined in OpenAPI
221
+ def __init__(self, rationale, *args, **kwargs): # noqa: E501
222
+ """ProductRecommendation - a model defined in OpenAPI
227
223
 
228
224
  Args:
229
- user_type (str): Type of shopper activity used to generate the audience.
230
- lookback_window (str): Length of lookback window
225
+ rationale (str): reason for this recommendation, given by the bot
231
226
 
232
227
  Keyword Args:
233
228
  _check_type (bool): if True, values for parameters in openapi_types
@@ -260,8 +255,13 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
260
255
  Animal class but this time we won't travel
261
256
  through its discriminator because we passed in
262
257
  _visited_composed_classes = (Animal,)
263
- target_type (str, none_type): Type of target. [optional] # noqa: E501
264
- target_ids ([str], none_type): The categories to target. [optional] # noqa: E501
258
+ name (str, none_type): name of the product. [optional] # noqa: E501
259
+ description (str, none_type): description of the product. [optional] # noqa: E501
260
+ image_url (str, none_type): url of the product image. [optional] # noqa: E501
261
+ url (str, none_type): url of the product on the retailer website. [optional] # noqa: E501
262
+ brand (str, none_type): brand of the product. [optional] # noqa: E501
263
+ price (float, none_type): numerical value of the price of the product. [optional] # noqa: E501
264
+ currency (str, none_type): currency of the price of the product. [optional] # noqa: E501
265
265
  """
266
266
 
267
267
  _check_type = kwargs.pop('_check_type', True)
@@ -291,8 +291,7 @@ class RmLegacySegmentUserBehaviorV1(ModelNormal):
291
291
  self._configuration = _configuration
292
292
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
293
293
 
294
- self.user_type = user_type
295
- self.lookback_window = lookback_window
294
+ self.rationale = rationale
296
295
  for var_name, var_value in kwargs.items():
297
296
  if var_name not in self.attribute_map and \
298
297
  self._configuration is not None and \
@@ -86,7 +86,7 @@ class PromotedProductResourceCollectionOutcome(ModelNormal):
86
86
  return {
87
87
  'errors': ([RmcaCommonProblem], none_type,), # noqa: E501
88
88
  'warnings': ([RmcaCommonProblem], none_type,), # noqa: E501
89
- 'meta': (ProductMetadata,), # noqa: E501
89
+ 'metadata': (ProductMetadata,), # noqa: E501
90
90
  'data': ([PromotedProductResource], none_type,), # noqa: E501
91
91
  }
92
92
 
@@ -98,11 +98,13 @@ class PromotedProductResourceCollectionOutcome(ModelNormal):
98
98
  attribute_map = {
99
99
  'errors': 'errors', # noqa: E501
100
100
  'warnings': 'warnings', # noqa: E501
101
- 'meta': 'meta', # noqa: E501
101
+ 'metadata': 'metadata', # noqa: E501
102
102
  'data': 'data', # noqa: E501
103
103
  }
104
104
 
105
105
  read_only_vars = {
106
+ 'errors', # noqa: E501
107
+ 'warnings', # noqa: E501
106
108
  }
107
109
 
108
110
  _composed_schemas = {}
@@ -145,7 +147,7 @@ class PromotedProductResourceCollectionOutcome(ModelNormal):
145
147
  _visited_composed_classes = (Animal,)
146
148
  errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
147
149
  warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
148
- meta (ProductMetadata): [optional] # noqa: E501
150
+ metadata (ProductMetadata): [optional] # noqa: E501
149
151
  data ([PromotedProductResource], none_type): [optional] # noqa: E501
150
152
  """
151
153
 
@@ -234,7 +236,7 @@ class PromotedProductResourceCollectionOutcome(ModelNormal):
234
236
  _visited_composed_classes = (Animal,)
235
237
  errors ([RmcaCommonProblem], none_type): [optional] # noqa: E501
236
238
  warnings ([RmcaCommonProblem], none_type): [optional] # noqa: E501
237
- meta (ProductMetadata): [optional] # noqa: E501
239
+ metadata (ProductMetadata): [optional] # noqa: E501
238
240
  data ([PromotedProductResource], none_type): [optional] # noqa: E501
239
241
  """
240
242