ultracart-rest-sdk 4.1.13__py3-none-any.whl → 4.1.15__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.
@@ -128,6 +128,63 @@ class OrderApi(object):
128
128
  },
129
129
  api_client=api_client
130
130
  )
131
+ self.block_refund_on_order_endpoint = _Endpoint(
132
+ settings={
133
+ 'response_type': None,
134
+ 'auth': [
135
+ 'ultraCartOauth',
136
+ 'ultraCartSimpleApiKey'
137
+ ],
138
+ 'endpoint_path': '/order/orders/{order_id}/refund_block',
139
+ 'operation_id': 'block_refund_on_order',
140
+ 'http_method': 'POST',
141
+ 'servers': None,
142
+ },
143
+ params_map={
144
+ 'all': [
145
+ 'order_id',
146
+ 'block_reason',
147
+ ],
148
+ 'required': [
149
+ 'order_id',
150
+ ],
151
+ 'nullable': [
152
+ ],
153
+ 'enum': [
154
+ ],
155
+ 'validation': [
156
+ ]
157
+ },
158
+ root_map={
159
+ 'validations': {
160
+ },
161
+ 'allowed_values': {
162
+ },
163
+ 'openapi_types': {
164
+ 'order_id':
165
+ (str,),
166
+ 'block_reason':
167
+ (str,),
168
+ },
169
+ 'attribute_map': {
170
+ 'order_id': 'order_id',
171
+ 'block_reason': 'block_reason',
172
+ },
173
+ 'location_map': {
174
+ 'order_id': 'path',
175
+ 'block_reason': 'query',
176
+ },
177
+ 'collection_format_map': {
178
+ }
179
+ },
180
+ headers_map={
181
+ 'accept': [
182
+ 'application/json'
183
+ ],
184
+ 'content_type': [],
185
+ },
186
+ api_client=api_client
187
+ )
131
188
  self.cancel_order_endpoint = _Endpoint(
132
189
  settings={
133
190
  'response_type': (BaseResponse,),
@@ -1698,6 +1755,58 @@ class OrderApi(object):
1698
1755
  },
1699
1756
  api_client=api_client
1700
1757
  )
1758
+ self.unblock_refund_on_order_endpoint = _Endpoint(
1759
+ settings={
1760
+ 'response_type': None,
1761
+ 'auth': [
1762
+ 'ultraCartOauth',
1763
+ 'ultraCartSimpleApiKey'
1764
+ ],
1765
+ 'endpoint_path': '/order/orders/{order_id}/refund_unblock',
1766
+ 'operation_id': 'unblock_refund_on_order',
1767
+ 'http_method': 'POST',
1768
+ 'servers': None,
1769
+ },
1770
+ params_map={
1771
+ 'all': [
1772
+ 'order_id',
1773
+ ],
1774
+ 'required': [
1775
+ 'order_id',
1776
+ ],
1777
+ 'nullable': [
1778
+ ],
1779
+ 'enum': [
1780
+ ],
1781
+ 'validation': [
1782
+ ]
1783
+ },
1784
+ root_map={
1785
+ 'validations': {
1786
+ },
1787
+ 'allowed_values': {
1788
+ },
1789
+ 'openapi_types': {
1790
+ 'order_id':
1791
+ (str,),
1792
+ },
1793
+ 'attribute_map': {
1794
+ 'order_id': 'order_id',
1795
+ },
1796
+ 'location_map': {
1797
+ 'order_id': 'path',
1798
+ },
1799
+ 'collection_format_map': {
1800
+ }
1801
+ },
1802
+ headers_map={
1803
+ 'accept': [
1804
+ 'application/json'
1805
+ ],
1806
+ 'content_type': [],
1807
+ },
1808
+ api_client=api_client
1809
+ )
1701
1810
  self.update_accounts_receivable_retry_config_endpoint = _Endpoint(
1702
1811
  settings={
1703
1812
  'response_type': (BaseResponse,),
@@ -1956,6 +2065,90 @@ class OrderApi(object):
1956
2065
  desired_total
1957
2066
  return self.adjust_order_total_endpoint.call_with_http_info(**kwargs)
1958
2067
 
2068
+ def block_refund_on_order(
2069
+ self,
2070
+ order_id,
2071
+ **kwargs
2072
+ ):
2073
+ """Set a refund block on an order # noqa: E501
2074
+
2075
+ Sets a refund block on an order to prevent a user from performing a refund. Commonly used when a chargeback has been received. # noqa: E501
2076
+ This method makes a synchronous HTTP request by default. To make an
2077
+ asynchronous HTTP request, please pass async_req=True
2078
+
2079
+ >>> thread = api.block_refund_on_order(order_id, async_req=True)
2080
+ >>> result = thread.get()
2081
+
2082
+ Args:
2083
+ order_id (str): The order id to block a refund on.
2084
+
2085
+ Keyword Args:
2086
+ block_reason (str): Block reason code (optional). [optional]
2087
+ _return_http_data_only (bool): response data without head status
2088
+ code and headers. Default is True.
2089
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
2090
+ will be returned without reading/decoding response data.
2091
+ Default is True.
2092
+ _request_timeout (int/float/tuple): timeout setting for this request. If
2093
+ one number provided, it will be total request timeout. It can also
2094
+ be a pair (tuple) of (connection, read) timeouts.
2095
+ Default is None.
2096
+ _check_input_type (bool): specifies if type checking
2097
+ should be done one the data sent to the server.
2098
+ Default is True.
2099
+ _check_return_type (bool): specifies if type checking
2100
+ should be done one the data received from the server.
2101
+ Default is True.
2102
+ _spec_property_naming (bool): True if the variable names in the input data
2103
+ are serialized names, as specified in the OpenAPI document.
2104
+ False if the variable names in the input data
2105
+ are pythonic names, e.g. snake case (default)
2106
+ _content_type (str/None): force body content-type.
2107
+ Default is None and content-type will be predicted by allowed
2108
+ content-types and body.
2109
+ _host_index (int/None): specifies the index of the server
2110
+ that we want to use.
2111
+ Default is read from the configuration.
2112
+ _request_auths (list): set to override the auth_settings for an a single
2113
+ request; this effectively ignores the authentication
2114
+ in the spec for a single request.
2115
+ Default is None
2116
+ async_req (bool): execute request asynchronously
2117
+
2118
+ Returns:
2119
+ None
2120
+ If the method is called asynchronously, returns the request
2121
+ thread.
2122
+ """
2123
+ kwargs['async_req'] = kwargs.get(
2124
+ 'async_req', False
2125
+ )
2126
+ kwargs['_return_http_data_only'] = kwargs.get(
2127
+ '_return_http_data_only', True
2128
+ )
2129
+ kwargs['_preload_content'] = kwargs.get(
2130
+ '_preload_content', True
2131
+ )
2132
+ kwargs['_request_timeout'] = kwargs.get(
2133
+ '_request_timeout', None
2134
+ )
2135
+ kwargs['_check_input_type'] = kwargs.get(
2136
+ '_check_input_type', True
2137
+ )
2138
+ kwargs['_check_return_type'] = kwargs.get(
2139
+ '_check_return_type', True
2140
+ )
2141
+ kwargs['_spec_property_naming'] = kwargs.get(
2142
+ '_spec_property_naming', False
2143
+ )
2144
+ kwargs['_content_type'] = kwargs.get(
2145
+ '_content_type')
2146
+ kwargs['_host_index'] = kwargs.get('_host_index')
2147
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
2148
+ kwargs['order_id'] = \
2149
+ order_id
2150
+ return self.block_refund_on_order_endpoint.call_with_http_info(**kwargs)
2151
+
1959
2152
  def cancel_order(
1960
2153
  self,
1961
2154
  order_id,
@@ -4014,6 +4207,89 @@ class OrderApi(object):
4014
4207
  order_id
4015
4208
  return self.resend_shipment_confirmation_endpoint.call_with_http_info(**kwargs)
4016
4209
 
4210
+ def unblock_refund_on_order(
4211
+ self,
4212
+ order_id,
4213
+ **kwargs
4214
+ ):
4215
+ """Remove a refund block on an order # noqa: E501
4216
+
4217
+ Removes a refund block on an order to prevent a user from performing a refund. # noqa: E501
4218
+ This method makes a synchronous HTTP request by default. To make an
4219
+ asynchronous HTTP request, please pass async_req=True
4220
+
4221
+ >>> thread = api.unblock_refund_on_order(order_id, async_req=True)
4222
+ >>> result = thread.get()
4223
+
4224
+ Args:
4225
+ order_id (str): The order id to unblock a refund on.
4226
+
4227
+ Keyword Args:
4228
+ _return_http_data_only (bool): response data without head status
4229
+ code and headers. Default is True.
4230
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
4231
+ will be returned without reading/decoding response data.
4232
+ Default is True.
4233
+ _request_timeout (int/float/tuple): timeout setting for this request. If
4234
+ one number provided, it will be total request timeout. It can also
4235
+ be a pair (tuple) of (connection, read) timeouts.
4236
+ Default is None.
4237
+ _check_input_type (bool): specifies if type checking
4238
+ should be done one the data sent to the server.
4239
+ Default is True.
4240
+ _check_return_type (bool): specifies if type checking
4241
+ should be done one the data received from the server.
4242
+ Default is True.
4243
+ _spec_property_naming (bool): True if the variable names in the input data
4244
+ are serialized names, as specified in the OpenAPI document.
4245
+ False if the variable names in the input data
4246
+ are pythonic names, e.g. snake case (default)
4247
+ _content_type (str/None): force body content-type.
4248
+ Default is None and content-type will be predicted by allowed
4249
+ content-types and body.
4250
+ _host_index (int/None): specifies the index of the server
4251
+ that we want to use.
4252
+ Default is read from the configuration.
4253
+ _request_auths (list): set to override the auth_settings for an a single
4254
+ request; this effectively ignores the authentication
4255
+ in the spec for a single request.
4256
+ Default is None
4257
+ async_req (bool): execute request asynchronously
4258
+
4259
+ Returns:
4260
+ None
4261
+ If the method is called asynchronously, returns the request
4262
+ thread.
4263
+ """
4264
+ kwargs['async_req'] = kwargs.get(
4265
+ 'async_req', False
4266
+ )
4267
+ kwargs['_return_http_data_only'] = kwargs.get(
4268
+ '_return_http_data_only', True
4269
+ )
4270
+ kwargs['_preload_content'] = kwargs.get(
4271
+ '_preload_content', True
4272
+ )
4273
+ kwargs['_request_timeout'] = kwargs.get(
4274
+ '_request_timeout', None
4275
+ )
4276
+ kwargs['_check_input_type'] = kwargs.get(
4277
+ '_check_input_type', True
4278
+ )
4279
+ kwargs['_check_return_type'] = kwargs.get(
4280
+ '_check_return_type', True
4281
+ )
4282
+ kwargs['_spec_property_naming'] = kwargs.get(
4283
+ '_spec_property_naming', False
4284
+ )
4285
+ kwargs['_content_type'] = kwargs.get(
4286
+ '_content_type')
4287
+ kwargs['_host_index'] = kwargs.get('_host_index')
4288
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
4289
+ kwargs['order_id'] = \
4290
+ order_id
4291
+ return self.unblock_refund_on_order_endpoint.call_with_http_info(**kwargs)
4292
+
4017
4293
  def update_accounts_receivable_retry_config(
4018
4294
  self,
4019
4295
  retry_config,
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.13/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.1.15/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.13".\
425
+ "SDK Package Version: 4.1.15".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -88,6 +88,8 @@ class CartUpsellAfter(ModelNormal):
88
88
  'finalize_after_dts': (str,), # noqa: E501
89
89
  'finalize_after_minutes': (int,), # noqa: E501
90
90
  'upsell_path_code': (str,), # noqa: E501
91
+ 'upsell_path_name': (str,), # noqa: E501
92
+ 'upsell_path_variation': (str,), # noqa: E501
91
93
  }
92
94
 
93
95
  @cached_property
@@ -99,6 +101,8 @@ class CartUpsellAfter(ModelNormal):
99
101
  'finalize_after_dts': 'finalize_after_dts', # noqa: E501
100
102
  'finalize_after_minutes': 'finalize_after_minutes', # noqa: E501
101
103
  'upsell_path_code': 'upsell_path_code', # noqa: E501
104
+ 'upsell_path_name': 'upsell_path_name', # noqa: E501
105
+ 'upsell_path_variation': 'upsell_path_variation', # noqa: E501
102
106
  }
103
107
 
104
108
  read_only_vars = {
@@ -144,7 +148,9 @@ class CartUpsellAfter(ModelNormal):
144
148
  _visited_composed_classes = (Animal,)
145
149
  finalize_after_dts (str): The date/time after which the cart will finalize into an order.. [optional] # noqa: E501
146
150
  finalize_after_minutes (int): The amount of inactivity in minutes after which the cart should be finalized into an order. This will calculate the finalize_after_dts field.. [optional] # noqa: E501
147
- upsell_path_code (str): Upsell path code. [optional] # noqa: E501
151
+ upsell_path_code (str): Upsell path code (this is for legacy upsells only). [optional] # noqa: E501
152
+ upsell_path_name (str): Upsell path name to start on (StoreFront Upsells). Will only be respected on a handoff API call.. [optional] # noqa: E501
153
+ upsell_path_variation (str): Upsell path variation to start on (StoreFront Upsells). Will only be respected on a handoff API call.. [optional] # noqa: E501
148
154
  """
149
155
 
150
156
  _check_type = kwargs.pop('_check_type', True)
@@ -232,7 +238,9 @@ class CartUpsellAfter(ModelNormal):
232
238
  _visited_composed_classes = (Animal,)
233
239
  finalize_after_dts (str): The date/time after which the cart will finalize into an order.. [optional] # noqa: E501
234
240
  finalize_after_minutes (int): The amount of inactivity in minutes after which the cart should be finalized into an order. This will calculate the finalize_after_dts field.. [optional] # noqa: E501
235
- upsell_path_code (str): Upsell path code. [optional] # noqa: E501
241
+ upsell_path_code (str): Upsell path code (this is for legacy upsells only). [optional] # noqa: E501
242
+ upsell_path_name (str): Upsell path name to start on (StoreFront Upsells). Will only be respected on a handoff API call.. [optional] # noqa: E501
243
+ upsell_path_variation (str): Upsell path variation to start on (StoreFront Upsells). Will only be respected on a handoff API call.. [optional] # noqa: E501
236
244
  """
237
245
 
238
246
  _check_type = kwargs.pop('_check_type', True)
@@ -56,6 +56,12 @@ class ConversationVirtualAgentCapabilities(ModelNormal):
56
56
  """
57
57
 
58
58
  allowed_values = {
59
+ ('open_support_ticket_channel',): {
60
+ 'NONE': "none",
61
+ 'EMAIL': "email",
62
+ 'ULTRACART_TASK': "UltraCart Task",
63
+ 'ZOHO_DESK_TICKET': "Zoho Desk Ticket",
64
+ },
59
65
  }
60
66
 
61
67
  validations = {
@@ -87,6 +93,8 @@ class ConversationVirtualAgentCapabilities(ModelNormal):
87
93
  'lookup_order_information': (bool,), # noqa: E501
88
94
  'lookup_subscription_information': (bool,), # noqa: E501
89
95
  'open_support_ticket': (bool,), # noqa: E501
96
+ 'open_support_ticket_channel': (str,), # noqa: E501
97
+ 'open_support_ticket_channel_email': (str,), # noqa: E501
90
98
  'pause_subscription': (bool,), # noqa: E501
91
99
  'resume_subscription': (bool,), # noqa: E501
92
100
  'transfer_chat_to_live_agent': (bool,), # noqa: E501
@@ -104,6 +112,8 @@ class ConversationVirtualAgentCapabilities(ModelNormal):
104
112
  'lookup_order_information': 'lookup_order_information', # noqa: E501
105
113
  'lookup_subscription_information': 'lookup_subscription_information', # noqa: E501
106
114
  'open_support_ticket': 'open_support_ticket', # noqa: E501
115
+ 'open_support_ticket_channel': 'open_support_ticket_channel', # noqa: E501
116
+ 'open_support_ticket_channel_email': 'open_support_ticket_channel_email', # noqa: E501
107
117
  'pause_subscription': 'pause_subscription', # noqa: E501
108
118
  'resume_subscription': 'resume_subscription', # noqa: E501
109
119
  'transfer_chat_to_live_agent': 'transfer_chat_to_live_agent', # noqa: E501
@@ -156,6 +166,8 @@ class ConversationVirtualAgentCapabilities(ModelNormal):
156
166
  lookup_order_information (bool): [optional] # noqa: E501
157
167
  lookup_subscription_information (bool): [optional] # noqa: E501
158
168
  open_support_ticket (bool): [optional] # noqa: E501
169
+ open_support_ticket_channel (str): Channel to use to open the support ticket. [optional] # noqa: E501
170
+ open_support_ticket_channel_email (str): Email to send support ticket to. [optional] # noqa: E501
159
171
  pause_subscription (bool): [optional] # noqa: E501
160
172
  resume_subscription (bool): [optional] # noqa: E501
161
173
  transfer_chat_to_live_agent (bool): [optional] # noqa: E501
@@ -250,6 +262,8 @@ class ConversationVirtualAgentCapabilities(ModelNormal):
250
262
  lookup_order_information (bool): [optional] # noqa: E501
251
263
  lookup_subscription_information (bool): [optional] # noqa: E501
252
264
  open_support_ticket (bool): [optional] # noqa: E501
265
+ open_support_ticket_channel (str): Channel to use to open the support ticket. [optional] # noqa: E501
266
+ open_support_ticket_channel_email (str): Email to send support ticket to. [optional] # noqa: E501
253
267
  pause_subscription (bool): [optional] # noqa: E501
254
268
  resume_subscription (bool): [optional] # noqa: E501
255
269
  transfer_chat_to_live_agent (bool): [optional] # noqa: E501