ultracart-rest-sdk 4.0.241__py3-none-any.whl → 4.0.245__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.241"
14
+ __version__ = "4.0.245"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
@@ -26,6 +26,7 @@ from ultracart.model.distribution_centers_response import DistributionCentersRes
26
26
  from ultracart.model.error_response import ErrorResponse
27
27
  from ultracart.model.fulfillment_inventory import FulfillmentInventory
28
28
  from ultracart.model.fulfillment_shipment import FulfillmentShipment
29
+ from ultracart.model.order_packing_slip_response import OrderPackingSlipResponse
29
30
  from ultracart.model.orders_response import OrdersResponse
30
31
 
31
32
 
@@ -112,7 +113,7 @@ class FulfillmentApi(object):
112
113
  )
113
114
  self.generate_packing_slip_endpoint = _Endpoint(
114
115
  settings={
115
- 'response_type': (OrdersResponse,),
116
+ 'response_type': (OrderPackingSlipResponse,),
116
117
  'auth': [
117
118
  'ultraCartOauth',
118
119
  'ultraCartSimpleApiKey'
@@ -523,7 +524,7 @@ class FulfillmentApi(object):
523
524
  async_req (bool): execute request asynchronously
524
525
 
525
526
  Returns:
526
- OrdersResponse
527
+ OrderPackingSlipResponse
527
528
  If the method is called asynchronously, returns the request
528
529
  thread.
529
530
  """
@@ -565,7 +566,7 @@ class FulfillmentApi(object):
565
566
  ):
566
567
  """Retrieve orders queued up for this distribution center. # noqa: E501
567
568
 
568
- Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes. # noqa: E501
569
+ Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes. # noqa: E501
569
570
  This method makes a synchronous HTTP request by default. To make an
570
571
  asynchronous HTTP request, please pass async_req=True
571
572
 
@@ -208,7 +208,7 @@ class OauthApi(object):
208
208
 
209
209
  Keyword Args:
210
210
  code (str): Authorization code received back from the browser redirect. [optional]
211
- redirect_uri (str): The URI that you redirect the browser to to start the authorization process. [optional]
211
+ redirect_uri (str): The URI that you redirect the browser to start the authorization process. [optional]
212
212
  refresh_token (str): The refresh token received during the original grant_type=authorization_code that can be used to return a new access token. [optional]
213
213
  _return_http_data_only (bool): response data without head status
214
214
  code and headers. Default is True.
@@ -26,8 +26,8 @@ from ultracart.model.error_response import ErrorResponse
26
26
  from ultracart.model.webhook import Webhook
27
27
  from ultracart.model.webhook_log_response import WebhookLogResponse
28
28
  from ultracart.model.webhook_log_summaries_response import WebhookLogSummariesResponse
29
+ from ultracart.model.webhook_reflow_response import WebhookReflowResponse
29
30
  from ultracart.model.webhook_response import WebhookResponse
30
- from ultracart.model.webhook_sample_request_response import WebhookSampleRequestResponse
31
31
  from ultracart.model.webhooks_response import WebhooksResponse
32
32
 
33
33
 
@@ -408,7 +408,7 @@ class WebhookApi(object):
408
408
  )
409
409
  self.resend_event_endpoint = _Endpoint(
410
410
  settings={
411
- 'response_type': (WebhookSampleRequestResponse,),
411
+ 'response_type': (WebhookReflowResponse,),
412
412
  'auth': [
413
413
  'ultraCartOauth',
414
414
  'ultraCartSimpleApiKey'
@@ -1086,7 +1086,7 @@ class WebhookApi(object):
1086
1086
  async_req (bool): execute request asynchronously
1087
1087
 
1088
1088
  Returns:
1089
- WebhookSampleRequestResponse
1089
+ WebhookReflowResponse
1090
1090
  If the method is called asynchronously, returns the request
1091
1091
  thread.
1092
1092
  """
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.241/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.245/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.241".\
425
+ "SDK Package Version: 4.0.245".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -83,6 +83,7 @@ class ItemPaymentProcessing(ModelNormal):
83
83
  """
84
84
  return {
85
85
  'block_prepaid': (bool,), # noqa: E501
86
+ 'block_refunds': (bool,), # noqa: E501
86
87
  'credit_card_transaction_type': (str,), # noqa: E501
87
88
  'no_realtime_charge': (bool,), # noqa: E501
88
89
  'payment_method_validity': ([str],), # noqa: E501
@@ -96,6 +97,7 @@ class ItemPaymentProcessing(ModelNormal):
96
97
 
97
98
  attribute_map = {
98
99
  'block_prepaid': 'block_prepaid', # noqa: E501
100
+ 'block_refunds': 'block_refunds', # noqa: E501
99
101
  'credit_card_transaction_type': 'credit_card_transaction_type', # noqa: E501
100
102
  'no_realtime_charge': 'no_realtime_charge', # noqa: E501
101
103
  'payment_method_validity': 'payment_method_validity', # noqa: E501
@@ -144,6 +146,7 @@ class ItemPaymentProcessing(ModelNormal):
144
146
  through its discriminator because we passed in
145
147
  _visited_composed_classes = (Animal,)
146
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
147
150
  credit_card_transaction_type (str): Credit card transaction type. [optional] # noqa: E501
148
151
  no_realtime_charge (bool): True if no real-time charge should be performed on this item.. [optional] # noqa: E501
149
152
  payment_method_validity ([str]): Payment method validity. [optional] # noqa: E501
@@ -234,6 +237,7 @@ class ItemPaymentProcessing(ModelNormal):
234
237
  through its discriminator because we passed in
235
238
  _visited_composed_classes = (Animal,)
236
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
237
241
  credit_card_transaction_type (str): Credit card transaction type. [optional] # noqa: E501
238
242
  no_realtime_charge (bool): True if no real-time charge should be performed on this item.. [optional] # noqa: E501
239
243
  payment_method_validity ([str]): Payment method validity. [optional] # noqa: E501
@@ -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
@@ -30,12 +30,8 @@ from ultracart.model_utils import ( # noqa: F401
30
30
  from ultracart.exceptions import ApiAttributeError
31
31
 
32
32
 
33
- def lazy_import():
34
- from ultracart.model.http_header import HTTPHeader
35
- globals()['HTTPHeader'] = HTTPHeader
36
33
 
37
-
38
- class WebhookSampleRequest(ModelNormal):
34
+ class OrderPaymentPayPal(ModelNormal):
39
35
  """NOTE: This class is auto generated by OpenAPI Generator.
40
36
  Ref: https://openapi-generator.tech
41
37
 
@@ -71,7 +67,6 @@ class WebhookSampleRequest(ModelNormal):
71
67
  This must be a method because a model may have properties that are
72
68
  of type self, this must run after the class is loaded
73
69
  """
74
- lazy_import()
75
70
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
71
 
77
72
  _nullable = False
@@ -86,12 +81,9 @@ class WebhookSampleRequest(ModelNormal):
86
81
  openapi_types (dict): The key is attribute name
87
82
  and the value is attribute type.
88
83
  """
89
- lazy_import()
90
84
  return {
91
- 'request': (str,), # noqa: E501
92
- 'request_headers': ([HTTPHeader],), # noqa: E501
93
- 'request_id': (str,), # noqa: E501
94
- 'uri': (str,), # noqa: E501
85
+ 'customer_id': (str,), # noqa: E501
86
+ 'vault_id': (str,), # noqa: E501
95
87
  }
96
88
 
97
89
  @cached_property
@@ -100,10 +92,8 @@ class WebhookSampleRequest(ModelNormal):
100
92
 
101
93
 
102
94
  attribute_map = {
103
- 'request': 'request', # noqa: E501
104
- 'request_headers': 'request_headers', # noqa: E501
105
- 'request_id': 'request_id', # noqa: E501
106
- 'uri': 'uri', # noqa: E501
95
+ 'customer_id': 'customer_id', # noqa: E501
96
+ 'vault_id': 'vault_id', # noqa: E501
107
97
  }
108
98
 
109
99
  read_only_vars = {
@@ -114,7 +104,7 @@ class WebhookSampleRequest(ModelNormal):
114
104
  @classmethod
115
105
  @convert_js_args_to_python_args
116
106
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
117
- """WebhookSampleRequest - a model defined in OpenAPI
107
+ """OrderPaymentPayPal - a model defined in OpenAPI
118
108
 
119
109
  Keyword Args:
120
110
  _check_type (bool): if True, values for parameters in openapi_types
@@ -147,10 +137,8 @@ class WebhookSampleRequest(ModelNormal):
147
137
  Animal class but this time we won't travel
148
138
  through its discriminator because we passed in
149
139
  _visited_composed_classes = (Animal,)
150
- request (str): Request. [optional] # noqa: E501
151
- request_headers ([HTTPHeader]): Request headers. [optional] # noqa: E501
152
- request_id (str): Request id. [optional] # noqa: E501
153
- uri (str): URI to send request to. [optional] # noqa: E501
140
+ customer_id (str): PayPal Customer ID. [optional] # noqa: E501
141
+ vault_id (str): PayPal Vault ID. [optional] # noqa: E501
154
142
  """
155
143
 
156
144
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +191,7 @@ class WebhookSampleRequest(ModelNormal):
203
191
 
204
192
  @convert_js_args_to_python_args
205
193
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """WebhookSampleRequest - a model defined in OpenAPI
194
+ """OrderPaymentPayPal - a model defined in OpenAPI
207
195
 
208
196
  Keyword Args:
209
197
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,10 +224,8 @@ class WebhookSampleRequest(ModelNormal):
236
224
  Animal class but this time we won't travel
237
225
  through its discriminator because we passed in
238
226
  _visited_composed_classes = (Animal,)
239
- request (str): Request. [optional] # noqa: E501
240
- request_headers ([HTTPHeader]): Request headers. [optional] # noqa: E501
241
- request_id (str): Request id. [optional] # noqa: E501
242
- uri (str): URI to send request to. [optional] # noqa: E501
227
+ customer_id (str): PayPal Customer ID. [optional] # noqa: E501
228
+ vault_id (str): PayPal Vault ID. [optional] # noqa: E501
243
229
  """
244
230
 
245
231
  _check_type = kwargs.pop('_check_type', True)
@@ -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 WebhookReflow(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
+ 'event_name': (str,), # noqa: E501
86
+ 'queued': (bool,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'event_name': 'event_name', # noqa: E501
96
+ 'queued': 'queued', # 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
+ """WebhookReflow - 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
+ event_name (str): [optional] # noqa: E501
141
+ queued (bool): [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
+ """WebhookReflow - 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
+ event_name (str): [optional] # noqa: E501
228
+ queued (bool): [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.")
@@ -34,14 +34,14 @@ def lazy_import():
34
34
  from ultracart.model.error import Error
35
35
  from ultracart.model.response_metadata import ResponseMetadata
36
36
  from ultracart.model.warning import Warning
37
- from ultracart.model.webhook_sample_request import WebhookSampleRequest
37
+ from ultracart.model.webhook_reflow import WebhookReflow
38
38
  globals()['Error'] = Error
39
39
  globals()['ResponseMetadata'] = ResponseMetadata
40
40
  globals()['Warning'] = Warning
41
- globals()['WebhookSampleRequest'] = WebhookSampleRequest
41
+ globals()['WebhookReflow'] = WebhookReflow
42
42
 
43
43
 
44
- class WebhookSampleRequestResponse(ModelNormal):
44
+ class WebhookReflowResponse(ModelNormal):
45
45
  """NOTE: This class is auto generated by OpenAPI Generator.
46
46
  Ref: https://openapi-generator.tech
47
47
 
@@ -96,9 +96,9 @@ class WebhookSampleRequestResponse(ModelNormal):
96
96
  return {
97
97
  'error': (Error,), # noqa: E501
98
98
  'metadata': (ResponseMetadata,), # noqa: E501
99
+ 'reflow': (WebhookReflow,), # noqa: E501
99
100
  'success': (bool,), # noqa: E501
100
101
  'warning': (Warning,), # noqa: E501
101
- 'webhook_sample_request': (WebhookSampleRequest,), # noqa: E501
102
102
  }
103
103
 
104
104
  @cached_property
@@ -109,9 +109,9 @@ class WebhookSampleRequestResponse(ModelNormal):
109
109
  attribute_map = {
110
110
  'error': 'error', # noqa: E501
111
111
  'metadata': 'metadata', # noqa: E501
112
+ 'reflow': 'reflow', # noqa: E501
112
113
  'success': 'success', # noqa: E501
113
114
  'warning': 'warning', # noqa: E501
114
- 'webhook_sample_request': 'webhook_sample_request', # noqa: E501
115
115
  }
116
116
 
117
117
  read_only_vars = {
@@ -122,7 +122,7 @@ class WebhookSampleRequestResponse(ModelNormal):
122
122
  @classmethod
123
123
  @convert_js_args_to_python_args
124
124
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
125
- """WebhookSampleRequestResponse - a model defined in OpenAPI
125
+ """WebhookReflowResponse - a model defined in OpenAPI
126
126
 
127
127
  Keyword Args:
128
128
  _check_type (bool): if True, values for parameters in openapi_types
@@ -157,9 +157,9 @@ class WebhookSampleRequestResponse(ModelNormal):
157
157
  _visited_composed_classes = (Animal,)
158
158
  error (Error): [optional] # noqa: E501
159
159
  metadata (ResponseMetadata): [optional] # noqa: E501
160
+ reflow (WebhookReflow): [optional] # noqa: E501
160
161
  success (bool): Indicates if API call was successful. [optional] # noqa: E501
161
162
  warning (Warning): [optional] # noqa: E501
162
- webhook_sample_request (WebhookSampleRequest): [optional] # noqa: E501
163
163
  """
164
164
 
165
165
  _check_type = kwargs.pop('_check_type', True)
@@ -212,7 +212,7 @@ class WebhookSampleRequestResponse(ModelNormal):
212
212
 
213
213
  @convert_js_args_to_python_args
214
214
  def __init__(self, *args, **kwargs): # noqa: E501
215
- """WebhookSampleRequestResponse - a model defined in OpenAPI
215
+ """WebhookReflowResponse - a model defined in OpenAPI
216
216
 
217
217
  Keyword Args:
218
218
  _check_type (bool): if True, values for parameters in openapi_types
@@ -247,9 +247,9 @@ class WebhookSampleRequestResponse(ModelNormal):
247
247
  _visited_composed_classes = (Animal,)
248
248
  error (Error): [optional] # noqa: E501
249
249
  metadata (ResponseMetadata): [optional] # noqa: E501
250
+ reflow (WebhookReflow): [optional] # noqa: E501
250
251
  success (bool): Indicates if API call was successful. [optional] # noqa: E501
251
252
  warning (Warning): [optional] # noqa: E501
252
- webhook_sample_request (WebhookSampleRequest): [optional] # noqa: E501
253
253
  """
254
254
 
255
255
  _check_type = kwargs.pop('_check_type', True)
@@ -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
@@ -841,9 +842,9 @@ from ultracart.model.webhook_log import WebhookLog
841
842
  from ultracart.model.webhook_log_response import WebhookLogResponse
842
843
  from ultracart.model.webhook_log_summaries_response import WebhookLogSummariesResponse
843
844
  from ultracart.model.webhook_log_summary import WebhookLogSummary
845
+ from ultracart.model.webhook_reflow import WebhookReflow
846
+ from ultracart.model.webhook_reflow_response import WebhookReflowResponse
844
847
  from ultracart.model.webhook_response import WebhookResponse
845
- from ultracart.model.webhook_sample_request import WebhookSampleRequest
846
- from ultracart.model.webhook_sample_request_response import WebhookSampleRequestResponse
847
848
  from ultracart.model.webhooks_response import WebhooksResponse
848
849
  from ultracart.model.weight import Weight
849
850
  from ultracart.model.workflow_agent_auth import WorkflowAgentAuth
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.241
3
+ Version: 4.0.245
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=nw2ZbIUbG5hUXkSs5raxzkHhCHFRP_8vlvXs-pLp3KU,699
2
- ultracart/api_client.py,sha256=uGx-O-ozjdql3ORr54MQwIh_1QMulPYNjUn3yGFfw68,39072
3
- ultracart/configuration.py,sha256=pReSJJv5pyVoxlwSi1pphyR1OV0If9SNsRi3ieM8Ifg,17842
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
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
@@ -14,17 +14,17 @@ ultracart/api/conversation_api.py,sha256=fwFvhCeMBGguLqXHZQF1UsKxIzgsCfrKPGDDOKl
14
14
  ultracart/api/coupon_api.py,sha256=voBpCzDhuBog_0WKSj9J-2zKSI8LyJINjUneeLAwlHg,109039
15
15
  ultracart/api/customer_api.py,sha256=I9skXHJZw9asr5LnRnE3vbVNMadjLm_2bDrNhr-mnfg,146498
16
16
  ultracart/api/datawarehouse_api.py,sha256=4UdypzYNcDwgHeyWqK1x6WARC62u9CmbfVTGhryOq5I,52975
17
- ultracart/api/fulfillment_api.py,sha256=2MN_iugqFk4gwz-ZhrOgB9iIQHnzQ5qNcv9pweOvXro,35183
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
20
  ultracart/api/item_api.py,sha256=sMc9DIza1CedC845dfljhYz_Bdyh6A9pumu5b5nVxZU,134751
21
- ultracart/api/oauth_api.py,sha256=oYx-F4WFF3LgMlHP-4x_gcSwS95-9Lowiwcgr5Rziyw,13636
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
24
24
  ultracart/api/storefront_api.py,sha256=tItFugj94AYHHfGJLbhMlMkErGP1ItZoiOeqtdRafGw,1017735
25
25
  ultracart/api/tax_api.py,sha256=aQZaRsIXlFNDPwXYAykApv3KaAGfV-ZHB6QPBbEK-P0,148671
26
26
  ultracart/api/user_api.py,sha256=LrzuXSpBa5V_rS8iRDRRhFYnUZN9fR2Y54FRnJ_fpiI,56627
27
- ultracart/api/webhook_api.py,sha256=cAk7ABZxsKE7dD1YRxdwLkj7M-GlQf1LiiKz7MBcqiU,46761
27
+ ultracart/api/webhook_api.py,sha256=YCauQnRNn13DZ9StEaSItzhOztXjzOUC-ipcnK8Ag58,46732
28
28
  ultracart/api/workflow_api.py,sha256=R9FwRKXTwilS9hKnDYGtjTeTj4jnZln3QHQxh1JH-JU,64957
29
29
  ultracart/apis/__init__.py,sha256=34qpEkWA4o5K2-EOU97Cv8OiaFpey9RrjxQ4tr-hIX4,1521
30
30
  ultracart/model/__init__.py,sha256=suxHGMXD01EjVybiiQCxwC2UxGr-ARfz-MQPkowHO6w,343
@@ -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=_01y-nty68AHO6p4f2vZ7YdOJm7LdybDWihM6UllAWo,13056
577
+ ultracart/model/item_payment_processing.py,sha256=HIXs-4aJablUtiushYiDgApU0Oer8tJz0Pid3BUYzng,13386
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
@@ -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
@@ -860,9 +861,9 @@ ultracart/model/webhook_log.py,sha256=R_v3y2YuMf7xN5vrOuRmROicefJCjFtT4EcoUhBkXs
860
861
  ultracart/model/webhook_log_response.py,sha256=GMoM76adgiCdaCaiYQ28o6BKySRaRAcltRT3jUvguEc,12800
861
862
  ultracart/model/webhook_log_summaries_response.py,sha256=XDBBAA12ahSULMgyBSUfzrMnEkRJmV3wanXQ2q1xqBo,12979
862
863
  ultracart/model/webhook_log_summary.py,sha256=1J7uzy5On8Wy0nOGqyPQUCj8t6bDipWrzXxPKPinlqs,12004
864
+ ultracart/model/webhook_reflow.py,sha256=bGG9WPhKRgHEtACZET8l86jzKzLPE11ivrvSYEyQMN8,11609
865
+ ultracart/model/webhook_reflow_response.py,sha256=t4bDr7WNQO_g3IkQx6cws6tEJgxH3HasPQ1C8sNhQ6I,12805
863
866
  ultracart/model/webhook_response.py,sha256=V6IBHt4Us2Am_oLjWew0XgCQUAAvOi0S8OpHeSsXL88,12749
864
- ultracart/model/webhook_sample_request.py,sha256=Qvt7FJPvECdYKv5MZztkSSmDxPDTSytxWrM47mR8ApA,12349
865
- ultracart/model/webhook_sample_request_response.py,sha256=Ni-3WiNhVLt9a7yX_MNdD16NsRehVpJWiTdN_myLRk4,12956
866
867
  ultracart/model/webhooks_response.py,sha256=RVGQ76kc7X0XY5iJdLgnwVr5V50uCoYCGaRtc03FKc4,12763
867
868
  ultracart/model/weight.py,sha256=LTxs6KqiARegRkcShAviWKILAMAdw9KXwI-QgBtpoM0,11726
868
869
  ultracart/model/workflow_agent_auth.py,sha256=WbiurfatVOtJZsEovYbugbJfBJbs9ZD2kmnDoB5soTw,11831
@@ -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=rg6SxaH93-dBjsbf3ktm_K49TUJ2I_2iU3H0O_Ce8Rc,65969
887
- ultracart_rest_sdk-4.0.241.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
888
- ultracart_rest_sdk-4.0.241.dist-info/METADATA,sha256=zNCVEFtO37kkYDIsiqq06Shc3MfDXteirbS_0YVhfds,403
889
- ultracart_rest_sdk-4.0.241.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
890
- ultracart_rest_sdk-4.0.241.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
891
- ultracart_rest_sdk-4.0.241.dist-info/RECORD,,
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,,