ultracart_api 4.1.36 → 4.1.37

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: 14c18a04e160aee6ee7e468b8ec7bfa46e6c19ee035722bcd5299562e98f8c91
4
- data.tar.gz: 1d3b3e99b66afb783bfaf28fe79d8fed448436f3209a3f157e6d286aeb77e3e6
3
+ metadata.gz: 62f423d8f4f532385e804e51e3dcff23522142ec1fb9f222f7b25a132f3407e2
4
+ data.tar.gz: 1e01b1992f140ca9176c48068949737479ffaf31cb8aafd125774bc33806def9
5
5
  SHA512:
6
- metadata.gz: d746c7712a7a2eb0527ad9584859b2f14b1fa4891c4fa011f205fd00d5bade02508da37b214c2a7741a154008ded03904a63ec58aa98390c71c95a495f6d891c
7
- data.tar.gz: 7988584677a5047ee4a48cacc91a707729aff0ea2e10f68fe67b95bb8fbed57e6f4cfd7a15a199365b96cd2c4b54fc17ceb7244d33c1e89c20b293d67cbe7170
6
+ metadata.gz: a1d2f873decaa070a3339d13cd67fae22398b2a2fec6abb57d159257009583688ca1d77bb15382952a8f9164d8968ca1e41d59d40272b70de5ff318beac0c985
7
+ data.tar.gz: a1f1e068c769f6c984495d3a1c68b48552f4e22338cce8a4dc6aad4f580e95d533472c82b9c4744d25ed6addf66d67e9fde826a739642d4d1d56ef5da8c03d74
data/README.md CHANGED
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.1.36
10
+ - Package version: 4.1.37
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  - For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
13
13
 
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
16
16
  gemfile:
17
17
 
18
18
  ```shell
19
- gem 'ultracart_api', '4.1.36'
19
+ gem 'ultracart_api', '4.1.37'
20
20
  ```
21
21
 
22
22
  install:
@@ -329,6 +329,7 @@ Class | Method | HTTP request | Description
329
329
  *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.
330
330
  *UltracartClient::ItemApi* | [**get_item**](docs/ItemApi.md#get_item) | **GET** /item/items/{merchant_item_oid} | Retrieve an item
331
331
  *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
332
+ *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
332
333
  *UltracartClient::ItemApi* | [**get_items**](docs/ItemApi.md#get_items) | **GET** /item/items | Retrieve items
333
334
  *UltracartClient::ItemApi* | [**get_pricing_tiers**](docs/ItemApi.md#get_pricing_tiers) | **GET** /item/pricing_tiers | Retrieve pricing tiers
334
335
  *UltracartClient::ItemApi* | [**get_review**](docs/ItemApi.md#get_review) | **GET** /item/items/{merchant_item_oid}/reviews/{review_oid} | Get a review
@@ -340,6 +341,7 @@ Class | Method | HTTP request | Description
340
341
  *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
341
342
  *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
342
343
  *UltracartClient::ItemApi* | [**update_item**](docs/ItemApi.md#update_item) | **PUT** /item/items/{merchant_item_oid} | Update an item
344
+ *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
343
345
  *UltracartClient::ItemApi* | [**update_items**](docs/ItemApi.md#update_items) | **PUT** /item/items/batch | Update multiple items
344
346
  *UltracartClient::ItemApi* | [**update_review**](docs/ItemApi.md#update_review) | **PUT** /item/items/{merchant_item_oid}/reviews/{review_oid} | Update a review
345
347
  *UltracartClient::ItemApi* | [**upload_temporary_multimedia**](docs/ItemApi.md#upload_temporary_multimedia) | **POST** /item/temp_multimedia | Upload an image to the temporary multimedia.
@@ -1238,6 +1240,7 @@ Class | Method | HTTP request | Description
1238
1240
  - [UltracartClient::ItemShippingDestinationMarkup](docs/ItemShippingDestinationMarkup.md)
1239
1241
  - [UltracartClient::ItemShippingDestinationRestriction](docs/ItemShippingDestinationRestriction.md)
1240
1242
  - [UltracartClient::ItemShippingDistributionCenter](docs/ItemShippingDistributionCenter.md)
1243
+ - [UltracartClient::ItemShippingDistributionCenterResponse](docs/ItemShippingDistributionCenterResponse.md)
1241
1244
  - [UltracartClient::ItemShippingMethod](docs/ItemShippingMethod.md)
1242
1245
  - [UltracartClient::ItemShippingPackageRequirement](docs/ItemShippingPackageRequirement.md)
1243
1246
  - [UltracartClient::ItemTag](docs/ItemTag.md)
@@ -1600,6 +1603,7 @@ Not every change is committed to every SDK.
1600
1603
 
1601
1604
  | Version | Date | Comments |
1602
1605
  | --: | :-: | --- |
1606
+ | 4.1.37 | 12/29/2025 | conversations - pbx agent AI flag |
1603
1607
  | 4.1.36 | 12/22/2025 | conversation - agent auth worker token v2 |
1604
1608
  | 4.1.35 | 12/02/2025 | caching option added to getCustomers, created new method searchCustomers |
1605
1609
  | 4.1.34 | 12/02/2025 | coupons - added optional free specific shipping method to two coupons |
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **ai** | **Boolean** | Flag to indicate if the agent is AI | [optional] |
7
8
  | **cellphone** | **String** | Cellphone number of agent in E.164 format | [optional] |
8
9
  | **conversation_pbx_agent_uuid** | **String** | Conversation Pbx Agent unique identifier | [optional] |
9
10
  | **extension** | **Integer** | Extension | [optional] |
@@ -27,6 +28,7 @@
27
28
  require 'ultracart_api'
28
29
 
29
30
  instance = UltracartClient::ConversationPbxAgent.new(
31
+ ai: null,
30
32
  cellphone: null,
31
33
  conversation_pbx_agent_uuid: null,
32
34
  extension: null,
data/docs/ItemApi.md CHANGED
@@ -13,6 +13,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
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 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
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. |
@@ -835,6 +837,62 @@ end
835
837
  - **Accept**: application/json
836
838
 
837
839
 
840
+ ## get_item_shipping_distribution_center_by_code
841
+
842
+ > <ItemShippingDistributionCenterResponse> get_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, opts)
843
+
844
+ Retrieve an item shipping distribution center
845
+
846
+ Retrieve an item shipping distribution center.
847
+
848
+
849
+ ### Examples
850
+
851
+
852
+ (No example for this operation).
853
+
854
+
855
+ #### Using the get_item_shipping_distribution_center_by_code_with_http_info variant
856
+
857
+ This returns an Array which contains the response data, status code and headers.
858
+
859
+ > <Array(<ItemShippingDistributionCenterResponse>, Integer, Hash)> get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts)
860
+
861
+ ```ruby
862
+ begin
863
+ # Retrieve an item shipping distribution center
864
+ data, status_code, headers = api_instance.get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts)
865
+ p status_code # => 2xx
866
+ p headers # => { ... }
867
+ p data # => <ItemShippingDistributionCenterResponse>
868
+ rescue UltracartClient::ApiError => e
869
+ puts "Error when calling ItemApi->get_item_shipping_distribution_center_by_code_with_http_info: #{e}"
870
+ end
871
+ ```
872
+
873
+ ### Parameters
874
+
875
+ | Name | Type | Description | Notes |
876
+ | ---- | ---- | ----------- | ----- |
877
+ | **merchant_item_oid** | **Integer** | The item oid to retrieve. | |
878
+ | **distribution_center_code** | **String** | | |
879
+ | **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
880
+ | **_placeholders** | **Boolean** | Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API. | [optional] |
881
+
882
+ ### Return type
883
+
884
+ [**ItemShippingDistributionCenterResponse**](ItemShippingDistributionCenterResponse.md)
885
+
886
+ ### Authorization
887
+
888
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
889
+
890
+ ### HTTP request headers
891
+
892
+ - **Content-Type**: Not defined
893
+ - **Accept**: application/json
894
+
895
+
838
896
  ## get_items
839
897
 
840
898
  > <ItemsResponse> get_items(opts)
@@ -1903,6 +1961,61 @@ end
1903
1961
  - **Accept**: application/json
1904
1962
 
1905
1963
 
1964
+ ## update_item_shipping_distribution_center_by_code
1965
+
1966
+ > update_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, item_shipping_distribution_center)
1967
+
1968
+ Update an item shipping distribution center
1969
+
1970
+ Update an item shipping distribution center
1971
+
1972
+
1973
+ ### Examples
1974
+
1975
+
1976
+ (No example for this operation).
1977
+
1978
+
1979
+ #### Using the update_item_shipping_distribution_center_by_code_with_http_info variant
1980
+
1981
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1982
+
1983
+ > <Array(nil, Integer, Hash)> update_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, item_shipping_distribution_center)
1984
+
1985
+ ```ruby
1986
+ begin
1987
+ # Update an item shipping distribution center
1988
+ data, status_code, headers = api_instance.update_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, item_shipping_distribution_center)
1989
+ p status_code # => 2xx
1990
+ p headers # => { ... }
1991
+ p data # => nil
1992
+ rescue UltracartClient::ApiError => e
1993
+ puts "Error when calling ItemApi->update_item_shipping_distribution_center_by_code_with_http_info: #{e}"
1994
+ end
1995
+ ```
1996
+
1997
+ ### Parameters
1998
+
1999
+ | Name | Type | Description | Notes |
2000
+ | ---- | ---- | ----------- | ----- |
2001
+ | **merchant_item_oid** | **Integer** | The item oid to update. | |
2002
+ | **distribution_center_code** | **String** | | |
2003
+ | **item_shipping_distribution_center** | [**ItemShippingDistributionCenter**](ItemShippingDistributionCenter.md) | Item shipping distribution center | |
2004
+
2005
+ ### Return type
2006
+
2007
+ nil (empty response body)
2008
+
2009
+ ### Authorization
2010
+
2011
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2012
+
2013
+ ### HTTP request headers
2014
+
2015
+ - **Content-Type**: application/json; charset=UTF-8
2016
+ - **Accept**: application/json
2017
+
2018
+
1906
2019
  ## update_items
1907
2020
 
1908
2021
  > <ItemsResponse> update_items(items_request, opts)
@@ -0,0 +1,26 @@
1
+ # UltracartClient::ItemShippingDistributionCenterResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **item_shipping_distribution_center** | [**ItemShippingDistributionCenter**](ItemShippingDistributionCenter.md) | | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::ItemShippingDistributionCenterResponse.new(
19
+ error: null,
20
+ item_shipping_distribution_center: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -632,6 +632,82 @@ module UltracartClient
632
632
  return data, status_code, headers
633
633
  end
634
634
 
635
+ # Retrieve an item shipping distribution center
636
+ # Retrieve an item shipping distribution center.
637
+ # @param merchant_item_oid [Integer] The item oid to retrieve.
638
+ # @param distribution_center_code [String]
639
+ # @param [Hash] opts the optional parameters
640
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
641
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
642
+ # @return [ItemShippingDistributionCenterResponse]
643
+ def get_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, opts = {})
644
+ data, _status_code, _headers = get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts)
645
+ data
646
+ end
647
+
648
+ # Retrieve an item shipping distribution center
649
+ # Retrieve an item shipping distribution center.
650
+ # @param merchant_item_oid [Integer] The item oid to retrieve.
651
+ # @param distribution_center_code [String]
652
+ # @param [Hash] opts the optional parameters
653
+ # @option opts [String] :_expand The object expansion to perform on the result. See documentation for examples
654
+ # @option opts [Boolean] :_placeholders Whether or not placeholder values should be returned in the result. Useful for UIs that consume this REST API.
655
+ # @return [Array<(ItemShippingDistributionCenterResponse, Integer, Hash)>] ItemShippingDistributionCenterResponse data, response status code and response headers
656
+ def get_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, opts = {})
657
+ if @api_client.config.debugging
658
+ @api_client.config.logger.debug 'Calling API: ItemApi.get_item_shipping_distribution_center_by_code ...'
659
+ end
660
+ # verify the required parameter 'merchant_item_oid' is set
661
+ if @api_client.config.client_side_validation && merchant_item_oid.nil?
662
+ fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.get_item_shipping_distribution_center_by_code"
663
+ end
664
+ # verify the required parameter 'distribution_center_code' is set
665
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
666
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling ItemApi.get_item_shipping_distribution_center_by_code"
667
+ end
668
+ # resource path
669
+ local_var_path = '/item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code}'.sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s)).sub('{' + 'distribution_center_code' + '}', CGI.escape(distribution_center_code.to_s))
670
+
671
+ # query parameters
672
+ query_params = opts[:query_params] || {}
673
+ query_params[:'_expand'] = opts[:'_expand'] if !opts[:'_expand'].nil?
674
+ query_params[:'_placeholders'] = opts[:'_placeholders'] if !opts[:'_placeholders'].nil?
675
+
676
+ # header parameters
677
+ header_params = opts[:header_params] || {}
678
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
679
+ # HTTP header 'Accept' (if needed)
680
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
681
+
682
+ # form parameters
683
+ form_params = opts[:form_params] || {}
684
+
685
+ # http body (model)
686
+ post_body = opts[:debug_body]
687
+
688
+ # return_type
689
+ return_type = opts[:debug_return_type] || 'ItemShippingDistributionCenterResponse'
690
+
691
+ # auth_names
692
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
693
+
694
+ new_options = opts.merge(
695
+ :operation => :"ItemApi.get_item_shipping_distribution_center_by_code",
696
+ :header_params => header_params,
697
+ :query_params => query_params,
698
+ :form_params => form_params,
699
+ :body => post_body,
700
+ :auth_names => auth_names,
701
+ :return_type => return_type
702
+ )
703
+
704
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
705
+ if @api_client.config.debugging
706
+ @api_client.config.logger.debug "API called: ItemApi#get_item_shipping_distribution_center_by_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
707
+ end
708
+ return data, status_code, headers
709
+ end
710
+
635
711
  # Retrieve items
636
712
  # 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.
637
713
  # @param [Hash] opts the optional parameters
@@ -1435,6 +1511,87 @@ module UltracartClient
1435
1511
  return data, status_code, headers
1436
1512
  end
1437
1513
 
1514
+ # Update an item shipping distribution center
1515
+ # Update an item shipping distribution center
1516
+ # @param merchant_item_oid [Integer] The item oid to update.
1517
+ # @param distribution_center_code [String]
1518
+ # @param item_shipping_distribution_center [ItemShippingDistributionCenter] Item shipping distribution center
1519
+ # @param [Hash] opts the optional parameters
1520
+ # @return [nil]
1521
+ def update_item_shipping_distribution_center_by_code(merchant_item_oid, distribution_center_code, item_shipping_distribution_center, opts = {})
1522
+ update_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, item_shipping_distribution_center, opts)
1523
+ nil
1524
+ end
1525
+
1526
+ # Update an item shipping distribution center
1527
+ # Update an item shipping distribution center
1528
+ # @param merchant_item_oid [Integer] The item oid to update.
1529
+ # @param distribution_center_code [String]
1530
+ # @param item_shipping_distribution_center [ItemShippingDistributionCenter] Item shipping distribution center
1531
+ # @param [Hash] opts the optional parameters
1532
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1533
+ def update_item_shipping_distribution_center_by_code_with_http_info(merchant_item_oid, distribution_center_code, item_shipping_distribution_center, opts = {})
1534
+ if @api_client.config.debugging
1535
+ @api_client.config.logger.debug 'Calling API: ItemApi.update_item_shipping_distribution_center_by_code ...'
1536
+ end
1537
+ # verify the required parameter 'merchant_item_oid' is set
1538
+ if @api_client.config.client_side_validation && merchant_item_oid.nil?
1539
+ fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1540
+ end
1541
+ # verify the required parameter 'distribution_center_code' is set
1542
+ if @api_client.config.client_side_validation && distribution_center_code.nil?
1543
+ fail ArgumentError, "Missing the required parameter 'distribution_center_code' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1544
+ end
1545
+ # verify the required parameter 'item_shipping_distribution_center' is set
1546
+ if @api_client.config.client_side_validation && item_shipping_distribution_center.nil?
1547
+ fail ArgumentError, "Missing the required parameter 'item_shipping_distribution_center' when calling ItemApi.update_item_shipping_distribution_center_by_code"
1548
+ end
1549
+ # resource path
1550
+ local_var_path = '/item/items/{merchant_item_oid}/shipping/distribution_centers/by_code/{distribution_center_code}'.sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s)).sub('{' + 'distribution_center_code' + '}', CGI.escape(distribution_center_code.to_s))
1551
+
1552
+ # query parameters
1553
+ query_params = opts[:query_params] || {}
1554
+
1555
+ # header parameters
1556
+ header_params = opts[:header_params] || {}
1557
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
1558
+ # HTTP header 'Accept' (if needed)
1559
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1560
+ # HTTP header 'Content-Type'
1561
+ content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
1562
+ if !content_type.nil?
1563
+ header_params['Content-Type'] = content_type
1564
+ end
1565
+
1566
+ # form parameters
1567
+ form_params = opts[:form_params] || {}
1568
+
1569
+ # http body (model)
1570
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(item_shipping_distribution_center)
1571
+
1572
+ # return_type
1573
+ return_type = opts[:debug_return_type]
1574
+
1575
+ # auth_names
1576
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
1577
+
1578
+ new_options = opts.merge(
1579
+ :operation => :"ItemApi.update_item_shipping_distribution_center_by_code",
1580
+ :header_params => header_params,
1581
+ :query_params => query_params,
1582
+ :form_params => form_params,
1583
+ :body => post_body,
1584
+ :auth_names => auth_names,
1585
+ :return_type => return_type
1586
+ )
1587
+
1588
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1589
+ if @api_client.config.debugging
1590
+ @api_client.config.logger.debug "API called: ItemApi#update_item_shipping_distribution_center_by_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1591
+ end
1592
+ return data, status_code, headers
1593
+ end
1594
+
1438
1595
  # Update multiple items
1439
1596
  # Update multiple item on the UltraCart account.
1440
1597
  # @param items_request [ItemsRequest] Items to update (synchronous maximum 20 / asynchronous maximum 100)
@@ -15,6 +15,9 @@ require 'time'
15
15
 
16
16
  module UltracartClient
17
17
  class ConversationPbxAgent
18
+ # Flag to indicate if the agent is AI
19
+ attr_accessor :ai
20
+
18
21
  # Cellphone number of agent in E.164 format
19
22
  attr_accessor :cellphone
20
23
 
@@ -66,6 +69,7 @@ module UltracartClient
66
69
  # Attribute mapping from ruby-style variable name to JSON key.
67
70
  def self.attribute_map
68
71
  {
72
+ :'ai' => :'ai',
69
73
  :'cellphone' => :'cellphone',
70
74
  :'conversation_pbx_agent_uuid' => :'conversation_pbx_agent_uuid',
71
75
  :'extension' => :'extension',
@@ -93,6 +97,7 @@ module UltracartClient
93
97
  # Attribute type mapping.
94
98
  def self.openapi_types
95
99
  {
100
+ :'ai' => :'Boolean',
96
101
  :'cellphone' => :'String',
97
102
  :'conversation_pbx_agent_uuid' => :'String',
98
103
  :'extension' => :'Integer',
@@ -133,6 +138,10 @@ module UltracartClient
133
138
  h[k.to_sym] = v
134
139
  }
135
140
 
141
+ if attributes.key?(:'ai')
142
+ self.ai = attributes[:'ai']
143
+ end
144
+
136
145
  if attributes.key?(:'cellphone')
137
146
  self.cellphone = attributes[:'cellphone']
138
147
  end
@@ -321,6 +330,7 @@ module UltracartClient
321
330
  def ==(o)
322
331
  return true if self.equal?(o)
323
332
  self.class == o.class &&
333
+ ai == o.ai &&
324
334
  cellphone == o.cellphone &&
325
335
  conversation_pbx_agent_uuid == o.conversation_pbx_agent_uuid &&
326
336
  extension == o.extension &&
@@ -348,7 +358,7 @@ module UltracartClient
348
358
  # Calculates hash code according to all attributes.
349
359
  # @return [Integer] Hash code
350
360
  def hash
351
- [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
361
+ [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
352
362
  end
353
363
 
354
364
  # Builds the object from hash
@@ -113,7 +113,7 @@ module UltracartClient
113
113
  # Check to see if the all the properties in the model are valid
114
114
  # @return true if the model is valid
115
115
  def valid?
116
- type_validator = EnumAttributeValidator.new('String', ["System", "UserDefined"])
116
+ type_validator = EnumAttributeValidator.new('String', ["System", "UserDefined", "Addon", "Complementary"])
117
117
  return false unless type_validator.valid?(@type)
118
118
  true
119
119
  end
@@ -121,7 +121,7 @@ module UltracartClient
121
121
  # Custom attribute writer method checking allowed values (enum).
122
122
  # @param [Object] type Object to be assigned
123
123
  def type=(type)
124
- validator = EnumAttributeValidator.new('String', ["System", "UserDefined"])
124
+ validator = EnumAttributeValidator.new('String', ["System", "UserDefined", "Addon", "Complementary"])
125
125
  unless validator.valid?(type)
126
126
  fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
127
127
  end
@@ -0,0 +1,256 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class ItemShippingDistributionCenterResponse
18
+ attr_accessor :error
19
+
20
+ attr_accessor :item_shipping_distribution_center
21
+
22
+ attr_accessor :metadata
23
+
24
+ # Indicates if API call was successful
25
+ attr_accessor :success
26
+
27
+ attr_accessor :warning
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'error' => :'error',
33
+ :'item_shipping_distribution_center' => :'itemShippingDistributionCenter',
34
+ :'metadata' => :'metadata',
35
+ :'success' => :'success',
36
+ :'warning' => :'warning'
37
+ }
38
+ end
39
+
40
+ # Returns all the JSON keys this model knows about
41
+ def self.acceptable_attributes
42
+ attribute_map.values
43
+ end
44
+
45
+ # Attribute type mapping.
46
+ def self.openapi_types
47
+ {
48
+ :'error' => :'Error',
49
+ :'item_shipping_distribution_center' => :'ItemShippingDistributionCenter',
50
+ :'metadata' => :'ResponseMetadata',
51
+ :'success' => :'Boolean',
52
+ :'warning' => :'Warning'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ItemShippingDistributionCenterResponse` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h|
71
+ if (!self.class.attribute_map.key?(k.to_sym))
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ItemShippingDistributionCenterResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
+ end
74
+ h[k.to_sym] = v
75
+ }
76
+
77
+ if attributes.key?(:'error')
78
+ self.error = attributes[:'error']
79
+ end
80
+
81
+ if attributes.key?(:'item_shipping_distribution_center')
82
+ self.item_shipping_distribution_center = attributes[:'item_shipping_distribution_center']
83
+ end
84
+
85
+ if attributes.key?(:'metadata')
86
+ self.metadata = attributes[:'metadata']
87
+ end
88
+
89
+ if attributes.key?(:'success')
90
+ self.success = attributes[:'success']
91
+ end
92
+
93
+ if attributes.key?(:'warning')
94
+ self.warning = attributes[:'warning']
95
+ end
96
+ end
97
+
98
+ # Show invalid properties with the reasons. Usually used together with valid?
99
+ # @return Array for valid properties with the reasons
100
+ def list_invalid_properties
101
+ invalid_properties = Array.new
102
+ invalid_properties
103
+ end
104
+
105
+ # Check to see if the all the properties in the model are valid
106
+ # @return true if the model is valid
107
+ def valid?
108
+ true
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ error == o.error &&
117
+ item_shipping_distribution_center == o.item_shipping_distribution_center &&
118
+ metadata == o.metadata &&
119
+ success == o.success &&
120
+ warning == o.warning
121
+ end
122
+
123
+ # @see the `==` method
124
+ # @param [Object] Object to be compared
125
+ def eql?(o)
126
+ self == o
127
+ end
128
+
129
+ # Calculates hash code according to all attributes.
130
+ # @return [Integer] Hash code
131
+ def hash
132
+ [error, item_shipping_distribution_center, metadata, success, warning].hash
133
+ end
134
+
135
+ # Builds the object from hash
136
+ # @param [Hash] attributes Model attributes in the form of hash
137
+ # @return [Object] Returns the model itself
138
+ def self.build_from_hash(attributes)
139
+ new.build_from_hash(attributes)
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ attributes = attributes.transform_keys(&:to_sym)
148
+ self.class.openapi_types.each_pair do |key, type|
149
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
150
+ self.send("#{key}=", nil)
151
+ elsif type =~ /\AArray<(.*)>/i
152
+ # check to ensure the input is an array given that the attribute
153
+ # is documented as an array but the input is not
154
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
155
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
156
+ end
157
+ elsif !attributes[self.class.attribute_map[key]].nil?
158
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
159
+ end
160
+ end
161
+
162
+ self
163
+ end
164
+
165
+ # Deserializes the data based on type
166
+ # @param string type Data type
167
+ # @param string value Value to be deserialized
168
+ # @return [Object] Deserialized data
169
+ def _deserialize(type, value)
170
+ case type.to_sym
171
+ when :Time
172
+ Time.parse(value)
173
+ when :Date
174
+ Date.parse(value)
175
+ when :String
176
+ value.to_s
177
+ when :Integer
178
+ value.to_i
179
+ when :Float
180
+ value.to_f
181
+ when :Boolean
182
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
183
+ true
184
+ else
185
+ false
186
+ end
187
+ when :Object
188
+ # generic object (usually a Hash), return directly
189
+ value
190
+ when /\AArray<(?<inner_type>.+)>\z/
191
+ inner_type = Regexp.last_match[:inner_type]
192
+ value.map { |v| _deserialize(inner_type, v) }
193
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
194
+ k_type = Regexp.last_match[:k_type]
195
+ v_type = Regexp.last_match[:v_type]
196
+ {}.tap do |hash|
197
+ value.each do |k, v|
198
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
199
+ end
200
+ end
201
+ else # model
202
+ # models (e.g. Pet) or oneOf
203
+ klass = UltracartClient.const_get(type)
204
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
205
+ end
206
+ end
207
+
208
+ # Returns the string representation of the object
209
+ # @return [String] String presentation of the object
210
+ def to_s
211
+ to_hash.to_s
212
+ end
213
+
214
+ # to_body is an alias to to_hash (backward compatibility)
215
+ # @return [Hash] Returns the object in the form of hash
216
+ def to_body
217
+ to_hash
218
+ end
219
+
220
+ # Returns the object in the form of hash
221
+ # @return [Hash] Returns the object in the form of hash
222
+ def to_hash
223
+ hash = {}
224
+ self.class.attribute_map.each_pair do |attr, param|
225
+ value = self.send(attr)
226
+ if value.nil?
227
+ is_nullable = self.class.openapi_nullable.include?(attr)
228
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
229
+ end
230
+
231
+ hash[param] = _to_hash(value)
232
+ end
233
+ hash
234
+ end
235
+
236
+ # Outputs non-array value in the form of hash
237
+ # For object, use to_hash. Otherwise, just return the value
238
+ # @param [Object] value Any valid value
239
+ # @return [Hash] Returns the value in the form of hash
240
+ def _to_hash(value)
241
+ if value.is_a?(Array)
242
+ value.compact.map { |v| _to_hash(v) }
243
+ elsif value.is_a?(Hash)
244
+ {}.tap do |hash|
245
+ value.each { |k, v| hash[k] = _to_hash(v) }
246
+ end
247
+ elsif value.respond_to? :to_hash
248
+ value.to_hash
249
+ else
250
+ value
251
+ end
252
+ end
253
+
254
+ end
255
+
256
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.36'
14
+ VERSION = '4.1.37'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -633,6 +633,7 @@ require 'ultracart_api/models/item_shipping_case'
633
633
  require 'ultracart_api/models/item_shipping_destination_markup'
634
634
  require 'ultracart_api/models/item_shipping_destination_restriction'
635
635
  require 'ultracart_api/models/item_shipping_distribution_center'
636
+ require 'ultracart_api/models/item_shipping_distribution_center_response'
636
637
  require 'ultracart_api/models/item_shipping_method'
637
638
  require 'ultracart_api/models/item_shipping_package_requirement'
638
639
  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: 4.1.36
4
+ version: 4.1.37
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
@@ -689,6 +689,7 @@ files:
689
689
  - docs/ItemShippingDestinationMarkup.md
690
690
  - docs/ItemShippingDestinationRestriction.md
691
691
  - docs/ItemShippingDistributionCenter.md
692
+ - docs/ItemShippingDistributionCenterResponse.md
692
693
  - docs/ItemShippingMethod.md
693
694
  - docs/ItemShippingPackageRequirement.md
694
695
  - docs/ItemTag.md
@@ -1625,6 +1626,7 @@ files:
1625
1626
  - lib/ultracart_api/models/item_shipping_destination_markup.rb
1626
1627
  - lib/ultracart_api/models/item_shipping_destination_restriction.rb
1627
1628
  - lib/ultracart_api/models/item_shipping_distribution_center.rb
1629
+ - lib/ultracart_api/models/item_shipping_distribution_center_response.rb
1628
1630
  - lib/ultracart_api/models/item_shipping_method.rb
1629
1631
  - lib/ultracart_api/models/item_shipping_package_requirement.rb
1630
1632
  - lib/ultracart_api/models/item_tag.rb