criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.240808__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.
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/RECORD +33 -30
- criteo_api_retailmedia_v2024_07/__init__.py +1 -1
- criteo_api_retailmedia_v2024_07/api/balance_api.py +118 -90
- criteo_api_retailmedia_v2024_07/api/campaign_api.py +711 -707
- criteo_api_retailmedia_v2024_07/api_client.py +1 -1
- criteo_api_retailmedia_v2024_07/configuration.py +1 -1
- criteo_api_retailmedia_v2024_07/model/{external_add_funds_to_balance.py → add_funds_to_balance_v2.py} +12 -14
- criteo_api_retailmedia_v2024_07/model/{add_funds_to_balance_request.py → add_funds_to_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py} +46 -70
- criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +271 -0
- criteo_api_retailmedia_v2024_07/model/{change_dates_of_balance_request.py → change_dates_of_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_create_balance.py → create_balance_v2.py} +22 -34
- criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_v2024_07/model/{balance_response_paged_list_response.py → paged_resource_collection_outcome_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/product_metadata.py +269 -0
- criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +266 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product.py +270 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +270 -0
- criteo_api_retailmedia_v2024_07/model/{external_promoted_product202110.py → promoted_product_resource_collection_input.py} +13 -14
- criteo_api_retailmedia_v2024_07/model/{promoted_product202110_paged_list_response.py → promoted_product_resource_collection_outcome.py} +25 -32
- criteo_api_retailmedia_v2024_07/model/{resource_of_add_funds_to_balance.py → resource_of_add_funds_to_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_create_balance.py → resource_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_update_balance_model.py → resource_of_change_dates_of_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_balance_response.py → resource_of_create_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py +277 -0
- criteo_api_retailmedia_v2024_07/model/{external_change_dates_of_balance.py → update_balance_model_v2.py} +22 -24
- criteo_api_retailmedia_v2024_07/model/{update_balance_model_request.py → update_balance_model_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/models/__init__.py +23 -20
- criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +0 -283
- criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +0 -269
- criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +0 -277
- criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +0 -277
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/top_level.txt +0 -0
|
@@ -76,7 +76,7 @@ class ApiClient(object):
|
|
|
76
76
|
self.default_headers[header_name] = header_value
|
|
77
77
|
self.cookie = cookie
|
|
78
78
|
# Set default User-Agent.
|
|
79
|
-
self.user_agent = 'OpenAPI-Generator/2024.07.0.
|
|
79
|
+
self.user_agent = 'OpenAPI-Generator/2024.07.0.240808/python'
|
|
80
80
|
|
|
81
81
|
def __enter__(self):
|
|
82
82
|
return self
|
|
@@ -395,7 +395,7 @@ class Configuration(object):
|
|
|
395
395
|
"OS: {env}\n"\
|
|
396
396
|
"Python Version: {pyversion}\n"\
|
|
397
397
|
"Version of the API: 2024-07\n"\
|
|
398
|
-
"SDK Package Version: 2024.07.0.
|
|
398
|
+
"SDK Package Version: 2024.07.0.240808".\
|
|
399
399
|
format(env=sys.platform, pyversion=sys.version)
|
|
400
400
|
|
|
401
401
|
def get_host_settings(self):
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class AddFundsToBalanceV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -82,8 +82,8 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
84
|
'delta_amount': (float,), # noqa: E501
|
|
85
|
-
'
|
|
86
|
-
'
|
|
85
|
+
'po_number': (str, none_type,), # noqa: E501
|
|
86
|
+
'memo': (str, none_type,), # noqa: E501
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
@cached_property
|
|
@@ -93,8 +93,8 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
93
93
|
|
|
94
94
|
attribute_map = {
|
|
95
95
|
'delta_amount': 'deltaAmount', # noqa: E501
|
|
96
|
-
'memo': 'memo', # noqa: E501
|
|
97
96
|
'po_number': 'poNumber', # noqa: E501
|
|
97
|
+
'memo': 'memo', # noqa: E501
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
read_only_vars = {
|
|
@@ -104,12 +104,11 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
104
104
|
|
|
105
105
|
@classmethod
|
|
106
106
|
@convert_js_args_to_python_args
|
|
107
|
-
def _from_openapi_data(cls, delta_amount,
|
|
108
|
-
"""
|
|
107
|
+
def _from_openapi_data(cls, delta_amount, *args, **kwargs): # noqa: E501
|
|
108
|
+
"""AddFundsToBalanceV2 - a model defined in OpenAPI
|
|
109
109
|
|
|
110
110
|
Args:
|
|
111
111
|
delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance.
|
|
112
|
-
memo (str): Memo
|
|
113
112
|
|
|
114
113
|
Keyword Args:
|
|
115
114
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -142,7 +141,8 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
142
141
|
Animal class but this time we won't travel
|
|
143
142
|
through its discriminator because we passed in
|
|
144
143
|
_visited_composed_classes = (Animal,)
|
|
145
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
144
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
145
|
+
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
146
146
|
"""
|
|
147
147
|
|
|
148
148
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -175,7 +175,6 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
175
175
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
176
176
|
|
|
177
177
|
self.delta_amount = delta_amount
|
|
178
|
-
self.memo = memo
|
|
179
178
|
for var_name, var_value in kwargs.items():
|
|
180
179
|
if var_name not in self.attribute_map and \
|
|
181
180
|
self._configuration is not None and \
|
|
@@ -196,12 +195,11 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
196
195
|
])
|
|
197
196
|
|
|
198
197
|
@convert_js_args_to_python_args
|
|
199
|
-
def __init__(self, delta_amount,
|
|
200
|
-
"""
|
|
198
|
+
def __init__(self, delta_amount, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""AddFundsToBalanceV2 - a model defined in OpenAPI
|
|
201
200
|
|
|
202
201
|
Args:
|
|
203
202
|
delta_amount (float): Amount of billable funds to be added / decreased allotted to the balance.
|
|
204
|
-
memo (str): Memo
|
|
205
203
|
|
|
206
204
|
Keyword Args:
|
|
207
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -234,7 +232,8 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
234
232
|
Animal class but this time we won't travel
|
|
235
233
|
through its discriminator because we passed in
|
|
236
234
|
_visited_composed_classes = (Animal,)
|
|
237
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
235
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
236
|
+
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
238
237
|
"""
|
|
239
238
|
|
|
240
239
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -265,7 +264,6 @@ class ExternalAddFundsToBalance(ModelNormal):
|
|
|
265
264
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
266
265
|
|
|
267
266
|
self.delta_amount = delta_amount
|
|
268
|
-
self.memo = memo
|
|
269
267
|
for var_name, var_value in kwargs.items():
|
|
270
268
|
if var_name not in self.attribute_map and \
|
|
271
269
|
self._configuration is not None and \
|
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_add_funds_to_balance_v2 import ResourceOfAddFundsToBalanceV2
|
|
34
|
+
globals()['ResourceOfAddFundsToBalanceV2'] = ResourceOfAddFundsToBalanceV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class AddFundsToBalanceV2Request(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,7 +87,7 @@ class AddFundsToBalanceRequest(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'data': (
|
|
90
|
+
'data': (ResourceOfAddFundsToBalanceV2,), # noqa: E501
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
@@ -107,7 +107,7 @@ class AddFundsToBalanceRequest(ModelNormal):
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
110
|
+
"""AddFundsToBalanceV2Request - a model defined in OpenAPI
|
|
111
111
|
|
|
112
112
|
Keyword Args:
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -140,7 +140,7 @@ class AddFundsToBalanceRequest(ModelNormal):
|
|
|
140
140
|
Animal class but this time we won't travel
|
|
141
141
|
through its discriminator because we passed in
|
|
142
142
|
_visited_composed_classes = (Animal,)
|
|
143
|
-
data (
|
|
143
|
+
data (ResourceOfAddFundsToBalanceV2): [optional] # noqa: E501
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +193,7 @@ class AddFundsToBalanceRequest(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""AddFundsToBalanceV2Request - a model defined in OpenAPI
|
|
197
197
|
|
|
198
198
|
Keyword Args:
|
|
199
199
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -226,7 +226,7 @@ class AddFundsToBalanceRequest(ModelNormal):
|
|
|
226
226
|
Animal class but this time we won't travel
|
|
227
227
|
through its discriminator because we passed in
|
|
228
228
|
_visited_composed_classes = (Animal,)
|
|
229
|
-
data (
|
|
229
|
+
data (ResourceOfAddFundsToBalanceV2): [optional] # noqa: E501
|
|
230
230
|
"""
|
|
231
231
|
|
|
232
232
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py}
RENAMED
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class BalanceResponseV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -55,12 +55,6 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
-
('status',): {
|
|
59
|
-
'UNKNOWN': "unknown",
|
|
60
|
-
'SCHEDULED': "scheduled",
|
|
61
|
-
'ACTIVE': "active",
|
|
62
|
-
'ENDED': "ended",
|
|
63
|
-
},
|
|
64
58
|
('balance_type',): {
|
|
65
59
|
'UNKNOWN': "unknown",
|
|
66
60
|
'CAPPED': "capped",
|
|
@@ -77,6 +71,12 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
77
71
|
'BILLBYCRITEO': "BillByCriteo",
|
|
78
72
|
'UNKNOWN': "Unknown",
|
|
79
73
|
},
|
|
74
|
+
('status',): {
|
|
75
|
+
'UNKNOWN': "unknown",
|
|
76
|
+
'SCHEDULED': "scheduled",
|
|
77
|
+
'ACTIVE': "active",
|
|
78
|
+
'ENDED': "ended",
|
|
79
|
+
},
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
validations = {
|
|
@@ -104,20 +104,19 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
104
104
|
"""
|
|
105
105
|
return {
|
|
106
106
|
'name': (str,), # noqa: E501
|
|
107
|
-
'
|
|
108
|
-
'
|
|
107
|
+
'start_date': (date,), # noqa: E501
|
|
108
|
+
'balance_type': (str,), # noqa: E501
|
|
109
|
+
'spend_type': (str,), # noqa: E501
|
|
110
|
+
'private_market_billing_type': (str,), # noqa: E501
|
|
111
|
+
'po_number': (str, none_type,), # noqa: E501
|
|
112
|
+
'memo': (str, none_type,), # noqa: E501
|
|
109
113
|
'deposited': (float, none_type,), # noqa: E501
|
|
110
114
|
'spent': (float, none_type,), # noqa: E501
|
|
111
115
|
'remaining': (float, none_type,), # noqa: E501
|
|
112
|
-
'
|
|
113
|
-
'end_date': (date,), # noqa: E501
|
|
116
|
+
'end_date': (date, none_type,), # noqa: E501
|
|
114
117
|
'status': (str,), # noqa: E501
|
|
115
118
|
'created_at': (datetime,), # noqa: E501
|
|
116
119
|
'updated_at': (datetime,), # noqa: E501
|
|
117
|
-
'balance_type': (str,), # noqa: E501
|
|
118
|
-
'sales_force_id': (str,), # noqa: E501
|
|
119
|
-
'spend_type': (str,), # noqa: E501
|
|
120
|
-
'private_market_billing_type': (str,), # noqa: E501
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
@cached_property
|
|
@@ -127,20 +126,19 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
127
126
|
|
|
128
127
|
attribute_map = {
|
|
129
128
|
'name': 'name', # noqa: E501
|
|
129
|
+
'start_date': 'startDate', # noqa: E501
|
|
130
|
+
'balance_type': 'balanceType', # noqa: E501
|
|
131
|
+
'spend_type': 'spendType', # noqa: E501
|
|
132
|
+
'private_market_billing_type': 'privateMarketBillingType', # noqa: E501
|
|
130
133
|
'po_number': 'poNumber', # noqa: E501
|
|
131
134
|
'memo': 'memo', # noqa: E501
|
|
132
135
|
'deposited': 'deposited', # noqa: E501
|
|
133
136
|
'spent': 'spent', # noqa: E501
|
|
134
137
|
'remaining': 'remaining', # noqa: E501
|
|
135
|
-
'start_date': 'startDate', # noqa: E501
|
|
136
138
|
'end_date': 'endDate', # noqa: E501
|
|
137
139
|
'status': 'status', # noqa: E501
|
|
138
140
|
'created_at': 'createdAt', # noqa: E501
|
|
139
141
|
'updated_at': 'updatedAt', # noqa: E501
|
|
140
|
-
'balance_type': 'balanceType', # noqa: E501
|
|
141
|
-
'sales_force_id': 'salesForceId', # noqa: E501
|
|
142
|
-
'spend_type': 'spendType', # noqa: E501
|
|
143
|
-
'private_market_billing_type': 'privateMarketBillingType', # noqa: E501
|
|
144
142
|
}
|
|
145
143
|
|
|
146
144
|
read_only_vars = {
|
|
@@ -150,25 +148,15 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
150
148
|
|
|
151
149
|
@classmethod
|
|
152
150
|
@convert_js_args_to_python_args
|
|
153
|
-
def _from_openapi_data(cls, name,
|
|
154
|
-
"""
|
|
151
|
+
def _from_openapi_data(cls, name, start_date, balance_type, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501
|
|
152
|
+
"""BalanceResponseV2 - a model defined in OpenAPI
|
|
155
153
|
|
|
156
154
|
Args:
|
|
157
155
|
name (str): Name of the balance.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
deposited (float, none_type): Amount of billable funds allotted to the balance.
|
|
161
|
-
spent (float, none_type):
|
|
162
|
-
remaining (float, none_type):
|
|
163
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
164
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
165
|
-
status (str):
|
|
166
|
-
created_at (datetime):
|
|
167
|
-
updated_at (datetime):
|
|
168
|
-
balance_type (str): Type of the balance
|
|
169
|
-
sales_force_id (str): SalesForceId the balance is linked to.
|
|
156
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
157
|
+
balance_type (str): Type of the balance.
|
|
170
158
|
spend_type (str): Spend Type of the balance.
|
|
171
|
-
private_market_billing_type (str): Billing type for Private Market.
|
|
159
|
+
private_market_billing_type (str): Billing type for Private Market of the balance.
|
|
172
160
|
|
|
173
161
|
Keyword Args:
|
|
174
162
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -201,6 +189,15 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
201
189
|
Animal class but this time we won't travel
|
|
202
190
|
through its discriminator because we passed in
|
|
203
191
|
_visited_composed_classes = (Animal,)
|
|
192
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
193
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
194
|
+
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
195
|
+
spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501
|
|
196
|
+
remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501
|
|
197
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
198
|
+
status (str): Status of the balance.. [optional] # noqa: E501
|
|
199
|
+
created_at (datetime): Creation time of the balance.. [optional] # noqa: E501
|
|
200
|
+
updated_at (datetime): Update time of the balance.. [optional] # noqa: E501
|
|
204
201
|
"""
|
|
205
202
|
|
|
206
203
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -233,18 +230,8 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
233
230
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
234
231
|
|
|
235
232
|
self.name = name
|
|
236
|
-
self.po_number = po_number
|
|
237
|
-
self.memo = memo
|
|
238
|
-
self.deposited = deposited
|
|
239
|
-
self.spent = spent
|
|
240
|
-
self.remaining = remaining
|
|
241
233
|
self.start_date = start_date
|
|
242
|
-
self.end_date = end_date
|
|
243
|
-
self.status = status
|
|
244
|
-
self.created_at = created_at
|
|
245
|
-
self.updated_at = updated_at
|
|
246
234
|
self.balance_type = balance_type
|
|
247
|
-
self.sales_force_id = sales_force_id
|
|
248
235
|
self.spend_type = spend_type
|
|
249
236
|
self.private_market_billing_type = private_market_billing_type
|
|
250
237
|
for var_name, var_value in kwargs.items():
|
|
@@ -267,25 +254,15 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
267
254
|
])
|
|
268
255
|
|
|
269
256
|
@convert_js_args_to_python_args
|
|
270
|
-
def __init__(self, name,
|
|
271
|
-
"""
|
|
257
|
+
def __init__(self, name, start_date, balance_type, spend_type, private_market_billing_type, *args, **kwargs): # noqa: E501
|
|
258
|
+
"""BalanceResponseV2 - a model defined in OpenAPI
|
|
272
259
|
|
|
273
260
|
Args:
|
|
274
261
|
name (str): Name of the balance.
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
deposited (float, none_type): Amount of billable funds allotted to the balance.
|
|
278
|
-
spent (float, none_type):
|
|
279
|
-
remaining (float, none_type):
|
|
280
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
281
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
282
|
-
status (str):
|
|
283
|
-
created_at (datetime):
|
|
284
|
-
updated_at (datetime):
|
|
285
|
-
balance_type (str): Type of the balance
|
|
286
|
-
sales_force_id (str): SalesForceId the balance is linked to.
|
|
262
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
263
|
+
balance_type (str): Type of the balance.
|
|
287
264
|
spend_type (str): Spend Type of the balance.
|
|
288
|
-
private_market_billing_type (str): Billing type for Private Market.
|
|
265
|
+
private_market_billing_type (str): Billing type for Private Market of the balance.
|
|
289
266
|
|
|
290
267
|
Keyword Args:
|
|
291
268
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -318,6 +295,15 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
318
295
|
Animal class but this time we won't travel
|
|
319
296
|
through its discriminator because we passed in
|
|
320
297
|
_visited_composed_classes = (Animal,)
|
|
298
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
299
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
300
|
+
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
301
|
+
spent (float, none_type): Amount of spent funds of the balance.. [optional] # noqa: E501
|
|
302
|
+
remaining (float, none_type): Amount of remaining funds of the balance.. [optional] # noqa: E501
|
|
303
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
304
|
+
status (str): Status of the balance.. [optional] # noqa: E501
|
|
305
|
+
created_at (datetime): Creation time of the balance.. [optional] # noqa: E501
|
|
306
|
+
updated_at (datetime): Update time of the balance.. [optional] # noqa: E501
|
|
321
307
|
"""
|
|
322
308
|
|
|
323
309
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -348,18 +334,8 @@ class ExternalBalanceResponse(ModelNormal):
|
|
|
348
334
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
349
335
|
|
|
350
336
|
self.name = name
|
|
351
|
-
self.po_number = po_number
|
|
352
|
-
self.memo = memo
|
|
353
|
-
self.deposited = deposited
|
|
354
|
-
self.spent = spent
|
|
355
|
-
self.remaining = remaining
|
|
356
337
|
self.start_date = start_date
|
|
357
|
-
self.end_date = end_date
|
|
358
|
-
self.status = status
|
|
359
|
-
self.created_at = created_at
|
|
360
|
-
self.updated_at = updated_at
|
|
361
338
|
self.balance_type = balance_type
|
|
362
|
-
self.sales_force_id = sales_force_id
|
|
363
339
|
self.spend_type = spend_type
|
|
364
340
|
self.private_market_billing_type = private_market_billing_type
|
|
365
341
|
for var_name, var_value in kwargs.items():
|
criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py}
RENAMED
|
@@ -31,12 +31,12 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
33
|
from criteo_api_retailmedia_v2024_07.model.common_problem import CommonProblem
|
|
34
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
34
|
+
from criteo_api_retailmedia_v2024_07.model.resource_of_balance_response_v2 import ResourceOfBalanceResponseV2
|
|
35
35
|
globals()['CommonProblem'] = CommonProblem
|
|
36
|
-
globals()['
|
|
36
|
+
globals()['ResourceOfBalanceResponseV2'] = ResourceOfBalanceResponseV2
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class BalanceResponseV2Response(ModelNormal):
|
|
40
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
41
41
|
Ref: https://openapi-generator.tech
|
|
42
42
|
|
|
@@ -89,7 +89,7 @@ class BalanceResponse(ModelNormal):
|
|
|
89
89
|
"""
|
|
90
90
|
lazy_import()
|
|
91
91
|
return {
|
|
92
|
-
'data': (
|
|
92
|
+
'data': (ResourceOfBalanceResponseV2,), # noqa: E501
|
|
93
93
|
'warnings': ([CommonProblem],), # noqa: E501
|
|
94
94
|
'errors': ([CommonProblem],), # noqa: E501
|
|
95
95
|
}
|
|
@@ -115,7 +115,7 @@ class BalanceResponse(ModelNormal):
|
|
|
115
115
|
@classmethod
|
|
116
116
|
@convert_js_args_to_python_args
|
|
117
117
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
118
|
-
"""
|
|
118
|
+
"""BalanceResponseV2Response - a model defined in OpenAPI
|
|
119
119
|
|
|
120
120
|
Keyword Args:
|
|
121
121
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -148,7 +148,7 @@ class BalanceResponse(ModelNormal):
|
|
|
148
148
|
Animal class but this time we won't travel
|
|
149
149
|
through its discriminator because we passed in
|
|
150
150
|
_visited_composed_classes = (Animal,)
|
|
151
|
-
data (
|
|
151
|
+
data (ResourceOfBalanceResponseV2): [optional] # noqa: E501
|
|
152
152
|
warnings ([CommonProblem]): [optional] # noqa: E501
|
|
153
153
|
errors ([CommonProblem]): [optional] # noqa: E501
|
|
154
154
|
"""
|
|
@@ -203,7 +203,7 @@ class BalanceResponse(ModelNormal):
|
|
|
203
203
|
|
|
204
204
|
@convert_js_args_to_python_args
|
|
205
205
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
-
"""
|
|
206
|
+
"""BalanceResponseV2Response - a model defined in OpenAPI
|
|
207
207
|
|
|
208
208
|
Keyword Args:
|
|
209
209
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -236,7 +236,7 @@ class BalanceResponse(ModelNormal):
|
|
|
236
236
|
Animal class but this time we won't travel
|
|
237
237
|
through its discriminator because we passed in
|
|
238
238
|
_visited_composed_classes = (Animal,)
|
|
239
|
-
data (
|
|
239
|
+
data (ResourceOfBalanceResponseV2): [optional] # noqa: E501
|
|
240
240
|
warnings ([CommonProblem]): [optional] # noqa: E501
|
|
241
241
|
errors ([CommonProblem]): [optional] # noqa: E501
|
|
242
242
|
"""
|