ultracart-rest-sdk 3.11.42__py3-none-any.whl → 3.11.43__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.
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/models/coupon_codes_request.py +31 -1
- {ultracart_rest_sdk-3.11.42.dist-info → ultracart_rest_sdk-3.11.43.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-3.11.42.dist-info → ultracart_rest_sdk-3.11.43.dist-info}/RECORD +8 -8
- {ultracart_rest_sdk-3.11.42.dist-info → ultracart_rest_sdk-3.11.43.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-3.11.42.dist-info → ultracart_rest_sdk-3.11.43.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-3.11.42.dist-info → ultracart_rest_sdk-3.11.43.dist-info}/top_level.txt +0 -0
ultracart/api_client.py
CHANGED
|
@@ -74,7 +74,7 @@ class ApiClient(object):
|
|
|
74
74
|
self.default_headers[header_name] = header_value
|
|
75
75
|
self.cookie = cookie
|
|
76
76
|
# Set default User-Agent.
|
|
77
|
-
self.user_agent = 'Swagger-Codegen/3.11.
|
|
77
|
+
self.user_agent = 'Swagger-Codegen/3.11.43/python'
|
|
78
78
|
|
|
79
79
|
def __del__(self):
|
|
80
80
|
if self._pool is not None:
|
ultracart/configuration.py
CHANGED
|
@@ -35,6 +35,7 @@ class CouponCodesRequest(object):
|
|
|
35
35
|
'expiration_dts': 'str',
|
|
36
36
|
'expiration_seconds': 'int',
|
|
37
37
|
'metadata': 'ResponseMetadata',
|
|
38
|
+
'prefix': 'str',
|
|
38
39
|
'quantity': 'int',
|
|
39
40
|
'success': 'bool',
|
|
40
41
|
'warning': 'Warning'
|
|
@@ -45,18 +46,20 @@ class CouponCodesRequest(object):
|
|
|
45
46
|
'expiration_dts': 'expiration_dts',
|
|
46
47
|
'expiration_seconds': 'expiration_seconds',
|
|
47
48
|
'metadata': 'metadata',
|
|
49
|
+
'prefix': 'prefix',
|
|
48
50
|
'quantity': 'quantity',
|
|
49
51
|
'success': 'success',
|
|
50
52
|
'warning': 'warning'
|
|
51
53
|
}
|
|
52
54
|
|
|
53
|
-
def __init__(self, error=None, expiration_dts=None, expiration_seconds=None, metadata=None, quantity=None, success=None, warning=None): # noqa: E501
|
|
55
|
+
def __init__(self, error=None, expiration_dts=None, expiration_seconds=None, metadata=None, prefix=None, quantity=None, success=None, warning=None): # noqa: E501
|
|
54
56
|
"""CouponCodesRequest - a model defined in Swagger""" # noqa: E501
|
|
55
57
|
|
|
56
58
|
self._error = None
|
|
57
59
|
self._expiration_dts = None
|
|
58
60
|
self._expiration_seconds = None
|
|
59
61
|
self._metadata = None
|
|
62
|
+
self._prefix = None
|
|
60
63
|
self._quantity = None
|
|
61
64
|
self._success = None
|
|
62
65
|
self._warning = None
|
|
@@ -70,6 +73,8 @@ class CouponCodesRequest(object):
|
|
|
70
73
|
self.expiration_seconds = expiration_seconds
|
|
71
74
|
if metadata is not None:
|
|
72
75
|
self.metadata = metadata
|
|
76
|
+
if prefix is not None:
|
|
77
|
+
self.prefix = prefix
|
|
73
78
|
if quantity is not None:
|
|
74
79
|
self.quantity = quantity
|
|
75
80
|
if success is not None:
|
|
@@ -165,6 +170,31 @@ class CouponCodesRequest(object):
|
|
|
165
170
|
|
|
166
171
|
self._metadata = metadata
|
|
167
172
|
|
|
173
|
+
@property
|
|
174
|
+
def prefix(self):
|
|
175
|
+
"""Gets the prefix of this CouponCodesRequest. # noqa: E501
|
|
176
|
+
|
|
177
|
+
Optional prefix for generated codes # noqa: E501
|
|
178
|
+
|
|
179
|
+
:return: The prefix of this CouponCodesRequest. # noqa: E501
|
|
180
|
+
:rtype: str
|
|
181
|
+
"""
|
|
182
|
+
return self._prefix
|
|
183
|
+
|
|
184
|
+
@prefix.setter
|
|
185
|
+
def prefix(self, prefix):
|
|
186
|
+
"""Sets the prefix of this CouponCodesRequest.
|
|
187
|
+
|
|
188
|
+
Optional prefix for generated codes # noqa: E501
|
|
189
|
+
|
|
190
|
+
:param prefix: The prefix of this CouponCodesRequest. # noqa: E501
|
|
191
|
+
:type: str
|
|
192
|
+
"""
|
|
193
|
+
if prefix is not None and len(prefix) > 12:
|
|
194
|
+
raise ValueError("Invalid value for `prefix`, length must be less than or equal to `12`") # noqa: E501
|
|
195
|
+
|
|
196
|
+
self._prefix = prefix
|
|
197
|
+
|
|
168
198
|
@property
|
|
169
199
|
def quantity(self):
|
|
170
200
|
"""Gets the quantity of this CouponCodesRequest. # noqa: E501
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
ultracart/__init__.py,sha256=7Gx316G5y-8CRhEyRqEMaOUCghFocDpw3PcmreZ2EPM,74433
|
|
2
|
-
ultracart/api_client.py,sha256=
|
|
3
|
-
ultracart/configuration.py,sha256=
|
|
2
|
+
ultracart/api_client.py,sha256=0c3Qxxe5x3o_c-FW6rirxnohedt_7kLpZKa4TfmQ5sY,25613
|
|
3
|
+
ultracart/configuration.py,sha256=yPTWQ4Sme_o4eWehQoGAv0Cml1V7y1DLA-qTS9CGDtU,8999
|
|
4
4
|
ultracart/rest.py,sha256=SykJPRivLOJgoq4Rnyp117sB8lU0tGvwd2Cai8fN3J8,13489
|
|
5
5
|
ultracart/api/__init__.py,sha256=gtOBD2-NGsYYDuerfiCfjqLJql44d50lAlaxpAqd7tI,1152
|
|
6
6
|
ultracart/api/affiliate_api.py,sha256=BfkCqA8ayOggBtV24g8yZyTxTNPiUJMYgqbBEbnWrJQ,12785
|
|
@@ -289,7 +289,7 @@ ultracart/models/coupon_auto_apply_condition.py,sha256=xW5BRkQNfTSH8-IyShwC1izGK
|
|
|
289
289
|
ultracart/models/coupon_auto_apply_conditions.py,sha256=Ns6PCZehcdBlHAz8leWsKbahmMDtGKvWUjsrdXwPVyo,7464
|
|
290
290
|
ultracart/models/coupon_automatically_apply_coupon_codes.py,sha256=nvFkyM8di6crYVHzR54HTw0H1hasrMPOG90-1H_tz-s,3643
|
|
291
291
|
ultracart/models/coupon_buy_one_get_one_limit.py,sha256=kTWwSNdS0a0s2ZxdL6WNqnYofpEBpk0QUT0CcecMeiE,5273
|
|
292
|
-
ultracart/models/coupon_codes_request.py,sha256=
|
|
292
|
+
ultracart/models/coupon_codes_request.py,sha256=OhIR2tNW_iu_3IEgrDMI1go3paATMk0tw6sk0bnMLDw,9054
|
|
293
293
|
ultracart/models/coupon_codes_response.py,sha256=6QU5W0AqETc_qQQUvZdgZPQWt-ZAo5PrkzUyA0-RwtU,7242
|
|
294
294
|
ultracart/models/coupon_deletes_request.py,sha256=ilFCxYGtVoQKjO8rOqp5_zjyfjE8UcuoZ3SqHA0pEeI,4280
|
|
295
295
|
ultracart/models/coupon_discount_item_with_item_purchase.py,sha256=heGrxFjrPHRScnMfgaHKvb47ZWWXejpzR1aQrmkeHPY,10732
|
|
@@ -937,8 +937,8 @@ ultracart/models/workflow_tasks_response.py,sha256=2CELun_Yz00Ww8MLo3pqfx7oCJLMZ
|
|
|
937
937
|
ultracart/models/workflow_user.py,sha256=dS5Oj_e5KeruK8WnxZFrx4tL-86B-ImggasTQLm7q6s,4783
|
|
938
938
|
ultracart/models/workflow_user_response.py,sha256=tqt9Bo6KqrvkcW9weFeC6nu5wAqYQBx--Yi4RQzditI,6134
|
|
939
939
|
ultracart/models/workflow_users_response.py,sha256=t1UP-nG8gOoyFGcf5dTTqk6zFapBrJBH63ddrJgP-tM,7095
|
|
940
|
-
ultracart_rest_sdk-3.11.
|
|
941
|
-
ultracart_rest_sdk-3.11.
|
|
942
|
-
ultracart_rest_sdk-3.11.
|
|
943
|
-
ultracart_rest_sdk-3.11.
|
|
944
|
-
ultracart_rest_sdk-3.11.
|
|
940
|
+
ultracart_rest_sdk-3.11.43.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
941
|
+
ultracart_rest_sdk-3.11.43.dist-info/METADATA,sha256=noHhnw9uMIujgkQr0TvXSi8IMDZQyPAbrqGE0Zj0sas,423
|
|
942
|
+
ultracart_rest_sdk-3.11.43.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
943
|
+
ultracart_rest_sdk-3.11.43.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
944
|
+
ultracart_rest_sdk-3.11.43.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|