smooch-api 3.12.0 → 3.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -1
  3. data/docs/Integration.md +2 -0
  4. data/docs/ListTemplatesResponse.md +10 -0
  5. data/docs/Template.md +10 -0
  6. data/docs/TemplateApi.md +293 -0
  7. data/docs/TemplateCreate.md +9 -0
  8. data/docs/TemplateResponse.md +8 -0
  9. data/docs/TemplateUpdate.md +9 -0
  10. data/lib/smooch-api.rb +7 -1
  11. data/lib/smooch-api/api/app_api.rb +1 -1
  12. data/lib/smooch-api/api/app_user_api.rb +1 -1
  13. data/lib/smooch-api/api/attachments_api.rb +1 -1
  14. data/lib/smooch-api/api/conversation_api.rb +1 -1
  15. data/lib/smooch-api/api/integration_api.rb +1 -1
  16. data/lib/smooch-api/api/menu_api.rb +1 -1
  17. data/lib/smooch-api/api/service_account_api.rb +1 -1
  18. data/lib/smooch-api/api/template_api.rb +333 -0
  19. data/lib/smooch-api/api/webhook_api.rb +1 -1
  20. data/lib/smooch-api/api_client.rb +1 -1
  21. data/lib/smooch-api/api_error.rb +1 -1
  22. data/lib/smooch-api/configuration.rb +1 -1
  23. data/lib/smooch-api/models/action.rb +1 -1
  24. data/lib/smooch-api/models/app.rb +1 -1
  25. data/lib/smooch-api/models/app_create.rb +1 -1
  26. data/lib/smooch-api/models/app_response.rb +1 -1
  27. data/lib/smooch-api/models/app_settings.rb +1 -1
  28. data/lib/smooch-api/models/app_update.rb +1 -1
  29. data/lib/smooch-api/models/app_user.rb +1 -1
  30. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  31. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  32. data/lib/smooch-api/models/app_user_link.rb +1 -1
  33. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  34. data/lib/smooch-api/models/app_user_response.rb +1 -1
  35. data/lib/smooch-api/models/app_user_update.rb +1 -1
  36. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  37. data/lib/smooch-api/models/attachment_response.rb +1 -1
  38. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  39. data/lib/smooch-api/models/business_system_item.rb +1 -1
  40. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  41. data/lib/smooch-api/models/client.rb +1 -1
  42. data/lib/smooch-api/models/client_info.rb +1 -1
  43. data/lib/smooch-api/models/confirmation.rb +1 -1
  44. data/lib/smooch-api/models/conversation.rb +1 -1
  45. data/lib/smooch-api/models/destination.rb +1 -1
  46. data/lib/smooch-api/models/display_settings.rb +1 -1
  47. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  48. data/lib/smooch-api/models/integration.rb +25 -5
  49. data/lib/smooch-api/models/integration_create.rb +1 -1
  50. data/lib/smooch-api/models/integration_response.rb +1 -1
  51. data/lib/smooch-api/models/integration_update.rb +1 -1
  52. data/lib/smooch-api/models/jwt_response.rb +1 -1
  53. data/lib/smooch-api/models/link_request_response.rb +1 -1
  54. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  55. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  56. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  57. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  58. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  59. data/lib/smooch-api/models/list_templates_response.rb +216 -0
  60. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  61. data/lib/smooch-api/models/menu.rb +1 -1
  62. data/lib/smooch-api/models/menu_item.rb +1 -1
  63. data/lib/smooch-api/models/menu_response.rb +1 -1
  64. data/lib/smooch-api/models/message.rb +1 -1
  65. data/lib/smooch-api/models/message_item.rb +1 -1
  66. data/lib/smooch-api/models/message_post.rb +1 -1
  67. data/lib/smooch-api/models/message_response.rb +1 -1
  68. data/lib/smooch-api/models/secret_key.rb +1 -1
  69. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  70. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  71. data/lib/smooch-api/models/service_account.rb +1 -1
  72. data/lib/smooch-api/models/service_account_create.rb +1 -1
  73. data/lib/smooch-api/models/service_account_response.rb +1 -1
  74. data/lib/smooch-api/models/service_account_update.rb +1 -1
  75. data/lib/smooch-api/models/source.rb +1 -1
  76. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  77. data/lib/smooch-api/models/template.rb +224 -0
  78. data/lib/smooch-api/models/template_create.rb +209 -0
  79. data/lib/smooch-api/models/template_response.rb +194 -0
  80. data/lib/smooch-api/models/template_update.rb +199 -0
  81. data/lib/smooch-api/models/typing_activity_trigger.rb +1 -1
  82. data/lib/smooch-api/models/webhook.rb +1 -1
  83. data/lib/smooch-api/models/webhook_create.rb +1 -1
  84. data/lib/smooch-api/models/webhook_response.rb +1 -1
  85. data/lib/smooch-api/models/webhook_update.rb +1 -1
  86. data/lib/smooch-api/version.rb +2 -2
  87. data/smooch-api.gemspec +1 -1
  88. data/spec/api_client_spec.rb +1 -1
  89. data/spec/configuration_spec.rb +1 -1
  90. data/spec/spec_helper.rb +1 -1
  91. metadata +14 -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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -171,6 +171,12 @@ module SmoochApi
171
171
  # A list of origins to whitelist. When set, only the origins from this list will be able to initialize the Web Messenger. If unset, all origins are whitelisted. The elements in the list should follow the serialized-origin format from RFC 6454 `scheme \"://\" host [ \":\" port ]`, where scheme is `http` or `https`. (Optional) Used for *Web Messenger* integrations.
172
172
  attr_accessor :origin_whitelist
173
173
 
174
+ # The integration status. Possible values are active, inactive or error. [More info](https://docs.smooch.io/#integration-status).
175
+ attr_accessor :status
176
+
177
+ # The error causing the integration to fail. Will be present when `status` is 'error'.
178
+ attr_accessor :error
179
+
174
180
 
175
181
  # Attribute mapping from ruby-style variable name to JSON key.
176
182
  def self.attribute_map
@@ -226,7 +232,9 @@ module SmoochApi
226
232
  :'business_name' => :'businessName',
227
233
  :'business_icon_url' => :'businessIconUrl',
228
234
  :'background_image_url' => :'backgroundImageUrl',
229
- :'origin_whitelist' => :'originWhitelist'
235
+ :'origin_whitelist' => :'originWhitelist',
236
+ :'status' => :'status',
237
+ :'error' => :'error'
230
238
  }
231
239
  end
232
240
 
@@ -284,7 +292,9 @@ module SmoochApi
284
292
  :'business_name' => :'String',
285
293
  :'business_icon_url' => :'String',
286
294
  :'background_image_url' => :'String',
287
- :'origin_whitelist' => :'Array<String>'
295
+ :'origin_whitelist' => :'Array<String>',
296
+ :'status' => :'String',
297
+ :'error' => :'String'
288
298
  }
289
299
  end
290
300
 
@@ -508,6 +518,14 @@ module SmoochApi
508
518
  end
509
519
  end
510
520
 
521
+ if attributes.has_key?(:'status')
522
+ self.status = attributes[:'status']
523
+ end
524
+
525
+ if attributes.has_key?(:'error')
526
+ self.error = attributes[:'error']
527
+ end
528
+
511
529
  end
512
530
 
513
531
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -589,7 +607,9 @@ module SmoochApi
589
607
  business_name == o.business_name &&
590
608
  business_icon_url == o.business_icon_url &&
591
609
  background_image_url == o.background_image_url &&
592
- origin_whitelist == o.origin_whitelist
610
+ origin_whitelist == o.origin_whitelist &&
611
+ status == o.status &&
612
+ error == o.error
593
613
  end
594
614
 
595
615
  # @see the `==` method
@@ -601,7 +621,7 @@ module SmoochApi
601
621
  # Calculates hash code according to all attributes.
602
622
  # @return [Fixnum] Hash code
603
623
  def hash
604
- [_id, type, page_access_token, app_id, app_secret, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist].hash
624
+ [_id, type, page_access_token, app_id, app_secret, webhook_secret, page_id, account_sid, auth_token, phone_number_sid, phone_number, name, token, uri, channel_id, channel_secret, channel_access_token, bot_name, encoding_aes_key, from_address, certificate, password, auto_update_badge, production, server_key, sender_id, tier, env_name, consumer_key, consumer_secret, access_token_key, access_token_secret, user_id, username, api_key, domain, incoming_address, access_key, originator, brand_color, fixed_intro_pane, conversation_color, action_color, display_style, button_icon_url, button_width, button_height, integration_order, business_name, business_icon_url, background_image_url, origin_whitelist, status, error].hash
605
625
  end
606
626
 
607
627
  # 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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
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: 3.12
6
+ OpenAPI spec version: 3.13
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -0,0 +1,216 @@
1
+ =begin
2
+ #Smooch
3
+
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
+
6
+ OpenAPI spec version: 3.13
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module SmoochApi
16
+
17
+ class ListTemplatesResponse
18
+ # The list of templates.
19
+ attr_accessor :templates
20
+
21
+ # Flag indicating if there are more templates that are not present in the response.
22
+ attr_accessor :has_more
23
+
24
+ # The number of template records skipped in the returned list.
25
+ attr_accessor :offset
26
+
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'templates' => :'templates',
32
+ :'has_more' => :'hasMore',
33
+ :'offset' => :'offset'
34
+ }
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.swagger_types
39
+ {
40
+ :'templates' => :'Array<Template>',
41
+ :'has_more' => :'BOOLEAN',
42
+ :'offset' => :'Integer'
43
+ }
44
+ end
45
+
46
+ # Initializes the object
47
+ # @param [Hash] attributes Model attributes in the form of hash
48
+ def initialize(attributes = {})
49
+ return unless attributes.is_a?(Hash)
50
+
51
+ # convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
53
+
54
+ if attributes.has_key?(:'templates')
55
+ if (value = attributes[:'templates']).is_a?(Array)
56
+ self.templates = value
57
+ end
58
+ end
59
+
60
+ if attributes.has_key?(:'hasMore')
61
+ self.has_more = attributes[:'hasMore']
62
+ end
63
+
64
+ if attributes.has_key?(:'offset')
65
+ self.offset = attributes[:'offset']
66
+ end
67
+
68
+ end
69
+
70
+ # Show invalid properties with the reasons. Usually used together with valid?
71
+ # @return Array for valid properies with the reasons
72
+ def list_invalid_properties
73
+ invalid_properties = Array.new
74
+ if @templates.nil?
75
+ invalid_properties.push("invalid value for 'templates', templates cannot be nil.")
76
+ end
77
+
78
+ return invalid_properties
79
+ end
80
+
81
+ # Check to see if the all the properties in the model are valid
82
+ # @return true if the model is valid
83
+ def valid?
84
+ return false if @templates.nil?
85
+ return true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ templates == o.templates &&
94
+ has_more == o.has_more &&
95
+ offset == o.offset
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [templates, has_more, offset].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
125
+ end
126
+
127
+ self
128
+ end
129
+
130
+ # Deserializes the data based on type
131
+ # @param string type Data type
132
+ # @param string value Value to be deserialized
133
+ # @return [Object] Deserialized data
134
+ def _deserialize(type, value)
135
+ case type.to_sym
136
+ when :DateTime
137
+ DateTime.parse(value)
138
+ when :Date
139
+ Date.parse(value)
140
+ when :String
141
+ value.to_s
142
+ when :Integer
143
+ value.to_i
144
+ when :Float
145
+ value.to_f
146
+ when :BOOLEAN
147
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
148
+ true
149
+ else
150
+ false
151
+ end
152
+ when :Object
153
+ # generic object (usually a Hash), return directly
154
+ value
155
+ when /\AArray<(?<inner_type>.+)>\z/
156
+ inner_type = Regexp.last_match[:inner_type]
157
+ value.map { |v| _deserialize(inner_type, v) }
158
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
159
+ k_type = Regexp.last_match[:k_type]
160
+ v_type = Regexp.last_match[:v_type]
161
+ {}.tap do |hash|
162
+ value.each do |k, v|
163
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
164
+ end
165
+ end
166
+ else # model
167
+ temp_model = SmoochApi.const_get(type).new
168
+ temp_model.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ next if value.nil?
191
+ hash[param] = _to_hash(value)
192
+ end
193
+ hash
194
+ end
195
+
196
+ # Outputs non-array value in the form of hash
197
+ # For object, use to_hash. Otherwise, just return the value
198
+ # @param [Object] value Any valid value
199
+ # @return [Hash] Returns the value in the form of hash
200
+ def _to_hash(value)
201
+ if value.is_a?(Array)
202
+ value.compact.map{ |v| _to_hash(v) }
203
+ elsif value.is_a?(Hash)
204
+ {}.tap do |hash|
205
+ value.each { |k, v| hash[k] = _to_hash(v) }
206
+ end
207
+ elsif value.respond_to? :to_hash
208
+ value.to_hash
209
+ else
210
+ value
211
+ end
212
+ end
213
+
214
+ end
215
+
216
+ end