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 AppUserBusinessSystemsResponse
|
18
18
|
# An array of objects containing the business system type and the id.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :businessSystems
|
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
|
+
:'businessSystems' => :'businessSystems'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'businessSystems' => :'Array<BusinessSystemItem>'
|
33
33
|
}
|
34
34
|
end
|
35
35
|
|
@@ -43,7 +43,7 @@ module SmoochApi
|
|
43
43
|
|
44
44
|
if attributes.has_key?(:'businessSystems')
|
45
45
|
if (value = attributes[:'businessSystems']).is_a?(Array)
|
46
|
-
self.
|
46
|
+
self.businessSystems = value
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
@@ -53,8 +53,8 @@ module SmoochApi
|
|
53
53
|
# @return Array for valid properies with the reasons
|
54
54
|
def list_invalid_properties
|
55
55
|
invalid_properties = Array.new
|
56
|
-
if @
|
57
|
-
invalid_properties.push("invalid value for '
|
56
|
+
if @businessSystems.nil?
|
57
|
+
invalid_properties.push("invalid value for 'businessSystems', businessSystems cannot be nil.")
|
58
58
|
end
|
59
59
|
|
60
60
|
return invalid_properties
|
@@ -63,7 +63,7 @@ module SmoochApi
|
|
63
63
|
# Check to see if the all the properties in the model are valid
|
64
64
|
# @return true if the model is valid
|
65
65
|
def valid?
|
66
|
-
return false if @
|
66
|
+
return false if @businessSystems.nil?
|
67
67
|
return true
|
68
68
|
end
|
69
69
|
|
@@ -72,7 +72,7 @@ module SmoochApi
|
|
72
72
|
def ==(o)
|
73
73
|
return true if self.equal?(o)
|
74
74
|
self.class == o.class &&
|
75
|
-
|
75
|
+
businessSystems == o.businessSystems
|
76
76
|
end
|
77
77
|
|
78
78
|
# @see the `==` method
|
@@ -84,7 +84,7 @@ module SmoochApi
|
|
84
84
|
# Calculates hash code according to all attributes.
|
85
85
|
# @return [Fixnum] Hash code
|
86
86
|
def hash
|
87
|
-
[
|
87
|
+
[businessSystems].hash
|
88
88
|
end
|
89
89
|
|
90
90
|
# 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
|
@@ -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,13 +19,13 @@ module SmoochApi
|
|
19
19
|
attr_accessor :type
|
20
20
|
|
21
21
|
# A String of the appUser’s phone number. It must contain the + prefix and the country code. Required for *messenger*, *twilio* and *messagebird* linking.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :phoneNumber
|
23
23
|
|
24
24
|
# A String of the appUser’s email address. Required for *mailgun* linking.
|
25
25
|
attr_accessor :address
|
26
26
|
|
27
27
|
# A String of the appUser’s given name. Used as additional criteria to increase the likelihood of a match. (Optional) Used for *messenger* linking.
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :givenName
|
29
29
|
|
30
30
|
# A String of the appUser’s surname. Used as additional criteria to increase the likelihood of a match. (Optional) Used for *messenger* linking.
|
31
31
|
attr_accessor :surname
|
@@ -41,9 +41,9 @@ module SmoochApi
|
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
43
|
:'type' => :'type',
|
44
|
-
:'
|
44
|
+
:'phoneNumber' => :'phoneNumber',
|
45
45
|
:'address' => :'address',
|
46
|
-
:'
|
46
|
+
:'givenName' => :'givenName',
|
47
47
|
:'surname' => :'surname',
|
48
48
|
:'subject' => :'subject',
|
49
49
|
:'confirmation' => :'confirmation'
|
@@ -54,9 +54,9 @@ module SmoochApi
|
|
54
54
|
def self.swagger_types
|
55
55
|
{
|
56
56
|
:'type' => :'String',
|
57
|
-
:'
|
57
|
+
:'phoneNumber' => :'String',
|
58
58
|
:'address' => :'String',
|
59
|
-
:'
|
59
|
+
:'givenName' => :'String',
|
60
60
|
:'surname' => :'String',
|
61
61
|
:'subject' => :'String',
|
62
62
|
:'confirmation' => :'Confirmation'
|
@@ -76,7 +76,7 @@ module SmoochApi
|
|
76
76
|
end
|
77
77
|
|
78
78
|
if attributes.has_key?(:'phoneNumber')
|
79
|
-
self.
|
79
|
+
self.phoneNumber = attributes[:'phoneNumber']
|
80
80
|
end
|
81
81
|
|
82
82
|
if attributes.has_key?(:'address')
|
@@ -84,7 +84,7 @@ module SmoochApi
|
|
84
84
|
end
|
85
85
|
|
86
86
|
if attributes.has_key?(:'givenName')
|
87
|
-
self.
|
87
|
+
self.givenName = attributes[:'givenName']
|
88
88
|
end
|
89
89
|
|
90
90
|
if attributes.has_key?(:'surname')
|
@@ -130,9 +130,9 @@ module SmoochApi
|
|
130
130
|
return true if self.equal?(o)
|
131
131
|
self.class == o.class &&
|
132
132
|
type == o.type &&
|
133
|
-
|
133
|
+
phoneNumber == o.phoneNumber &&
|
134
134
|
address == o.address &&
|
135
|
-
|
135
|
+
givenName == o.givenName &&
|
136
136
|
surname == o.surname &&
|
137
137
|
subject == o.subject &&
|
138
138
|
confirmation == o.confirmation
|
@@ -147,7 +147,7 @@ module SmoochApi
|
|
147
147
|
# Calculates hash code according to all attributes.
|
148
148
|
# @return [Fixnum] Hash code
|
149
149
|
def hash
|
150
|
-
[type,
|
150
|
+
[type, phoneNumber, address, givenName, surname, subject, confirmation].hash
|
151
151
|
end
|
152
152
|
|
153
153
|
# 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,10 +16,10 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AppUserPreCreate
|
18
18
|
# The app user's userId. This ID is specified by the appMaker.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :userId
|
20
20
|
|
21
21
|
# The app user's given name.
|
22
|
-
attr_accessor :
|
22
|
+
attr_accessor :givenName
|
23
23
|
|
24
24
|
# The app user's surname.
|
25
25
|
attr_accessor :surname
|
@@ -28,7 +28,7 @@ module SmoochApi
|
|
28
28
|
attr_accessor :email
|
29
29
|
|
30
30
|
# A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created.
|
31
|
-
attr_accessor :
|
31
|
+
attr_accessor :signedUpAt
|
32
32
|
|
33
33
|
# Custom properties for the app user.
|
34
34
|
attr_accessor :properties
|
@@ -37,11 +37,11 @@ module SmoochApi
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
38
38
|
def self.attribute_map
|
39
39
|
{
|
40
|
-
:'
|
41
|
-
:'
|
40
|
+
:'userId' => :'userId',
|
41
|
+
:'givenName' => :'givenName',
|
42
42
|
:'surname' => :'surname',
|
43
43
|
:'email' => :'email',
|
44
|
-
:'
|
44
|
+
:'signedUpAt' => :'signedUpAt',
|
45
45
|
:'properties' => :'properties'
|
46
46
|
}
|
47
47
|
end
|
@@ -49,11 +49,11 @@ module SmoochApi
|
|
49
49
|
# Attribute type mapping.
|
50
50
|
def self.swagger_types
|
51
51
|
{
|
52
|
-
:'
|
53
|
-
:'
|
52
|
+
:'userId' => :'String',
|
53
|
+
:'givenName' => :'String',
|
54
54
|
:'surname' => :'String',
|
55
55
|
:'email' => :'String',
|
56
|
-
:'
|
56
|
+
:'signedUpAt' => :'String',
|
57
57
|
:'properties' => :'Object'
|
58
58
|
}
|
59
59
|
end
|
@@ -67,11 +67,11 @@ module SmoochApi
|
|
67
67
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
68
68
|
|
69
69
|
if attributes.has_key?(:'userId')
|
70
|
-
self.
|
70
|
+
self.userId = attributes[:'userId']
|
71
71
|
end
|
72
72
|
|
73
73
|
if attributes.has_key?(:'givenName')
|
74
|
-
self.
|
74
|
+
self.givenName = attributes[:'givenName']
|
75
75
|
end
|
76
76
|
|
77
77
|
if attributes.has_key?(:'surname')
|
@@ -83,7 +83,7 @@ module SmoochApi
|
|
83
83
|
end
|
84
84
|
|
85
85
|
if attributes.has_key?(:'signedUpAt')
|
86
|
-
self.
|
86
|
+
self.signedUpAt = attributes[:'signedUpAt']
|
87
87
|
end
|
88
88
|
|
89
89
|
if attributes.has_key?(:'properties')
|
@@ -96,8 +96,8 @@ module SmoochApi
|
|
96
96
|
# @return Array for valid properies with the reasons
|
97
97
|
def list_invalid_properties
|
98
98
|
invalid_properties = Array.new
|
99
|
-
if @
|
100
|
-
invalid_properties.push("invalid value for '
|
99
|
+
if @userId.nil?
|
100
|
+
invalid_properties.push("invalid value for 'userId', userId cannot be nil.")
|
101
101
|
end
|
102
102
|
|
103
103
|
return invalid_properties
|
@@ -106,7 +106,7 @@ module SmoochApi
|
|
106
106
|
# Check to see if the all the properties in the model are valid
|
107
107
|
# @return true if the model is valid
|
108
108
|
def valid?
|
109
|
-
return false if @
|
109
|
+
return false if @userId.nil?
|
110
110
|
return true
|
111
111
|
end
|
112
112
|
|
@@ -115,11 +115,11 @@ module SmoochApi
|
|
115
115
|
def ==(o)
|
116
116
|
return true if self.equal?(o)
|
117
117
|
self.class == o.class &&
|
118
|
-
|
119
|
-
|
118
|
+
userId == o.userId &&
|
119
|
+
givenName == o.givenName &&
|
120
120
|
surname == o.surname &&
|
121
121
|
email == o.email &&
|
122
|
-
|
122
|
+
signedUpAt == o.signedUpAt &&
|
123
123
|
properties == o.properties
|
124
124
|
end
|
125
125
|
|
@@ -132,7 +132,7 @@ module SmoochApi
|
|
132
132
|
# Calculates hash code according to all attributes.
|
133
133
|
# @return [Fixnum] Hash code
|
134
134
|
def hash
|
135
|
-
[
|
135
|
+
[userId, givenName, surname, email, signedUpAt, properties].hash
|
136
136
|
end
|
137
137
|
|
138
138
|
# 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 AppUserResponse
|
18
18
|
# The app user.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :appUser
|
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
|
+
:'appUser' => :'appUser'
|
26
26
|
}
|
27
27
|
end
|
28
28
|
|
29
29
|
# Attribute type mapping.
|
30
30
|
def self.swagger_types
|
31
31
|
{
|
32
|
-
:'
|
32
|
+
:'appUser' => :'AppUser'
|
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?(:'appUser')
|
45
|
-
self.
|
45
|
+
self.appUser = attributes[:'appUser']
|
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 @appUser.nil?
|
55
|
+
invalid_properties.push("invalid value for 'appUser', appUser 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 @appUser.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
|
+
appUser == o.appUser
|
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
|
+
[appUser].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,7 +16,7 @@ module SmoochApi
|
|
16
16
|
|
17
17
|
class AppUserUpdate
|
18
18
|
# The app user's given name.
|
19
|
-
attr_accessor :
|
19
|
+
attr_accessor :givenName
|
20
20
|
|
21
21
|
# The app user's surname.
|
22
22
|
attr_accessor :surname
|
@@ -25,7 +25,7 @@ module SmoochApi
|
|
25
25
|
attr_accessor :email
|
26
26
|
|
27
27
|
# A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created.
|
28
|
-
attr_accessor :
|
28
|
+
attr_accessor :signedUpAt
|
29
29
|
|
30
30
|
# Custom properties for the app user.
|
31
31
|
attr_accessor :properties
|
@@ -34,10 +34,10 @@ module SmoochApi
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|
37
|
-
:'
|
37
|
+
:'givenName' => :'givenName',
|
38
38
|
:'surname' => :'surname',
|
39
39
|
:'email' => :'email',
|
40
|
-
:'
|
40
|
+
:'signedUpAt' => :'signedUpAt',
|
41
41
|
:'properties' => :'properties'
|
42
42
|
}
|
43
43
|
end
|
@@ -45,10 +45,10 @@ module SmoochApi
|
|
45
45
|
# Attribute type mapping.
|
46
46
|
def self.swagger_types
|
47
47
|
{
|
48
|
-
:'
|
48
|
+
:'givenName' => :'String',
|
49
49
|
:'surname' => :'String',
|
50
50
|
:'email' => :'String',
|
51
|
-
:'
|
51
|
+
:'signedUpAt' => :'String',
|
52
52
|
:'properties' => :'Object'
|
53
53
|
}
|
54
54
|
end
|
@@ -62,7 +62,7 @@ module SmoochApi
|
|
62
62
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
63
63
|
|
64
64
|
if attributes.has_key?(:'givenName')
|
65
|
-
self.
|
65
|
+
self.givenName = attributes[:'givenName']
|
66
66
|
end
|
67
67
|
|
68
68
|
if attributes.has_key?(:'surname')
|
@@ -74,7 +74,7 @@ module SmoochApi
|
|
74
74
|
end
|
75
75
|
|
76
76
|
if attributes.has_key?(:'signedUpAt')
|
77
|
-
self.
|
77
|
+
self.signedUpAt = attributes[:'signedUpAt']
|
78
78
|
end
|
79
79
|
|
80
80
|
if attributes.has_key?(:'properties')
|
@@ -101,10 +101,10 @@ module SmoochApi
|
|
101
101
|
def ==(o)
|
102
102
|
return true if self.equal?(o)
|
103
103
|
self.class == o.class &&
|
104
|
-
|
104
|
+
givenName == o.givenName &&
|
105
105
|
surname == o.surname &&
|
106
106
|
email == o.email &&
|
107
|
-
|
107
|
+
signedUpAt == o.signedUpAt &&
|
108
108
|
properties == o.properties
|
109
109
|
end
|
110
110
|
|
@@ -117,7 +117,7 @@ module SmoochApi
|
|
117
117
|
# Calculates hash code according to all attributes.
|
118
118
|
# @return [Fixnum] Hash code
|
119
119
|
def hash
|
120
|
-
[
|
120
|
+
[givenName, surname, email, signedUpAt, properties].hash
|
121
121
|
end
|
122
122
|
|
123
123
|
# Builds the object from hash
|