ultracart-rest-sdk 4.1.0__py3-none-any.whl → 4.1.1__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 +152 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/item_payment_processing.py +2 -2
- ultracart/model/order_coupon.py +2 -2
- {ultracart_rest_sdk-4.1.0.dist-info → ultracart_rest_sdk-4.1.1.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.0.dist-info → ultracart_rest_sdk-4.1.1.dist-info}/RECORD +11 -11
- {ultracart_rest_sdk-4.1.0.dist-info → ultracart_rest_sdk-4.1.1.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.0.dist-info → ultracart_rest_sdk-4.1.1.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.0.dist-info → ultracart_rest_sdk-4.1.1.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
ultracart/api/auto_order_api.py
CHANGED
|
@@ -637,6 +637,70 @@ class AutoOrderApi(object):
|
|
|
637
637
|
},
|
|
638
638
|
api_client=api_client
|
|
639
639
|
)
|
|
640
|
+
self.pause_auto_order_endpoint = _Endpoint(
|
|
641
|
+
settings={
|
|
642
|
+
'response_type': (AutoOrderResponse,),
|
|
643
|
+
'auth': [
|
|
644
|
+
'ultraCartOauth',
|
|
645
|
+
'ultraCartSimpleApiKey'
|
|
646
|
+
],
|
|
647
|
+
'endpoint_path': '/auto_order/auto_orders/{auto_order_oid}/pause',
|
|
648
|
+
'operation_id': 'pause_auto_order',
|
|
649
|
+
'http_method': 'PUT',
|
|
650
|
+
'servers': None,
|
|
651
|
+
},
|
|
652
|
+
params_map={
|
|
653
|
+
'all': [
|
|
654
|
+
'auto_order_oid',
|
|
655
|
+
'auto_order',
|
|
656
|
+
'expand',
|
|
657
|
+
],
|
|
658
|
+
'required': [
|
|
659
|
+
'auto_order_oid',
|
|
660
|
+
'auto_order',
|
|
661
|
+
],
|
|
662
|
+
'nullable': [
|
|
663
|
+
],
|
|
664
|
+
'enum': [
|
|
665
|
+
],
|
|
666
|
+
'validation': [
|
|
667
|
+
]
|
|
668
|
+
},
|
|
669
|
+
root_map={
|
|
670
|
+
'validations': {
|
|
671
|
+
},
|
|
672
|
+
'allowed_values': {
|
|
673
|
+
},
|
|
674
|
+
'openapi_types': {
|
|
675
|
+
'auto_order_oid':
|
|
676
|
+
(int,),
|
|
677
|
+
'auto_order':
|
|
678
|
+
(AutoOrder,),
|
|
679
|
+
'expand':
|
|
680
|
+
(str,),
|
|
681
|
+
},
|
|
682
|
+
'attribute_map': {
|
|
683
|
+
'auto_order_oid': 'auto_order_oid',
|
|
684
|
+
'expand': '_expand',
|
|
685
|
+
},
|
|
686
|
+
'location_map': {
|
|
687
|
+
'auto_order_oid': 'path',
|
|
688
|
+
'auto_order': 'body',
|
|
689
|
+
'expand': 'query',
|
|
690
|
+
},
|
|
691
|
+
'collection_format_map': {
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
headers_map={
|
|
695
|
+
'accept': [
|
|
696
|
+
'application/json'
|
|
697
|
+
],
|
|
698
|
+
'content_type': [
|
|
699
|
+
'application/json; charset=UTF-8'
|
|
700
|
+
]
|
|
701
|
+
},
|
|
702
|
+
api_client=api_client
|
|
703
|
+
)
|
|
640
704
|
self.update_auto_order_endpoint = _Endpoint(
|
|
641
705
|
settings={
|
|
642
706
|
'response_type': (AutoOrderResponse,),
|
|
@@ -1471,6 +1535,94 @@ class AutoOrderApi(object):
|
|
|
1471
1535
|
auto_order_query
|
|
1472
1536
|
return self.get_auto_orders_by_query_endpoint.call_with_http_info(**kwargs)
|
|
1473
1537
|
|
|
1538
|
+
def pause_auto_order(
|
|
1539
|
+
self,
|
|
1540
|
+
auto_order_oid,
|
|
1541
|
+
auto_order,
|
|
1542
|
+
**kwargs
|
|
1543
|
+
):
|
|
1544
|
+
"""Pause auto order # noqa: E501
|
|
1545
|
+
|
|
1546
|
+
Completely pause an auto order # noqa: E501
|
|
1547
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1548
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1549
|
+
|
|
1550
|
+
>>> thread = api.pause_auto_order(auto_order_oid, auto_order, async_req=True)
|
|
1551
|
+
>>> result = thread.get()
|
|
1552
|
+
|
|
1553
|
+
Args:
|
|
1554
|
+
auto_order_oid (int): The auto order oid to pause.
|
|
1555
|
+
auto_order (AutoOrder): Auto orders to pause
|
|
1556
|
+
|
|
1557
|
+
Keyword Args:
|
|
1558
|
+
expand (str): The object expansion to perform on the result. See documentation for examples. [optional]
|
|
1559
|
+
_return_http_data_only (bool): response data without head status
|
|
1560
|
+
code and headers. Default is True.
|
|
1561
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1562
|
+
will be returned without reading/decoding response data.
|
|
1563
|
+
Default is True.
|
|
1564
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1565
|
+
one number provided, it will be total request timeout. It can also
|
|
1566
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1567
|
+
Default is None.
|
|
1568
|
+
_check_input_type (bool): specifies if type checking
|
|
1569
|
+
should be done one the data sent to the server.
|
|
1570
|
+
Default is True.
|
|
1571
|
+
_check_return_type (bool): specifies if type checking
|
|
1572
|
+
should be done one the data received from the server.
|
|
1573
|
+
Default is True.
|
|
1574
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1575
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1576
|
+
False if the variable names in the input data
|
|
1577
|
+
are pythonic names, e.g. snake case (default)
|
|
1578
|
+
_content_type (str/None): force body content-type.
|
|
1579
|
+
Default is None and content-type will be predicted by allowed
|
|
1580
|
+
content-types and body.
|
|
1581
|
+
_host_index (int/None): specifies the index of the server
|
|
1582
|
+
that we want to use.
|
|
1583
|
+
Default is read from the configuration.
|
|
1584
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1585
|
+
request; this effectively ignores the authentication
|
|
1586
|
+
in the spec for a single request.
|
|
1587
|
+
Default is None
|
|
1588
|
+
async_req (bool): execute request asynchronously
|
|
1589
|
+
|
|
1590
|
+
Returns:
|
|
1591
|
+
AutoOrderResponse
|
|
1592
|
+
If the method is called asynchronously, returns the request
|
|
1593
|
+
thread.
|
|
1594
|
+
"""
|
|
1595
|
+
kwargs['async_req'] = kwargs.get(
|
|
1596
|
+
'async_req', False
|
|
1597
|
+
)
|
|
1598
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1599
|
+
'_return_http_data_only', True
|
|
1600
|
+
)
|
|
1601
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1602
|
+
'_preload_content', True
|
|
1603
|
+
)
|
|
1604
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1605
|
+
'_request_timeout', None
|
|
1606
|
+
)
|
|
1607
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1608
|
+
'_check_input_type', True
|
|
1609
|
+
)
|
|
1610
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1611
|
+
'_check_return_type', True
|
|
1612
|
+
)
|
|
1613
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1614
|
+
'_spec_property_naming', False
|
|
1615
|
+
)
|
|
1616
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1617
|
+
'_content_type')
|
|
1618
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1619
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1620
|
+
kwargs['auto_order_oid'] = \
|
|
1621
|
+
auto_order_oid
|
|
1622
|
+
kwargs['auto_order'] = \
|
|
1623
|
+
auto_order
|
|
1624
|
+
return self.pause_auto_order_endpoint.call_with_http_info(**kwargs)
|
|
1625
|
+
|
|
1474
1626
|
def update_auto_order(
|
|
1475
1627
|
self,
|
|
1476
1628
|
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.1.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.1.1/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.1.
|
|
425
|
+
"SDK Package Version: 4.1.1".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
|
@@ -146,7 +146,7 @@ class ItemPaymentProcessing(ModelNormal):
|
|
|
146
146
|
through its discriminator because we passed in
|
|
147
147
|
_visited_composed_classes = (Animal,)
|
|
148
148
|
block_prepaid (bool): True if prepaid cards should be blocked from buying this item. [optional] # noqa: E501
|
|
149
|
-
block_refunds (bool): True if this item should block any refund attempts. [optional] # noqa: E501
|
|
149
|
+
block_refunds (bool): True if this item should block any refund attempts, set to false otherwise, null value will not update the field. [optional] # noqa: E501
|
|
150
150
|
credit_card_transaction_type (str): Credit card transaction type. [optional] # noqa: E501
|
|
151
151
|
no_realtime_charge (bool): True if no real-time charge should be performed on this item.. [optional] # noqa: E501
|
|
152
152
|
payment_method_validity ([str]): Payment method validity. [optional] # noqa: E501
|
|
@@ -237,7 +237,7 @@ class ItemPaymentProcessing(ModelNormal):
|
|
|
237
237
|
through its discriminator because we passed in
|
|
238
238
|
_visited_composed_classes = (Animal,)
|
|
239
239
|
block_prepaid (bool): True if prepaid cards should be blocked from buying this item. [optional] # noqa: E501
|
|
240
|
-
block_refunds (bool): True if this item should block any refund attempts. [optional] # noqa: E501
|
|
240
|
+
block_refunds (bool): True if this item should block any refund attempts, set to false otherwise, null value will not update the field. [optional] # noqa: E501
|
|
241
241
|
credit_card_transaction_type (str): Credit card transaction type. [optional] # noqa: E501
|
|
242
242
|
no_realtime_charge (bool): True if no real-time charge should be performed on this item.. [optional] # noqa: E501
|
|
243
243
|
payment_method_validity ([str]): Payment method validity. [optional] # noqa: E501
|
ultracart/model/order_coupon.py
CHANGED
|
@@ -153,7 +153,7 @@ class OrderCoupon(ModelNormal):
|
|
|
153
153
|
automatically_applied (bool): Whether or not the coupon was automatically applied to the order. [optional] # noqa: E501
|
|
154
154
|
base_coupon_code (str): Coupon code configured by the merchant. Will differ if the customer used a one time coupon code generated off this base coupon. [optional] # noqa: E501
|
|
155
155
|
coupon_code (str): Coupon code entered by the customer. [optional] # noqa: E501
|
|
156
|
-
hdie_from_customer (bool): True if this coupon is
|
|
156
|
+
hdie_from_customer (bool): True if this coupon is hide from the customer. [optional] # noqa: E501
|
|
157
157
|
"""
|
|
158
158
|
|
|
159
159
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -243,7 +243,7 @@ class OrderCoupon(ModelNormal):
|
|
|
243
243
|
automatically_applied (bool): Whether or not the coupon was automatically applied to the order. [optional] # noqa: E501
|
|
244
244
|
base_coupon_code (str): Coupon code configured by the merchant. Will differ if the customer used a one time coupon code generated off this base coupon. [optional] # noqa: E501
|
|
245
245
|
coupon_code (str): Coupon code entered by the customer. [optional] # noqa: E501
|
|
246
|
-
hdie_from_customer (bool): True if this coupon is
|
|
246
|
+
hdie_from_customer (bool): True if this coupon is hide from the customer. [optional] # noqa: E501
|
|
247
247
|
"""
|
|
248
248
|
|
|
249
249
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -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=7D3OtrnYNsHp1GZT64CiALva33HFe2pNI9cqz_bOQhA,697
|
|
2
|
+
ultracart/api_client.py,sha256=_u9RTEfmNDyx4j0S_FJQ3EUjp1wylnLcQMkkQFAyKCs,39070
|
|
3
|
+
ultracart/configuration.py,sha256=Uel7im5rglElug0JKXB2XmzY3LAR3m8eRyQCcIFvNYY,17840
|
|
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=1Sim6SWRktLjD4zeRINd0EGvgjcPi0BkNu-ihDEurto,72001
|
|
10
10
|
ultracart/api/channel_partner_api.py,sha256=CGEcolptRq79Wvkrd9FFe5Cp5ekHV0mLITHYLMVkOnE,84137
|
|
11
11
|
ultracart/api/chargeback_api.py,sha256=bC5LfbV1DuVMZhfCvkkog33VACDVk7W74JvlaXy5Nuc,32295
|
|
12
12
|
ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ,105889
|
|
@@ -574,7 +574,7 @@ ultracart/model/item_option.py,sha256=hUC09m7-n1XMhUBKiiGWyUDrpB3lNmgu0FCOoNSD-u
|
|
|
574
574
|
ultracart/model/item_option_value.py,sha256=hZPHNPo04oxye1j3nIAW1QwNI7neWkktkfRq14pyL0Y,16577
|
|
575
575
|
ultracart/model/item_option_value_additional_item.py,sha256=jER6TmJ7UF2fOG_L13et-ieY-4sYfElxS8eLZyOkS0Q,11959
|
|
576
576
|
ultracart/model/item_option_value_digital_item.py,sha256=yNK8KfBaIEFJXVJevtvu3bZejaJ28_YynEugB9xF8s8,11832
|
|
577
|
-
ultracart/model/item_payment_processing.py,sha256=
|
|
577
|
+
ultracart/model/item_payment_processing.py,sha256=dFwLwXXckbbdvqMTdXERRWpOXjEWwU73I3lvdNWUAdA,13510
|
|
578
578
|
ultracart/model/item_physical.py,sha256=iBAm6zRdUri7rzD4m31Mmzh0VwB5EJPvbrEvFnItwAU,12238
|
|
579
579
|
ultracart/model/item_pricing.py,sha256=VLwFh8NPIqBSyj4hRp--4kmztoDET7dzsNRw7ym9ZlI,16963
|
|
580
580
|
ultracart/model/item_pricing_tier.py,sha256=QoOtNu-UFHRfFwLuzDR93Op1iS3jRz82q6t-aGlnykc,12900
|
|
@@ -645,7 +645,7 @@ ultracart/model/order_buysafe.py,sha256=EyWi_Dy4Mu3O5NtgHJRkzHDGHT8jIYeQ5ySOqOJN
|
|
|
645
645
|
ultracart/model/order_by_token_query.py,sha256=SXfdOshQfjdax_JtBsUTpFlKlyI5G5xBFa68JL8UX9I,11461
|
|
646
646
|
ultracart/model/order_channel_partner.py,sha256=ns03sFk3j7EiSDXSBkfuUBW-KSI1YRX4bCPJcwggitg,16274
|
|
647
647
|
ultracart/model/order_checkout.py,sha256=GzfiEtp78FYUOdP1DqM2yGkAETkbKMzW3ltGHi-Ygoc,17077
|
|
648
|
-
ultracart/model/order_coupon.py,sha256=
|
|
648
|
+
ultracart/model/order_coupon.py,sha256=27VUqjZq-coame0HbPJg2_wjgiFHehZzhcTeLcK4Ups,13194
|
|
649
649
|
ultracart/model/order_current_stage_history.py,sha256=I7qJRxU5dwv4ceQ-7EdD4BnY0eo7sGf3tyz6Xzav8k4,13423
|
|
650
650
|
ultracart/model/order_digital_item.py,sha256=U-GldDb9vqygkiLEG0B6Kqs-F8H9fX_MF-wVv-5KrBI,13607
|
|
651
651
|
ultracart/model/order_digital_order.py,sha256=Bqrruo3A8NiOP9EQADraPRVz1R1EjxmQenowmXnPBk0,12968
|
|
@@ -885,8 +885,8 @@ ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE
|
|
|
885
885
|
ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
|
|
886
886
|
ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
|
|
887
887
|
ultracart/models/__init__.py,sha256=Y4LS2AerNErGWtZ82AFBjaQMJ25Zt10dy7UbxzyjlkI,66008
|
|
888
|
-
ultracart_rest_sdk-4.1.
|
|
889
|
-
ultracart_rest_sdk-4.1.
|
|
890
|
-
ultracart_rest_sdk-4.1.
|
|
891
|
-
ultracart_rest_sdk-4.1.
|
|
892
|
-
ultracart_rest_sdk-4.1.
|
|
888
|
+
ultracart_rest_sdk-4.1.1.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
889
|
+
ultracart_rest_sdk-4.1.1.dist-info/METADATA,sha256=GOAVVQQPuhaE0FC60dQaZdVTJ693egiyEc4DAKM4xi0,401
|
|
890
|
+
ultracart_rest_sdk-4.1.1.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
891
|
+
ultracart_rest_sdk-4.1.1.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
892
|
+
ultracart_rest_sdk-4.1.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|