smooch-api 4.1.0 → 4.2.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 +5 -3
- data/docs/Action.md +2 -2
- data/docs/App.md +2 -2
- data/docs/AppApi.md +48 -48
- data/docs/AppSettings.md +2 -2
- data/docs/AppUser.md +6 -6
- data/docs/AppUserApi.md +78 -78
- data/docs/AppUserBusinessSystemsResponse.md +1 -1
- data/docs/AppUserLink.md +2 -2
- data/docs/AppUserPreCreate.md +3 -3
- data/docs/AppUserResponse.md +1 -1
- data/docs/AppUserUpdate.md +2 -2
- data/docs/AttachmentRemove.md +1 -1
- data/docs/AttachmentResponse.md +2 -2
- data/docs/AttachmentsApi.md +16 -16
- data/docs/AuthCodeResponse.md +1 -1
- data/docs/BusinessSystemItem.md +4 -4
- data/docs/ChannelEntityItem.md +3 -3
- data/docs/Client.md +4 -4
- data/docs/ClientInfo.md +8 -8
- data/docs/Conversation.md +2 -2
- data/docs/ConversationApi.md +42 -42
- data/docs/Destination.md +2 -2
- data/docs/DisplaySettings.md +1 -1
- data/docs/GetMessagesResponse.md +1 -1
- data/docs/Integration.md +44 -44
- data/docs/IntegrationApi.md +66 -66
- data/docs/IntegrationCreate.md +36 -36
- data/docs/IntegrationProfileUpdate.md +1 -1
- data/docs/IntegrationUpdate.md +16 -16
- data/docs/LinkRequestResponse.md +1 -1
- data/docs/LinkRequestResponseLinkRequests.md +1 -1
- data/docs/ListAppsResponse.md +1 -1
- data/docs/ListServiceAccountsResponse.md +2 -2
- data/docs/ListTemplatesResponse.md +1 -1
- data/docs/MenuApi.md +14 -14
- data/docs/Message.md +6 -6
- data/docs/MessageItem.md +2 -2
- data/docs/MessageOverride.md +8 -0
- data/docs/MessageOverrideWhatsapp.md +8 -0
- data/docs/MessagePost.md +4 -3
- data/docs/MessageResponse.md +1 -1
- data/docs/SecretKey.md +1 -1
- data/docs/ServiceAccount.md +1 -1
- data/docs/ServiceAccountApi.md +46 -46
- data/docs/ServiceAccountResponse.md +1 -1
- data/docs/Template.md +1 -1
- data/docs/TemplateApi.md +30 -30
- data/docs/TypingActivityTrigger.md +1 -1
- data/docs/Webhook.md +1 -1
- data/docs/WebhookApi.md +30 -30
- data/lib/smooch-api.rb +3 -1
- data/lib/smooch-api/api/app_api.rb +112 -112
- data/lib/smooch-api/api/app_user_api.rb +190 -190
- data/lib/smooch-api/api/attachments_api.rb +34 -34
- data/lib/smooch-api/api/conversation_api.rb +102 -102
- data/lib/smooch-api/api/integration_api.rb +161 -161
- data/lib/smooch-api/api/menu_api.rb +34 -34
- data/lib/smooch-api/api/service_account_api.rb +109 -109
- data/lib/smooch-api/api/template_api.rb +73 -73
- data/lib/smooch-api/api/webhook_api.rb +73 -73
- 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 +12 -12
- data/lib/smooch-api/models/app.rb +18 -18
- 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 +12 -12
- data/lib/smooch-api/models/app_update.rb +1 -1
- data/lib/smooch-api/models/app_user.rb +38 -38
- data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
- data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
- data/lib/smooch-api/models/app_user_link.rb +12 -12
- data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
- data/lib/smooch-api/models/app_user_response.rb +10 -10
- data/lib/smooch-api/models/app_user_update.rb +12 -12
- data/lib/smooch-api/models/attachment_remove.rb +10 -10
- data/lib/smooch-api/models/attachment_response.rb +18 -18
- data/lib/smooch-api/models/auth_code_response.rb +10 -10
- data/lib/smooch-api/models/business_system_item.rb +22 -22
- data/lib/smooch-api/models/channel_entity_item.rb +17 -17
- data/lib/smooch-api/models/client.rb +22 -22
- data/lib/smooch-api/models/client_info.rb +42 -42
- data/lib/smooch-api/models/confirmation.rb +1 -1
- data/lib/smooch-api/models/conversation.rb +18 -18
- data/lib/smooch-api/models/destination.rb +18 -18
- data/lib/smooch-api/models/display_settings.rb +7 -7
- data/lib/smooch-api/models/get_messages_response.rb +7 -7
- data/lib/smooch-api/models/integration.rb +225 -225
- data/lib/smooch-api/models/integration_create.rb +182 -182
- data/lib/smooch-api/models/integration_profile_update.rb +7 -7
- data/lib/smooch-api/models/integration_response.rb +1 -1
- data/lib/smooch-api/models/integration_update.rb +82 -82
- data/lib/smooch-api/models/jwt_response.rb +1 -1
- data/lib/smooch-api/models/link_request_response.rb +7 -7
- data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
- data/lib/smooch-api/models/list_apps_response.rb +7 -7
- 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 +12 -12
- data/lib/smooch-api/models/list_templates_response.rb +7 -7
- 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 +1 -1
- data/lib/smooch-api/models/menu_response.rb +1 -1
- data/lib/smooch-api/models/message.rb +41 -41
- data/lib/smooch-api/models/message_item.rb +12 -12
- data/lib/smooch-api/models/message_override.rb +188 -0
- data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
- data/lib/smooch-api/models/message_post.rb +30 -20
- data/lib/smooch-api/models/message_response.rb +7 -7
- data/lib/smooch-api/models/secret_key.rb +10 -10
- 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 +10 -10
- data/lib/smooch-api/models/service_account_create.rb +1 -1
- data/lib/smooch-api/models/service_account_response.rb +7 -7
- data/lib/smooch-api/models/service_account_update.rb +1 -1
- data/lib/smooch-api/models/source.rb +1 -1
- data/lib/smooch-api/models/sub_menu_item.rb +1 -1
- data/lib/smooch-api/models/template.rb +10 -10
- 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/typing_activity_trigger.rb +7 -7
- data/lib/smooch-api/models/webhook.rb +10 -10
- data/lib/smooch-api/models/webhook_create.rb +1 -1
- data/lib/smooch-api/models/webhook_response.rb +1 -1
- data/lib/smooch-api/models/webhook_update.rb +1 -1
- 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 +6 -2
@@ -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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -16,20 +16,20 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AttachmentRemove
|
18
18
|
# The mediaUrl for the message. Required for image/file messages.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :mediaUrl
|
20
20
|
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
25
|
+
:'mediaUrl' => :'mediaUrl'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'mediaUrl' => :'String'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
@@ -42,7 +42,7 @@ module SmoochApi
|
|
42
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
43
|
|
44
44
|
if attributes.has_key?(:'mediaUrl')
|
45
|
-
self.
|
45
|
+
self.mediaUrl = attributes[:'mediaUrl']
|
46
46
|
end
|
47
47
|
|
48
48
|
end
|
@@ -51,8 +51,8 @@ module SmoochApi
|
|
51
51
|
# @return Array for valid properies with the reasons
|
52
52
|
def list_invalid_properties
|
53
53
|
invalid_properties = Array.new
|
54
|
-
if @
|
55
|
-
invalid_properties.push("invalid value for '
|
54
|
+
if @mediaUrl.nil?
|
55
|
+
invalid_properties.push("invalid value for 'mediaUrl', mediaUrl cannot be nil.")
|
56
56
|
end
|
57
57
|
|
58
58
|
return invalid_properties
|
@@ -61,7 +61,7 @@ module SmoochApi
|
|
61
61
|
# Check to see if the all the properties in the model are valid
|
62
62
|
# @return true if the model is valid
|
63
63
|
def valid?
|
64
|
-
return false if @
|
64
|
+
return false if @mediaUrl.nil?
|
65
65
|
return true
|
66
66
|
end
|
67
67
|
|
@@ -70,7 +70,7 @@ module SmoochApi
|
|
70
70
|
def ==(o)
|
71
71
|
return true if self.equal?(o)
|
72
72
|
self.class == o.class &&
|
73
|
-
|
73
|
+
mediaUrl == o.mediaUrl
|
74
74
|
end
|
75
75
|
|
76
76
|
# @see the `==` method
|
@@ -82,7 +82,7 @@ module SmoochApi
|
|
82
82
|
# Calculates hash code according to all attributes.
|
83
83
|
# @return [Fixnum] Hash code
|
84
84
|
def hash
|
85
|
-
[
|
85
|
+
[mediaUrl].hash
|
86
86
|
end
|
87
87
|
|
88
88
|
# 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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -16,25 +16,25 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AttachmentResponse
|
18
18
|
# The mediaUrl for the message. Required for image/file messages.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :mediaUrl
|
20
20
|
|
21
21
|
# The mediaType for the message. Required for image/file messages.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :mediaType
|
23
23
|
|
24
24
|
|
25
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
26
|
def self.attribute_map
|
27
27
|
{
|
28
|
-
:'
|
29
|
-
:'
|
28
|
+
:'mediaUrl' => :'mediaUrl',
|
29
|
+
:'mediaType' => :'mediaType'
|
30
30
|
}
|
31
31
|
end
|
32
32
|
|
33
33
|
# Attribute type mapping.
|
34
34
|
def self.swagger_types
|
35
35
|
{
|
36
|
-
:'
|
37
|
-
:'
|
36
|
+
:'mediaUrl' => :'String',
|
37
|
+
:'mediaType' => :'String'
|
38
38
|
}
|
39
39
|
end
|
40
40
|
|
@@ -47,11 +47,11 @@ module SmoochApi
|
|
47
47
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
48
48
|
|
49
49
|
if attributes.has_key?(:'mediaUrl')
|
50
|
-
self.
|
50
|
+
self.mediaUrl = attributes[:'mediaUrl']
|
51
51
|
end
|
52
52
|
|
53
53
|
if attributes.has_key?(:'mediaType')
|
54
|
-
self.
|
54
|
+
self.mediaType = attributes[:'mediaType']
|
55
55
|
end
|
56
56
|
|
57
57
|
end
|
@@ -60,12 +60,12 @@ module SmoochApi
|
|
60
60
|
# @return Array for valid properies with the reasons
|
61
61
|
def list_invalid_properties
|
62
62
|
invalid_properties = Array.new
|
63
|
-
if @
|
64
|
-
invalid_properties.push("invalid value for '
|
63
|
+
if @mediaUrl.nil?
|
64
|
+
invalid_properties.push("invalid value for 'mediaUrl', mediaUrl cannot be nil.")
|
65
65
|
end
|
66
66
|
|
67
|
-
if @
|
68
|
-
invalid_properties.push("invalid value for '
|
67
|
+
if @mediaType.nil?
|
68
|
+
invalid_properties.push("invalid value for 'mediaType', mediaType cannot be nil.")
|
69
69
|
end
|
70
70
|
|
71
71
|
return invalid_properties
|
@@ -74,8 +74,8 @@ module SmoochApi
|
|
74
74
|
# Check to see if the all the properties in the model are valid
|
75
75
|
# @return true if the model is valid
|
76
76
|
def valid?
|
77
|
-
return false if @
|
78
|
-
return false if @
|
77
|
+
return false if @mediaUrl.nil?
|
78
|
+
return false if @mediaType.nil?
|
79
79
|
return true
|
80
80
|
end
|
81
81
|
|
@@ -84,8 +84,8 @@ module SmoochApi
|
|
84
84
|
def ==(o)
|
85
85
|
return true if self.equal?(o)
|
86
86
|
self.class == o.class &&
|
87
|
-
|
88
|
-
|
87
|
+
mediaUrl == o.mediaUrl &&
|
88
|
+
mediaType == o.mediaType
|
89
89
|
end
|
90
90
|
|
91
91
|
# @see the `==` method
|
@@ -97,7 +97,7 @@ module SmoochApi
|
|
97
97
|
# Calculates hash code according to all attributes.
|
98
98
|
# @return [Fixnum] Hash code
|
99
99
|
def hash
|
100
|
-
[
|
100
|
+
[mediaUrl, mediaType].hash
|
101
101
|
end
|
102
102
|
|
103
103
|
# 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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -16,20 +16,20 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AuthCodeResponse
|
18
18
|
# The auth code
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :authCode
|
20
20
|
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
25
|
+
:'authCode' => :'authCode'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'authCode' => :'String'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
@@ -42,7 +42,7 @@ module SmoochApi
|
|
42
42
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
43
43
|
|
44
44
|
if attributes.has_key?(:'authCode')
|
45
|
-
self.
|
45
|
+
self.authCode = attributes[:'authCode']
|
46
46
|
end
|
47
47
|
|
48
48
|
end
|
@@ -51,8 +51,8 @@ module SmoochApi
|
|
51
51
|
# @return Array for valid properies with the reasons
|
52
52
|
def list_invalid_properties
|
53
53
|
invalid_properties = Array.new
|
54
|
-
if @
|
55
|
-
invalid_properties.push("invalid value for '
|
54
|
+
if @authCode.nil?
|
55
|
+
invalid_properties.push("invalid value for 'authCode', authCode cannot be nil.")
|
56
56
|
end
|
57
57
|
|
58
58
|
return invalid_properties
|
@@ -61,7 +61,7 @@ module SmoochApi
|
|
61
61
|
# Check to see if the all the properties in the model are valid
|
62
62
|
# @return true if the model is valid
|
63
63
|
def valid?
|
64
|
-
return false if @
|
64
|
+
return false if @authCode.nil?
|
65
65
|
return true
|
66
66
|
end
|
67
67
|
|
@@ -70,7 +70,7 @@ module SmoochApi
|
|
70
70
|
def ==(o)
|
71
71
|
return true if self.equal?(o)
|
72
72
|
self.class == o.class &&
|
73
|
-
|
73
|
+
authCode == o.authCode
|
74
74
|
end
|
75
75
|
|
76
76
|
# @see the `==` method
|
@@ -82,7 +82,7 @@ module SmoochApi
|
|
82
82
|
# Calculates hash code according to all attributes.
|
83
83
|
# @return [Fixnum] Hash code
|
84
84
|
def hash
|
85
|
-
[
|
85
|
+
[authCode].hash
|
86
86
|
end
|
87
87
|
|
88
88
|
# 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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -19,26 +19,26 @@ module SmoochApi
|
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
# The channel id for a *slack* integration
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :channelId
|
23
23
|
|
24
24
|
# The ticket id for a *zendesk* integration
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :ticketId
|
26
26
|
|
27
27
|
# The room id for a *hipchat* integration
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :roomId
|
29
29
|
|
30
30
|
# The conversation id for a *helpscout* integration
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :conversationId
|
32
32
|
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'type' => :'type',
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
38
|
+
:'channelId' => :'channelId',
|
39
|
+
:'ticketId' => :'ticketId',
|
40
|
+
:'roomId' => :'roomId',
|
41
|
+
:'conversationId' => :'conversationId'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -46,10 +46,10 @@ module SmoochApi
|
|
46
46
|
def self.swagger_types
|
47
47
|
{
|
48
48
|
:'type' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'
|
49
|
+
:'channelId' => :'String',
|
50
|
+
:'ticketId' => :'String',
|
51
|
+
:'roomId' => :'Integer',
|
52
|
+
:'conversationId' => :'String'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -66,19 +66,19 @@ module SmoochApi
|
|
66
66
|
end
|
67
67
|
|
68
68
|
if attributes.has_key?(:'channelId')
|
69
|
-
self.
|
69
|
+
self.channelId = attributes[:'channelId']
|
70
70
|
end
|
71
71
|
|
72
72
|
if attributes.has_key?(:'ticketId')
|
73
|
-
self.
|
73
|
+
self.ticketId = attributes[:'ticketId']
|
74
74
|
end
|
75
75
|
|
76
76
|
if attributes.has_key?(:'roomId')
|
77
|
-
self.
|
77
|
+
self.roomId = attributes[:'roomId']
|
78
78
|
end
|
79
79
|
|
80
80
|
if attributes.has_key?(:'conversationId')
|
81
|
-
self.
|
81
|
+
self.conversationId = attributes[:'conversationId']
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
@@ -107,10 +107,10 @@ module SmoochApi
|
|
107
107
|
return true if self.equal?(o)
|
108
108
|
self.class == o.class &&
|
109
109
|
type == o.type &&
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
110
|
+
channelId == o.channelId &&
|
111
|
+
ticketId == o.ticketId &&
|
112
|
+
roomId == o.roomId &&
|
113
|
+
conversationId == o.conversationId
|
114
114
|
end
|
115
115
|
|
116
116
|
# @see the `==` method
|
@@ -122,7 +122,7 @@ module SmoochApi
|
|
122
122
|
# Calculates hash code according to all attributes.
|
123
123
|
# @return [Fixnum] Hash code
|
124
124
|
def hash
|
125
|
-
[type,
|
125
|
+
[type, channelId, ticketId, roomId, conversationId].hash
|
126
126
|
end
|
127
127
|
|
128
128
|
# 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: 4.
|
6
|
+
OpenAPI spec version: 4.2
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
9
|
Swagger Codegen version: 2.2.3-SNAPSHOT
|
@@ -19,26 +19,26 @@ module SmoochApi
|
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
# The phone number for a *twilio*, *messageBird* integration
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :phoneNumber
|
23
23
|
|
24
24
|
# The userId for a *messenger*, *viber*, *line*, *wechat* integration
|
25
|
-
attr_accessor :
|
25
|
+
attr_accessor :userId
|
26
26
|
|
27
27
|
# The email address for a *frontendEmail*, *mailgun* integration
|
28
28
|
attr_accessor :address
|
29
29
|
|
30
30
|
# The chat id for a *telegram* integration
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :chatId
|
32
32
|
|
33
33
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
37
|
:'type' => :'type',
|
38
|
-
:'
|
39
|
-
:'
|
38
|
+
:'phoneNumber' => :'phoneNumber',
|
39
|
+
:'userId' => :'userId',
|
40
40
|
:'address' => :'address',
|
41
|
-
:'
|
41
|
+
:'chatId' => :'chatId'
|
42
42
|
}
|
43
43
|
end
|
44
44
|
|
@@ -46,10 +46,10 @@ module SmoochApi
|
|
46
46
|
def self.swagger_types
|
47
47
|
{
|
48
48
|
:'type' => :'String',
|
49
|
-
:'
|
50
|
-
:'
|
49
|
+
:'phoneNumber' => :'String',
|
50
|
+
:'userId' => :'String',
|
51
51
|
:'address' => :'String',
|
52
|
-
:'
|
52
|
+
:'chatId' => :'String'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -66,11 +66,11 @@ module SmoochApi
|
|
66
66
|
end
|
67
67
|
|
68
68
|
if attributes.has_key?(:'phoneNumber')
|
69
|
-
self.
|
69
|
+
self.phoneNumber = attributes[:'phoneNumber']
|
70
70
|
end
|
71
71
|
|
72
72
|
if attributes.has_key?(:'userId')
|
73
|
-
self.
|
73
|
+
self.userId = attributes[:'userId']
|
74
74
|
end
|
75
75
|
|
76
76
|
if attributes.has_key?(:'address')
|
@@ -78,7 +78,7 @@ module SmoochApi
|
|
78
78
|
end
|
79
79
|
|
80
80
|
if attributes.has_key?(:'chatId')
|
81
|
-
self.
|
81
|
+
self.chatId = attributes[:'chatId']
|
82
82
|
end
|
83
83
|
|
84
84
|
end
|
@@ -107,10 +107,10 @@ module SmoochApi
|
|
107
107
|
return true if self.equal?(o)
|
108
108
|
self.class == o.class &&
|
109
109
|
type == o.type &&
|
110
|
-
|
111
|
-
|
110
|
+
phoneNumber == o.phoneNumber &&
|
111
|
+
userId == o.userId &&
|
112
112
|
address == o.address &&
|
113
|
-
|
113
|
+
chatId == o.chatId
|
114
114
|
end
|
115
115
|
|
116
116
|
# @see the `==` method
|
@@ -122,7 +122,7 @@ module SmoochApi
|
|
122
122
|
# Calculates hash code according to all attributes.
|
123
123
|
# @return [Fixnum] Hash code
|
124
124
|
def hash
|
125
|
-
[type,
|
125
|
+
[type, phoneNumber, userId, address, chatId].hash
|
126
126
|
end
|
127
127
|
|
128
128
|
# Builds the object from hash
|