ultracart-rest-sdk 4.0.245__py3-none-any.whl → 4.1.0__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 CHANGED
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.0.245"
14
+ __version__ = "4.1.0"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
ultracart/api/item_api.py CHANGED
@@ -402,6 +402,51 @@ class ItemApi(object):
402
402
  },
403
403
  api_client=api_client
404
404
  )
405
+ self.get_inventory_snapshot_endpoint = _Endpoint(
406
+ settings={
407
+ 'response_type': (ItemInventorySnapshotResponse,),
408
+ 'auth': [
409
+ 'ultraCartOauth',
410
+ 'ultraCartSimpleApiKey'
411
+ ],
412
+ 'endpoint_path': '/item/items/inventory_snapshot',
413
+ 'operation_id': 'get_inventory_snapshot',
414
+ 'http_method': 'GET',
415
+ 'servers': None,
416
+ },
417
+ params_map={
418
+ 'all': [
419
+ ],
420
+ 'required': [],
421
+ 'nullable': [
422
+ ],
423
+ 'enum': [
424
+ ],
425
+ 'validation': [
426
+ ]
427
+ },
428
+ root_map={
429
+ 'validations': {
430
+ },
431
+ 'allowed_values': {
432
+ },
433
+ 'openapi_types': {
434
+ },
435
+ 'attribute_map': {
436
+ },
437
+ 'location_map': {
438
+ },
439
+ 'collection_format_map': {
440
+ }
441
+ },
442
+ headers_map={
443
+ 'accept': [
444
+ 'application/json'
445
+ ],
446
+ 'content_type': [],
447
+ },
448
+ api_client=api_client
449
+ )
405
450
  self.get_item_endpoint = _Endpoint(
406
451
  settings={
407
452
  'response_type': (ItemResponse,),
@@ -1080,51 +1125,6 @@ class ItemApi(object):
1080
1125
  },
1081
1126
  api_client=api_client
1082
1127
  )
1083
- self.rest_item_inventory_snapshot_response_endpoint = _Endpoint(
1084
- settings={
1085
- 'response_type': (ItemInventorySnapshotResponse,),
1086
- 'auth': [
1087
- 'ultraCartOauth',
1088
- 'ultraCartSimpleApiKey'
1089
- ],
1090
- 'endpoint_path': '/item/items/inventory_snapshot',
1091
- 'operation_id': 'rest_item_inventory_snapshot_response',
1092
- 'http_method': 'GET',
1093
- 'servers': None,
1094
- },
1095
- params_map={
1096
- 'all': [
1097
- ],
1098
- 'required': [],
1099
- 'nullable': [
1100
- ],
1101
- 'enum': [
1102
- ],
1103
- 'validation': [
1104
- ]
1105
- },
1106
- root_map={
1107
- 'validations': {
1108
- },
1109
- 'allowed_values': {
1110
- },
1111
- 'openapi_types': {
1112
- },
1113
- 'attribute_map': {
1114
- },
1115
- 'location_map': {
1116
- },
1117
- 'collection_format_map': {
1118
- }
1119
- },
1120
- headers_map={
1121
- 'accept': [
1122
- 'application/json'
1123
- ],
1124
- 'content_type': [],
1125
- },
1126
- api_client=api_client
1127
- )
1128
1128
  self.update_digital_item_endpoint = _Endpoint(
1129
1129
  settings={
1130
1130
  'response_type': (ItemDigitalItemResponse,),
@@ -1944,6 +1944,84 @@ class ItemApi(object):
1944
1944
  external_id
1945
1945
  return self.get_digital_items_by_external_id_endpoint.call_with_http_info(**kwargs)
1946
1946
 
1947
+ def get_inventory_snapshot(
1948
+ self,
1949
+ **kwargs
1950
+ ):
1951
+ """Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response. # noqa: E501
1952
+
1953
+ Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response. # noqa: E501
1954
+ This method makes a synchronous HTTP request by default. To make an
1955
+ asynchronous HTTP request, please pass async_req=True
1956
+
1957
+ >>> thread = api.get_inventory_snapshot(async_req=True)
1958
+ >>> result = thread.get()
1959
+
1960
+
1961
+ Keyword Args:
1962
+ _return_http_data_only (bool): response data without head status
1963
+ code and headers. Default is True.
1964
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1965
+ will be returned without reading/decoding response data.
1966
+ Default is True.
1967
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1968
+ one number provided, it will be total request timeout. It can also
1969
+ be a pair (tuple) of (connection, read) timeouts.
1970
+ Default is None.
1971
+ _check_input_type (bool): specifies if type checking
1972
+ should be done one the data sent to the server.
1973
+ Default is True.
1974
+ _check_return_type (bool): specifies if type checking
1975
+ should be done one the data received from the server.
1976
+ Default is True.
1977
+ _spec_property_naming (bool): True if the variable names in the input data
1978
+ are serialized names, as specified in the OpenAPI document.
1979
+ False if the variable names in the input data
1980
+ are pythonic names, e.g. snake case (default)
1981
+ _content_type (str/None): force body content-type.
1982
+ Default is None and content-type will be predicted by allowed
1983
+ content-types and body.
1984
+ _host_index (int/None): specifies the index of the server
1985
+ that we want to use.
1986
+ Default is read from the configuration.
1987
+ _request_auths (list): set to override the auth_settings for an a single
1988
+ request; this effectively ignores the authentication
1989
+ in the spec for a single request.
1990
+ Default is None
1991
+ async_req (bool): execute request asynchronously
1992
+
1993
+ Returns:
1994
+ ItemInventorySnapshotResponse
1995
+ If the method is called asynchronously, returns the request
1996
+ thread.
1997
+ """
1998
+ kwargs['async_req'] = kwargs.get(
1999
+ 'async_req', False
2000
+ )
2001
+ kwargs['_return_http_data_only'] = kwargs.get(
2002
+ '_return_http_data_only', True
2003
+ )
2004
+ kwargs['_preload_content'] = kwargs.get(
2005
+ '_preload_content', True
2006
+ )
2007
+ kwargs['_request_timeout'] = kwargs.get(
2008
+ '_request_timeout', None
2009
+ )
2010
+ kwargs['_check_input_type'] = kwargs.get(
2011
+ '_check_input_type', True
2012
+ )
2013
+ kwargs['_check_return_type'] = kwargs.get(
2014
+ '_check_return_type', True
2015
+ )
2016
+ kwargs['_spec_property_naming'] = kwargs.get(
2017
+ '_spec_property_naming', False
2018
+ )
2019
+ kwargs['_content_type'] = kwargs.get(
2020
+ '_content_type')
2021
+ kwargs['_host_index'] = kwargs.get('_host_index')
2022
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2023
+ return self.get_inventory_snapshot_endpoint.call_with_http_info(**kwargs)
2024
+
1947
2025
  def get_item(
1948
2026
  self,
1949
2027
  merchant_item_oid,
@@ -2875,84 +2953,6 @@ class ItemApi(object):
2875
2953
  item_attribute
2876
2954
  return self.insert_update_item_content_attribute_endpoint.call_with_http_info(**kwargs)
2877
2955
 
2878
- def rest_item_inventory_snapshot_response(
2879
- self,
2880
- **kwargs
2881
- ):
2882
- """Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response. # noqa: E501
2883
-
2884
- Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response. # noqa: E501
2885
- This method makes a synchronous HTTP request by default. To make an
2886
- asynchronous HTTP request, please pass async_req=True
2887
-
2888
- >>> thread = api.rest_item_inventory_snapshot_response(async_req=True)
2889
- >>> result = thread.get()
2890
-
2891
-
2892
- Keyword Args:
2893
- _return_http_data_only (bool): response data without head status
2894
- code and headers. Default is True.
2895
- _preload_content (bool): if False, the urllib3.HTTPResponse object
2896
- will be returned without reading/decoding response data.
2897
- Default is True.
2898
- _request_timeout (int/float/tuple): timeout setting for this request. If
2899
- one number provided, it will be total request timeout. It can also
2900
- be a pair (tuple) of (connection, read) timeouts.
2901
- Default is None.
2902
- _check_input_type (bool): specifies if type checking
2903
- should be done one the data sent to the server.
2904
- Default is True.
2905
- _check_return_type (bool): specifies if type checking
2906
- should be done one the data received from the server.
2907
- Default is True.
2908
- _spec_property_naming (bool): True if the variable names in the input data
2909
- are serialized names, as specified in the OpenAPI document.
2910
- False if the variable names in the input data
2911
- are pythonic names, e.g. snake case (default)
2912
- _content_type (str/None): force body content-type.
2913
- Default is None and content-type will be predicted by allowed
2914
- content-types and body.
2915
- _host_index (int/None): specifies the index of the server
2916
- that we want to use.
2917
- Default is read from the configuration.
2918
- _request_auths (list): set to override the auth_settings for an a single
2919
- request; this effectively ignores the authentication
2920
- in the spec for a single request.
2921
- Default is None
2922
- async_req (bool): execute request asynchronously
2923
-
2924
- Returns:
2925
- ItemInventorySnapshotResponse
2926
- If the method is called asynchronously, returns the request
2927
- thread.
2928
- """
2929
- kwargs['async_req'] = kwargs.get(
2930
- 'async_req', False
2931
- )
2932
- kwargs['_return_http_data_only'] = kwargs.get(
2933
- '_return_http_data_only', True
2934
- )
2935
- kwargs['_preload_content'] = kwargs.get(
2936
- '_preload_content', True
2937
- )
2938
- kwargs['_request_timeout'] = kwargs.get(
2939
- '_request_timeout', None
2940
- )
2941
- kwargs['_check_input_type'] = kwargs.get(
2942
- '_check_input_type', True
2943
- )
2944
- kwargs['_check_return_type'] = kwargs.get(
2945
- '_check_return_type', True
2946
- )
2947
- kwargs['_spec_property_naming'] = kwargs.get(
2948
- '_spec_property_naming', False
2949
- )
2950
- kwargs['_content_type'] = kwargs.get(
2951
- '_content_type')
2952
- kwargs['_host_index'] = kwargs.get('_host_index')
2953
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2954
- return self.rest_item_inventory_snapshot_response_endpoint.call_with_http_info(**kwargs)
2955
-
2956
2956
  def update_digital_item(
2957
2957
  self,
2958
2958
  digital_item_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.245/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.1.0/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -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.245".\
425
+ "SDK Package Version: 4.1.0".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.245
3
+ Version: 4.1.0
4
4
  Summary: UltraCart Rest API V2
5
5
  Home-page: UNKNOWN
6
6
  Author: UltraCart Support
@@ -1,6 +1,6 @@
1
- ultracart/__init__.py,sha256=kSZSSC8AlB-PFPtrf7PnY9YlmbHYT1IKTMA_lVlVXz8,699
2
- ultracart/api_client.py,sha256=1hzGevhpA0fmwbKSDgXRsCje74TMDcD-QUsJ3QX7EQQ,39072
3
- ultracart/configuration.py,sha256=kzvSsARm1Ixmzk7jNEagQJOzZ2VCsqaDcbN207Fo-qE,17842
1
+ ultracart/__init__.py,sha256=cat4KrMMs9p-uLV9tgCMeKynXS5p4hBcek0JXqUwi0U,697
2
+ ultracart/api_client.py,sha256=EbRDrRDhXa8wtgrGF24CFoktSF9JI5H5n_HQcpUQrNs,39070
3
+ ultracart/configuration.py,sha256=KH8JqGr5AoBsQpbyEUXFH6y6nrnyK-TaBTGt4K0c2Lo,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
@@ -17,7 +17,7 @@ ultracart/api/datawarehouse_api.py,sha256=4UdypzYNcDwgHeyWqK1x6WARC62u9CmbfVTGhr
17
17
  ultracart/api/fulfillment_api.py,sha256=JD4uwms4Mz5XWmLBnOo-nDT6GHKW-uI2xt_YjwieJLU,35275
18
18
  ultracart/api/gift_certificate_api.py,sha256=2TkzQhqCMcPf8Ro14eRycy0LtPxfC7n67GSMRrMcNuc,46858
19
19
  ultracart/api/integration_log_api.py,sha256=t8spQtDERkGKISq7JtDNkA1MsQXp8qV8lSuXIhy0lEc,30164
20
- ultracart/api/item_api.py,sha256=sMc9DIza1CedC845dfljhYz_Bdyh6A9pumu5b5nVxZU,134751
20
+ ultracart/api/item_api.py,sha256=Mig0efruQ_KXKqqATbQAYmynq_Rwj1FcejQd_iq8mlc,134676
21
21
  ultracart/api/oauth_api.py,sha256=ZgwVvUNQybiol1gdS8OjQY60ElUsEPmtFgSSb5Ys5SI,13633
22
22
  ultracart/api/order_api.py,sha256=TYIegMclGmOjWZ4-TeJghPWZDa0pyUYJ8eu1oUkcAJI,161411
23
23
  ultracart/api/sso_api.py,sha256=Ct9oau71nCUKecojo_1kkXRcIqPxhlVZiST2bdjLJJ8,21632
@@ -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.0.245.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
889
- ultracart_rest_sdk-4.0.245.dist-info/METADATA,sha256=snpzyOZULvcWsIoCm5B9H_mC2X3Ja-dgMcPUz1HowJg,403
890
- ultracart_rest_sdk-4.0.245.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
891
- ultracart_rest_sdk-4.0.245.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
892
- ultracart_rest_sdk-4.0.245.dist-info/RECORD,,
888
+ ultracart_rest_sdk-4.1.0.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
889
+ ultracart_rest_sdk-4.1.0.dist-info/METADATA,sha256=P_LtVWknA2mAZphANyqAjOgk9OLgyqhB1nUQaSD-_KU,401
890
+ ultracart_rest_sdk-4.1.0.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
891
+ ultracart_rest_sdk-4.1.0.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
892
+ ultracart_rest_sdk-4.1.0.dist-info/RECORD,,