ultracart_api 4.1.8 → 4.1.9

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: a789bd43b52d5866664c1837873821b6f3a262dfa9bf0030d3a47fe0b9fb4cbc
4
- data.tar.gz: cf9e7b5917b35d33d1d3fe95c651c4a4736be131ab9a92bdaf0582ddef2063c4
3
+ metadata.gz: ec0408f4987a5b85754f83be63bd15378c3845f72de245cc7360dcefd16bb3d1
4
+ data.tar.gz: cd0bae5f9666691aa0568b278905fd17fa644aa899d0bba180f23acbb55a9fe8
5
5
  SHA512:
6
- metadata.gz: 4ccc90aa708f24774678dd2bef2725df0efffea428b0ed043d3b13403266a4a96b569c850b37a56508b938dcb58fd5386953cc3bbc5bb8ce31c3b0c8159f1225
7
- data.tar.gz: '0263095e6d985b10576a63b409f63812843675d8253f55e542fecd485a628908e199981684e1dac35ff70b8b06220d73b5056f2de5317fcefd602bc630083148'
6
+ metadata.gz: a5cf2db9d75f2720967749229efc822ce5801a5a0cc0917d4b0bfc5a5a6477cbfbc16af473b079cb879de18611773c58627e9642bd513f92189a18e1b6fe9d73
7
+ data.tar.gz: 69548f3e5af53995c984238e733d5be489294be36ff5cc3c0f5bce513bae15692de255286ac1e457fa4b8d926a2857d51aeb717cca66a266fa250e004bd9d500
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.8
10
+ - Package version: 4.1.9
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.8'
19
+ gem 'ultracart_api', '4.1.9'
20
20
  ```
21
21
 
22
22
  install:
@@ -147,6 +147,7 @@ Class | Method | HTTP request | Description
147
147
  *UltracartClient::ConversationApi* | [**delete_pbx_voicemail_mailbox**](docs/ConversationApi.md#delete_pbx_voicemail_mailbox) | **DELETE** /conversation/pbx/voicemail_mailbox/{conversationPbxVoicemailMailboxUuid} | Delete pbx voicemailMailbox
148
148
  *UltracartClient::ConversationApi* | [**get_agent_keep_alive**](docs/ConversationApi.md#get_agent_keep_alive) | **GET** /conversation/agent/keepalive | Agent keep alive
149
149
  *UltracartClient::ConversationApi* | [**get_agent_profile**](docs/ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile
150
+ *UltracartClient::ConversationApi* | [**get_agent_profiles**](docs/ConversationApi.md#get_agent_profiles) | **GET** /conversation/agent/profiles | Get agent profiles
150
151
  *UltracartClient::ConversationApi* | [**get_agent_websocket_authorization**](docs/ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
151
152
  *UltracartClient::ConversationApi* | [**get_conversation**](docs/ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
152
153
  *UltracartClient::ConversationApi* | [**get_conversation_canned_messages**](docs/ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code
@@ -722,6 +723,7 @@ Class | Method | HTTP request | Description
722
723
  - [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
723
724
  - [UltracartClient::ConversationAgentProfile](docs/ConversationAgentProfile.md)
724
725
  - [UltracartClient::ConversationAgentProfileResponse](docs/ConversationAgentProfileResponse.md)
726
+ - [UltracartClient::ConversationAgentProfilesResponse](docs/ConversationAgentProfilesResponse.md)
725
727
  - [UltracartClient::ConversationAutocompleteRequest](docs/ConversationAutocompleteRequest.md)
726
728
  - [UltracartClient::ConversationAutocompleteResponse](docs/ConversationAutocompleteResponse.md)
727
729
  - [UltracartClient::ConversationAutocompleteValue](docs/ConversationAutocompleteValue.md)
@@ -1520,6 +1522,7 @@ Not every change is committed to every SDK.
1520
1522
 
1521
1523
  | Version | Date | Comments |
1522
1524
  | --: | :-: | --- |
1525
+ | 4.1.9 | 05/05/2025 | conversations - method to fetch all agent profiles for admin screens |
1523
1526
  | 4.1.8 | 04/22/2025 | order property fields for created_by and created_dts |
1524
1527
  | 4.1.7 | 04/21/2025 | conversation agent additional fields |
1525
1528
  | 4.1.6 | 04/16/2025 | added channel partner order item properties |
@@ -0,0 +1,26 @@
1
+ # UltracartClient::ConversationAgentProfilesResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **agent_profiles** | [**Array<ConversationAgentProfile>**](ConversationAgentProfile.md) | | [optional] |
8
+ | **error** | [**Error**](Error.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::ConversationAgentProfilesResponse.new(
19
+ agent_profiles: null,
20
+ error: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -17,6 +17,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
17
17
  | [**delete_pbx_voicemail_mailbox**](ConversationApi.md#delete_pbx_voicemail_mailbox) | **DELETE** /conversation/pbx/voicemail_mailbox/{conversationPbxVoicemailMailboxUuid} | Delete pbx voicemailMailbox |
18
18
  | [**get_agent_keep_alive**](ConversationApi.md#get_agent_keep_alive) | **GET** /conversation/agent/keepalive | Agent keep alive |
19
19
  | [**get_agent_profile**](ConversationApi.md#get_agent_profile) | **GET** /conversation/agent/profile | Get agent profile |
20
+ | [**get_agent_profiles**](ConversationApi.md#get_agent_profiles) | **GET** /conversation/agent/profiles | Get agent profiles |
20
21
  | [**get_agent_websocket_authorization**](ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization |
21
22
  | [**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation |
22
23
  | [**get_conversation_canned_messages**](ConversationApi.md#get_conversation_canned_messages) | **GET** /conversation/canned_messages | Retrieve a list of canned messages ordered by short_code |
@@ -1002,6 +1003,74 @@ This endpoint does not need any parameter.
1002
1003
  - **Accept**: application/json
1003
1004
 
1004
1005
 
1006
+ ## get_agent_profiles
1007
+
1008
+ > <ConversationAgentProfilesResponse> get_agent_profiles
1009
+
1010
+ Get agent profiles
1011
+
1012
+ Retrieve the agents profile
1013
+
1014
+ ### Examples
1015
+
1016
+ ```ruby
1017
+ require 'time'
1018
+ require 'ultracart_api'
1019
+ require 'json'
1020
+ require 'yaml'
1021
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
1022
+
1023
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
1024
+ # As such, this might not be the best way to use this object.
1025
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
1026
+
1027
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
1028
+
1029
+ begin
1030
+ # Get agent profiles
1031
+ result = api_instance.get_agent_profiles
1032
+ p result
1033
+ rescue UltracartClient::ApiError => e
1034
+ puts "Error when calling ConversationApi->get_agent_profiles: #{e}"
1035
+ end
1036
+ ```
1037
+
1038
+ #### Using the get_agent_profiles_with_http_info variant
1039
+
1040
+ This returns an Array which contains the response data, status code and headers.
1041
+
1042
+ > <Array(<ConversationAgentProfilesResponse>, Integer, Hash)> get_agent_profiles_with_http_info
1043
+
1044
+ ```ruby
1045
+ begin
1046
+ # Get agent profiles
1047
+ data, status_code, headers = api_instance.get_agent_profiles_with_http_info
1048
+ p status_code # => 2xx
1049
+ p headers # => { ... }
1050
+ p data # => <ConversationAgentProfilesResponse>
1051
+ rescue UltracartClient::ApiError => e
1052
+ puts "Error when calling ConversationApi->get_agent_profiles_with_http_info: #{e}"
1053
+ end
1054
+ ```
1055
+
1056
+ ### Parameters
1057
+
1058
+ This endpoint does not need any parameter.
1059
+
1060
+ ### Return type
1061
+
1062
+ [**ConversationAgentProfilesResponse**](ConversationAgentProfilesResponse.md)
1063
+
1064
+ ### Authorization
1065
+
1066
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
1067
+
1068
+ ### HTTP request headers
1069
+
1070
+ - **Content-Type**: Not defined
1071
+ - **Accept**: application/json
1072
+
1073
+
1005
1074
  ## get_agent_websocket_authorization
1006
1075
 
1007
1076
  > <ConversationAgentAuthResponse> get_agent_websocket_authorization
data/docs/WebhookApi.md CHANGED
@@ -252,6 +252,14 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
252
252
  api = UltracartClient::WebhookApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
253
253
  webhook_oid = 56 # Integer | The webhook oid to retrieve log summaries for.
254
254
  opts = {
255
+ request_id: 'request_id_example', # String |
256
+ begin_date: 'begin_date_example', # String |
257
+ end_date: 'end_date_example', # String |
258
+ status: 'status_example', # String |
259
+ event: 'event_example', # String |
260
+ order_id: 'order_id_example', # String |
261
+ request: 'request_example', # String |
262
+ duration: 56, # Integer |
255
263
  _limit: 56, # Integer | The maximum number of records to return on this one API call.
256
264
  _offset: 56, # Integer | Pagination of the record set. Offset is a zero based index.
257
265
  _since: '_since_example' # String | Fetch log summaries that have been delivered since this date/time.
@@ -289,6 +297,14 @@ end
289
297
  | Name | Type | Description | Notes |
290
298
  | ---- | ---- | ----------- | ----- |
291
299
  | **webhook_oid** | **Integer** | The webhook oid to retrieve log summaries for. | |
300
+ | **request_id** | **String** | | [optional] |
301
+ | **begin_date** | **String** | | [optional] |
302
+ | **end_date** | **String** | | [optional] |
303
+ | **status** | **String** | | [optional] |
304
+ | **event** | **String** | | [optional] |
305
+ | **order_id** | **String** | | [optional] |
306
+ | **request** | **String** | | [optional] |
307
+ | **duration** | **Integer** | | [optional] |
292
308
  | **_limit** | **Integer** | The maximum number of records to return on this one API call. | [optional][default to 100] |
293
309
  | **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
294
310
  | **_since** | **String** | Fetch log summaries that have been delivered since this date/time. | [optional] |
@@ -858,6 +858,64 @@ module UltracartClient
858
858
  return data, status_code, headers
859
859
  end
860
860
 
861
+ # Get agent profiles
862
+ # Retrieve the agents profile
863
+ # @param [Hash] opts the optional parameters
864
+ # @return [ConversationAgentProfilesResponse]
865
+ def get_agent_profiles(opts = {})
866
+ data, _status_code, _headers = get_agent_profiles_with_http_info(opts)
867
+ data
868
+ end
869
+
870
+ # Get agent profiles
871
+ # Retrieve the agents profile
872
+ # @param [Hash] opts the optional parameters
873
+ # @return [Array<(ConversationAgentProfilesResponse, Integer, Hash)>] ConversationAgentProfilesResponse data, response status code and response headers
874
+ def get_agent_profiles_with_http_info(opts = {})
875
+ if @api_client.config.debugging
876
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_profiles ...'
877
+ end
878
+ # resource path
879
+ local_var_path = '/conversation/agent/profiles'
880
+
881
+ # query parameters
882
+ query_params = opts[:query_params] || {}
883
+
884
+ # header parameters
885
+ header_params = opts[:header_params] || {}
886
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
887
+ # HTTP header 'Accept' (if needed)
888
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
889
+
890
+ # form parameters
891
+ form_params = opts[:form_params] || {}
892
+
893
+ # http body (model)
894
+ post_body = opts[:debug_body]
895
+
896
+ # return_type
897
+ return_type = opts[:debug_return_type] || 'ConversationAgentProfilesResponse'
898
+
899
+ # auth_names
900
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
901
+
902
+ new_options = opts.merge(
903
+ :operation => :"ConversationApi.get_agent_profiles",
904
+ :header_params => header_params,
905
+ :query_params => query_params,
906
+ :form_params => form_params,
907
+ :body => post_body,
908
+ :auth_names => auth_names,
909
+ :return_type => return_type
910
+ )
911
+
912
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
913
+ if @api_client.config.debugging
914
+ @api_client.config.logger.debug "API called: ConversationApi#get_agent_profiles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
915
+ end
916
+ return data, status_code, headers
917
+ end
918
+
861
919
  # Get agent websocket authorization
862
920
  # Retrieve a JWT to authorize an agent to make a websocket connection.
863
921
  # @param [Hash] opts the optional parameters
@@ -239,6 +239,14 @@ module UltracartClient
239
239
  # Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
240
240
  # @param webhook_oid [Integer] The webhook oid to retrieve log summaries for.
241
241
  # @param [Hash] opts the optional parameters
242
+ # @option opts [String] :request_id
243
+ # @option opts [String] :begin_date
244
+ # @option opts [String] :end_date
245
+ # @option opts [String] :status
246
+ # @option opts [String] :event
247
+ # @option opts [String] :order_id
248
+ # @option opts [String] :request
249
+ # @option opts [Integer] :duration
242
250
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (default to 100)
243
251
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
244
252
  # @option opts [String] :_since Fetch log summaries that have been delivered since this date/time.
@@ -252,6 +260,14 @@ module UltracartClient
252
260
  # Retrieves the log summary information for a given webhook. This is useful for displaying all the various logs that can be viewed.
253
261
  # @param webhook_oid [Integer] The webhook oid to retrieve log summaries for.
254
262
  # @param [Hash] opts the optional parameters
263
+ # @option opts [String] :request_id
264
+ # @option opts [String] :begin_date
265
+ # @option opts [String] :end_date
266
+ # @option opts [String] :status
267
+ # @option opts [String] :event
268
+ # @option opts [String] :order_id
269
+ # @option opts [String] :request
270
+ # @option opts [Integer] :duration
255
271
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (default to 100)
256
272
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
257
273
  # @option opts [String] :_since Fetch log summaries that have been delivered since this date/time.
@@ -269,6 +285,14 @@ module UltracartClient
269
285
 
270
286
  # query parameters
271
287
  query_params = opts[:query_params] || {}
288
+ query_params[:'requestId'] = opts[:'request_id'] if !opts[:'request_id'].nil?
289
+ query_params[:'beginDate'] = opts[:'begin_date'] if !opts[:'begin_date'].nil?
290
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
291
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
292
+ query_params[:'event'] = opts[:'event'] if !opts[:'event'].nil?
293
+ query_params[:'orderId'] = opts[:'order_id'] if !opts[:'order_id'].nil?
294
+ query_params[:'request'] = opts[:'request'] if !opts[:'request'].nil?
295
+ query_params[:'duration'] = opts[:'duration'] if !opts[:'duration'].nil?
272
296
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
273
297
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
274
298
  query_params[:'_since'] = opts[:'_since'] if !opts[:'_since'].nil?
@@ -0,0 +1,258 @@
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 ConversationAgentProfilesResponse
18
+ attr_accessor :agent_profiles
19
+
20
+ attr_accessor :error
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
+ :'agent_profiles' => :'agent_profiles',
33
+ :'error' => :'error',
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
+ :'agent_profiles' => :'Array<ConversationAgentProfile>',
49
+ :'error' => :'Error',
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::ConversationAgentProfilesResponse` 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::ConversationAgentProfilesResponse`. 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?(:'agent_profiles')
78
+ if (value = attributes[:'agent_profiles']).is_a?(Array)
79
+ self.agent_profiles = value
80
+ end
81
+ end
82
+
83
+ if attributes.key?(:'error')
84
+ self.error = attributes[:'error']
85
+ end
86
+
87
+ if attributes.key?(:'metadata')
88
+ self.metadata = attributes[:'metadata']
89
+ end
90
+
91
+ if attributes.key?(:'success')
92
+ self.success = attributes[:'success']
93
+ end
94
+
95
+ if attributes.key?(:'warning')
96
+ self.warning = attributes[:'warning']
97
+ end
98
+ end
99
+
100
+ # Show invalid properties with the reasons. Usually used together with valid?
101
+ # @return Array for valid properties with the reasons
102
+ def list_invalid_properties
103
+ invalid_properties = Array.new
104
+ invalid_properties
105
+ end
106
+
107
+ # Check to see if the all the properties in the model are valid
108
+ # @return true if the model is valid
109
+ def valid?
110
+ true
111
+ end
112
+
113
+ # Checks equality by comparing each attribute.
114
+ # @param [Object] Object to be compared
115
+ def ==(o)
116
+ return true if self.equal?(o)
117
+ self.class == o.class &&
118
+ agent_profiles == o.agent_profiles &&
119
+ error == o.error &&
120
+ metadata == o.metadata &&
121
+ success == o.success &&
122
+ warning == o.warning
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Integer] Hash code
133
+ def hash
134
+ [agent_profiles, error, metadata, success, warning].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def self.build_from_hash(attributes)
141
+ new.build_from_hash(attributes)
142
+ end
143
+
144
+ # Builds the object from hash
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ # @return [Object] Returns the model itself
147
+ def build_from_hash(attributes)
148
+ return nil unless attributes.is_a?(Hash)
149
+ attributes = attributes.transform_keys(&:to_sym)
150
+ self.class.openapi_types.each_pair do |key, type|
151
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
152
+ self.send("#{key}=", nil)
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ end
159
+ elsif !attributes[self.class.attribute_map[key]].nil?
160
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ end
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :Time
174
+ Time.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ # models (e.g. Pet) or oneOf
205
+ klass = UltracartClient.const_get(type)
206
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
207
+ end
208
+ end
209
+
210
+ # Returns the string representation of the object
211
+ # @return [String] String presentation of the object
212
+ def to_s
213
+ to_hash.to_s
214
+ end
215
+
216
+ # to_body is an alias to to_hash (backward compatibility)
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_body
219
+ to_hash
220
+ end
221
+
222
+ # Returns the object in the form of hash
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_hash
225
+ hash = {}
226
+ self.class.attribute_map.each_pair do |attr, param|
227
+ value = self.send(attr)
228
+ if value.nil?
229
+ is_nullable = self.class.openapi_nullable.include?(attr)
230
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
231
+ end
232
+
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map { |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+
256
+ end
257
+
258
+ 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.8'
14
+ VERSION = '4.1.9'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -152,6 +152,7 @@ require 'ultracart_api/models/conversation_agent_auth'
152
152
  require 'ultracart_api/models/conversation_agent_auth_response'
153
153
  require 'ultracart_api/models/conversation_agent_profile'
154
154
  require 'ultracart_api/models/conversation_agent_profile_response'
155
+ require 'ultracart_api/models/conversation_agent_profiles_response'
155
156
  require 'ultracart_api/models/conversation_autocomplete_request'
156
157
  require 'ultracart_api/models/conversation_autocomplete_response'
157
158
  require 'ultracart_api/models/conversation_autocomplete_value'
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.8
4
+ version: 4.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-22 00:00:00.000000000 Z
11
+ date: 2025-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -201,6 +201,7 @@ files:
201
201
  - docs/ConversationAgentAuthResponse.md
202
202
  - docs/ConversationAgentProfile.md
203
203
  - docs/ConversationAgentProfileResponse.md
204
+ - docs/ConversationAgentProfilesResponse.md
204
205
  - docs/ConversationApi.md
205
206
  - docs/ConversationAutocompleteRequest.md
206
207
  - docs/ConversationAutocompleteResponse.md
@@ -1101,6 +1102,7 @@ files:
1101
1102
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1102
1103
  - lib/ultracart_api/models/conversation_agent_profile.rb
1103
1104
  - lib/ultracart_api/models/conversation_agent_profile_response.rb
1105
+ - lib/ultracart_api/models/conversation_agent_profiles_response.rb
1104
1106
  - lib/ultracart_api/models/conversation_autocomplete_request.rb
1105
1107
  - lib/ultracart_api/models/conversation_autocomplete_response.rb
1106
1108
  - lib/ultracart_api/models/conversation_autocomplete_value.rb