ultracart-rest-sdk 4.1.15__py3-none-any.whl → 4.1.17__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.
@@ -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,
@@ -65,6 +65,7 @@ from ultracart.model.email_dashboard_activity_response import EmailDashboardActi
65
65
  from ultracart.model.email_dashboard_stats_response import EmailDashboardStatsResponse
66
66
  from ultracart.model.email_domain import EmailDomain
67
67
  from ultracart.model.email_editor_token_response import EmailEditorTokenResponse
68
+ from ultracart.model.email_editor_values_response import EmailEditorValuesResponse
68
69
  from ultracart.model.email_flow import EmailFlow
69
70
  from ultracart.model.email_flow_back_populate_request import EmailFlowBackPopulateRequest
70
71
  from ultracart.model.email_flow_back_populate_response import EmailFlowBackPopulateResponse
@@ -2503,6 +2504,59 @@ class StorefrontApi(object):
2503
2504
  },
2504
2505
  api_client=api_client
2505
2506
  )
2507
+ self.get_email_commseq_editor_values_endpoint = _Endpoint(
2508
+ settings={
2509
+ 'response_type': (EmailEditorValuesResponse,),
2510
+ 'auth': [
2511
+ 'ultraCartBrowserApiKey',
2512
+ 'ultraCartOauth',
2513
+ 'ultraCartSimpleApiKey'
2514
+ ],
2515
+ 'endpoint_path': '/storefront/{storefront_oid}/email/commseqs/editorValues',
2516
+ 'operation_id': 'get_email_commseq_editor_values',
2517
+ 'http_method': 'GET',
2518
+ 'servers': None,
2519
+ },
2520
+ params_map={
2521
+ 'all': [
2522
+ 'storefront_oid',
2523
+ ],
2524
+ 'required': [
2525
+ 'storefront_oid',
2526
+ ],
2527
+ 'nullable': [
2528
+ ],
2529
+ 'enum': [
2530
+ ],
2531
+ 'validation': [
2532
+ ]
2533
+ },
2534
+ root_map={
2535
+ 'validations': {
2536
+ },
2537
+ 'allowed_values': {
2538
+ },
2539
+ 'openapi_types': {
2540
+ 'storefront_oid':
2541
+ (int,),
2542
+ },
2543
+ 'attribute_map': {
2544
+ 'storefront_oid': 'storefront_oid',
2545
+ },
2546
+ 'location_map': {
2547
+ 'storefront_oid': 'path',
2548
+ },
2549
+ 'collection_format_map': {
2550
+ }
2551
+ },
2552
+ headers_map={
2553
+ 'accept': [
2554
+ 'application/json'
2555
+ ],
2556
+ 'content_type': [],
2557
+ },
2558
+ api_client=api_client
2559
+ )
2506
2560
  self.get_email_commseq_email_stats_endpoint = _Endpoint(
2507
2561
  settings={
2508
2562
  'response_type': (EmailStatSummaryResponse,),
@@ -14258,6 +14312,88 @@ class StorefrontApi(object):
14258
14312
  commseq_uuid
14259
14313
  return self.get_email_commseq_endpoint.call_with_http_info(**kwargs)
14260
14314
 
14315
+ def get_email_commseq_editor_values(
14316
+ self,
14317
+ storefront_oid,
14318
+ **kwargs
14319
+ ):
14320
+ """Get email merchant specific editor values # noqa: E501
14321
+
14322
+ This method makes a synchronous HTTP request by default. To make an
14323
+ asynchronous HTTP request, please pass async_req=True
14324
+
14325
+ >>> thread = api.get_email_commseq_editor_values(storefront_oid, async_req=True)
14326
+ >>> result = thread.get()
14327
+
14328
+ Args:
14329
+ storefront_oid (int):
14330
+
14331
+ Keyword Args:
14332
+ _return_http_data_only (bool): response data without head status
14333
+ code and headers. Default is True.
14334
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
14335
+ will be returned without reading/decoding response data.
14336
+ Default is True.
14337
+ _request_timeout (int/float/tuple): timeout setting for this request. If
14338
+ one number provided, it will be total request timeout. It can also
14339
+ be a pair (tuple) of (connection, read) timeouts.
14340
+ Default is None.
14341
+ _check_input_type (bool): specifies if type checking
14342
+ should be done one the data sent to the server.
14343
+ Default is True.
14344
+ _check_return_type (bool): specifies if type checking
14345
+ should be done one the data received from the server.
14346
+ Default is True.
14347
+ _spec_property_naming (bool): True if the variable names in the input data
14348
+ are serialized names, as specified in the OpenAPI document.
14349
+ False if the variable names in the input data
14350
+ are pythonic names, e.g. snake case (default)
14351
+ _content_type (str/None): force body content-type.
14352
+ Default is None and content-type will be predicted by allowed
14353
+ content-types and body.
14354
+ _host_index (int/None): specifies the index of the server
14355
+ that we want to use.
14356
+ Default is read from the configuration.
14357
+ _request_auths (list): set to override the auth_settings for an a single
14358
+ request; this effectively ignores the authentication
14359
+ in the spec for a single request.
14360
+ Default is None
14361
+ async_req (bool): execute request asynchronously
14362
+
14363
+ Returns:
14364
+ EmailEditorValuesResponse
14365
+ If the method is called asynchronously, returns the request
14366
+ thread.
14367
+ """
14368
+ kwargs['async_req'] = kwargs.get(
14369
+ 'async_req', False
14370
+ )
14371
+ kwargs['_return_http_data_only'] = kwargs.get(
14372
+ '_return_http_data_only', True
14373
+ )
14374
+ kwargs['_preload_content'] = kwargs.get(
14375
+ '_preload_content', True
14376
+ )
14377
+ kwargs['_request_timeout'] = kwargs.get(
14378
+ '_request_timeout', None
14379
+ )
14380
+ kwargs['_check_input_type'] = kwargs.get(
14381
+ '_check_input_type', True
14382
+ )
14383
+ kwargs['_check_return_type'] = kwargs.get(
14384
+ '_check_return_type', True
14385
+ )
14386
+ kwargs['_spec_property_naming'] = kwargs.get(
14387
+ '_spec_property_naming', False
14388
+ )
14389
+ kwargs['_content_type'] = kwargs.get(
14390
+ '_content_type')
14391
+ kwargs['_host_index'] = kwargs.get('_host_index')
14392
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
14393
+ kwargs['storefront_oid'] = \
14394
+ storefront_oid
14395
+ return self.get_email_commseq_editor_values_endpoint.call_with_http_info(**kwargs)
14396
+
14261
14397
  def get_email_commseq_email_stats(
14262
14398
  self,
14263
14399
  storefront_oid,
@@ -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.17/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.17".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):