sunshine-conversations-client 9.4.3 → 9.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG_RB.md +6 -0
- data/README.md +4 -4
- data/docs/Twilio.md +4 -2
- data/docs/TwilioAllOf.md +4 -2
- data/lib/sunshine-conversations-client/models/twilio.rb +32 -16
- data/lib/sunshine-conversations-client/models/twilio_all_of.rb +32 -16
- data/lib/sunshine-conversations-client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 951694a16aa1ae2b3025ae5b725458b121ddf0d0
|
4
|
+
data.tar.gz: 3c5ca6d954cc5022c7ca9c57731bc2efca316866
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5e38f4329fb6912a1fa1bf5651e64e5a0b738f27bc399ceb05d03aca24189c8add9124fb02071d3b35e7201e18afa42bd04ddd005811a696b58cafb18f88027
|
7
|
+
data.tar.gz: 5bd9c970739f4824a931f15908609237b10ed9a7b1e20ab4e6ce3d24958f06e8fbd165d55b215dd4edb6c3773f716e8fb37b089048ae54a0c34e3438c2a9b225
|
data/CHANGELOG_RB.md
CHANGED
data/README.md
CHANGED
@@ -5,7 +5,7 @@ SunshineConversationsClient - the Ruby gem for the Sunshine Conversations API
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator Codegen](https://github.com/OpenAPITools/openapi-generator) project using the [Sunshine Conversations API spec](https://github.com/zendesk/sunshine-conversations-api-spec).
|
6
6
|
|
7
7
|
- API version: 9.4.3
|
8
|
-
- Package version: 9.4.
|
8
|
+
- Package version: 9.4.4
|
9
9
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
10
10
|
|
11
11
|
## Sunshine Conversations API Version
|
@@ -32,16 +32,16 @@ gem build sunshine-conversations-client.gemspec
|
|
32
32
|
Then either install the gem locally:
|
33
33
|
|
34
34
|
```shell
|
35
|
-
gem install ./sunshine-conversations-client-9.4.
|
35
|
+
gem install ./sunshine-conversations-client-9.4.4.gem
|
36
36
|
```
|
37
37
|
|
38
|
-
(for development, run `gem install --dev ./sunshine-conversations-client-9.4.
|
38
|
+
(for development, run `gem install --dev ./sunshine-conversations-client-9.4.4.gem` to install the development dependencies)
|
39
39
|
|
40
40
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
41
41
|
|
42
42
|
Finally add this to the Gemfile:
|
43
43
|
|
44
|
-
gem 'sunshine-conversations-client', '~> 9.4.
|
44
|
+
gem 'sunshine-conversations-client', '~> 9.4.4'
|
45
45
|
|
46
46
|
### Install from Git
|
47
47
|
|
data/docs/Twilio.md
CHANGED
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**type** | **String** | To configure a Twilio integration, acquire the required information from the user and call the Create Integration endpoint. | [optional] [default to 'twilio']
|
8
8
|
**account_sid** | **String** | Twilio Account SID. |
|
9
9
|
**auth_token** | **String** | Twilio Auth Token. |
|
10
|
-
**phone_number_sid** | **String** | SID for specific phone number. |
|
10
|
+
**phone_number_sid** | **String** | SID for specific phone number. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration. | [optional]
|
11
|
+
**messaging_service_sid** | **String** | SID for specific messaging service. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration. | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
13
14
|
|
@@ -17,7 +18,8 @@ require 'SunshineConversationsClient'
|
|
17
18
|
instance = SunshineConversationsClient::Twilio.new(type: null,
|
18
19
|
account_sid: ACa1b4c65ee0722712fab89867cb14eac7,
|
19
20
|
auth_token: 160c024303f53049e1e060fd67ca6aefc,
|
20
|
-
phone_number_sid: PN0674df0ecee0c9819bca0ff0bc0a159e
|
21
|
+
phone_number_sid: PN0674df0ecee0c9819bca0ff0bc0a159e,
|
22
|
+
messaging_service_sid: null)
|
21
23
|
```
|
22
24
|
|
23
25
|
|
data/docs/TwilioAllOf.md
CHANGED
@@ -7,7 +7,8 @@ Name | Type | Description | Notes
|
|
7
7
|
**type** | **String** | To configure a Twilio integration, acquire the required information from the user and call the Create Integration endpoint. | [optional] [default to 'twilio']
|
8
8
|
**account_sid** | **String** | Twilio Account SID. |
|
9
9
|
**auth_token** | **String** | Twilio Auth Token. |
|
10
|
-
**phone_number_sid** | **String** | SID for specific phone number. |
|
10
|
+
**phone_number_sid** | **String** | SID for specific phone number. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration. | [optional]
|
11
|
+
**messaging_service_sid** | **String** | SID for specific messaging service. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration. | [optional]
|
11
12
|
|
12
13
|
## Code Sample
|
13
14
|
|
@@ -17,7 +18,8 @@ require 'SunshineConversationsClient'
|
|
17
18
|
instance = SunshineConversationsClient::TwilioAllOf.new(type: null,
|
18
19
|
account_sid: ACa1b4c65ee0722712fab89867cb14eac7,
|
19
20
|
auth_token: 160c024303f53049e1e060fd67ca6aefc,
|
20
|
-
phone_number_sid: PN0674df0ecee0c9819bca0ff0bc0a159e
|
21
|
+
phone_number_sid: PN0674df0ecee0c9819bca0ff0bc0a159e,
|
22
|
+
messaging_service_sid: null)
|
21
23
|
```
|
22
24
|
|
23
25
|
|
@@ -20,16 +20,20 @@ module SunshineConversationsClient
|
|
20
20
|
# Twilio Auth Token.
|
21
21
|
attr_accessor :auth_token
|
22
22
|
|
23
|
-
# SID for specific phone number.
|
23
|
+
# SID for specific phone number. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration.
|
24
24
|
attr_accessor :phone_number_sid
|
25
25
|
|
26
|
+
# SID for specific messaging service. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration.
|
27
|
+
attr_accessor :messaging_service_sid
|
28
|
+
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
30
|
def self.attribute_map
|
28
31
|
{
|
29
32
|
:'type' => :'type',
|
30
33
|
:'account_sid' => :'accountSid',
|
31
34
|
:'auth_token' => :'authToken',
|
32
|
-
:'phone_number_sid' => :'phoneNumberSid'
|
35
|
+
:'phone_number_sid' => :'phoneNumberSid',
|
36
|
+
:'messaging_service_sid' => :'messagingServiceSid'
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -39,7 +43,8 @@ module SunshineConversationsClient
|
|
39
43
|
:'type' => :'String',
|
40
44
|
:'account_sid' => :'String',
|
41
45
|
:'auth_token' => :'String',
|
42
|
-
:'phone_number_sid' => :'String'
|
46
|
+
:'phone_number_sid' => :'String',
|
47
|
+
:'messaging_service_sid' => :'String'
|
43
48
|
}
|
44
49
|
end
|
45
50
|
|
@@ -92,6 +97,10 @@ module SunshineConversationsClient
|
|
92
97
|
if attributes.key?(:'phone_number_sid')
|
93
98
|
self.phone_number_sid = attributes[:'phone_number_sid']
|
94
99
|
end
|
100
|
+
|
101
|
+
if attributes.key?(:'messaging_service_sid')
|
102
|
+
self.messaging_service_sid = attributes[:'messaging_service_sid']
|
103
|
+
end
|
95
104
|
end
|
96
105
|
|
97
106
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -110,12 +119,12 @@ module SunshineConversationsClient
|
|
110
119
|
invalid_properties.push('invalid value for "auth_token", the character length must be great than or equal to 1.')
|
111
120
|
end
|
112
121
|
|
113
|
-
if
|
114
|
-
invalid_properties.push('invalid value for "phone_number_sid",
|
122
|
+
if !@phone_number_sid.nil? && @phone_number_sid.to_s.length < 1
|
123
|
+
invalid_properties.push('invalid value for "phone_number_sid", the character length must be great than or equal to 1.')
|
115
124
|
end
|
116
125
|
|
117
|
-
if @
|
118
|
-
invalid_properties.push('invalid value for "
|
126
|
+
if !@messaging_service_sid.nil? && @messaging_service_sid.to_s.length < 1
|
127
|
+
invalid_properties.push('invalid value for "messaging_service_sid", the character length must be great than or equal to 1.')
|
119
128
|
end
|
120
129
|
|
121
130
|
invalid_properties
|
@@ -127,8 +136,8 @@ module SunshineConversationsClient
|
|
127
136
|
return false if @account_sid.nil?
|
128
137
|
return false if @auth_token.nil?
|
129
138
|
return false if @auth_token.to_s.length < 1
|
130
|
-
return false if
|
131
|
-
return false if @
|
139
|
+
return false if !@phone_number_sid.nil? && @phone_number_sid.to_s.length < 1
|
140
|
+
return false if !@messaging_service_sid.nil? && @messaging_service_sid.to_s.length < 1
|
132
141
|
true && super
|
133
142
|
end
|
134
143
|
|
@@ -149,17 +158,23 @@ module SunshineConversationsClient
|
|
149
158
|
# Custom attribute writer method with validation
|
150
159
|
# @param [Object] phone_number_sid Value to be assigned
|
151
160
|
def phone_number_sid=(phone_number_sid)
|
152
|
-
if phone_number_sid.nil?
|
153
|
-
fail ArgumentError, 'phone_number_sid cannot be nil'
|
154
|
-
end
|
155
|
-
|
156
|
-
if phone_number_sid.to_s.length < 1
|
161
|
+
if !phone_number_sid.nil? && phone_number_sid.to_s.length < 1
|
157
162
|
fail ArgumentError, 'invalid value for "phone_number_sid", the character length must be great than or equal to 1.'
|
158
163
|
end
|
159
164
|
|
160
165
|
@phone_number_sid = phone_number_sid
|
161
166
|
end
|
162
167
|
|
168
|
+
# Custom attribute writer method with validation
|
169
|
+
# @param [Object] messaging_service_sid Value to be assigned
|
170
|
+
def messaging_service_sid=(messaging_service_sid)
|
171
|
+
if !messaging_service_sid.nil? && messaging_service_sid.to_s.length < 1
|
172
|
+
fail ArgumentError, 'invalid value for "messaging_service_sid", the character length must be great than or equal to 1.'
|
173
|
+
end
|
174
|
+
|
175
|
+
@messaging_service_sid = messaging_service_sid
|
176
|
+
end
|
177
|
+
|
163
178
|
# Checks equality by comparing each attribute.
|
164
179
|
# @param [Object] Object to be compared
|
165
180
|
def ==(o)
|
@@ -168,7 +183,8 @@ module SunshineConversationsClient
|
|
168
183
|
type == o.type &&
|
169
184
|
account_sid == o.account_sid &&
|
170
185
|
auth_token == o.auth_token &&
|
171
|
-
phone_number_sid == o.phone_number_sid &&
|
186
|
+
phone_number_sid == o.phone_number_sid &&
|
187
|
+
messaging_service_sid == o.messaging_service_sid && super(o)
|
172
188
|
end
|
173
189
|
|
174
190
|
# @see the `==` method
|
@@ -180,7 +196,7 @@ module SunshineConversationsClient
|
|
180
196
|
# Calculates hash code according to all attributes.
|
181
197
|
# @return [Integer] Hash code
|
182
198
|
def hash
|
183
|
-
[type, account_sid, auth_token, phone_number_sid].hash
|
199
|
+
[type, account_sid, auth_token, phone_number_sid, messaging_service_sid].hash
|
184
200
|
end
|
185
201
|
|
186
202
|
# Builds the object from hash
|
@@ -20,16 +20,20 @@ module SunshineConversationsClient
|
|
20
20
|
# Twilio Auth Token.
|
21
21
|
attr_accessor :auth_token
|
22
22
|
|
23
|
-
# SID for specific phone number.
|
23
|
+
# SID for specific phone number. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration.
|
24
24
|
attr_accessor :phone_number_sid
|
25
25
|
|
26
|
+
# SID for specific messaging service. One of `messagingServiceSid` or `phoneNumberSid` must be provided when creating a Twilio integration.
|
27
|
+
attr_accessor :messaging_service_sid
|
28
|
+
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
27
30
|
def self.attribute_map
|
28
31
|
{
|
29
32
|
:'type' => :'type',
|
30
33
|
:'account_sid' => :'accountSid',
|
31
34
|
:'auth_token' => :'authToken',
|
32
|
-
:'phone_number_sid' => :'phoneNumberSid'
|
35
|
+
:'phone_number_sid' => :'phoneNumberSid',
|
36
|
+
:'messaging_service_sid' => :'messagingServiceSid'
|
33
37
|
}
|
34
38
|
end
|
35
39
|
|
@@ -39,7 +43,8 @@ module SunshineConversationsClient
|
|
39
43
|
:'type' => :'String',
|
40
44
|
:'account_sid' => :'String',
|
41
45
|
:'auth_token' => :'String',
|
42
|
-
:'phone_number_sid' => :'String'
|
46
|
+
:'phone_number_sid' => :'String',
|
47
|
+
:'messaging_service_sid' => :'String'
|
43
48
|
}
|
44
49
|
end
|
45
50
|
|
@@ -81,6 +86,10 @@ module SunshineConversationsClient
|
|
81
86
|
if attributes.key?(:'phone_number_sid')
|
82
87
|
self.phone_number_sid = attributes[:'phone_number_sid']
|
83
88
|
end
|
89
|
+
|
90
|
+
if attributes.key?(:'messaging_service_sid')
|
91
|
+
self.messaging_service_sid = attributes[:'messaging_service_sid']
|
92
|
+
end
|
84
93
|
end
|
85
94
|
|
86
95
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -99,12 +108,12 @@ module SunshineConversationsClient
|
|
99
108
|
invalid_properties.push('invalid value for "auth_token", the character length must be great than or equal to 1.')
|
100
109
|
end
|
101
110
|
|
102
|
-
if
|
103
|
-
invalid_properties.push('invalid value for "phone_number_sid",
|
111
|
+
if !@phone_number_sid.nil? && @phone_number_sid.to_s.length < 1
|
112
|
+
invalid_properties.push('invalid value for "phone_number_sid", the character length must be great than or equal to 1.')
|
104
113
|
end
|
105
114
|
|
106
|
-
if @
|
107
|
-
invalid_properties.push('invalid value for "
|
115
|
+
if !@messaging_service_sid.nil? && @messaging_service_sid.to_s.length < 1
|
116
|
+
invalid_properties.push('invalid value for "messaging_service_sid", the character length must be great than or equal to 1.')
|
108
117
|
end
|
109
118
|
|
110
119
|
invalid_properties
|
@@ -116,8 +125,8 @@ module SunshineConversationsClient
|
|
116
125
|
return false if @account_sid.nil?
|
117
126
|
return false if @auth_token.nil?
|
118
127
|
return false if @auth_token.to_s.length < 1
|
119
|
-
return false if
|
120
|
-
return false if @
|
128
|
+
return false if !@phone_number_sid.nil? && @phone_number_sid.to_s.length < 1
|
129
|
+
return false if !@messaging_service_sid.nil? && @messaging_service_sid.to_s.length < 1
|
121
130
|
true
|
122
131
|
end
|
123
132
|
|
@@ -138,17 +147,23 @@ module SunshineConversationsClient
|
|
138
147
|
# Custom attribute writer method with validation
|
139
148
|
# @param [Object] phone_number_sid Value to be assigned
|
140
149
|
def phone_number_sid=(phone_number_sid)
|
141
|
-
if phone_number_sid.nil?
|
142
|
-
fail ArgumentError, 'phone_number_sid cannot be nil'
|
143
|
-
end
|
144
|
-
|
145
|
-
if phone_number_sid.to_s.length < 1
|
150
|
+
if !phone_number_sid.nil? && phone_number_sid.to_s.length < 1
|
146
151
|
fail ArgumentError, 'invalid value for "phone_number_sid", the character length must be great than or equal to 1.'
|
147
152
|
end
|
148
153
|
|
149
154
|
@phone_number_sid = phone_number_sid
|
150
155
|
end
|
151
156
|
|
157
|
+
# Custom attribute writer method with validation
|
158
|
+
# @param [Object] messaging_service_sid Value to be assigned
|
159
|
+
def messaging_service_sid=(messaging_service_sid)
|
160
|
+
if !messaging_service_sid.nil? && messaging_service_sid.to_s.length < 1
|
161
|
+
fail ArgumentError, 'invalid value for "messaging_service_sid", the character length must be great than or equal to 1.'
|
162
|
+
end
|
163
|
+
|
164
|
+
@messaging_service_sid = messaging_service_sid
|
165
|
+
end
|
166
|
+
|
152
167
|
# Checks equality by comparing each attribute.
|
153
168
|
# @param [Object] Object to be compared
|
154
169
|
def ==(o)
|
@@ -157,7 +172,8 @@ module SunshineConversationsClient
|
|
157
172
|
type == o.type &&
|
158
173
|
account_sid == o.account_sid &&
|
159
174
|
auth_token == o.auth_token &&
|
160
|
-
phone_number_sid == o.phone_number_sid
|
175
|
+
phone_number_sid == o.phone_number_sid &&
|
176
|
+
messaging_service_sid == o.messaging_service_sid
|
161
177
|
end
|
162
178
|
|
163
179
|
# @see the `==` method
|
@@ -169,7 +185,7 @@ module SunshineConversationsClient
|
|
169
185
|
# Calculates hash code according to all attributes.
|
170
186
|
# @return [Integer] Hash code
|
171
187
|
def hash
|
172
|
-
[type, account_sid, auth_token, phone_number_sid].hash
|
188
|
+
[type, account_sid, auth_token, phone_number_sid, messaging_service_sid].hash
|
173
189
|
end
|
174
190
|
|
175
191
|
# Builds the object from hash
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunshine-conversations-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.4.
|
4
|
+
version: 9.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sunshine Conversations
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|