ultracart_api 4.0.210 → 4.0.212
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 +4 -4
- data/README.md +11 -5
- data/docs/AutoOrderApi.md +78 -0
- data/docs/AutoOrderConsolidate.md +18 -0
- data/docs/ConversationAgentAuth.md +6 -0
- data/docs/ConversationApi.md +5 -5
- data/docs/ConversationPbxAudioUploadUrl.md +20 -0
- data/docs/ConversationPbxAudioUploadUrlResponse.md +26 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +2 -2
- data/docs/ConversationPbxQueue.md +3 -1
- data/docs/EmailCommseqEmail.md +16 -0
- data/docs/ItemChargeback.md +2 -2
- data/docs/OrderRefundableResponse.md +2 -0
- data/lib/ultracart_api/api/auto_order_api.rb +78 -0
- data/lib/ultracart_api/api/conversation_api.rb +4 -4
- data/lib/ultracart_api/models/auto_order_consolidate.rb +221 -0
- data/lib/ultracart_api/models/conversation_agent_auth.rb +28 -1
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb +228 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb +256 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb +9 -7
- data/lib/ultracart_api/models/conversation_pbx_queue.rb +14 -4
- data/lib/ultracart_api/models/email_commseq_email.rb +73 -1
- data/lib/ultracart_api/models/item_chargeback.rb +2 -2
- data/lib/ultracart_api/models/order_refundable_response.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +3 -0
- metadata +8 -2
@@ -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 ConversationPbxAudioUploadUrlResponse
|
18
|
+
attr_accessor :conversation_pbx_audio_upload_url
|
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
|
+
:'conversation_pbx_audio_upload_url' => :'conversation_pbx_audio_upload_url',
|
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
|
+
:'conversation_pbx_audio_upload_url' => :'ConversationPbxAudioUploadUrl',
|
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::ConversationPbxAudioUploadUrlResponse` 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::ConversationPbxAudioUploadUrlResponse`. 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?(:'conversation_pbx_audio_upload_url')
|
78
|
+
self.conversation_pbx_audio_upload_url = attributes[:'conversation_pbx_audio_upload_url']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'error')
|
82
|
+
self.error = attributes[:'error']
|
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
|
+
conversation_pbx_audio_upload_url == o.conversation_pbx_audio_upload_url &&
|
117
|
+
error == o.error &&
|
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
|
+
[conversation_pbx_audio_upload_url, error, 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
|
@@ -17,7 +17,7 @@ module UltracartClient
|
|
17
17
|
class ConversationPbxCustomerSnapshotResponse
|
18
18
|
attr_accessor :auto_orders
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :customers
|
21
21
|
|
22
22
|
attr_accessor :error
|
23
23
|
|
@@ -34,7 +34,7 @@ module UltracartClient
|
|
34
34
|
def self.attribute_map
|
35
35
|
{
|
36
36
|
:'auto_orders' => :'auto_orders',
|
37
|
-
:'
|
37
|
+
:'customers' => :'customers',
|
38
38
|
:'error' => :'error',
|
39
39
|
:'metadata' => :'metadata',
|
40
40
|
:'orders' => :'orders',
|
@@ -52,7 +52,7 @@ module UltracartClient
|
|
52
52
|
def self.openapi_types
|
53
53
|
{
|
54
54
|
:'auto_orders' => :'Array<AutoOrder>',
|
55
|
-
:'
|
55
|
+
:'customers' => :'Array<Customer>',
|
56
56
|
:'error' => :'Error',
|
57
57
|
:'metadata' => :'ResponseMetadata',
|
58
58
|
:'orders' => :'Array<Order>',
|
@@ -88,8 +88,10 @@ module UltracartClient
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
-
if attributes.key?(:'
|
92
|
-
|
91
|
+
if attributes.key?(:'customers')
|
92
|
+
if (value = attributes[:'customers']).is_a?(Array)
|
93
|
+
self.customers = value
|
94
|
+
end
|
93
95
|
end
|
94
96
|
|
95
97
|
if attributes.key?(:'error')
|
@@ -134,7 +136,7 @@ module UltracartClient
|
|
134
136
|
return true if self.equal?(o)
|
135
137
|
self.class == o.class &&
|
136
138
|
auto_orders == o.auto_orders &&
|
137
|
-
|
139
|
+
customers == o.customers &&
|
138
140
|
error == o.error &&
|
139
141
|
metadata == o.metadata &&
|
140
142
|
orders == o.orders &&
|
@@ -151,7 +153,7 @@ module UltracartClient
|
|
151
153
|
# Calculates hash code according to all attributes.
|
152
154
|
# @return [Integer] Hash code
|
153
155
|
def hash
|
154
|
-
[auto_orders,
|
156
|
+
[auto_orders, customers, error, metadata, orders, success, warning].hash
|
155
157
|
end
|
156
158
|
|
157
159
|
# Builds the object from hash
|
@@ -74,6 +74,9 @@ module UltracartClient
|
|
74
74
|
# Wait time in seconds before warning
|
75
75
|
attr_accessor :wait_warning_seconds
|
76
76
|
|
77
|
+
# Wrap up time in seconds
|
78
|
+
attr_accessor :wrap_up_seconds
|
79
|
+
|
77
80
|
# Attribute mapping from ruby-style variable name to JSON key.
|
78
81
|
def self.attribute_map
|
79
82
|
{
|
@@ -96,7 +99,8 @@ module UltracartClient
|
|
96
99
|
:'twilio_workspace_queue_sid' => :'twilio_workspace_queue_sid',
|
97
100
|
:'voicemail' => :'voicemail',
|
98
101
|
:'wait_critical_seconds' => :'wait_critical_seconds',
|
99
|
-
:'wait_warning_seconds' => :'wait_warning_seconds'
|
102
|
+
:'wait_warning_seconds' => :'wait_warning_seconds',
|
103
|
+
:'wrap_up_seconds' => :'wrap_up_seconds'
|
100
104
|
}
|
101
105
|
end
|
102
106
|
|
@@ -127,7 +131,8 @@ module UltracartClient
|
|
127
131
|
:'twilio_workspace_queue_sid' => :'String',
|
128
132
|
:'voicemail' => :'Boolean',
|
129
133
|
:'wait_critical_seconds' => :'Integer',
|
130
|
-
:'wait_warning_seconds' => :'Integer'
|
134
|
+
:'wait_warning_seconds' => :'Integer',
|
135
|
+
:'wrap_up_seconds' => :'Integer'
|
131
136
|
}
|
132
137
|
end
|
133
138
|
|
@@ -231,6 +236,10 @@ module UltracartClient
|
|
231
236
|
if attributes.key?(:'wait_warning_seconds')
|
232
237
|
self.wait_warning_seconds = attributes[:'wait_warning_seconds']
|
233
238
|
end
|
239
|
+
|
240
|
+
if attributes.key?(:'wrap_up_seconds')
|
241
|
+
self.wrap_up_seconds = attributes[:'wrap_up_seconds']
|
242
|
+
end
|
234
243
|
end
|
235
244
|
|
236
245
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -420,7 +429,8 @@ module UltracartClient
|
|
420
429
|
twilio_workspace_queue_sid == o.twilio_workspace_queue_sid &&
|
421
430
|
voicemail == o.voicemail &&
|
422
431
|
wait_critical_seconds == o.wait_critical_seconds &&
|
423
|
-
wait_warning_seconds == o.wait_warning_seconds
|
432
|
+
wait_warning_seconds == o.wait_warning_seconds &&
|
433
|
+
wrap_up_seconds == o.wrap_up_seconds
|
424
434
|
end
|
425
435
|
|
426
436
|
# @see the `==` method
|
@@ -432,7 +442,7 @@ module UltracartClient
|
|
432
442
|
# Calculates hash code according to all attributes.
|
433
443
|
# @return [Integer] Hash code
|
434
444
|
def hash
|
435
|
-
[announce_queue_position, conversation_pbx_queue_uuid, conversation_voicemail_mailbox_uuid, hold_conversation_pbx_audio_uuid, max_hold_seconds, members, merchant_id, name, no_agent_available_play_audio_uuid, no_agent_available_say, no_agent_available_say_voice, play_audio_uuid, record_call, say, say_voice, twilio_taskrouter_workflow_sid, twilio_workspace_queue_sid, voicemail, wait_critical_seconds, wait_warning_seconds].hash
|
445
|
+
[announce_queue_position, conversation_pbx_queue_uuid, conversation_voicemail_mailbox_uuid, hold_conversation_pbx_audio_uuid, max_hold_seconds, members, merchant_id, name, no_agent_available_play_audio_uuid, no_agent_available_say, no_agent_available_say_voice, play_audio_uuid, record_call, say, say_voice, twilio_taskrouter_workflow_sid, twilio_workspace_queue_sid, voicemail, wait_critical_seconds, wait_warning_seconds, wrap_up_seconds].hash
|
436
446
|
end
|
437
447
|
|
438
448
|
# Builds the object from hash
|
@@ -36,6 +36,22 @@ module UltracartClient
|
|
36
36
|
# Email template virtual path
|
37
37
|
attr_accessor :email_template_vm_path
|
38
38
|
|
39
|
+
attr_accessor :external_generation
|
40
|
+
|
41
|
+
attr_accessor :external_generation_authentication
|
42
|
+
|
43
|
+
attr_accessor :external_generation_basic_password
|
44
|
+
|
45
|
+
attr_accessor :external_generation_basic_username
|
46
|
+
|
47
|
+
attr_accessor :external_generation_header_name
|
48
|
+
|
49
|
+
attr_accessor :external_generation_header_value
|
50
|
+
|
51
|
+
attr_accessor :external_generation_id
|
52
|
+
|
53
|
+
attr_accessor :external_generation_url
|
54
|
+
|
39
55
|
# Filter profile equation json
|
40
56
|
attr_accessor :filter_profile_equation_json
|
41
57
|
|
@@ -103,6 +119,14 @@ module UltracartClient
|
|
103
119
|
:'email_container_cjson' => :'email_container_cjson',
|
104
120
|
:'email_container_cjson_last_modified_dts' => :'email_container_cjson_last_modified_dts',
|
105
121
|
:'email_template_vm_path' => :'email_template_vm_path',
|
122
|
+
:'external_generation' => :'external_generation',
|
123
|
+
:'external_generation_authentication' => :'external_generation_authentication',
|
124
|
+
:'external_generation_basic_password' => :'external_generation_basic_password',
|
125
|
+
:'external_generation_basic_username' => :'external_generation_basic_username',
|
126
|
+
:'external_generation_header_name' => :'external_generation_header_name',
|
127
|
+
:'external_generation_header_value' => :'external_generation_header_value',
|
128
|
+
:'external_generation_id' => :'external_generation_id',
|
129
|
+
:'external_generation_url' => :'external_generation_url',
|
106
130
|
:'filter_profile_equation_json' => :'filter_profile_equation_json',
|
107
131
|
:'individually_render' => :'individually_render',
|
108
132
|
:'library_item_oid' => :'library_item_oid',
|
@@ -140,6 +164,14 @@ module UltracartClient
|
|
140
164
|
:'email_container_cjson' => :'String',
|
141
165
|
:'email_container_cjson_last_modified_dts' => :'String',
|
142
166
|
:'email_template_vm_path' => :'String',
|
167
|
+
:'external_generation' => :'Boolean',
|
168
|
+
:'external_generation_authentication' => :'String',
|
169
|
+
:'external_generation_basic_password' => :'String',
|
170
|
+
:'external_generation_basic_username' => :'String',
|
171
|
+
:'external_generation_header_name' => :'String',
|
172
|
+
:'external_generation_header_value' => :'String',
|
173
|
+
:'external_generation_id' => :'String',
|
174
|
+
:'external_generation_url' => :'String',
|
143
175
|
:'filter_profile_equation_json' => :'String',
|
144
176
|
:'individually_render' => :'Boolean',
|
145
177
|
:'library_item_oid' => :'Integer',
|
@@ -211,6 +243,38 @@ module UltracartClient
|
|
211
243
|
self.email_template_vm_path = attributes[:'email_template_vm_path']
|
212
244
|
end
|
213
245
|
|
246
|
+
if attributes.key?(:'external_generation')
|
247
|
+
self.external_generation = attributes[:'external_generation']
|
248
|
+
end
|
249
|
+
|
250
|
+
if attributes.key?(:'external_generation_authentication')
|
251
|
+
self.external_generation_authentication = attributes[:'external_generation_authentication']
|
252
|
+
end
|
253
|
+
|
254
|
+
if attributes.key?(:'external_generation_basic_password')
|
255
|
+
self.external_generation_basic_password = attributes[:'external_generation_basic_password']
|
256
|
+
end
|
257
|
+
|
258
|
+
if attributes.key?(:'external_generation_basic_username')
|
259
|
+
self.external_generation_basic_username = attributes[:'external_generation_basic_username']
|
260
|
+
end
|
261
|
+
|
262
|
+
if attributes.key?(:'external_generation_header_name')
|
263
|
+
self.external_generation_header_name = attributes[:'external_generation_header_name']
|
264
|
+
end
|
265
|
+
|
266
|
+
if attributes.key?(:'external_generation_header_value')
|
267
|
+
self.external_generation_header_value = attributes[:'external_generation_header_value']
|
268
|
+
end
|
269
|
+
|
270
|
+
if attributes.key?(:'external_generation_id')
|
271
|
+
self.external_generation_id = attributes[:'external_generation_id']
|
272
|
+
end
|
273
|
+
|
274
|
+
if attributes.key?(:'external_generation_url')
|
275
|
+
self.external_generation_url = attributes[:'external_generation_url']
|
276
|
+
end
|
277
|
+
|
214
278
|
if attributes.key?(:'filter_profile_equation_json')
|
215
279
|
self.filter_profile_equation_json = attributes[:'filter_profile_equation_json']
|
216
280
|
end
|
@@ -313,6 +377,14 @@ module UltracartClient
|
|
313
377
|
email_container_cjson == o.email_container_cjson &&
|
314
378
|
email_container_cjson_last_modified_dts == o.email_container_cjson_last_modified_dts &&
|
315
379
|
email_template_vm_path == o.email_template_vm_path &&
|
380
|
+
external_generation == o.external_generation &&
|
381
|
+
external_generation_authentication == o.external_generation_authentication &&
|
382
|
+
external_generation_basic_password == o.external_generation_basic_password &&
|
383
|
+
external_generation_basic_username == o.external_generation_basic_username &&
|
384
|
+
external_generation_header_name == o.external_generation_header_name &&
|
385
|
+
external_generation_header_value == o.external_generation_header_value &&
|
386
|
+
external_generation_id == o.external_generation_id &&
|
387
|
+
external_generation_url == o.external_generation_url &&
|
316
388
|
filter_profile_equation_json == o.filter_profile_equation_json &&
|
317
389
|
individually_render == o.individually_render &&
|
318
390
|
library_item_oid == o.library_item_oid &&
|
@@ -343,7 +415,7 @@ module UltracartClient
|
|
343
415
|
# Calculates hash code according to all attributes.
|
344
416
|
# @return [Integer] Hash code
|
345
417
|
def hash
|
346
|
-
[deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, filter_profile_equation_json, individually_render, library_item_oid, magic_link, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
418
|
+
[deleted, edited_by_user, email_communication_sequence_email_uuid, email_communication_sequence_uuid, email_container_cjson, email_container_cjson_last_modified_dts, email_template_vm_path, external_generation, external_generation_authentication, external_generation_basic_password, external_generation_basic_username, external_generation_header_name, external_generation_header_value, external_generation_id, external_generation_url, filter_profile_equation_json, individually_render, library_item_oid, magic_link, merchant_id, pending_review, preview_text, rejected, requires_review, screenshot_large_full_url, screenshot_large_viewport_url, screenshot_small_full_url, screenshot_small_viewport_url, smart_sending, storefront_oid, subject, suspended_for_spam, transactional_email, version].hash
|
347
419
|
end
|
348
420
|
|
349
421
|
# Builds the object from hash
|
@@ -15,10 +15,10 @@ require 'time'
|
|
15
15
|
|
16
16
|
module UltracartClient
|
17
17
|
class ItemChargeback
|
18
|
-
# Addendums
|
18
|
+
# Addendums (deprecated)
|
19
19
|
attr_accessor :addendums
|
20
20
|
|
21
|
-
# Adjustment requests
|
21
|
+
# Adjustment requests (deprecated)
|
22
22
|
attr_accessor :adjustment_requests
|
23
23
|
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -37,6 +37,9 @@ module UltracartClient
|
|
37
37
|
# Reason codes available at the order level.
|
38
38
|
attr_accessor :order_level_refund_reasons
|
39
39
|
|
40
|
+
# True if the order level reject reason is required
|
41
|
+
attr_accessor :order_level_reject_reason_required
|
42
|
+
|
40
43
|
# Reject codes available at the order level.
|
41
44
|
attr_accessor :order_level_reject_reasons
|
42
45
|
|
@@ -59,6 +62,7 @@ module UltracartClient
|
|
59
62
|
:'metadata' => :'metadata',
|
60
63
|
:'order_level_refund_reason_required' => :'order_level_refund_reason_required',
|
61
64
|
:'order_level_refund_reasons' => :'order_level_refund_reasons',
|
65
|
+
:'order_level_reject_reason_required' => :'order_level_reject_reason_required',
|
62
66
|
:'order_level_reject_reasons' => :'order_level_reject_reasons',
|
63
67
|
:'refundable' => :'refundable',
|
64
68
|
:'success' => :'success',
|
@@ -82,6 +86,7 @@ module UltracartClient
|
|
82
86
|
:'metadata' => :'ResponseMetadata',
|
83
87
|
:'order_level_refund_reason_required' => :'Boolean',
|
84
88
|
:'order_level_refund_reasons' => :'Array<OrderReason>',
|
89
|
+
:'order_level_reject_reason_required' => :'Boolean',
|
85
90
|
:'order_level_reject_reasons' => :'Array<OrderReason>',
|
86
91
|
:'refundable' => :'Boolean',
|
87
92
|
:'success' => :'Boolean',
|
@@ -148,6 +153,10 @@ module UltracartClient
|
|
148
153
|
end
|
149
154
|
end
|
150
155
|
|
156
|
+
if attributes.key?(:'order_level_reject_reason_required')
|
157
|
+
self.order_level_reject_reason_required = attributes[:'order_level_reject_reason_required']
|
158
|
+
end
|
159
|
+
|
151
160
|
if attributes.key?(:'order_level_reject_reasons')
|
152
161
|
if (value = attributes[:'order_level_reject_reasons']).is_a?(Array)
|
153
162
|
self.order_level_reject_reasons = value
|
@@ -193,6 +202,7 @@ module UltracartClient
|
|
193
202
|
metadata == o.metadata &&
|
194
203
|
order_level_refund_reason_required == o.order_level_refund_reason_required &&
|
195
204
|
order_level_refund_reasons == o.order_level_refund_reasons &&
|
205
|
+
order_level_reject_reason_required == o.order_level_reject_reason_required &&
|
196
206
|
order_level_reject_reasons == o.order_level_reject_reasons &&
|
197
207
|
refundable == o.refundable &&
|
198
208
|
success == o.success &&
|
@@ -208,7 +218,7 @@ module UltracartClient
|
|
208
218
|
# Calculates hash code according to all attributes.
|
209
219
|
# @return [Integer] Hash code
|
210
220
|
def hash
|
211
|
-
[error, item_level_refund_reason_required, item_level_refund_reasons, item_level_return_reasons, manual_because_multiple_charges, metadata, order_level_refund_reason_required, order_level_refund_reasons, order_level_reject_reasons, refundable, success, warning].hash
|
221
|
+
[error, item_level_refund_reason_required, item_level_refund_reasons, item_level_return_reasons, manual_because_multiple_charges, metadata, order_level_refund_reason_required, order_level_refund_reasons, order_level_reject_reason_required, order_level_reject_reasons, refundable, success, warning].hash
|
212
222
|
end
|
213
223
|
|
214
224
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -42,6 +42,7 @@ require 'ultracart_api/models/apply_library_item_response'
|
|
42
42
|
require 'ultracart_api/models/auto_order'
|
43
43
|
require 'ultracart_api/models/auto_order_addon_item'
|
44
44
|
require 'ultracart_api/models/auto_order_addon_item_option'
|
45
|
+
require 'ultracart_api/models/auto_order_consolidate'
|
45
46
|
require 'ultracart_api/models/auto_order_item'
|
46
47
|
require 'ultracart_api/models/auto_order_item_future_schedule'
|
47
48
|
require 'ultracart_api/models/auto_order_item_option'
|
@@ -190,6 +191,8 @@ require 'ultracart_api/models/conversation_pbx_agent_response'
|
|
190
191
|
require 'ultracart_api/models/conversation_pbx_agents_response'
|
191
192
|
require 'ultracart_api/models/conversation_pbx_audio'
|
192
193
|
require 'ultracart_api/models/conversation_pbx_audio_response'
|
194
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url'
|
195
|
+
require 'ultracart_api/models/conversation_pbx_audio_upload_url_response'
|
193
196
|
require 'ultracart_api/models/conversation_pbx_audios_response'
|
194
197
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_request'
|
195
198
|
require 'ultracart_api/models/conversation_pbx_customer_snapshot_response'
|
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.0.
|
4
|
+
version: 4.0.212
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -88,6 +88,7 @@ files:
|
|
88
88
|
- docs/AutoOrderAddonItem.md
|
89
89
|
- docs/AutoOrderAddonItemOption.md
|
90
90
|
- docs/AutoOrderApi.md
|
91
|
+
- docs/AutoOrderConsolidate.md
|
91
92
|
- docs/AutoOrderItem.md
|
92
93
|
- docs/AutoOrderItemFutureSchedule.md
|
93
94
|
- docs/AutoOrderItemOption.md
|
@@ -240,6 +241,8 @@ files:
|
|
240
241
|
- docs/ConversationPbxAgentsResponse.md
|
241
242
|
- docs/ConversationPbxAudio.md
|
242
243
|
- docs/ConversationPbxAudioResponse.md
|
244
|
+
- docs/ConversationPbxAudioUploadUrl.md
|
245
|
+
- docs/ConversationPbxAudioUploadUrlResponse.md
|
243
246
|
- docs/ConversationPbxAudiosResponse.md
|
244
247
|
- docs/ConversationPbxCustomerSnapshotRequest.md
|
245
248
|
- docs/ConversationPbxCustomerSnapshotResponse.md
|
@@ -977,6 +980,7 @@ files:
|
|
977
980
|
- lib/ultracart_api/models/auto_order.rb
|
978
981
|
- lib/ultracart_api/models/auto_order_addon_item.rb
|
979
982
|
- lib/ultracart_api/models/auto_order_addon_item_option.rb
|
983
|
+
- lib/ultracart_api/models/auto_order_consolidate.rb
|
980
984
|
- lib/ultracart_api/models/auto_order_item.rb
|
981
985
|
- lib/ultracart_api/models/auto_order_item_future_schedule.rb
|
982
986
|
- lib/ultracart_api/models/auto_order_item_option.rb
|
@@ -1125,6 +1129,8 @@ files:
|
|
1125
1129
|
- lib/ultracart_api/models/conversation_pbx_agents_response.rb
|
1126
1130
|
- lib/ultracart_api/models/conversation_pbx_audio.rb
|
1127
1131
|
- lib/ultracart_api/models/conversation_pbx_audio_response.rb
|
1132
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url.rb
|
1133
|
+
- lib/ultracart_api/models/conversation_pbx_audio_upload_url_response.rb
|
1128
1134
|
- lib/ultracart_api/models/conversation_pbx_audios_response.rb
|
1129
1135
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb
|
1130
1136
|
- lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb
|