ultracart-rest-sdk 4.0.161__py3-none-any.whl → 4.0.163__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/__init__.py +1 -1
- ultracart/api/auto_order_api.py +141 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/coupon.py +7 -0
- {ultracart_rest_sdk-4.0.161.dist-info → ultracart_rest_sdk-4.0.163.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.0.161.dist-info → ultracart_rest_sdk-4.0.163.dist-info}/RECORD +10 -10
- {ultracart_rest_sdk-4.0.161.dist-info → ultracart_rest_sdk-4.0.163.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.0.161.dist-info → ultracart_rest_sdk-4.0.163.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.0.161.dist-info → ultracart_rest_sdk-4.0.163.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
ultracart/api/auto_order_api.py
CHANGED
|
@@ -53,6 +53,63 @@ class AutoOrderApi(object):
|
|
|
53
53
|
if api_client is None:
|
|
54
54
|
api_client = ApiClient()
|
|
55
55
|
self.api_client = api_client
|
|
56
|
+
self.establish_auto_order_by_reference_order_id_endpoint = _Endpoint(
|
|
57
|
+
settings={
|
|
58
|
+
'response_type': (AutoOrderResponse,),
|
|
59
|
+
'auth': [
|
|
60
|
+
'ultraCartOauth',
|
|
61
|
+
'ultraCartSimpleApiKey'
|
|
62
|
+
],
|
|
63
|
+
'endpoint_path': '/auto_order/auto_orders/reference_order_id/{reference_order_id}',
|
|
64
|
+
'operation_id': 'establish_auto_order_by_reference_order_id',
|
|
65
|
+
'http_method': 'POST',
|
|
66
|
+
'servers': None,
|
|
67
|
+
},
|
|
68
|
+
params_map={
|
|
69
|
+
'all': [
|
|
70
|
+
'reference_order_id',
|
|
71
|
+
'expand',
|
|
72
|
+
],
|
|
73
|
+
'required': [
|
|
74
|
+
'reference_order_id',
|
|
75
|
+
],
|
|
76
|
+
'nullable': [
|
|
77
|
+
],
|
|
78
|
+
'enum': [
|
|
79
|
+
],
|
|
80
|
+
'validation': [
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
root_map={
|
|
84
|
+
'validations': {
|
|
85
|
+
},
|
|
86
|
+
'allowed_values': {
|
|
87
|
+
},
|
|
88
|
+
'openapi_types': {
|
|
89
|
+
'reference_order_id':
|
|
90
|
+
(str,),
|
|
91
|
+
'expand':
|
|
92
|
+
(str,),
|
|
93
|
+
},
|
|
94
|
+
'attribute_map': {
|
|
95
|
+
'reference_order_id': 'reference_order_id',
|
|
96
|
+
'expand': '_expand',
|
|
97
|
+
},
|
|
98
|
+
'location_map': {
|
|
99
|
+
'reference_order_id': 'path',
|
|
100
|
+
'expand': 'query',
|
|
101
|
+
},
|
|
102
|
+
'collection_format_map': {
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
headers_map={
|
|
106
|
+
'accept': [
|
|
107
|
+
'application/json'
|
|
108
|
+
],
|
|
109
|
+
'content_type': [],
|
|
110
|
+
},
|
|
111
|
+
api_client=api_client
|
|
112
|
+
)
|
|
56
113
|
self.get_auto_order_endpoint = _Endpoint(
|
|
57
114
|
settings={
|
|
58
115
|
'response_type': (AutoOrderResponse,),
|
|
@@ -648,6 +705,90 @@ class AutoOrderApi(object):
|
|
|
648
705
|
api_client=api_client
|
|
649
706
|
)
|
|
650
707
|
|
|
708
|
+
def establish_auto_order_by_reference_order_id(
|
|
709
|
+
self,
|
|
710
|
+
reference_order_id,
|
|
711
|
+
**kwargs
|
|
712
|
+
):
|
|
713
|
+
"""Establish an auto order by referencing a regular order id # noqa: E501
|
|
714
|
+
|
|
715
|
+
Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment. # noqa: E501
|
|
716
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
717
|
+
asynchronous HTTP request, please pass async_req=True
|
|
718
|
+
|
|
719
|
+
>>> thread = api.establish_auto_order_by_reference_order_id(reference_order_id, async_req=True)
|
|
720
|
+
>>> result = thread.get()
|
|
721
|
+
|
|
722
|
+
Args:
|
|
723
|
+
reference_order_id (str): The order id to attach this auto order to
|
|
724
|
+
|
|
725
|
+
Keyword Args:
|
|
726
|
+
expand (str): The object expansion to perform on the result. See documentation for examples. [optional]
|
|
727
|
+
_return_http_data_only (bool): response data without head status
|
|
728
|
+
code and headers. Default is True.
|
|
729
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
730
|
+
will be returned without reading/decoding response data.
|
|
731
|
+
Default is True.
|
|
732
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
733
|
+
one number provided, it will be total request timeout. It can also
|
|
734
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
735
|
+
Default is None.
|
|
736
|
+
_check_input_type (bool): specifies if type checking
|
|
737
|
+
should be done one the data sent to the server.
|
|
738
|
+
Default is True.
|
|
739
|
+
_check_return_type (bool): specifies if type checking
|
|
740
|
+
should be done one the data received from the server.
|
|
741
|
+
Default is True.
|
|
742
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
743
|
+
are serialized names, as specified in the OpenAPI document.
|
|
744
|
+
False if the variable names in the input data
|
|
745
|
+
are pythonic names, e.g. snake case (default)
|
|
746
|
+
_content_type (str/None): force body content-type.
|
|
747
|
+
Default is None and content-type will be predicted by allowed
|
|
748
|
+
content-types and body.
|
|
749
|
+
_host_index (int/None): specifies the index of the server
|
|
750
|
+
that we want to use.
|
|
751
|
+
Default is read from the configuration.
|
|
752
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
753
|
+
request; this effectively ignores the authentication
|
|
754
|
+
in the spec for a single request.
|
|
755
|
+
Default is None
|
|
756
|
+
async_req (bool): execute request asynchronously
|
|
757
|
+
|
|
758
|
+
Returns:
|
|
759
|
+
AutoOrderResponse
|
|
760
|
+
If the method is called asynchronously, returns the request
|
|
761
|
+
thread.
|
|
762
|
+
"""
|
|
763
|
+
kwargs['async_req'] = kwargs.get(
|
|
764
|
+
'async_req', False
|
|
765
|
+
)
|
|
766
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
767
|
+
'_return_http_data_only', True
|
|
768
|
+
)
|
|
769
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
770
|
+
'_preload_content', True
|
|
771
|
+
)
|
|
772
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
773
|
+
'_request_timeout', None
|
|
774
|
+
)
|
|
775
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
776
|
+
'_check_input_type', True
|
|
777
|
+
)
|
|
778
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
779
|
+
'_check_return_type', True
|
|
780
|
+
)
|
|
781
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
782
|
+
'_spec_property_naming', False
|
|
783
|
+
)
|
|
784
|
+
kwargs['_content_type'] = kwargs.get(
|
|
785
|
+
'_content_type')
|
|
786
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
787
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
788
|
+
kwargs['reference_order_id'] = \
|
|
789
|
+
reference_order_id
|
|
790
|
+
return self.establish_auto_order_by_reference_order_id_endpoint.call_with_http_info(**kwargs)
|
|
791
|
+
|
|
651
792
|
def get_auto_order(
|
|
652
793
|
self,
|
|
653
794
|
auto_order_oid,
|
ultracart/api_client.py
CHANGED
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
|
77
77
|
self.default_headers[header_name] = header_value
|
|
78
78
|
self.cookie = cookie
|
|
79
79
|
# Set default User-Agent.
|
|
80
|
-
self.user_agent = 'OpenAPI-Generator/4.0.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.0.163/python'
|
|
81
81
|
|
|
82
82
|
def __enter__(self):
|
|
83
83
|
return self
|
ultracart/configuration.py
CHANGED
|
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
|
|
|
422
422
|
"OS: {env}\n"\
|
|
423
423
|
"Python Version: {pyversion}\n"\
|
|
424
424
|
"Version of the API: 2.0.0\n"\
|
|
425
|
-
"SDK Package Version: 4.0.
|
|
425
|
+
"SDK Package Version: 4.0.163".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
ultracart/model/coupon.py
CHANGED
|
@@ -154,6 +154,13 @@ class Coupon(ModelNormal):
|
|
|
154
154
|
"""
|
|
155
155
|
|
|
156
156
|
allowed_values = {
|
|
157
|
+
('usable_by',): {
|
|
158
|
+
'ANYONE': "Anyone",
|
|
159
|
+
'UNIQUECODE': "UniqueCode",
|
|
160
|
+
'ONCEPERCUSTOMER': "OncePerCustomer",
|
|
161
|
+
'ONCEPERNEWCUSTOMER': "OncePerNewCustomer",
|
|
162
|
+
'ONCEPERNEWCUSTOMERFORITEM': "OncePerNewCustomerForItem",
|
|
163
|
+
},
|
|
157
164
|
}
|
|
158
165
|
|
|
159
166
|
validations = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
ultracart/__init__.py,sha256=
|
|
2
|
-
ultracart/api_client.py,sha256=
|
|
3
|
-
ultracart/configuration.py,sha256=
|
|
1
|
+
ultracart/__init__.py,sha256=XJ4S3-jnu6pOCYnMwocJou8nDg0ra5BqzS9QGJTHKGM,699
|
|
2
|
+
ultracart/api_client.py,sha256=fJy0VU4odSw0sgxuYqCtR01rH9EPuwbPyLnTtYl9vcU,39072
|
|
3
|
+
ultracart/configuration.py,sha256=DYKr9j5vH8kjFFH-LPi1qRl9emKEE-uKoIp2fHX6MxA,17842
|
|
4
4
|
ultracart/exceptions.py,sha256=dwRtrWJsW4H_jKk3B1w2chykcQ7E2FSlhftUByD9e9E,5069
|
|
5
5
|
ultracart/model_utils.py,sha256=X_RAfA-TlvDKBICnIve7PPVDM34Nl58aV1bqCrVmoTo,82574
|
|
6
6
|
ultracart/rest.py,sha256=2lM6zwrjGp_SjkddamoKdpk3jFuc8Ow7fKIXRdKNp24,14268
|
|
7
7
|
ultracart/api/__init__.py,sha256=M5v24jKFBCCBje15G0udcVQwqNCZsFU_-JgIf55tAP8,215
|
|
8
8
|
ultracart/api/affiliate_api.py,sha256=Rq7y9AAmN2gOT57qTulnMkr-W4SBboMrzKyM2SXT6R8,14519
|
|
9
|
-
ultracart/api/auto_order_api.py,sha256=
|
|
9
|
+
ultracart/api/auto_order_api.py,sha256=0dXLyqW_JBatsLJeBzrDg9JY5Gu-NQU0xKir7pbI7W4,59690
|
|
10
10
|
ultracart/api/channel_partner_api.py,sha256=aPduqNAS8wcwqS9hC0bnZktMFCBd90S6lz9265-v3JU,63965
|
|
11
11
|
ultracart/api/chargeback_api.py,sha256=bC5LfbV1DuVMZhfCvkkog33VACDVk7W74JvlaXy5Nuc,32295
|
|
12
12
|
ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ,105889
|
|
@@ -214,7 +214,7 @@ ultracart/model/conversation_websocket_message.py,sha256=sz0b6wPuWLD4glAzEajq0z8
|
|
|
214
214
|
ultracart/model/conversations_response.py,sha256=UH-neW92zsNopnNPqes4H_DK50DAAJ4pudlBk8nz8tM,12888
|
|
215
215
|
ultracart/model/countries_response.py,sha256=q-ruWG0-GztnLRlBXLu0dB6Oj61KSykc1IkJxQEsn1A,11590
|
|
216
216
|
ultracart/model/country.py,sha256=nUmb2z_K5cMXTrYo6q89uOwG8E-wVzCD8xdmuEQUK-M,11743
|
|
217
|
-
ultracart/model/coupon.py,sha256=
|
|
217
|
+
ultracart/model/coupon.py,sha256=h1uyeuHnsM9pXt8QLy0rTAv2_90N-GGe9R4g6eH-oGw,45603
|
|
218
218
|
ultracart/model/coupon_amount_off_items.py,sha256=7HedZ3kUCZ24B8L2VemOdJlkQ3_Ku_qaaXkUf3be_iw,12601
|
|
219
219
|
ultracart/model/coupon_amount_off_shipping.py,sha256=NDofPRXoRAHASYjRZ4clem11EQkEheDi7cR-uB1ejdo,12360
|
|
220
220
|
ultracart/model/coupon_amount_off_shipping_with_items_purchase.py,sha256=_rVtYs1oxbt5Uudmn-nIZx4GRTiHSCy0CKkzsE8Vni0,12756
|
|
@@ -804,8 +804,8 @@ ultracart/model/webhook_sample_request_response.py,sha256=Ni-3WiNhVLt9a7yX_MNdD1
|
|
|
804
804
|
ultracart/model/webhooks_response.py,sha256=RVGQ76kc7X0XY5iJdLgnwVr5V50uCoYCGaRtc03FKc4,12763
|
|
805
805
|
ultracart/model/weight.py,sha256=LTxs6KqiARegRkcShAviWKILAMAdw9KXwI-QgBtpoM0,11726
|
|
806
806
|
ultracart/models/__init__.py,sha256=v8-9uEROm6n92C1w3-BPFki2zZHFwv2a-kXOflz-xlk,59125
|
|
807
|
-
ultracart_rest_sdk-4.0.
|
|
808
|
-
ultracart_rest_sdk-4.0.
|
|
809
|
-
ultracart_rest_sdk-4.0.
|
|
810
|
-
ultracart_rest_sdk-4.0.
|
|
811
|
-
ultracart_rest_sdk-4.0.
|
|
807
|
+
ultracart_rest_sdk-4.0.163.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
808
|
+
ultracart_rest_sdk-4.0.163.dist-info/METADATA,sha256=AowMHmKJ0aE5yZ3J1G-Ap2nSCC2oxV2XCFO8qfXf3a4,403
|
|
809
|
+
ultracart_rest_sdk-4.0.163.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
810
|
+
ultracart_rest_sdk-4.0.163.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
811
|
+
ultracart_rest_sdk-4.0.163.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|