ultracart_api 3.10.28 → 3.10.31

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,249 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class EmailCommseqSequenceTestRequest
17
+ attr_accessor :cart_id
18
+
19
+ attr_accessor :cart_item_ids
20
+
21
+ attr_accessor :esp_commseq_uuid
22
+
23
+ attr_accessor :name
24
+
25
+ attr_accessor :order_id
26
+
27
+ attr_accessor :please_review
28
+
29
+ attr_accessor :send_to_email
30
+
31
+ attr_accessor :send_to_logged_in_user
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'cart_id' => :'cart_id',
37
+ :'cart_item_ids' => :'cart_item_ids',
38
+ :'esp_commseq_uuid' => :'esp_commseq_uuid',
39
+ :'name' => :'name',
40
+ :'order_id' => :'order_id',
41
+ :'please_review' => :'please_review',
42
+ :'send_to_email' => :'send_to_email',
43
+ :'send_to_logged_in_user' => :'send_to_logged_in_user'
44
+ }
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.swagger_types
49
+ {
50
+ :'cart_id' => :'String',
51
+ :'cart_item_ids' => :'Array<String>',
52
+ :'esp_commseq_uuid' => :'String',
53
+ :'name' => :'String',
54
+ :'order_id' => :'String',
55
+ :'please_review' => :'BOOLEAN',
56
+ :'send_to_email' => :'String',
57
+ :'send_to_logged_in_user' => :'BOOLEAN'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.has_key?(:'cart_id')
70
+ self.cart_id = attributes[:'cart_id']
71
+ end
72
+
73
+ if attributes.has_key?(:'cart_item_ids')
74
+ if (value = attributes[:'cart_item_ids']).is_a?(Array)
75
+ self.cart_item_ids = value
76
+ end
77
+ end
78
+
79
+ if attributes.has_key?(:'esp_commseq_uuid')
80
+ self.esp_commseq_uuid = attributes[:'esp_commseq_uuid']
81
+ end
82
+
83
+ if attributes.has_key?(:'name')
84
+ self.name = attributes[:'name']
85
+ end
86
+
87
+ if attributes.has_key?(:'order_id')
88
+ self.order_id = attributes[:'order_id']
89
+ end
90
+
91
+ if attributes.has_key?(:'please_review')
92
+ self.please_review = attributes[:'please_review']
93
+ end
94
+
95
+ if attributes.has_key?(:'send_to_email')
96
+ self.send_to_email = attributes[:'send_to_email']
97
+ end
98
+
99
+ if attributes.has_key?(:'send_to_logged_in_user')
100
+ self.send_to_logged_in_user = attributes[:'send_to_logged_in_user']
101
+ end
102
+ end
103
+
104
+ # Show invalid properties with the reasons. Usually used together with valid?
105
+ # @return Array for valid properties with the reasons
106
+ def list_invalid_properties
107
+ invalid_properties = Array.new
108
+ invalid_properties
109
+ end
110
+
111
+ # Check to see if the all the properties in the model are valid
112
+ # @return true if the model is valid
113
+ def valid?
114
+ true
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ cart_id == o.cart_id &&
123
+ cart_item_ids == o.cart_item_ids &&
124
+ esp_commseq_uuid == o.esp_commseq_uuid &&
125
+ name == o.name &&
126
+ order_id == o.order_id &&
127
+ please_review == o.please_review &&
128
+ send_to_email == o.send_to_email &&
129
+ send_to_logged_in_user == o.send_to_logged_in_user
130
+ end
131
+
132
+ # @see the `==` method
133
+ # @param [Object] Object to be compared
134
+ def eql?(o)
135
+ self == o
136
+ end
137
+
138
+ # Calculates hash code according to all attributes.
139
+ # @return [Fixnum] Hash code
140
+ def hash
141
+ [cart_id, cart_item_ids, esp_commseq_uuid, name, order_id, please_review, send_to_email, send_to_logged_in_user].hash
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
+ self.class.swagger_types.each_pair do |key, type|
150
+ if type =~ /\AArray<(.*)>/i
151
+ # check to ensure the input is an array given that the attribute
152
+ # is documented as an array but the input is not
153
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
154
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
155
+ end
156
+ elsif !attributes[self.class.attribute_map[key]].nil?
157
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
158
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
159
+ end
160
+
161
+ self
162
+ end
163
+
164
+ # Deserializes the data based on type
165
+ # @param string type Data type
166
+ # @param string value Value to be deserialized
167
+ # @return [Object] Deserialized data
168
+ def _deserialize(type, value)
169
+ case type.to_sym
170
+ when :DateTime
171
+ DateTime.parse(value)
172
+ when :Date
173
+ Date.parse(value)
174
+ when :String
175
+ value.to_s
176
+ when :Integer
177
+ value.to_i
178
+ when :Float
179
+ value.to_f
180
+ when :BOOLEAN
181
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
182
+ true
183
+ else
184
+ false
185
+ end
186
+ when :Object
187
+ # generic object (usually a Hash), return directly
188
+ value
189
+ when /\AArray<(?<inner_type>.+)>\z/
190
+ inner_type = Regexp.last_match[:inner_type]
191
+ value.map { |v| _deserialize(inner_type, v) }
192
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
193
+ k_type = Regexp.last_match[:k_type]
194
+ v_type = Regexp.last_match[:v_type]
195
+ {}.tap do |hash|
196
+ value.each do |k, v|
197
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
198
+ end
199
+ end
200
+ else # model
201
+ temp_model = UltracartClient.const_get(type).new
202
+ temp_model.build_from_hash(value)
203
+ end
204
+ end
205
+
206
+ # Returns the string representation of the object
207
+ # @return [String] String presentation of the object
208
+ def to_s
209
+ to_hash.to_s
210
+ end
211
+
212
+ # to_body is an alias to to_hash (backward compatibility)
213
+ # @return [Hash] Returns the object in the form of hash
214
+ def to_body
215
+ to_hash
216
+ end
217
+
218
+ # Returns the object in the form of hash
219
+ # @return [Hash] Returns the object in the form of hash
220
+ def to_hash
221
+ hash = {}
222
+ self.class.attribute_map.each_pair do |attr, param|
223
+ value = self.send(attr)
224
+ next if value.nil?
225
+ hash[param] = _to_hash(value)
226
+ end
227
+ hash
228
+ end
229
+
230
+ # Outputs non-array value in the form of hash
231
+ # For object, use to_hash. Otherwise, just return the value
232
+ # @param [Object] value Any valid value
233
+ # @return [Hash] Returns the value in the form of hash
234
+ def _to_hash(value)
235
+ if value.is_a?(Array)
236
+ value.compact.map { |v| _to_hash(v) }
237
+ elsif value.is_a?(Hash)
238
+ {}.tap do |hash|
239
+ value.each { |k, v| hash[k] = _to_hash(v) }
240
+ end
241
+ elsif value.respond_to? :to_hash
242
+ value.to_hash
243
+ else
244
+ value
245
+ end
246
+ end
247
+
248
+ end
249
+ end
@@ -0,0 +1,212 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class EmailCommseqSequenceTestResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # Indicates if API call was successful
22
+ attr_accessor :success
23
+
24
+ attr_accessor :warning
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'error' => :'error',
30
+ :'metadata' => :'metadata',
31
+ :'success' => :'success',
32
+ :'warning' => :'warning'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.swagger_types
38
+ {
39
+ :'error' => :'Error',
40
+ :'metadata' => :'ResponseMetadata',
41
+ :'success' => :'BOOLEAN',
42
+ :'warning' => :'Warning'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
53
+
54
+ if attributes.has_key?(:'error')
55
+ self.error = attributes[:'error']
56
+ end
57
+
58
+ if attributes.has_key?(:'metadata')
59
+ self.metadata = attributes[:'metadata']
60
+ end
61
+
62
+ if attributes.has_key?(:'success')
63
+ self.success = attributes[:'success']
64
+ end
65
+
66
+ if attributes.has_key?(:'warning')
67
+ self.warning = attributes[:'warning']
68
+ end
69
+ end
70
+
71
+ # Show invalid properties with the reasons. Usually used together with valid?
72
+ # @return Array for valid properties with the reasons
73
+ def list_invalid_properties
74
+ invalid_properties = Array.new
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ true
82
+ end
83
+
84
+ # Checks equality by comparing each attribute.
85
+ # @param [Object] Object to be compared
86
+ def ==(o)
87
+ return true if self.equal?(o)
88
+ self.class == o.class &&
89
+ error == o.error &&
90
+ metadata == o.metadata &&
91
+ success == o.success &&
92
+ warning == o.warning
93
+ end
94
+
95
+ # @see the `==` method
96
+ # @param [Object] Object to be compared
97
+ def eql?(o)
98
+ self == o
99
+ end
100
+
101
+ # Calculates hash code according to all attributes.
102
+ # @return [Fixnum] Hash code
103
+ def hash
104
+ [error, metadata, success, warning].hash
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ self.class.swagger_types.each_pair do |key, type|
113
+ if type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :DateTime
134
+ DateTime.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :BOOLEAN
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ temp_model = UltracartClient.const_get(type).new
165
+ temp_model.build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ next if value.nil?
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ # Outputs non-array value in the form of hash
194
+ # For object, use to_hash. Otherwise, just return the value
195
+ # @param [Object] value Any valid value
196
+ # @return [Hash] Returns the value in the form of hash
197
+ def _to_hash(value)
198
+ if value.is_a?(Array)
199
+ value.compact.map { |v| _to_hash(v) }
200
+ elsif value.is_a?(Hash)
201
+ {}.tap do |hash|
202
+ value.each { |k, v| hash[k] = _to_hash(v) }
203
+ end
204
+ elsif value.respond_to? :to_hash
205
+ value.to_hash
206
+ else
207
+ value
208
+ end
209
+ end
210
+
211
+ end
212
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.28'
14
+ VERSION = '3.10.31'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -138,6 +138,7 @@ require 'ultracart_api/models/conversation'
138
138
  require 'ultracart_api/models/conversation_agent_auth'
139
139
  require 'ultracart_api/models/conversation_agent_auth_response'
140
140
  require 'ultracart_api/models/conversation_event_queue_position'
141
+ require 'ultracart_api/models/conversation_event_rr_web'
141
142
  require 'ultracart_api/models/conversation_message'
142
143
  require 'ultracart_api/models/conversation_message_transport_status'
143
144
  require 'ultracart_api/models/conversation_multimedia_upload_url'
@@ -147,6 +148,7 @@ require 'ultracart_api/models/conversation_response'
147
148
  require 'ultracart_api/models/conversation_start_request'
148
149
  require 'ultracart_api/models/conversation_start_response'
149
150
  require 'ultracart_api/models/conversation_summary'
151
+ require 'ultracart_api/models/conversation_twilio_account'
150
152
  require 'ultracart_api/models/conversation_webchat_queue_status'
151
153
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
152
154
  require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
@@ -276,6 +278,8 @@ require 'ultracart_api/models/email_commseq_postcard_send_test_response'
276
278
  require 'ultracart_api/models/email_commseq_postcards_request'
277
279
  require 'ultracart_api/models/email_commseq_postcards_response'
278
280
  require 'ultracart_api/models/email_commseq_response'
281
+ require 'ultracart_api/models/email_commseq_sequence_test_request'
282
+ require 'ultracart_api/models/email_commseq_sequence_test_response'
279
283
  require 'ultracart_api/models/email_commseq_stat'
280
284
  require 'ultracart_api/models/email_commseq_stat_response'
281
285
  require 'ultracart_api/models/email_commseq_step'
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: 3.10.28
4
+ version: 3.10.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-28 00:00:00.000000000 Z
11
+ date: 2022-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -348,6 +348,7 @@ files:
348
348
  - docs/ConversationAgentAuthResponse.md
349
349
  - docs/ConversationApi.md
350
350
  - docs/ConversationEventQueuePosition.md
351
+ - docs/ConversationEventRRWeb.md
351
352
  - docs/ConversationMessage.md
352
353
  - docs/ConversationMessageTransportStatus.md
353
354
  - docs/ConversationMultimediaUploadUrl.md
@@ -357,6 +358,7 @@ files:
357
358
  - docs/ConversationStartRequest.md
358
359
  - docs/ConversationStartResponse.md
359
360
  - docs/ConversationSummary.md
361
+ - docs/ConversationTwilioAccount.md
360
362
  - docs/ConversationWebchatQueueStatus.md
361
363
  - docs/ConversationWebchatQueueStatusAgent.md
362
364
  - docs/ConversationWebchatQueueStatusQueueEntry.md
@@ -488,6 +490,8 @@ files:
488
490
  - docs/EmailCommseqPostcardsRequest.md
489
491
  - docs/EmailCommseqPostcardsResponse.md
490
492
  - docs/EmailCommseqResponse.md
493
+ - docs/EmailCommseqSequenceTestRequest.md
494
+ - docs/EmailCommseqSequenceTestResponse.md
491
495
  - docs/EmailCommseqStat.md
492
496
  - docs/EmailCommseqStatResponse.md
493
497
  - docs/EmailCommseqStep.md
@@ -1040,6 +1044,7 @@ files:
1040
1044
  - lib/ultracart_api/models/conversation_agent_auth.rb
1041
1045
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1042
1046
  - lib/ultracart_api/models/conversation_event_queue_position.rb
1047
+ - lib/ultracart_api/models/conversation_event_rr_web.rb
1043
1048
  - lib/ultracart_api/models/conversation_message.rb
1044
1049
  - lib/ultracart_api/models/conversation_message_transport_status.rb
1045
1050
  - lib/ultracart_api/models/conversation_multimedia_upload_url.rb
@@ -1049,6 +1054,7 @@ files:
1049
1054
  - lib/ultracart_api/models/conversation_start_request.rb
1050
1055
  - lib/ultracart_api/models/conversation_start_response.rb
1051
1056
  - lib/ultracart_api/models/conversation_summary.rb
1057
+ - lib/ultracart_api/models/conversation_twilio_account.rb
1052
1058
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
1053
1059
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
1054
1060
  - lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb
@@ -1178,6 +1184,8 @@ files:
1178
1184
  - lib/ultracart_api/models/email_commseq_postcards_request.rb
1179
1185
  - lib/ultracart_api/models/email_commseq_postcards_response.rb
1180
1186
  - lib/ultracart_api/models/email_commseq_response.rb
1187
+ - lib/ultracart_api/models/email_commseq_sequence_test_request.rb
1188
+ - lib/ultracart_api/models/email_commseq_sequence_test_response.rb
1181
1189
  - lib/ultracart_api/models/email_commseq_stat.rb
1182
1190
  - lib/ultracart_api/models/email_commseq_stat_response.rb
1183
1191
  - lib/ultracart_api/models/email_commseq_step.rb