ultracart_api 4.0.213 → 4.0.214

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b3f3dec98b4283bf562c8c44f574993622b804f547d5c21c5994f49656ddc34
4
- data.tar.gz: 89fb687420b9bd534b77fb95eef0974dcdad2979a7d96acee5bd76ffc6dd67bc
3
+ metadata.gz: 84d82b354b6a45523b83fc8d8af3cc716d5c60fc42f2fbe523f0c0babbbc21c8
4
+ data.tar.gz: a434d841a40ef462de6a0a6b66e64741fa2d5ed2ab6147eb7efe86c2555071bb
5
5
  SHA512:
6
- metadata.gz: 58ef39492149158a900b50850bb4493a0526814411e3d7354330e79856f0c714bfc4021c6b809dba60935cdb3cb4ed4a813a461d271064ffb36519146d18ee5d
7
- data.tar.gz: 6224ed3b2c68694784d0078650eb81eca7951326b96d55d2995677ee23be2e520a7c1d85504b15e62a39f19abd16e1bf4f379254170de7e5312b0979138ea5ba
6
+ metadata.gz: d6cd1885bc1ce33ea5a8e696f61c1a83aa320613e137ae964d2ae414c53b369e1a2d4c417c9aaf3331f26f78de0d314371d0c6d035bf8ebcc9bb7ea6b25d0e00
7
+ data.tar.gz: fe4650161212c69b67097e90a7dd924664dbdedad4eab345f0abcf6e4bcb3105df511ab174cfb5136d34414e902ba889130e060d1b0dafec67876d13541b637e
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
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.0.213
10
+ - Package version: 4.0.214
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.213.gem
27
+ gem install ./ultracart_api-4.0.214.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.213.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.214.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.213'
36
+ gem 'ultracart_api', '~> 4.0.214'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -177,6 +177,7 @@ Class | Method | HTTP request | Description
177
177
  *UltracartClient::ConversationApi* | [**get_pbx_agent_voicemails**](docs/ConversationApi.md#get_pbx_agent_voicemails) | **GET** /conversation/pbx/agent/voicemails | Get Agent Voicemails
178
178
  *UltracartClient::ConversationApi* | [**get_pbx_agents**](docs/ConversationApi.md#get_pbx_agents) | **GET** /conversation/pbx/agent | Get pbx agents
179
179
  *UltracartClient::ConversationApi* | [**get_pbx_audio**](docs/ConversationApi.md#get_pbx_audio) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid} | Get pbx audio
180
+ *UltracartClient::ConversationApi* | [**get_pbx_audio_usage**](docs/ConversationApi.md#get_pbx_audio_usage) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid}/usage | Get pbx audio usage
180
181
  *UltracartClient::ConversationApi* | [**get_pbx_audios**](docs/ConversationApi.md#get_pbx_audios) | **GET** /conversation/pbx/audio | Get pbx audios
181
182
  *UltracartClient::ConversationApi* | [**get_pbx_menu**](docs/ConversationApi.md#get_pbx_menu) | **GET** /conversation/pbx/menu/{conversationPbxMenuUuid} | Get pbx menu
182
183
  *UltracartClient::ConversationApi* | [**get_pbx_menus**](docs/ConversationApi.md#get_pbx_menus) | **GET** /conversation/pbx/menu | Get pbx menus
@@ -765,6 +766,7 @@ Class | Method | HTTP request | Description
765
766
  - [UltracartClient::ConversationPbxAudioResponse](docs/ConversationPbxAudioResponse.md)
766
767
  - [UltracartClient::ConversationPbxAudioUploadUrl](docs/ConversationPbxAudioUploadUrl.md)
767
768
  - [UltracartClient::ConversationPbxAudioUploadUrlResponse](docs/ConversationPbxAudioUploadUrlResponse.md)
769
+ - [UltracartClient::ConversationPbxAudioUsageResponse](docs/ConversationPbxAudioUsageResponse.md)
768
770
  - [UltracartClient::ConversationPbxAudiosResponse](docs/ConversationPbxAudiosResponse.md)
769
771
  - [UltracartClient::ConversationPbxCustomerSnapshotRequest](docs/ConversationPbxCustomerSnapshotRequest.md)
770
772
  - [UltracartClient::ConversationPbxCustomerSnapshotResponse](docs/ConversationPbxCustomerSnapshotResponse.md)
@@ -1511,6 +1513,7 @@ Not every change is committed to every SDK.
1511
1513
 
1512
1514
  | Version | Date | Comments |
1513
1515
  | --: | :-: | --- |
1516
+ | 4.0.214 | 05/02/2024 | conversation - new method to load pbx audio usage |
1514
1517
  | 4.0.213 | 05/02/2024 | autoorder - fields to record merge association and tstamp |
1515
1518
  | 4.0.212 | 05/01/2024 | getConversationPbxAudioUploadUrl - fix the response obj def |
1516
1519
  | 4.0.211 | 04/24/2024 | esp - add fields for external generation on email |
@@ -42,6 +42,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
42
42
  | [**get_pbx_agent_voicemails**](ConversationApi.md#get_pbx_agent_voicemails) | **GET** /conversation/pbx/agent/voicemails | Get Agent Voicemails |
43
43
  | [**get_pbx_agents**](ConversationApi.md#get_pbx_agents) | **GET** /conversation/pbx/agent | Get pbx agents |
44
44
  | [**get_pbx_audio**](ConversationApi.md#get_pbx_audio) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid} | Get pbx audio |
45
+ | [**get_pbx_audio_usage**](ConversationApi.md#get_pbx_audio_usage) | **GET** /conversation/pbx/audio/{conversationPbxAudioUuid}/usage | Get pbx audio usage |
45
46
  | [**get_pbx_audios**](ConversationApi.md#get_pbx_audios) | **GET** /conversation/pbx/audio | Get pbx audios |
46
47
  | [**get_pbx_menu**](ConversationApi.md#get_pbx_menu) | **GET** /conversation/pbx/menu/{conversationPbxMenuUuid} | Get pbx menu |
47
48
  | [**get_pbx_menus**](ConversationApi.md#get_pbx_menus) | **GET** /conversation/pbx/menu | Get pbx menus |
@@ -2768,6 +2769,77 @@ end
2768
2769
  - **Accept**: application/json
2769
2770
 
2770
2771
 
2772
+ ## get_pbx_audio_usage
2773
+
2774
+ > <ConversationPbxAudioUsageResponse> get_pbx_audio_usage(conversation_pbx_audio_uuid)
2775
+
2776
+ Get pbx audio usage
2777
+
2778
+ Retrieve a pbx audio usage
2779
+
2780
+ ### Examples
2781
+
2782
+ ```ruby
2783
+ require 'time'
2784
+ require 'ultracart_api'
2785
+ require 'json'
2786
+ require 'yaml'
2787
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
2788
+
2789
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
2790
+ # As such, this might not be the best way to use this object.
2791
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
2792
+
2793
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
2794
+ conversation_pbx_audio_uuid = 'conversation_pbx_audio_uuid_example' # String |
2795
+
2796
+ begin
2797
+ # Get pbx audio usage
2798
+ result = api_instance.get_pbx_audio_usage(conversation_pbx_audio_uuid)
2799
+ p result
2800
+ rescue UltracartClient::ApiError => e
2801
+ puts "Error when calling ConversationApi->get_pbx_audio_usage: #{e}"
2802
+ end
2803
+ ```
2804
+
2805
+ #### Using the get_pbx_audio_usage_with_http_info variant
2806
+
2807
+ This returns an Array which contains the response data, status code and headers.
2808
+
2809
+ > <Array(<ConversationPbxAudioUsageResponse>, Integer, Hash)> get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid)
2810
+
2811
+ ```ruby
2812
+ begin
2813
+ # Get pbx audio usage
2814
+ data, status_code, headers = api_instance.get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid)
2815
+ p status_code # => 2xx
2816
+ p headers # => { ... }
2817
+ p data # => <ConversationPbxAudioUsageResponse>
2818
+ rescue UltracartClient::ApiError => e
2819
+ puts "Error when calling ConversationApi->get_pbx_audio_usage_with_http_info: #{e}"
2820
+ end
2821
+ ```
2822
+
2823
+ ### Parameters
2824
+
2825
+ | Name | Type | Description | Notes |
2826
+ | ---- | ---- | ----------- | ----- |
2827
+ | **conversation_pbx_audio_uuid** | **String** | | |
2828
+
2829
+ ### Return type
2830
+
2831
+ [**ConversationPbxAudioUsageResponse**](ConversationPbxAudioUsageResponse.md)
2832
+
2833
+ ### Authorization
2834
+
2835
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
2836
+
2837
+ ### HTTP request headers
2838
+
2839
+ - **Content-Type**: Not defined
2840
+ - **Accept**: application/json
2841
+
2842
+
2771
2843
  ## get_pbx_audios
2772
2844
 
2773
2845
  > <ConversationPbxAudiosResponse> get_pbx_audios
@@ -0,0 +1,30 @@
1
+ # UltracartClient::ConversationPbxAudioUsageResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **menus** | [**Array&lt;ConversationPbxMenu&gt;**](ConversationPbxMenu.md) | | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **queues** | [**Array&lt;ConversationPbxQueue&gt;**](ConversationPbxQueue.md) | | [optional] |
11
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
12
+ | **voicemail_mailboxes** | [**Array&lt;ConversationPbxVoicemailMailbox&gt;**](ConversationPbxVoicemailMailbox.md) | | [optional] |
13
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ultracart_api'
19
+
20
+ instance = UltracartClient::ConversationPbxAudioUsageResponse.new(
21
+ error: null,
22
+ menus: null,
23
+ metadata: null,
24
+ queues: null,
25
+ success: null,
26
+ voicemail_mailboxes: null,
27
+ warning: null
28
+ )
29
+ ```
30
+
@@ -2431,6 +2431,70 @@ module UltracartClient
2431
2431
  return data, status_code, headers
2432
2432
  end
2433
2433
 
2434
+ # Get pbx audio usage
2435
+ # Retrieve a pbx audio usage
2436
+ # @param conversation_pbx_audio_uuid [String]
2437
+ # @param [Hash] opts the optional parameters
2438
+ # @return [ConversationPbxAudioUsageResponse]
2439
+ def get_pbx_audio_usage(conversation_pbx_audio_uuid, opts = {})
2440
+ data, _status_code, _headers = get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid, opts)
2441
+ data
2442
+ end
2443
+
2444
+ # Get pbx audio usage
2445
+ # Retrieve a pbx audio usage
2446
+ # @param conversation_pbx_audio_uuid [String]
2447
+ # @param [Hash] opts the optional parameters
2448
+ # @return [Array<(ConversationPbxAudioUsageResponse, Integer, Hash)>] ConversationPbxAudioUsageResponse data, response status code and response headers
2449
+ def get_pbx_audio_usage_with_http_info(conversation_pbx_audio_uuid, opts = {})
2450
+ if @api_client.config.debugging
2451
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_audio_usage ...'
2452
+ end
2453
+ # verify the required parameter 'conversation_pbx_audio_uuid' is set
2454
+ if @api_client.config.client_side_validation && conversation_pbx_audio_uuid.nil?
2455
+ fail ArgumentError, "Missing the required parameter 'conversation_pbx_audio_uuid' when calling ConversationApi.get_pbx_audio_usage"
2456
+ end
2457
+ # resource path
2458
+ local_var_path = '/conversation/pbx/audio/{conversationPbxAudioUuid}/usage'.sub('{' + 'conversationPbxAudioUuid' + '}', CGI.escape(conversation_pbx_audio_uuid.to_s))
2459
+
2460
+ # query parameters
2461
+ query_params = opts[:query_params] || {}
2462
+
2463
+ # header parameters
2464
+ header_params = opts[:header_params] || {}
2465
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
2466
+ # HTTP header 'Accept' (if needed)
2467
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2468
+
2469
+ # form parameters
2470
+ form_params = opts[:form_params] || {}
2471
+
2472
+ # http body (model)
2473
+ post_body = opts[:debug_body]
2474
+
2475
+ # return_type
2476
+ return_type = opts[:debug_return_type] || 'ConversationPbxAudioUsageResponse'
2477
+
2478
+ # auth_names
2479
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
2480
+
2481
+ new_options = opts.merge(
2482
+ :operation => :"ConversationApi.get_pbx_audio_usage",
2483
+ :header_params => header_params,
2484
+ :query_params => query_params,
2485
+ :form_params => form_params,
2486
+ :body => post_body,
2487
+ :auth_names => auth_names,
2488
+ :return_type => return_type
2489
+ )
2490
+
2491
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2492
+ if @api_client.config.debugging
2493
+ @api_client.config.logger.debug "API called: ConversationApi#get_pbx_audio_usage\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2494
+ end
2495
+ return data, status_code, headers
2496
+ end
2497
+
2434
2498
  # Get pbx audios
2435
2499
  # Retrieve pbx audios
2436
2500
  # @param [Hash] opts the optional parameters
@@ -0,0 +1,280 @@
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 ConversationPbxAudioUsageResponse
18
+ attr_accessor :error
19
+
20
+ attr_accessor :menus
21
+
22
+ attr_accessor :metadata
23
+
24
+ attr_accessor :queues
25
+
26
+ # Indicates if API call was successful
27
+ attr_accessor :success
28
+
29
+ attr_accessor :voicemail_mailboxes
30
+
31
+ attr_accessor :warning
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'error' => :'error',
37
+ :'menus' => :'menus',
38
+ :'metadata' => :'metadata',
39
+ :'queues' => :'queues',
40
+ :'success' => :'success',
41
+ :'voicemail_mailboxes' => :'voicemail_mailboxes',
42
+ :'warning' => :'warning'
43
+ }
44
+ end
45
+
46
+ # Returns all the JSON keys this model knows about
47
+ def self.acceptable_attributes
48
+ attribute_map.values
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'error' => :'Error',
55
+ :'menus' => :'Array<ConversationPbxMenu>',
56
+ :'metadata' => :'ResponseMetadata',
57
+ :'queues' => :'Array<ConversationPbxQueue>',
58
+ :'success' => :'Boolean',
59
+ :'voicemail_mailboxes' => :'Array<ConversationPbxVoicemailMailbox>',
60
+ :'warning' => :'Warning'
61
+ }
62
+ end
63
+
64
+ # List of attributes with nullable: true
65
+ def self.openapi_nullable
66
+ Set.new([
67
+ ])
68
+ end
69
+
70
+ # Initializes the object
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ def initialize(attributes = {})
73
+ if (!attributes.is_a?(Hash))
74
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationPbxAudioUsageResponse` initialize method"
75
+ end
76
+
77
+ # check to see if the attribute exists and convert string to symbol for hash key
78
+ attributes = attributes.each_with_object({}) { |(k, v), h|
79
+ if (!self.class.attribute_map.key?(k.to_sym))
80
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationPbxAudioUsageResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
81
+ end
82
+ h[k.to_sym] = v
83
+ }
84
+
85
+ if attributes.key?(:'error')
86
+ self.error = attributes[:'error']
87
+ end
88
+
89
+ if attributes.key?(:'menus')
90
+ if (value = attributes[:'menus']).is_a?(Array)
91
+ self.menus = value
92
+ end
93
+ end
94
+
95
+ if attributes.key?(:'metadata')
96
+ self.metadata = attributes[:'metadata']
97
+ end
98
+
99
+ if attributes.key?(:'queues')
100
+ if (value = attributes[:'queues']).is_a?(Array)
101
+ self.queues = value
102
+ end
103
+ end
104
+
105
+ if attributes.key?(:'success')
106
+ self.success = attributes[:'success']
107
+ end
108
+
109
+ if attributes.key?(:'voicemail_mailboxes')
110
+ if (value = attributes[:'voicemail_mailboxes']).is_a?(Array)
111
+ self.voicemail_mailboxes = value
112
+ end
113
+ end
114
+
115
+ if attributes.key?(:'warning')
116
+ self.warning = attributes[:'warning']
117
+ end
118
+ end
119
+
120
+ # Show invalid properties with the reasons. Usually used together with valid?
121
+ # @return Array for valid properties with the reasons
122
+ def list_invalid_properties
123
+ invalid_properties = Array.new
124
+ invalid_properties
125
+ end
126
+
127
+ # Check to see if the all the properties in the model are valid
128
+ # @return true if the model is valid
129
+ def valid?
130
+ true
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ error == o.error &&
139
+ menus == o.menus &&
140
+ metadata == o.metadata &&
141
+ queues == o.queues &&
142
+ success == o.success &&
143
+ voicemail_mailboxes == o.voicemail_mailboxes &&
144
+ warning == o.warning
145
+ end
146
+
147
+ # @see the `==` method
148
+ # @param [Object] Object to be compared
149
+ def eql?(o)
150
+ self == o
151
+ end
152
+
153
+ # Calculates hash code according to all attributes.
154
+ # @return [Integer] Hash code
155
+ def hash
156
+ [error, menus, metadata, queues, success, voicemail_mailboxes, warning].hash
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def self.build_from_hash(attributes)
163
+ new.build_from_hash(attributes)
164
+ end
165
+
166
+ # Builds the object from hash
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ # @return [Object] Returns the model itself
169
+ def build_from_hash(attributes)
170
+ return nil unless attributes.is_a?(Hash)
171
+ attributes = attributes.transform_keys(&:to_sym)
172
+ self.class.openapi_types.each_pair do |key, type|
173
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
174
+ self.send("#{key}=", nil)
175
+ elsif type =~ /\AArray<(.*)>/i
176
+ # check to ensure the input is an array given that the attribute
177
+ # is documented as an array but the input is not
178
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
179
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
180
+ end
181
+ elsif !attributes[self.class.attribute_map[key]].nil?
182
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
183
+ end
184
+ end
185
+
186
+ self
187
+ end
188
+
189
+ # Deserializes the data based on type
190
+ # @param string type Data type
191
+ # @param string value Value to be deserialized
192
+ # @return [Object] Deserialized data
193
+ def _deserialize(type, value)
194
+ case type.to_sym
195
+ when :Time
196
+ Time.parse(value)
197
+ when :Date
198
+ Date.parse(value)
199
+ when :String
200
+ value.to_s
201
+ when :Integer
202
+ value.to_i
203
+ when :Float
204
+ value.to_f
205
+ when :Boolean
206
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
207
+ true
208
+ else
209
+ false
210
+ end
211
+ when :Object
212
+ # generic object (usually a Hash), return directly
213
+ value
214
+ when /\AArray<(?<inner_type>.+)>\z/
215
+ inner_type = Regexp.last_match[:inner_type]
216
+ value.map { |v| _deserialize(inner_type, v) }
217
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
218
+ k_type = Regexp.last_match[:k_type]
219
+ v_type = Regexp.last_match[:v_type]
220
+ {}.tap do |hash|
221
+ value.each do |k, v|
222
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
223
+ end
224
+ end
225
+ else # model
226
+ # models (e.g. Pet) or oneOf
227
+ klass = UltracartClient.const_get(type)
228
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
229
+ end
230
+ end
231
+
232
+ # Returns the string representation of the object
233
+ # @return [String] String presentation of the object
234
+ def to_s
235
+ to_hash.to_s
236
+ end
237
+
238
+ # to_body is an alias to to_hash (backward compatibility)
239
+ # @return [Hash] Returns the object in the form of hash
240
+ def to_body
241
+ to_hash
242
+ end
243
+
244
+ # Returns the object in the form of hash
245
+ # @return [Hash] Returns the object in the form of hash
246
+ def to_hash
247
+ hash = {}
248
+ self.class.attribute_map.each_pair do |attr, param|
249
+ value = self.send(attr)
250
+ if value.nil?
251
+ is_nullable = self.class.openapi_nullable.include?(attr)
252
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
253
+ end
254
+
255
+ hash[param] = _to_hash(value)
256
+ end
257
+ hash
258
+ end
259
+
260
+ # Outputs non-array value in the form of hash
261
+ # For object, use to_hash. Otherwise, just return the value
262
+ # @param [Object] value Any valid value
263
+ # @return [Hash] Returns the value in the form of hash
264
+ def _to_hash(value)
265
+ if value.is_a?(Array)
266
+ value.compact.map { |v| _to_hash(v) }
267
+ elsif value.is_a?(Hash)
268
+ {}.tap do |hash|
269
+ value.each { |k, v| hash[k] = _to_hash(v) }
270
+ end
271
+ elsif value.respond_to? :to_hash
272
+ value.to_hash
273
+ else
274
+ value
275
+ end
276
+ end
277
+
278
+ end
279
+
280
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.213'
14
+ VERSION = '4.0.214'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -193,6 +193,7 @@ require 'ultracart_api/models/conversation_pbx_audio'
193
193
  require 'ultracart_api/models/conversation_pbx_audio_response'
194
194
  require 'ultracart_api/models/conversation_pbx_audio_upload_url'
195
195
  require 'ultracart_api/models/conversation_pbx_audio_upload_url_response'
196
+ require 'ultracart_api/models/conversation_pbx_audio_usage_response'
196
197
  require 'ultracart_api/models/conversation_pbx_audios_response'
197
198
  require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
198
199
  require 'ultracart_api/models/conversation_pbx_customer_snapshot_response'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.213
4
+ version: 4.0.214
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
@@ -243,6 +243,7 @@ files:
243
243
  - docs/ConversationPbxAudioResponse.md
244
244
  - docs/ConversationPbxAudioUploadUrl.md
245
245
  - docs/ConversationPbxAudioUploadUrlResponse.md
246
+ - docs/ConversationPbxAudioUsageResponse.md
246
247
  - docs/ConversationPbxAudiosResponse.md
247
248
  - docs/ConversationPbxCustomerSnapshotRequest.md
248
249
  - docs/ConversationPbxCustomerSnapshotResponse.md
@@ -1131,6 +1132,7 @@ files:
1131
1132
  - lib/ultracart_api/models/conversation_pbx_audio_response.rb
1132
1133
  - lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb
1133
1134
  - lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb
1135
+ - lib/ultracart_api/models/conversation_pbx_audio_usage_response.rb
1134
1136
  - lib/ultracart_api/models/conversation_pbx_audios_response.rb
1135
1137
  - lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
1136
1138
  - lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb