ultracart-rest-sdk 4.1.15__py3-none-any.whl → 4.1.16__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.1.15"
14
+ __version__ = "4.1.16"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
@@ -27,6 +27,7 @@ from ultracart.model.custom_report_account_config import CustomReportAccountConf
27
27
  from ultracart.model.custom_report_account_config_response import CustomReportAccountConfigResponse
28
28
  from ultracart.model.custom_report_execution_request import CustomReportExecutionRequest
29
29
  from ultracart.model.custom_report_response import CustomReportResponse
30
+ from ultracart.model.custom_reports_response import CustomReportsResponse
30
31
  from ultracart.model.error_response import ErrorResponse
31
32
  from ultracart.model.report import Report
32
33
  from ultracart.model.report_auth_response import ReportAuthResponse
@@ -427,6 +428,51 @@ class DatawarehouseApi(object):
427
428
  },
428
429
  api_client=api_client
429
430
  )
431
+ self.get_custom_reports_endpoint = _Endpoint(
432
+ settings={
433
+ 'response_type': (CustomReportsResponse,),
434
+ 'auth': [
435
+ 'ultraCartOauth',
436
+ 'ultraCartSimpleApiKey'
437
+ ],
438
+ 'endpoint_path': '/datawarehouse/custom_reports',
439
+ 'operation_id': 'get_custom_reports',
440
+ 'http_method': 'GET',
441
+ 'servers': None,
442
+ },
443
+ params_map={
444
+ 'all': [
445
+ ],
446
+ 'required': [],
447
+ 'nullable': [
448
+ ],
449
+ 'enum': [
450
+ ],
451
+ 'validation': [
452
+ ]
453
+ },
454
+ root_map={
455
+ 'validations': {
456
+ },
457
+ 'allowed_values': {
458
+ },
459
+ 'openapi_types': {
460
+ },
461
+ 'attribute_map': {
462
+ },
463
+ 'location_map': {
464
+ },
465
+ 'collection_format_map': {
466
+ }
467
+ },
468
+ headers_map={
469
+ 'accept': [
470
+ 'application/json'
471
+ ],
472
+ 'content_type': [],
473
+ },
474
+ api_client=api_client
475
+ )
430
476
  self.get_report_endpoint = _Endpoint(
431
477
  settings={
432
478
  'response_type': (ReportResponse,),
@@ -1537,6 +1583,84 @@ class DatawarehouseApi(object):
1537
1583
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1538
1584
  return self.get_custom_report_account_config_endpoint.call_with_http_info(**kwargs)
1539
1585
 
1586
+ def get_custom_reports(
1587
+ self,
1588
+ **kwargs
1589
+ ):
1590
+ """Get custom reports # noqa: E501
1591
+
1592
+ Retrieve a custom reports # noqa: E501
1593
+ This method makes a synchronous HTTP request by default. To make an
1594
+ asynchronous HTTP request, please pass async_req=True
1595
+
1596
+ >>> thread = api.get_custom_reports(async_req=True)
1597
+ >>> result = thread.get()
1598
+
1599
+
1600
+ Keyword Args:
1601
+ _return_http_data_only (bool): response data without head status
1602
+ code and headers. Default is True.
1603
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
1604
+ will be returned without reading/decoding response data.
1605
+ Default is True.
1606
+ _request_timeout (int/float/tuple): timeout setting for this request. If
1607
+ one number provided, it will be total request timeout. It can also
1608
+ be a pair (tuple) of (connection, read) timeouts.
1609
+ Default is None.
1610
+ _check_input_type (bool): specifies if type checking
1611
+ should be done one the data sent to the server.
1612
+ Default is True.
1613
+ _check_return_type (bool): specifies if type checking
1614
+ should be done one the data received from the server.
1615
+ Default is True.
1616
+ _spec_property_naming (bool): True if the variable names in the input data
1617
+ are serialized names, as specified in the OpenAPI document.
1618
+ False if the variable names in the input data
1619
+ are pythonic names, e.g. snake case (default)
1620
+ _content_type (str/None): force body content-type.
1621
+ Default is None and content-type will be predicted by allowed
1622
+ content-types and body.
1623
+ _host_index (int/None): specifies the index of the server
1624
+ that we want to use.
1625
+ Default is read from the configuration.
1626
+ _request_auths (list): set to override the auth_settings for an a single
1627
+ request; this effectively ignores the authentication
1628
+ in the spec for a single request.
1629
+ Default is None
1630
+ async_req (bool): execute request asynchronously
1631
+
1632
+ Returns:
1633
+ CustomReportsResponse
1634
+ If the method is called asynchronously, returns the request
1635
+ thread.
1636
+ """
1637
+ kwargs['async_req'] = kwargs.get(
1638
+ 'async_req', False
1639
+ )
1640
+ kwargs['_return_http_data_only'] = kwargs.get(
1641
+ '_return_http_data_only', True
1642
+ )
1643
+ kwargs['_preload_content'] = kwargs.get(
1644
+ '_preload_content', True
1645
+ )
1646
+ kwargs['_request_timeout'] = kwargs.get(
1647
+ '_request_timeout', None
1648
+ )
1649
+ kwargs['_check_input_type'] = kwargs.get(
1650
+ '_check_input_type', True
1651
+ )
1652
+ kwargs['_check_return_type'] = kwargs.get(
1653
+ '_check_return_type', True
1654
+ )
1655
+ kwargs['_spec_property_naming'] = kwargs.get(
1656
+ '_spec_property_naming', False
1657
+ )
1658
+ kwargs['_content_type'] = kwargs.get(
1659
+ '_content_type')
1660
+ kwargs['_host_index'] = kwargs.get('_host_index')
1661
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1662
+ return self.get_custom_reports_endpoint.call_with_http_info(**kwargs)
1663
+
1540
1664
  def get_report(
1541
1665
  self,
1542
1666
  report_oid,
@@ -137,7 +137,7 @@ class OrderApi(object):
137
137
  ],
138
138
  'endpoint_path': '/order/orders/{order_id}/refund_block',
139
139
  'operation_id': 'block_refund_on_order',
140
- 'http_method': 'POST',
140
+ 'http_method': 'GET',
141
141
  'servers': None,
142
142
  },
143
143
  params_map={
@@ -1495,103 +1495,6 @@ class OrderApi(object):
1495
1495
  },
1496
1496
  api_client=api_client
1497
1497
  )
1498
- self.refund_order_completely_endpoint = _Endpoint(
1499
- settings={
1500
- 'response_type': (OrderResponse,),
1501
- 'auth': [
1502
- 'ultraCartOauth',
1503
- 'ultraCartSimpleApiKey'
1504
- ],
1505
- 'endpoint_path': '/order/orders/{order_id}/refund_completely',
1506
- 'operation_id': 'refund_order_completely',
1507
- 'http_method': 'PUT',
1508
- 'servers': None,
1509
- },
1510
- params_map={
1511
- 'all': [
1512
- 'order_id',
1513
- 'reject_after_refund',
1514
- 'skip_customer_notification',
1515
- 'auto_order_cancel',
1516
- 'manual_refund',
1517
- 'reverse_affiliate_transactions',
1518
- 'issue_store_credit',
1519
- 'auto_order_cancel_reason',
1520
- 'refund_reason',
1521
- 'reject_reason',
1522
- ],
1523
- 'required': [
1524
- 'order_id',
1525
- ],
1526
- 'nullable': [
1527
- ],
1528
- 'enum': [
1529
- ],
1530
- 'validation': [
1531
- ]
1532
- },
1533
- root_map={
1534
- 'validations': {
1535
- },
1536
- 'allowed_values': {
1537
- },
1538
- 'openapi_types': {
1539
- 'order_id':
1540
- (str,),
1541
- 'reject_after_refund':
1542
- (bool,),
1543
- 'skip_customer_notification':
1544
- (bool,),
1545
- 'auto_order_cancel':
1546
- (bool,),
1547
- 'manual_refund':
1548
- (bool,),
1549
- 'reverse_affiliate_transactions':
1550
- (bool,),
1551
- 'issue_store_credit':
1552
- (bool,),
1553
- 'auto_order_cancel_reason':
1554
- (str,),
1555
- 'refund_reason':
1556
- (str,),
1557
- 'reject_reason':
1558
- (str,),
1559
- },
1560
- 'attribute_map': {
1561
- 'order_id': 'order_id',
1562
- 'reject_after_refund': 'reject_after_refund',
1563
- 'skip_customer_notification': 'skip_customer_notification',
1564
- 'auto_order_cancel': 'auto_order_cancel',
1565
- 'manual_refund': 'manual_refund',
1566
- 'reverse_affiliate_transactions': 'reverse_affiliate_transactions',
1567
- 'issue_store_credit': 'issue_store_credit',
1568
- 'auto_order_cancel_reason': 'auto_order_cancel_reason',
1569
- 'refund_reason': 'refund_reason',
1570
- 'reject_reason': 'reject_reason',
1571
- },
1572
- 'location_map': {
1573
- 'order_id': 'path',
1574
- 'reject_after_refund': 'query',
1575
- 'skip_customer_notification': 'query',
1576
- 'auto_order_cancel': 'query',
1577
- 'manual_refund': 'query',
1578
- 'reverse_affiliate_transactions': 'query',
1579
- 'issue_store_credit': 'query',
1580
- 'auto_order_cancel_reason': 'query',
1581
- 'refund_reason': 'query',
1582
- 'reject_reason': 'query',
1583
- },
1584
- 'collection_format_map': {
1585
- }
1586
- },
1587
- headers_map={
1588
- 'accept': [
1589
- 'application/json'
1590
- ],
1591
- 'content_type': [],
1592
- },
1593
- api_client=api_client
1594
- )
1595
1498
  self.replacement_endpoint = _Endpoint(
1596
1499
  settings={
1597
1500
  'response_type': (OrderReplacementResponse,),
@@ -1764,7 +1667,7 @@ class OrderApi(object):
1764
1667
  ],
1765
1668
  'endpoint_path': '/order/orders/{order_id}/refund_unblock',
1766
1669
  'operation_id': 'unblock_refund_on_order',
1767
- 'http_method': 'POST',
1670
+ 'http_method': 'GET',
1768
1671
  'servers': None,
1769
1672
  },
1770
1673
  params_map={
@@ -3862,98 +3765,6 @@ class OrderApi(object):
3862
3765
  order
3863
3766
  return self.refund_order_endpoint.call_with_http_info(**kwargs)
3864
3767
 
3865
- def refund_order_completely(
3866
- self,
3867
- order_id,
3868
- **kwargs
3869
- ):
3870
- """Refund an order completely # noqa: E501
3871
-
3872
- Perform a refund operation on an order and then update the order if successful. # noqa: E501
3873
- This method makes a synchronous HTTP request by default. To make an
3874
- asynchronous HTTP request, please pass async_req=True
3875
-
3876
- >>> thread = api.refund_order_completely(order_id, async_req=True)
3877
- >>> result = thread.get()
3878
-
3879
- Args:
3880
- order_id (str): The order id to refund.
3881
-
3882
- Keyword Args:
3883
- reject_after_refund (bool): Reject order after refund. [optional] if omitted the server will use the default value of False
3884
- skip_customer_notification (bool): Skip customer email notification. [optional] if omitted the server will use the default value of False
3885
- auto_order_cancel (bool): Cancel associated auto orders. [optional] if omitted the server will use the default value of False
3886
- manual_refund (bool): Consider a manual refund done externally. [optional] if omitted the server will use the default value of False
3887
- reverse_affiliate_transactions (bool): Reverse affiliate transactions. [optional] if omitted the server will use the default value of True
3888
- issue_store_credit (bool): Issue a store credit instead of refunding the original payment method, loyalty must be configured on merchant account. [optional] if omitted the server will use the default value of False
3889
- auto_order_cancel_reason (str): Reason for auto orders cancellation. [optional]
3890
- refund_reason (str): Reason for refund. [optional]
3891
- reject_reason (str): Reason for reject. [optional]
3892
- _return_http_data_only (bool): response data without head status
3893
- code and headers. Default is True.
3894
- _preload_content (bool): if False, the urllib3.HTTPResponse object
3895
- will be returned without reading/decoding response data.
3896
- Default is True.
3897
- _request_timeout (int/float/tuple): timeout setting for this request. If
3898
- one number provided, it will be total request timeout. It can also
3899
- be a pair (tuple) of (connection, read) timeouts.
3900
- Default is None.
3901
- _check_input_type (bool): specifies if type checking
3902
- should be done one the data sent to the server.
3903
- Default is True.
3904
- _check_return_type (bool): specifies if type checking
3905
- should be done one the data received from the server.
3906
- Default is True.
3907
- _spec_property_naming (bool): True if the variable names in the input data
3908
- are serialized names, as specified in the OpenAPI document.
3909
- False if the variable names in the input data
3910
- are pythonic names, e.g. snake case (default)
3911
- _content_type (str/None): force body content-type.
3912
- Default is None and content-type will be predicted by allowed
3913
- content-types and body.
3914
- _host_index (int/None): specifies the index of the server
3915
- that we want to use.
3916
- Default is read from the configuration.
3917
- _request_auths (list): set to override the auth_settings for an a single
3918
- request; this effectively ignores the authentication
3919
- in the spec for a single request.
3920
- Default is None
3921
- async_req (bool): execute request asynchronously
3922
-
3923
- Returns:
3924
- OrderResponse
3925
- If the method is called asynchronously, returns the request
3926
- thread.
3927
- """
3928
- kwargs['async_req'] = kwargs.get(
3929
- 'async_req', False
3930
- )
3931
- kwargs['_return_http_data_only'] = kwargs.get(
3932
- '_return_http_data_only', True
3933
- )
3934
- kwargs['_preload_content'] = kwargs.get(
3935
- '_preload_content', True
3936
- )
3937
- kwargs['_request_timeout'] = kwargs.get(
3938
- '_request_timeout', None
3939
- )
3940
- kwargs['_check_input_type'] = kwargs.get(
3941
- '_check_input_type', True
3942
- )
3943
- kwargs['_check_return_type'] = kwargs.get(
3944
- '_check_return_type', True
3945
- )
3946
- kwargs['_spec_property_naming'] = kwargs.get(
3947
- '_spec_property_naming', False
3948
- )
3949
- kwargs['_content_type'] = kwargs.get(
3950
- '_content_type')
3951
- kwargs['_host_index'] = kwargs.get('_host_index')
3952
- kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3953
- kwargs['order_id'] = \
3954
- order_id
3955
- return self.refund_order_completely_endpoint.call_with_http_info(**kwargs)
3956
-
3957
3768
  def replacement(
3958
3769
  self,
3959
3770
  order_id,
@@ -231,14 +231,6 @@ class WebhookApi(object):
231
231
  params_map={
232
232
  'all': [
233
233
  'webhook_oid',
234
- 'request_id',
235
- 'begin_date',
236
- 'end_date',
237
- 'status',
238
- 'event',
239
- 'order_id',
240
- 'request',
241
- 'duration',
242
234
  'limit',
243
235
  'offset',
244
236
  'since',
@@ -261,22 +253,6 @@ class WebhookApi(object):
261
253
  'openapi_types': {
262
254
  'webhook_oid':
263
255
  (int,),
264
- 'request_id':
265
- (str,),
266
- 'begin_date':
267
- (str,),
268
- 'end_date':
269
- (str,),
270
- 'status':
271
- (str,),
272
- 'event':
273
- (str,),
274
- 'order_id':
275
- (str,),
276
- 'request':
277
- (str,),
278
- 'duration':
279
- (int,),
280
256
  'limit':
281
257
  (int,),
282
258
  'offset':
@@ -286,28 +262,12 @@ class WebhookApi(object):
286
262
  },
287
263
  'attribute_map': {
288
264
  'webhook_oid': 'webhookOid',
289
- 'request_id': 'requestId',
290
- 'begin_date': 'beginDate',
291
- 'end_date': 'endDate',
292
- 'status': 'status',
293
- 'event': 'event',
294
- 'order_id': 'orderId',
295
- 'request': 'request',
296
- 'duration': 'duration',
297
265
  'limit': '_limit',
298
266
  'offset': '_offset',
299
267
  'since': '_since',
300
268
  },
301
269
  'location_map': {
302
270
  'webhook_oid': 'path',
303
- 'request_id': 'query',
304
- 'begin_date': 'query',
305
- 'end_date': 'query',
306
- 'status': 'query',
307
- 'event': 'query',
308
- 'order_id': 'query',
309
- 'request': 'query',
310
- 'duration': 'query',
311
271
  'limit': 'query',
312
272
  'offset': 'query',
313
273
  'since': 'query',
@@ -840,14 +800,6 @@ class WebhookApi(object):
840
800
  webhook_oid (int): The webhook oid to retrieve log summaries for.
841
801
 
842
802
  Keyword Args:
843
- request_id (str): [optional]
844
- begin_date (str): [optional]
845
- end_date (str): [optional]
846
- status (str): [optional]
847
- event (str): [optional]
848
- order_id (str): [optional]
849
- request (str): [optional]
850
- duration (int): [optional]
851
803
  limit (int): The maximum number of records to return on this one API call.. [optional] if omitted the server will use the default value of 100
852
804
  offset (int): Pagination of the record set. Offset is a zero based index.. [optional] if omitted the server will use the default value of 0
853
805
  since (str): Fetch log summaries that have been delivered since this date/time.. [optional]
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.15/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.1.16/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.1.15".\
425
+ "SDK Package Version: 4.1.16".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -0,0 +1,292 @@
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
+ def lazy_import():
34
+ from ultracart.model.custom_report import CustomReport
35
+ from ultracart.model.error import Error
36
+ from ultracart.model.response_metadata import ResponseMetadata
37
+ from ultracart.model.warning import Warning
38
+ globals()['CustomReport'] = CustomReport
39
+ globals()['Error'] = Error
40
+ globals()['ResponseMetadata'] = ResponseMetadata
41
+ globals()['Warning'] = Warning
42
+
43
+
44
+ class CustomReportsResponse(ModelNormal):
45
+ """NOTE: This class is auto generated by OpenAPI Generator.
46
+ Ref: https://openapi-generator.tech
47
+
48
+ Do not edit the class manually.
49
+
50
+ Attributes:
51
+ allowed_values (dict): The key is the tuple path to the attribute
52
+ and the for var_name this is (var_name,). The value is a dict
53
+ with a capitalized key describing the allowed value and an allowed
54
+ value. These dicts store the allowed enum values.
55
+ attribute_map (dict): The key is attribute name
56
+ and the value is json key in definition.
57
+ discriminator_value_class_map (dict): A dict to go from the discriminator
58
+ variable value to the discriminator class name.
59
+ validations (dict): The key is the tuple path to the attribute
60
+ and the for var_name this is (var_name,). The value is a dict
61
+ that stores validations for max_length, min_length, max_items,
62
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
63
+ inclusive_minimum, and regex.
64
+ additional_properties_type (tuple): A tuple of classes accepted
65
+ as additional properties values.
66
+ """
67
+
68
+ allowed_values = {
69
+ }
70
+
71
+ validations = {
72
+ }
73
+
74
+ @cached_property
75
+ def additional_properties_type():
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
+ lazy_import()
81
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
82
+
83
+ _nullable = False
84
+
85
+ @cached_property
86
+ def openapi_types():
87
+ """
88
+ This must be a method because a model may have properties that are
89
+ of type self, this must run after the class is loaded
90
+
91
+ Returns
92
+ openapi_types (dict): The key is attribute name
93
+ and the value is attribute type.
94
+ """
95
+ lazy_import()
96
+ return {
97
+ 'error': (Error,), # noqa: E501
98
+ 'metadata': (ResponseMetadata,), # noqa: E501
99
+ 'reports': ([CustomReport],), # noqa: E501
100
+ 'success': (bool,), # noqa: E501
101
+ 'warning': (Warning,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'error': 'error', # noqa: E501
111
+ 'metadata': 'metadata', # noqa: E501
112
+ 'reports': 'reports', # noqa: E501
113
+ 'success': 'success', # noqa: E501
114
+ 'warning': 'warning', # noqa: E501
115
+ }
116
+
117
+ read_only_vars = {
118
+ }
119
+
120
+ _composed_schemas = {}
121
+
122
+ @classmethod
123
+ @convert_js_args_to_python_args
124
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
125
+ """CustomReportsResponse - a model defined in OpenAPI
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ error (Error): [optional] # noqa: E501
159
+ metadata (ResponseMetadata): [optional] # noqa: E501
160
+ reports ([CustomReport]): reports. [optional] # noqa: E501
161
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
162
+ warning (Warning): [optional] # noqa: E501
163
+ """
164
+
165
+ _check_type = kwargs.pop('_check_type', True)
166
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
167
+ _path_to_item = kwargs.pop('_path_to_item', ())
168
+ _configuration = kwargs.pop('_configuration', None)
169
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
170
+
171
+ self = super(OpenApiModel, cls).__new__(cls)
172
+
173
+ if args:
174
+ for arg in args:
175
+ if isinstance(arg, dict):
176
+ kwargs.update(arg)
177
+ else:
178
+ raise ApiTypeError(
179
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
180
+ args,
181
+ self.__class__.__name__,
182
+ ),
183
+ path_to_item=_path_to_item,
184
+ valid_classes=(self.__class__,),
185
+ )
186
+
187
+ self._data_store = {}
188
+ self._check_type = _check_type
189
+ self._spec_property_naming = _spec_property_naming
190
+ self._path_to_item = _path_to_item
191
+ self._configuration = _configuration
192
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
193
+
194
+ for var_name, var_value in kwargs.items():
195
+ if var_name not in self.attribute_map and \
196
+ self._configuration is not None and \
197
+ self._configuration.discard_unknown_keys and \
198
+ self.additional_properties_type is None:
199
+ # discard variable.
200
+ continue
201
+ setattr(self, var_name, var_value)
202
+ return self
203
+
204
+ required_properties = set([
205
+ '_data_store',
206
+ '_check_type',
207
+ '_spec_property_naming',
208
+ '_path_to_item',
209
+ '_configuration',
210
+ '_visited_composed_classes',
211
+ ])
212
+
213
+ @convert_js_args_to_python_args
214
+ def __init__(self, *args, **kwargs): # noqa: E501
215
+ """CustomReportsResponse - a model defined in OpenAPI
216
+
217
+ Keyword Args:
218
+ _check_type (bool): if True, values for parameters in openapi_types
219
+ will be type checked and a TypeError will be
220
+ raised if the wrong type is input.
221
+ Defaults to True
222
+ _path_to_item (tuple/list): This is a list of keys or values to
223
+ drill down to the model in received_data
224
+ when deserializing a response
225
+ _spec_property_naming (bool): True if the variable names in the input data
226
+ are serialized names, as specified in the OpenAPI document.
227
+ False if the variable names in the input data
228
+ are pythonic names, e.g. snake case (default)
229
+ _configuration (Configuration): the instance to use when
230
+ deserializing a file_type parameter.
231
+ If passed, type conversion is attempted
232
+ If omitted no type conversion is done.
233
+ _visited_composed_classes (tuple): This stores a tuple of
234
+ classes that we have traveled through so that
235
+ if we see that class again we will not use its
236
+ discriminator again.
237
+ When traveling through a discriminator, the
238
+ composed schema that is
239
+ is traveled through is added to this set.
240
+ For example if Animal has a discriminator
241
+ petType and we pass in "Dog", and the class Dog
242
+ allOf includes Animal, we move through Animal
243
+ once using the discriminator, and pick Dog.
244
+ Then in Dog, we will make an instance of the
245
+ Animal class but this time we won't travel
246
+ through its discriminator because we passed in
247
+ _visited_composed_classes = (Animal,)
248
+ error (Error): [optional] # noqa: E501
249
+ metadata (ResponseMetadata): [optional] # noqa: E501
250
+ reports ([CustomReport]): reports. [optional] # noqa: E501
251
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
252
+ warning (Warning): [optional] # noqa: E501
253
+ """
254
+
255
+ _check_type = kwargs.pop('_check_type', True)
256
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
+ _path_to_item = kwargs.pop('_path_to_item', ())
258
+ _configuration = kwargs.pop('_configuration', None)
259
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
+
261
+ if args:
262
+ for arg in args:
263
+ if isinstance(arg, dict):
264
+ kwargs.update(arg)
265
+ else:
266
+ raise ApiTypeError(
267
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
+ args,
269
+ self.__class__.__name__,
270
+ ),
271
+ path_to_item=_path_to_item,
272
+ valid_classes=(self.__class__,),
273
+ )
274
+
275
+ self._data_store = {}
276
+ self._check_type = _check_type
277
+ self._spec_property_naming = _spec_property_naming
278
+ self._path_to_item = _path_to_item
279
+ self._configuration = _configuration
280
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
+
282
+ for var_name, var_value in kwargs.items():
283
+ if var_name not in self.attribute_map and \
284
+ self._configuration is not None and \
285
+ self._configuration.discard_unknown_keys and \
286
+ self.additional_properties_type is None:
287
+ # discard variable.
288
+ continue
289
+ setattr(self, var_name, var_value)
290
+ if var_name in self.read_only_vars:
291
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
+ f"class with read only attributes.")
@@ -323,6 +323,7 @@ from ultracart.model.custom_report_parameter_option import CustomReportParameter
323
323
  from ultracart.model.custom_report_query import CustomReportQuery
324
324
  from ultracart.model.custom_report_response import CustomReportResponse
325
325
  from ultracart.model.custom_report_tooltip import CustomReportTooltip
326
+ from ultracart.model.custom_reports_response import CustomReportsResponse
326
327
  from ultracart.model.customer import Customer
327
328
  from ultracart.model.customer_activity import CustomerActivity
328
329
  from ultracart.model.customer_affiliate import CustomerAffiliate
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.1.15
3
+ Version: 4.1.16
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=J45D5KP9T0rAMtL8_xew6y8Gz_MtFsRz8VYKwNM-hro,698
2
- ultracart/api_client.py,sha256=-Sqfo-z72IlYGNP1DawIbXZLiE6o1VUceZASXdWUe5g,39071
3
- ultracart/configuration.py,sha256=aeTR57qquW4xPuCSnLLwrXQiEJKQ0TvzZZUqShnJIpo,17841
1
+ ultracart/__init__.py,sha256=0P_f967dyix6_ciAezcjJQIxKI0WLqV4BgjhIppINA4,698
2
+ ultracart/api_client.py,sha256=MSLonzqbhCpNwuwJHXt2662QeEoyBNJscmlZnvGU6h0,39071
3
+ ultracart/configuration.py,sha256=BVpSc3SFUY9oz4Z9orZsRO7aoz6D08cDgULc6gVebj4,17841
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
@@ -13,18 +13,18 @@ ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ
13
13
  ultracart/api/conversation_api.py,sha256=deOzEvUmURbCPVHPgGAsascLOt5R5qXrJ4JgjrUCXyU,468220
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
- ultracart/api/datawarehouse_api.py,sha256=M1Tk1VY1Tk2X_6jHBxlW2STslQNg2_wnP51mXyDpi7o,90389
16
+ ultracart/api/datawarehouse_api.py,sha256=1qNqAp7NSGqd1v06Lea_qg4XBOWu7gAL1bc4APyOXv0,95156
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
20
  ultracart/api/item_api.py,sha256=Mig0efruQ_KXKqqATbQAYmynq_Rwj1FcejQd_iq8mlc,134676
21
21
  ultracart/api/oauth_api.py,sha256=ZgwVvUNQybiol1gdS8OjQY60ElUsEPmtFgSSb5Ys5SI,13633
22
- ultracart/api/order_api.py,sha256=inHyX3NFw5TvL6fPzipprNn6FAEuNLAzfcINRdH4uGk,180470
22
+ ultracart/api/order_api.py,sha256=TbypsoBWldwgrEB-kxYXicAKpARLp2iMw3EXiKiMRj0,172011
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=G3dR3EmddQABH5S1LoIJMIczDhoF2YWFQcw7maFg3s0,48476
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
@@ -342,6 +342,7 @@ ultracart/model/custom_report_parameter_option.py,sha256=evtUYP8rkmD8i26e1b-e_0s
342
342
  ultracart/model/custom_report_query.py,sha256=r4CgFzK-Ilx9EAoJl0MHcCrG3aJ7Ba0VfGYB-YJqNZ8,12576
343
343
  ultracart/model/custom_report_response.py,sha256=TJzALSmjMp2mXisUEjbljqw92v8grVhi8anpTFBEhiI,12795
344
344
  ultracart/model/custom_report_tooltip.py,sha256=X68kCck4tsfU2CQbZCKsuJmuIxVCGMUCB1qX3WBZs8Q,11634
345
+ ultracart/model/custom_reports_response.py,sha256=0siuxCxjdqkqbKdQFFE7_hHuXUafAbcepFWj9CQ72bY,12827
345
346
  ultracart/model/customer.py,sha256=4IFDo1fb_WO2b2mXTwFZZ7pXOLPcfsyAgQ6jul3Sr7U,33232
346
347
  ultracart/model/customer_activity.py,sha256=kf557fU6WEsJWIXpMM569JG8D4g3aJIcgsQJejkmyKw,13685
347
348
  ultracart/model/customer_affiliate.py,sha256=yJtbxEcyJzfeU9PZ5jxlk-rfFuixTHMLDqFKBqjpP2Y,12157
@@ -901,9 +902,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
901
902
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
902
903
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
903
904
  ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
904
- ultracart/models/__init__.py,sha256=Xs2RoBH65CGIb1KrMKPcq2LEcNkikVhNIY88tiOWjnA,67520
905
- ultracart_rest_sdk-4.1.15.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
906
- ultracart_rest_sdk-4.1.15.dist-info/METADATA,sha256=vgRHVD6iSloFtVQGjyXLIEK8mdLwgGxae6qL-SGoVME,402
907
- ultracart_rest_sdk-4.1.15.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
908
- ultracart_rest_sdk-4.1.15.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
909
- ultracart_rest_sdk-4.1.15.dist-info/RECORD,,
905
+ ultracart/models/__init__.py,sha256=cd_ymrS6ZUAyDIumeAizxmyOPgzybMdoNMCgwHyysOU,67594
906
+ ultracart_rest_sdk-4.1.16.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
907
+ ultracart_rest_sdk-4.1.16.dist-info/METADATA,sha256=gIl2rBLE0FE72BPb7UZfCnGaU7MiCHn0VjTTw_E4wUw,402
908
+ ultracart_rest_sdk-4.1.16.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
909
+ ultracart_rest_sdk-4.1.16.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
910
+ ultracart_rest_sdk-4.1.16.dist-info/RECORD,,