notifo-io 1.0.1.2 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (344) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +838 -156
  3. data/docs/AddContributorDto.md +1 -1
  4. data/docs/AdminProfileDto.md +7 -0
  5. data/docs/AppDetailsDto.md +3 -1
  6. data/docs/AppDto.md +2 -0
  7. data/docs/AppsApi.md +1 -187
  8. data/docs/{NotificationSend.md → ChannelCondition.md} +1 -1
  9. data/docs/{EventProperties.md → ChannelSend.md} +1 -1
  10. data/docs/ChannelSendInfoDto.md +13 -0
  11. data/docs/ChannelSettingDto.md +11 -0
  12. data/docs/ChannelTemplateDetailsDtoOfEmailTemplateDto.md +12 -0
  13. data/docs/ChannelTemplateDetailsDtoOfMessagingTemplateDto.md +12 -0
  14. data/docs/ChannelTemplateDetailsDtoOfSmsTemplateDto.md +12 -0
  15. data/docs/ChannelTemplateDto.md +11 -0
  16. data/docs/ConfigsApi.md +1 -1
  17. data/docs/ConfiguredIntegrationDto.md +2 -1
  18. data/docs/CreateChannelTemplateDto.md +7 -0
  19. data/docs/{CreateEmailTemplateDto.md → CreateChannelTemplateLanguageDto.md} +1 -1
  20. data/docs/CreateIntegrationDto.md +1 -1
  21. data/docs/CreateSystemUserDto.md +9 -0
  22. data/docs/DiagnosticsApi.md +85 -0
  23. data/docs/EmailFormattingError.md +10 -0
  24. data/docs/EmailPreviewDto.md +8 -0
  25. data/docs/EmailPreviewRequestDto.md +9 -0
  26. data/docs/{EmailTemplatesDto.md → EmailPreviewType.md} +1 -1
  27. data/docs/EmailTemplateDto.md +3 -0
  28. data/docs/{IntegrationProperties.md → EmailTemplateType.md} +1 -1
  29. data/docs/EmailTemplatesApi.md +488 -0
  30. data/docs/ErrorDto.md +1 -0
  31. data/docs/EventDto.md +1 -1
  32. data/docs/EventsApi.md +8 -6
  33. data/docs/HandledInfoDto.md +8 -0
  34. data/docs/{EmailVerificationStatus.md → InfoDto.md} +2 -1
  35. data/docs/IntegrationPropertyDto.md +3 -1
  36. data/docs/ListResponseDtoOfChannelTemplateDto.md +8 -0
  37. data/docs/ListResponseDtoOfMobilePushTokenDto.md +1 -1
  38. data/docs/{ListResponseDtoOfNotificationDto.md → ListResponseDtoOfSystemUserDto.md} +2 -2
  39. data/docs/ListResponseDtoOfUserNotificationDetailsDto.md +8 -0
  40. data/docs/ListResponseDtoOfUserNotificationDto.md +8 -0
  41. data/docs/LogsApi.md +1 -1
  42. data/docs/MediaApi.md +154 -4
  43. data/docs/MediaDto.md +3 -1
  44. data/docs/MessagingTemplateDto.md +7 -0
  45. data/docs/MessagingTemplatesApi.md +394 -0
  46. data/docs/MobilePushApi.md +16 -16
  47. data/docs/MobilePushTokenDto.md +4 -2
  48. data/docs/MobilePushTokenDto2.md +9 -0
  49. data/docs/NotificationFormattingDto.md +1 -1
  50. data/docs/NotificationProperties.md +6 -0
  51. data/docs/NotificationsApi.md +202 -20
  52. data/docs/PingApi.md +131 -0
  53. data/docs/ProcessStatus.md +6 -0
  54. data/docs/ProfileDto.md +2 -1
  55. data/docs/PropertyType.md +6 -0
  56. data/docs/PublishDto.md +4 -2
  57. data/docs/RegisterMobileTokenDto.md +1 -0
  58. data/docs/SendConfiguration.md +6 -0
  59. data/docs/{Body.md → SmsTemplateDto.md} +2 -2
  60. data/docs/SmsTemplatesApi.md +394 -0
  61. data/docs/SubscribeDto.md +8 -0
  62. data/docs/SubscribeManyDto.md +8 -0
  63. data/docs/SubscriptionDto.md +1 -1
  64. data/docs/SystemUserDto.md +11 -0
  65. data/docs/SystemUsersApi.md +328 -0
  66. data/docs/TemplateDto.md +3 -1
  67. data/docs/TemplatesApi.md +4 -5
  68. data/docs/TopicChannel.md +6 -0
  69. data/docs/TopicDto.md +7 -1
  70. data/docs/TopicQueryScope.md +6 -0
  71. data/docs/TopicsApi.md +96 -1
  72. data/docs/TrackNotificationDto.md +1 -0
  73. data/docs/UpdateChannelTemplateDtoOfEmailTemplateDto.md +9 -0
  74. data/docs/UpdateChannelTemplateDtoOfMessagingTemplateDto.md +9 -0
  75. data/docs/UpdateChannelTemplateDtoOfSmsTemplateDto.md +9 -0
  76. data/docs/UpdateIntegrationDto.md +2 -1
  77. data/docs/UpdateProfileDto.md +1 -1
  78. data/docs/UpdateSystemUserDto.md +9 -0
  79. data/docs/UpsertTemplateDto.md +1 -1
  80. data/docs/UpsertTopicDto.md +11 -0
  81. data/docs/UpsertTopicsDto.md +7 -0
  82. data/docs/UpsertUserDto.md +2 -2
  83. data/docs/UserApi.md +160 -22
  84. data/docs/UserDto.md +8 -4
  85. data/docs/UserNotificationBaseDto.md +24 -0
  86. data/docs/UserNotificationChannelDto.md +11 -0
  87. data/docs/UserNotificationDetailsDto.md +28 -0
  88. data/docs/{NotificationDto.md → UserNotificationDto.md} +10 -5
  89. data/docs/UserPropertyDto.md +9 -0
  90. data/docs/UserTopicDto.md +11 -0
  91. data/docs/UsersApi.md +134 -34
  92. data/docs/WebPushSubscriptionDto.md +7 -0
  93. data/lib/notifo/api/apps_api.rb +1 -245
  94. data/lib/notifo/api/configs_api.rb +1 -1
  95. data/lib/notifo/api/{user_info_api.rb → diagnostics_api.rb} +19 -15
  96. data/lib/notifo/api/email_templates_api.rb +663 -0
  97. data/lib/notifo/api/events_api.rb +10 -7
  98. data/lib/notifo/api/logs_api.rb +1 -1
  99. data/lib/notifo/api/media_api.rb +197 -2
  100. data/lib/notifo/api/messaging_templates_api.rb +541 -0
  101. data/lib/notifo/api/mobile_push_api.rb +18 -18
  102. data/lib/notifo/api/notifications_api.rb +246 -24
  103. data/lib/notifo/api/{authorization_api.rb → ping_api.rb} +37 -25
  104. data/lib/notifo/api/sms_templates_api.rb +541 -0
  105. data/lib/notifo/api/system_users_api.rb +411 -0
  106. data/lib/notifo/api/templates_api.rb +6 -6
  107. data/lib/notifo/api/topics_api.rb +126 -1
  108. data/lib/notifo/api/user_api.rb +186 -27
  109. data/lib/notifo/api/users_api.rb +171 -33
  110. data/lib/notifo/api_client.rb +1 -1
  111. data/lib/notifo/api_error.rb +1 -1
  112. data/lib/notifo/configuration.rb +3 -3
  113. data/lib/notifo/models/add_allowed_topic_dto.rb +1 -1
  114. data/lib/notifo/models/add_contributor_dto.rb +2 -6
  115. data/lib/notifo/models/{body.rb → admin_profile_dto.rb} +13 -11
  116. data/lib/notifo/models/app_contributor_dto.rb +1 -1
  117. data/lib/notifo/models/app_details_dto.rb +41 -11
  118. data/lib/notifo/models/app_dto.rb +32 -2
  119. data/lib/notifo/models/app_id_media_body.rb +1 -1
  120. data/lib/notifo/models/channel_condition.rb +30 -0
  121. data/lib/notifo/models/{notification_send.rb → channel_send.rb} +4 -4
  122. data/lib/notifo/models/channel_send_info_dto.rb +269 -0
  123. data/lib/notifo/models/channel_setting_dto.rb +256 -0
  124. data/lib/notifo/models/channel_template_details_dto_of_email_template_dto.rb +285 -0
  125. data/lib/notifo/models/channel_template_details_dto_of_messaging_template_dto.rb +285 -0
  126. data/lib/notifo/models/channel_template_details_dto_of_sms_template_dto.rb +285 -0
  127. data/lib/notifo/models/channel_template_dto.rb +264 -0
  128. data/lib/notifo/models/configured_integration_dto.rb +17 -3
  129. data/lib/notifo/models/configured_integrations_dto.rb +1 -1
  130. data/lib/notifo/models/confirm_mode.rb +2 -3
  131. data/lib/notifo/models/{integration_properties.rb → create_channel_template_dto.rb} +18 -11
  132. data/lib/notifo/models/{create_email_template_dto.rb → create_channel_template_language_dto.rb} +4 -4
  133. data/lib/notifo/models/create_integration_dto.rb +7 -2
  134. data/lib/notifo/models/create_system_user_dto.rb +240 -0
  135. data/lib/notifo/models/email_formatting_error.rb +233 -0
  136. data/lib/notifo/models/email_preview_dto.rb +221 -0
  137. data/lib/notifo/models/email_preview_request_dto.rb +232 -0
  138. data/lib/notifo/models/email_preview_type.rb +28 -0
  139. data/lib/notifo/models/email_template_dto.rb +39 -6
  140. data/lib/notifo/models/email_template_type.rb +30 -0
  141. data/lib/notifo/models/error_dto.rb +13 -2
  142. data/lib/notifo/models/event_dto.rb +1 -1
  143. data/lib/notifo/models/handled_info_dto.rb +218 -0
  144. data/lib/notifo/models/info_dto.rb +212 -0
  145. data/lib/notifo/models/integration_created_dto.rb +1 -1
  146. data/lib/notifo/models/integration_definition_dto.rb +1 -1
  147. data/lib/notifo/models/integration_property_dto.rb +30 -2
  148. data/lib/notifo/models/integration_status.rb +1 -1
  149. data/lib/notifo/models/iso_day_of_week.rb +1 -1
  150. data/lib/notifo/models/list_response_dto_of_channel_template_dto.rb +229 -0
  151. data/lib/notifo/models/list_response_dto_of_event_dto.rb +1 -1
  152. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +1 -1
  153. data/lib/notifo/models/list_response_dto_of_media_dto.rb +1 -1
  154. data/lib/notifo/models/list_response_dto_of_mobile_push_token_dto.rb +1 -1
  155. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +1 -1
  156. data/lib/notifo/models/{list_response_dto_of_notification_dto.rb → list_response_dto_of_system_user_dto.rb} +4 -4
  157. data/lib/notifo/models/list_response_dto_of_template_dto.rb +1 -1
  158. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +1 -1
  159. data/lib/notifo/models/list_response_dto_of_user_dto.rb +1 -1
  160. data/lib/notifo/models/list_response_dto_of_user_notification_details_dto.rb +229 -0
  161. data/lib/notifo/models/list_response_dto_of_user_notification_dto.rb +229 -0
  162. data/lib/notifo/models/localized_text.rb +1 -1
  163. data/lib/notifo/models/log_entry_dto.rb +1 -1
  164. data/lib/notifo/models/media_dto.rb +42 -12
  165. data/lib/notifo/models/media_metadata.rb +1 -1
  166. data/lib/notifo/models/media_type.rb +1 -1
  167. data/lib/notifo/models/messaging_template_dto.rb +212 -0
  168. data/lib/notifo/models/mobile_device_type.rb +1 -1
  169. data/lib/notifo/models/mobile_push_token_dto.rb +33 -6
  170. data/lib/notifo/models/mobile_push_token_dto2.rb +232 -0
  171. data/lib/notifo/models/notification_formatting_dto.rb +1 -6
  172. data/lib/notifo/models/{event_properties.rb → notification_properties.rb} +4 -4
  173. data/lib/notifo/models/{email_verification_status.rb → process_status.rb} +8 -7
  174. data/lib/notifo/models/profile_dto.rb +14 -2
  175. data/lib/notifo/models/{integration_property_type.rb → property_type.rb} +4 -4
  176. data/lib/notifo/models/publish_dto.rb +26 -2
  177. data/lib/notifo/models/publish_many_dto.rb +1 -1
  178. data/lib/notifo/models/register_mobile_token_dto.rb +16 -5
  179. data/lib/notifo/models/resize_mode.rb +1 -1
  180. data/lib/notifo/models/scheduling_dto.rb +1 -1
  181. data/lib/notifo/models/scheduling_type.rb +1 -1
  182. data/lib/notifo/models/{email_templates_dto.rb → send_configuration.rb} +4 -4
  183. data/lib/notifo/models/sms_template_dto.rb +212 -0
  184. data/lib/notifo/models/subscribe_dto.rb +225 -0
  185. data/lib/notifo/models/{notification_setting_dto.rb → subscribe_many_dto.rb} +25 -24
  186. data/lib/notifo/models/subscription_dto.rb +6 -2
  187. data/lib/notifo/models/system_user_dto.rb +269 -0
  188. data/lib/notifo/models/template_dto.rb +32 -2
  189. data/lib/notifo/models/topic_channel.rb +28 -0
  190. data/lib/notifo/models/topic_dto.rb +69 -3
  191. data/lib/notifo/models/topic_query_scope.rb +29 -0
  192. data/lib/notifo/models/track_notification_dto.rb +12 -2
  193. data/lib/notifo/models/update_channel_template_dto_of_email_template_dto.rb +232 -0
  194. data/lib/notifo/models/update_channel_template_dto_of_messaging_template_dto.rb +232 -0
  195. data/lib/notifo/models/update_channel_template_dto_of_sms_template_dto.rb +232 -0
  196. data/lib/notifo/models/update_integration_dto.rb +19 -3
  197. data/lib/notifo/models/update_profile_dto.rb +1 -1
  198. data/lib/notifo/models/update_system_user_dto.rb +240 -0
  199. data/lib/notifo/models/upsert_app_dto.rb +1 -1
  200. data/lib/notifo/models/upsert_template_dto.rb +1 -1
  201. data/lib/notifo/models/upsert_templates_dto.rb +1 -1
  202. data/lib/notifo/models/upsert_topic_dto.rb +249 -0
  203. data/lib/notifo/models/upsert_topics_dto.rb +214 -0
  204. data/lib/notifo/models/upsert_user_dto.rb +15 -13
  205. data/lib/notifo/models/upsert_users_dto.rb +1 -1
  206. data/lib/notifo/models/user_dto.rb +96 -36
  207. data/lib/notifo/models/{notification_dto.rb → user_notification_base_dto.rb} +73 -46
  208. data/lib/notifo/models/user_notification_channel_dto.rb +261 -0
  209. data/lib/notifo/models/user_notification_details_dto.rb +461 -0
  210. data/lib/notifo/models/user_notification_dto.rb +447 -0
  211. data/lib/notifo/models/user_property_dto.rb +234 -0
  212. data/lib/notifo/models/user_topic_dto.rb +265 -0
  213. data/lib/notifo/models/web_push_subscription_dto.rb +212 -0
  214. data/lib/notifo/version.rb +1 -1
  215. data/lib/notifo.rb +55 -12
  216. data/notifo.gemspec +3 -4
  217. data/spec/api/apps_api_spec.rb +20 -20
  218. data/spec/api/configs_api_spec.rb +1 -1
  219. data/spec/api/{user_info_api_spec.rb → diagnostics_api_spec.rb} +13 -11
  220. data/spec/api/email_templates_api_spec.rb +161 -0
  221. data/spec/api/events_api_spec.rb +13 -1
  222. data/spec/api/logs_api_spec.rb +1 -1
  223. data/spec/api/media_api_spec.rb +52 -1
  224. data/spec/api/messaging_templates_api_spec.rb +137 -0
  225. data/spec/api/mobile_push_api_spec.rb +7 -7
  226. data/spec/api/notifications_api_spec.rb +62 -9
  227. data/spec/api/{authorization_api_spec.rb → ping_api_spec.rb} +20 -14
  228. data/spec/api/sms_templates_api_spec.rb +137 -0
  229. data/spec/api/system_users_api_spec.rb +114 -0
  230. data/spec/api/templates_api_spec.rb +2 -2
  231. data/spec/api/topics_api_spec.rb +26 -1
  232. data/spec/api/user_api_spec.rb +43 -8
  233. data/spec/api/users_api_spec.rb +41 -13
  234. data/spec/api_client_spec.rb +1 -1
  235. data/spec/configuration_spec.rb +4 -4
  236. data/spec/models/add_allowed_topic_dto_spec.rb +1 -1
  237. data/spec/models/add_contributor_dto_spec.rb +1 -1
  238. data/spec/models/admin_profile_dto_spec.rb +40 -0
  239. data/spec/models/app_contributor_dto_spec.rb +1 -1
  240. data/spec/models/app_details_dto_spec.rb +4 -40
  241. data/spec/models/app_dto_spec.rb +13 -1
  242. data/spec/models/app_id_media_body_spec.rb +1 -1
  243. data/spec/models/{notification_send_spec.rb → channel_condition_spec.rb} +7 -7
  244. data/spec/models/channel_send_info_dto_spec.rb +76 -0
  245. data/spec/models/{event_properties_spec.rb → channel_send_spec.rb} +7 -7
  246. data/spec/models/channel_setting_dto_spec.rb +64 -0
  247. data/spec/models/channel_template_details_dto_of_email_template_dto_spec.rb +70 -0
  248. data/spec/models/channel_template_details_dto_of_messaging_template_dto_spec.rb +70 -0
  249. data/spec/models/channel_template_details_dto_of_sms_template_dto_spec.rb +70 -0
  250. data/spec/models/channel_template_dto_spec.rb +64 -0
  251. data/spec/models/configured_integration_dto_spec.rb +7 -1
  252. data/spec/models/configured_integrations_dto_spec.rb +1 -1
  253. data/spec/models/confirm_mode_spec.rb +1 -1
  254. data/spec/models/create_channel_template_dto_spec.rb +40 -0
  255. data/spec/models/{create_email_template_dto_spec.rb → create_channel_template_language_dto_spec.rb} +7 -7
  256. data/spec/models/create_integration_dto_spec.rb +1 -1
  257. data/spec/models/create_system_user_dto_spec.rb +52 -0
  258. data/spec/models/email_formatting_error_spec.rb +58 -0
  259. data/spec/models/{notification_setting_dto_spec.rb → email_preview_dto_spec.rb} +9 -9
  260. data/spec/models/email_preview_request_dto_spec.rb +52 -0
  261. data/spec/models/{email_templates_dto_spec.rb → email_preview_type_spec.rb} +7 -7
  262. data/spec/models/email_template_dto_spec.rb +19 -1
  263. data/spec/models/{integration_properties_spec.rb → email_template_type_spec.rb} +7 -7
  264. data/spec/models/error_dto_spec.rb +7 -1
  265. data/spec/models/event_dto_spec.rb +7 -1
  266. data/spec/models/handled_info_dto_spec.rb +46 -0
  267. data/spec/models/{body_spec.rb → info_dto_spec.rb} +8 -8
  268. data/spec/models/integration_created_dto_spec.rb +1 -1
  269. data/spec/models/integration_definition_dto_spec.rb +1 -1
  270. data/spec/models/integration_property_dto_spec.rb +13 -1
  271. data/spec/models/integration_status_spec.rb +1 -1
  272. data/spec/models/iso_day_of_week_spec.rb +1 -1
  273. data/spec/models/list_response_dto_of_channel_template_dto_spec.rb +46 -0
  274. data/spec/models/list_response_dto_of_event_dto_spec.rb +1 -1
  275. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +1 -1
  276. data/spec/models/list_response_dto_of_media_dto_spec.rb +1 -1
  277. data/spec/models/list_response_dto_of_mobile_push_token_dto_spec.rb +1 -1
  278. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +1 -1
  279. data/spec/models/{list_response_dto_of_notification_dto_spec.rb → list_response_dto_of_system_user_dto_spec.rb} +7 -7
  280. data/spec/models/list_response_dto_of_template_dto_spec.rb +1 -1
  281. data/spec/models/list_response_dto_of_topic_dto_spec.rb +1 -1
  282. data/spec/models/list_response_dto_of_user_dto_spec.rb +1 -1
  283. data/spec/models/list_response_dto_of_user_notification_details_dto_spec.rb +46 -0
  284. data/spec/models/list_response_dto_of_user_notification_dto_spec.rb +46 -0
  285. data/spec/models/localized_text_spec.rb +1 -1
  286. data/spec/models/log_entry_dto_spec.rb +1 -1
  287. data/spec/models/media_dto_spec.rb +14 -2
  288. data/spec/models/media_metadata_spec.rb +1 -1
  289. data/spec/models/media_type_spec.rb +1 -1
  290. data/spec/models/messaging_template_dto_spec.rb +40 -0
  291. data/spec/models/mobile_device_type_spec.rb +1 -1
  292. data/spec/models/mobile_push_token_dto2_spec.rb +52 -0
  293. data/spec/models/mobile_push_token_dto_spec.rb +13 -1
  294. data/spec/models/notification_formatting_dto_spec.rb +1 -1
  295. data/spec/models/notification_properties_spec.rb +34 -0
  296. data/spec/models/process_status_spec.rb +34 -0
  297. data/spec/models/profile_dto_spec.rb +7 -1
  298. data/spec/models/property_type_spec.rb +34 -0
  299. data/spec/models/publish_dto_spec.rb +25 -1
  300. data/spec/models/publish_many_dto_spec.rb +1 -1
  301. data/spec/models/register_mobile_token_dto_spec.rb +7 -1
  302. data/spec/models/resize_mode_spec.rb +1 -1
  303. data/spec/models/scheduling_dto_spec.rb +1 -1
  304. data/spec/models/scheduling_type_spec.rb +1 -1
  305. data/spec/models/send_configuration_spec.rb +34 -0
  306. data/spec/models/{integration_property_type_spec.rb → sms_template_dto_spec.rb} +13 -7
  307. data/spec/models/subscribe_dto_spec.rb +46 -0
  308. data/spec/models/subscribe_many_dto_spec.rb +46 -0
  309. data/spec/models/subscription_dto_spec.rb +1 -1
  310. data/spec/models/system_user_dto_spec.rb +64 -0
  311. data/spec/models/template_dto_spec.rb +13 -1
  312. data/spec/models/topic_channel_spec.rb +34 -0
  313. data/spec/models/topic_dto_spec.rb +37 -1
  314. data/spec/models/topic_query_scope_spec.rb +34 -0
  315. data/spec/models/track_notification_dto_spec.rb +7 -1
  316. data/spec/models/update_channel_template_dto_of_email_template_dto_spec.rb +52 -0
  317. data/spec/models/update_channel_template_dto_of_messaging_template_dto_spec.rb +52 -0
  318. data/spec/models/update_channel_template_dto_of_sms_template_dto_spec.rb +52 -0
  319. data/spec/models/update_integration_dto_spec.rb +7 -1
  320. data/spec/models/update_profile_dto_spec.rb +1 -1
  321. data/spec/models/update_system_user_dto_spec.rb +52 -0
  322. data/spec/models/upsert_app_dto_spec.rb +1 -1
  323. data/spec/models/upsert_template_dto_spec.rb +1 -1
  324. data/spec/models/upsert_templates_dto_spec.rb +1 -1
  325. data/spec/models/upsert_topic_dto_spec.rb +64 -0
  326. data/spec/models/upsert_topics_dto_spec.rb +40 -0
  327. data/spec/models/upsert_user_dto_spec.rb +7 -1
  328. data/spec/models/upsert_users_dto_spec.rb +1 -1
  329. data/spec/models/user_dto_spec.rb +43 -1
  330. data/spec/models/{notification_dto_spec.rb → user_notification_base_dto_spec.rb} +29 -11
  331. data/spec/models/user_notification_channel_dto_spec.rb +64 -0
  332. data/spec/models/user_notification_details_dto_spec.rb +166 -0
  333. data/spec/models/user_notification_dto_spec.rb +154 -0
  334. data/spec/models/user_property_dto_spec.rb +52 -0
  335. data/spec/models/user_topic_dto_spec.rb +64 -0
  336. data/spec/models/web_push_subscription_dto_spec.rb +40 -0
  337. data/spec/spec_helper.rb +1 -1
  338. metadata +232 -69
  339. data/docs/AuthorizationApi.md +0 -121
  340. data/docs/IntegrationPropertyType.md +0 -6
  341. data/docs/NotificationSettingDto.md +0 -8
  342. data/docs/UserInfoApi.md +0 -83
  343. data/notifo-io-1.0.1.1.gem +0 -0
  344. data/spec/models/email_verification_status_spec.rb +0 -34
data/docs/UsersApi.md CHANGED
@@ -1,17 +1,19 @@
1
1
  # Notifo::UsersApi
2
2
 
3
- All URIs are relative to *https://notifo.easierlife.com*
3
+ All URIs are relative to *https://notifo-dev.easierlife.com*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
7
  [**users_delete_allowed_topic**](UsersApi.md#users_delete_allowed_topic) | **DELETE** /api/apps/{appId}/users/{id}/allowed-topics/{prefix} | Remove an allowed topic.
8
- [**users_delete_subscription**](UsersApi.md#users_delete_subscription) | **DELETE** /api/apps/{appId}/users/{id}/subscriptions/{prefix} | Remove a user subscriptions.
8
+ [**users_delete_mobile_push_token**](UsersApi.md#users_delete_mobile_push_token) | **DELETE** /api/apps/{appId}/users/{id}/mobilepush/{token} | Remove an web push token.
9
+ [**users_delete_subscription**](UsersApi.md#users_delete_subscription) | **DELETE** /api/apps/{appId}/users/{id}/subscriptions/{prefix} | Unsubscribes a user from a subscription.
9
10
  [**users_delete_user**](UsersApi.md#users_delete_user) | **DELETE** /api/apps/{appId}/users/{id} | Delete a user.
11
+ [**users_delete_web_push_subscription**](UsersApi.md#users_delete_web_push_subscription) | **DELETE** /api/apps/{appId}/users/{id}/webpush/{endpoint} | Remove an web push subscription.
10
12
  [**users_get_subscriptions**](UsersApi.md#users_get_subscriptions) | **GET** /api/apps/{appId}/users/{id}/subscriptions | Query user subscriptions.
11
13
  [**users_get_user**](UsersApi.md#users_get_user) | **GET** /api/apps/{appId}/users/{id} | Get a user.
12
14
  [**users_get_users**](UsersApi.md#users_get_users) | **GET** /api/apps/{appId}/users | Query users.
13
15
  [**users_post_allowed_topic**](UsersApi.md#users_post_allowed_topic) | **POST** /api/apps/{appId}/users/{id}/allowed-topics | Add an allowed topic.
14
- [**users_post_subscription**](UsersApi.md#users_post_subscription) | **POST** /api/apps/{appId}/users/{id}/subscriptions | Upsert a user subscriptions.
16
+ [**users_post_subscriptions**](UsersApi.md#users_post_subscriptions) | **POST** /api/apps/{appId}/users/{id}/subscriptions | Upserts or deletes multiple user subscriptions.
15
17
  [**users_post_users**](UsersApi.md#users_post_users) | **POST** /api/apps/{appId}/users | Upsert users.
16
18
 
17
19
  # **users_delete_allowed_topic**
@@ -26,7 +28,7 @@ require 'notifo'
26
28
 
27
29
  api_instance = Notifo::UsersApi.new
28
30
  app_id = 'app_id_example' # String | The app where the users belong to.
29
- id = 'id_example' # String | The user id.
31
+ id = 'id_example' # String | The user ID.
30
32
  prefix = 'prefix_example' # String | The topic prefix.
31
33
 
32
34
 
@@ -43,7 +45,7 @@ end
43
45
  Name | Type | Description | Notes
44
46
  ------------- | ------------- | ------------- | -------------
45
47
  **app_id** | **String**| The app where the users belong to. |
46
- **id** | **String**| The user id. |
48
+ **id** | **String**| The user ID. |
47
49
  **prefix** | **String**| The topic prefix. |
48
50
 
49
51
  ### Return type
@@ -61,10 +63,57 @@ No authorization required
61
63
 
62
64
 
63
65
 
66
+ # **users_delete_mobile_push_token**
67
+ > users_delete_mobile_push_token(app_id, id, token)
68
+
69
+ Remove an web push token.
70
+
71
+ ### Example
72
+ ```ruby
73
+ # load the gem
74
+ require 'notifo'
75
+
76
+ api_instance = Notifo::UsersApi.new
77
+ app_id = 'app_id_example' # String | The app where the users belong to.
78
+ id = 'id_example' # String | The user ID.
79
+ token = 'token_example' # String | The token.
80
+
81
+
82
+ begin
83
+ #Remove an web push token.
84
+ api_instance.users_delete_mobile_push_token(app_id, id, token)
85
+ rescue Notifo::ApiError => e
86
+ puts "Exception when calling UsersApi->users_delete_mobile_push_token: #{e}"
87
+ end
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ Name | Type | Description | Notes
93
+ ------------- | ------------- | ------------- | -------------
94
+ **app_id** | **String**| The app where the users belong to. |
95
+ **id** | **String**| The user ID. |
96
+ **token** | **String**| The token. |
97
+
98
+ ### Return type
99
+
100
+ nil (empty response body)
101
+
102
+ ### Authorization
103
+
104
+ No authorization required
105
+
106
+ ### HTTP request headers
107
+
108
+ - **Content-Type**: Not defined
109
+ - **Accept**: application/json
110
+
111
+
112
+
64
113
  # **users_delete_subscription**
65
114
  > users_delete_subscription(app_id, id, prefix)
66
115
 
67
- Remove a user subscriptions.
116
+ Unsubscribes a user from a subscription.
68
117
 
69
118
  ### Example
70
119
  ```ruby
@@ -73,12 +122,12 @@ require 'notifo'
73
122
 
74
123
  api_instance = Notifo::UsersApi.new
75
124
  app_id = 'app_id_example' # String | The app where the user belongs to.
76
- id = 'id_example' # String | The user id.
125
+ id = 'id_example' # String | The user ID.
77
126
  prefix = 'prefix_example' # String | The topic prefix.
78
127
 
79
128
 
80
129
  begin
81
- #Remove a user subscriptions.
130
+ #Unsubscribes a user from a subscription.
82
131
  api_instance.users_delete_subscription(app_id, id, prefix)
83
132
  rescue Notifo::ApiError => e
84
133
  puts "Exception when calling UsersApi->users_delete_subscription: #{e}"
@@ -90,7 +139,7 @@ end
90
139
  Name | Type | Description | Notes
91
140
  ------------- | ------------- | ------------- | -------------
92
141
  **app_id** | **String**| The app where the user belongs to. |
93
- **id** | **String**| The user id. |
142
+ **id** | **String**| The user ID. |
94
143
  **prefix** | **String**| The topic prefix. |
95
144
 
96
145
  ### Return type
@@ -109,7 +158,7 @@ No authorization required
109
158
 
110
159
 
111
160
  # **users_delete_user**
112
- > ListResponseDtoOfUserDto users_delete_user(app_id, id)
161
+ > users_delete_user(app_id, id)
113
162
 
114
163
  Delete a user.
115
164
 
@@ -125,8 +174,7 @@ id = 'id_example' # String | The user id to delete.
125
174
 
126
175
  begin
127
176
  #Delete a user.
128
- result = api_instance.users_delete_user(app_id, id)
129
- p result
177
+ api_instance.users_delete_user(app_id, id)
130
178
  rescue Notifo::ApiError => e
131
179
  puts "Exception when calling UsersApi->users_delete_user: #{e}"
132
180
  end
@@ -141,7 +189,54 @@ Name | Type | Description | Notes
141
189
 
142
190
  ### Return type
143
191
 
144
- [**ListResponseDtoOfUserDto**](ListResponseDtoOfUserDto.md)
192
+ nil (empty response body)
193
+
194
+ ### Authorization
195
+
196
+ No authorization required
197
+
198
+ ### HTTP request headers
199
+
200
+ - **Content-Type**: Not defined
201
+ - **Accept**: application/json
202
+
203
+
204
+
205
+ # **users_delete_web_push_subscription**
206
+ > users_delete_web_push_subscription(app_id, id, endpoint)
207
+
208
+ Remove an web push subscription.
209
+
210
+ ### Example
211
+ ```ruby
212
+ # load the gem
213
+ require 'notifo'
214
+
215
+ api_instance = Notifo::UsersApi.new
216
+ app_id = 'app_id_example' # String | The app where the users belong to.
217
+ id = 'id_example' # String | The user ID.
218
+ endpoint = 'endpoint_example' # String | The endpoint.
219
+
220
+
221
+ begin
222
+ #Remove an web push subscription.
223
+ api_instance.users_delete_web_push_subscription(app_id, id, endpoint)
224
+ rescue Notifo::ApiError => e
225
+ puts "Exception when calling UsersApi->users_delete_web_push_subscription: #{e}"
226
+ end
227
+ ```
228
+
229
+ ### Parameters
230
+
231
+ Name | Type | Description | Notes
232
+ ------------- | ------------- | ------------- | -------------
233
+ **app_id** | **String**| The app where the users belong to. |
234
+ **id** | **String**| The user ID. |
235
+ **endpoint** | **String**| The endpoint. |
236
+
237
+ ### Return type
238
+
239
+ nil (empty response body)
145
240
 
146
241
  ### Authorization
147
242
 
@@ -166,7 +261,7 @@ require 'notifo'
166
261
 
167
262
  api_instance = Notifo::UsersApi.new
168
263
  app_id = 'app_id_example' # String | The app where the user belongs to.
169
- id = 'id_example' # String | The user id.
264
+ id = 'id_example' # String | The user ID.
170
265
  opts = {
171
266
  query: 'query_example', # String | The optional query to search for items.
172
267
  take: 56, # Integer | The number of items to return.
@@ -187,7 +282,7 @@ end
187
282
  Name | Type | Description | Notes
188
283
  ------------- | ------------- | ------------- | -------------
189
284
  **app_id** | **String**| The app where the user belongs to. |
190
- **id** | **String**| The user id. |
285
+ **id** | **String**| The user ID. |
191
286
  **query** | **String**| The optional query to search for items. | [optional]
192
287
  **take** | **Integer**| The number of items to return. | [optional]
193
288
  **skip** | **Integer**| The number of items to skip. | [optional]
@@ -208,7 +303,7 @@ No authorization required
208
303
 
209
304
 
210
305
  # **users_get_user**
211
- > ListResponseDtoOfUserDto users_get_user(app_id, id)
306
+ > UserDto users_get_user(app_id, id, opts)
212
307
 
213
308
  Get a user.
214
309
 
@@ -219,12 +314,14 @@ require 'notifo'
219
314
 
220
315
  api_instance = Notifo::UsersApi.new
221
316
  app_id = 'app_id_example' # String | The app where the user belongs to.
222
- id = 'id_example' # String | The user id.
223
-
317
+ id = 'id_example' # String | The user ID.
318
+ opts = {
319
+ with_details: false # BOOLEAN | Provide extra details, might be expensive.
320
+ }
224
321
 
225
322
  begin
226
323
  #Get a user.
227
- result = api_instance.users_get_user(app_id, id)
324
+ result = api_instance.users_get_user(app_id, id, opts)
228
325
  p result
229
326
  rescue Notifo::ApiError => e
230
327
  puts "Exception when calling UsersApi->users_get_user: #{e}"
@@ -236,11 +333,12 @@ end
236
333
  Name | Type | Description | Notes
237
334
  ------------- | ------------- | ------------- | -------------
238
335
  **app_id** | **String**| The app where the user belongs to. |
239
- **id** | **String**| The user id. |
336
+ **id** | **String**| The user ID. |
337
+ **with_details** | **BOOLEAN**| Provide extra details, might be expensive. | [optional] [default to false]
240
338
 
241
339
  ### Return type
242
340
 
243
- [**ListResponseDtoOfUserDto**](ListResponseDtoOfUserDto.md)
341
+ [**UserDto**](UserDto.md)
244
342
 
245
343
  ### Authorization
246
344
 
@@ -268,7 +366,8 @@ app_id = 'app_id_example' # String | The app where the users belongs to.
268
366
  opts = {
269
367
  query: 'query_example', # String | The optional query to search for items.
270
368
  take: 56, # Integer | The number of items to return.
271
- skip: 56 # Integer | The number of items to skip.
369
+ skip: 56, # Integer | The number of items to skip.
370
+ with_details: false # BOOLEAN | Provide extra details, might be expensive.
272
371
  }
273
372
 
274
373
  begin
@@ -288,6 +387,7 @@ Name | Type | Description | Notes
288
387
  **query** | **String**| The optional query to search for items. | [optional]
289
388
  **take** | **Integer**| The number of items to return. | [optional]
290
389
  **skip** | **Integer**| The number of items to skip. | [optional]
390
+ **with_details** | **BOOLEAN**| Provide extra details, might be expensive. | [optional] [default to false]
291
391
 
292
392
  ### Return type
293
393
 
@@ -317,7 +417,7 @@ require 'notifo'
317
417
  api_instance = Notifo::UsersApi.new
318
418
  body = Notifo::AddAllowedTopicDto.new # AddAllowedTopicDto | The upsert request.
319
419
  app_id = 'app_id_example' # String | The app where the users belong to.
320
- id = 'id_example' # String | The user id.
420
+ id = 'id_example' # String | The user ID.
321
421
 
322
422
 
323
423
  begin
@@ -334,7 +434,7 @@ Name | Type | Description | Notes
334
434
  ------------- | ------------- | ------------- | -------------
335
435
  **body** | [**AddAllowedTopicDto**](AddAllowedTopicDto.md)| The upsert request. |
336
436
  **app_id** | **String**| The app where the users belong to. |
337
- **id** | **String**| The user id. |
437
+ **id** | **String**| The user ID. |
338
438
 
339
439
  ### Return type
340
440
 
@@ -351,10 +451,10 @@ No authorization required
351
451
 
352
452
 
353
453
 
354
- # **users_post_subscription**
355
- > users_post_subscription(bodyapp_idid)
454
+ # **users_post_subscriptions**
455
+ > users_post_subscriptions(bodyapp_idid)
356
456
 
357
- Upsert a user subscriptions.
457
+ Upserts or deletes multiple user subscriptions.
358
458
 
359
459
  ### Example
360
460
  ```ruby
@@ -362,16 +462,16 @@ Upsert a user subscriptions.
362
462
  require 'notifo'
363
463
 
364
464
  api_instance = Notifo::UsersApi.new
365
- body = Notifo::SubscriptionDto.new # SubscriptionDto | The subscription object.
465
+ body = Notifo::SubscribeManyDto.new # SubscribeManyDto | The subscription object.
366
466
  app_id = 'app_id_example' # String | The app where the user belongs to.
367
- id = 'id_example' # String | The user id.
467
+ id = 'id_example' # String | The user ID.
368
468
 
369
469
 
370
470
  begin
371
- #Upsert a user subscriptions.
372
- api_instance.users_post_subscription(bodyapp_idid)
471
+ #Upserts or deletes multiple user subscriptions.
472
+ api_instance.users_post_subscriptions(bodyapp_idid)
373
473
  rescue Notifo::ApiError => e
374
- puts "Exception when calling UsersApi->users_post_subscription: #{e}"
474
+ puts "Exception when calling UsersApi->users_post_subscriptions: #{e}"
375
475
  end
376
476
  ```
377
477
 
@@ -379,9 +479,9 @@ end
379
479
 
380
480
  Name | Type | Description | Notes
381
481
  ------------- | ------------- | ------------- | -------------
382
- **body** | [**SubscriptionDto**](SubscriptionDto.md)| The subscription object. |
482
+ **body** | [**SubscribeManyDto**](SubscribeManyDto.md)| The subscription object. |
383
483
  **app_id** | **String**| The app where the user belongs to. |
384
- **id** | **String**| The user id. |
484
+ **id** | **String**| The user ID. |
385
485
 
386
486
  ### Return type
387
487
 
@@ -0,0 +1,7 @@
1
+ # Notifo::WebPushSubscriptionDto
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **endpoint** | **String** | The endpoint. |
7
+
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.26
9
+ Swagger Codegen version: 3.0.36
10
10
  =end
11
11
 
12
12
  module Notifo
@@ -76,66 +76,6 @@ module Notifo
76
76
  end
77
77
  return data, status_code, headers
78
78
  end
79
- # Delete an app email template.
80
- # @param app_id The id of the app where the email templates belong to.
81
- # @param language The language.
82
- # @param [Hash] opts the optional parameters
83
- # @return [nil]
84
- def apps_delete_email_template(app_id, language, opts = {})
85
- apps_delete_email_template_with_http_info(app_id, language, opts)
86
- nil
87
- end
88
-
89
- # Delete an app email template.
90
- # @param app_id The id of the app where the email templates belong to.
91
- # @param language The language.
92
- # @param [Hash] opts the optional parameters
93
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
94
- def apps_delete_email_template_with_http_info(app_id, language, opts = {})
95
- if @api_client.config.debugging
96
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_delete_email_template ...'
97
- end
98
- # verify the required parameter 'app_id' is set
99
- if @api_client.config.client_side_validation && app_id.nil?
100
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_delete_email_template"
101
- end
102
- # verify the required parameter 'language' is set
103
- if @api_client.config.client_side_validation && language.nil?
104
- fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_delete_email_template"
105
- end
106
- # resource path
107
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
108
-
109
- # query parameters
110
- query_params = opts[:query_params] || {}
111
-
112
- # header parameters
113
- header_params = opts[:header_params] || {}
114
- # HTTP header 'Accept' (if needed)
115
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
116
-
117
- # form parameters
118
- form_params = opts[:form_params] || {}
119
-
120
- # http body (model)
121
- post_body = opts[:body]
122
-
123
- return_type = opts[:return_type]
124
-
125
- auth_names = opts[:auth_names] || []
126
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
127
- :header_params => header_params,
128
- :query_params => query_params,
129
- :form_params => form_params,
130
- :body => post_body,
131
- :auth_names => auth_names,
132
- :return_type => return_type)
133
-
134
- if @api_client.config.debugging
135
- @api_client.config.logger.debug "API called: AppsApi#apps_delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
136
- end
137
- return data, status_code, headers
138
- end
139
79
  # Delete an app integration.
140
80
  # @param app_id The id of the app where the email templates belong to.
141
81
  # @param id The id of the integration.
@@ -298,60 +238,6 @@ module Notifo
298
238
  end
299
239
  return data, status_code, headers
300
240
  end
301
- # Get the app email templates.
302
- # @param app_id The id of the app where the email templates belong to.
303
- # @param [Hash] opts the optional parameters
304
- # @return [EmailTemplatesDto]
305
- def apps_get_email_templates(app_id, opts = {})
306
- data, _status_code, _headers = apps_get_email_templates_with_http_info(app_id, opts)
307
- data
308
- end
309
-
310
- # Get the app email templates.
311
- # @param app_id The id of the app where the email templates belong to.
312
- # @param [Hash] opts the optional parameters
313
- # @return [Array<(EmailTemplatesDto, Integer, Hash)>] EmailTemplatesDto data, response status code and response headers
314
- def apps_get_email_templates_with_http_info(app_id, opts = {})
315
- if @api_client.config.debugging
316
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_email_templates ...'
317
- end
318
- # verify the required parameter 'app_id' is set
319
- if @api_client.config.client_side_validation && app_id.nil?
320
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_email_templates"
321
- end
322
- # resource path
323
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
324
-
325
- # query parameters
326
- query_params = opts[:query_params] || {}
327
-
328
- # header parameters
329
- header_params = opts[:header_params] || {}
330
- # HTTP header 'Accept' (if needed)
331
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
332
-
333
- # form parameters
334
- form_params = opts[:form_params] || {}
335
-
336
- # http body (model)
337
- post_body = opts[:body]
338
-
339
- return_type = opts[:return_type] || 'EmailTemplatesDto'
340
-
341
- auth_names = opts[:auth_names] || []
342
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
343
- :header_params => header_params,
344
- :query_params => query_params,
345
- :form_params => form_params,
346
- :body => post_body,
347
- :auth_names => auth_names,
348
- :return_type => return_type)
349
-
350
- if @api_client.config.debugging
351
- @api_client.config.logger.debug "API called: AppsApi#apps_get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
- end
353
- return data, status_code, headers
354
- end
355
241
  # Get the app integrations.
356
242
  # @param app_id The id of the app where the integrations belong to.
357
243
  # @param [Hash] opts the optional parameters
@@ -524,68 +410,6 @@ module Notifo
524
410
  end
525
411
  return data, status_code, headers
526
412
  end
527
- # Create an app email template.
528
- # @param body The request object.
529
- # @param app_id The id of the app where the email templates belong to.
530
- # @param [Hash] opts the optional parameters
531
- # @return [EmailTemplateDto]
532
- def apps_post_email_template(body, app_id, opts = {})
533
- data, _status_code, _headers = apps_post_email_template_with_http_info(body, app_id, opts)
534
- data
535
- end
536
-
537
- # Create an app email template.
538
- # @param body The request object.
539
- # @param app_id The id of the app where the email templates belong to.
540
- # @param [Hash] opts the optional parameters
541
- # @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers
542
- def apps_post_email_template_with_http_info(body, app_id, opts = {})
543
- if @api_client.config.debugging
544
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...'
545
- end
546
- # verify the required parameter 'body' is set
547
- if @api_client.config.client_side_validation && body.nil?
548
- fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_email_template"
549
- end
550
- # verify the required parameter 'app_id' is set
551
- if @api_client.config.client_side_validation && app_id.nil?
552
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_email_template"
553
- end
554
- # resource path
555
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
556
-
557
- # query parameters
558
- query_params = opts[:query_params] || {}
559
-
560
- # header parameters
561
- header_params = opts[:header_params] || {}
562
- # HTTP header 'Accept' (if needed)
563
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
564
- # HTTP header 'Content-Type'
565
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
566
-
567
- # form parameters
568
- form_params = opts[:form_params] || {}
569
-
570
- # http body (model)
571
- post_body = opts[:body] || @api_client.object_to_http_body(body)
572
-
573
- return_type = opts[:return_type] || 'EmailTemplateDto'
574
-
575
- auth_names = opts[:auth_names] || []
576
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
577
- :header_params => header_params,
578
- :query_params => query_params,
579
- :form_params => form_params,
580
- :body => post_body,
581
- :auth_names => auth_names,
582
- :return_type => return_type)
583
-
584
- if @api_client.config.debugging
585
- @api_client.config.logger.debug "API called: AppsApi#apps_post_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
586
- end
587
- return data, status_code, headers
588
- end
589
413
  # Create an app integrations.
590
414
  # @param body The request object.
591
415
  # @param app_id The id of the app where the integration belong to.
@@ -710,74 +534,6 @@ module Notifo
710
534
  end
711
535
  return data, status_code, headers
712
536
  end
713
- # Update an app email template.
714
- # @param body The request object.
715
- # @param app_id The id of the app where the email templates belong to.
716
- # @param language The language.
717
- # @param [Hash] opts the optional parameters
718
- # @return [nil]
719
- def apps_put_email_template(body, app_id, language, opts = {})
720
- apps_put_email_template_with_http_info(body, app_id, language, opts)
721
- nil
722
- end
723
-
724
- # Update an app email template.
725
- # @param body The request object.
726
- # @param app_id The id of the app where the email templates belong to.
727
- # @param language The language.
728
- # @param [Hash] opts the optional parameters
729
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
730
- def apps_put_email_template_with_http_info(body, app_id, language, opts = {})
731
- if @api_client.config.debugging
732
- @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_email_template ...'
733
- end
734
- # verify the required parameter 'body' is set
735
- if @api_client.config.client_side_validation && body.nil?
736
- fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_email_template"
737
- end
738
- # verify the required parameter 'app_id' is set
739
- if @api_client.config.client_side_validation && app_id.nil?
740
- fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_email_template"
741
- end
742
- # verify the required parameter 'language' is set
743
- if @api_client.config.client_side_validation && language.nil?
744
- fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_put_email_template"
745
- end
746
- # resource path
747
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
748
-
749
- # query parameters
750
- query_params = opts[:query_params] || {}
751
-
752
- # header parameters
753
- header_params = opts[:header_params] || {}
754
- # HTTP header 'Accept' (if needed)
755
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
756
- # HTTP header 'Content-Type'
757
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
758
-
759
- # form parameters
760
- form_params = opts[:form_params] || {}
761
-
762
- # http body (model)
763
- post_body = opts[:body] || @api_client.object_to_http_body(body)
764
-
765
- return_type = opts[:return_type]
766
-
767
- auth_names = opts[:auth_names] || []
768
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
769
- :header_params => header_params,
770
- :query_params => query_params,
771
- :form_params => form_params,
772
- :body => post_body,
773
- :auth_names => auth_names,
774
- :return_type => return_type)
775
-
776
- if @api_client.config.debugging
777
- @api_client.config.logger.debug "API called: AppsApi#apps_put_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
778
- end
779
- return data, status_code, headers
780
- end
781
537
  # Update an app integration.
782
538
  # @param body The request object.
783
539
  # @param app_id The id of the app where the integration belong to.
@@ -6,7 +6,7 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 3.0.26
9
+ Swagger Codegen version: 3.0.36
10
10
  =end
11
11
 
12
12
  module Notifo