ultracart_api 3.10.29 → 3.10.32

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.29'
14
+ VERSION = '3.10.32'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -138,6 +138,8 @@ 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'
142
+ require 'ultracart_api/models/conversation_event_typing'
141
143
  require 'ultracart_api/models/conversation_message'
142
144
  require 'ultracart_api/models/conversation_message_transport_status'
143
145
  require 'ultracart_api/models/conversation_multimedia_upload_url'
@@ -277,6 +279,8 @@ require 'ultracart_api/models/email_commseq_postcard_send_test_response'
277
279
  require 'ultracart_api/models/email_commseq_postcards_request'
278
280
  require 'ultracart_api/models/email_commseq_postcards_response'
279
281
  require 'ultracart_api/models/email_commseq_response'
282
+ require 'ultracart_api/models/email_commseq_sequence_test_request'
283
+ require 'ultracart_api/models/email_commseq_sequence_test_response'
280
284
  require 'ultracart_api/models/email_commseq_stat'
281
285
  require 'ultracart_api/models/email_commseq_stat_response'
282
286
  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.29
4
+ version: 3.10.32
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-29 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -348,6 +348,8 @@ files:
348
348
  - docs/ConversationAgentAuthResponse.md
349
349
  - docs/ConversationApi.md
350
350
  - docs/ConversationEventQueuePosition.md
351
+ - docs/ConversationEventRRWeb.md
352
+ - docs/ConversationEventTyping.md
351
353
  - docs/ConversationMessage.md
352
354
  - docs/ConversationMessageTransportStatus.md
353
355
  - docs/ConversationMultimediaUploadUrl.md
@@ -489,6 +491,8 @@ files:
489
491
  - docs/EmailCommseqPostcardsRequest.md
490
492
  - docs/EmailCommseqPostcardsResponse.md
491
493
  - docs/EmailCommseqResponse.md
494
+ - docs/EmailCommseqSequenceTestRequest.md
495
+ - docs/EmailCommseqSequenceTestResponse.md
492
496
  - docs/EmailCommseqStat.md
493
497
  - docs/EmailCommseqStatResponse.md
494
498
  - docs/EmailCommseqStep.md
@@ -1041,6 +1045,8 @@ files:
1041
1045
  - lib/ultracart_api/models/conversation_agent_auth.rb
1042
1046
  - lib/ultracart_api/models/conversation_agent_auth_response.rb
1043
1047
  - lib/ultracart_api/models/conversation_event_queue_position.rb
1048
+ - lib/ultracart_api/models/conversation_event_rr_web.rb
1049
+ - lib/ultracart_api/models/conversation_event_typing.rb
1044
1050
  - lib/ultracart_api/models/conversation_message.rb
1045
1051
  - lib/ultracart_api/models/conversation_message_transport_status.rb
1046
1052
  - lib/ultracart_api/models/conversation_multimedia_upload_url.rb
@@ -1180,6 +1186,8 @@ files:
1180
1186
  - lib/ultracart_api/models/email_commseq_postcards_request.rb
1181
1187
  - lib/ultracart_api/models/email_commseq_postcards_response.rb
1182
1188
  - lib/ultracart_api/models/email_commseq_response.rb
1189
+ - lib/ultracart_api/models/email_commseq_sequence_test_request.rb
1190
+ - lib/ultracart_api/models/email_commseq_sequence_test_response.rb
1183
1191
  - lib/ultracart_api/models/email_commseq_stat.rb
1184
1192
  - lib/ultracart_api/models/email_commseq_stat_response.rb
1185
1193
  - lib/ultracart_api/models/email_commseq_step.rb