ultracart-rest-sdk 4.0.242__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.

Potentially problematic release.


This version of ultracart-rest-sdk might be problematic. Click here for more details.

ultracart/__init__.py CHANGED
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.0.242"
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.242/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.242".\
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):
@@ -37,6 +37,7 @@ def lazy_import():
37
37
  from ultracart.model.order_payment_e_check import OrderPaymentECheck
38
38
  from ultracart.model.order_payment_health_benefit_card import OrderPaymentHealthBenefitCard
39
39
  from ultracart.model.order_payment_insurance import OrderPaymentInsurance
40
+ from ultracart.model.order_payment_pay_pal import OrderPaymentPayPal
40
41
  from ultracart.model.order_payment_purchase_order import OrderPaymentPurchaseOrder
41
42
  from ultracart.model.order_payment_transaction import OrderPaymentTransaction
42
43
  globals()['Currency'] = Currency
@@ -45,6 +46,7 @@ def lazy_import():
45
46
  globals()['OrderPaymentECheck'] = OrderPaymentECheck
46
47
  globals()['OrderPaymentHealthBenefitCard'] = OrderPaymentHealthBenefitCard
47
48
  globals()['OrderPaymentInsurance'] = OrderPaymentInsurance
49
+ globals()['OrderPaymentPayPal'] = OrderPaymentPayPal
48
50
  globals()['OrderPaymentPurchaseOrder'] = OrderPaymentPurchaseOrder
49
51
  globals()['OrderPaymentTransaction'] = OrderPaymentTransaction
50
52
 
@@ -152,6 +154,7 @@ class OrderPayment(ModelNormal):
152
154
  'payment_method_accounting_code': (str,), # noqa: E501
153
155
  'payment_method_deposit_to_account': (str,), # noqa: E501
154
156
  'payment_status': (str,), # noqa: E501
157
+ 'paypal': (OrderPaymentPayPal,), # noqa: E501
155
158
  'purchase_order': (OrderPaymentPurchaseOrder,), # noqa: E501
156
159
  'rotating_transaction_gateway_code': (str,), # noqa: E501
157
160
  'surcharge': (Currency,), # noqa: E501
@@ -179,6 +182,7 @@ class OrderPayment(ModelNormal):
179
182
  'payment_method_accounting_code': 'payment_method_accounting_code', # noqa: E501
180
183
  'payment_method_deposit_to_account': 'payment_method_deposit_to_account', # noqa: E501
181
184
  'payment_status': 'payment_status', # noqa: E501
185
+ 'paypal': 'paypal', # noqa: E501
182
186
  'purchase_order': 'purchase_order', # noqa: E501
183
187
  'rotating_transaction_gateway_code': 'rotating_transaction_gateway_code', # noqa: E501
184
188
  'surcharge': 'surcharge', # noqa: E501
@@ -241,6 +245,7 @@ class OrderPayment(ModelNormal):
241
245
  payment_method_accounting_code (str): Payment method QuickBooks code. [optional] # noqa: E501
242
246
  payment_method_deposit_to_account (str): Payment method QuickBooks deposit account. [optional] # noqa: E501
243
247
  payment_status (str): Payment status. [optional] # noqa: E501
248
+ paypal (OrderPaymentPayPal): [optional] # noqa: E501
244
249
  purchase_order (OrderPaymentPurchaseOrder): [optional] # noqa: E501
245
250
  rotating_transaction_gateway_code (str): Rotating transaction gateway code used to process this order. [optional] # noqa: E501
246
251
  surcharge (Currency): [optional] # noqa: E501
@@ -345,6 +350,7 @@ class OrderPayment(ModelNormal):
345
350
  payment_method_accounting_code (str): Payment method QuickBooks code. [optional] # noqa: E501
346
351
  payment_method_deposit_to_account (str): Payment method QuickBooks deposit account. [optional] # noqa: E501
347
352
  payment_status (str): Payment status. [optional] # noqa: E501
353
+ paypal (OrderPaymentPayPal): [optional] # noqa: E501
348
354
  purchase_order (OrderPaymentPurchaseOrder): [optional] # noqa: E501
349
355
  rotating_transaction_gateway_code (str): Rotating transaction gateway code used to process this order. [optional] # noqa: E501
350
356
  surcharge (Currency): [optional] # noqa: E501
@@ -0,0 +1,268 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class OrderPaymentPayPal(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'customer_id': (str,), # noqa: E501
86
+ 'vault_id': (str,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'customer_id': 'customer_id', # noqa: E501
96
+ 'vault_id': 'vault_id', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """OrderPaymentPayPal - a model defined in OpenAPI
108
+
109
+ Keyword Args:
110
+ _check_type (bool): if True, values for parameters in openapi_types
111
+ will be type checked and a TypeError will be
112
+ raised if the wrong type is input.
113
+ Defaults to True
114
+ _path_to_item (tuple/list): This is a list of keys or values to
115
+ drill down to the model in received_data
116
+ when deserializing a response
117
+ _spec_property_naming (bool): True if the variable names in the input data
118
+ are serialized names, as specified in the OpenAPI document.
119
+ False if the variable names in the input data
120
+ are pythonic names, e.g. snake case (default)
121
+ _configuration (Configuration): the instance to use when
122
+ deserializing a file_type parameter.
123
+ If passed, type conversion is attempted
124
+ If omitted no type conversion is done.
125
+ _visited_composed_classes (tuple): This stores a tuple of
126
+ classes that we have traveled through so that
127
+ if we see that class again we will not use its
128
+ discriminator again.
129
+ When traveling through a discriminator, the
130
+ composed schema that is
131
+ is traveled through is added to this set.
132
+ For example if Animal has a discriminator
133
+ petType and we pass in "Dog", and the class Dog
134
+ allOf includes Animal, we move through Animal
135
+ once using the discriminator, and pick Dog.
136
+ Then in Dog, we will make an instance of the
137
+ Animal class but this time we won't travel
138
+ through its discriminator because we passed in
139
+ _visited_composed_classes = (Animal,)
140
+ customer_id (str): PayPal Customer ID. [optional] # noqa: E501
141
+ vault_id (str): PayPal Vault ID. [optional] # noqa: E501
142
+ """
143
+
144
+ _check_type = kwargs.pop('_check_type', True)
145
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
146
+ _path_to_item = kwargs.pop('_path_to_item', ())
147
+ _configuration = kwargs.pop('_configuration', None)
148
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
149
+
150
+ self = super(OpenApiModel, cls).__new__(cls)
151
+
152
+ if args:
153
+ for arg in args:
154
+ if isinstance(arg, dict):
155
+ kwargs.update(arg)
156
+ else:
157
+ raise ApiTypeError(
158
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
+ args,
160
+ self.__class__.__name__,
161
+ ),
162
+ path_to_item=_path_to_item,
163
+ valid_classes=(self.__class__,),
164
+ )
165
+
166
+ self._data_store = {}
167
+ self._check_type = _check_type
168
+ self._spec_property_naming = _spec_property_naming
169
+ self._path_to_item = _path_to_item
170
+ self._configuration = _configuration
171
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
+
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, *args, **kwargs): # noqa: E501
194
+ """OrderPaymentPayPal - a model defined in OpenAPI
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ customer_id (str): PayPal Customer ID. [optional] # noqa: E501
228
+ vault_id (str): PayPal Vault ID. [optional] # noqa: E501
229
+ """
230
+
231
+ _check_type = kwargs.pop('_check_type', True)
232
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
+ _path_to_item = kwargs.pop('_path_to_item', ())
234
+ _configuration = kwargs.pop('_configuration', None)
235
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
+
237
+ if args:
238
+ for arg in args:
239
+ if isinstance(arg, dict):
240
+ kwargs.update(arg)
241
+ else:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")
@@ -659,6 +659,7 @@ from ultracart.model.order_payment_credit_card_dual_vaulted_property import Orde
659
659
  from ultracart.model.order_payment_e_check import OrderPaymentECheck
660
660
  from ultracart.model.order_payment_health_benefit_card import OrderPaymentHealthBenefitCard
661
661
  from ultracart.model.order_payment_insurance import OrderPaymentInsurance
662
+ from ultracart.model.order_payment_pay_pal import OrderPaymentPayPal
662
663
  from ultracart.model.order_payment_purchase_order import OrderPaymentPurchaseOrder
663
664
  from ultracart.model.order_payment_transaction import OrderPaymentTransaction
664
665
  from ultracart.model.order_payment_transaction_detail import OrderPaymentTransactionDetail
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.242
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=JbUJiDXJuq0OxQBI4cQN26h6NUQUte2yTODfstvPV0A,699
2
- ultracart/api_client.py,sha256=ki3Z1adeY1G0_v_7imXuMjVBr1hPLIS6ZVUFZJMJSrw,39072
3
- ultracart/configuration.py,sha256=GJ5AXXjnPAxlEluLRF3GOy-f-YcMsdkddvvDXLR4qoQ,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
@@ -670,7 +670,7 @@ ultracart/model/order_item_tag.py,sha256=IGO8fQmXZ_MoREh8GiTLKd8T-DVn1KAefiSXXnb
670
670
  ultracart/model/order_linked_shipment.py,sha256=8J3ed4L48ebAgC61koZJXnipe7YVcTKWoyy8CR4-s_M,13149
671
671
  ultracart/model/order_marketing.py,sha256=x4VPy4XOKl7RLjiMnroIeFlWKKHfLEgSezIKNZOqKuo,12596
672
672
  ultracart/model/order_packing_slip_response.py,sha256=acLnSb5t-nZ1NQe3A8MSkgA-htWGCafmPi-c2cqzgkE,12719
673
- ultracart/model/order_payment.py,sha256=E4Rkgn1sE_bA2cOlgLS8DmRCOMIvo5POWHRyKuYDRC0,19956
673
+ ultracart/model/order_payment.py,sha256=mxX4HTuWBVrXbn3W5S-q9wplnKg1lXQ1ajB6YZVIPio,20319
674
674
  ultracart/model/order_payment_check.py,sha256=a-OAp4zyWwa-iNP5ukFQFc5Xi1xodnzwdvfn7BM2ivs,11468
675
675
  ultracart/model/order_payment_credit_card.py,sha256=eh__M764v83trWIKaq2to3L7dIQdAYDjXBoREXIjfcY,15912
676
676
  ultracart/model/order_payment_credit_card_dual_vaulted.py,sha256=BLE9zSsUsVjuddLhSJnrHmF6k2GDxtyeIG2y1ATCvck,12428
@@ -678,6 +678,7 @@ ultracart/model/order_payment_credit_card_dual_vaulted_property.py,sha256=4W4xJB
678
678
  ultracart/model/order_payment_e_check.py,sha256=qbcIDU0ADrhSEmwLWMAYSrX_5ohk3wk1B0wEwfeepBs,14976
679
679
  ultracart/model/order_payment_health_benefit_card.py,sha256=PtLMq5FuV_mWzfJQrTR54A3c_N6nCXMtLsePjRe_Pkg,14197
680
680
  ultracart/model/order_payment_insurance.py,sha256=mYk-jzl74djyN-mEQsMqy2MBux3bfQcSvCx3GiCAs5E,12239
681
+ ultracart/model/order_payment_pay_pal.py,sha256=beS8nfhLgp9TBXpsrMtHfOK56DrjsQeDQfvL1nSF8ZA,11710
681
682
  ultracart/model/order_payment_purchase_order.py,sha256=a3-ijfuPa7XXiQeNlTtj1B6fA8_6IvjvxtCMUiP-Z8c,11555
682
683
  ultracart/model/order_payment_transaction.py,sha256=BlM4NjcmqCtoKLtk5-UUUm6vSM5es47TF512TDK3rVQ,12928
683
684
  ultracart/model/order_payment_transaction_detail.py,sha256=vS0VqkWoC-D43OqNKaGEpAaQZ2VVHv0Z-5PHNLmDRH0,11835
@@ -883,9 +884,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
883
884
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
884
885
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
885
886
  ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
886
- ultracart/models/__init__.py,sha256=PmKNiB2g3ssPPPwhHfduAvJNSM5q9z_KDf472v8fJiA,65939
887
- ultracart_rest_sdk-4.0.242.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
888
- ultracart_rest_sdk-4.0.242.dist-info/METADATA,sha256=6TC5oefMqX4kZJO8EC7bJW_9D_jl2o8GJMgqxv6BFT8,403
889
- ultracart_rest_sdk-4.0.242.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
890
- ultracart_rest_sdk-4.0.242.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
891
- ultracart_rest_sdk-4.0.242.dist-info/RECORD,,
887
+ ultracart/models/__init__.py,sha256=Y4LS2AerNErGWtZ82AFBjaQMJ25Zt10dy7UbxzyjlkI,66008
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,,