ultracart_api 3.2.9 → 3.2.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6518eb59013764e7385417e9aa2bab90e1b1b3c20a755814435c8995e4ed2a3
4
- data.tar.gz: c98b102b1be7f95cd94f78b49aa24c42a7dfdd348e1ab83ff826e9046ec8b9b1
3
+ metadata.gz: 626bdb13b840746c2ee4cdeb9c7c433d9e49a5cfbe3a194202becb55bc76f696
4
+ data.tar.gz: 160e233860d060e9197659a17c3ec2d92626cf8618747c7bfb766cb9df8fe562
5
5
  SHA512:
6
- metadata.gz: caa996b5aad971ff1a16bd2fac06b2de5a9a1d6bec4010c214d27165d8540378e8462bc1e26b089e2395920c6ae61371aa938b07b03eaf69f6e8983156e7f8bb
7
- data.tar.gz: 1863e1c8d4e1538a9c6ede97c91e279b7ee70da457ec8f38b1774395191d6362edf1c009fa415a87de7c16acfb380229edf4f38426de9b8765079b510a8bd434
6
+ metadata.gz: 5a50cd08bb0371e6a2c0763d28f31a44c55edf58d9b5782d548f2e2f07d5506b90887a7c5be435d773f87fac79c591382c3bfc0ca0ea82f2de49961116ca7843
7
+ data.tar.gz: b8c0d6a8bd433328409a64c2ecbba849aa460280efe0a1b67dbe8cdd882bc64bb6cc3dc39fe343da13a5c39355be521f7ee3c7c338342f1d0d236b05dd25d5d4
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.2.9
10
+ - Package version: 3.2.14
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.2.9.gem
27
+ gem install ./ultracart_api-3.2.14.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.2.9.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.2.14.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.2.9'
35
+ gem 'ultracart_api', '~> 3.2.14'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -153,6 +153,7 @@ Class | Method | HTTP request | Description
153
153
  *UltracartClient::CustomerApi* | [**update_customer_email_lists**](docs/CustomerApi.md#update_customer_email_lists) | **POST** /customer/customers/{customer_profile_oid}/email_lists | Update email list subscriptions for a customer
154
154
  *UltracartClient::CustomerApi* | [**validate_email_verification_token**](docs/CustomerApi.md#validate_email_verification_token) | **POST** /customer/customers/email_verify/validate_token | Validate a token that can be used to verify a customer email address
155
155
  *UltracartClient::FulfillmentApi* | [**acknowledge_orders**](docs/FulfillmentApi.md#acknowledge_orders) | **PUT** /fulfillment/distribution_centers/{distribution_center_code}/acknowledgements | Acknowledge receipt of orders.
156
+ *UltracartClient::FulfillmentApi* | [**generate_packing_slip**](docs/FulfillmentApi.md#generate_packing_slip) | **GET** /fulfillment/distribution_centers/{distribution_center_code}/orders/{order_id} | Generate a packing slip for this order for the given distribution center.
156
157
  *UltracartClient::FulfillmentApi* | [**get_distribution_center_orders**](docs/FulfillmentApi.md#get_distribution_center_orders) | **GET** /fulfillment/distribution_centers/{distribution_center_code}/orders | Retrieve orders queued up for this distribution center.
157
158
  *UltracartClient::FulfillmentApi* | [**get_distribution_centers**](docs/FulfillmentApi.md#get_distribution_centers) | **GET** /fulfillment/distribution_centers | Retrieve distribution centers
158
159
  *UltracartClient::FulfillmentApi* | [**ship_orders**](docs/FulfillmentApi.md#ship_orders) | **POST** /fulfillment/distribution_centers/{distribution_center_code}/shipments | Mark orders as shipped
@@ -176,6 +177,8 @@ Class | Method | HTTP request | Description
176
177
  *UltracartClient::OrderApi* | [**delete_order**](docs/OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
177
178
  *UltracartClient::OrderApi* | [**format**](docs/OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order
178
179
  *UltracartClient::OrderApi* | [**generate_order_token**](docs/OrderApi.md#generate_order_token) | **GET** /order/orders/token/{order_id} | Generate an order token for a given order id
180
+ *UltracartClient::OrderApi* | [**generate_packing_slip_all_dc**](docs/OrderApi.md#generate_packing_slip_all_dc) | **GET** /order/orders/{order_id}/packing_slip | Generate a packing slip for this order across all distribution centers.
181
+ *UltracartClient::OrderApi* | [**generate_packing_slip_specific_dc**](docs/OrderApi.md#generate_packing_slip_specific_dc) | **GET** /order/orders/{order_id}/packing_slip/{distribution_center_code} | Generate a packing slip for this order for the given distribution center.
179
182
  *UltracartClient::OrderApi* | [**get_accounts_receivable_retry_config**](docs/OrderApi.md#get_accounts_receivable_retry_config) | **GET** /order/accountsReceivableRetryConfig | Retrieve A/R Retry Configuration
180
183
  *UltracartClient::OrderApi* | [**get_accounts_receivable_retry_stats**](docs/OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics
181
184
  *UltracartClient::OrderApi* | [**get_order**](docs/OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order
@@ -1032,6 +1035,11 @@ Not every change is committed to every SDK.
1032
1035
 
1033
1036
  | Version | Date | Comments |
1034
1037
  | --: | :-: | --- |
1038
+ | 3.2.14 | 07/12/2021 | fix documentation bug on packing slip methods for order api |
1039
+ | 3.2.13 | 07/12/2021 | coupon api - added hideFromCustomer flag |
1040
+ | 3.2.12 | 07/09/2021 | new fulfillment and order methods for generation of packing slips |
1041
+ | 3.2.11 | 07/08/2021 | screen recording - missing external tracking flag added |
1042
+ | 3.2.10 | 07/08/2021 | customer profile - allow drop shipping options |
1035
1043
  | 3.2.9 | 07/07/2021 | screen recording - provide cost per thousand and retention interval |
1036
1044
  | 3.2.8 | 07/06/2021 | intgeration logs - min max log date/time retured in filter values |
1037
1045
  | 3.2.7 | 07/05/2021 | integration logger bug fixes |
data/docs/Coupon.md CHANGED
@@ -33,6 +33,7 @@ Name | Type | Description | Notes
33
33
  **free_shipping_specific_items** | [**CouponFreeShippingSpecificItems**](CouponFreeShippingSpecificItems.md) | | [optional]
34
34
  **free_shipping_with_items_purchase** | [**CouponFreeShippingWithItemsPurchase**](CouponFreeShippingWithItemsPurchase.md) | | [optional]
35
35
  **free_shipping_with_subtotal** | [**CouponFreeShippingWithSubtotal**](CouponFreeShippingWithSubtotal.md) | | [optional]
36
+ **hide_from_customer** | **BOOLEAN** | Hide coupon from customer during checkout. Often used when coupons are automatic discounting mechanisms. | [optional]
36
37
  **merchant_code** | **String** | Merchant code of coupon up to 20 characters. | [optional]
37
38
  **merchant_notes** | **String** | Internal notes about this coupon. These are not visible to customer. | [optional]
38
39
  **multiple_amounts_off_items** | [**CouponMultipleAmountsOffItems**](CouponMultipleAmountsOffItems.md) | | [optional]
data/docs/Customer.md CHANGED
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **affiliate_oid** | **Integer** | Affiliate oid | [optional]
8
8
  **allow_3rd_party_billing** | **BOOLEAN** | Allow 3rd party billing | [optional]
9
9
  **allow_cod** | **BOOLEAN** | Allow COD | [optional]
10
+ **allow_drop_shipping** | **BOOLEAN** | Allow Drop Shipping | [optional]
10
11
  **allow_purchase_order** | **BOOLEAN** | Allow purchase orders by this customer | [optional]
11
12
  **allow_quote_request** | **BOOLEAN** | Allow quote request | [optional]
12
13
  **allow_selection_of_address_type** | **BOOLEAN** | Allow selection of residential or business address type | [optional]
@@ -5,6 +5,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**acknowledge_orders**](FulfillmentApi.md#acknowledge_orders) | **PUT** /fulfillment/distribution_centers/{distribution_center_code}/acknowledgements | Acknowledge receipt of orders.
8
+ [**generate_packing_slip**](FulfillmentApi.md#generate_packing_slip) | **GET** /fulfillment/distribution_centers/{distribution_center_code}/orders/{order_id} | Generate a packing slip for this order for the given distribution center.
8
9
  [**get_distribution_center_orders**](FulfillmentApi.md#get_distribution_center_orders) | **GET** /fulfillment/distribution_centers/{distribution_center_code}/orders | Retrieve orders queued up for this distribution center.
9
10
  [**get_distribution_centers**](FulfillmentApi.md#get_distribution_centers) | **GET** /fulfillment/distribution_centers | Retrieve distribution centers
10
11
  [**ship_orders**](FulfillmentApi.md#ship_orders) | **POST** /fulfillment/distribution_centers/{distribution_center_code}/shipments | Mark orders as shipped
@@ -63,6 +64,59 @@ nil (empty response body)
63
64
 
64
65
 
65
66
 
67
+ # **generate_packing_slip**
68
+ > OrdersResponse generate_packing_slip(distribution_center_code, order_id)
69
+
70
+ Generate a packing slip for this order for the given distribution center.
71
+
72
+ The packing slip PDF that is returned is base 64 encoded
73
+
74
+ ### Example
75
+ ```ruby
76
+ # load the gem
77
+ require 'ultracart_api'
78
+
79
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
80
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
81
+ api_instance = UltracartClient::FulfillmentApi.new_using_api_key(simple_key, false, false)
82
+
83
+
84
+ distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
85
+
86
+ order_id = 'order_id_example' # String | Order ID
87
+
88
+
89
+ begin
90
+ #Generate a packing slip for this order for the given distribution center.
91
+ result = api_instance.generate_packing_slip(distribution_center_code, order_id)
92
+ p result
93
+ rescue UltracartClient::ApiError => e
94
+ puts "Exception when calling FulfillmentApi->generate_packing_slip: #{e}"
95
+ end
96
+ ```
97
+
98
+ ### Parameters
99
+
100
+ Name | Type | Description | Notes
101
+ ------------- | ------------- | ------------- | -------------
102
+ **distribution_center_code** | **String**| Distribution center code |
103
+ **order_id** | **String**| Order ID |
104
+
105
+ ### Return type
106
+
107
+ [**OrdersResponse**](OrdersResponse.md)
108
+
109
+ ### Authorization
110
+
111
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
112
+
113
+ ### HTTP request headers
114
+
115
+ - **Content-Type**: application/json
116
+ - **Accept**: application/json
117
+
118
+
119
+
66
120
  # **get_distribution_center_orders**
67
121
  > OrdersResponse get_distribution_center_orders(distribution_center_code)
68
122
 
data/docs/OrderApi.md CHANGED
@@ -9,6 +9,8 @@ Method | HTTP request | Description
9
9
  [**delete_order**](OrderApi.md#delete_order) | **DELETE** /order/orders/{order_id} | Delete an order
10
10
  [**format**](OrderApi.md#format) | **POST** /order/orders/{order_id}/format | Format order
11
11
  [**generate_order_token**](OrderApi.md#generate_order_token) | **GET** /order/orders/token/{order_id} | Generate an order token for a given order id
12
+ [**generate_packing_slip_all_dc**](OrderApi.md#generate_packing_slip_all_dc) | **GET** /order/orders/{order_id}/packing_slip | Generate a packing slip for this order across all distribution centers.
13
+ [**generate_packing_slip_specific_dc**](OrderApi.md#generate_packing_slip_specific_dc) | **GET** /order/orders/{order_id}/packing_slip/{distribution_center_code} | Generate a packing slip for this order for the given distribution center.
12
14
  [**get_accounts_receivable_retry_config**](OrderApi.md#get_accounts_receivable_retry_config) | **GET** /order/accountsReceivableRetryConfig | Retrieve A/R Retry Configuration
13
15
  [**get_accounts_receivable_retry_stats**](OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics
14
16
  [**get_order**](OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order
@@ -281,6 +283,109 @@ Name | Type | Description | Notes
281
283
 
282
284
 
283
285
 
286
+ # **generate_packing_slip_all_dc**
287
+ > OrdersResponse generate_packing_slip_all_dc(order_id)
288
+
289
+ Generate a packing slip for this order across all distribution centers.
290
+
291
+ The packing slip PDF that is returned is base 64 encoded
292
+
293
+ ### Example
294
+ ```ruby
295
+ # load the gem
296
+ require 'ultracart_api'
297
+
298
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
299
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
300
+ api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false)
301
+
302
+
303
+ order_id = 'order_id_example' # String | Order ID
304
+
305
+
306
+ begin
307
+ #Generate a packing slip for this order across all distribution centers.
308
+ result = api_instance.generate_packing_slip_all_dc(order_id)
309
+ p result
310
+ rescue UltracartClient::ApiError => e
311
+ puts "Exception when calling OrderApi->generate_packing_slip_all_dc: #{e}"
312
+ end
313
+ ```
314
+
315
+ ### Parameters
316
+
317
+ Name | Type | Description | Notes
318
+ ------------- | ------------- | ------------- | -------------
319
+ **order_id** | **String**| Order ID |
320
+
321
+ ### Return type
322
+
323
+ [**OrdersResponse**](OrdersResponse.md)
324
+
325
+ ### Authorization
326
+
327
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
328
+
329
+ ### HTTP request headers
330
+
331
+ - **Content-Type**: application/json
332
+ - **Accept**: application/json
333
+
334
+
335
+
336
+ # **generate_packing_slip_specific_dc**
337
+ > OrdersResponse generate_packing_slip_specific_dc(distribution_center_code, order_id)
338
+
339
+ Generate a packing slip for this order for the given distribution center.
340
+
341
+ The packing slip PDF that is returned is base 64 encoded
342
+
343
+ ### Example
344
+ ```ruby
345
+ # load the gem
346
+ require 'ultracart_api'
347
+
348
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
349
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
350
+ api_instance = UltracartClient::OrderApi.new_using_api_key(simple_key, false, false)
351
+
352
+
353
+ distribution_center_code = 'distribution_center_code_example' # String | Distribution center code
354
+
355
+ order_id = 'order_id_example' # String | Order ID
356
+
357
+
358
+ begin
359
+ #Generate a packing slip for this order for the given distribution center.
360
+ result = api_instance.generate_packing_slip_specific_dc(distribution_center_code, order_id)
361
+ p result
362
+ rescue UltracartClient::ApiError => e
363
+ puts "Exception when calling OrderApi->generate_packing_slip_specific_dc: #{e}"
364
+ end
365
+ ```
366
+
367
+ ### Parameters
368
+
369
+ Name | Type | Description | Notes
370
+ ------------- | ------------- | ------------- | -------------
371
+ **distribution_center_code** | **String**| Distribution center code |
372
+ **order_id** | **String**| Order ID |
373
+
374
+ ### Return type
375
+
376
+ [**OrdersResponse**](OrdersResponse.md)
377
+
378
+ ### Authorization
379
+
380
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
381
+
382
+ ### HTTP request headers
383
+
384
+ - **Content-Type**: application/json
385
+ - **Accept**: application/json
386
+
387
+
388
+
284
389
  # **get_accounts_receivable_retry_config**
285
390
  > AccountsReceivableRetryConfigResponse get_accounts_receivable_retry_config
286
391
 
data/docs/OrderCoupon.md CHANGED
@@ -7,5 +7,6 @@ Name | Type | Description | Notes
7
7
  **automatically_applied** | **BOOLEAN** | Whether or not the coupon was automatically applied to the order | [optional]
8
8
  **base_coupon_code** | **String** | Coupon code configured by the merchant. Will differ if the customer used a one time coupon code generated off this base coupon | [optional]
9
9
  **coupon_code** | **String** | Coupon code entered by the customer | [optional]
10
+ **hdie_from_customer** | **BOOLEAN** | True if this coupon is hidde from the customer | [optional]
10
11
 
11
12
 
@@ -27,6 +27,7 @@ Name | Type | Description | Notes
27
27
  **language_iso_code** | **String** | Language ISO code | [optional]
28
28
  **merchant_id** | **String** | | [optional]
29
29
  **merchant_notes** | **String** | | [optional]
30
+ **missing_external_tracking** | **BOOLEAN** | True if external page view was not tracked | [optional]
30
31
  **order_id** | **String** | | [optional]
31
32
  **page_view_count** | **Integer** | | [optional]
32
33
  **page_views** | [**Array<ScreenRecordingPageView>**](ScreenRecordingPageView.md) | | [optional]
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **checkout_only** | **BOOLEAN** | | [optional]
6
7
  **error** | [**Error**](Error.md) | | [optional]
7
8
  **filter** | [**ScreenRecordingFilter**](ScreenRecordingFilter.md) | | [optional]
8
9
  **filter_values** | [**ScreenRecordingFilterValues**](ScreenRecordingFilterValues.md) | | [optional]
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **checkout_only** | **BOOLEAN** | | [optional]
6
7
  **error** | [**Error**](Error.md) | | [optional]
7
8
  **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
9
  **screen_recording** | [**ScreenRecording**](ScreenRecording.md) | | [optional]
@@ -92,6 +92,67 @@ module UltracartClient
92
92
  end
93
93
  return data, status_code, headers
94
94
  end
95
+ # Generate a packing slip for this order for the given distribution center.
96
+ # The packing slip PDF that is returned is base 64 encoded
97
+ # @param distribution_center_code Distribution center code
98
+ # @param order_id Order ID
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [OrdersResponse]
101
+ def generate_packing_slip(distribution_center_code, order_id, opts = {})
102
+ data, _status_code, _headers = generate_packing_slip_with_http_info(distribution_center_code, order_id, opts)
103
+ data
104
+ end
105
+
106
+ # Generate a packing slip for this order for the given distribution center.
107
+ # The packing slip PDF that is returned is base 64 encoded
108
+ # @param distribution_center_code Distribution center code
109
+ # @param order_id Order ID
110
+ # @param [Hash] opts the optional parameters
111
+ # @return [Array<(OrdersResponse, Fixnum, Hash)>] OrdersResponse data, response status code and response headers
112
+ def generate_packing_slip_with_http_info(distribution_center_code, order_id, opts = {})
113
+ if @api_client.config.debugging
114
+ @api_client.config.logger.debug 'Calling API: FulfillmentApi.generate_packing_slip ...'
115
+ end
116
+ # verify the required parameter 'distribution_center_code' is set
117
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
118
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling FulfillmentApi.generate_packing_slip"
119
+ end
120
+ # verify the required parameter 'order_id' is set
121
+ if @api_client.config.client_side_validation && order_id.nil?
122
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling FulfillmentApi.generate_packing_slip"
123
+ end
124
+ # resource path
125
+ local_var_path = '/fulfillment/distribution_centers/{distribution_center_code}/orders/{order_id}'.sub('{' + 'distribution_center_code' + '}', distribution_center_code.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
126
+
127
+ # query parameters
128
+ query_params = {}
129
+
130
+ # header parameters
131
+ header_params = {}
132
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
133
+ # HTTP header 'Accept' (if needed)
134
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
135
+ # HTTP header 'Content-Type'
136
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
137
+
138
+ # form parameters
139
+ form_params = {}
140
+
141
+ # http body (model)
142
+ post_body = nil
143
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
144
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => 'OrdersResponse')
151
+ if @api_client.config.debugging
152
+ @api_client.config.logger.debug "API called: FulfillmentApi#generate_packing_slip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ end
154
+ return data, status_code, headers
155
+ end
95
156
  # Retrieve orders queued up for this distribution center.
96
157
  # Retrieves up to 100 orders that are queued up in this distribution center. You must acknowledge them before additional new orders will be returned. There is NO record chunking. You'll get the same 100 records again and again until you acknowledge orders. The orders that are returned contain only items for this distribution center and are by default completely expanded with billing, buysafe, channel_partner, checkout, coupons, customer_profile, edi, gift, gift_certificate, internal, items, payment, shipping, summary, taxes.
97
158
  # @param distribution_center_code Distribution center code
@@ -318,6 +318,122 @@ module UltracartClient
318
318
  end
319
319
  return data, status_code, headers
320
320
  end
321
+ # Generate a packing slip for this order across all distribution centers.
322
+ # The packing slip PDF that is returned is base 64 encoded
323
+ # @param order_id Order ID
324
+ # @param [Hash] opts the optional parameters
325
+ # @return [OrdersResponse]
326
+ def generate_packing_slip_all_dc(order_id, opts = {})
327
+ data, _status_code, _headers = generate_packing_slip_all_dc_with_http_info(order_id, opts)
328
+ data
329
+ end
330
+
331
+ # Generate a packing slip for this order across all distribution centers.
332
+ # The packing slip PDF that is returned is base 64 encoded
333
+ # @param order_id Order ID
334
+ # @param [Hash] opts the optional parameters
335
+ # @return [Array<(OrdersResponse, Fixnum, Hash)>] OrdersResponse data, response status code and response headers
336
+ def generate_packing_slip_all_dc_with_http_info(order_id, opts = {})
337
+ if @api_client.config.debugging
338
+ @api_client.config.logger.debug 'Calling API: OrderApi.generate_packing_slip_all_dc ...'
339
+ end
340
+ # verify the required parameter 'order_id' is set
341
+ if @api_client.config.client_side_validation && order_id.nil?
342
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.generate_packing_slip_all_dc"
343
+ end
344
+ # resource path
345
+ local_var_path = '/order/orders/{order_id}/packing_slip'.sub('{' + 'order_id' + '}', order_id.to_s)
346
+
347
+ # query parameters
348
+ query_params = {}
349
+
350
+ # header parameters
351
+ header_params = {}
352
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
353
+ # HTTP header 'Accept' (if needed)
354
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
355
+ # HTTP header 'Content-Type'
356
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
357
+
358
+ # form parameters
359
+ form_params = {}
360
+
361
+ # http body (model)
362
+ post_body = nil
363
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
364
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
365
+ :header_params => header_params,
366
+ :query_params => query_params,
367
+ :form_params => form_params,
368
+ :body => post_body,
369
+ :auth_names => auth_names,
370
+ :return_type => 'OrdersResponse')
371
+ if @api_client.config.debugging
372
+ @api_client.config.logger.debug "API called: OrderApi#generate_packing_slip_all_dc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
373
+ end
374
+ return data, status_code, headers
375
+ end
376
+ # Generate a packing slip for this order for the given distribution center.
377
+ # The packing slip PDF that is returned is base 64 encoded
378
+ # @param distribution_center_code Distribution center code
379
+ # @param order_id Order ID
380
+ # @param [Hash] opts the optional parameters
381
+ # @return [OrdersResponse]
382
+ def generate_packing_slip_specific_dc(distribution_center_code, order_id, opts = {})
383
+ data, _status_code, _headers = generate_packing_slip_specific_dc_with_http_info(distribution_center_code, order_id, opts)
384
+ data
385
+ end
386
+
387
+ # Generate a packing slip for this order for the given distribution center.
388
+ # The packing slip PDF that is returned is base 64 encoded
389
+ # @param distribution_center_code Distribution center code
390
+ # @param order_id Order ID
391
+ # @param [Hash] opts the optional parameters
392
+ # @return [Array<(OrdersResponse, Fixnum, Hash)>] OrdersResponse data, response status code and response headers
393
+ def generate_packing_slip_specific_dc_with_http_info(distribution_center_code, order_id, opts = {})
394
+ if @api_client.config.debugging
395
+ @api_client.config.logger.debug 'Calling API: OrderApi.generate_packing_slip_specific_dc ...'
396
+ end
397
+ # verify the required parameter 'distribution_center_code' is set
398
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
399
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling OrderApi.generate_packing_slip_specific_dc"
400
+ end
401
+ # verify the required parameter 'order_id' is set
402
+ if @api_client.config.client_side_validation && order_id.nil?
403
+ fail ArgumentError, "Missing the required parameter 'order_id' when calling OrderApi.generate_packing_slip_specific_dc"
404
+ end
405
+ # resource path
406
+ local_var_path = '/order/orders/{order_id}/packing_slip/{distribution_center_code}'.sub('{' + 'distribution_center_code' + '}', distribution_center_code.to_s).sub('{' + 'order_id' + '}', order_id.to_s)
407
+
408
+ # query parameters
409
+ query_params = {}
410
+
411
+ # header parameters
412
+ header_params = {}
413
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
414
+ # HTTP header 'Accept' (if needed)
415
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
416
+ # HTTP header 'Content-Type'
417
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
418
+
419
+ # form parameters
420
+ form_params = {}
421
+
422
+ # http body (model)
423
+ post_body = nil
424
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
425
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
426
+ :header_params => header_params,
427
+ :query_params => query_params,
428
+ :form_params => form_params,
429
+ :body => post_body,
430
+ :auth_names => auth_names,
431
+ :return_type => 'OrdersResponse')
432
+ if @api_client.config.debugging
433
+ @api_client.config.logger.debug "API called: OrderApi#generate_packing_slip_specific_dc\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
434
+ end
435
+ return data, status_code, headers
436
+ end
321
437
  # Retrieve A/R Retry Configuration
322
438
  # Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
323
439
  # @param [Hash] opts the optional parameters
@@ -82,6 +82,9 @@ module UltracartClient
82
82
 
83
83
  attr_accessor :free_shipping_with_subtotal
84
84
 
85
+ # Hide coupon from customer during checkout. Often used when coupons are automatic discounting mechanisms.
86
+ attr_accessor :hide_from_customer
87
+
85
88
  # Merchant code of coupon up to 20 characters.
86
89
  attr_accessor :merchant_code
87
90
 
@@ -180,6 +183,7 @@ module UltracartClient
180
183
  :'free_shipping_specific_items' => :'free_shipping_specific_items',
181
184
  :'free_shipping_with_items_purchase' => :'free_shipping_with_items_purchase',
182
185
  :'free_shipping_with_subtotal' => :'free_shipping_with_subtotal',
186
+ :'hide_from_customer' => :'hide_from_customer',
183
187
  :'merchant_code' => :'merchant_code',
184
188
  :'merchant_notes' => :'merchant_notes',
185
189
  :'multiple_amounts_off_items' => :'multiple_amounts_off_items',
@@ -244,6 +248,7 @@ module UltracartClient
244
248
  :'free_shipping_specific_items' => :'CouponFreeShippingSpecificItems',
245
249
  :'free_shipping_with_items_purchase' => :'CouponFreeShippingWithItemsPurchase',
246
250
  :'free_shipping_with_subtotal' => :'CouponFreeShippingWithSubtotal',
251
+ :'hide_from_customer' => :'BOOLEAN',
247
252
  :'merchant_code' => :'String',
248
253
  :'merchant_notes' => :'String',
249
254
  :'multiple_amounts_off_items' => :'CouponMultipleAmountsOffItems',
@@ -403,6 +408,10 @@ module UltracartClient
403
408
  self.free_shipping_with_subtotal = attributes[:'free_shipping_with_subtotal']
404
409
  end
405
410
 
411
+ if attributes.has_key?(:'hide_from_customer')
412
+ self.hide_from_customer = attributes[:'hide_from_customer']
413
+ end
414
+
406
415
  if attributes.has_key?(:'merchant_code')
407
416
  self.merchant_code = attributes[:'merchant_code']
408
417
  end
@@ -660,6 +669,7 @@ module UltracartClient
660
669
  free_shipping_specific_items == o.free_shipping_specific_items &&
661
670
  free_shipping_with_items_purchase == o.free_shipping_with_items_purchase &&
662
671
  free_shipping_with_subtotal == o.free_shipping_with_subtotal &&
672
+ hide_from_customer == o.hide_from_customer &&
663
673
  merchant_code == o.merchant_code &&
664
674
  merchant_notes == o.merchant_notes &&
665
675
  multiple_amounts_off_items == o.multiple_amounts_off_items &&
@@ -699,7 +709,7 @@ module UltracartClient
699
709
  # Calculates hash code according to all attributes.
700
710
  # @return [Fixnum] Hash code
701
711
  def hash
702
- [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_item, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
712
+ [affiliate_oid, allow_multiple_one_time_codes, amount_off_items, amount_off_shipping, amount_off_shipping_with_items_purchase, amount_off_subtotal, amount_off_subtotal_and_free_shipping, amount_off_subtotal_and_shipping, amount_off_subtotal_with_block_purchase, amount_off_subtotal_with_items_purchase, amount_off_subtotal_with_purchase, automatically_apply_coupon_codes, buy_one_get_one, calculated_description, can_be_used_with_other_coupons, coupon_oid, coupon_type, description, discount_item_with_item_purchase, discount_items, expiration_dts, free_item_and_shipping_with_subtotal, free_item_with_item_purchase, free_item_with_subtotal, free_items_with_item_purchase, free_items_with_mixmatch_purchase, free_shipping, free_shipping_specific_items, free_shipping_with_items_purchase, free_shipping_with_subtotal, hide_from_customer, merchant_code, merchant_notes, multiple_amounts_off_items, no_discount, percent_off_item_with_items_quantity_purchase, percent_off_items, percent_off_items_and_free_shipping, percent_off_items_with_items_purchase, percent_off_msrp_items, percent_off_retail_price_items, percent_off_shipping, percent_off_subtotal, percent_off_subtotal_and_free_shipping, percent_off_subtotal_limit, percent_off_subtotal_with_items_purchase, percent_off_subtotal_with_subtotal, quickbooks_code, restrict_by_postal_codes, restrict_by_screen_branding_theme_codes, restrict_by_storefronts, start_dts, super_coupon, tiered_amount_off_item, tiered_amount_off_subtotal, tiered_percent_off_items, tiered_percent_off_shipping, tiered_percent_off_subtotal, usable_by].hash
703
713
  end
704
714
 
705
715
  # Builds the object from hash
@@ -25,6 +25,9 @@ module UltracartClient
25
25
  # Allow COD
26
26
  attr_accessor :allow_cod
27
27
 
28
+ # Allow Drop Shipping
29
+ attr_accessor :allow_drop_shipping
30
+
28
31
  # Allow purchase orders by this customer
29
32
  attr_accessor :allow_purchase_order
30
33
 
@@ -188,6 +191,7 @@ module UltracartClient
188
191
  :'affiliate_oid' => :'affiliate_oid',
189
192
  :'allow_3rd_party_billing' => :'allow_3rd_party_billing',
190
193
  :'allow_cod' => :'allow_cod',
194
+ :'allow_drop_shipping' => :'allow_drop_shipping',
191
195
  :'allow_purchase_order' => :'allow_purchase_order',
192
196
  :'allow_quote_request' => :'allow_quote_request',
193
197
  :'allow_selection_of_address_type' => :'allow_selection_of_address_type',
@@ -252,6 +256,7 @@ module UltracartClient
252
256
  :'affiliate_oid' => :'Integer',
253
257
  :'allow_3rd_party_billing' => :'BOOLEAN',
254
258
  :'allow_cod' => :'BOOLEAN',
259
+ :'allow_drop_shipping' => :'BOOLEAN',
255
260
  :'allow_purchase_order' => :'BOOLEAN',
256
261
  :'allow_quote_request' => :'BOOLEAN',
257
262
  :'allow_selection_of_address_type' => :'BOOLEAN',
@@ -333,6 +338,10 @@ module UltracartClient
333
338
  self.allow_cod = attributes[:'allow_cod']
334
339
  end
335
340
 
341
+ if attributes.has_key?(:'allow_drop_shipping')
342
+ self.allow_drop_shipping = attributes[:'allow_drop_shipping']
343
+ end
344
+
336
345
  if attributes.has_key?(:'allow_purchase_order')
337
346
  self.allow_purchase_order = attributes[:'allow_purchase_order']
338
347
  end
@@ -757,6 +766,7 @@ module UltracartClient
757
766
  affiliate_oid == o.affiliate_oid &&
758
767
  allow_3rd_party_billing == o.allow_3rd_party_billing &&
759
768
  allow_cod == o.allow_cod &&
769
+ allow_drop_shipping == o.allow_drop_shipping &&
760
770
  allow_purchase_order == o.allow_purchase_order &&
761
771
  allow_quote_request == o.allow_quote_request &&
762
772
  allow_selection_of_address_type == o.allow_selection_of_address_type &&
@@ -822,7 +832,7 @@ module UltracartClient
822
832
  # Calculates hash code according to all attributes.
823
833
  # @return [Fixnum] Hash code
824
834
  def hash
825
- [activity, affiliate_oid, allow_3rd_party_billing, allow_cod, allow_purchase_order, allow_quote_request, allow_selection_of_address_type, attachments, auto_approve_cod, auto_approve_purchase_order, automatic_merchant_notes, billing, business_notes, cards, cc_emails, customer_profile_oid, dhl_account_number, dhl_duty_account_number, email, exempt_shipping_handling_charge, fedex_account_number, free_shipping, free_shipping_minimum, last_modified_by, last_modified_dts, loyalty, maximum_item_count, minimum_item_count, minimum_subtotal, no_coupons, no_free_shipping, no_realtime_charge, orders, orders_summary, password, pricing_tiers, privacy, qb_class, qb_code, quotes, quotes_summary, referral_source, reviewer, sales_rep_code, send_signup_notification, shipping, signup_dts, software_entitlements, suppress_buysafe, tags, tax_codes, tax_exempt, tax_id, terms, track_separately, unapproved, ups_account_number, website_url].hash
835
+ [activity, affiliate_oid, allow_3rd_party_billing, allow_cod, allow_drop_shipping, allow_purchase_order, allow_quote_request, allow_selection_of_address_type, attachments, auto_approve_cod, auto_approve_purchase_order, automatic_merchant_notes, billing, business_notes, cards, cc_emails, customer_profile_oid, dhl_account_number, dhl_duty_account_number, email, exempt_shipping_handling_charge, fedex_account_number, free_shipping, free_shipping_minimum, last_modified_by, last_modified_dts, loyalty, maximum_item_count, minimum_item_count, minimum_subtotal, no_coupons, no_free_shipping, no_realtime_charge, orders, orders_summary, password, pricing_tiers, privacy, qb_class, qb_code, quotes, quotes_summary, referral_source, reviewer, sales_rep_code, send_signup_notification, shipping, signup_dts, software_entitlements, suppress_buysafe, tags, tax_codes, tax_exempt, tax_id, terms, track_separately, unapproved, ups_account_number, website_url].hash
826
836
  end
827
837
 
828
838
  # Builds the object from hash
@@ -26,13 +26,17 @@ module UltracartClient
26
26
  # Coupon code entered by the customer
27
27
  attr_accessor :coupon_code
28
28
 
29
+ # True if this coupon is hidde from the customer
30
+ attr_accessor :hdie_from_customer
31
+
29
32
  # Attribute mapping from ruby-style variable name to JSON key.
30
33
  def self.attribute_map
31
34
  {
32
35
  :'accounting_code' => :'accounting_code',
33
36
  :'automatically_applied' => :'automatically_applied',
34
37
  :'base_coupon_code' => :'base_coupon_code',
35
- :'coupon_code' => :'coupon_code'
38
+ :'coupon_code' => :'coupon_code',
39
+ :'hdie_from_customer' => :'hdie_from_customer'
36
40
  }
37
41
  end
38
42
 
@@ -42,7 +46,8 @@ module UltracartClient
42
46
  :'accounting_code' => :'String',
43
47
  :'automatically_applied' => :'BOOLEAN',
44
48
  :'base_coupon_code' => :'String',
45
- :'coupon_code' => :'String'
49
+ :'coupon_code' => :'String',
50
+ :'hdie_from_customer' => :'BOOLEAN'
46
51
  }
47
52
  end
48
53
 
@@ -69,6 +74,10 @@ module UltracartClient
69
74
  if attributes.has_key?(:'coupon_code')
70
75
  self.coupon_code = attributes[:'coupon_code']
71
76
  end
77
+
78
+ if attributes.has_key?(:'hdie_from_customer')
79
+ self.hdie_from_customer = attributes[:'hdie_from_customer']
80
+ end
72
81
  end
73
82
 
74
83
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,7 +131,8 @@ module UltracartClient
122
131
  accounting_code == o.accounting_code &&
123
132
  automatically_applied == o.automatically_applied &&
124
133
  base_coupon_code == o.base_coupon_code &&
125
- coupon_code == o.coupon_code
134
+ coupon_code == o.coupon_code &&
135
+ hdie_from_customer == o.hdie_from_customer
126
136
  end
127
137
 
128
138
  # @see the `==` method
@@ -134,7 +144,7 @@ module UltracartClient
134
144
  # Calculates hash code according to all attributes.
135
145
  # @return [Fixnum] Hash code
136
146
  def hash
137
- [accounting_code, automatically_applied, base_coupon_code, coupon_code].hash
147
+ [accounting_code, automatically_applied, base_coupon_code, coupon_code, hdie_from_customer].hash
138
148
  end
139
149
 
140
150
  # Builds the object from hash
@@ -72,6 +72,9 @@ module UltracartClient
72
72
 
73
73
  attr_accessor :merchant_notes
74
74
 
75
+ # True if external page view was not tracked
76
+ attr_accessor :missing_external_tracking
77
+
75
78
  attr_accessor :order_id
76
79
 
77
80
  attr_accessor :page_view_count
@@ -154,6 +157,7 @@ module UltracartClient
154
157
  :'language_iso_code' => :'language_iso_code',
155
158
  :'merchant_id' => :'merchant_id',
156
159
  :'merchant_notes' => :'merchant_notes',
160
+ :'missing_external_tracking' => :'missing_external_tracking',
157
161
  :'order_id' => :'order_id',
158
162
  :'page_view_count' => :'page_view_count',
159
163
  :'page_views' => :'page_views',
@@ -209,6 +213,7 @@ module UltracartClient
209
213
  :'language_iso_code' => :'String',
210
214
  :'merchant_id' => :'String',
211
215
  :'merchant_notes' => :'String',
216
+ :'missing_external_tracking' => :'BOOLEAN',
212
217
  :'order_id' => :'String',
213
218
  :'page_view_count' => :'Integer',
214
219
  :'page_views' => :'Array<ScreenRecordingPageView>',
@@ -343,6 +348,10 @@ module UltracartClient
343
348
  self.merchant_notes = attributes[:'merchant_notes']
344
349
  end
345
350
 
351
+ if attributes.has_key?(:'missing_external_tracking')
352
+ self.missing_external_tracking = attributes[:'missing_external_tracking']
353
+ end
354
+
346
355
  if attributes.has_key?(:'order_id')
347
356
  self.order_id = attributes[:'order_id']
348
357
  end
@@ -496,6 +505,7 @@ module UltracartClient
496
505
  language_iso_code == o.language_iso_code &&
497
506
  merchant_id == o.merchant_id &&
498
507
  merchant_notes == o.merchant_notes &&
508
+ missing_external_tracking == o.missing_external_tracking &&
499
509
  order_id == o.order_id &&
500
510
  page_view_count == o.page_view_count &&
501
511
  page_views == o.page_views &&
@@ -532,7 +542,7 @@ module UltracartClient
532
542
  # Calculates hash code according to all attributes.
533
543
  # @return [Fixnum] Hash code
534
544
  def hash
535
- [ad_platform, analytics_client_oid, analytics_session_dts, analytics_session_oid, communications_campaign_name, communications_campaign_uuid, communications_email_subject, communications_email_uuid, communications_flow_name, communications_flow_uuid, email, email_domain, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, language_iso_code, merchant_id, merchant_notes, order_id, page_view_count, page_views, preferred_language, referrer_domain, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, utm_campaign, utm_source, visitor_first_seen, visitor_number, watched, window_height, window_width].hash
545
+ [ad_platform, analytics_client_oid, analytics_session_dts, analytics_session_oid, communications_campaign_name, communications_campaign_uuid, communications_email_subject, communications_email_uuid, communications_flow_name, communications_flow_uuid, email, email_domain, end_timestamp, esp_customer_uuid, events_gz_size, events_json_key, favorite, favorites, geolocation, geolocation_country, geolocation_state, language_iso_code, merchant_id, merchant_notes, missing_external_tracking, order_id, page_view_count, page_views, preferred_language, referrer_domain, rrweb_version, screen_recording_uuid, signed_download_url, start_timestamp, storefront_oids, storefronts, tags, time_on_site, ucacid, user_agent, user_agent_raw, user_ip, user_properties, utm_campaign, utm_source, visitor_first_seen, visitor_number, watched, window_height, window_width].hash
536
546
  end
537
547
 
538
548
  # Builds the object from hash
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ScreenRecordingQueryResponse
17
+ attr_accessor :checkout_only
18
+
17
19
  attr_accessor :error
18
20
 
19
21
  attr_accessor :filter
@@ -38,6 +40,7 @@ module UltracartClient
38
40
  # Attribute mapping from ruby-style variable name to JSON key.
39
41
  def self.attribute_map
40
42
  {
43
+ :'checkout_only' => :'checkout_only',
41
44
  :'error' => :'error',
42
45
  :'filter' => :'filter',
43
46
  :'filter_values' => :'filter_values',
@@ -54,6 +57,7 @@ module UltracartClient
54
57
  # Attribute type mapping.
55
58
  def self.swagger_types
56
59
  {
60
+ :'checkout_only' => :'BOOLEAN',
57
61
  :'error' => :'Error',
58
62
  :'filter' => :'ScreenRecordingFilter',
59
63
  :'filter_values' => :'ScreenRecordingFilterValues',
@@ -75,6 +79,10 @@ module UltracartClient
75
79
  # convert string to symbol for hash key
76
80
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
77
81
 
82
+ if attributes.has_key?(:'checkout_only')
83
+ self.checkout_only = attributes[:'checkout_only']
84
+ end
85
+
78
86
  if attributes.has_key?(:'error')
79
87
  self.error = attributes[:'error']
80
88
  end
@@ -138,6 +146,7 @@ module UltracartClient
138
146
  def ==(o)
139
147
  return true if self.equal?(o)
140
148
  self.class == o.class &&
149
+ checkout_only == o.checkout_only &&
141
150
  error == o.error &&
142
151
  filter == o.filter &&
143
152
  filter_values == o.filter_values &&
@@ -159,7 +168,7 @@ module UltracartClient
159
168
  # Calculates hash code according to all attributes.
160
169
  # @return [Fixnum] Hash code
161
170
  def hash
162
- [error, filter, filter_values, histogram_data, histogram_interval, histogram_start_dts, metadata, screen_recordings, success, warning].hash
171
+ [checkout_only, error, filter, filter_values, histogram_data, histogram_interval, histogram_start_dts, metadata, screen_recordings, success, warning].hash
163
172
  end
164
173
 
165
174
  # Builds the object from hash
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ScreenRecordingResponse
17
+ attr_accessor :checkout_only
18
+
17
19
  attr_accessor :error
18
20
 
19
21
  attr_accessor :metadata
@@ -28,6 +30,7 @@ module UltracartClient
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
33
+ :'checkout_only' => :'checkout_only',
31
34
  :'error' => :'error',
32
35
  :'metadata' => :'metadata',
33
36
  :'screen_recording' => :'screen_recording',
@@ -39,6 +42,7 @@ module UltracartClient
39
42
  # Attribute type mapping.
40
43
  def self.swagger_types
41
44
  {
45
+ :'checkout_only' => :'BOOLEAN',
42
46
  :'error' => :'Error',
43
47
  :'metadata' => :'ResponseMetadata',
44
48
  :'screen_recording' => :'ScreenRecording',
@@ -55,6 +59,10 @@ module UltracartClient
55
59
  # convert string to symbol for hash key
56
60
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
61
 
62
+ if attributes.has_key?(:'checkout_only')
63
+ self.checkout_only = attributes[:'checkout_only']
64
+ end
65
+
58
66
  if attributes.has_key?(:'error')
59
67
  self.error = attributes[:'error']
60
68
  end
@@ -94,6 +102,7 @@ module UltracartClient
94
102
  def ==(o)
95
103
  return true if self.equal?(o)
96
104
  self.class == o.class &&
105
+ checkout_only == o.checkout_only &&
97
106
  error == o.error &&
98
107
  metadata == o.metadata &&
99
108
  screen_recording == o.screen_recording &&
@@ -110,7 +119,7 @@ module UltracartClient
110
119
  # Calculates hash code according to all attributes.
111
120
  # @return [Fixnum] Hash code
112
121
  def hash
113
- [error, metadata, screen_recording, success, warning].hash
122
+ [checkout_only, error, metadata, screen_recording, success, warning].hash
114
123
  end
115
124
 
116
125
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.2.9'
14
+ VERSION = '3.2.14'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-07 00:00:00.000000000 Z
11
+ date: 2021-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus