smooch-api 5.25.1 → 5.29.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +176 -0
  3. data/README.md +20 -1
  4. data/docs/AppApi.md +60 -0
  5. data/docs/AppUserLink.md +1 -0
  6. data/docs/Author.md +11 -0
  7. data/docs/GetSdkIdsResponse.md +10 -0
  8. data/docs/Integration.md +4 -0
  9. data/docs/IntegrationCreate.md +7 -0
  10. data/docs/NotificationApi.md +71 -0
  11. data/docs/NotificationPost.md +11 -0
  12. data/docs/NotificationPostDestination.md +9 -0
  13. data/docs/NotificationResponse.md +8 -0
  14. data/docs/NotificationResponseNotification.md +8 -0
  15. data/lib/smooch-api.rb +8 -1
  16. data/lib/smooch-api/api/app_api.rb +56 -1
  17. data/lib/smooch-api/api/app_user_api.rb +1 -1
  18. data/lib/smooch-api/api/attachments_api.rb +1 -1
  19. data/lib/smooch-api/api/conversation_api.rb +1 -1
  20. data/lib/smooch-api/api/deployment_api.rb +1 -1
  21. data/lib/smooch-api/api/integration_api.rb +1 -1
  22. data/lib/smooch-api/api/menu_api.rb +1 -1
  23. data/lib/smooch-api/api/notification_api.rb +84 -0
  24. data/lib/smooch-api/api/service_account_api.rb +1 -1
  25. data/lib/smooch-api/api/template_api.rb +1 -1
  26. data/lib/smooch-api/api/webhook_api.rb +1 -1
  27. data/lib/smooch-api/api_client.rb +1 -1
  28. data/lib/smooch-api/api_error.rb +1 -1
  29. data/lib/smooch-api/configuration.rb +1 -1
  30. data/lib/smooch-api/models/action.rb +1 -1
  31. data/lib/smooch-api/models/activity_response.rb +1 -1
  32. data/lib/smooch-api/models/app.rb +1 -1
  33. data/lib/smooch-api/models/app_create.rb +1 -1
  34. data/lib/smooch-api/models/app_response.rb +1 -1
  35. data/lib/smooch-api/models/app_settings.rb +1 -1
  36. data/lib/smooch-api/models/app_update.rb +1 -1
  37. data/lib/smooch-api/models/app_user.rb +1 -1
  38. data/lib/smooch-api/models/app_user_business_systems_response.rb +1 -1
  39. data/lib/smooch-api/models/app_user_channels_response.rb +1 -1
  40. data/lib/smooch-api/models/app_user_link.rb +12 -2
  41. data/lib/smooch-api/models/app_user_merge.rb +1 -1
  42. data/lib/smooch-api/models/app_user_pre_create.rb +1 -1
  43. data/lib/smooch-api/models/app_user_response.rb +1 -1
  44. data/lib/smooch-api/models/app_user_update.rb +1 -1
  45. data/lib/smooch-api/models/attachment_remove.rb +1 -1
  46. data/lib/smooch-api/models/attachment_response.rb +1 -1
  47. data/lib/smooch-api/models/auth_code_response.rb +1 -1
  48. data/lib/smooch-api/models/author.rb +224 -0
  49. data/lib/smooch-api/models/business_system_item.rb +1 -1
  50. data/lib/smooch-api/models/channel_entity_item.rb +1 -1
  51. data/lib/smooch-api/models/client.rb +1 -1
  52. data/lib/smooch-api/models/client_info.rb +1 -1
  53. data/lib/smooch-api/models/confirmation.rb +1 -1
  54. data/lib/smooch-api/models/conversation.rb +1 -1
  55. data/lib/smooch-api/models/conversation_activity.rb +1 -1
  56. data/lib/smooch-api/models/coordinates.rb +1 -1
  57. data/lib/smooch-api/models/deployment.rb +1 -1
  58. data/lib/smooch-api/models/deployment_activate_phone_number.rb +1 -1
  59. data/lib/smooch-api/models/deployment_confirm_code.rb +1 -1
  60. data/lib/smooch-api/models/deployment_create.rb +1 -1
  61. data/lib/smooch-api/models/deployment_response.rb +1 -1
  62. data/lib/smooch-api/models/destination.rb +1 -1
  63. data/lib/smooch-api/models/display_settings.rb +1 -1
  64. data/lib/smooch-api/models/enums.rb +3 -3
  65. data/lib/smooch-api/models/field.rb +1 -1
  66. data/lib/smooch-api/models/field_post.rb +1 -1
  67. data/lib/smooch-api/models/get_integration_profile_response.rb +1 -1
  68. data/lib/smooch-api/models/get_messages_response.rb +1 -1
  69. data/lib/smooch-api/models/get_sdk_ids_response.rb +224 -0
  70. data/lib/smooch-api/models/integration.rb +45 -5
  71. data/lib/smooch-api/models/integration_create.rb +75 -5
  72. data/lib/smooch-api/models/integration_profile_update.rb +1 -1
  73. data/lib/smooch-api/models/integration_response.rb +1 -1
  74. data/lib/smooch-api/models/integration_update.rb +1 -1
  75. data/lib/smooch-api/models/jwt_response.rb +1 -1
  76. data/lib/smooch-api/models/link_request_response.rb +1 -1
  77. data/lib/smooch-api/models/link_request_response_link_requests.rb +1 -1
  78. data/lib/smooch-api/models/list_apps_response.rb +1 -1
  79. data/lib/smooch-api/models/list_deployments_response.rb +1 -1
  80. data/lib/smooch-api/models/list_integrations_response.rb +1 -1
  81. data/lib/smooch-api/models/list_secret_keys_response.rb +1 -1
  82. data/lib/smooch-api/models/list_service_accounts_response.rb +1 -1
  83. data/lib/smooch-api/models/list_templates_response.rb +1 -1
  84. data/lib/smooch-api/models/list_webhooks_response.rb +1 -1
  85. data/lib/smooch-api/models/location.rb +1 -1
  86. data/lib/smooch-api/models/menu.rb +1 -1
  87. data/lib/smooch-api/models/menu_item.rb +1 -1
  88. data/lib/smooch-api/models/menu_response.rb +1 -1
  89. data/lib/smooch-api/models/merged_user.rb +1 -1
  90. data/lib/smooch-api/models/message.rb +1 -1
  91. data/lib/smooch-api/models/message_item.rb +1 -1
  92. data/lib/smooch-api/models/message_override.rb +1 -1
  93. data/lib/smooch-api/models/message_override_line.rb +1 -1
  94. data/lib/smooch-api/models/message_override_messenger.rb +1 -1
  95. data/lib/smooch-api/models/message_override_whatsapp.rb +1 -1
  96. data/lib/smooch-api/models/message_post.rb +1 -1
  97. data/lib/smooch-api/models/message_response.rb +1 -1
  98. data/lib/smooch-api/models/notification_post.rb +234 -0
  99. data/lib/smooch-api/models/notification_post_destination.rb +209 -0
  100. data/lib/smooch-api/models/notification_response.rb +188 -0
  101. data/lib/smooch-api/models/notification_response_notification.rb +194 -0
  102. data/lib/smooch-api/models/option.rb +1 -1
  103. data/lib/smooch-api/models/quoted_message.rb +1 -1
  104. data/lib/smooch-api/models/secret_key.rb +1 -1
  105. data/lib/smooch-api/models/secret_key_create.rb +1 -1
  106. data/lib/smooch-api/models/secret_key_response.rb +1 -1
  107. data/lib/smooch-api/models/select.rb +1 -1
  108. data/lib/smooch-api/models/service_account.rb +1 -1
  109. data/lib/smooch-api/models/service_account_create.rb +1 -1
  110. data/lib/smooch-api/models/service_account_response.rb +1 -1
  111. data/lib/smooch-api/models/service_account_update.rb +1 -1
  112. data/lib/smooch-api/models/source.rb +1 -1
  113. data/lib/smooch-api/models/sub_menu_item.rb +1 -1
  114. data/lib/smooch-api/models/template.rb +1 -1
  115. data/lib/smooch-api/models/template_create.rb +1 -1
  116. data/lib/smooch-api/models/template_response.rb +1 -1
  117. data/lib/smooch-api/models/template_update.rb +1 -1
  118. data/lib/smooch-api/models/upload_integration_profile_photo_response.rb +1 -1
  119. data/lib/smooch-api/models/webhook.rb +1 -1
  120. data/lib/smooch-api/models/webhook_create.rb +1 -1
  121. data/lib/smooch-api/models/webhook_response.rb +1 -1
  122. data/lib/smooch-api/models/webhook_update.rb +1 -1
  123. data/lib/smooch-api/version.rb +2 -2
  124. data/smooch-api.gemspec +4 -4
  125. data/spec/api_client_spec.rb +1 -1
  126. data/spec/configuration_spec.rb +1 -1
  127. data/spec/spec_helper.rb +1 -1
  128. metadata +23 -8
@@ -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: 5.25
6
+ OpenAPI spec version: 5.29
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.2.3-SNAPSHOT
@@ -165,6 +165,27 @@ module SmoochApi
165
165
  # When `true`, unsubscribe links will not be included in outbound emails. If this setting is enabled, it is expected that the business is providing the user a way to unsubscribe by some other means. (Optional) Used for *mailgun* integrations.
166
166
  attr_accessor :hideUnsubscribeLink
167
167
 
168
+ # The signing key of your MessageBird account. Used to validate the webhooks' origin. (Optional) Used for *messagebird* integrations.
169
+ attr_accessor :signingKey
170
+
171
+ # The public API key of your Mailgun account. Required for *mailgun* integrations.
172
+ attr_accessor :apiKey
173
+
174
+ # The domain used to relay email. Required for *mailgun* integrations.
175
+ attr_accessor :domain
176
+
177
+ # Smooch will receive all emails sent to this address. Required for *mailgun* integrations.
178
+ attr_accessor :incomingAddress
179
+
180
+ # A key tied to Apple Business Chat Messaging Service Provider
181
+ attr_accessor :apiSecret
182
+
183
+ # A unique ID tied to the brand using Apple Business Chat
184
+ attr_accessor :businessId
185
+
186
+ # A unique identifier for an Apple Business Chat partner registered as a Messaging Service Provider through Apple Business Register
187
+ attr_accessor :mspId
188
+
168
189
 
169
190
  # Attribute mapping from ruby-style variable name to JSON key.
170
191
  def self.attribute_map
@@ -218,7 +239,14 @@ module SmoochApi
218
239
  :'backgroundImageUrl' => :'backgroundImageUrl',
219
240
  :'originWhitelist' => :'originWhitelist',
220
241
  :'qrCodeUrl' => :'qrCodeUrl',
221
- :'hideUnsubscribeLink' => :'hideUnsubscribeLink'
242
+ :'hideUnsubscribeLink' => :'hideUnsubscribeLink',
243
+ :'signingKey' => :'signingKey',
244
+ :'apiKey' => :'apiKey',
245
+ :'domain' => :'domain',
246
+ :'incomingAddress' => :'incomingAddress',
247
+ :'apiSecret' => :'apiSecret',
248
+ :'businessId' => :'businessId',
249
+ :'mspId' => :'mspId'
222
250
  }
223
251
  end
224
252
 
@@ -274,7 +302,14 @@ module SmoochApi
274
302
  :'backgroundImageUrl' => :'String',
275
303
  :'originWhitelist' => :'Array<String>',
276
304
  :'qrCodeUrl' => :'String',
277
- :'hideUnsubscribeLink' => :'BOOLEAN'
305
+ :'hideUnsubscribeLink' => :'BOOLEAN',
306
+ :'signingKey' => :'String',
307
+ :'apiKey' => :'String',
308
+ :'domain' => :'String',
309
+ :'incomingAddress' => :'String',
310
+ :'apiSecret' => :'String',
311
+ :'businessId' => :'String',
312
+ :'mspId' => :'String'
278
313
  }
279
314
  end
280
315
 
@@ -490,6 +525,34 @@ module SmoochApi
490
525
  self.hideUnsubscribeLink = attributes[:'hideUnsubscribeLink']
491
526
  end
492
527
 
528
+ if attributes.has_key?(:'signingKey')
529
+ self.signingKey = attributes[:'signingKey']
530
+ end
531
+
532
+ if attributes.has_key?(:'apiKey')
533
+ self.apiKey = attributes[:'apiKey']
534
+ end
535
+
536
+ if attributes.has_key?(:'domain')
537
+ self.domain = attributes[:'domain']
538
+ end
539
+
540
+ if attributes.has_key?(:'incomingAddress')
541
+ self.incomingAddress = attributes[:'incomingAddress']
542
+ end
543
+
544
+ if attributes.has_key?(:'apiSecret')
545
+ self.apiSecret = attributes[:'apiSecret']
546
+ end
547
+
548
+ if attributes.has_key?(:'businessId')
549
+ self.businessId = attributes[:'businessId']
550
+ end
551
+
552
+ if attributes.has_key?(:'mspId')
553
+ self.mspId = attributes[:'mspId']
554
+ end
555
+
493
556
  end
494
557
 
495
558
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -564,7 +627,14 @@ module SmoochApi
564
627
  backgroundImageUrl == o.backgroundImageUrl &&
565
628
  originWhitelist == o.originWhitelist &&
566
629
  qrCodeUrl == o.qrCodeUrl &&
567
- hideUnsubscribeLink == o.hideUnsubscribeLink
630
+ hideUnsubscribeLink == o.hideUnsubscribeLink &&
631
+ signingKey == o.signingKey &&
632
+ apiKey == o.apiKey &&
633
+ domain == o.domain &&
634
+ incomingAddress == o.incomingAddress &&
635
+ apiSecret == o.apiSecret &&
636
+ businessId == o.businessId &&
637
+ mspId == o.mspId
568
638
  end
569
639
 
570
640
  # @see the `==` method
@@ -576,7 +646,7 @@ module SmoochApi
576
646
  # Calculates hash code according to all attributes.
577
647
  # @return [Fixnum] Hash code
578
648
  def hash
579
- [type, displayName, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, deploymentId, serviceCode, switcherSecret, encodingAesKey, fromAddress, certificate, password, username, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, accessTokenUrl, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, qrCodeUrl, hideUnsubscribeLink].hash
649
+ [type, displayName, pageAccessToken, appId, appSecret, accountSid, authToken, baseUrl, hsmFallbackLanguage, phoneNumberSid, token, channelId, channelSecret, channelAccessToken, deploymentId, serviceCode, switcherSecret, encodingAesKey, fromAddress, certificate, password, username, autoUpdateBadge, production, serverKey, senderId, tier, envName, consumerKey, consumerSecret, accessTokenKey, accessTokenSecret, accessTokenUrl, accessKey, originator, brandColor, fixedIntroPane, conversationColor, actionColor, displayStyle, buttonIconUrl, buttonWidth, buttonHeight, integrationOrder, businessName, businessIconUrl, backgroundImageUrl, originWhitelist, qrCodeUrl, hideUnsubscribeLink, signingKey, apiKey, domain, incomingAddress, apiSecret, businessId, mspId].hash
580
650
  end
581
651
 
582
652
  # 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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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: 5.25
6
+ OpenAPI spec version: 5.29
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,234 @@
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: 5.29
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 NotificationPost
18
+ # The destination of the notification.
19
+ attr_accessor :destination
20
+
21
+ # If specified, the only accepted value is `whatsapp`. To be included when sending WhatsApp message templates.
22
+ attr_accessor :messageSchema
23
+
24
+ # An object containing role, email, name and avatarUrl.
25
+ attr_accessor :author
26
+
27
+ # The notification message to send.
28
+ attr_accessor :message
29
+
30
+
31
+ # Attribute mapping from ruby-style variable name to JSON key.
32
+ def self.attribute_map
33
+ {
34
+ :'destination' => :'destination',
35
+ :'messageSchema' => :'messageSchema',
36
+ :'author' => :'author',
37
+ :'message' => :'message'
38
+ }
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.swagger_types
43
+ {
44
+ :'destination' => :'NotificationPostDestination',
45
+ :'messageSchema' => :'String',
46
+ :'author' => :'Author',
47
+ :'message' => :'Object'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
58
+
59
+ if attributes.has_key?(:'destination')
60
+ self.destination = attributes[:'destination']
61
+ end
62
+
63
+ if attributes.has_key?(:'messageSchema')
64
+ self.messageSchema = attributes[:'messageSchema']
65
+ end
66
+
67
+ if attributes.has_key?(:'author')
68
+ self.author = attributes[:'author']
69
+ end
70
+
71
+ if attributes.has_key?(:'message')
72
+ self.message = attributes[:'message']
73
+ end
74
+
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properies with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ if @destination.nil?
82
+ invalid_properties.push("invalid value for 'destination', destination cannot be nil.")
83
+ end
84
+
85
+ if @author.nil?
86
+ invalid_properties.push("invalid value for 'author', author cannot be nil.")
87
+ end
88
+
89
+ if @message.nil?
90
+ invalid_properties.push("invalid value for 'message', message cannot be nil.")
91
+ end
92
+
93
+ return invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @destination.nil?
100
+ return false if @author.nil?
101
+ return false if @message.nil?
102
+ return true
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ destination == o.destination &&
111
+ messageSchema == o.messageSchema &&
112
+ author == o.author &&
113
+ message == o.message
114
+ end
115
+
116
+ # @see the `==` method
117
+ # @param [Object] Object to be compared
118
+ def eql?(o)
119
+ self == o
120
+ end
121
+
122
+ # Calculates hash code according to all attributes.
123
+ # @return [Fixnum] Hash code
124
+ def hash
125
+ [destination, messageSchema, author, message].hash
126
+ end
127
+
128
+ # Builds the object from hash
129
+ # @param [Hash] attributes Model attributes in the form of hash
130
+ # @return [Object] Returns the model itself
131
+ def build_from_hash(attributes)
132
+ return nil unless attributes.is_a?(Hash)
133
+ self.class.swagger_types.each_pair do |key, type|
134
+ if type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :DateTime
155
+ DateTime.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :BOOLEAN
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ temp_model = SmoochApi.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map{ |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end