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
@@ -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
@@ -37,7 +37,7 @@ module SmoochApi
37
37
  attr_accessor :default
38
38
 
39
39
  # An icon to render next to the reply option (Facebook Messenger and Web Messenger only).
40
- attr_accessor :icon_url
40
+ attr_accessor :iconUrl
41
41
 
42
42
  # The action URI. This is the link that will be used in the clients when clicking the button. Required for *link* and *webview* actions.
43
43
  attr_accessor :uri
@@ -49,7 +49,7 @@ module SmoochApi
49
49
  attr_accessor :size
50
50
 
51
51
  # Extra options to pass directly to the channel API. See [Extra Channel Options](https://docs.smooch.io/rest#extra-channel-options-schema)
52
- attr_accessor :extra_channel_options
52
+ attr_accessor :extraChannelOptions
53
53
 
54
54
 
55
55
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -62,11 +62,11 @@ module SmoochApi
62
62
  :'amount' => :'amount',
63
63
  :'currency' => :'currency',
64
64
  :'default' => :'default',
65
- :'icon_url' => :'iconUrl',
65
+ :'iconUrl' => :'iconUrl',
66
66
  :'uri' => :'uri',
67
67
  :'fallback' => :'fallback',
68
68
  :'size' => :'size',
69
- :'extra_channel_options' => :'extraChannelOptions'
69
+ :'extraChannelOptions' => :'extraChannelOptions'
70
70
  }
71
71
  end
72
72
 
@@ -80,11 +80,11 @@ module SmoochApi
80
80
  :'amount' => :'Integer',
81
81
  :'currency' => :'String',
82
82
  :'default' => :'BOOLEAN',
83
- :'icon_url' => :'String',
83
+ :'iconUrl' => :'String',
84
84
  :'uri' => :'String',
85
85
  :'fallback' => :'String',
86
86
  :'size' => :'String',
87
- :'extra_channel_options' => :'Object'
87
+ :'extraChannelOptions' => :'Object'
88
88
  }
89
89
  end
90
90
 
@@ -125,7 +125,7 @@ module SmoochApi
125
125
  end
126
126
 
127
127
  if attributes.has_key?(:'iconUrl')
128
- self.icon_url = attributes[:'iconUrl']
128
+ self.iconUrl = attributes[:'iconUrl']
129
129
  end
130
130
 
131
131
  if attributes.has_key?(:'uri')
@@ -141,7 +141,7 @@ module SmoochApi
141
141
  end
142
142
 
143
143
  if attributes.has_key?(:'extraChannelOptions')
144
- self.extra_channel_options = attributes[:'extraChannelOptions']
144
+ self.extraChannelOptions = attributes[:'extraChannelOptions']
145
145
  end
146
146
 
147
147
  end
@@ -181,11 +181,11 @@ module SmoochApi
181
181
  amount == o.amount &&
182
182
  currency == o.currency &&
183
183
  default == o.default &&
184
- icon_url == o.icon_url &&
184
+ iconUrl == o.iconUrl &&
185
185
  uri == o.uri &&
186
186
  fallback == o.fallback &&
187
187
  size == o.size &&
188
- extra_channel_options == o.extra_channel_options
188
+ extraChannelOptions == o.extraChannelOptions
189
189
  end
190
190
 
191
191
  # @see the `==` method
@@ -197,7 +197,7 @@ module SmoochApi
197
197
  # Calculates hash code according to all attributes.
198
198
  # @return [Fixnum] Hash code
199
199
  def hash
200
- [type, text, payload, metadata, amount, currency, default, icon_url, uri, fallback, size, extra_channel_options].hash
200
+ [type, text, payload, metadata, amount, currency, default, iconUrl, uri, fallback, size, extraChannelOptions].hash
201
201
  end
202
202
 
203
203
  # 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
@@ -16,10 +16,10 @@ module SmoochApi
16
16
 
17
17
  class App
18
18
  # The app's ID.
19
- attr_accessor :_id
19
+ attr_accessor :id
20
20
 
21
21
  # The appToken, used to initialize the Web, iOS and Android clients and to make calls to the app user facing API.
22
- attr_accessor :app_token
22
+ attr_accessor :appToken
23
23
 
24
24
  # The app's name.
25
25
  attr_accessor :name
@@ -33,8 +33,8 @@ module SmoochApi
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'_id' => :'_id',
37
- :'app_token' => :'appToken',
36
+ :'id' => :'_id',
37
+ :'appToken' => :'appToken',
38
38
  :'name' => :'name',
39
39
  :'settings' => :'settings',
40
40
  :'metadata' => :'metadata'
@@ -44,8 +44,8 @@ module SmoochApi
44
44
  # Attribute type mapping.
45
45
  def self.swagger_types
46
46
  {
47
- :'_id' => :'String',
48
- :'app_token' => :'String',
47
+ :'id' => :'String',
48
+ :'appToken' => :'String',
49
49
  :'name' => :'String',
50
50
  :'settings' => :'AppSettings',
51
51
  :'metadata' => :'Object'
@@ -61,11 +61,11 @@ module SmoochApi
61
61
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
62
62
 
63
63
  if attributes.has_key?(:'_id')
64
- self._id = attributes[:'_id']
64
+ self.id = attributes[:'_id']
65
65
  end
66
66
 
67
67
  if attributes.has_key?(:'appToken')
68
- self.app_token = attributes[:'appToken']
68
+ self.appToken = attributes[:'appToken']
69
69
  end
70
70
 
71
71
  if attributes.has_key?(:'name')
@@ -86,12 +86,12 @@ module SmoochApi
86
86
  # @return Array for valid properies with the reasons
87
87
  def list_invalid_properties
88
88
  invalid_properties = Array.new
89
- if @_id.nil?
90
- invalid_properties.push("invalid value for '_id', _id cannot be nil.")
89
+ if @id.nil?
90
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
91
91
  end
92
92
 
93
- if @app_token.nil?
94
- invalid_properties.push("invalid value for 'app_token', app_token cannot be nil.")
93
+ if @appToken.nil?
94
+ invalid_properties.push("invalid value for 'appToken', appToken cannot be nil.")
95
95
  end
96
96
 
97
97
  if @name.nil?
@@ -104,8 +104,8 @@ module SmoochApi
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- return false if @_id.nil?
108
- return false if @app_token.nil?
107
+ return false if @id.nil?
108
+ return false if @appToken.nil?
109
109
  return false if @name.nil?
110
110
  return true
111
111
  end
@@ -115,8 +115,8 @@ module SmoochApi
115
115
  def ==(o)
116
116
  return true if self.equal?(o)
117
117
  self.class == o.class &&
118
- _id == o._id &&
119
- app_token == o.app_token &&
118
+ id == o.id &&
119
+ appToken == o.appToken &&
120
120
  name == o.name &&
121
121
  settings == o.settings &&
122
122
  metadata == o.metadata
@@ -131,7 +131,7 @@ module SmoochApi
131
131
  # Calculates hash code according to all attributes.
132
132
  # @return [Fixnum] Hash code
133
133
  def hash
134
- [_id, app_token, name, settings, metadata].hash
134
+ [id, appToken, name, settings, metadata].hash
135
135
  end
136
136
 
137
137
  # 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,25 +16,25 @@ module SmoochApi
16
16
  # Customizable app settings.
17
17
  class AppSettings
18
18
  # Flag specifying whether credit card numbers will be automatically masked if sent through Smooch.
19
- attr_accessor :mask_credit_card_numbers
19
+ attr_accessor :maskCreditCardNumbers
20
20
 
21
21
  # Flag specifying whether animal names should be used for anonymous users.
22
- attr_accessor :use_animal_names
22
+ attr_accessor :useAnimalNames
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
- :'mask_credit_card_numbers' => :'maskCreditCardNumbers',
29
- :'use_animal_names' => :'useAnimalNames'
28
+ :'maskCreditCardNumbers' => :'maskCreditCardNumbers',
29
+ :'useAnimalNames' => :'useAnimalNames'
30
30
  }
31
31
  end
32
32
 
33
33
  # Attribute type mapping.
34
34
  def self.swagger_types
35
35
  {
36
- :'mask_credit_card_numbers' => :'BOOLEAN',
37
- :'use_animal_names' => :'BOOLEAN'
36
+ :'maskCreditCardNumbers' => :'BOOLEAN',
37
+ :'useAnimalNames' => :'BOOLEAN'
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?(:'maskCreditCardNumbers')
50
- self.mask_credit_card_numbers = attributes[:'maskCreditCardNumbers']
50
+ self.maskCreditCardNumbers = attributes[:'maskCreditCardNumbers']
51
51
  end
52
52
 
53
53
  if attributes.has_key?(:'useAnimalNames')
54
- self.use_animal_names = attributes[:'useAnimalNames']
54
+ self.useAnimalNames = attributes[:'useAnimalNames']
55
55
  end
56
56
 
57
57
  end
@@ -74,8 +74,8 @@ module SmoochApi
74
74
  def ==(o)
75
75
  return true if self.equal?(o)
76
76
  self.class == o.class &&
77
- mask_credit_card_numbers == o.mask_credit_card_numbers &&
78
- use_animal_names == o.use_animal_names
77
+ maskCreditCardNumbers == o.maskCreditCardNumbers &&
78
+ useAnimalNames == o.useAnimalNames
79
79
  end
80
80
 
81
81
  # @see the `==` method
@@ -87,7 +87,7 @@ module SmoochApi
87
87
  # Calculates hash code according to all attributes.
88
88
  # @return [Fixnum] Hash code
89
89
  def hash
90
- [mask_credit_card_numbers, use_animal_names].hash
90
+ [maskCreditCardNumbers, useAnimalNames].hash
91
91
  end
92
92
 
93
93
  # 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
@@ -16,13 +16,13 @@ module SmoochApi
16
16
 
17
17
  class AppUser
18
18
  # The app user's ID, generated automatically.
19
- attr_accessor :_id
19
+ attr_accessor :id
20
20
 
21
21
  # The app user's userId. This ID is specified by the appMaker.
22
- attr_accessor :user_id
22
+ attr_accessor :userId
23
23
 
24
24
  # The app user's given name.
25
- attr_accessor :given_name
25
+ attr_accessor :givenName
26
26
 
27
27
  # The app user's surname.
28
28
  attr_accessor :surname
@@ -31,50 +31,50 @@ module SmoochApi
31
31
  attr_accessor :email
32
32
 
33
33
  # A datetime string with the format *yyyy-mm-ddThh:mm:ssZ* representing the moment an appUser was created.
34
- attr_accessor :signed_up_at
34
+ attr_accessor :signedUpAt
35
35
 
36
36
  # Custom properties for the app user.
37
37
  attr_accessor :properties
38
38
 
39
39
  # Flag indicating if the conversation has started for the app user.
40
- attr_accessor :conversation_started
40
+ attr_accessor :conversationStarted
41
41
 
42
42
  # List of clients associated with the app user.
43
43
  attr_accessor :clients
44
44
 
45
45
  # As clients, but containing linked clients which have not been confirmed yet (i.e. Twilio SMS).
46
- attr_accessor :pending_clients
46
+ attr_accessor :pendingClients
47
47
 
48
48
 
49
49
  # Attribute mapping from ruby-style variable name to JSON key.
50
50
  def self.attribute_map
51
51
  {
52
- :'_id' => :'_id',
53
- :'user_id' => :'userId',
54
- :'given_name' => :'givenName',
52
+ :'id' => :'_id',
53
+ :'userId' => :'userId',
54
+ :'givenName' => :'givenName',
55
55
  :'surname' => :'surname',
56
56
  :'email' => :'email',
57
- :'signed_up_at' => :'signedUpAt',
57
+ :'signedUpAt' => :'signedUpAt',
58
58
  :'properties' => :'properties',
59
- :'conversation_started' => :'conversationStarted',
59
+ :'conversationStarted' => :'conversationStarted',
60
60
  :'clients' => :'clients',
61
- :'pending_clients' => :'pendingClients'
61
+ :'pendingClients' => :'pendingClients'
62
62
  }
63
63
  end
64
64
 
65
65
  # Attribute type mapping.
66
66
  def self.swagger_types
67
67
  {
68
- :'_id' => :'String',
69
- :'user_id' => :'String',
70
- :'given_name' => :'String',
68
+ :'id' => :'String',
69
+ :'userId' => :'String',
70
+ :'givenName' => :'String',
71
71
  :'surname' => :'String',
72
72
  :'email' => :'String',
73
- :'signed_up_at' => :'String',
73
+ :'signedUpAt' => :'String',
74
74
  :'properties' => :'Object',
75
- :'conversation_started' => :'BOOLEAN',
75
+ :'conversationStarted' => :'BOOLEAN',
76
76
  :'clients' => :'Array<Client>',
77
- :'pending_clients' => :'Array<Client>'
77
+ :'pendingClients' => :'Array<Client>'
78
78
  }
79
79
  end
80
80
 
@@ -87,15 +87,15 @@ module SmoochApi
87
87
  attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
88
88
 
89
89
  if attributes.has_key?(:'_id')
90
- self._id = attributes[:'_id']
90
+ self.id = attributes[:'_id']
91
91
  end
92
92
 
93
93
  if attributes.has_key?(:'userId')
94
- self.user_id = attributes[:'userId']
94
+ self.userId = attributes[:'userId']
95
95
  end
96
96
 
97
97
  if attributes.has_key?(:'givenName')
98
- self.given_name = attributes[:'givenName']
98
+ self.givenName = attributes[:'givenName']
99
99
  end
100
100
 
101
101
  if attributes.has_key?(:'surname')
@@ -107,7 +107,7 @@ module SmoochApi
107
107
  end
108
108
 
109
109
  if attributes.has_key?(:'signedUpAt')
110
- self.signed_up_at = attributes[:'signedUpAt']
110
+ self.signedUpAt = attributes[:'signedUpAt']
111
111
  end
112
112
 
113
113
  if attributes.has_key?(:'properties')
@@ -115,7 +115,7 @@ module SmoochApi
115
115
  end
116
116
 
117
117
  if attributes.has_key?(:'conversationStarted')
118
- self.conversation_started = attributes[:'conversationStarted']
118
+ self.conversationStarted = attributes[:'conversationStarted']
119
119
  end
120
120
 
121
121
  if attributes.has_key?(:'clients')
@@ -126,7 +126,7 @@ module SmoochApi
126
126
 
127
127
  if attributes.has_key?(:'pendingClients')
128
128
  if (value = attributes[:'pendingClients']).is_a?(Array)
129
- self.pending_clients = value
129
+ self.pendingClients = value
130
130
  end
131
131
  end
132
132
 
@@ -136,16 +136,16 @@ module SmoochApi
136
136
  # @return Array for valid properies with the reasons
137
137
  def list_invalid_properties
138
138
  invalid_properties = Array.new
139
- if @_id.nil?
140
- invalid_properties.push("invalid value for '_id', _id cannot be nil.")
139
+ if @id.nil?
140
+ invalid_properties.push("invalid value for 'id', id cannot be nil.")
141
141
  end
142
142
 
143
143
  if @properties.nil?
144
144
  invalid_properties.push("invalid value for 'properties', properties cannot be nil.")
145
145
  end
146
146
 
147
- if @conversation_started.nil?
148
- invalid_properties.push("invalid value for 'conversation_started', conversation_started cannot be nil.")
147
+ if @conversationStarted.nil?
148
+ invalid_properties.push("invalid value for 'conversationStarted', conversationStarted cannot be nil.")
149
149
  end
150
150
 
151
151
  return invalid_properties
@@ -154,9 +154,9 @@ module SmoochApi
154
154
  # Check to see if the all the properties in the model are valid
155
155
  # @return true if the model is valid
156
156
  def valid?
157
- return false if @_id.nil?
157
+ return false if @id.nil?
158
158
  return false if @properties.nil?
159
- return false if @conversation_started.nil?
159
+ return false if @conversationStarted.nil?
160
160
  return true
161
161
  end
162
162
 
@@ -165,16 +165,16 @@ module SmoochApi
165
165
  def ==(o)
166
166
  return true if self.equal?(o)
167
167
  self.class == o.class &&
168
- _id == o._id &&
169
- user_id == o.user_id &&
170
- given_name == o.given_name &&
168
+ id == o.id &&
169
+ userId == o.userId &&
170
+ givenName == o.givenName &&
171
171
  surname == o.surname &&
172
172
  email == o.email &&
173
- signed_up_at == o.signed_up_at &&
173
+ signedUpAt == o.signedUpAt &&
174
174
  properties == o.properties &&
175
- conversation_started == o.conversation_started &&
175
+ conversationStarted == o.conversationStarted &&
176
176
  clients == o.clients &&
177
- pending_clients == o.pending_clients
177
+ pendingClients == o.pendingClients
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module SmoochApi
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Fixnum] Hash code
188
188
  def hash
189
- [_id, user_id, given_name, surname, email, signed_up_at, properties, conversation_started, clients, pending_clients].hash
189
+ [id, userId, givenName, surname, email, signedUpAt, properties, conversationStarted, clients, pendingClients].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash