smooch-api 1.12.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -25
  3. data/docs/AppUserApi.md +54 -83
  4. data/docs/ConversationApi.md +30 -15
  5. data/docs/MenuApi.md +26 -11
  6. data/lib/smooch-api.rb +1 -7
  7. data/lib/smooch-api/api/app_api.rb +1 -1
  8. data/lib/smooch-api/api/app_user_api.rb +91 -98
  9. data/lib/smooch-api/api/attachments_api.rb +1 -1
  10. data/lib/smooch-api/api/conversation_api.rb +51 -21
  11. data/lib/smooch-api/api/integration_api.rb +1 -1
  12. data/lib/smooch-api/api/menu_api.rb +31 -13
  13. data/lib/smooch-api/api/webhook_api.rb +1 -1
  14. data/lib/smooch-api/api_client.rb +1 -1
  15. data/lib/smooch-api/api_error.rb +1 -1
  16. data/lib/smooch-api/configuration.rb +1 -1
  17. data/lib/smooch-api/models/action.rb +1 -34
  18. data/lib/smooch-api/models/app.rb +1 -1
  19. data/lib/smooch-api/models/app_create.rb +1 -1
  20. data/lib/smooch-api/models/app_response.rb +1 -1
  21. data/lib/smooch-api/models/app_settings.rb +1 -1
  22. data/lib/smooch-api/models/app_update.rb +1 -1
  23. data/lib/smooch-api/models/app_user.rb +1 -1
  24. data/lib/smooch-api/models/app_user_link.rb +1 -34
  25. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  26. data/lib/smooch-api/models/app_user_response.rb +1 -1
  27. data/lib/smooch-api/models/app_user_update.rb +1 -1
  28. data/lib/smooch-api/models/attachment_response.rb +1 -1
  29. data/lib/smooch-api/models/client.rb +1 -34
  30. data/lib/smooch-api/models/client_info.rb +1 -1
  31. data/lib/smooch-api/models/confirmation.rb +1 -1
  32. data/lib/smooch-api/models/conversation.rb +1 -1
  33. data/lib/smooch-api/models/destination.rb +1 -1
  34. data/lib/smooch-api/models/device_response.rb +1 -1
  35. data/lib/smooch-api/models/device_update.rb +1 -1
  36. data/lib/smooch-api/models/display_settings.rb +1 -1
  37. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  38. data/lib/smooch-api/models/integration.rb +1 -1
  39. data/lib/smooch-api/models/integration_create.rb +1 -1
  40. data/lib/smooch-api/models/integration_response.rb +1 -1
  41. data/lib/smooch-api/models/jwt_response.rb +1 -1
  42. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  43. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  44. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  45. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  46. data/lib/smooch-api/models/menu.rb +1 -1
  47. data/lib/smooch-api/models/menu_item.rb +1 -1
  48. data/lib/smooch-api/models/menu_response.rb +1 -1
  49. data/lib/smooch-api/models/message.rb +1 -34
  50. data/lib/smooch-api/models/message_item.rb +1 -1
  51. data/lib/smooch-api/models/message_post.rb +1 -34
  52. data/lib/smooch-api/models/message_response.rb +1 -1
  53. data/lib/smooch-api/models/secret_key.rb +1 -1
  54. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  55. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  56. data/lib/smooch-api/models/source.rb +1 -1
  57. data/lib/smooch-api/models/typing_activity_trigger.rb +1 -1
  58. data/lib/smooch-api/models/webhook.rb +1 -22
  59. data/lib/smooch-api/models/webhook_create.rb +1 -22
  60. data/lib/smooch-api/models/webhook_response.rb +1 -1
  61. data/lib/smooch-api/models/webhook_update.rb +1 -22
  62. data/lib/smooch-api/version.rb +2 -2
  63. data/smooch-api.gemspec +1 -1
  64. data/spec/api_client_spec.rb +1 -1
  65. data/spec/configuration_spec.rb +1 -1
  66. data/spec/spec_helper.rb +1 -1
  67. metadata +3 -15
  68. data/docs/DeviceInit.md +0 -12
  69. data/docs/Event.md +0 -8
  70. data/docs/Init.md +0 -9
  71. data/docs/InitApi.md +0 -61
  72. data/docs/InitResponse.md +0 -9
  73. data/docs/TrackEventResponse.md +0 -8
  74. data/lib/smooch-api/api/init_api.rb +0 -78
  75. data/lib/smooch-api/models/device_init.rb +0 -271
  76. data/lib/smooch-api/models/event.rb +0 -194
  77. data/lib/smooch-api/models/init.rb +0 -203
  78. data/lib/smooch-api/models/init_response.rb +0 -209
  79. data/lib/smooch-api/models/track_event_response.rb +0 -189
@@ -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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -39,27 +39,6 @@ module SmoochApi
39
39
  # Allows you to specify the strategy used to initiate a link with the target user.
40
40
  attr_accessor :confirmation
41
41
 
42
- class EnumAttributeValidator
43
- attr_reader :datatype
44
- attr_reader :allowable_values
45
-
46
- def initialize(datatype, allowable_values)
47
- @allowable_values = allowable_values.map do |value|
48
- case datatype.to_s
49
- when /Integer/i
50
- value.to_i
51
- when /Float/i
52
- value.to_f
53
- else
54
- value
55
- end
56
- end
57
- end
58
-
59
- def valid?(value)
60
- !value || allowable_values.include?(value)
61
- end
62
- end
63
42
 
64
43
  # Attribute mapping from ruby-style variable name to JSON key.
65
44
  def self.attribute_map
@@ -150,22 +129,10 @@ module SmoochApi
150
129
  # @return true if the model is valid
151
130
  def valid?
152
131
  return false if @type.nil?
153
- type_validator = EnumAttributeValidator.new('String', ["twilio", "messagebird", "messenger", "mailgun"])
154
- return false unless type_validator.valid?(@type)
155
132
  return false if @confirmation.nil?
156
133
  return true
157
134
  end
158
135
 
159
- # Custom attribute writer method checking allowed values (enum).
160
- # @param [Object] type Object to be assigned
161
- def type=(type)
162
- validator = EnumAttributeValidator.new('String', ["twilio", "messagebird", "messenger", "mailgun"])
163
- unless validator.valid?(type)
164
- fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
165
- end
166
- @type = type
167
- end
168
-
169
136
  # Checks equality by comparing each attribute.
170
137
  # @param [Object] Object to be compared
171
138
  def ==(o)
@@ -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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -38,27 +38,6 @@ module SmoochApi
38
38
 
39
39
  attr_accessor :info
40
40
 
41
- class EnumAttributeValidator
42
- attr_reader :datatype
43
- attr_reader :allowable_values
44
-
45
- def initialize(datatype, allowable_values)
46
- @allowable_values = allowable_values.map do |value|
47
- case datatype.to_s
48
- when /Integer/i
49
- value.to_i
50
- when /Float/i
51
- value.to_f
52
- else
53
- value
54
- end
55
- end
56
- end
57
-
58
- def valid?(value)
59
- !value || allowable_values.include?(value)
60
- end
61
- end
62
41
 
63
42
  # Attribute mapping from ruby-style variable name to JSON key.
64
43
  def self.attribute_map
@@ -150,21 +129,9 @@ module SmoochApi
150
129
  def valid?
151
130
  return false if @id.nil?
152
131
  return false if @platform.nil?
153
- platform_validator = EnumAttributeValidator.new('String', ["ios", "android", "web", "twilio", "telegram", "messenger", "frontendEmail", "line", "wechat", "viber", "twitter", "mailgun", "other"])
154
- return false unless platform_validator.valid?(@platform)
155
132
  return true
156
133
  end
157
134
 
158
- # Custom attribute writer method checking allowed values (enum).
159
- # @param [Object] platform Object to be assigned
160
- def platform=(platform)
161
- validator = EnumAttributeValidator.new('String', ["ios", "android", "web", "twilio", "telegram", "messenger", "frontendEmail", "line", "wechat", "viber", "twitter", "mailgun", "other"])
162
- unless validator.valid?(platform)
163
- fail ArgumentError, "invalid value for 'platform', must be one of #{validator.allowable_values}."
164
- end
165
- @platform = platform
166
- end
167
-
168
135
  # Checks equality by comparing each attribute.
169
136
  # @param [Object] Object to be compared
170
137
  def ==(o)
@@ -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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 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: 1.12
6
+ OpenAPI spec version: 2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -66,27 +66,6 @@ module SmoochApi
66
66
  # Settings to adjust the carousel layout. See [Display Settings](https://docs.smooch.io/rest/#display-settings).
67
67
  attr_accessor :display_settings
68
68
 
69
- class EnumAttributeValidator
70
- attr_reader :datatype
71
- attr_reader :allowable_values
72
-
73
- def initialize(datatype, allowable_values)
74
- @allowable_values = allowable_values.map do |value|
75
- case datatype.to_s
76
- when /Integer/i
77
- value.to_i
78
- when /Float/i
79
- value.to_f
80
- else
81
- value
82
- end
83
- end
84
- end
85
-
86
- def valid?(value)
87
- !value || allowable_values.include?(value)
88
- end
89
- end
90
69
 
91
70
  # Attribute mapping from ruby-style variable name to JSON key.
92
71
  def self.attribute_map
@@ -262,8 +241,6 @@ module SmoochApi
262
241
  return false if @author_id.nil?
263
242
  return false if @role.nil?
264
243
  return false if @type.nil?
265
- type_validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list", "file"])
266
- return false unless type_validator.valid?(@type)
267
244
  return false if @name.nil?
268
245
  return false if @text.nil?
269
246
  return false if @avatar_url.nil?
@@ -271,16 +248,6 @@ module SmoochApi
271
248
  return true
272
249
  end
273
250
 
274
- # Custom attribute writer method checking allowed values (enum).
275
- # @param [Object] type Object to be assigned
276
- def type=(type)
277
- validator = EnumAttributeValidator.new('String', ["text", "image", "carousel", "list", "file"])
278
- unless validator.valid?(type)
279
- fail ArgumentError, "invalid value for 'type', must be one of #{validator.allowable_values}."
280
- end
281
- @type = type
282
- end
283
-
284
251
  # Checks equality by comparing each attribute.
285
252
  # @param [Object] Object to be compared
286
253
  def ==(o)