smooch-api 5.7.0 → 5.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -1
- data/docs/Action.md +2 -2
- data/docs/AppUserLink.md +1 -1
- data/docs/BusinessSystemItem.md +1 -1
- data/docs/ChannelEntityItem.md +1 -1
- data/docs/Client.md +1 -1
- data/docs/Confirmation.md +1 -1
- data/docs/ConversationActivity.md +2 -2
- data/docs/Deployment.md +17 -0
- data/docs/DeploymentActivatePhoneNumber.md +10 -0
- data/docs/DeploymentApi.md +325 -0
- data/docs/DeploymentConfirmCode.md +8 -0
- data/docs/DeploymentCreate.md +12 -0
- data/docs/DeploymentResponse.md +8 -0
- data/docs/Destination.md +1 -1
- data/docs/DisplaySettings.md +1 -1
- data/docs/Enums.md +3 -0
- data/docs/Integration.md +6 -5
- data/docs/IntegrationCreate.md +5 -4
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListDeploymentsResponse.md +8 -0
- data/docs/MenuItem.md +1 -1
- data/docs/Message.md +2 -2
- data/docs/MessageItem.md +1 -1
- data/docs/MessagePost.md +2 -2
- data/docs/Source.md +1 -1
- data/docs/SubMenuItem.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookCreate.md +1 -1
- data/docs/WebhookUpdate.md +1 -1
- data/lib/smooch-api.rb +8 -1
- data/lib/smooch-api/api/app_api.rb +1 -1
- data/lib/smooch-api/api/app_user_api.rb +1 -1
- data/lib/smooch-api/api/attachments_api.rb +1 -1
- data/lib/smooch-api/api/conversation_api.rb +1 -1
- data/lib/smooch-api/api/deployment_api.rb +358 -0
- data/lib/smooch-api/api/integration_api.rb +1 -1
- data/lib/smooch-api/api/menu_api.rb +1 -1
- data/lib/smooch-api/api/service_account_api.rb +1 -1
- data/lib/smooch-api/api/template_api.rb +1 -1
- data/lib/smooch-api/api/webhook_api.rb +1 -1
- data/lib/smooch-api/api_client.rb +1 -1
- data/lib/smooch-api/api_error.rb +1 -1
- data/lib/smooch-api/configuration.rb +1 -1
- data/lib/smooch-api/models/action.rb +3 -3
- data/lib/smooch-api/models/app.rb +1 -1
- data/lib/smooch-api/models/app_create.rb +1 -1
- data/lib/smooch-api/models/app_response.rb +1 -1
- data/lib/smooch-api/models/app_settings.rb +1 -1
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +1 -1
- data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +2 -2
- data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
- data/lib/smooch-api/models/app_user_response.rb +1 -1
- data/lib/smooch-api/models/app_user_update.rb +1 -1
- data/lib/smooch-api/models/attachment_remove.rb +1 -1
- data/lib/smooch-api/models/attachment_response.rb +1 -1
- data/lib/smooch-api/models/auth_code_response.rb +1 -1
- data/lib/smooch-api/models/business_system_item.rb +2 -2
- data/lib/smooch-api/models/channel_entity_item.rb +2 -2
- data/lib/smooch-api/models/client.rb +2 -2
- data/lib/smooch-api/models/client_info.rb +1 -1
- data/lib/smooch-api/models/confirmation.rb +2 -2
- data/lib/smooch-api/models/conversation.rb +1 -1
- data/lib/smooch-api/models/conversation_activity.rb +3 -3
- data/lib/smooch-api/models/deployment.rb +294 -0
- data/lib/smooch-api/models/deployment_activate_phone_number.rb +224 -0
- data/lib/smooch-api/models/deployment_confirm_code.rb +194 -0
- data/lib/smooch-api/models/deployment_create.rb +234 -0
- data/lib/smooch-api/models/deployment_response.rb +194 -0
- data/lib/smooch-api/models/destination.rb +2 -2
- data/lib/smooch-api/models/display_settings.rb +2 -2
- data/lib/smooch-api/models/enums.rb +68 -5
- data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
- data/lib/smooch-api/models/get_messages_response.rb +1 -1
- data/lib/smooch-api/models/integration.rb +17 -7
- data/lib/smooch-api/models/integration_create.rb +16 -6
- data/lib/smooch-api/models/integration_profile_update.rb +1 -1
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +1 -1
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response_link_requests.rb +2 -2
- data/lib/smooch-api/models/list_apps_response.rb +1 -1
- data/lib/smooch-api/models/list_deployments_response.rb +196 -0
- data/lib/smooch-api/models/list_integrations_response.rb +1 -1
- data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
- data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
- data/lib/smooch-api/models/list_templates_response.rb +1 -1
- data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
- data/lib/smooch-api/models/menu.rb +1 -1
- data/lib/smooch-api/models/menu_item.rb +2 -2
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +3 -3
- data/lib/smooch-api/models/message_item.rb +2 -2
- data/lib/smooch-api/models/message_override.rb +1 -1
- data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
- data/lib/smooch-api/models/message_post.rb +3 -3
- data/lib/smooch-api/models/message_response.rb +1 -1
- data/lib/smooch-api/models/secret_key.rb +1 -1
- data/lib/smooch-api/models/secret_key_create.rb +1 -1
- data/lib/smooch-api/models/secret_key_response.rb +1 -1
- data/lib/smooch-api/models/service_account.rb +1 -1
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +1 -1
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +2 -2
- data/lib/smooch-api/models/sub_menu_item.rb +2 -2
- data/lib/smooch-api/models/template.rb +1 -1
- data/lib/smooch-api/models/template_create.rb +1 -1
- data/lib/smooch-api/models/template_response.rb +1 -1
- data/lib/smooch-api/models/template_update.rb +1 -1
- data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
- data/lib/smooch-api/models/webhook.rb +2 -2
- data/lib/smooch-api/models/webhook_create.rb +2 -2
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +2 -2
- data/lib/smooch-api/version.rb +2 -2
- data/smooch-api.gemspec +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +16 -2
@@ -0,0 +1,194 @@
|
|
1
|
+
=begin
|
2
|
+
#Smooch
|
3
|
+
|
4
|
+
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
|
+
|
6
|
+
OpenAPI spec version: 5.8
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.2.3-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module SmoochApi
|
16
|
+
|
17
|
+
class DeploymentResponse
|
18
|
+
# The deployment.
|
19
|
+
attr_accessor :deployment
|
20
|
+
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'deployment' => :'deployment'
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Attribute type mapping.
|
30
|
+
def self.swagger_types
|
31
|
+
{
|
32
|
+
:'deployment' => :'Deployment'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Initializes the object
|
37
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
38
|
+
def initialize(attributes = {})
|
39
|
+
return unless attributes.is_a?(Hash)
|
40
|
+
|
41
|
+
# convert string to symbol for hash key
|
42
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
|
+
|
44
|
+
if attributes.has_key?(:'deployment')
|
45
|
+
self.deployment = attributes[:'deployment']
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
51
|
+
# @return Array for valid properies with the reasons
|
52
|
+
def list_invalid_properties
|
53
|
+
invalid_properties = Array.new
|
54
|
+
if @deployment.nil?
|
55
|
+
invalid_properties.push("invalid value for 'deployment', deployment cannot be nil.")
|
56
|
+
end
|
57
|
+
|
58
|
+
return invalid_properties
|
59
|
+
end
|
60
|
+
|
61
|
+
# Check to see if the all the properties in the model are valid
|
62
|
+
# @return true if the model is valid
|
63
|
+
def valid?
|
64
|
+
return false if @deployment.nil?
|
65
|
+
return true
|
66
|
+
end
|
67
|
+
|
68
|
+
# Checks equality by comparing each attribute.
|
69
|
+
# @param [Object] Object to be compared
|
70
|
+
def ==(o)
|
71
|
+
return true if self.equal?(o)
|
72
|
+
self.class == o.class &&
|
73
|
+
deployment == o.deployment
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Fixnum] Hash code
|
84
|
+
def hash
|
85
|
+
[deployment].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def build_from_hash(attributes)
|
92
|
+
return nil unless attributes.is_a?(Hash)
|
93
|
+
self.class.swagger_types.each_pair do |key, type|
|
94
|
+
if type =~ /\AArray<(.*)>/i
|
95
|
+
# check to ensure the input is an array given that the the attribute
|
96
|
+
# is documented as an array but the input is not
|
97
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
98
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
99
|
+
end
|
100
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
101
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
102
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
103
|
+
end
|
104
|
+
|
105
|
+
self
|
106
|
+
end
|
107
|
+
|
108
|
+
# Deserializes the data based on type
|
109
|
+
# @param string type Data type
|
110
|
+
# @param string value Value to be deserialized
|
111
|
+
# @return [Object] Deserialized data
|
112
|
+
def _deserialize(type, value)
|
113
|
+
case type.to_sym
|
114
|
+
when :DateTime
|
115
|
+
DateTime.parse(value)
|
116
|
+
when :Date
|
117
|
+
Date.parse(value)
|
118
|
+
when :String
|
119
|
+
value.to_s
|
120
|
+
when :Integer
|
121
|
+
value.to_i
|
122
|
+
when :Float
|
123
|
+
value.to_f
|
124
|
+
when :BOOLEAN
|
125
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
126
|
+
true
|
127
|
+
else
|
128
|
+
false
|
129
|
+
end
|
130
|
+
when :Object
|
131
|
+
# generic object (usually a Hash), return directly
|
132
|
+
value
|
133
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
134
|
+
inner_type = Regexp.last_match[:inner_type]
|
135
|
+
value.map { |v| _deserialize(inner_type, v) }
|
136
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
137
|
+
k_type = Regexp.last_match[:k_type]
|
138
|
+
v_type = Regexp.last_match[:v_type]
|
139
|
+
{}.tap do |hash|
|
140
|
+
value.each do |k, v|
|
141
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
142
|
+
end
|
143
|
+
end
|
144
|
+
else # model
|
145
|
+
temp_model = SmoochApi.const_get(type).new
|
146
|
+
temp_model.build_from_hash(value)
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
# Returns the string representation of the object
|
151
|
+
# @return [String] String presentation of the object
|
152
|
+
def to_s
|
153
|
+
to_hash.to_s
|
154
|
+
end
|
155
|
+
|
156
|
+
# to_body is an alias to to_hash (backward compatibility)
|
157
|
+
# @return [Hash] Returns the object in the form of hash
|
158
|
+
def to_body
|
159
|
+
to_hash
|
160
|
+
end
|
161
|
+
|
162
|
+
# Returns the object in the form of hash
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_hash
|
165
|
+
hash = {}
|
166
|
+
self.class.attribute_map.each_pair do |attr, param|
|
167
|
+
value = self.send(attr)
|
168
|
+
next if value.nil?
|
169
|
+
hash[param] = _to_hash(value)
|
170
|
+
end
|
171
|
+
hash
|
172
|
+
end
|
173
|
+
|
174
|
+
# Outputs non-array value in the form of hash
|
175
|
+
# For object, use to_hash. Otherwise, just return the value
|
176
|
+
# @param [Object] value Any valid value
|
177
|
+
# @return [Hash] Returns the value in the form of hash
|
178
|
+
def _to_hash(value)
|
179
|
+
if value.is_a?(Array)
|
180
|
+
value.compact.map{ |v| _to_hash(v) }
|
181
|
+
elsif value.is_a?(Hash)
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
184
|
+
end
|
185
|
+
elsif value.respond_to? :to_hash
|
186
|
+
value.to_hash
|
187
|
+
else
|
188
|
+
value
|
189
|
+
end
|
190
|
+
end
|
191
|
+
|
192
|
+
end
|
193
|
+
|
194
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# The ID of the target integration.
|
19
19
|
attr_accessor :integrationId
|
20
20
|
|
21
|
-
# The type of the target integration. See Enums.md for available values.
|
21
|
+
# The type of the target integration. See [**IntegrationTypeEnum**](Enums.md#IntegrationTypeEnum) for available values.
|
22
22
|
attr_accessor :integrationType
|
23
23
|
|
24
24
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -15,7 +15,7 @@ require 'date'
|
|
15
15
|
module SmoochApi
|
16
16
|
|
17
17
|
class DisplaySettings
|
18
|
-
# Specifies how to display all carousel images. See Enums.md for available values.
|
18
|
+
# Specifies how to display all carousel images. See [**ImageAspectRatioEnum**](Enums.md#ImageAspectRatioEnum) for available values.
|
19
19
|
attr_accessor :imageAspectRatio
|
20
20
|
|
21
21
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -41,6 +41,12 @@ module SmoochApi
|
|
41
41
|
|
42
42
|
attr_accessor :webhookTriggers
|
43
43
|
|
44
|
+
attr_accessor :deploymentHosting
|
45
|
+
|
46
|
+
attr_accessor :deploymentStatus
|
47
|
+
|
48
|
+
attr_accessor :deploymentActivationMethod
|
49
|
+
|
44
50
|
class EnumAttributeValidator
|
45
51
|
attr_reader :datatype
|
46
52
|
attr_reader :allowable_values
|
@@ -78,7 +84,10 @@ module SmoochApi
|
|
78
84
|
:'messageItemSize' => :'MessageItemSize',
|
79
85
|
:'messageType' => :'MessageType',
|
80
86
|
:'role' => :'Role',
|
81
|
-
:'webhookTriggers' => :'WebhookTriggers'
|
87
|
+
:'webhookTriggers' => :'WebhookTriggers',
|
88
|
+
:'deploymentHosting' => :'DeploymentHosting',
|
89
|
+
:'deploymentStatus' => :'DeploymentStatus',
|
90
|
+
:'deploymentActivationMethod' => :'DeploymentActivationMethod'
|
82
91
|
}
|
83
92
|
end
|
84
93
|
|
@@ -97,7 +106,10 @@ module SmoochApi
|
|
97
106
|
:'messageItemSize' => :'String',
|
98
107
|
:'messageType' => :'String',
|
99
108
|
:'role' => :'String',
|
100
|
-
:'webhookTriggers' => :'String'
|
109
|
+
:'webhookTriggers' => :'String',
|
110
|
+
:'deploymentHosting' => :'String',
|
111
|
+
:'deploymentStatus' => :'String',
|
112
|
+
:'deploymentActivationMethod' => :'String'
|
101
113
|
}
|
102
114
|
end
|
103
115
|
|
@@ -161,6 +173,18 @@ module SmoochApi
|
|
161
173
|
self.webhookTriggers = attributes[:'WebhookTriggers']
|
162
174
|
end
|
163
175
|
|
176
|
+
if attributes.has_key?(:'DeploymentHosting')
|
177
|
+
self.deploymentHosting = attributes[:'DeploymentHosting']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.has_key?(:'DeploymentStatus')
|
181
|
+
self.deploymentStatus = attributes[:'DeploymentStatus']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.has_key?(:'DeploymentActivationMethod')
|
185
|
+
self.deploymentActivationMethod = attributes[:'DeploymentActivationMethod']
|
186
|
+
end
|
187
|
+
|
164
188
|
end
|
165
189
|
|
166
190
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -199,6 +223,12 @@ module SmoochApi
|
|
199
223
|
return false unless role_validator.valid?(@role)
|
200
224
|
webhookTriggers_validator = EnumAttributeValidator.new('String', ["appUser:delete", "client:add", "client:remove", "conversation:read", "conversation:referral", "link:failure", "link:match", "link:success", "merge:appUser", "message:appMaker", "message:appUser", "message:delivery:channel", "message:delivery:failure", "message:delivery:user", "payment:success", "postback", "typing:appUser"])
|
201
225
|
return false unless webhookTriggers_validator.valid?(@webhookTriggers)
|
226
|
+
deploymentHosting_validator = EnumAttributeValidator.new('String', ["self", "smooch"])
|
227
|
+
return false unless deploymentHosting_validator.valid?(@deploymentHosting)
|
228
|
+
deploymentStatus_validator = EnumAttributeValidator.new('String', ["starting", "unregistered", "registered", "integrated", "pending", "deleting", "error"])
|
229
|
+
return false unless deploymentStatus_validator.valid?(@deploymentStatus)
|
230
|
+
deploymentActivationMethod_validator = EnumAttributeValidator.new('String', ["voice", "sms"])
|
231
|
+
return false unless deploymentActivationMethod_validator.valid?(@deploymentActivationMethod)
|
202
232
|
return true
|
203
233
|
end
|
204
234
|
|
@@ -332,6 +362,36 @@ module SmoochApi
|
|
332
362
|
@webhookTriggers = webhookTriggers
|
333
363
|
end
|
334
364
|
|
365
|
+
# Custom attribute writer method checking allowed values (enum).
|
366
|
+
# @param [Object] deploymentHosting Object to be assigned
|
367
|
+
def deploymentHosting=(deploymentHosting)
|
368
|
+
validator = EnumAttributeValidator.new('String', ["self", "smooch"])
|
369
|
+
unless validator.valid?(deploymentHosting)
|
370
|
+
fail ArgumentError, "invalid value for 'deploymentHosting', must be one of #{validator.allowable_values}."
|
371
|
+
end
|
372
|
+
@deploymentHosting = deploymentHosting
|
373
|
+
end
|
374
|
+
|
375
|
+
# Custom attribute writer method checking allowed values (enum).
|
376
|
+
# @param [Object] deploymentStatus Object to be assigned
|
377
|
+
def deploymentStatus=(deploymentStatus)
|
378
|
+
validator = EnumAttributeValidator.new('String', ["starting", "unregistered", "registered", "integrated", "pending", "deleting", "error"])
|
379
|
+
unless validator.valid?(deploymentStatus)
|
380
|
+
fail ArgumentError, "invalid value for 'deploymentStatus', must be one of #{validator.allowable_values}."
|
381
|
+
end
|
382
|
+
@deploymentStatus = deploymentStatus
|
383
|
+
end
|
384
|
+
|
385
|
+
# Custom attribute writer method checking allowed values (enum).
|
386
|
+
# @param [Object] deploymentActivationMethod Object to be assigned
|
387
|
+
def deploymentActivationMethod=(deploymentActivationMethod)
|
388
|
+
validator = EnumAttributeValidator.new('String', ["voice", "sms"])
|
389
|
+
unless validator.valid?(deploymentActivationMethod)
|
390
|
+
fail ArgumentError, "invalid value for 'deploymentActivationMethod', must be one of #{validator.allowable_values}."
|
391
|
+
end
|
392
|
+
@deploymentActivationMethod = deploymentActivationMethod
|
393
|
+
end
|
394
|
+
|
335
395
|
# Checks equality by comparing each attribute.
|
336
396
|
# @param [Object] Object to be compared
|
337
397
|
def ==(o)
|
@@ -349,7 +409,10 @@ module SmoochApi
|
|
349
409
|
messageItemSize == o.messageItemSize &&
|
350
410
|
messageType == o.messageType &&
|
351
411
|
role == o.role &&
|
352
|
-
webhookTriggers == o.webhookTriggers
|
412
|
+
webhookTriggers == o.webhookTriggers &&
|
413
|
+
deploymentHosting == o.deploymentHosting &&
|
414
|
+
deploymentStatus == o.deploymentStatus &&
|
415
|
+
deploymentActivationMethod == o.deploymentActivationMethod
|
353
416
|
end
|
354
417
|
|
355
418
|
# @see the `==` method
|
@@ -361,7 +424,7 @@ module SmoochApi
|
|
361
424
|
# Calculates hash code according to all attributes.
|
362
425
|
# @return [Fixnum] Hash code
|
363
426
|
def hash
|
364
|
-
[actionSize, actionType, businessSystemType, confirmationType, conversationActivityType, imageAspectRatio, integrationStatus, integrationType, menuItemType, messageItemSize, messageType, role, webhookTriggers].hash
|
427
|
+
[actionSize, actionType, businessSystemType, confirmationType, conversationActivityType, imageAspectRatio, integrationStatus, integrationType, menuItemType, messageItemSize, messageType, role, webhookTriggers, deploymentHosting, deploymentStatus, deploymentActivationMethod].hash
|
365
428
|
end
|
366
429
|
|
367
430
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#The Smooch API is a unified interface for powering messaging in your customer experiences across every channel. Our API speeds access to new markets, reduces time to ship, eliminates complexity, and helps you build the best experiences for your customers. For more information, visit our [official documentation](https://docs.smooch.io).
|
5
5
|
|
6
|
-
OpenAPI spec version: 5.
|
6
|
+
OpenAPI spec version: 5.8
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -18,7 +18,7 @@ module SmoochApi
|
|
18
18
|
# The integration ID, generated automatically.
|
19
19
|
attr_accessor :id
|
20
20
|
|
21
|
-
# The integration type. See Enums.md for available values.
|
21
|
+
# The integration type. See [**IntegrationTypeEnum**](Enums.md#IntegrationTypeEnum) for available values.
|
22
22
|
attr_accessor :type
|
23
23
|
|
24
24
|
# The integration display name. Used to map a human-friendly name to an integration.
|
@@ -90,13 +90,16 @@ module SmoochApi
|
|
90
90
|
# The binary of your APN certificate base64 encoded. Required for *apn* integrations.
|
91
91
|
attr_accessor :certificate
|
92
92
|
|
93
|
-
# Your WhatsApp
|
93
|
+
# Your WhatsApp deployment ID. Required for *WhatsApp* integrations.
|
94
|
+
attr_accessor :deploymentId
|
95
|
+
|
96
|
+
# Your WhatsApp API client's URL. Required for *WhatsApp* integrations. (this usage is deprecated)
|
94
97
|
attr_accessor :baseUrl
|
95
98
|
|
96
99
|
# Specification of a fallback language. (Optional) Used for *WhatsApp* integrations.
|
97
100
|
attr_accessor :hsmFallbackLanguage
|
98
101
|
|
99
|
-
# The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (Optional) Used for *apn* integrations.
|
102
|
+
# The password for your APN certificate or WhatsApp API client. Required for *WhatsApp* integrations. (this usage is deprecated) (Optional) Used for *apn* integrations.
|
100
103
|
attr_accessor :password
|
101
104
|
|
102
105
|
# Use the unread count of the conversation as the application badge. (Optional) Used for *apn* integrations.
|
@@ -132,7 +135,7 @@ module SmoochApi
|
|
132
135
|
# The twitter userId. Returned on successful *twitter* integrations.
|
133
136
|
attr_accessor :userId
|
134
137
|
|
135
|
-
# The username for the account.
|
138
|
+
# The username for the account. Returned on successful *twitter* and *telegram* integrations. Required for *WhatsApp* integrations. (this usage is deprecated)
|
136
139
|
attr_accessor :username
|
137
140
|
|
138
141
|
# The public API key of your Mailgun account. Required for *mailgun* integrations.
|
@@ -189,7 +192,7 @@ module SmoochApi
|
|
189
192
|
# A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations.
|
190
193
|
attr_accessor :originWhitelist
|
191
194
|
|
192
|
-
# The integration status. See Enums.md for available values. [More info](https://docs.smooch.io/#integration-status).
|
195
|
+
# The integration status. See [**IntegrationStatusEnum**](Enums.md#IntegrationStatusEnum) for available values. [More info](https://docs.smooch.io/#integration-status).
|
193
196
|
attr_accessor :status
|
194
197
|
|
195
198
|
# The error causing the integration to fail. Will be present when `status` is 'error'.
|
@@ -224,6 +227,7 @@ module SmoochApi
|
|
224
227
|
:'encodingAesKey' => :'encodingAesKey',
|
225
228
|
:'fromAddress' => :'fromAddress',
|
226
229
|
:'certificate' => :'certificate',
|
230
|
+
:'deploymentId' => :'deploymentId',
|
227
231
|
:'baseUrl' => :'baseUrl',
|
228
232
|
:'hsmFallbackLanguage' => :'hsmFallbackLanguage',
|
229
233
|
:'password' => :'password',
|
@@ -290,6 +294,7 @@ module SmoochApi
|
|
290
294
|
:'encodingAesKey' => :'String',
|
291
295
|
:'fromAddress' => :'String',
|
292
296
|
:'certificate' => :'String',
|
297
|
+
:'deploymentId' => :'String',
|
293
298
|
:'baseUrl' => :'String',
|
294
299
|
:'hsmFallbackLanguage' => :'String',
|
295
300
|
:'password' => :'String',
|
@@ -436,6 +441,10 @@ module SmoochApi
|
|
436
441
|
self.certificate = attributes[:'certificate']
|
437
442
|
end
|
438
443
|
|
444
|
+
if attributes.has_key?(:'deploymentId')
|
445
|
+
self.deploymentId = attributes[:'deploymentId']
|
446
|
+
end
|
447
|
+
|
439
448
|
if attributes.has_key?(:'baseUrl')
|
440
449
|
self.baseUrl = attributes[:'baseUrl']
|
441
450
|
end
|
@@ -635,6 +644,7 @@ module SmoochApi
|
|
635
644
|
encodingAesKey == o.encodingAesKey &&
|
636
645
|
fromAddress == o.fromAddress &&
|
637
646
|
certificate == o.certificate &&
|
647
|
+
deploymentId == o.deploymentId &&
|
638
648
|
baseUrl == o.baseUrl &&
|
639
649
|
hsmFallbackLanguage == o.hsmFallbackLanguage &&
|
640
650
|
password == o.password &&
|
@@ -681,7 +691,7 @@ module SmoochApi
|
|
681
691
|
# Calculates hash code according to all attributes.
|
682
692
|
# @return [Fixnum] Hash code
|
683
693
|
def hash
|
684
|
-
[id, type, displayName, pageAccessToken, appId, appSecret, accessTokenUrl, webhookSecret, pageId, accountSid, authToken, phoneNumberSid, phoneNumber, name, token, uri, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, botName, encodingAesKey, fromAddress, certificate, baseUrl, hsmFallbackLanguage, password, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, userId, username, apiKey, domain, incomingAddress, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, status, error].hash
|
694
|
+
[id, type, displayName, pageAccessToken, appId, appSecret, accessTokenUrl, webhookSecret, pageId, accountSid, authToken, phoneNumberSid, phoneNumber, name, token, uri, channelId, channelSecret, channelAccessToken, serviceCode, switcherSecret, botName, encodingAesKey, fromAddress, certificate, deploymentId, baseUrl, hsmFallbackLanguage, password, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, userId, username, apiKey, domain, incomingAddress, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, status, error].hash
|
685
695
|
end
|
686
696
|
|
687
697
|
# Builds the object from hash
|