ultracart_api 3.11.36 → 3.11.38

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dd49fb759aae452542ae8e5d360e61d77eedd6a6b1ceecf54294d603d9840103
4
- data.tar.gz: faf31901feac13f866647bbd71bfa484e4484ce5c61713057011b4553169df36
3
+ metadata.gz: 7c68f942b13640bd452273ef88c945b45a5b090c0bffacdd38ec5eb25494b996
4
+ data.tar.gz: 82a829b0b39cee3fdc57fbfc6bca303f4d0554b2d9f094326de3e4896ef8b9d8
5
5
  SHA512:
6
- metadata.gz: e5970f27fac6042e83dd750e487ce19ee703d4293623983d5c7d4b13ce36b9940866694607d5273a8bc32928ecbf5210835d862a1027c090bb67c0e26d222e31
7
- data.tar.gz: 50b978d12fe51ab1a8f953f166a201a81a99637ec2ae01932930d7ce96f5cc3465ca1e2ff6b96370aa87c7336e38ccb5d1f10416affb156d1e78efa37ccbd851
6
+ metadata.gz: 84c3a8e42c63921f91fee234b73fc1e837bf9a1ae06ea27d56166992198bfe9fccab296b8c2fb1c4f47ee8437771b43e79b1999d44e0cc8914fd08d63b8013fa
7
+ data.tar.gz: 55c6185e883ec2526a1ad08ae6fa3b5cc7c0c722124fe44f127287bb4b501683881ba13c6849b11729478bb069d49c78f84f8e8af41f0b82733261dac0663af8
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.11.36
10
+ - Package version: 3.11.38
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
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.11.36.gem
27
+ gem install ./ultracart_api-3.11.38.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.11.36.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.11.38.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.11.36'
35
+ gem 'ultracart_api', '~> 3.11.38'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -333,6 +333,7 @@ Class | Method | HTTP request | Description
333
333
  *UltracartClient::ItemApi* | [**get_inventory_snapshot**](docs/ItemApi.md#get_inventory_snapshot) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
334
334
  *UltracartClient::ItemApi* | [**get_item**](docs/ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
335
335
  *UltracartClient::ItemApi* | [**get_item_by_merchant_item_id**](docs/ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
336
+ *UltracartClient::ItemApi* | [**get_item_shipping_distribution_center_by_code**](docs/ItemApi.md#get_item_shipping_distribution_center_by_code) | **GET** /item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code} | Retrieve an item shipping distribution center
336
337
  *UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
337
338
  *UltracartClient::ItemApi* | [**get_pricing_tiers**](docs/ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
338
339
  *UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
@@ -344,6 +345,7 @@ Class | Method | HTTP request | Description
344
345
  *UltracartClient::ItemApi* | [**insert_update_item_content_attribute**](docs/ItemApi.md#insert_update_item_content_attribute) | **POST** /item/items/{merchant_item_oid}/content/attributes | Upsert an item content attribute
345
346
  *UltracartClient::ItemApi* | [**update_digital_item**](docs/ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
346
347
  *UltracartClient::ItemApi* | [**update_item**](docs/ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
348
+ *UltracartClient::ItemApi* | [**update_item_shipping_distribution_center_by_code**](docs/ItemApi.md#update_item_shipping_distribution_center_by_code) | **PUT** /item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code} | Update an item shipping distribution center
347
349
  *UltracartClient::ItemApi* | [**update_items**](docs/ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
348
350
  *UltracartClient::ItemApi* | [**update_review**](docs/ItemApi.md#update_review) | **PUT** /item/items/{merchant_item_oid}/reviews/{review_oid} | Update a review
349
351
  *UltracartClient::ItemApi* | [**upload_temporary_multimedia**](docs/ItemApi.md#upload_temporary_multimedia) | **POST** /item/temp_multimedia | Upload an image to the temporary multimedia.
@@ -1243,6 +1245,7 @@ Class | Method | HTTP request | Description
1243
1245
  - [UltracartClient::ItemShippingDestinationMarkup](docs/ItemShippingDestinationMarkup.md)
1244
1246
  - [UltracartClient::ItemShippingDestinationRestriction](docs/ItemShippingDestinationRestriction.md)
1245
1247
  - [UltracartClient::ItemShippingDistributionCenter](docs/ItemShippingDistributionCenter.md)
1248
+ - [UltracartClient::ItemShippingDistributionCenterResponse](docs/ItemShippingDistributionCenterResponse.md)
1246
1249
  - [UltracartClient::ItemShippingMethod](docs/ItemShippingMethod.md)
1247
1250
  - [UltracartClient::ItemShippingPackageRequirement](docs/ItemShippingPackageRequirement.md)
1248
1251
  - [UltracartClient::ItemTag](docs/ItemTag.md)
@@ -1602,6 +1605,8 @@ Not every change is committed to every SDK.
1602
1605
 
1603
1606
  | Version | Date | Comments |
1604
1607
  | --: | :-: | --- |
1608
+ | 3.11.38 | 12/29/2025 | conversations - AI agent level capabilities |
1609
+ | 3.11.37 | 12/29/2025 | conversations - pbx agent AI flag |
1605
1610
  | 3.11.36 | 12/22/2025 | conversation - agent auth worker token v2 |
1606
1611
  | 3.11.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
1607
1612
  | 3.11.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **ai** | **BOOLEAN** | AI powered chat bot | [optional]
7
+ **ai_capabilities** | [**ConversationVirtualAgentCapabilities**](ConversationVirtualAgentCapabilities.md) | | [optional]
7
8
  **ai_chat_instructions** | **String** | Additional instructions for this AI when handle web chats | [optional]
8
9
  **ai_persona** | **String** | Persona of this AI agent | [optional]
9
10
  **ai_sms_instructions** | **String** | Additional instructions for this AI when handle SMS messages | [optional]
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **ai** | **BOOLEAN** | Flag to indicate if the agent is AI | [optional]
6
7
  **cellphone** | **String** | Cellphone number of agent in E.164 format | [optional]
7
8
  **conversation_pbx_agent_uuid** | **String** | Conversation Pbx Agent unique identifier | [optional]
8
9
  **extension** | **Integer** | Extension | [optional]
data/docs/ItemApi.md CHANGED
@@ -13,6 +13,7 @@ Method | HTTP request | Description
13
13
  [**get_inventory_snapshot**](ItemApi.md#get_inventory_snapshot) | **GET** /item/items/inventory_snapshot | Retrieve a list of item inventories. This method may be called once every 15 minutes. More than that will result in a 429 response.
14
14
  [**get_item**](ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
15
15
  [**get_item_by_merchant_item_id**](ItemApi.md#get_item_by_merchant_item_id) | **GET** /item/items/merchant_item_id/{merchant_item_id} | Retrieve an item by item id
16
+ [**get_item_shipping_distribution_center_by_code**](ItemApi.md#get_item_shipping_distribution_center_by_code) | **GET** /item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code} | Retrieve an item shipping distribution center
16
17
  [**get_items**](ItemApi.md#get_items) | **GET** /item/items | Retrieve items
17
18
  [**get_pricing_tiers**](ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
18
19
  [**get_review**](ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
@@ -24,6 +25,7 @@ Method | HTTP request | Description
24
25
  [**insert_update_item_content_attribute**](ItemApi.md#insert_update_item_content_attribute) | **POST** /item/items/{merchant_item_oid}/content/attributes | Upsert an item content attribute
25
26
  [**update_digital_item**](ItemApi.md#update_digital_item) | **PUT** /item/digital_library/{digital_item_oid} | Updates a file within the digital library
26
27
  [**update_item**](ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
28
+ [**update_item_shipping_distribution_center_by_code**](ItemApi.md#update_item_shipping_distribution_center_by_code) | **PUT** /item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code} | Update an item shipping distribution center
27
29
  [**update_items**](ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
28
30
  [**update_review**](ItemApi.md#update_review) | **PUT** /item/items/{merchant_item_oid}/reviews/{review_oid} | Update a review
29
31
  [**upload_temporary_multimedia**](ItemApi.md#upload_temporary_multimedia) | **POST** /item/temp_multimedia | Upload an image to the temporary multimedia.
@@ -497,6 +499,65 @@ Name | Type | Description | Notes
497
499
 
498
500
 
499
501
 
502
+ # **get_item_shipping_distribution_center_by_code**
503
+ > ItemShippingDistributionCenterResponse get_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, opts)
504
+
505
+ Retrieve an item shipping distribution center
506
+
507
+ Retrieve an item shipping distribution center.
508
+
509
+ ### Example
510
+ ```ruby
511
+ # load the gem
512
+ require 'ultracart_api'
513
+
514
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
515
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
516
+ api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
517
+
518
+
519
+ merchant_item_oid = 56 # Integer | The item oid to retrieve.
520
+
521
+ distribution_center_code = 'distribution_center_code_example' # String |
522
+
523
+ opts = {
524
+ _expand: '_expand_example', # String | The object expansion to perform on the result. See documentation for examples
525
+ _placeholders: true # BOOLEAN | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
526
+ }
527
+
528
+ begin
529
+ #Retrieve an item shipping distribution center
530
+ result = api_instance.get_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, opts)
531
+ p result
532
+ rescue UltracartClient::ApiError => e
533
+ puts "Exception when calling ItemApi->get_item_shipping_distribution_center_by_code: #{e}"
534
+ end
535
+ ```
536
+
537
+ ### Parameters
538
+
539
+ Name | Type | Description | Notes
540
+ ------------- | ------------- | ------------- | -------------
541
+ **merchant_item_oid** | **Integer**| The item oid to retrieve. |
542
+ **distribution_center_code** | **String**| |
543
+ **_expand** | **String**| The object expansion to perform on the result. See documentation for examples | [optional]
544
+ **_placeholders** | **BOOLEAN**| Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional]
545
+
546
+ ### Return type
547
+
548
+ [**ItemShippingDistributionCenterResponse**](ItemShippingDistributionCenterResponse.md)
549
+
550
+ ### Authorization
551
+
552
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
553
+
554
+ ### HTTP request headers
555
+
556
+ - **Content-Type**: application/json
557
+ - **Accept**: application/json
558
+
559
+
560
+
500
561
  # **get_items**
501
562
  > ItemsResponse get_items(opts)
502
563
 
@@ -1100,6 +1161,61 @@ Name | Type | Description | Notes
1100
1161
 
1101
1162
 
1102
1163
 
1164
+ # **update_item_shipping_distribution_center_by_code**
1165
+ > update_item_shipping_distribution_center_by_code(item_shipping_distribution_center, merchant_item_oid, distribution_center_code)
1166
+
1167
+ Update an item shipping distribution center
1168
+
1169
+ Update an item shipping distribution center
1170
+
1171
+ ### Example
1172
+ ```ruby
1173
+ # load the gem
1174
+ require 'ultracart_api'
1175
+
1176
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
1177
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
1178
+ api_instance = UltracartClient::ItemApi.new_using_api_key(simple_key, false, false)
1179
+
1180
+
1181
+ item_shipping_distribution_center = UltracartClient::ItemShippingDistributionCenter.new # ItemShippingDistributionCenter | Item shipping distribution center
1182
+
1183
+ merchant_item_oid = 56 # Integer | The item oid to update.
1184
+
1185
+ distribution_center_code = 'distribution_center_code_example' # String |
1186
+
1187
+
1188
+ begin
1189
+ #Update an item shipping distribution center
1190
+ api_instance.update_item_shipping_distribution_center_by_code(item_shipping_distribution_center, merchant_item_oid, distribution_center_code)
1191
+ rescue UltracartClient::ApiError => e
1192
+ puts "Exception when calling ItemApi->update_item_shipping_distribution_center_by_code: #{e}"
1193
+ end
1194
+ ```
1195
+
1196
+ ### Parameters
1197
+
1198
+ Name | Type | Description | Notes
1199
+ ------------- | ------------- | ------------- | -------------
1200
+ **item_shipping_distribution_center** | [**ItemShippingDistributionCenter**](ItemShippingDistributionCenter.md)| Item shipping distribution center |
1201
+ **merchant_item_oid** | **Integer**| The item oid to update. |
1202
+ **distribution_center_code** | **String**| |
1203
+
1204
+ ### Return type
1205
+
1206
+ nil (empty response body)
1207
+
1208
+ ### Authorization
1209
+
1210
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1211
+
1212
+ ### HTTP request headers
1213
+
1214
+ - **Content-Type**: application/json; charset=UTF-8
1215
+ - **Accept**: application/json
1216
+
1217
+
1218
+
1103
1219
  # **update_items**
1104
1220
  > ItemsResponse update_items(items_request, opts)
1105
1221
 
@@ -0,0 +1,12 @@
1
+ # UltracartClient::ItemShippingDistributionCenterResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **item_shipping_distribution_center** | [**ItemShippingDistributionCenter**](ItemShippingDistributionCenter.md) | | [optional]
8
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -548,6 +548,73 @@ module UltracartClient
548
548
  end
549
549
  return data, status_code, headers
550
550
  end
551
+ # Retrieve an item shipping distribution center
552
+ # Retrieve an item shipping distribution center.
553
+ # @param merchant_item_oid The item oid to retrieve.
554
+ # @param distribution_center_code
555
+ # @param [Hash] opts the optional parameters
556
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
557
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
558
+ # @return [ItemShippingDistributionCenterResponse]
559
+ def get_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, opts = {})
560
+ data, _status_code, _headers = get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts)
561
+ data
562
+ end
563
+
564
+ # Retrieve an item shipping distribution center
565
+ # Retrieve an item shipping distribution center.
566
+ # @param merchant_item_oid The item oid to retrieve.
567
+ # @param distribution_center_code
568
+ # @param [Hash] opts the optional parameters
569
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
570
+ # @option opts [BOOLEAN] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
571
+ # @return [Array<(ItemShippingDistributionCenterResponse, Fixnum, Hash)>] ItemShippingDistributionCenterResponse data, response status code and response headers
572
+ def get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts = {})
573
+ if @api_client.config.debugging
574
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_item_shipping_distribution_center_by_code ...'
575
+ end
576
+ # verify the required parameter 'merchant_item_oid' is set
577
+ if @api_client.config.client_side_validation && merchant_item_oid.nil?
578
+ fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_item_shipping_distribution_center_by_code"
579
+ end
580
+ # verify the required parameter 'distribution_center_code' is set
581
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
582
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling ItemApi.get_item_shipping_distribution_center_by_code"
583
+ end
584
+ # resource path
585
+ local_var_path = '/item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code}'.sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s).sub('{' + 'distribution_center_code' + '}', distribution_center_code.to_s)
586
+
587
+ # query parameters
588
+ query_params = {}
589
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
590
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
591
+
592
+ # header parameters
593
+ header_params = {}
594
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
595
+ # HTTP header 'Accept' (if needed)
596
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
597
+ # HTTP header 'Content-Type'
598
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
599
+
600
+ # form parameters
601
+ form_params = {}
602
+
603
+ # http body (model)
604
+ post_body = nil
605
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
606
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
607
+ :header_params => header_params,
608
+ :query_params => query_params,
609
+ :form_params => form_params,
610
+ :body => post_body,
611
+ :auth_names => auth_names,
612
+ :return_type => 'ItemShippingDistributionCenterResponse')
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "API called: ItemApi#get_item_shipping_distribution_center_by_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
+ end
616
+ return data, status_code, headers
617
+ end
551
618
  # Retrieve items
552
619
  # Retrieves a group of items from the account. If no parameters are specified, all items will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
553
620
  # @param [Hash] opts the optional parameters
@@ -1221,6 +1288,72 @@ module UltracartClient
1221
1288
  end
1222
1289
  return data, status_code, headers
1223
1290
  end
1291
+ # Update an item shipping distribution center
1292
+ # Update an item shipping distribution center
1293
+ # @param item_shipping_distribution_center Item shipping distribution center
1294
+ # @param merchant_item_oid The item oid to update.
1295
+ # @param distribution_center_code
1296
+ # @param [Hash] opts the optional parameters
1297
+ # @return [nil]
1298
+ def update_item_shipping_distribution_center_by_code(item_shipping_distribution_center, merchant_item_oid, distribution_center_code, opts = {})
1299
+ update_item_shipping_distribution_center_by_code_with_http_info(item_shipping_distribution_center, merchant_item_oid, distribution_center_code, opts)
1300
+ nil
1301
+ end
1302
+
1303
+ # Update an item shipping distribution center
1304
+ # Update an item shipping distribution center
1305
+ # @param item_shipping_distribution_center Item shipping distribution center
1306
+ # @param merchant_item_oid The item oid to update.
1307
+ # @param distribution_center_code
1308
+ # @param [Hash] opts the optional parameters
1309
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1310
+ def update_item_shipping_distribution_center_by_code_with_http_info(item_shipping_distribution_center, merchant_item_oid, distribution_center_code, opts = {})
1311
+ if @api_client.config.debugging
1312
+ @api_client.config.logger.debug 'Calling API: ItemApi.update_item_shipping_distribution_center_by_code ...'
1313
+ end
1314
+ # verify the required parameter 'item_shipping_distribution_center' is set
1315
+ if @api_client.config.client_side_validation && item_shipping_distribution_center.nil?
1316
+ fail ArgumentError, "Missing the required parameter 'item_shipping_distribution_center' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1317
+ end
1318
+ # verify the required parameter 'merchant_item_oid' is set
1319
+ if @api_client.config.client_side_validation && merchant_item_oid.nil?
1320
+ fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1321
+ end
1322
+ # verify the required parameter 'distribution_center_code' is set
1323
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
1324
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1325
+ end
1326
+ # resource path
1327
+ local_var_path = '/item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code}'.sub('{' + 'merchant_item_oid' + '}', merchant_item_oid.to_s).sub('{' + 'distribution_center_code' + '}', distribution_center_code.to_s)
1328
+
1329
+ # query parameters
1330
+ query_params = {}
1331
+
1332
+ # header parameters
1333
+ header_params = {}
1334
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1335
+ # HTTP header 'Accept' (if needed)
1336
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1337
+ # HTTP header 'Content-Type'
1338
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
1339
+
1340
+ # form parameters
1341
+ form_params = {}
1342
+
1343
+ # http body (model)
1344
+ post_body = @api_client.object_to_http_body(item_shipping_distribution_center)
1345
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
1346
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1347
+ :header_params => header_params,
1348
+ :query_params => query_params,
1349
+ :form_params => form_params,
1350
+ :body => post_body,
1351
+ :auth_names => auth_names)
1352
+ if @api_client.config.debugging
1353
+ @api_client.config.logger.debug "API called: ItemApi#update_item_shipping_distribution_center_by_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1354
+ end
1355
+ return data, status_code, headers
1356
+ end
1224
1357
  # Update multiple items
1225
1358
  # Update multiple item on the UltraCart account.
1226
1359
  # @param items_request Items to update (synchronous maximum 20 / asynchronous maximum 100)
@@ -17,6 +17,8 @@ module UltracartClient
17
17
  # AI powered chat bot
18
18
  attr_accessor :ai
19
19
 
20
+ attr_accessor :ai_capabilities
21
+
20
22
  # Additional instructions for this AI when handle web chats
21
23
  attr_accessor :ai_chat_instructions
22
24
 
@@ -85,6 +87,7 @@ module UltracartClient
85
87
  def self.attribute_map
86
88
  {
87
89
  :'ai' => :'ai',
90
+ :'ai_capabilities' => :'ai_capabilities',
88
91
  :'ai_chat_instructions' => :'ai_chat_instructions',
89
92
  :'ai_persona' => :'ai_persona',
90
93
  :'ai_sms_instructions' => :'ai_sms_instructions',
@@ -106,6 +109,7 @@ module UltracartClient
106
109
  def self.swagger_types
107
110
  {
108
111
  :'ai' => :'BOOLEAN',
112
+ :'ai_capabilities' => :'ConversationVirtualAgentCapabilities',
109
113
  :'ai_chat_instructions' => :'String',
110
114
  :'ai_persona' => :'String',
111
115
  :'ai_sms_instructions' => :'String',
@@ -135,6 +139,10 @@ module UltracartClient
135
139
  self.ai = attributes[:'ai']
136
140
  end
137
141
 
142
+ if attributes.has_key?(:'ai_capabilities')
143
+ self.ai_capabilities = attributes[:'ai_capabilities']
144
+ end
145
+
138
146
  if attributes.has_key?(:'ai_chat_instructions')
139
147
  self.ai_chat_instructions = attributes[:'ai_chat_instructions']
140
148
  end
@@ -227,6 +235,7 @@ module UltracartClient
227
235
  return true if self.equal?(o)
228
236
  self.class == o.class &&
229
237
  ai == o.ai &&
238
+ ai_capabilities == o.ai_capabilities &&
230
239
  ai_chat_instructions == o.ai_chat_instructions &&
231
240
  ai_persona == o.ai_persona &&
232
241
  ai_sms_instructions == o.ai_sms_instructions &&
@@ -252,7 +261,7 @@ module UltracartClient
252
261
  # Calculates hash code according to all attributes.
253
262
  # @return [Fixnum] Hash code
254
263
  def hash
255
- [ai, ai_chat_instructions, ai_persona, ai_sms_instructions, ai_ticket_instructions, chat_limit, default_language_iso_code, default_status, display_name, name, profile_image_upload_key, profile_image_url, user_id, zohodesk_classifications, zohodesk_departments].hash
264
+ [ai, ai_capabilities, ai_chat_instructions, ai_persona, ai_sms_instructions, ai_ticket_instructions, chat_limit, default_language_iso_code, default_status, display_name, name, profile_image_upload_key, profile_image_url, user_id, zohodesk_classifications, zohodesk_departments].hash
256
265
  end
257
266
 
258
267
  # Builds the object from hash
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ConversationPbxAgent
17
+ # Flag to indicate if the agent is AI
18
+ attr_accessor :ai
19
+
17
20
  # Cellphone number of agent in E.164 format
18
21
  attr_accessor :cellphone
19
22
 
@@ -65,6 +68,7 @@ module UltracartClient
65
68
  # Attribute mapping from ruby-style variable name to JSON key.
66
69
  def self.attribute_map
67
70
  {
71
+ :'ai' => :'ai',
68
72
  :'cellphone' => :'cellphone',
69
73
  :'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
70
74
  :'extension' => :'extension',
@@ -87,6 +91,7 @@ module UltracartClient
87
91
  # Attribute type mapping.
88
92
  def self.swagger_types
89
93
  {
94
+ :'ai' => :'BOOLEAN',
90
95
  :'cellphone' => :'String',
91
96
  :'conversation_pbx_agent_uuid' => :'String',
92
97
  :'extension' => :'Integer',
@@ -114,6 +119,10 @@ module UltracartClient
114
119
  # convert string to symbol for hash key
115
120
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
116
121
 
122
+ if attributes.has_key?(:'ai')
123
+ self.ai = attributes[:'ai']
124
+ end
125
+
117
126
  if attributes.has_key?(:'cellphone')
118
127
  self.cellphone = attributes[:'cellphone']
119
128
  end
@@ -302,6 +311,7 @@ module UltracartClient
302
311
  def ==(o)
303
312
  return true if self.equal?(o)
304
313
  self.class == o.class &&
314
+ ai == o.ai &&
305
315
  cellphone == o.cellphone &&
306
316
  conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
307
317
  extension == o.extension &&
@@ -329,7 +339,7 @@ module UltracartClient
329
339
  # Calculates hash code according to all attributes.
330
340
  # @return [Fixnum] Hash code
331
341
  def hash
332
- [cellphone, conversation_pbx_agent_uuid, extension, forward_calls_to_cellphone, full_name, login, merchant_id, personal_conversation_pbx_voicemail_mailbox_uuid, record_outgoing_automatically, shared_conversation_pbx_voicemail_mailbox_uuid, twilio_taskrouter_worker_id, unavailable_play_audio_uuid, unavailable_say, unavailable_say_voice, user_id, voicemail].hash
342
+ [ai, cellphone, conversation_pbx_agent_uuid, extension, forward_calls_to_cellphone, full_name, login, merchant_id, personal_conversation_pbx_voicemail_mailbox_uuid, record_outgoing_automatically, shared_conversation_pbx_voicemail_mailbox_uuid, twilio_taskrouter_worker_id, unavailable_play_audio_uuid, unavailable_say, unavailable_say_voice, user_id, voicemail].hash
333
343
  end
334
344
 
335
345
  # Builds the object from hash
@@ -94,7 +94,7 @@ module UltracartClient
94
94
  # Check to see if the all the properties in the model are valid
95
95
  # @return true if the model is valid
96
96
  def valid?
97
- type_validator = EnumAttributeValidator.new('String', ['System', 'UserDefined'])
97
+ type_validator = EnumAttributeValidator.new('String', ['System', 'UserDefined', 'Addon', 'Complementary'])
98
98
  return false unless type_validator.valid?(@type)
99
99
  true
100
100
  end
@@ -102,7 +102,7 @@ module UltracartClient
102
102
  # Custom attribute writer method checking allowed values (enum).
103
103
  # @param [Object] type Object to be assigned
104
104
  def type=(type)
105
- validator = EnumAttributeValidator.new('String', ['System', 'UserDefined'])
105
+ validator = EnumAttributeValidator.new('String', ['System', 'UserDefined', 'Addon', 'Complementary'])
106
106
  unless validator.valid?(type)
107
107
  fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
108
108
  end
@@ -0,0 +1,221 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class ItemShippingDistributionCenterResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :item_shipping_distribution_center
20
+
21
+ attr_accessor :metadata
22
+
23
+ # Indicates if API call was successful
24
+ attr_accessor :success
25
+
26
+ attr_accessor :warning
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'error' => :'error',
32
+ :'item_shipping_distribution_center' => :'itemShippingDistributionCenter',
33
+ :'metadata' => :'metadata',
34
+ :'success' => :'success',
35
+ :'warning' => :'warning'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'error' => :'Error',
43
+ :'item_shipping_distribution_center' => :'ItemShippingDistributionCenter',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'success' => :'BOOLEAN',
46
+ :'warning' => :'Warning'
47
+ }
48
+ end
49
+
50
+ # Initializes the object
51
+ # @param [Hash] attributes Model attributes in the form of hash
52
+ def initialize(attributes = {})
53
+ return unless attributes.is_a?(Hash)
54
+
55
+ # convert string to symbol for hash key
56
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
+
58
+ if attributes.has_key?(:'error')
59
+ self.error = attributes[:'error']
60
+ end
61
+
62
+ if attributes.has_key?(:'itemShippingDistributionCenter')
63
+ self.item_shipping_distribution_center = attributes[:'itemShippingDistributionCenter']
64
+ end
65
+
66
+ if attributes.has_key?(:'metadata')
67
+ self.metadata = attributes[:'metadata']
68
+ end
69
+
70
+ if attributes.has_key?(:'success')
71
+ self.success = attributes[:'success']
72
+ end
73
+
74
+ if attributes.has_key?(:'warning')
75
+ self.warning = attributes[:'warning']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ error == o.error &&
98
+ item_shipping_distribution_center == o.item_shipping_distribution_center &&
99
+ metadata == o.metadata &&
100
+ success == o.success &&
101
+ warning == o.warning
102
+ end
103
+
104
+ # @see the `==` method
105
+ # @param [Object] Object to be compared
106
+ def eql?(o)
107
+ self == o
108
+ end
109
+
110
+ # Calculates hash code according to all attributes.
111
+ # @return [Fixnum] Hash code
112
+ def hash
113
+ [error, item_shipping_distribution_center, metadata, success, warning].hash
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.swagger_types.each_pair do |key, type|
122
+ if type =~ /\AArray<(.*)>/i
123
+ # check to ensure the input is an array given that the attribute
124
+ # is documented as an array but the input is not
125
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
126
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
+ end
128
+ elsif !attributes[self.class.attribute_map[key]].nil?
129
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
131
+ end
132
+
133
+ self
134
+ end
135
+
136
+ # Deserializes the data based on type
137
+ # @param string type Data type
138
+ # @param string value Value to be deserialized
139
+ # @return [Object] Deserialized data
140
+ def _deserialize(type, value)
141
+ case type.to_sym
142
+ when :DateTime
143
+ DateTime.parse(value)
144
+ when :Date
145
+ Date.parse(value)
146
+ when :String
147
+ value.to_s
148
+ when :Integer
149
+ value.to_i
150
+ when :Float
151
+ value.to_f
152
+ when :BOOLEAN
153
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
+ true
155
+ else
156
+ false
157
+ end
158
+ when :Object
159
+ # generic object (usually a Hash), return directly
160
+ value
161
+ when /\AArray<(?<inner_type>.+)>\z/
162
+ inner_type = Regexp.last_match[:inner_type]
163
+ value.map { |v| _deserialize(inner_type, v) }
164
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
+ k_type = Regexp.last_match[:k_type]
166
+ v_type = Regexp.last_match[:v_type]
167
+ {}.tap do |hash|
168
+ value.each do |k, v|
169
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
+ end
171
+ end
172
+ else # model
173
+ temp_model = UltracartClient.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.11.36'
14
+ VERSION = '3.11.38'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -634,6 +634,7 @@ require 'ultracart_api/models/item_shipping_case'
634
634
  require 'ultracart_api/models/item_shipping_destination_markup'
635
635
  require 'ultracart_api/models/item_shipping_destination_restriction'
636
636
  require 'ultracart_api/models/item_shipping_distribution_center'
637
+ require 'ultracart_api/models/item_shipping_distribution_center_response'
637
638
  require 'ultracart_api/models/item_shipping_method'
638
639
  require 'ultracart_api/models/item_shipping_package_requirement'
639
640
  require 'ultracart_api/models/item_tag'
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.11.36
4
+ version: 3.11.38
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-22 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -850,6 +850,7 @@ files:
850
850
  - docs/ItemShippingDestinationMarkup.md
851
851
  - docs/ItemShippingDestinationRestriction.md
852
852
  - docs/ItemShippingDistributionCenter.md
853
+ - docs/ItemShippingDistributionCenterResponse.md
853
854
  - docs/ItemShippingMethod.md
854
855
  - docs/ItemShippingPackageRequirement.md
855
856
  - docs/ItemTag.md
@@ -1787,6 +1788,7 @@ files:
1787
1788
  - lib/ultracart_api/models/item_shipping_destination_markup.rb
1788
1789
  - lib/ultracart_api/models/item_shipping_destination_restriction.rb
1789
1790
  - lib/ultracart_api/models/item_shipping_distribution_center.rb
1791
+ - lib/ultracart_api/models/item_shipping_distribution_center_response.rb
1790
1792
  - lib/ultracart_api/models/item_shipping_method.rb
1791
1793
  - lib/ultracart_api/models/item_shipping_package_requirement.rb
1792
1794
  - lib/ultracart_api/models/item_tag.rb