ultracart_api 4.1.84 → 4.1.85

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: b8728bb3fa0c26246f58c8188529196d268b7dd187c8297f3e85dbdc475ca1e1
4
- data.tar.gz: d43769ea615c3bb8167a3f0a5325a24e624f13afe505571ca6b73a8d68e042c9
3
+ metadata.gz: b4dc4707ec92c97447f89b7672c1ed259f460726ce9070a05f703ceb675567d9
4
+ data.tar.gz: 6f6e2f35db2231846dc4e23774a554eb999781bb3efb5a6c4b648728682d74c1
5
5
  SHA512:
6
- metadata.gz: 66f34f4045d3997e67bd952ced21ab23225a0da708d5bdc6c88d920771745533332c23a37d5cafd23063276cc744880874b3a54c8673c86bc0f143c4cba8bd9a
7
- data.tar.gz: c644a2149626b1605e1f2705c86cd2321c4d252d2b0c3ce12b442a79e6accf20fc8f19a9f4a9b3c54a3933a30c7e66bcdff0704bdabbb5698dc0e89495664be3
6
+ metadata.gz: d5dc9ceafd811738990645dd7062fa6f9c7f603a1cad472e74b84ffb83b3688eafacf9a902c910d531684000a7bdb66044156282ccb56a0a5c9a908f64eff24a
7
+ data.tar.gz: f4c6b80d11a02a22767504284bbd4f64470750cc6d707289dd2a5cdbeb81abbcf7ae05e5f118a003de0176317248e8c698603e5e68cce78e2d65ef1fdf138f3f
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.84
10
+ - Package version: 4.1.85
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.84'
19
+ gem 'ultracart_api', '4.1.85'
20
20
  ```
21
21
 
22
22
  install:
@@ -413,6 +413,8 @@ Class | Method | HTTP request | Description
413
413
  *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
414
414
  *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.
415
415
  *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.
416
+ *UltracartClient::OrderApi* | [**get_accounts_receivable_detail_value_histogram**](docs/OrderApi.md#get_accounts_receivable_detail_value_histogram) | **GET** /order/accounts_receivable/detail_value_histogram | Retrieve a value histogram for a given AR transaction-detail name
417
+ *UltracartClient::OrderApi* | [**get_accounts_receivable_gateway_detail_names**](docs/OrderApi.md#get_accounts_receivable_gateway_detail_names) | **GET** /order/accounts_receivable/gateway_detail_names | Retrieve gateway / detail-name picker data for the AR filter modal
416
418
  *UltracartClient::OrderApi* | [**get_accounts_receivable_retry_config**](docs/OrderApi.md#get_accounts_receivable_retry_config) | **GET** /order/accountsReceivableRetryConfig | Retrieve A/R Retry Configuration
417
419
  *UltracartClient::OrderApi* | [**get_accounts_receivable_retry_stats**](docs/OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics
418
420
  *UltracartClient::OrderApi* | [**get_order**](docs/OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order
@@ -1733,6 +1735,7 @@ Not every change is committed to every SDK.
1733
1735
 
1734
1736
  | Version | Date | Comments |
1735
1737
  | --: | :-: | --- |
1738
+ | 4.1.85 | 05/05/2026 | improved warning object for customer insertCustomer and updateCustomer |
1736
1739
  | 4.1.84 | 05/04/2026 | Order API - add hold stage to allowed values on order query request |
1737
1740
  | 4.1.83 | 04/29/2026 | AO support for item appending on cancel request, order payment method test routing on hold release |
1738
1741
  | 4.1.82 | 04/27/2026 | converation - agent status and availability |
data/docs/OrderApi.md CHANGED
@@ -15,6 +15,8 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
15
15
  | [**generate_order_token**](OrderApi.md#generate_order_token) | **GET** /order/orders/token/{order_id} | Generate an order token for a given order id |
16
16
  | [**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. |
17
17
  | [**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. |
18
+ | [**get_accounts_receivable_detail_value_histogram**](OrderApi.md#get_accounts_receivable_detail_value_histogram) | **GET** /order/accounts_receivable/detail_value_histogram | Retrieve a value histogram for a given AR transaction-detail name |
19
+ | [**get_accounts_receivable_gateway_detail_names**](OrderApi.md#get_accounts_receivable_gateway_detail_names) | **GET** /order/accounts_receivable/gateway_detail_names | Retrieve gateway / detail-name picker data for the AR filter modal |
18
20
  | [**get_accounts_receivable_retry_config**](OrderApi.md#get_accounts_receivable_retry_config) | **GET** /order/accountsReceivableRetryConfig | Retrieve A/R Retry Configuration |
19
21
  | [**get_accounts_receivable_retry_stats**](OrderApi.md#get_accounts_receivable_retry_stats) | **GET** /order/accountsReceivableRetryConfig/stats | Retrieve A/R Retry Statistics |
20
22
  | [**get_order**](OrderApi.md#get_order) | **GET** /order/orders/{order_id} | Retrieve an order |
@@ -860,6 +862,111 @@ end
860
862
  - **Accept**: application/json
861
863
 
862
864
 
865
+ ## get_accounts_receivable_detail_value_histogram
866
+
867
+ > get_accounts_receivable_detail_value_histogram(detail, opts)
868
+
869
+ Retrieve a value histogram for a given AR transaction-detail name
870
+
871
+ For the calling merchant's Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal's autocomplete on the detail-value input.
872
+
873
+
874
+ ### Examples
875
+
876
+
877
+ (No example for this operation).
878
+
879
+
880
+ #### Using the get_accounts_receivable_detail_value_histogram_with_http_info variant
881
+
882
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
883
+
884
+ > <Array(nil, Integer, Hash)> get_accounts_receivable_detail_value_histogram_with_http_info(detail, opts)
885
+
886
+ ```ruby
887
+ begin
888
+ # Retrieve a value histogram for a given AR transaction-detail name
889
+ data, status_code, headers = api_instance.get_accounts_receivable_detail_value_histogram_with_http_info(detail, opts)
890
+ p status_code # => 2xx
891
+ p headers # => { ... }
892
+ p data # => nil
893
+ rescue UltracartClient::ApiError => e
894
+ puts "Error when calling OrderApi->get_accounts_receivable_detail_value_histogram_with_http_info: #{e}"
895
+ end
896
+ ```
897
+
898
+ ### Parameters
899
+
900
+ | Name | Type | Description | Notes |
901
+ | ---- | ---- | ----------- | ----- |
902
+ | **detail** | **String** | The transaction-detail name to histogram. | |
903
+ | **gateway** | **String** | The gateway name to scope to (optional). | [optional] |
904
+
905
+ ### Return type
906
+
907
+ nil (empty response body)
908
+
909
+ ### Authorization
910
+
911
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
912
+
913
+ ### HTTP request headers
914
+
915
+ - **Content-Type**: Not defined
916
+ - **Accept**: application/json
917
+
918
+
919
+ ## get_accounts_receivable_gateway_detail_names
920
+
921
+ > get_accounts_receivable_gateway_detail_names
922
+
923
+ Retrieve gateway / detail-name picker data for the AR filter modal
924
+
925
+ For the calling merchant's Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
926
+
927
+
928
+ ### Examples
929
+
930
+
931
+ (No example for this operation).
932
+
933
+
934
+ #### Using the get_accounts_receivable_gateway_detail_names_with_http_info variant
935
+
936
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
937
+
938
+ > <Array(nil, Integer, Hash)> get_accounts_receivable_gateway_detail_names_with_http_info
939
+
940
+ ```ruby
941
+ begin
942
+ # Retrieve gateway / detail-name picker data for the AR filter modal
943
+ data, status_code, headers = api_instance.get_accounts_receivable_gateway_detail_names_with_http_info
944
+ p status_code # => 2xx
945
+ p headers # => { ... }
946
+ p data # => nil
947
+ rescue UltracartClient::ApiError => e
948
+ puts "Error when calling OrderApi->get_accounts_receivable_gateway_detail_names_with_http_info: #{e}"
949
+ end
950
+ ```
951
+
952
+ ### Parameters
953
+
954
+ This endpoint does not need any parameter.
955
+
956
+ ### Return type
957
+
958
+ nil (empty response body)
959
+
960
+ ### Authorization
961
+
962
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
963
+
964
+ ### HTTP request headers
965
+
966
+ - **Content-Type**: Not defined
967
+ - **Accept**: application/json
968
+
969
+
863
970
  ## get_accounts_receivable_retry_config
864
971
 
865
972
  > <AccountsReceivableRetryConfigResponse> get_accounts_receivable_retry_config
data/docs/Warning.md CHANGED
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **more_info** | **String** | Additional information often a link to additional documentation | [optional] |
8
+ | **warning_code** | **String** | A stable machine-readable code identifying the warning. See API docs for known values. | [optional] |
8
9
  | **warning_message** | **String** | A technical message meant to be read by a developer | [optional] |
9
10
 
10
11
  ## Example
@@ -14,6 +15,7 @@ require 'ultracart_api'
14
15
 
15
16
  instance = UltracartClient::Warning.new(
16
17
  more_info: null,
18
+ warning_code: null,
17
19
  warning_message: null
18
20
  )
19
21
  ```
@@ -785,6 +785,132 @@ module UltracartClient
785
785
  return data, status_code, headers
786
786
  end
787
787
 
788
+ # Retrieve a value histogram for a given AR transaction-detail name
789
+ # For the calling merchant's Accounts Receivable orders, returns a value -> document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal's autocomplete on the detail-value input.
790
+ # @param detail [String] The transaction-detail name to histogram.
791
+ # @param [Hash] opts the optional parameters
792
+ # @option opts [String] :gateway The gateway name to scope to (optional).
793
+ # @return [nil]
794
+ def get_accounts_receivable_detail_value_histogram(detail, opts = {})
795
+ get_accounts_receivable_detail_value_histogram_with_http_info(detail, opts)
796
+ nil
797
+ end
798
+
799
+ # Retrieve a value histogram for a given AR transaction-detail name
800
+ # For the calling merchant&#39;s Accounts Receivable orders, returns a value -&gt; document-count histogram for the named transaction detail, optionally scoped to transactions on the named gateway. Drives the AR filter modal&#39;s autocomplete on the detail-value input.
801
+ # @param detail [String] The transaction-detail name to histogram.
802
+ # @param [Hash] opts the optional parameters
803
+ # @option opts [String] :gateway The gateway name to scope to (optional).
804
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
805
+ def get_accounts_receivable_detail_value_histogram_with_http_info(detail, opts = {})
806
+ if @api_client.config.debugging
807
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_accounts_receivable_detail_value_histogram ...'
808
+ end
809
+ # verify the required parameter 'detail' is set
810
+ if @api_client.config.client_side_validation && detail.nil?
811
+ fail ArgumentError, "Missing the required parameter 'detail' when calling OrderApi.get_accounts_receivable_detail_value_histogram"
812
+ end
813
+ # resource path
814
+ local_var_path = '/order/accounts_receivable/detail_value_histogram'
815
+
816
+ # query parameters
817
+ query_params = opts[:query_params] || {}
818
+ query_params[:'detail'] = detail
819
+ query_params[:'gateway'] = opts[:'gateway'] if !opts[:'gateway'].nil?
820
+
821
+ # header parameters
822
+ header_params = opts[:header_params] || {}
823
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
824
+ # HTTP header 'Accept' (if needed)
825
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
826
+
827
+ # form parameters
828
+ form_params = opts[:form_params] || {}
829
+
830
+ # http body (model)
831
+ post_body = opts[:debug_body]
832
+
833
+ # return_type
834
+ return_type = opts[:debug_return_type]
835
+
836
+ # auth_names
837
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
838
+
839
+ new_options = opts.merge(
840
+ :operation => :"OrderApi.get_accounts_receivable_detail_value_histogram",
841
+ :header_params => header_params,
842
+ :query_params => query_params,
843
+ :form_params => form_params,
844
+ :body => post_body,
845
+ :auth_names => auth_names,
846
+ :return_type => return_type
847
+ )
848
+
849
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
850
+ if @api_client.config.debugging
851
+ @api_client.config.logger.debug "API called: OrderApi#get_accounts_receivable_detail_value_histogram\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
852
+ end
853
+ return data, status_code, headers
854
+ end
855
+
856
+ # Retrieve gateway / detail-name picker data for the AR filter modal
857
+ # For the calling merchant's Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
858
+ # @param [Hash] opts the optional parameters
859
+ # @return [nil]
860
+ def get_accounts_receivable_gateway_detail_names(opts = {})
861
+ get_accounts_receivable_gateway_detail_names_with_http_info(opts)
862
+ nil
863
+ end
864
+
865
+ # Retrieve gateway / detail-name picker data for the AR filter modal
866
+ # For the calling merchant&#39;s Accounts Receivable orders, returns the distinct payment gateway names paired with the set of transaction-detail names observed on those gateways. Drives the cascading gateway / detail-name pickers in the AR filter modal.
867
+ # @param [Hash] opts the optional parameters
868
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
869
+ def get_accounts_receivable_gateway_detail_names_with_http_info(opts = {})
870
+ if @api_client.config.debugging
871
+ @api_client.config.logger.debug 'Calling API: OrderApi.get_accounts_receivable_gateway_detail_names ...'
872
+ end
873
+ # resource path
874
+ local_var_path = '/order/accounts_receivable/gateway_detail_names'
875
+
876
+ # query parameters
877
+ query_params = opts[:query_params] || {}
878
+
879
+ # header parameters
880
+ header_params = opts[:header_params] || {}
881
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
882
+ # HTTP header 'Accept' (if needed)
883
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
884
+
885
+ # form parameters
886
+ form_params = opts[:form_params] || {}
887
+
888
+ # http body (model)
889
+ post_body = opts[:debug_body]
890
+
891
+ # return_type
892
+ return_type = opts[:debug_return_type]
893
+
894
+ # auth_names
895
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
896
+
897
+ new_options = opts.merge(
898
+ :operation => :"OrderApi.get_accounts_receivable_gateway_detail_names",
899
+ :header_params => header_params,
900
+ :query_params => query_params,
901
+ :form_params => form_params,
902
+ :body => post_body,
903
+ :auth_names => auth_names,
904
+ :return_type => return_type
905
+ )
906
+
907
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
908
+ if @api_client.config.debugging
909
+ @api_client.config.logger.debug "API called: OrderApi#get_accounts_receivable_gateway_detail_names\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
910
+ end
911
+ return data, status_code, headers
912
+ end
913
+
788
914
  # Retrieve A/R Retry Configuration
789
915
  # Retrieve A/R Retry Configuration. This is primarily an internal API call. It is doubtful you would ever need to use it.
790
916
  # @param [Hash] opts the optional parameters
@@ -18,6 +18,9 @@ module UltracartClient
18
18
  # Additional information often a link to additional documentation
19
19
  attr_accessor :more_info
20
20
 
21
+ # A stable machine-readable code identifying the warning. See API docs for known values.
22
+ attr_accessor :warning_code
23
+
21
24
  # A technical message meant to be read by a developer
22
25
  attr_accessor :warning_message
23
26
 
@@ -25,6 +28,7 @@ module UltracartClient
25
28
  def self.attribute_map
26
29
  {
27
30
  :'more_info' => :'more_info',
31
+ :'warning_code' => :'warning_code',
28
32
  :'warning_message' => :'warning_message'
29
33
  }
30
34
  end
@@ -38,6 +42,7 @@ module UltracartClient
38
42
  def self.openapi_types
39
43
  {
40
44
  :'more_info' => :'String',
45
+ :'warning_code' => :'String',
41
46
  :'warning_message' => :'String'
42
47
  }
43
48
  end
@@ -67,6 +72,10 @@ module UltracartClient
67
72
  self.more_info = attributes[:'more_info']
68
73
  end
69
74
 
75
+ if attributes.key?(:'warning_code')
76
+ self.warning_code = attributes[:'warning_code']
77
+ end
78
+
70
79
  if attributes.key?(:'warning_message')
71
80
  self.warning_message = attributes[:'warning_message']
72
81
  end
@@ -91,6 +100,7 @@ module UltracartClient
91
100
  return true if self.equal?(o)
92
101
  self.class == o.class &&
93
102
  more_info == o.more_info &&
103
+ warning_code == o.warning_code &&
94
104
  warning_message == o.warning_message
95
105
  end
96
106
 
@@ -103,7 +113,7 @@ module UltracartClient
103
113
  # Calculates hash code according to all attributes.
104
114
  # @return [Integer] Hash code
105
115
  def hash
106
- [more_info, warning_message].hash
116
+ [more_info, warning_code, warning_message].hash
107
117
  end
108
118
 
109
119
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.84'
14
+ VERSION = '4.1.85'
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: 4.1.84
4
+ version: 4.1.85
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-04 00:00:00.000000000 Z
11
+ date: 2026-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus