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.
Files changed (137) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -3
  3. data/docs/Action.md +2 -2
  4. data/docs/App.md +2 -2
  5. data/docs/AppApi.md +48 -48
  6. data/docs/AppSettings.md +2 -2
  7. data/docs/AppUser.md +6 -6
  8. data/docs/AppUserApi.md +78 -78
  9. data/docs/AppUserBusinessSystemsResponse.md +1 -1
  10. data/docs/AppUserLink.md +2 -2
  11. data/docs/AppUserPreCreate.md +3 -3
  12. data/docs/AppUserResponse.md +1 -1
  13. data/docs/AppUserUpdate.md +2 -2
  14. data/docs/AttachmentRemove.md +1 -1
  15. data/docs/AttachmentResponse.md +2 -2
  16. data/docs/AttachmentsApi.md +16 -16
  17. data/docs/AuthCodeResponse.md +1 -1
  18. data/docs/BusinessSystemItem.md +4 -4
  19. data/docs/ChannelEntityItem.md +3 -3
  20. data/docs/Client.md +4 -4
  21. data/docs/ClientInfo.md +8 -8
  22. data/docs/Conversation.md +2 -2
  23. data/docs/ConversationApi.md +42 -42
  24. data/docs/Destination.md +2 -2
  25. data/docs/DisplaySettings.md +1 -1
  26. data/docs/GetMessagesResponse.md +1 -1
  27. data/docs/Integration.md +44 -44
  28. data/docs/IntegrationApi.md +66 -66
  29. data/docs/IntegrationCreate.md +36 -36
  30. data/docs/IntegrationProfileUpdate.md +1 -1
  31. data/docs/IntegrationUpdate.md +16 -16
  32. data/docs/LinkRequestResponse.md +1 -1
  33. data/docs/LinkRequestResponseLinkRequests.md +1 -1
  34. data/docs/ListAppsResponse.md +1 -1
  35. data/docs/ListServiceAccountsResponse.md +2 -2
  36. data/docs/ListTemplatesResponse.md +1 -1
  37. data/docs/MenuApi.md +14 -14
  38. data/docs/Message.md +6 -6
  39. data/docs/MessageItem.md +2 -2
  40. data/docs/MessageOverride.md +8 -0
  41. data/docs/MessageOverrideWhatsapp.md +8 -0
  42. data/docs/MessagePost.md +4 -3
  43. data/docs/MessageResponse.md +1 -1
  44. data/docs/SecretKey.md +1 -1
  45. data/docs/ServiceAccount.md +1 -1
  46. data/docs/ServiceAccountApi.md +46 -46
  47. data/docs/ServiceAccountResponse.md +1 -1
  48. data/docs/Template.md +1 -1
  49. data/docs/TemplateApi.md +30 -30
  50. data/docs/TypingActivityTrigger.md +1 -1
  51. data/docs/Webhook.md +1 -1
  52. data/docs/WebhookApi.md +30 -30
  53. data/lib/smooch-api.rb +3 -1
  54. data/lib/smooch-api/api/app_api.rb +112 -112
  55. data/lib/smooch-api/api/app_user_api.rb +190 -190
  56. data/lib/smooch-api/api/attachments_api.rb +34 -34
  57. data/lib/smooch-api/api/conversation_api.rb +102 -102
  58. data/lib/smooch-api/api/integration_api.rb +161 -161
  59. data/lib/smooch-api/api/menu_api.rb +34 -34
  60. data/lib/smooch-api/api/service_account_api.rb +109 -109
  61. data/lib/smooch-api/api/template_api.rb +73 -73
  62. data/lib/smooch-api/api/webhook_api.rb +73 -73
  63. data/lib/smooch-api/api_client.rb +1 -1
  64. data/lib/smooch-api/api_error.rb +1 -1
  65. data/lib/smooch-api/configuration.rb +1 -1
  66. data/lib/smooch-api/models/action.rb +12 -12
  67. data/lib/smooch-api/models/app.rb +18 -18
  68. data/lib/smooch-api/models/app_create.rb +1 -1
  69. data/lib/smooch-api/models/app_response.rb +1 -1
  70. data/lib/smooch-api/models/app_settings.rb +12 -12
  71. data/lib/smooch-api/models/app_update.rb +1 -1
  72. data/lib/smooch-api/models/app_user.rb +38 -38
  73. data/lib/smooch-api/models/app_user_business_systems_response.rb +10 -10
  74. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  75. data/lib/smooch-api/models/app_user_link.rb +12 -12
  76. data/lib/smooch-api/models/app_user_pre_create.rb +20 -20
  77. data/lib/smooch-api/models/app_user_response.rb +10 -10
  78. data/lib/smooch-api/models/app_user_update.rb +12 -12
  79. data/lib/smooch-api/models/attachment_remove.rb +10 -10
  80. data/lib/smooch-api/models/attachment_response.rb +18 -18
  81. data/lib/smooch-api/models/auth_code_response.rb +10 -10
  82. data/lib/smooch-api/models/business_system_item.rb +22 -22
  83. data/lib/smooch-api/models/channel_entity_item.rb +17 -17
  84. data/lib/smooch-api/models/client.rb +22 -22
  85. data/lib/smooch-api/models/client_info.rb +42 -42
  86. data/lib/smooch-api/models/confirmation.rb +1 -1
  87. data/lib/smooch-api/models/conversation.rb +18 -18
  88. data/lib/smooch-api/models/destination.rb +18 -18
  89. data/lib/smooch-api/models/display_settings.rb +7 -7
  90. data/lib/smooch-api/models/get_messages_response.rb +7 -7
  91. data/lib/smooch-api/models/integration.rb +225 -225
  92. data/lib/smooch-api/models/integration_create.rb +182 -182
  93. data/lib/smooch-api/models/integration_profile_update.rb +7 -7
  94. data/lib/smooch-api/models/integration_response.rb +1 -1
  95. data/lib/smooch-api/models/integration_update.rb +82 -82
  96. data/lib/smooch-api/models/jwt_response.rb +1 -1
  97. data/lib/smooch-api/models/link_request_response.rb +7 -7
  98. data/lib/smooch-api/models/link_request_response_link_requests.rb +10 -10
  99. data/lib/smooch-api/models/list_apps_response.rb +7 -7
  100. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  101. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  102. data/lib/smooch-api/models/list_service_accounts_response.rb +12 -12
  103. data/lib/smooch-api/models/list_templates_response.rb +7 -7
  104. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  105. data/lib/smooch-api/models/menu.rb +1 -1
  106. data/lib/smooch-api/models/menu_item.rb +1 -1
  107. data/lib/smooch-api/models/menu_response.rb +1 -1
  108. data/lib/smooch-api/models/message.rb +41 -41
  109. data/lib/smooch-api/models/message_item.rb +12 -12
  110. data/lib/smooch-api/models/message_override.rb +188 -0
  111. data/lib/smooch-api/models/message_override_whatsapp.rb +189 -0
  112. data/lib/smooch-api/models/message_post.rb +30 -20
  113. data/lib/smooch-api/models/message_response.rb +7 -7
  114. data/lib/smooch-api/models/secret_key.rb +10 -10
  115. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  116. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  117. data/lib/smooch-api/models/service_account.rb +10 -10
  118. data/lib/smooch-api/models/service_account_create.rb +1 -1
  119. data/lib/smooch-api/models/service_account_response.rb +7 -7
  120. data/lib/smooch-api/models/service_account_update.rb +1 -1
  121. data/lib/smooch-api/models/source.rb +1 -1
  122. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  123. data/lib/smooch-api/models/template.rb +10 -10
  124. data/lib/smooch-api/models/template_create.rb +1 -1
  125. data/lib/smooch-api/models/template_response.rb +1 -1
  126. data/lib/smooch-api/models/template_update.rb +1 -1
  127. data/lib/smooch-api/models/typing_activity_trigger.rb +7 -7
  128. data/lib/smooch-api/models/webhook.rb +10 -10
  129. data/lib/smooch-api/models/webhook_create.rb +1 -1
  130. data/lib/smooch-api/models/webhook_response.rb +1 -1
  131. data/lib/smooch-api/models/webhook_update.rb +1 -1
  132. data/lib/smooch-api/version.rb +2 -2
  133. data/smooch-api.gemspec +1 -1
  134. data/spec/api_client_spec.rb +1 -1
  135. data/spec/configuration_spec.rb +1 -1
  136. data/spec/spec_helper.rb +1 -1
  137. 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.1
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,7 +19,7 @@ module SmoochApi
19
19
  attr_accessor :apps
20
20
 
21
21
  # Flag indicating if there are more apps that are not present in the response.
22
- attr_accessor :has_more
22
+ attr_accessor :hasMore
23
23
 
24
24
  # The number of app records skipped in the returned list.
25
25
  attr_accessor :offset
@@ -29,7 +29,7 @@ module SmoochApi
29
29
  def self.attribute_map
30
30
  {
31
31
  :'apps' => :'apps',
32
- :'has_more' => :'hasMore',
32
+ :'hasMore' => :'hasMore',
33
33
  :'offset' => :'offset'
34
34
  }
35
35
  end
@@ -38,7 +38,7 @@ module SmoochApi
38
38
  def self.swagger_types
39
39
  {
40
40
  :'apps' => :'Array<App>',
41
- :'has_more' => :'BOOLEAN',
41
+ :'hasMore' => :'BOOLEAN',
42
42
  :'offset' => :'Integer'
43
43
  }
44
44
  end
@@ -58,7 +58,7 @@ module SmoochApi
58
58
  end
59
59
 
60
60
  if attributes.has_key?(:'hasMore')
61
- self.has_more = attributes[:'hasMore']
61
+ self.hasMore = attributes[:'hasMore']
62
62
  end
63
63
 
64
64
  if attributes.has_key?(:'offset')
@@ -86,7 +86,7 @@ module SmoochApi
86
86
  return true if self.equal?(o)
87
87
  self.class == o.class &&
88
88
  apps == o.apps &&
89
- has_more == o.has_more &&
89
+ hasMore == o.hasMore &&
90
90
  offset == o.offset
91
91
  end
92
92
 
@@ -99,7 +99,7 @@ module SmoochApi
99
99
  # Calculates hash code according to all attributes.
100
100
  # @return [Fixnum] Hash code
101
101
  def hash
102
- [apps, has_more, offset].hash
102
+ [apps, hasMore, offset].hash
103
103
  end
104
104
 
105
105
  # 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.1
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.1
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.1
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 ListServiceAccountsResponse
18
18
  # The list of service accounts.
19
- attr_accessor :service_accounts
19
+ attr_accessor :serviceAccounts
20
20
 
21
21
  # Flag indicating if there are more service accounts that are not present in the response.
22
- attr_accessor :has_more
22
+ attr_accessor :hasMore
23
23
 
24
24
  # The number of service account records skipped in the returned list.
25
25
  attr_accessor :offset
@@ -28,8 +28,8 @@ module SmoochApi
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'service_accounts' => :'serviceAccounts',
32
- :'has_more' => :'hasMore',
31
+ :'serviceAccounts' => :'serviceAccounts',
32
+ :'hasMore' => :'hasMore',
33
33
  :'offset' => :'offset'
34
34
  }
35
35
  end
@@ -37,8 +37,8 @@ module SmoochApi
37
37
  # Attribute type mapping.
38
38
  def self.swagger_types
39
39
  {
40
- :'service_accounts' => :'Array<ServiceAccount>',
41
- :'has_more' => :'BOOLEAN',
40
+ :'serviceAccounts' => :'Array<ServiceAccount>',
41
+ :'hasMore' => :'BOOLEAN',
42
42
  :'offset' => :'Integer'
43
43
  }
44
44
  end
@@ -53,12 +53,12 @@ module SmoochApi
53
53
 
54
54
  if attributes.has_key?(:'serviceAccounts')
55
55
  if (value = attributes[:'serviceAccounts']).is_a?(Array)
56
- self.service_accounts = value
56
+ self.serviceAccounts = value
57
57
  end
58
58
  end
59
59
 
60
60
  if attributes.has_key?(:'hasMore')
61
- self.has_more = attributes[:'hasMore']
61
+ self.hasMore = attributes[:'hasMore']
62
62
  end
63
63
 
64
64
  if attributes.has_key?(:'offset')
@@ -85,8 +85,8 @@ module SmoochApi
85
85
  def ==(o)
86
86
  return true if self.equal?(o)
87
87
  self.class == o.class &&
88
- service_accounts == o.service_accounts &&
89
- has_more == o.has_more &&
88
+ serviceAccounts == o.serviceAccounts &&
89
+ hasMore == o.hasMore &&
90
90
  offset == o.offset
91
91
  end
92
92
 
@@ -99,7 +99,7 @@ module SmoochApi
99
99
  # Calculates hash code according to all attributes.
100
100
  # @return [Fixnum] Hash code
101
101
  def hash
102
- [service_accounts, has_more, offset].hash
102
+ [serviceAccounts, hasMore, offset].hash
103
103
  end
104
104
 
105
105
  # 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.1
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,7 +19,7 @@ module SmoochApi
19
19
  attr_accessor :templates
20
20
 
21
21
  # Flag indicating if there are more templates that are not present in the response.
22
- attr_accessor :has_more
22
+ attr_accessor :hasMore
23
23
 
24
24
  # The number of template records skipped in the returned list.
25
25
  attr_accessor :offset
@@ -29,7 +29,7 @@ module SmoochApi
29
29
  def self.attribute_map
30
30
  {
31
31
  :'templates' => :'templates',
32
- :'has_more' => :'hasMore',
32
+ :'hasMore' => :'hasMore',
33
33
  :'offset' => :'offset'
34
34
  }
35
35
  end
@@ -38,7 +38,7 @@ module SmoochApi
38
38
  def self.swagger_types
39
39
  {
40
40
  :'templates' => :'Array<Template>',
41
- :'has_more' => :'BOOLEAN',
41
+ :'hasMore' => :'BOOLEAN',
42
42
  :'offset' => :'Integer'
43
43
  }
44
44
  end
@@ -58,7 +58,7 @@ module SmoochApi
58
58
  end
59
59
 
60
60
  if attributes.has_key?(:'hasMore')
61
- self.has_more = attributes[:'hasMore']
61
+ self.hasMore = attributes[:'hasMore']
62
62
  end
63
63
 
64
64
  if attributes.has_key?(:'offset')
@@ -91,7 +91,7 @@ module SmoochApi
91
91
  return true if self.equal?(o)
92
92
  self.class == o.class &&
93
93
  templates == o.templates &&
94
- has_more == o.has_more &&
94
+ hasMore == o.hasMore &&
95
95
  offset == o.offset
96
96
  end
97
97
 
@@ -104,7 +104,7 @@ module SmoochApi
104
104
  # Calculates hash code according to all attributes.
105
105
  # @return [Fixnum] Hash code
106
106
  def hash
107
- [templates, has_more, offset].hash
107
+ [templates, hasMore, offset].hash
108
108
  end
109
109
 
110
110
  # 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.1
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.1
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.1
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.1
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.1
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 Message
18
18
  # The message ID, generated automatically.
19
- attr_accessor :_id
19
+ attr_accessor :id
20
20
 
21
21
  # The ID of the message's author.
22
- attr_accessor :author_id
22
+ attr_accessor :authorId
23
23
 
24
24
  # The role of the individual posting the message. Can be either *appUser* or *appMaker*.
25
25
  attr_accessor :role
@@ -40,16 +40,16 @@ module SmoochApi
40
40
  attr_accessor :email
41
41
 
42
42
  # The URL of the desired message avatar image.
43
- attr_accessor :avatar_url
43
+ attr_accessor :avatarUrl
44
44
 
45
45
  # The unix timestamp of the moment the message was received.
46
46
  attr_accessor :received
47
47
 
48
48
  # The mediaUrl for the message. Required for image/file messages.
49
- attr_accessor :media_url
49
+ attr_accessor :mediaUrl
50
50
 
51
51
  # The mediaType for the message. Required for image/file messages.
52
- attr_accessor :media_type
52
+ attr_accessor :mediaType
53
53
 
54
54
  # Flat JSON object containing any custom properties associated with the message.
55
55
  attr_accessor :metadata
@@ -64,52 +64,52 @@ module SmoochApi
64
64
  attr_accessor :payload
65
65
 
66
66
  # Settings to adjust the carousel layout. See [Display Settings](https://docs.smooch.io/rest/#display-settings).
67
- attr_accessor :display_settings
67
+ attr_accessor :displaySettings
68
68
 
69
69
 
70
70
  # Attribute mapping from ruby-style variable name to JSON key.
71
71
  def self.attribute_map
72
72
  {
73
- :'_id' => :'_id',
74
- :'author_id' => :'authorId',
73
+ :'id' => :'_id',
74
+ :'authorId' => :'authorId',
75
75
  :'role' => :'role',
76
76
  :'type' => :'type',
77
77
  :'source' => :'source',
78
78
  :'name' => :'name',
79
79
  :'text' => :'text',
80
80
  :'email' => :'email',
81
- :'avatar_url' => :'avatarUrl',
81
+ :'avatarUrl' => :'avatarUrl',
82
82
  :'received' => :'received',
83
- :'media_url' => :'mediaUrl',
84
- :'media_type' => :'mediaType',
83
+ :'mediaUrl' => :'mediaUrl',
84
+ :'mediaType' => :'mediaType',
85
85
  :'metadata' => :'metadata',
86
86
  :'items' => :'items',
87
87
  :'actions' => :'actions',
88
88
  :'payload' => :'payload',
89
- :'display_settings' => :'displaySettings'
89
+ :'displaySettings' => :'displaySettings'
90
90
  }
91
91
  end
92
92
 
93
93
  # Attribute type mapping.
94
94
  def self.swagger_types
95
95
  {
96
- :'_id' => :'String',
97
- :'author_id' => :'String',
96
+ :'id' => :'String',
97
+ :'authorId' => :'String',
98
98
  :'role' => :'String',
99
99
  :'type' => :'String',
100
100
  :'source' => :'Source',
101
101
  :'name' => :'String',
102
102
  :'text' => :'String',
103
103
  :'email' => :'String',
104
- :'avatar_url' => :'String',
104
+ :'avatarUrl' => :'String',
105
105
  :'received' => :'Float',
106
- :'media_url' => :'String',
107
- :'media_type' => :'String',
106
+ :'mediaUrl' => :'String',
107
+ :'mediaType' => :'String',
108
108
  :'metadata' => :'Object',
109
109
  :'items' => :'Array<MessageItem>',
110
110
  :'actions' => :'Array<Action>',
111
111
  :'payload' => :'String',
112
- :'display_settings' => :'DisplaySettings'
112
+ :'displaySettings' => :'DisplaySettings'
113
113
  }
114
114
  end
115
115
 
@@ -122,11 +122,11 @@ module SmoochApi
122
122
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
123
123
 
124
124
  if attributes.has_key?(:'_id')
125
- self._id = attributes[:'_id']
125
+ self.id = attributes[:'_id']
126
126
  end
127
127
 
128
128
  if attributes.has_key?(:'authorId')
129
- self.author_id = attributes[:'authorId']
129
+ self.authorId = attributes[:'authorId']
130
130
  end
131
131
 
132
132
  if attributes.has_key?(:'role')
@@ -154,7 +154,7 @@ module SmoochApi
154
154
  end
155
155
 
156
156
  if attributes.has_key?(:'avatarUrl')
157
- self.avatar_url = attributes[:'avatarUrl']
157
+ self.avatarUrl = attributes[:'avatarUrl']
158
158
  end
159
159
 
160
160
  if attributes.has_key?(:'received')
@@ -162,11 +162,11 @@ module SmoochApi
162
162
  end
163
163
 
164
164
  if attributes.has_key?(:'mediaUrl')
165
- self.media_url = attributes[:'mediaUrl']
165
+ self.mediaUrl = attributes[:'mediaUrl']
166
166
  end
167
167
 
168
168
  if attributes.has_key?(:'mediaType')
169
- self.media_type = attributes[:'mediaType']
169
+ self.mediaType = attributes[:'mediaType']
170
170
  end
171
171
 
172
172
  if attributes.has_key?(:'metadata')
@@ -190,7 +190,7 @@ module SmoochApi
190
190
  end
191
191
 
192
192
  if attributes.has_key?(:'displaySettings')
193
- self.display_settings = attributes[:'displaySettings']
193
+ self.displaySettings = attributes[:'displaySettings']
194
194
  end
195
195
 
196
196
  end
@@ -199,12 +199,12 @@ module SmoochApi
199
199
  # @return Array for valid properies with the reasons
200
200
  def list_invalid_properties
201
201
  invalid_properties = Array.new
202
- if @_id.nil?
203
- invalid_properties.push("invalid value for '_id', _id cannot be nil.")
202
+ if @id.nil?
203
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
204
204
  end
205
205
 
206
- if @author_id.nil?
207
- invalid_properties.push("invalid value for 'author_id', author_id cannot be nil.")
206
+ if @authorId.nil?
207
+ invalid_properties.push("invalid value for 'authorId', authorId cannot be nil.")
208
208
  end
209
209
 
210
210
  if @role.nil?
@@ -223,8 +223,8 @@ module SmoochApi
223
223
  invalid_properties.push("invalid value for 'text', text cannot be nil.")
224
224
  end
225
225
 
226
- if @avatar_url.nil?
227
- invalid_properties.push("invalid value for 'avatar_url', avatar_url cannot be nil.")
226
+ if @avatarUrl.nil?
227
+ invalid_properties.push("invalid value for 'avatarUrl', avatarUrl cannot be nil.")
228
228
  end
229
229
 
230
230
  if @received.nil?
@@ -237,13 +237,13 @@ module SmoochApi
237
237
  # Check to see if the all the properties in the model are valid
238
238
  # @return true if the model is valid
239
239
  def valid?
240
- return false if @_id.nil?
241
- return false if @author_id.nil?
240
+ return false if @id.nil?
241
+ return false if @authorId.nil?
242
242
  return false if @role.nil?
243
243
  return false if @type.nil?
244
244
  return false if @name.nil?
245
245
  return false if @text.nil?
246
- return false if @avatar_url.nil?
246
+ return false if @avatarUrl.nil?
247
247
  return false if @received.nil?
248
248
  return true
249
249
  end
@@ -253,23 +253,23 @@ module SmoochApi
253
253
  def ==(o)
254
254
  return true if self.equal?(o)
255
255
  self.class == o.class &&
256
- _id == o._id &&
257
- author_id == o.author_id &&
256
+ id == o.id &&
257
+ authorId == o.authorId &&
258
258
  role == o.role &&
259
259
  type == o.type &&
260
260
  source == o.source &&
261
261
  name == o.name &&
262
262
  text == o.text &&
263
263
  email == o.email &&
264
- avatar_url == o.avatar_url &&
264
+ avatarUrl == o.avatarUrl &&
265
265
  received == o.received &&
266
- media_url == o.media_url &&
267
- media_type == o.media_type &&
266
+ mediaUrl == o.mediaUrl &&
267
+ mediaType == o.mediaType &&
268
268
  metadata == o.metadata &&
269
269
  items == o.items &&
270
270
  actions == o.actions &&
271
271
  payload == o.payload &&
272
- display_settings == o.display_settings
272
+ displaySettings == o.displaySettings
273
273
  end
274
274
 
275
275
  # @see the `==` method
@@ -281,7 +281,7 @@ module SmoochApi
281
281
  # Calculates hash code according to all attributes.
282
282
  # @return [Fixnum] Hash code
283
283
  def hash
284
- [_id, author_id, role, type, source, name, text, email, avatar_url, received, media_url, media_type, metadata, items, actions, payload, display_settings].hash
284
+ [id, authorId, role, type, source, name, text, email, avatarUrl, received, mediaUrl, mediaType, metadata, items, actions, payload, displaySettings].hash
285
285
  end
286
286
 
287
287
  # Builds the object from hash