ultracart-rest-sdk 4.1.19__py3-none-any.whl → 4.1.20__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ultracart/__init__.py +1 -1
- ultracart/api/datawarehouse_api.py +585 -0
- ultracart/api_client.py +1 -1
- ultracart/apis/__init__.py +0 -1
- ultracart/configuration.py +1 -1
- ultracart/model/{chargeback_dispute.py → custom_dashboard_schedule.py} +23 -143
- ultracart/model/{chargeback_dispute_response.py → custom_dashboard_schedule_response.py} +9 -9
- ultracart/model/{chargeback_disputes_response.py → custom_dashboard_schedules_response.py} +9 -9
- ultracart/model/custom_report.py +4 -0
- ultracart/model/email_campaign.py +8 -0
- ultracart/model/order_payment.py +2 -0
- ultracart/models/__init__.py +3 -3
- {ultracart_rest_sdk-4.1.19.dist-info → ultracart_rest_sdk-4.1.20.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.19.dist-info → ultracart_rest_sdk-4.1.20.dist-info}/RECORD +17 -18
- ultracart/api/chargeback_api.py +0 -818
- {ultracart_rest_sdk-4.1.19.dist-info → ultracart_rest_sdk-4.1.20.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.19.dist-info → ultracart_rest_sdk-4.1.20.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.19.dist-info → ultracart_rest_sdk-4.1.20.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
|
@@ -24,6 +24,9 @@ from ultracart.model_utils import ( # noqa: F401
|
|
|
24
24
|
)
|
|
25
25
|
from ultracart.model.custom_dashboard import CustomDashboard
|
|
26
26
|
from ultracart.model.custom_dashboard_response import CustomDashboardResponse
|
|
27
|
+
from ultracart.model.custom_dashboard_schedule import CustomDashboardSchedule
|
|
28
|
+
from ultracart.model.custom_dashboard_schedule_response import CustomDashboardScheduleResponse
|
|
29
|
+
from ultracart.model.custom_dashboard_schedules_response import CustomDashboardSchedulesResponse
|
|
27
30
|
from ultracart.model.custom_dashboards_response import CustomDashboardsResponse
|
|
28
31
|
from ultracart.model.custom_report import CustomReport
|
|
29
32
|
from ultracart.model.custom_report_account_config import CustomReportAccountConfig
|
|
@@ -120,6 +123,64 @@ class DatawarehouseApi(object):
|
|
|
120
123
|
},
|
|
121
124
|
api_client=api_client
|
|
122
125
|
)
|
|
126
|
+
self.delete_custom_dashboard_schedule_endpoint = _Endpoint(
|
|
127
|
+
settings={
|
|
128
|
+
'response_type': None,
|
|
129
|
+
'auth': [
|
|
130
|
+
'ultraCartOauth',
|
|
131
|
+
'ultraCartSimpleApiKey'
|
|
132
|
+
],
|
|
133
|
+
'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}',
|
|
134
|
+
'operation_id': 'delete_custom_dashboard_schedule',
|
|
135
|
+
'http_method': 'DELETE',
|
|
136
|
+
'servers': None,
|
|
137
|
+
},
|
|
138
|
+
params_map={
|
|
139
|
+
'all': [
|
|
140
|
+
'custom_dashboard_schedule_oid',
|
|
141
|
+
'custom_dashboard_oid',
|
|
142
|
+
],
|
|
143
|
+
'required': [
|
|
144
|
+
'custom_dashboard_schedule_oid',
|
|
145
|
+
'custom_dashboard_oid',
|
|
146
|
+
],
|
|
147
|
+
'nullable': [
|
|
148
|
+
],
|
|
149
|
+
'enum': [
|
|
150
|
+
],
|
|
151
|
+
'validation': [
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
root_map={
|
|
155
|
+
'validations': {
|
|
156
|
+
},
|
|
157
|
+
'allowed_values': {
|
|
158
|
+
},
|
|
159
|
+
'openapi_types': {
|
|
160
|
+
'custom_dashboard_schedule_oid':
|
|
161
|
+
(int,),
|
|
162
|
+
'custom_dashboard_oid':
|
|
163
|
+
(int,),
|
|
164
|
+
},
|
|
165
|
+
'attribute_map': {
|
|
166
|
+
'custom_dashboard_schedule_oid': 'custom_dashboard_schedule_oid',
|
|
167
|
+
'custom_dashboard_oid': 'custom_dashboard_oid',
|
|
168
|
+
},
|
|
169
|
+
'location_map': {
|
|
170
|
+
'custom_dashboard_schedule_oid': 'path',
|
|
171
|
+
'custom_dashboard_oid': 'path',
|
|
172
|
+
},
|
|
173
|
+
'collection_format_map': {
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
headers_map={
|
|
177
|
+
'accept': [
|
|
178
|
+
'application/json'
|
|
179
|
+
],
|
|
180
|
+
'content_type': [],
|
|
181
|
+
},
|
|
182
|
+
api_client=api_client
|
|
183
|
+
)
|
|
123
184
|
self.delete_custom_report_endpoint = _Endpoint(
|
|
124
185
|
settings={
|
|
125
186
|
'response_type': None,
|
|
@@ -494,6 +555,58 @@ class DatawarehouseApi(object):
|
|
|
494
555
|
},
|
|
495
556
|
api_client=api_client
|
|
496
557
|
)
|
|
558
|
+
self.get_custom_dashboard_schedules_endpoint = _Endpoint(
|
|
559
|
+
settings={
|
|
560
|
+
'response_type': (CustomDashboardSchedulesResponse,),
|
|
561
|
+
'auth': [
|
|
562
|
+
'ultraCartOauth',
|
|
563
|
+
'ultraCartSimpleApiKey'
|
|
564
|
+
],
|
|
565
|
+
'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules',
|
|
566
|
+
'operation_id': 'get_custom_dashboard_schedules',
|
|
567
|
+
'http_method': 'GET',
|
|
568
|
+
'servers': None,
|
|
569
|
+
},
|
|
570
|
+
params_map={
|
|
571
|
+
'all': [
|
|
572
|
+
'custom_dashboard_oid',
|
|
573
|
+
],
|
|
574
|
+
'required': [
|
|
575
|
+
'custom_dashboard_oid',
|
|
576
|
+
],
|
|
577
|
+
'nullable': [
|
|
578
|
+
],
|
|
579
|
+
'enum': [
|
|
580
|
+
],
|
|
581
|
+
'validation': [
|
|
582
|
+
]
|
|
583
|
+
},
|
|
584
|
+
root_map={
|
|
585
|
+
'validations': {
|
|
586
|
+
},
|
|
587
|
+
'allowed_values': {
|
|
588
|
+
},
|
|
589
|
+
'openapi_types': {
|
|
590
|
+
'custom_dashboard_oid':
|
|
591
|
+
(int,),
|
|
592
|
+
},
|
|
593
|
+
'attribute_map': {
|
|
594
|
+
'custom_dashboard_oid': 'custom_dashboard_oid',
|
|
595
|
+
},
|
|
596
|
+
'location_map': {
|
|
597
|
+
'custom_dashboard_oid': 'path',
|
|
598
|
+
},
|
|
599
|
+
'collection_format_map': {
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
headers_map={
|
|
603
|
+
'accept': [
|
|
604
|
+
'application/json'
|
|
605
|
+
],
|
|
606
|
+
'content_type': [],
|
|
607
|
+
},
|
|
608
|
+
api_client=api_client
|
|
609
|
+
)
|
|
497
610
|
self.get_custom_dashboards_endpoint = _Endpoint(
|
|
498
611
|
settings={
|
|
499
612
|
'response_type': (CustomDashboardsResponse,),
|
|
@@ -986,6 +1099,65 @@ class DatawarehouseApi(object):
|
|
|
986
1099
|
},
|
|
987
1100
|
api_client=api_client
|
|
988
1101
|
)
|
|
1102
|
+
self.insert_custom_dashboard_schedule_endpoint = _Endpoint(
|
|
1103
|
+
settings={
|
|
1104
|
+
'response_type': (CustomDashboardScheduleResponse,),
|
|
1105
|
+
'auth': [
|
|
1106
|
+
'ultraCartOauth',
|
|
1107
|
+
'ultraCartSimpleApiKey'
|
|
1108
|
+
],
|
|
1109
|
+
'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules',
|
|
1110
|
+
'operation_id': 'insert_custom_dashboard_schedule',
|
|
1111
|
+
'http_method': 'POST',
|
|
1112
|
+
'servers': None,
|
|
1113
|
+
},
|
|
1114
|
+
params_map={
|
|
1115
|
+
'all': [
|
|
1116
|
+
'custom_dashboard_oid',
|
|
1117
|
+
'dashboard_schedule',
|
|
1118
|
+
],
|
|
1119
|
+
'required': [
|
|
1120
|
+
'custom_dashboard_oid',
|
|
1121
|
+
'dashboard_schedule',
|
|
1122
|
+
],
|
|
1123
|
+
'nullable': [
|
|
1124
|
+
],
|
|
1125
|
+
'enum': [
|
|
1126
|
+
],
|
|
1127
|
+
'validation': [
|
|
1128
|
+
]
|
|
1129
|
+
},
|
|
1130
|
+
root_map={
|
|
1131
|
+
'validations': {
|
|
1132
|
+
},
|
|
1133
|
+
'allowed_values': {
|
|
1134
|
+
},
|
|
1135
|
+
'openapi_types': {
|
|
1136
|
+
'custom_dashboard_oid':
|
|
1137
|
+
(int,),
|
|
1138
|
+
'dashboard_schedule':
|
|
1139
|
+
(CustomDashboardSchedule,),
|
|
1140
|
+
},
|
|
1141
|
+
'attribute_map': {
|
|
1142
|
+
'custom_dashboard_oid': 'custom_dashboard_oid',
|
|
1143
|
+
},
|
|
1144
|
+
'location_map': {
|
|
1145
|
+
'custom_dashboard_oid': 'path',
|
|
1146
|
+
'dashboard_schedule': 'body',
|
|
1147
|
+
},
|
|
1148
|
+
'collection_format_map': {
|
|
1149
|
+
}
|
|
1150
|
+
},
|
|
1151
|
+
headers_map={
|
|
1152
|
+
'accept': [
|
|
1153
|
+
'application/json'
|
|
1154
|
+
],
|
|
1155
|
+
'content_type': [
|
|
1156
|
+
'application/json; charset=UTF-8'
|
|
1157
|
+
]
|
|
1158
|
+
},
|
|
1159
|
+
api_client=api_client
|
|
1160
|
+
)
|
|
989
1161
|
self.insert_custom_report_endpoint = _Endpoint(
|
|
990
1162
|
settings={
|
|
991
1163
|
'response_type': (CustomReportResponse,),
|
|
@@ -1151,6 +1323,71 @@ class DatawarehouseApi(object):
|
|
|
1151
1323
|
},
|
|
1152
1324
|
api_client=api_client
|
|
1153
1325
|
)
|
|
1326
|
+
self.update_custom_dashboard_schedule_endpoint = _Endpoint(
|
|
1327
|
+
settings={
|
|
1328
|
+
'response_type': (CustomDashboardResponse,),
|
|
1329
|
+
'auth': [
|
|
1330
|
+
'ultraCartOauth',
|
|
1331
|
+
'ultraCartSimpleApiKey'
|
|
1332
|
+
],
|
|
1333
|
+
'endpoint_path': '/datawarehouse/custom_dashboards/{custom_dashboard_oid}/schedules/{custom_dashboard_schedule_oid}',
|
|
1334
|
+
'operation_id': 'update_custom_dashboard_schedule',
|
|
1335
|
+
'http_method': 'PUT',
|
|
1336
|
+
'servers': None,
|
|
1337
|
+
},
|
|
1338
|
+
params_map={
|
|
1339
|
+
'all': [
|
|
1340
|
+
'custom_dashboard_schedule_oid',
|
|
1341
|
+
'custom_dashboard_oid',
|
|
1342
|
+
'dashboard_schedule',
|
|
1343
|
+
],
|
|
1344
|
+
'required': [
|
|
1345
|
+
'custom_dashboard_schedule_oid',
|
|
1346
|
+
'custom_dashboard_oid',
|
|
1347
|
+
'dashboard_schedule',
|
|
1348
|
+
],
|
|
1349
|
+
'nullable': [
|
|
1350
|
+
],
|
|
1351
|
+
'enum': [
|
|
1352
|
+
],
|
|
1353
|
+
'validation': [
|
|
1354
|
+
]
|
|
1355
|
+
},
|
|
1356
|
+
root_map={
|
|
1357
|
+
'validations': {
|
|
1358
|
+
},
|
|
1359
|
+
'allowed_values': {
|
|
1360
|
+
},
|
|
1361
|
+
'openapi_types': {
|
|
1362
|
+
'custom_dashboard_schedule_oid':
|
|
1363
|
+
(int,),
|
|
1364
|
+
'custom_dashboard_oid':
|
|
1365
|
+
(int,),
|
|
1366
|
+
'dashboard_schedule':
|
|
1367
|
+
(CustomDashboardSchedule,),
|
|
1368
|
+
},
|
|
1369
|
+
'attribute_map': {
|
|
1370
|
+
'custom_dashboard_schedule_oid': 'custom_dashboard_schedule_oid',
|
|
1371
|
+
'custom_dashboard_oid': 'custom_dashboard_oid',
|
|
1372
|
+
},
|
|
1373
|
+
'location_map': {
|
|
1374
|
+
'custom_dashboard_schedule_oid': 'path',
|
|
1375
|
+
'custom_dashboard_oid': 'path',
|
|
1376
|
+
'dashboard_schedule': 'body',
|
|
1377
|
+
},
|
|
1378
|
+
'collection_format_map': {
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
headers_map={
|
|
1382
|
+
'accept': [
|
|
1383
|
+
'application/json'
|
|
1384
|
+
],
|
|
1385
|
+
'content_type': [
|
|
1386
|
+
'application/json; charset=UTF-8'
|
|
1387
|
+
]
|
|
1388
|
+
},
|
|
1389
|
+
api_client=api_client
|
|
1390
|
+
)
|
|
1154
1391
|
self.update_custom_report_endpoint = _Endpoint(
|
|
1155
1392
|
settings={
|
|
1156
1393
|
'response_type': (CustomReportResponse,),
|
|
@@ -1406,6 +1643,93 @@ class DatawarehouseApi(object):
|
|
|
1406
1643
|
custom_dashboard_oid
|
|
1407
1644
|
return self.delete_custom_dashboard_endpoint.call_with_http_info(**kwargs)
|
|
1408
1645
|
|
|
1646
|
+
def delete_custom_dashboard_schedule(
|
|
1647
|
+
self,
|
|
1648
|
+
custom_dashboard_schedule_oid,
|
|
1649
|
+
custom_dashboard_oid,
|
|
1650
|
+
**kwargs
|
|
1651
|
+
):
|
|
1652
|
+
"""Delete a custom dashboard schedule # noqa: E501
|
|
1653
|
+
|
|
1654
|
+
delete a custom dashboard schedule on the UltraCart account. # noqa: E501
|
|
1655
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1656
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1657
|
+
|
|
1658
|
+
>>> thread = api.delete_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid, async_req=True)
|
|
1659
|
+
>>> result = thread.get()
|
|
1660
|
+
|
|
1661
|
+
Args:
|
|
1662
|
+
custom_dashboard_schedule_oid (int): The dashboard schedule oid to delete.
|
|
1663
|
+
custom_dashboard_oid (int): The dashboard oid that owns the schedule.
|
|
1664
|
+
|
|
1665
|
+
Keyword Args:
|
|
1666
|
+
_return_http_data_only (bool): response data without head status
|
|
1667
|
+
code and headers. Default is True.
|
|
1668
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1669
|
+
will be returned without reading/decoding response data.
|
|
1670
|
+
Default is True.
|
|
1671
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1672
|
+
one number provided, it will be total request timeout. It can also
|
|
1673
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1674
|
+
Default is None.
|
|
1675
|
+
_check_input_type (bool): specifies if type checking
|
|
1676
|
+
should be done one the data sent to the server.
|
|
1677
|
+
Default is True.
|
|
1678
|
+
_check_return_type (bool): specifies if type checking
|
|
1679
|
+
should be done one the data received from the server.
|
|
1680
|
+
Default is True.
|
|
1681
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1682
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1683
|
+
False if the variable names in the input data
|
|
1684
|
+
are pythonic names, e.g. snake case (default)
|
|
1685
|
+
_content_type (str/None): force body content-type.
|
|
1686
|
+
Default is None and content-type will be predicted by allowed
|
|
1687
|
+
content-types and body.
|
|
1688
|
+
_host_index (int/None): specifies the index of the server
|
|
1689
|
+
that we want to use.
|
|
1690
|
+
Default is read from the configuration.
|
|
1691
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1692
|
+
request; this effectively ignores the authentication
|
|
1693
|
+
in the spec for a single request.
|
|
1694
|
+
Default is None
|
|
1695
|
+
async_req (bool): execute request asynchronously
|
|
1696
|
+
|
|
1697
|
+
Returns:
|
|
1698
|
+
None
|
|
1699
|
+
If the method is called asynchronously, returns the request
|
|
1700
|
+
thread.
|
|
1701
|
+
"""
|
|
1702
|
+
kwargs['async_req'] = kwargs.get(
|
|
1703
|
+
'async_req', False
|
|
1704
|
+
)
|
|
1705
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1706
|
+
'_return_http_data_only', True
|
|
1707
|
+
)
|
|
1708
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1709
|
+
'_preload_content', True
|
|
1710
|
+
)
|
|
1711
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1712
|
+
'_request_timeout', None
|
|
1713
|
+
)
|
|
1714
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1715
|
+
'_check_input_type', True
|
|
1716
|
+
)
|
|
1717
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1718
|
+
'_check_return_type', True
|
|
1719
|
+
)
|
|
1720
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1721
|
+
'_spec_property_naming', False
|
|
1722
|
+
)
|
|
1723
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1724
|
+
'_content_type')
|
|
1725
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1726
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1727
|
+
kwargs['custom_dashboard_schedule_oid'] = \
|
|
1728
|
+
custom_dashboard_schedule_oid
|
|
1729
|
+
kwargs['custom_dashboard_oid'] = \
|
|
1730
|
+
custom_dashboard_oid
|
|
1731
|
+
return self.delete_custom_dashboard_schedule_endpoint.call_with_http_info(**kwargs)
|
|
1732
|
+
|
|
1409
1733
|
def delete_custom_report(
|
|
1410
1734
|
self,
|
|
1411
1735
|
custom_report_oid,
|
|
@@ -1991,6 +2315,89 @@ class DatawarehouseApi(object):
|
|
|
1991
2315
|
custom_dashboard_oid
|
|
1992
2316
|
return self.get_custom_dashboard_endpoint.call_with_http_info(**kwargs)
|
|
1993
2317
|
|
|
2318
|
+
def get_custom_dashboard_schedules(
|
|
2319
|
+
self,
|
|
2320
|
+
custom_dashboard_oid,
|
|
2321
|
+
**kwargs
|
|
2322
|
+
):
|
|
2323
|
+
"""Get custom dashboards # noqa: E501
|
|
2324
|
+
|
|
2325
|
+
Retrieve a custom dashboards # noqa: E501
|
|
2326
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
2327
|
+
asynchronous HTTP request, please pass async_req=True
|
|
2328
|
+
|
|
2329
|
+
>>> thread = api.get_custom_dashboard_schedules(custom_dashboard_oid, async_req=True)
|
|
2330
|
+
>>> result = thread.get()
|
|
2331
|
+
|
|
2332
|
+
Args:
|
|
2333
|
+
custom_dashboard_oid (int):
|
|
2334
|
+
|
|
2335
|
+
Keyword Args:
|
|
2336
|
+
_return_http_data_only (bool): response data without head status
|
|
2337
|
+
code and headers. Default is True.
|
|
2338
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
2339
|
+
will be returned without reading/decoding response data.
|
|
2340
|
+
Default is True.
|
|
2341
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
2342
|
+
one number provided, it will be total request timeout. It can also
|
|
2343
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
2344
|
+
Default is None.
|
|
2345
|
+
_check_input_type (bool): specifies if type checking
|
|
2346
|
+
should be done one the data sent to the server.
|
|
2347
|
+
Default is True.
|
|
2348
|
+
_check_return_type (bool): specifies if type checking
|
|
2349
|
+
should be done one the data received from the server.
|
|
2350
|
+
Default is True.
|
|
2351
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
2352
|
+
are serialized names, as specified in the OpenAPI document.
|
|
2353
|
+
False if the variable names in the input data
|
|
2354
|
+
are pythonic names, e.g. snake case (default)
|
|
2355
|
+
_content_type (str/None): force body content-type.
|
|
2356
|
+
Default is None and content-type will be predicted by allowed
|
|
2357
|
+
content-types and body.
|
|
2358
|
+
_host_index (int/None): specifies the index of the server
|
|
2359
|
+
that we want to use.
|
|
2360
|
+
Default is read from the configuration.
|
|
2361
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
2362
|
+
request; this effectively ignores the authentication
|
|
2363
|
+
in the spec for a single request.
|
|
2364
|
+
Default is None
|
|
2365
|
+
async_req (bool): execute request asynchronously
|
|
2366
|
+
|
|
2367
|
+
Returns:
|
|
2368
|
+
CustomDashboardSchedulesResponse
|
|
2369
|
+
If the method is called asynchronously, returns the request
|
|
2370
|
+
thread.
|
|
2371
|
+
"""
|
|
2372
|
+
kwargs['async_req'] = kwargs.get(
|
|
2373
|
+
'async_req', False
|
|
2374
|
+
)
|
|
2375
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
2376
|
+
'_return_http_data_only', True
|
|
2377
|
+
)
|
|
2378
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
2379
|
+
'_preload_content', True
|
|
2380
|
+
)
|
|
2381
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
2382
|
+
'_request_timeout', None
|
|
2383
|
+
)
|
|
2384
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
2385
|
+
'_check_input_type', True
|
|
2386
|
+
)
|
|
2387
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
2388
|
+
'_check_return_type', True
|
|
2389
|
+
)
|
|
2390
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
2391
|
+
'_spec_property_naming', False
|
|
2392
|
+
)
|
|
2393
|
+
kwargs['_content_type'] = kwargs.get(
|
|
2394
|
+
'_content_type')
|
|
2395
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
2396
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
2397
|
+
kwargs['custom_dashboard_oid'] = \
|
|
2398
|
+
custom_dashboard_oid
|
|
2399
|
+
return self.get_custom_dashboard_schedules_endpoint.call_with_http_info(**kwargs)
|
|
2400
|
+
|
|
1994
2401
|
def get_custom_dashboards(
|
|
1995
2402
|
self,
|
|
1996
2403
|
**kwargs
|
|
@@ -2800,6 +3207,93 @@ class DatawarehouseApi(object):
|
|
|
2800
3207
|
dashboard
|
|
2801
3208
|
return self.insert_custom_dashboard_endpoint.call_with_http_info(**kwargs)
|
|
2802
3209
|
|
|
3210
|
+
def insert_custom_dashboard_schedule(
|
|
3211
|
+
self,
|
|
3212
|
+
custom_dashboard_oid,
|
|
3213
|
+
dashboard_schedule,
|
|
3214
|
+
**kwargs
|
|
3215
|
+
):
|
|
3216
|
+
"""Create a custom dashboard schedule # noqa: E501
|
|
3217
|
+
|
|
3218
|
+
Create a new custom dashboard schedule on the UltraCart account. # noqa: E501
|
|
3219
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3220
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3221
|
+
|
|
3222
|
+
>>> thread = api.insert_custom_dashboard_schedule(custom_dashboard_oid, dashboard_schedule, async_req=True)
|
|
3223
|
+
>>> result = thread.get()
|
|
3224
|
+
|
|
3225
|
+
Args:
|
|
3226
|
+
custom_dashboard_oid (int):
|
|
3227
|
+
dashboard_schedule (CustomDashboardSchedule): Dashboard schedule to create
|
|
3228
|
+
|
|
3229
|
+
Keyword Args:
|
|
3230
|
+
_return_http_data_only (bool): response data without head status
|
|
3231
|
+
code and headers. Default is True.
|
|
3232
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
3233
|
+
will be returned without reading/decoding response data.
|
|
3234
|
+
Default is True.
|
|
3235
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
3236
|
+
one number provided, it will be total request timeout. It can also
|
|
3237
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
3238
|
+
Default is None.
|
|
3239
|
+
_check_input_type (bool): specifies if type checking
|
|
3240
|
+
should be done one the data sent to the server.
|
|
3241
|
+
Default is True.
|
|
3242
|
+
_check_return_type (bool): specifies if type checking
|
|
3243
|
+
should be done one the data received from the server.
|
|
3244
|
+
Default is True.
|
|
3245
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
3246
|
+
are serialized names, as specified in the OpenAPI document.
|
|
3247
|
+
False if the variable names in the input data
|
|
3248
|
+
are pythonic names, e.g. snake case (default)
|
|
3249
|
+
_content_type (str/None): force body content-type.
|
|
3250
|
+
Default is None and content-type will be predicted by allowed
|
|
3251
|
+
content-types and body.
|
|
3252
|
+
_host_index (int/None): specifies the index of the server
|
|
3253
|
+
that we want to use.
|
|
3254
|
+
Default is read from the configuration.
|
|
3255
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
3256
|
+
request; this effectively ignores the authentication
|
|
3257
|
+
in the spec for a single request.
|
|
3258
|
+
Default is None
|
|
3259
|
+
async_req (bool): execute request asynchronously
|
|
3260
|
+
|
|
3261
|
+
Returns:
|
|
3262
|
+
CustomDashboardScheduleResponse
|
|
3263
|
+
If the method is called asynchronously, returns the request
|
|
3264
|
+
thread.
|
|
3265
|
+
"""
|
|
3266
|
+
kwargs['async_req'] = kwargs.get(
|
|
3267
|
+
'async_req', False
|
|
3268
|
+
)
|
|
3269
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
3270
|
+
'_return_http_data_only', True
|
|
3271
|
+
)
|
|
3272
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
3273
|
+
'_preload_content', True
|
|
3274
|
+
)
|
|
3275
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
3276
|
+
'_request_timeout', None
|
|
3277
|
+
)
|
|
3278
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
3279
|
+
'_check_input_type', True
|
|
3280
|
+
)
|
|
3281
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
3282
|
+
'_check_return_type', True
|
|
3283
|
+
)
|
|
3284
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
3285
|
+
'_spec_property_naming', False
|
|
3286
|
+
)
|
|
3287
|
+
kwargs['_content_type'] = kwargs.get(
|
|
3288
|
+
'_content_type')
|
|
3289
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
3290
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
3291
|
+
kwargs['custom_dashboard_oid'] = \
|
|
3292
|
+
custom_dashboard_oid
|
|
3293
|
+
kwargs['dashboard_schedule'] = \
|
|
3294
|
+
dashboard_schedule
|
|
3295
|
+
return self.insert_custom_dashboard_schedule_endpoint.call_with_http_info(**kwargs)
|
|
3296
|
+
|
|
2803
3297
|
def insert_custom_report(
|
|
2804
3298
|
self,
|
|
2805
3299
|
report,
|
|
@@ -3053,6 +3547,97 @@ class DatawarehouseApi(object):
|
|
|
3053
3547
|
dashboard
|
|
3054
3548
|
return self.update_custom_dashboard_endpoint.call_with_http_info(**kwargs)
|
|
3055
3549
|
|
|
3550
|
+
def update_custom_dashboard_schedule(
|
|
3551
|
+
self,
|
|
3552
|
+
custom_dashboard_schedule_oid,
|
|
3553
|
+
custom_dashboard_oid,
|
|
3554
|
+
dashboard_schedule,
|
|
3555
|
+
**kwargs
|
|
3556
|
+
):
|
|
3557
|
+
"""Update a custom dashboard schedule # noqa: E501
|
|
3558
|
+
|
|
3559
|
+
Update a custom dashboard schedule on the UltraCart account. # noqa: E501
|
|
3560
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3561
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3562
|
+
|
|
3563
|
+
>>> thread = api.update_custom_dashboard_schedule(custom_dashboard_schedule_oid, custom_dashboard_oid, dashboard_schedule, async_req=True)
|
|
3564
|
+
>>> result = thread.get()
|
|
3565
|
+
|
|
3566
|
+
Args:
|
|
3567
|
+
custom_dashboard_schedule_oid (int): The dashboard schedule oid to update.
|
|
3568
|
+
custom_dashboard_oid (int): The dashboard oid to update.
|
|
3569
|
+
dashboard_schedule (CustomDashboardSchedule): Dashboard schedule to update
|
|
3570
|
+
|
|
3571
|
+
Keyword Args:
|
|
3572
|
+
_return_http_data_only (bool): response data without head status
|
|
3573
|
+
code and headers. Default is True.
|
|
3574
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
3575
|
+
will be returned without reading/decoding response data.
|
|
3576
|
+
Default is True.
|
|
3577
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
3578
|
+
one number provided, it will be total request timeout. It can also
|
|
3579
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
3580
|
+
Default is None.
|
|
3581
|
+
_check_input_type (bool): specifies if type checking
|
|
3582
|
+
should be done one the data sent to the server.
|
|
3583
|
+
Default is True.
|
|
3584
|
+
_check_return_type (bool): specifies if type checking
|
|
3585
|
+
should be done one the data received from the server.
|
|
3586
|
+
Default is True.
|
|
3587
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
3588
|
+
are serialized names, as specified in the OpenAPI document.
|
|
3589
|
+
False if the variable names in the input data
|
|
3590
|
+
are pythonic names, e.g. snake case (default)
|
|
3591
|
+
_content_type (str/None): force body content-type.
|
|
3592
|
+
Default is None and content-type will be predicted by allowed
|
|
3593
|
+
content-types and body.
|
|
3594
|
+
_host_index (int/None): specifies the index of the server
|
|
3595
|
+
that we want to use.
|
|
3596
|
+
Default is read from the configuration.
|
|
3597
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
3598
|
+
request; this effectively ignores the authentication
|
|
3599
|
+
in the spec for a single request.
|
|
3600
|
+
Default is None
|
|
3601
|
+
async_req (bool): execute request asynchronously
|
|
3602
|
+
|
|
3603
|
+
Returns:
|
|
3604
|
+
CustomDashboardResponse
|
|
3605
|
+
If the method is called asynchronously, returns the request
|
|
3606
|
+
thread.
|
|
3607
|
+
"""
|
|
3608
|
+
kwargs['async_req'] = kwargs.get(
|
|
3609
|
+
'async_req', False
|
|
3610
|
+
)
|
|
3611
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
3612
|
+
'_return_http_data_only', True
|
|
3613
|
+
)
|
|
3614
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
3615
|
+
'_preload_content', True
|
|
3616
|
+
)
|
|
3617
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
3618
|
+
'_request_timeout', None
|
|
3619
|
+
)
|
|
3620
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
3621
|
+
'_check_input_type', True
|
|
3622
|
+
)
|
|
3623
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
3624
|
+
'_check_return_type', True
|
|
3625
|
+
)
|
|
3626
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
3627
|
+
'_spec_property_naming', False
|
|
3628
|
+
)
|
|
3629
|
+
kwargs['_content_type'] = kwargs.get(
|
|
3630
|
+
'_content_type')
|
|
3631
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
3632
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
3633
|
+
kwargs['custom_dashboard_schedule_oid'] = \
|
|
3634
|
+
custom_dashboard_schedule_oid
|
|
3635
|
+
kwargs['custom_dashboard_oid'] = \
|
|
3636
|
+
custom_dashboard_oid
|
|
3637
|
+
kwargs['dashboard_schedule'] = \
|
|
3638
|
+
dashboard_schedule
|
|
3639
|
+
return self.update_custom_dashboard_schedule_endpoint.call_with_http_info(**kwargs)
|
|
3640
|
+
|
|
3056
3641
|
def update_custom_report(
|
|
3057
3642
|
self,
|
|
3058
3643
|
custom_report_oid,
|
ultracart/api_client.py
CHANGED
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
|
77
77
|
self.default_headers[header_name] = header_value
|
|
78
78
|
self.cookie = cookie
|
|
79
79
|
# Set default User-Agent.
|
|
80
|
-
self.user_agent = 'OpenAPI-Generator/4.1.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.1.20/python'
|
|
81
81
|
|
|
82
82
|
def __enter__(self):
|
|
83
83
|
return self
|
ultracart/apis/__init__.py
CHANGED
|
@@ -17,7 +17,6 @@
|
|
|
17
17
|
from ultracart.api.affiliate_api import AffiliateApi
|
|
18
18
|
from ultracart.api.auto_order_api import AutoOrderApi
|
|
19
19
|
from ultracart.api.channel_partner_api import ChannelPartnerApi
|
|
20
|
-
from ultracart.api.chargeback_api import ChargebackApi
|
|
21
20
|
from ultracart.api.checkout_api import CheckoutApi
|
|
22
21
|
from ultracart.api.conversation_api import ConversationApi
|
|
23
22
|
from ultracart.api.coupon_api import CouponApi
|
ultracart/configuration.py
CHANGED
|
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
|
|
|
422
422
|
"OS: {env}\n"\
|
|
423
423
|
"Python Version: {pyversion}\n"\
|
|
424
424
|
"Version of the API: 2.0.0\n"\
|
|
425
|
-
"SDK Package Version: 4.1.
|
|
425
|
+
"SDK Package Version: 4.1.20".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|