ultracart_api 4.0.50.rc → 4.0.51.rc

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: 20f4107abe5c5c048d1dc72eeb90abe36267fcf46e6a0ee229a61de254aad73f
4
- data.tar.gz: b0189c7f51337c28dc5a0e6fc1d7490e2b89b3fdbd465e1c05fa5ad651fa1d89
3
+ metadata.gz: 11411f98956e0b5b3fb41e00a9271f009c3f8b3078b0771460e799405558af84
4
+ data.tar.gz: 1883440bf616671e4c1bf3e244a7214d614cb462b6eb06baad2ecee6028e7cff
5
5
  SHA512:
6
- metadata.gz: 0cb722ef4e5653b42c999763f81276e56832de9b017ad234f56ccc2e523d1ca32ff82650d2c6f1226541107094af4457f2b6312c532bd6575427f8b892e61767
7
- data.tar.gz: f94050a8d39e0dcee5b540e9085bc887312fd2320e3ae4be5a6186aff401b8e0b2b2db22ff987d972b762da06309ac30744e4b4b5afb3a7ef9e179a791c7a960
6
+ metadata.gz: 5d2fac5fc8f15b8a6e8b2bbb024398632e2500ecfcff07209dfabd90260adbf11b43da7d512ebc32492c920943589c78936ab76bfce9f27da89f25619906670d
7
+ data.tar.gz: 9195b4829df200439b28c55e49e86f31f83c3e6b94841ee1445649e87c68276c46e5349a4b655d24f2ca18144b965764cd658d345eab85235362d6b1d018141f
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.50.rc
10
+ - Package version: 4.0.51.rc
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.50.rc.gem
27
+ gem install ./ultracart_api-4.0.51.rc.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.50.rc.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.51.rc.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.50.rc'
36
+ gem 'ultracart_api', '~> 4.0.51.rc'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1180,6 +1180,7 @@ Not every change is committed to every SDK.
1180
1180
 
1181
1181
  | Version | Date | Comments |
1182
1182
  | --: | :-: | --- |
1183
+ | 4.0.51-RC | 08/05/2022 | conversations query by medium and stats fixes |
1183
1184
  | 4.0.50-RC | 08/03/2022 | conversation summary participants |
1184
1185
  | 4.0.49-RC | 08/03/2022 | more conversation events |
1185
1186
  | 4.0.48-RC | 08/02/2022 | storefront communication sequence test method |
data/docs/Conversation.md CHANGED
@@ -7,9 +7,18 @@
7
7
  | **closed** | **Boolean** | | [optional] |
8
8
  | **conversation_arn** | **String** | | [optional] |
9
9
  | **conversation_uuid** | **String** | | [optional] |
10
+ | **last_conversation_message_body** | **String** | | [optional] |
11
+ | **last_conversation_participant_arn** | **String** | | [optional] |
12
+ | **last_conversation_participant_name** | **String** | | [optional] |
13
+ | **last_message_dts** | **String** | Last message date/time | [optional] |
14
+ | **medium** | **String** | The communication medium of the customer. | [optional] |
10
15
  | **merchant_id** | **String** | | [optional] |
16
+ | **message_count** | **Integer** | | [optional] |
11
17
  | **messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional] |
12
18
  | **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
19
+ | **start_dts** | **String** | Start of the conversation date/time | [optional] |
20
+ | **unread_messages** | **Boolean** | | [optional] |
21
+ | **visible** | **Boolean** | | [optional] |
13
22
 
14
23
  ## Example
15
24
 
@@ -20,9 +29,18 @@ instance = UltracartClient::Conversation.new(
20
29
  closed: null,
21
30
  conversation_arn: null,
22
31
  conversation_uuid: null,
32
+ last_conversation_message_body: null,
33
+ last_conversation_participant_arn: null,
34
+ last_conversation_participant_name: null,
35
+ last_message_dts: null,
36
+ medium: null,
23
37
  merchant_id: null,
38
+ message_count: null,
24
39
  messages: null,
25
- participants: null
40
+ participants: null,
41
+ start_dts: null,
42
+ unread_messages: null,
43
+ visible: null
26
44
  )
27
45
  ```
28
46
 
@@ -316,6 +316,7 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
316
316
 
317
317
  api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
318
318
  opts = {
319
+ medium: 'medium_example', # String |
319
320
  _limit: 56, # Integer | The maximum number of records to return on this one API call. (Max 200)
320
321
  _offset: 56 # Integer | Pagination of the record set. Offset is a zero based index.
321
322
  }
@@ -351,6 +352,7 @@ end
351
352
 
352
353
  | Name | Type | Description | Notes |
353
354
  | ---- | ---- | ----------- | ----- |
355
+ | **medium** | **String** | | [optional] |
354
356
  | **_limit** | **Integer** | The maximum number of records to return on this one API call. (Max 200) | [optional][default to 100] |
355
357
  | **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
356
358
 
@@ -11,6 +11,7 @@
11
11
  | **last_conversation_participant_arn** | **String** | | [optional] |
12
12
  | **last_conversation_participant_name** | **String** | | [optional] |
13
13
  | **last_message_dts** | **String** | Last message date/time | [optional] |
14
+ | **medium** | **String** | The communication medium of the customer. | [optional] |
14
15
  | **merchant_id** | **String** | | [optional] |
15
16
  | **message_count** | **Integer** | | [optional] |
16
17
  | **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
@@ -31,6 +32,7 @@ instance = UltracartClient::ConversationSummary.new(
31
32
  last_conversation_participant_arn: null,
32
33
  last_conversation_participant_name: null,
33
34
  last_message_dts: null,
35
+ medium: null,
34
36
  merchant_id: null,
35
37
  message_count: null,
36
38
  participants: null,
@@ -279,6 +279,7 @@ module UltracartClient
279
279
  # Retrieve a list of conversation summaries newest to oldest
280
280
  # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
281
281
  # @param [Hash] opts the optional parameters
282
+ # @option opts [String] :medium
282
283
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
283
284
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
284
285
  # @return [ConversationsResponse]
@@ -290,6 +291,7 @@ module UltracartClient
290
291
  # Retrieve a list of conversation summaries newest to oldest
291
292
  # Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
292
293
  # @param [Hash] opts the optional parameters
294
+ # @option opts [String] :medium
293
295
  # @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
294
296
  # @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
295
297
  # @return [Array<(ConversationsResponse, Integer, Hash)>] ConversationsResponse data, response status code and response headers
@@ -302,6 +304,7 @@ module UltracartClient
302
304
 
303
305
  # query parameters
304
306
  query_params = opts[:query_params] || {}
307
+ query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
305
308
  query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
306
309
  query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
307
310
 
@@ -21,21 +21,73 @@ module UltracartClient
21
21
 
22
22
  attr_accessor :conversation_uuid
23
23
 
24
+ attr_accessor :last_conversation_message_body
25
+
26
+ attr_accessor :last_conversation_participant_arn
27
+
28
+ attr_accessor :last_conversation_participant_name
29
+
30
+ # Last message date/time
31
+ attr_accessor :last_message_dts
32
+
33
+ # The communication medium of the customer.
34
+ attr_accessor :medium
35
+
24
36
  attr_accessor :merchant_id
25
37
 
38
+ attr_accessor :message_count
39
+
26
40
  attr_accessor :messages
27
41
 
28
42
  attr_accessor :participants
29
43
 
44
+ # Start of the conversation date/time
45
+ attr_accessor :start_dts
46
+
47
+ attr_accessor :unread_messages
48
+
49
+ attr_accessor :visible
50
+
51
+ class EnumAttributeValidator
52
+ attr_reader :datatype
53
+ attr_reader :allowable_values
54
+
55
+ def initialize(datatype, allowable_values)
56
+ @allowable_values = allowable_values.map do |value|
57
+ case datatype.to_s
58
+ when /Integer/i
59
+ value.to_i
60
+ when /Float/i
61
+ value.to_f
62
+ else
63
+ value
64
+ end
65
+ end
66
+ end
67
+
68
+ def valid?(value)
69
+ !value || allowable_values.include?(value)
70
+ end
71
+ end
72
+
30
73
  # Attribute mapping from ruby-style variable name to JSON key.
31
74
  def self.attribute_map
32
75
  {
33
76
  :'closed' => :'closed',
34
77
  :'conversation_arn' => :'conversation_arn',
35
78
  :'conversation_uuid' => :'conversation_uuid',
79
+ :'last_conversation_message_body' => :'last_conversation_message_body',
80
+ :'last_conversation_participant_arn' => :'last_conversation_participant_arn',
81
+ :'last_conversation_participant_name' => :'last_conversation_participant_name',
82
+ :'last_message_dts' => :'last_message_dts',
83
+ :'medium' => :'medium',
36
84
  :'merchant_id' => :'merchant_id',
85
+ :'message_count' => :'message_count',
37
86
  :'messages' => :'messages',
38
- :'participants' => :'participants'
87
+ :'participants' => :'participants',
88
+ :'start_dts' => :'start_dts',
89
+ :'unread_messages' => :'unread_messages',
90
+ :'visible' => :'visible'
39
91
  }
40
92
  end
41
93
 
@@ -50,9 +102,18 @@ module UltracartClient
50
102
  :'closed' => :'Boolean',
51
103
  :'conversation_arn' => :'String',
52
104
  :'conversation_uuid' => :'String',
105
+ :'last_conversation_message_body' => :'String',
106
+ :'last_conversation_participant_arn' => :'String',
107
+ :'last_conversation_participant_name' => :'String',
108
+ :'last_message_dts' => :'String',
109
+ :'medium' => :'String',
53
110
  :'merchant_id' => :'String',
111
+ :'message_count' => :'Integer',
54
112
  :'messages' => :'Array<ConversationMessage>',
55
- :'participants' => :'Array<ConversationParticipant>'
113
+ :'participants' => :'Array<ConversationParticipant>',
114
+ :'start_dts' => :'String',
115
+ :'unread_messages' => :'Boolean',
116
+ :'visible' => :'Boolean'
56
117
  }
57
118
  end
58
119
 
@@ -89,10 +150,34 @@ module UltracartClient
89
150
  self.conversation_uuid = attributes[:'conversation_uuid']
90
151
  end
91
152
 
153
+ if attributes.key?(:'last_conversation_message_body')
154
+ self.last_conversation_message_body = attributes[:'last_conversation_message_body']
155
+ end
156
+
157
+ if attributes.key?(:'last_conversation_participant_arn')
158
+ self.last_conversation_participant_arn = attributes[:'last_conversation_participant_arn']
159
+ end
160
+
161
+ if attributes.key?(:'last_conversation_participant_name')
162
+ self.last_conversation_participant_name = attributes[:'last_conversation_participant_name']
163
+ end
164
+
165
+ if attributes.key?(:'last_message_dts')
166
+ self.last_message_dts = attributes[:'last_message_dts']
167
+ end
168
+
169
+ if attributes.key?(:'medium')
170
+ self.medium = attributes[:'medium']
171
+ end
172
+
92
173
  if attributes.key?(:'merchant_id')
93
174
  self.merchant_id = attributes[:'merchant_id']
94
175
  end
95
176
 
177
+ if attributes.key?(:'message_count')
178
+ self.message_count = attributes[:'message_count']
179
+ end
180
+
96
181
  if attributes.key?(:'messages')
97
182
  if (value = attributes[:'messages']).is_a?(Array)
98
183
  self.messages = value
@@ -104,6 +189,18 @@ module UltracartClient
104
189
  self.participants = value
105
190
  end
106
191
  end
192
+
193
+ if attributes.key?(:'start_dts')
194
+ self.start_dts = attributes[:'start_dts']
195
+ end
196
+
197
+ if attributes.key?(:'unread_messages')
198
+ self.unread_messages = attributes[:'unread_messages']
199
+ end
200
+
201
+ if attributes.key?(:'visible')
202
+ self.visible = attributes[:'visible']
203
+ end
107
204
  end
108
205
 
109
206
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,9 +213,21 @@ module UltracartClient
116
213
  # Check to see if the all the properties in the model are valid
117
214
  # @return true if the model is valid
118
215
  def valid?
216
+ medium_validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
217
+ return false unless medium_validator.valid?(@medium)
119
218
  true
120
219
  end
121
220
 
221
+ # Custom attribute writer method checking allowed values (enum).
222
+ # @param [Object] medium Object to be assigned
223
+ def medium=(medium)
224
+ validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
225
+ unless validator.valid?(medium)
226
+ fail ArgumentError, "invalid value for \"medium\", must be one of #{validator.allowable_values}."
227
+ end
228
+ @medium = medium
229
+ end
230
+
122
231
  # Checks equality by comparing each attribute.
123
232
  # @param [Object] Object to be compared
124
233
  def ==(o)
@@ -127,9 +236,18 @@ module UltracartClient
127
236
  closed == o.closed &&
128
237
  conversation_arn == o.conversation_arn &&
129
238
  conversation_uuid == o.conversation_uuid &&
239
+ last_conversation_message_body == o.last_conversation_message_body &&
240
+ last_conversation_participant_arn == o.last_conversation_participant_arn &&
241
+ last_conversation_participant_name == o.last_conversation_participant_name &&
242
+ last_message_dts == o.last_message_dts &&
243
+ medium == o.medium &&
130
244
  merchant_id == o.merchant_id &&
245
+ message_count == o.message_count &&
131
246
  messages == o.messages &&
132
- participants == o.participants
247
+ participants == o.participants &&
248
+ start_dts == o.start_dts &&
249
+ unread_messages == o.unread_messages &&
250
+ visible == o.visible
133
251
  end
134
252
 
135
253
  # @see the `==` method
@@ -141,7 +259,7 @@ module UltracartClient
141
259
  # Calculates hash code according to all attributes.
142
260
  # @return [Integer] Hash code
143
261
  def hash
144
- [closed, conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
262
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, messages, participants, start_dts, unread_messages, visible].hash
145
263
  end
146
264
 
147
265
  # Builds the object from hash
@@ -30,6 +30,9 @@ module UltracartClient
30
30
  # Last message date/time
31
31
  attr_accessor :last_message_dts
32
32
 
33
+ # The communication medium of the customer.
34
+ attr_accessor :medium
35
+
33
36
  attr_accessor :merchant_id
34
37
 
35
38
  attr_accessor :message_count
@@ -43,6 +46,28 @@ module UltracartClient
43
46
 
44
47
  attr_accessor :visible
45
48
 
49
+ class EnumAttributeValidator
50
+ attr_reader :datatype
51
+ attr_reader :allowable_values
52
+
53
+ def initialize(datatype, allowable_values)
54
+ @allowable_values = allowable_values.map do |value|
55
+ case datatype.to_s
56
+ when /Integer/i
57
+ value.to_i
58
+ when /Float/i
59
+ value.to_f
60
+ else
61
+ value
62
+ end
63
+ end
64
+ end
65
+
66
+ def valid?(value)
67
+ !value || allowable_values.include?(value)
68
+ end
69
+ end
70
+
46
71
  # Attribute mapping from ruby-style variable name to JSON key.
47
72
  def self.attribute_map
48
73
  {
@@ -53,6 +78,7 @@ module UltracartClient
53
78
  :'last_conversation_participant_arn' => :'last_conversation_participant_arn',
54
79
  :'last_conversation_participant_name' => :'last_conversation_participant_name',
55
80
  :'last_message_dts' => :'last_message_dts',
81
+ :'medium' => :'medium',
56
82
  :'merchant_id' => :'merchant_id',
57
83
  :'message_count' => :'message_count',
58
84
  :'participants' => :'participants',
@@ -77,6 +103,7 @@ module UltracartClient
77
103
  :'last_conversation_participant_arn' => :'String',
78
104
  :'last_conversation_participant_name' => :'String',
79
105
  :'last_message_dts' => :'String',
106
+ :'medium' => :'String',
80
107
  :'merchant_id' => :'String',
81
108
  :'message_count' => :'Integer',
82
109
  :'participants' => :'Array<ConversationParticipant>',
@@ -135,6 +162,10 @@ module UltracartClient
135
162
  self.last_message_dts = attributes[:'last_message_dts']
136
163
  end
137
164
 
165
+ if attributes.key?(:'medium')
166
+ self.medium = attributes[:'medium']
167
+ end
168
+
138
169
  if attributes.key?(:'merchant_id')
139
170
  self.merchant_id = attributes[:'merchant_id']
140
171
  end
@@ -172,9 +203,21 @@ module UltracartClient
172
203
  # Check to see if the all the properties in the model are valid
173
204
  # @return true if the model is valid
174
205
  def valid?
206
+ medium_validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
207
+ return false unless medium_validator.valid?(@medium)
175
208
  true
176
209
  end
177
210
 
211
+ # Custom attribute writer method checking allowed values (enum).
212
+ # @param [Object] medium Object to be assigned
213
+ def medium=(medium)
214
+ validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
215
+ unless validator.valid?(medium)
216
+ fail ArgumentError, "invalid value for \"medium\", must be one of #{validator.allowable_values}."
217
+ end
218
+ @medium = medium
219
+ end
220
+
178
221
  # Checks equality by comparing each attribute.
179
222
  # @param [Object] Object to be compared
180
223
  def ==(o)
@@ -187,6 +230,7 @@ module UltracartClient
187
230
  last_conversation_participant_arn == o.last_conversation_participant_arn &&
188
231
  last_conversation_participant_name == o.last_conversation_participant_name &&
189
232
  last_message_dts == o.last_message_dts &&
233
+ medium == o.medium &&
190
234
  merchant_id == o.merchant_id &&
191
235
  message_count == o.message_count &&
192
236
  participants == o.participants &&
@@ -204,7 +248,7 @@ module UltracartClient
204
248
  # Calculates hash code according to all attributes.
205
249
  # @return [Integer] Hash code
206
250
  def hash
207
- [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, participants, start_dts, unread_messages, visible].hash
251
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, participants, start_dts, unread_messages, visible].hash
208
252
  end
209
253
 
210
254
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.50.rc'
14
+ VERSION = '4.0.51.rc'
15
15
  end
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.50.rc
4
+ version: 4.0.51.rc
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-03 00:00:00.000000000 Z
11
+ date: 2022-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus