ultracart_api 3.10.28 → 3.10.29

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: 318716e3c951f48123d5680ccb6eeaaae0d1730abdce2e8331d3147870e4e257
4
- data.tar.gz: c36d17549fb0f6a52b7367e4f26278fc18052af5d08e529c2b2d00fb390a1b7c
3
+ metadata.gz: 6abed8e1e4872a7847e7b24bf7a961f5b4327dc094b42c131548a1519bc36031
4
+ data.tar.gz: '0881d8766ba29f7ed66f57390336fcbf3e50368dd4de0391171ae2bf699fe2a9'
5
5
  SHA512:
6
- metadata.gz: d1bc988c0d76418ab36b3cb64f395b1c7f79558c837e0511746b3b0365aa186cd01b04608aca5dd36243c16d437f8b9f589e068e4249458d3045127b3b5bdf2b
7
- data.tar.gz: 9590096f203eceed86560be5a2599a595e15c21917ec3f9c9b04eefd270f72489e235eb8de0b10d0cd32a95a83cf71442124113a7ed4fce657faf43bddfb5c5a
6
+ metadata.gz: ab263cb66fcfa98b1e5bd64425baffd8202eace4d65e34eef6e680657cbaf50beb17ebf32bee8ba51778a9270a0bc3be1bc1c80aa970d2daabf90faf330ddfbe
7
+ data.tar.gz: 19a908d8e9aa5c372e741d8a9d380d6edf7443763696e70d8de3264e9109b041a7a04e90456b1f777a49d3b3a64d922fe07739f1d59313c49b6aae60684dbd1a
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 3.10.28
10
+ - Package version: 3.10.29
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-3.10.28.gem
27
+ gem install ./ultracart_api-3.10.29.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.28.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.29.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'ultracart_api', '~> 3.10.28'
35
+ gem 'ultracart_api', '~> 3.10.29'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -571,6 +571,7 @@ Class | Method | HTTP request | Description
571
571
  - [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
572
572
  - [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
573
573
  - [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
574
+ - [UltracartClient::ConversationTwilioAccount](docs/ConversationTwilioAccount.md)
574
575
  - [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
575
576
  - [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
576
577
  - [UltracartClient::ConversationWebchatQueueStatusQueueEntry](docs/ConversationWebchatQueueStatusQueueEntry.md)
@@ -1166,6 +1167,7 @@ Not every change is committed to every SDK.
1166
1167
 
1167
1168
  | Version | Date | Comments |
1168
1169
  | --: | :-: | --- |
1170
+ | 3.10.29 | 07/29/2022 | conversation development |
1169
1171
  | 3.10.28 | 07/28/2022 | conversation bug fixes |
1170
1172
  | 3.10.27 | 07/28/2022 | conversation message upload keys property |
1171
1173
  | 3.10.26 | 07/26/2022 | conversations - queue statistics |
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  **conversation_participant_name** | **String** | | [optional]
8
8
  **jwt** | **String** | | [optional]
9
9
  **merchant_id** | **String** | | [optional]
10
- **twilio_phone_numbers** | **Array<String>** | | [optional]
10
+ **twilio_accounts** | [**Array<ConversationTwilioAccount>**](ConversationTwilioAccount.md) | | [optional]
11
11
  **websocket_url** | **String** | | [optional]
12
12
 
13
13
 
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **author_conversation_participant_arn** | **String** | | [optional]
7
7
  **author_conversation_participant_name** | **String** | | [optional]
8
8
  **body** | **String** | | [optional]
9
+ **client_message_id** | **String** | | [optional]
9
10
  **media_urls** | **Array<String>** | | [optional]
10
11
  **message_dts** | **String** | Message date/time | [optional]
11
12
  **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
12
12
  **last_message_dts** | **String** | Last message date/time | [optional]
13
13
  **merchant_id** | **String** | | [optional]
14
14
  **message_count** | **Integer** | | [optional]
15
+ **start_dts** | **String** | Start of the conversation date/time | [optional]
15
16
  **unread_messages** | **BOOLEAN** | | [optional]
17
+ **visible** | **BOOLEAN** | | [optional]
16
18
 
17
19
 
@@ -0,0 +1,9 @@
1
+ # UltracartClient::ConversationTwilioAccount
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **merchant_id** | **String** | | [optional]
7
+ **twilio_phone_numbers** | **Array<String>** | | [optional]
8
+
9
+
@@ -22,7 +22,7 @@ module UltracartClient
22
22
 
23
23
  attr_accessor :merchant_id
24
24
 
25
- attr_accessor :twilio_phone_numbers
25
+ attr_accessor :twilio_accounts
26
26
 
27
27
  attr_accessor :websocket_url
28
28
 
@@ -33,7 +33,7 @@ module UltracartClient
33
33
  :'conversation_participant_name' => :'conversation_participant_name',
34
34
  :'jwt' => :'jwt',
35
35
  :'merchant_id' => :'merchant_id',
36
- :'twilio_phone_numbers' => :'twilio_phone_numbers',
36
+ :'twilio_accounts' => :'twilio_accounts',
37
37
  :'websocket_url' => :'websocket_url'
38
38
  }
39
39
  end
@@ -45,7 +45,7 @@ module UltracartClient
45
45
  :'conversation_participant_name' => :'String',
46
46
  :'jwt' => :'String',
47
47
  :'merchant_id' => :'String',
48
- :'twilio_phone_numbers' => :'Array<String>',
48
+ :'twilio_accounts' => :'Array<ConversationTwilioAccount>',
49
49
  :'websocket_url' => :'String'
50
50
  }
51
51
  end
@@ -74,9 +74,9 @@ module UltracartClient
74
74
  self.merchant_id = attributes[:'merchant_id']
75
75
  end
76
76
 
77
- if attributes.has_key?(:'twilio_phone_numbers')
78
- if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
79
- self.twilio_phone_numbers = value
77
+ if attributes.has_key?(:'twilio_accounts')
78
+ if (value = attributes[:'twilio_accounts']).is_a?(Array)
79
+ self.twilio_accounts = value
80
80
  end
81
81
  end
82
82
 
@@ -107,7 +107,7 @@ module UltracartClient
107
107
  conversation_participant_name == o.conversation_participant_name &&
108
108
  jwt == o.jwt &&
109
109
  merchant_id == o.merchant_id &&
110
- twilio_phone_numbers == o.twilio_phone_numbers &&
110
+ twilio_accounts == o.twilio_accounts &&
111
111
  websocket_url == o.websocket_url
112
112
  end
113
113
 
@@ -120,7 +120,7 @@ module UltracartClient
120
120
  # Calculates hash code according to all attributes.
121
121
  # @return [Fixnum] Hash code
122
122
  def hash
123
- [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_phone_numbers, websocket_url].hash
123
+ [conversation_participant_arn, conversation_participant_name, jwt, merchant_id, twilio_accounts, websocket_url].hash
124
124
  end
125
125
 
126
126
  # Builds the object from hash
@@ -20,6 +20,8 @@ module UltracartClient
20
20
 
21
21
  attr_accessor :body
22
22
 
23
+ attr_accessor :client_message_id
24
+
23
25
  attr_accessor :media_urls
24
26
 
25
27
  # Message date/time
@@ -35,6 +37,7 @@ module UltracartClient
35
37
  :'author_conversation_participant_arn' => :'author_conversation_participant_arn',
36
38
  :'author_conversation_participant_name' => :'author_conversation_participant_name',
37
39
  :'body' => :'body',
40
+ :'client_message_id' => :'client_message_id',
38
41
  :'media_urls' => :'media_urls',
39
42
  :'message_dts' => :'message_dts',
40
43
  :'transport_statuses' => :'transport_statuses',
@@ -48,6 +51,7 @@ module UltracartClient
48
51
  :'author_conversation_participant_arn' => :'String',
49
52
  :'author_conversation_participant_name' => :'String',
50
53
  :'body' => :'String',
54
+ :'client_message_id' => :'String',
51
55
  :'media_urls' => :'Array<String>',
52
56
  :'message_dts' => :'String',
53
57
  :'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
@@ -75,6 +79,10 @@ module UltracartClient
75
79
  self.body = attributes[:'body']
76
80
  end
77
81
 
82
+ if attributes.has_key?(:'client_message_id')
83
+ self.client_message_id = attributes[:'client_message_id']
84
+ end
85
+
78
86
  if attributes.has_key?(:'media_urls')
79
87
  if (value = attributes[:'media_urls']).is_a?(Array)
80
88
  self.media_urls = value
@@ -119,6 +127,7 @@ module UltracartClient
119
127
  author_conversation_participant_arn == o.author_conversation_participant_arn &&
120
128
  author_conversation_participant_name == o.author_conversation_participant_name &&
121
129
  body == o.body &&
130
+ client_message_id == o.client_message_id &&
122
131
  media_urls == o.media_urls &&
123
132
  message_dts == o.message_dts &&
124
133
  transport_statuses == o.transport_statuses &&
@@ -134,7 +143,7 @@ module UltracartClient
134
143
  # Calculates hash code according to all attributes.
135
144
  # @return [Fixnum] Hash code
136
145
  def hash
137
- [author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses, upload_keys].hash
146
+ [author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, upload_keys].hash
138
147
  end
139
148
 
140
149
  # Builds the object from hash
@@ -33,8 +33,13 @@ module UltracartClient
33
33
 
34
34
  attr_accessor :message_count
35
35
 
36
+ # Start of the conversation date/time
37
+ attr_accessor :start_dts
38
+
36
39
  attr_accessor :unread_messages
37
40
 
41
+ attr_accessor :visible
42
+
38
43
  # Attribute mapping from ruby-style variable name to JSON key.
39
44
  def self.attribute_map
40
45
  {
@@ -47,7 +52,9 @@ module UltracartClient
47
52
  :'last_message_dts' => :'last_message_dts',
48
53
  :'merchant_id' => :'merchant_id',
49
54
  :'message_count' => :'message_count',
50
- :'unread_messages' => :'unread_messages'
55
+ :'start_dts' => :'start_dts',
56
+ :'unread_messages' => :'unread_messages',
57
+ :'visible' => :'visible'
51
58
  }
52
59
  end
53
60
 
@@ -63,7 +70,9 @@ module UltracartClient
63
70
  :'last_message_dts' => :'String',
64
71
  :'merchant_id' => :'String',
65
72
  :'message_count' => :'Integer',
66
- :'unread_messages' => :'BOOLEAN'
73
+ :'start_dts' => :'String',
74
+ :'unread_messages' => :'BOOLEAN',
75
+ :'visible' => :'BOOLEAN'
67
76
  }
68
77
  end
69
78
 
@@ -111,9 +120,17 @@ module UltracartClient
111
120
  self.message_count = attributes[:'message_count']
112
121
  end
113
122
 
123
+ if attributes.has_key?(:'start_dts')
124
+ self.start_dts = attributes[:'start_dts']
125
+ end
126
+
114
127
  if attributes.has_key?(:'unread_messages')
115
128
  self.unread_messages = attributes[:'unread_messages']
116
129
  end
130
+
131
+ if attributes.has_key?(:'visible')
132
+ self.visible = attributes[:'visible']
133
+ end
117
134
  end
118
135
 
119
136
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -143,7 +160,9 @@ module UltracartClient
143
160
  last_message_dts == o.last_message_dts &&
144
161
  merchant_id == o.merchant_id &&
145
162
  message_count == o.message_count &&
146
- unread_messages == o.unread_messages
163
+ start_dts == o.start_dts &&
164
+ unread_messages == o.unread_messages &&
165
+ visible == o.visible
147
166
  end
148
167
 
149
168
  # @see the `==` method
@@ -155,7 +174,7 @@ module UltracartClient
155
174
  # Calculates hash code according to all attributes.
156
175
  # @return [Fixnum] Hash code
157
176
  def hash
158
- [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, unread_messages].hash
177
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, start_dts, unread_messages, visible].hash
159
178
  end
160
179
 
161
180
  # Builds the object from hash
@@ -0,0 +1,195 @@
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 ConversationTwilioAccount
17
+ attr_accessor :merchant_id
18
+
19
+ attr_accessor :twilio_phone_numbers
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'merchant_id' => :'merchant_id',
25
+ :'twilio_phone_numbers' => :'twilio_phone_numbers'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.swagger_types
31
+ {
32
+ :'merchant_id' => :'String',
33
+ :'twilio_phone_numbers' => :'Array<String>'
34
+ }
35
+ end
36
+
37
+ # Initializes the object
38
+ # @param [Hash] attributes Model attributes in the form of hash
39
+ def initialize(attributes = {})
40
+ return unless attributes.is_a?(Hash)
41
+
42
+ # convert string to symbol for hash key
43
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
44
+
45
+ if attributes.has_key?(:'merchant_id')
46
+ self.merchant_id = attributes[:'merchant_id']
47
+ end
48
+
49
+ if attributes.has_key?(:'twilio_phone_numbers')
50
+ if (value = attributes[:'twilio_phone_numbers']).is_a?(Array)
51
+ self.twilio_phone_numbers = value
52
+ end
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ merchant_id == o.merchant_id &&
75
+ twilio_phone_numbers == o.twilio_phone_numbers
76
+ end
77
+
78
+ # @see the `==` method
79
+ # @param [Object] Object to be compared
80
+ def eql?(o)
81
+ self == o
82
+ end
83
+
84
+ # Calculates hash code according to all attributes.
85
+ # @return [Fixnum] Hash code
86
+ def hash
87
+ [merchant_id, twilio_phone_numbers].hash
88
+ end
89
+
90
+ # Builds the object from hash
91
+ # @param [Hash] attributes Model attributes in the form of hash
92
+ # @return [Object] Returns the model itself
93
+ def build_from_hash(attributes)
94
+ return nil unless attributes.is_a?(Hash)
95
+ self.class.swagger_types.each_pair do |key, type|
96
+ if type =~ /\AArray<(.*)>/i
97
+ # check to ensure the input is an array given that the attribute
98
+ # is documented as an array but the input is not
99
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
100
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
101
+ end
102
+ elsif !attributes[self.class.attribute_map[key]].nil?
103
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
104
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
105
+ end
106
+
107
+ self
108
+ end
109
+
110
+ # Deserializes the data based on type
111
+ # @param string type Data type
112
+ # @param string value Value to be deserialized
113
+ # @return [Object] Deserialized data
114
+ def _deserialize(type, value)
115
+ case type.to_sym
116
+ when :DateTime
117
+ DateTime.parse(value)
118
+ when :Date
119
+ Date.parse(value)
120
+ when :String
121
+ value.to_s
122
+ when :Integer
123
+ value.to_i
124
+ when :Float
125
+ value.to_f
126
+ when :BOOLEAN
127
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
128
+ true
129
+ else
130
+ false
131
+ end
132
+ when :Object
133
+ # generic object (usually a Hash), return directly
134
+ value
135
+ when /\AArray<(?<inner_type>.+)>\z/
136
+ inner_type = Regexp.last_match[:inner_type]
137
+ value.map { |v| _deserialize(inner_type, v) }
138
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
139
+ k_type = Regexp.last_match[:k_type]
140
+ v_type = Regexp.last_match[:v_type]
141
+ {}.tap do |hash|
142
+ value.each do |k, v|
143
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
144
+ end
145
+ end
146
+ else # model
147
+ temp_model = UltracartClient.const_get(type).new
148
+ temp_model.build_from_hash(value)
149
+ end
150
+ end
151
+
152
+ # Returns the string representation of the object
153
+ # @return [String] String presentation of the object
154
+ def to_s
155
+ to_hash.to_s
156
+ end
157
+
158
+ # to_body is an alias to to_hash (backward compatibility)
159
+ # @return [Hash] Returns the object in the form of hash
160
+ def to_body
161
+ to_hash
162
+ end
163
+
164
+ # Returns the object in the form of hash
165
+ # @return [Hash] Returns the object in the form of hash
166
+ def to_hash
167
+ hash = {}
168
+ self.class.attribute_map.each_pair do |attr, param|
169
+ value = self.send(attr)
170
+ next if value.nil?
171
+ hash[param] = _to_hash(value)
172
+ end
173
+ hash
174
+ end
175
+
176
+ # Outputs non-array value in the form of hash
177
+ # For object, use to_hash. Otherwise, just return the value
178
+ # @param [Object] value Any valid value
179
+ # @return [Hash] Returns the value in the form of hash
180
+ def _to_hash(value)
181
+ if value.is_a?(Array)
182
+ value.compact.map { |v| _to_hash(v) }
183
+ elsif value.is_a?(Hash)
184
+ {}.tap do |hash|
185
+ value.each { |k, v| hash[k] = _to_hash(v) }
186
+ end
187
+ elsif value.respond_to? :to_hash
188
+ value.to_hash
189
+ else
190
+ value
191
+ end
192
+ end
193
+
194
+ end
195
+ 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.29'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -147,6 +147,7 @@ require 'ultracart_api/models/conversation_response'
147
147
  require 'ultracart_api/models/conversation_start_request'
148
148
  require 'ultracart_api/models/conversation_start_response'
149
149
  require 'ultracart_api/models/conversation_summary'
150
+ require 'ultracart_api/models/conversation_twilio_account'
150
151
  require 'ultracart_api/models/conversation_webchat_queue_status'
151
152
  require 'ultracart_api/models/conversation_webchat_queue_status_agent'
152
153
  require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
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.29
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-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -357,6 +357,7 @@ files:
357
357
  - docs/ConversationStartRequest.md
358
358
  - docs/ConversationStartResponse.md
359
359
  - docs/ConversationSummary.md
360
+ - docs/ConversationTwilioAccount.md
360
361
  - docs/ConversationWebchatQueueStatus.md
361
362
  - docs/ConversationWebchatQueueStatusAgent.md
362
363
  - docs/ConversationWebchatQueueStatusQueueEntry.md
@@ -1049,6 +1050,7 @@ files:
1049
1050
  - lib/ultracart_api/models/conversation_start_request.rb
1050
1051
  - lib/ultracart_api/models/conversation_start_response.rb
1051
1052
  - lib/ultracart_api/models/conversation_summary.rb
1053
+ - lib/ultracart_api/models/conversation_twilio_account.rb
1052
1054
  - lib/ultracart_api/models/conversation_webchat_queue_status.rb
1053
1055
  - lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
1054
1056
  - lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb