notifo-io-easierlife 1.0.0 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +599 -97
  3. data/Rakefile +0 -2
  4. data/docs/AddAllowedTopicDto.md +4 -15
  5. data/docs/AddContributorDto.md +5 -17
  6. data/docs/AppContributorDto.md +6 -19
  7. data/docs/AppDetailsDto.md +19 -45
  8. data/docs/AppDto.md +9 -25
  9. data/docs/AppsApi.md +181 -363
  10. data/docs/Body.md +7 -0
  11. data/docs/ConfigsApi.md +28 -68
  12. data/docs/ConfirmMode.md +3 -12
  13. data/docs/CreateEmailTemplateDto.md +4 -15
  14. data/docs/EmailTemplateDto.md +6 -19
  15. data/docs/EmailTemplatesDto.md +6 -0
  16. data/docs/EmailVerificationStatus.md +3 -12
  17. data/docs/ErrorDto.md +8 -23
  18. data/docs/EventDto.md +15 -37
  19. data/docs/EventProperties.md +6 -0
  20. data/docs/EventsApi.md +43 -80
  21. data/docs/IsoDayOfWeek.md +3 -12
  22. data/docs/ListResponseDtoOfEventDto.md +5 -17
  23. data/docs/ListResponseDtoOfLogEntryDto.md +5 -17
  24. data/docs/ListResponseDtoOfMediaDto.md +5 -17
  25. data/docs/ListResponseDtoOfSubscriptionDto.md +5 -17
  26. data/docs/ListResponseDtoOfTemplateDto.md +5 -17
  27. data/docs/ListResponseDtoOfTopicDto.md +5 -17
  28. data/docs/ListResponseDtoOfUserDto.md +5 -17
  29. data/docs/LocalizedText.md +6 -0
  30. data/docs/LogEntryDto.md +7 -21
  31. data/docs/LogsApi.md +25 -44
  32. data/docs/MediaApi.md +118 -212
  33. data/docs/MediaDto.md +10 -27
  34. data/docs/MediaMetadata.md +6 -0
  35. data/docs/MediaType.md +3 -12
  36. data/docs/NotificationFormattingDto.md +11 -29
  37. data/docs/NotificationSend.md +3 -12
  38. data/docs/NotificationSettingDto.md +5 -17
  39. data/docs/ProfileDto.md +11 -29
  40. data/docs/PublishDto.md +13 -33
  41. data/docs/PublishManyDto.md +4 -15
  42. data/docs/ResizeMode.md +3 -12
  43. data/docs/SchedulingDto.md +7 -21
  44. data/docs/SchedulingType.md +3 -12
  45. data/docs/SubscriptionDto.md +5 -17
  46. data/docs/TemplateDto.md +6 -19
  47. data/docs/TemplatesApi.md +61 -116
  48. data/docs/TopicDto.md +6 -19
  49. data/docs/TopicsApi.md +25 -44
  50. data/docs/UpdateProfileDto.md +9 -25
  51. data/docs/UpsertAppDto.md +13 -33
  52. data/docs/UpsertTemplateDto.md +6 -19
  53. data/docs/UpsertTemplatesDto.md +4 -15
  54. data/docs/UpsertUserDto.md +11 -29
  55. data/docs/UpsertUsersDto.md +4 -15
  56. data/docs/UserApi.md +84 -176
  57. data/docs/UserDto.md +13 -33
  58. data/docs/UsersApi.md +173 -337
  59. data/git_push.sh +7 -10
  60. data/lib/swagger_client.rb +93 -0
  61. data/lib/{notifo → swagger_client}/api/apps_api.rb +131 -203
  62. data/lib/{notifo → swagger_client}/api/configs_api.rb +15 -31
  63. data/lib/{notifo → swagger_client}/api/events_api.rb +30 -46
  64. data/lib/{notifo → swagger_client}/api/logs_api.rb +13 -22
  65. data/lib/{notifo → swagger_client}/api/media_api.rb +61 -98
  66. data/lib/{notifo → swagger_client}/api/templates_api.rb +40 -63
  67. data/lib/{notifo → swagger_client}/api/topics_api.rb +13 -22
  68. data/lib/{notifo → swagger_client}/api/user_api.rb +52 -89
  69. data/lib/{notifo → swagger_client}/api/users_api.rb +122 -187
  70. data/lib/{notifo → swagger_client}/api_client.rb +55 -57
  71. data/lib/{notifo → swagger_client}/api_error.rb +6 -6
  72. data/lib/{notifo → swagger_client}/configuration.rb +12 -84
  73. data/lib/{notifo → swagger_client}/models/add_allowed_topic_dto.rb +16 -47
  74. data/lib/swagger_client/models/add_contributor_dto.rb +227 -0
  75. data/lib/swagger_client/models/app_contributor_dto.rb +242 -0
  76. data/lib/{notifo → swagger_client}/models/app_details_dto.rb +31 -106
  77. data/lib/{notifo → swagger_client}/models/app_dto.rb +21 -90
  78. data/lib/swagger_client/models/body.rb +206 -0
  79. data/lib/swagger_client/models/confirm_mode.rb +29 -0
  80. data/lib/{notifo → swagger_client}/models/create_email_template_dto.rb +16 -47
  81. data/lib/swagger_client/models/email_template_dto.rb +237 -0
  82. data/lib/swagger_client/models/email_templates_dto.rb +201 -0
  83. data/lib/swagger_client/models/email_verification_status.rb +30 -0
  84. data/lib/{notifo → swagger_client}/models/error_dto.rb +20 -36
  85. data/lib/{notifo → swagger_client}/models/event_dto.rb +27 -117
  86. data/lib/swagger_client/models/event_properties.rb +201 -0
  87. data/lib/swagger_client/models/iso_day_of_week.rb +34 -0
  88. data/lib/{notifo/models/list_response_dto_of_subscription_dto.rb → swagger_client/models/list_response_dto_of_event_dto.rb} +18 -30
  89. data/lib/{notifo → swagger_client}/models/list_response_dto_of_log_entry_dto.rb +17 -29
  90. data/lib/{notifo → swagger_client}/models/list_response_dto_of_media_dto.rb +17 -29
  91. data/lib/{notifo/models/list_response_dto_of_event_dto.rb → swagger_client/models/list_response_dto_of_subscription_dto.rb} +18 -30
  92. data/lib/{notifo → swagger_client}/models/list_response_dto_of_template_dto.rb +17 -29
  93. data/lib/{notifo → swagger_client}/models/list_response_dto_of_topic_dto.rb +17 -29
  94. data/lib/{notifo → swagger_client}/models/list_response_dto_of_user_dto.rb +17 -29
  95. data/lib/swagger_client/models/localized_text.rb +201 -0
  96. data/lib/{notifo → swagger_client}/models/log_entry_dto.rb +19 -88
  97. data/lib/{notifo → swagger_client}/models/media_dto.rb +23 -113
  98. data/lib/swagger_client/models/media_metadata.rb +201 -0
  99. data/lib/swagger_client/models/media_type.rb +30 -0
  100. data/lib/{notifo → swagger_client}/models/notification_formatting_dto.rb +30 -56
  101. data/lib/swagger_client/models/notification_send.rb +30 -0
  102. data/lib/{notifo → swagger_client}/models/notification_setting_dto.rb +26 -39
  103. data/lib/{notifo → swagger_client}/models/profile_dto.rb +23 -76
  104. data/lib/{notifo → swagger_client}/models/publish_dto.rb +26 -63
  105. data/lib/{notifo → swagger_client}/models/publish_many_dto.rb +16 -28
  106. data/lib/swagger_client/models/resize_mode.rb +33 -0
  107. data/lib/{notifo → swagger_client}/models/scheduling_dto.rb +19 -32
  108. data/lib/swagger_client/models/scheduling_type.rb +28 -0
  109. data/lib/{notifo → swagger_client}/models/subscription_dto.rb +17 -49
  110. data/lib/{notifo → swagger_client}/models/template_dto.rb +18 -49
  111. data/lib/{notifo → swagger_client}/models/topic_dto.rb +18 -68
  112. data/lib/{notifo → swagger_client}/models/update_profile_dto.rb +21 -39
  113. data/lib/{notifo → swagger_client}/models/upsert_app_dto.rb +25 -47
  114. data/lib/{notifo → swagger_client}/models/upsert_template_dto.rb +18 -50
  115. data/lib/{notifo → swagger_client}/models/upsert_templates_dto.rb +16 -28
  116. data/lib/{notifo → swagger_client}/models/upsert_user_dto.rb +23 -43
  117. data/lib/{notifo → swagger_client}/models/upsert_users_dto.rb +16 -28
  118. data/lib/{notifo → swagger_client}/models/user_dto.rb +25 -80
  119. data/lib/swagger_client/version.rb +14 -0
  120. data/spec/api/apps_api_spec.rb +14 -15
  121. data/spec/api/configs_api_spec.rb +8 -9
  122. data/spec/api/events_api_spec.rb +9 -10
  123. data/spec/api/logs_api_spec.rb +8 -9
  124. data/spec/api/media_api_spec.rb +13 -14
  125. data/spec/api/templates_api_spec.rb +9 -10
  126. data/spec/api/topics_api_spec.rb +8 -9
  127. data/spec/api/user_api_spec.rb +10 -11
  128. data/spec/api/users_api_spec.rb +11 -12
  129. data/spec/api_client_spec.rb +34 -35
  130. data/spec/base_object_spec.rb +109 -0
  131. data/spec/configuration_spec.rb +7 -8
  132. data/spec/models/add_allowed_topic_dto_spec.rb +16 -10
  133. data/spec/models/add_contributor_dto_spec.rb +16 -10
  134. data/spec/models/app_contributor_dto_spec.rb +16 -10
  135. data/spec/models/app_details_dto_spec.rb +16 -10
  136. data/spec/models/app_dto_spec.rb +16 -10
  137. data/spec/models/body_spec.rb +40 -0
  138. data/spec/models/confirm_mode_spec.rb +16 -10
  139. data/spec/models/create_email_template_dto_spec.rb +16 -10
  140. data/spec/models/email_template_dto_spec.rb +16 -10
  141. data/spec/models/email_templates_dto_spec.rb +34 -0
  142. data/spec/models/email_verification_status_spec.rb +16 -10
  143. data/spec/models/error_dto_spec.rb +16 -10
  144. data/spec/models/event_dto_spec.rb +16 -10
  145. data/spec/models/event_properties_spec.rb +34 -0
  146. data/spec/models/iso_day_of_week_spec.rb +16 -10
  147. data/spec/models/list_response_dto_of_event_dto_spec.rb +16 -10
  148. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +16 -10
  149. data/spec/models/list_response_dto_of_media_dto_spec.rb +16 -10
  150. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +16 -10
  151. data/spec/models/list_response_dto_of_template_dto_spec.rb +16 -10
  152. data/spec/models/list_response_dto_of_topic_dto_spec.rb +16 -10
  153. data/spec/models/list_response_dto_of_user_dto_spec.rb +16 -10
  154. data/spec/models/localized_text_spec.rb +34 -0
  155. data/spec/models/log_entry_dto_spec.rb +16 -10
  156. data/spec/models/media_dto_spec.rb +16 -10
  157. data/spec/models/media_metadata_spec.rb +34 -0
  158. data/spec/models/media_type_spec.rb +16 -10
  159. data/spec/models/notification_formatting_dto_spec.rb +16 -10
  160. data/spec/models/notification_send_spec.rb +16 -10
  161. data/spec/models/notification_setting_dto_spec.rb +17 -11
  162. data/spec/models/profile_dto_spec.rb +16 -10
  163. data/spec/models/publish_dto_spec.rb +16 -10
  164. data/spec/models/publish_many_dto_spec.rb +16 -10
  165. data/spec/models/resize_mode_spec.rb +16 -10
  166. data/spec/models/scheduling_dto_spec.rb +16 -10
  167. data/spec/models/scheduling_type_spec.rb +16 -10
  168. data/spec/models/subscription_dto_spec.rb +16 -10
  169. data/spec/models/template_dto_spec.rb +16 -10
  170. data/spec/models/topic_dto_spec.rb +16 -10
  171. data/spec/models/update_profile_dto_spec.rb +16 -10
  172. data/spec/models/upsert_app_dto_spec.rb +16 -10
  173. data/spec/models/upsert_template_dto_spec.rb +16 -10
  174. data/spec/models/upsert_templates_dto_spec.rb +16 -10
  175. data/spec/models/upsert_user_dto_spec.rb +16 -10
  176. data/spec/models/upsert_users_dto_spec.rb +16 -10
  177. data/spec/models/user_dto_spec.rb +16 -10
  178. data/spec/spec_helper.rb +5 -6
  179. data/{notifo.gemspec → swagger_client.gemspec} +9 -9
  180. metadata +101 -60
  181. data/lib/notifo.rb +0 -89
  182. data/lib/notifo/models/add_contributor_dto.rb +0 -277
  183. data/lib/notifo/models/app_contributor_dto.rb +0 -311
  184. data/lib/notifo/models/confirm_mode.rb +0 -38
  185. data/lib/notifo/models/email_template_dto.rb +0 -288
  186. data/lib/notifo/models/email_verification_status.rb +0 -39
  187. data/lib/notifo/models/iso_day_of_week.rb +0 -43
  188. data/lib/notifo/models/media_type.rb +0 -39
  189. data/lib/notifo/models/notification_send.rb +0 -39
  190. data/lib/notifo/models/resize_mode.rb +0 -42
  191. data/lib/notifo/models/scheduling_type.rb +0 -37
  192. data/lib/notifo/version.rb +0 -15
  193. data/notifo-io-1.0.0.gem +0 -0
data/git_push.sh CHANGED
@@ -1,17 +1,14 @@
1
1
  #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
2
5
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
6
  #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
5
8
 
6
9
  git_user_id=$1
7
10
  git_repo_id=$2
8
11
  release_note=$3
9
- git_host=$4
10
-
11
- if [ "$git_host" = "" ]; then
12
- git_host="github.com"
13
- echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
- fi
15
12
 
16
13
  if [ "$git_user_id" = "" ]; then
17
14
  git_user_id="GIT_USER_ID"
@@ -43,9 +40,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
43
40
 
44
41
  if [ "$GIT_TOKEN" = "" ]; then
45
42
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
- git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
47
44
  else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
49
46
  fi
50
47
 
51
48
  fi
@@ -53,6 +50,6 @@ fi
53
50
  git pull origin master
54
51
 
55
52
  # Pushes (Forces) the changes in the local repository up to the remote repository
56
- echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
57
54
  git push origin master 2>&1 | grep -v 'To https'
58
55
 
@@ -0,0 +1,93 @@
1
+ =begin
2
+ #Notifo API
3
+
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
+
6
+ OpenAPI spec version: 1.0.0
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.24
10
+ =end
11
+
12
+ # Common files
13
+ require 'swagger_client/api_client'
14
+ require 'swagger_client/api_error'
15
+ require 'swagger_client/version'
16
+ require 'swagger_client/configuration'
17
+
18
+ # Models
19
+ require 'swagger_client/models/add_allowed_topic_dto'
20
+ require 'swagger_client/models/add_contributor_dto'
21
+ require 'swagger_client/models/app_contributor_dto'
22
+ require 'swagger_client/models/app_details_dto'
23
+ require 'swagger_client/models/app_dto'
24
+ require 'swagger_client/models/body'
25
+ require 'swagger_client/models/confirm_mode'
26
+ require 'swagger_client/models/create_email_template_dto'
27
+ require 'swagger_client/models/email_template_dto'
28
+ require 'swagger_client/models/email_templates_dto'
29
+ require 'swagger_client/models/email_verification_status'
30
+ require 'swagger_client/models/error_dto'
31
+ require 'swagger_client/models/event_dto'
32
+ require 'swagger_client/models/event_properties'
33
+ require 'swagger_client/models/iso_day_of_week'
34
+ require 'swagger_client/models/list_response_dto_of_event_dto'
35
+ require 'swagger_client/models/list_response_dto_of_log_entry_dto'
36
+ require 'swagger_client/models/list_response_dto_of_media_dto'
37
+ require 'swagger_client/models/list_response_dto_of_subscription_dto'
38
+ require 'swagger_client/models/list_response_dto_of_template_dto'
39
+ require 'swagger_client/models/list_response_dto_of_topic_dto'
40
+ require 'swagger_client/models/list_response_dto_of_user_dto'
41
+ require 'swagger_client/models/localized_text'
42
+ require 'swagger_client/models/log_entry_dto'
43
+ require 'swagger_client/models/media_dto'
44
+ require 'swagger_client/models/media_metadata'
45
+ require 'swagger_client/models/media_type'
46
+ require 'swagger_client/models/notification_formatting_dto'
47
+ require 'swagger_client/models/notification_send'
48
+ require 'swagger_client/models/notification_setting_dto'
49
+ require 'swagger_client/models/profile_dto'
50
+ require 'swagger_client/models/publish_dto'
51
+ require 'swagger_client/models/publish_many_dto'
52
+ require 'swagger_client/models/resize_mode'
53
+ require 'swagger_client/models/scheduling_dto'
54
+ require 'swagger_client/models/scheduling_type'
55
+ require 'swagger_client/models/subscription_dto'
56
+ require 'swagger_client/models/template_dto'
57
+ require 'swagger_client/models/topic_dto'
58
+ require 'swagger_client/models/update_profile_dto'
59
+ require 'swagger_client/models/upsert_app_dto'
60
+ require 'swagger_client/models/upsert_template_dto'
61
+ require 'swagger_client/models/upsert_templates_dto'
62
+ require 'swagger_client/models/upsert_user_dto'
63
+ require 'swagger_client/models/upsert_users_dto'
64
+ require 'swagger_client/models/user_dto'
65
+
66
+ # APIs
67
+ require 'swagger_client/api/apps_api'
68
+ require 'swagger_client/api/configs_api'
69
+ require 'swagger_client/api/events_api'
70
+ require 'swagger_client/api/logs_api'
71
+ require 'swagger_client/api/media_api'
72
+ require 'swagger_client/api/templates_api'
73
+ require 'swagger_client/api/topics_api'
74
+ require 'swagger_client/api/user_api'
75
+ require 'swagger_client/api/users_api'
76
+
77
+ module SwaggerClient
78
+ class << self
79
+ # Customize default settings for the SDK using block.
80
+ # SwaggerClient.configure do |config|
81
+ # config.username = "xxx"
82
+ # config.password = "xxx"
83
+ # end
84
+ # If no block given, return the default Configuration object.
85
+ def configure
86
+ if block_given?
87
+ yield(Configuration.default)
88
+ else
89
+ Configuration.default
90
+ end
91
+ end
92
+ end
93
+ end
@@ -1,18 +1,15 @@
1
1
  =begin
2
2
  #Notifo API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
5
5
 
6
- The version of the OpenAPI document: 1.0.0
7
-
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.1.0-SNAPSHOT
6
+ OpenAPI spec version: 1.0.0
10
7
 
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 3.0.24
11
10
  =end
12
11
 
13
- require 'cgi'
14
-
15
- module Notifo
12
+ module SwaggerClient
16
13
  class AppsApi
17
14
  attr_accessor :api_client
18
15
 
@@ -20,8 +17,8 @@ module Notifo
20
17
  @api_client = api_client
21
18
  end
22
19
  # Delete an app contributor.
23
- # @param app_id [String] The id of the app.
24
- # @param contributor_id [String] The contributor to remove.
20
+ # @param app_id The id of the app.
21
+ # @param contributor_id The contributor to remove.
25
22
  # @param [Hash] opts the optional parameters
26
23
  # @return [AppDetailsDto]
27
24
  def apps_delete_contributor(app_id, contributor_id, opts = {})
@@ -30,8 +27,8 @@ module Notifo
30
27
  end
31
28
 
32
29
  # Delete an app contributor.
33
- # @param app_id [String] The id of the app.
34
- # @param contributor_id [String] The contributor to remove.
30
+ # @param app_id The id of the app.
31
+ # @param contributor_id The contributor to remove.
35
32
  # @param [Hash] opts the optional parameters
36
33
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
37
34
  def apps_delete_contributor_with_http_info(app_id, contributor_id, opts = {})
@@ -47,7 +44,7 @@ module Notifo
47
44
  fail ArgumentError, "Missing the required parameter 'contributor_id' when calling AppsApi.apps_delete_contributor"
48
45
  end
49
46
  # resource path
50
- local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'contributorId' + '}', CGI.escape(contributor_id.to_s))
47
+ local_var_path = '/api/apps/{appId}/contributors/{contributorId}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'contributorId' + '}', contributor_id.to_s)
51
48
 
52
49
  # query parameters
53
50
  query_params = opts[:query_params] || {}
@@ -61,34 +58,27 @@ module Notifo
61
58
  form_params = opts[:form_params] || {}
62
59
 
63
60
  # http body (model)
64
- post_body = opts[:debug_body]
61
+ post_body = opts[:body]
65
62
 
66
- # return_type
67
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
63
+ return_type = opts[:return_type] || 'AppDetailsDto'
68
64
 
69
- # auth_names
70
- auth_names = opts[:debug_auth_names] || []
71
-
72
- new_options = opts.merge(
73
- :operation => :"AppsApi.apps_delete_contributor",
65
+ auth_names = opts[:auth_names] || []
66
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
74
67
  :header_params => header_params,
75
68
  :query_params => query_params,
76
69
  :form_params => form_params,
77
70
  :body => post_body,
78
71
  :auth_names => auth_names,
79
- :return_type => return_type
80
- )
72
+ :return_type => return_type)
81
73
 
82
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
83
74
  if @api_client.config.debugging
84
75
  @api_client.config.logger.debug "API called: AppsApi#apps_delete_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
76
  end
86
77
  return data, status_code, headers
87
78
  end
88
-
89
79
  # Delete an app email template.
90
- # @param app_id [String] The id of the app where the email templates belong to.
91
- # @param language [String] The language.
80
+ # @param app_id The id of the app where the email templates belong to.
81
+ # @param language The language.
92
82
  # @param [Hash] opts the optional parameters
93
83
  # @return [nil]
94
84
  def apps_delete_email_template(app_id, language, opts = {})
@@ -97,8 +87,8 @@ module Notifo
97
87
  end
98
88
 
99
89
  # Delete an app email template.
100
- # @param app_id [String] The id of the app where the email templates belong to.
101
- # @param language [String] The language.
90
+ # @param app_id The id of the app where the email templates belong to.
91
+ # @param language The language.
102
92
  # @param [Hash] opts the optional parameters
103
93
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
104
94
  def apps_delete_email_template_with_http_info(app_id, language, opts = {})
@@ -114,7 +104,7 @@ module Notifo
114
104
  fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_delete_email_template"
115
105
  end
116
106
  # resource path
117
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'language' + '}', CGI.escape(language.to_s))
107
+ local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
118
108
 
119
109
  # query parameters
120
110
  query_params = opts[:query_params] || {}
@@ -128,33 +118,26 @@ module Notifo
128
118
  form_params = opts[:form_params] || {}
129
119
 
130
120
  # http body (model)
131
- post_body = opts[:debug_body]
121
+ post_body = opts[:body]
132
122
 
133
- # return_type
134
- return_type = opts[:debug_return_type]
123
+ return_type = opts[:return_type]
135
124
 
136
- # auth_names
137
- auth_names = opts[:debug_auth_names] || []
138
-
139
- new_options = opts.merge(
140
- :operation => :"AppsApi.apps_delete_email_template",
125
+ auth_names = opts[:auth_names] || []
126
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
141
127
  :header_params => header_params,
142
128
  :query_params => query_params,
143
129
  :form_params => form_params,
144
130
  :body => post_body,
145
131
  :auth_names => auth_names,
146
- :return_type => return_type
147
- )
132
+ :return_type => return_type)
148
133
 
149
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
150
134
  if @api_client.config.debugging
151
135
  @api_client.config.logger.debug "API called: AppsApi#apps_delete_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
136
  end
153
137
  return data, status_code, headers
154
138
  end
155
-
156
139
  # Get app by id.
157
- # @param app_id [String] The id of the app.
140
+ # @param app_id The id of the app.
158
141
  # @param [Hash] opts the optional parameters
159
142
  # @return [AppDetailsDto]
160
143
  def apps_get_app(app_id, opts = {})
@@ -163,7 +146,7 @@ module Notifo
163
146
  end
164
147
 
165
148
  # Get app by id.
166
- # @param app_id [String] The id of the app.
149
+ # @param app_id The id of the app.
167
150
  # @param [Hash] opts the optional parameters
168
151
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
169
152
  def apps_get_app_with_http_info(app_id, opts = {})
@@ -175,7 +158,7 @@ module Notifo
175
158
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_app"
176
159
  end
177
160
  # resource path
178
- local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
161
+ local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
179
162
 
180
163
  # query parameters
181
164
  query_params = opts[:query_params] || {}
@@ -189,31 +172,24 @@ module Notifo
189
172
  form_params = opts[:form_params] || {}
190
173
 
191
174
  # http body (model)
192
- post_body = opts[:debug_body]
175
+ post_body = opts[:body]
193
176
 
194
- # return_type
195
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
177
+ return_type = opts[:return_type] || 'AppDetailsDto'
196
178
 
197
- # auth_names
198
- auth_names = opts[:debug_auth_names] || []
199
-
200
- new_options = opts.merge(
201
- :operation => :"AppsApi.apps_get_app",
179
+ auth_names = opts[:auth_names] || []
180
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
202
181
  :header_params => header_params,
203
182
  :query_params => query_params,
204
183
  :form_params => form_params,
205
184
  :body => post_body,
206
185
  :auth_names => auth_names,
207
- :return_type => return_type
208
- )
186
+ :return_type => return_type)
209
187
 
210
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
211
188
  if @api_client.config.debugging
212
189
  @api_client.config.logger.debug "API called: AppsApi#apps_get_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
190
  end
214
191
  return data, status_code, headers
215
192
  end
216
-
217
193
  # Get the user apps.
218
194
  # @param [Hash] opts the optional parameters
219
195
  # @return [Array<AppDto>]
@@ -244,44 +220,37 @@ module Notifo
244
220
  form_params = opts[:form_params] || {}
245
221
 
246
222
  # http body (model)
247
- post_body = opts[:debug_body]
223
+ post_body = opts[:body]
248
224
 
249
- # return_type
250
- return_type = opts[:debug_return_type] || 'Array<AppDto>'
225
+ return_type = opts[:return_type] || 'Array<AppDto>'
251
226
 
252
- # auth_names
253
- auth_names = opts[:debug_auth_names] || []
254
-
255
- new_options = opts.merge(
256
- :operation => :"AppsApi.apps_get_apps",
227
+ auth_names = opts[:auth_names] || []
228
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
257
229
  :header_params => header_params,
258
230
  :query_params => query_params,
259
231
  :form_params => form_params,
260
232
  :body => post_body,
261
233
  :auth_names => auth_names,
262
- :return_type => return_type
263
- )
234
+ :return_type => return_type)
264
235
 
265
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
266
236
  if @api_client.config.debugging
267
237
  @api_client.config.logger.debug "API called: AppsApi#apps_get_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
268
238
  end
269
239
  return data, status_code, headers
270
240
  end
271
-
272
241
  # Get the app email templates.
273
- # @param app_id [String] The id of the app where the email templates belong to.
242
+ # @param app_id The id of the app where the email templates belong to.
274
243
  # @param [Hash] opts the optional parameters
275
- # @return [Hash<String, EmailTemplateDto>]
244
+ # @return [EmailTemplatesDto]
276
245
  def apps_get_email_templates(app_id, opts = {})
277
246
  data, _status_code, _headers = apps_get_email_templates_with_http_info(app_id, opts)
278
247
  data
279
248
  end
280
249
 
281
250
  # Get the app email templates.
282
- # @param app_id [String] The id of the app where the email templates belong to.
251
+ # @param app_id The id of the app where the email templates belong to.
283
252
  # @param [Hash] opts the optional parameters
284
- # @return [Array<(Hash<String, EmailTemplateDto>, Integer, Hash)>] Hash<String, EmailTemplateDto> data, response status code and response headers
253
+ # @return [Array<(EmailTemplatesDto, Integer, Hash)>] EmailTemplatesDto data, response status code and response headers
285
254
  def apps_get_email_templates_with_http_info(app_id, opts = {})
286
255
  if @api_client.config.debugging
287
256
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_get_email_templates ...'
@@ -291,7 +260,7 @@ module Notifo
291
260
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_get_email_templates"
292
261
  end
293
262
  # resource path
294
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
263
+ local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
295
264
 
296
265
  # query parameters
297
266
  query_params = opts[:query_params] || {}
@@ -305,51 +274,44 @@ module Notifo
305
274
  form_params = opts[:form_params] || {}
306
275
 
307
276
  # http body (model)
308
- post_body = opts[:debug_body]
277
+ post_body = opts[:body]
309
278
 
310
- # return_type
311
- return_type = opts[:debug_return_type] || 'Hash<String, EmailTemplateDto>'
279
+ return_type = opts[:return_type] || 'EmailTemplatesDto'
312
280
 
313
- # auth_names
314
- auth_names = opts[:debug_auth_names] || []
315
-
316
- new_options = opts.merge(
317
- :operation => :"AppsApi.apps_get_email_templates",
281
+ auth_names = opts[:auth_names] || []
282
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
318
283
  :header_params => header_params,
319
284
  :query_params => query_params,
320
285
  :form_params => form_params,
321
286
  :body => post_body,
322
287
  :auth_names => auth_names,
323
- :return_type => return_type
324
- )
288
+ :return_type => return_type)
325
289
 
326
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
327
290
  if @api_client.config.debugging
328
291
  @api_client.config.logger.debug "API called: AppsApi#apps_get_email_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
329
292
  end
330
293
  return data, status_code, headers
331
294
  end
332
-
333
295
  # Create an app.
334
- # @param upsert_app_dto [UpsertAppDto] The request object.
296
+ # @param body The request object.
335
297
  # @param [Hash] opts the optional parameters
336
298
  # @return [AppDto]
337
- def apps_post_app(upsert_app_dto, opts = {})
338
- data, _status_code, _headers = apps_post_app_with_http_info(upsert_app_dto, opts)
299
+ def apps_post_app(body, opts = {})
300
+ data, _status_code, _headers = apps_post_app_with_http_info(body, opts)
339
301
  data
340
302
  end
341
303
 
342
304
  # Create an app.
343
- # @param upsert_app_dto [UpsertAppDto] The request object.
305
+ # @param body The request object.
344
306
  # @param [Hash] opts the optional parameters
345
307
  # @return [Array<(AppDto, Integer, Hash)>] AppDto data, response status code and response headers
346
- def apps_post_app_with_http_info(upsert_app_dto, opts = {})
308
+ def apps_post_app_with_http_info(body, opts = {})
347
309
  if @api_client.config.debugging
348
310
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_app ...'
349
311
  end
350
- # verify the required parameter 'upsert_app_dto' is set
351
- if @api_client.config.client_side_validation && upsert_app_dto.nil?
352
- fail ArgumentError, "Missing the required parameter 'upsert_app_dto' when calling AppsApi.apps_post_app"
312
+ # verify the required parameter 'body' is set
313
+ if @api_client.config.client_side_validation && body.nil?
314
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_app"
353
315
  end
354
316
  # resource path
355
317
  local_var_path = '/api/apps'
@@ -368,60 +330,53 @@ module Notifo
368
330
  form_params = opts[:form_params] || {}
369
331
 
370
332
  # http body (model)
371
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upsert_app_dto)
333
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
372
334
 
373
- # return_type
374
- return_type = opts[:debug_return_type] || 'AppDto'
335
+ return_type = opts[:return_type] || 'AppDto'
375
336
 
376
- # auth_names
377
- auth_names = opts[:debug_auth_names] || []
378
-
379
- new_options = opts.merge(
380
- :operation => :"AppsApi.apps_post_app",
337
+ auth_names = opts[:auth_names] || []
338
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
381
339
  :header_params => header_params,
382
340
  :query_params => query_params,
383
341
  :form_params => form_params,
384
342
  :body => post_body,
385
343
  :auth_names => auth_names,
386
- :return_type => return_type
387
- )
344
+ :return_type => return_type)
388
345
 
389
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
390
346
  if @api_client.config.debugging
391
347
  @api_client.config.logger.debug "API called: AppsApi#apps_post_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
392
348
  end
393
349
  return data, status_code, headers
394
350
  end
395
-
396
351
  # Add an app contributor.
397
- # @param app_id [String] The id of the app.
398
- # @param add_contributor_dto [AddContributorDto] The request object.
352
+ # @param body The request object.
353
+ # @param app_id The id of the app.
399
354
  # @param [Hash] opts the optional parameters
400
355
  # @return [AppDetailsDto]
401
- def apps_post_contributor(app_id, add_contributor_dto, opts = {})
402
- data, _status_code, _headers = apps_post_contributor_with_http_info(app_id, add_contributor_dto, opts)
356
+ def apps_post_contributor(body, app_id, opts = {})
357
+ data, _status_code, _headers = apps_post_contributor_with_http_info(body, app_id, opts)
403
358
  data
404
359
  end
405
360
 
406
361
  # Add an app contributor.
407
- # @param app_id [String] The id of the app.
408
- # @param add_contributor_dto [AddContributorDto] The request object.
362
+ # @param body The request object.
363
+ # @param app_id The id of the app.
409
364
  # @param [Hash] opts the optional parameters
410
365
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
411
- def apps_post_contributor_with_http_info(app_id, add_contributor_dto, opts = {})
366
+ def apps_post_contributor_with_http_info(body, app_id, opts = {})
412
367
  if @api_client.config.debugging
413
368
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_contributor ...'
414
369
  end
370
+ # verify the required parameter 'body' is set
371
+ if @api_client.config.client_side_validation && body.nil?
372
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_contributor"
373
+ end
415
374
  # verify the required parameter 'app_id' is set
416
375
  if @api_client.config.client_side_validation && app_id.nil?
417
376
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_contributor"
418
377
  end
419
- # verify the required parameter 'add_contributor_dto' is set
420
- if @api_client.config.client_side_validation && add_contributor_dto.nil?
421
- fail ArgumentError, "Missing the required parameter 'add_contributor_dto' when calling AppsApi.apps_post_contributor"
422
- end
423
378
  # resource path
424
- local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
379
+ local_var_path = '/api/apps/{appId}/contributors'.sub('{' + 'appId' + '}', app_id.to_s)
425
380
 
426
381
  # query parameters
427
382
  query_params = opts[:query_params] || {}
@@ -437,60 +392,53 @@ module Notifo
437
392
  form_params = opts[:form_params] || {}
438
393
 
439
394
  # http body (model)
440
- post_body = opts[:debug_body] || @api_client.object_to_http_body(add_contributor_dto)
441
-
442
- # return_type
443
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
395
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
444
396
 
445
- # auth_names
446
- auth_names = opts[:debug_auth_names] || []
397
+ return_type = opts[:return_type] || 'AppDetailsDto'
447
398
 
448
- new_options = opts.merge(
449
- :operation => :"AppsApi.apps_post_contributor",
399
+ auth_names = opts[:auth_names] || []
400
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
450
401
  :header_params => header_params,
451
402
  :query_params => query_params,
452
403
  :form_params => form_params,
453
404
  :body => post_body,
454
405
  :auth_names => auth_names,
455
- :return_type => return_type
456
- )
406
+ :return_type => return_type)
457
407
 
458
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
459
408
  if @api_client.config.debugging
460
409
  @api_client.config.logger.debug "API called: AppsApi#apps_post_contributor\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
461
410
  end
462
411
  return data, status_code, headers
463
412
  end
464
-
465
413
  # Create an app email template.
466
- # @param app_id [String] The id of the app where the email templates belong to.
467
- # @param create_email_template_dto [CreateEmailTemplateDto] The request object.
414
+ # @param body The request object.
415
+ # @param app_id The id of the app where the email templates belong to.
468
416
  # @param [Hash] opts the optional parameters
469
417
  # @return [EmailTemplateDto]
470
- def apps_post_email_template(app_id, create_email_template_dto, opts = {})
471
- data, _status_code, _headers = apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts)
418
+ def apps_post_email_template(body, app_id, opts = {})
419
+ data, _status_code, _headers = apps_post_email_template_with_http_info(body, app_id, opts)
472
420
  data
473
421
  end
474
422
 
475
423
  # Create an app email template.
476
- # @param app_id [String] The id of the app where the email templates belong to.
477
- # @param create_email_template_dto [CreateEmailTemplateDto] The request object.
424
+ # @param body The request object.
425
+ # @param app_id The id of the app where the email templates belong to.
478
426
  # @param [Hash] opts the optional parameters
479
427
  # @return [Array<(EmailTemplateDto, Integer, Hash)>] EmailTemplateDto data, response status code and response headers
480
- def apps_post_email_template_with_http_info(app_id, create_email_template_dto, opts = {})
428
+ def apps_post_email_template_with_http_info(body, app_id, opts = {})
481
429
  if @api_client.config.debugging
482
430
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_post_email_template ...'
483
431
  end
432
+ # verify the required parameter 'body' is set
433
+ if @api_client.config.client_side_validation && body.nil?
434
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_post_email_template"
435
+ end
484
436
  # verify the required parameter 'app_id' is set
485
437
  if @api_client.config.client_side_validation && app_id.nil?
486
438
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_post_email_template"
487
439
  end
488
- # verify the required parameter 'create_email_template_dto' is set
489
- if @api_client.config.client_side_validation && create_email_template_dto.nil?
490
- fail ArgumentError, "Missing the required parameter 'create_email_template_dto' when calling AppsApi.apps_post_email_template"
491
- end
492
440
  # resource path
493
- local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
441
+ local_var_path = '/api/apps/{appId}/email-templates'.sub('{' + 'appId' + '}', app_id.to_s)
494
442
 
495
443
  # query parameters
496
444
  query_params = opts[:query_params] || {}
@@ -506,60 +454,53 @@ module Notifo
506
454
  form_params = opts[:form_params] || {}
507
455
 
508
456
  # http body (model)
509
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_email_template_dto)
510
-
511
- # return_type
512
- return_type = opts[:debug_return_type] || 'EmailTemplateDto'
457
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
513
458
 
514
- # auth_names
515
- auth_names = opts[:debug_auth_names] || []
459
+ return_type = opts[:return_type] || 'EmailTemplateDto'
516
460
 
517
- new_options = opts.merge(
518
- :operation => :"AppsApi.apps_post_email_template",
461
+ auth_names = opts[:auth_names] || []
462
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
519
463
  :header_params => header_params,
520
464
  :query_params => query_params,
521
465
  :form_params => form_params,
522
466
  :body => post_body,
523
467
  :auth_names => auth_names,
524
- :return_type => return_type
525
- )
468
+ :return_type => return_type)
526
469
 
527
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
528
470
  if @api_client.config.debugging
529
471
  @api_client.config.logger.debug "API called: AppsApi#apps_post_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
530
472
  end
531
473
  return data, status_code, headers
532
474
  end
533
-
534
475
  # Update an app.
535
- # @param app_id [String] The app id to update.
536
- # @param upsert_app_dto [UpsertAppDto] The request object.
476
+ # @param body The request object.
477
+ # @param app_id The app id to update.
537
478
  # @param [Hash] opts the optional parameters
538
479
  # @return [AppDetailsDto]
539
- def apps_put_app(app_id, upsert_app_dto, opts = {})
540
- data, _status_code, _headers = apps_put_app_with_http_info(app_id, upsert_app_dto, opts)
480
+ def apps_put_app(body, app_id, opts = {})
481
+ data, _status_code, _headers = apps_put_app_with_http_info(body, app_id, opts)
541
482
  data
542
483
  end
543
484
 
544
485
  # Update an app.
545
- # @param app_id [String] The app id to update.
546
- # @param upsert_app_dto [UpsertAppDto] The request object.
486
+ # @param body The request object.
487
+ # @param app_id The app id to update.
547
488
  # @param [Hash] opts the optional parameters
548
489
  # @return [Array<(AppDetailsDto, Integer, Hash)>] AppDetailsDto data, response status code and response headers
549
- def apps_put_app_with_http_info(app_id, upsert_app_dto, opts = {})
490
+ def apps_put_app_with_http_info(body, app_id, opts = {})
550
491
  if @api_client.config.debugging
551
492
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_app ...'
552
493
  end
494
+ # verify the required parameter 'body' is set
495
+ if @api_client.config.client_side_validation && body.nil?
496
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_app"
497
+ end
553
498
  # verify the required parameter 'app_id' is set
554
499
  if @api_client.config.client_side_validation && app_id.nil?
555
500
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_app"
556
501
  end
557
- # verify the required parameter 'upsert_app_dto' is set
558
- if @api_client.config.client_side_validation && upsert_app_dto.nil?
559
- fail ArgumentError, "Missing the required parameter 'upsert_app_dto' when calling AppsApi.apps_put_app"
560
- end
561
502
  # resource path
562
- local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s))
503
+ local_var_path = '/api/apps/{appId}'.sub('{' + 'appId' + '}', app_id.to_s)
563
504
 
564
505
  # query parameters
565
506
  query_params = opts[:query_params] || {}
@@ -575,52 +516,49 @@ module Notifo
575
516
  form_params = opts[:form_params] || {}
576
517
 
577
518
  # http body (model)
578
- post_body = opts[:debug_body] || @api_client.object_to_http_body(upsert_app_dto)
519
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
579
520
 
580
- # return_type
581
- return_type = opts[:debug_return_type] || 'AppDetailsDto'
521
+ return_type = opts[:return_type] || 'AppDetailsDto'
582
522
 
583
- # auth_names
584
- auth_names = opts[:debug_auth_names] || []
585
-
586
- new_options = opts.merge(
587
- :operation => :"AppsApi.apps_put_app",
523
+ auth_names = opts[:auth_names] || []
524
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
588
525
  :header_params => header_params,
589
526
  :query_params => query_params,
590
527
  :form_params => form_params,
591
528
  :body => post_body,
592
529
  :auth_names => auth_names,
593
- :return_type => return_type
594
- )
530
+ :return_type => return_type)
595
531
 
596
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
597
532
  if @api_client.config.debugging
598
533
  @api_client.config.logger.debug "API called: AppsApi#apps_put_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
534
  end
600
535
  return data, status_code, headers
601
536
  end
602
-
603
537
  # Update an app email template.
604
- # @param app_id [String] The id of the app where the email templates belong to.
605
- # @param language [String] The language.
606
- # @param email_template_dto [EmailTemplateDto] The request object.
538
+ # @param body The request object.
539
+ # @param app_id The id of the app where the email templates belong to.
540
+ # @param language The language.
607
541
  # @param [Hash] opts the optional parameters
608
542
  # @return [nil]
609
- def apps_put_email_template(app_id, language, email_template_dto, opts = {})
610
- apps_put_email_template_with_http_info(app_id, language, email_template_dto, opts)
543
+ def apps_put_email_template(body, app_id, language, opts = {})
544
+ apps_put_email_template_with_http_info(body, app_id, language, opts)
611
545
  nil
612
546
  end
613
547
 
614
548
  # Update an app email template.
615
- # @param app_id [String] The id of the app where the email templates belong to.
616
- # @param language [String] The language.
617
- # @param email_template_dto [EmailTemplateDto] The request object.
549
+ # @param body The request object.
550
+ # @param app_id The id of the app where the email templates belong to.
551
+ # @param language The language.
618
552
  # @param [Hash] opts the optional parameters
619
553
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
620
- def apps_put_email_template_with_http_info(app_id, language, email_template_dto, opts = {})
554
+ def apps_put_email_template_with_http_info(body, app_id, language, opts = {})
621
555
  if @api_client.config.debugging
622
556
  @api_client.config.logger.debug 'Calling API: AppsApi.apps_put_email_template ...'
623
557
  end
558
+ # verify the required parameter 'body' is set
559
+ if @api_client.config.client_side_validation && body.nil?
560
+ fail ArgumentError, "Missing the required parameter 'body' when calling AppsApi.apps_put_email_template"
561
+ end
624
562
  # verify the required parameter 'app_id' is set
625
563
  if @api_client.config.client_side_validation && app_id.nil?
626
564
  fail ArgumentError, "Missing the required parameter 'app_id' when calling AppsApi.apps_put_email_template"
@@ -629,12 +567,8 @@ module Notifo
629
567
  if @api_client.config.client_side_validation && language.nil?
630
568
  fail ArgumentError, "Missing the required parameter 'language' when calling AppsApi.apps_put_email_template"
631
569
  end
632
- # verify the required parameter 'email_template_dto' is set
633
- if @api_client.config.client_side_validation && email_template_dto.nil?
634
- fail ArgumentError, "Missing the required parameter 'email_template_dto' when calling AppsApi.apps_put_email_template"
635
- end
636
570
  # resource path
637
- local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', CGI.escape(app_id.to_s)).sub('{' + 'language' + '}', CGI.escape(language.to_s))
571
+ local_var_path = '/api/apps/{appId}/email-templates/{language}'.sub('{' + 'appId' + '}', app_id.to_s).sub('{' + 'language' + '}', language.to_s)
638
572
 
639
573
  # query parameters
640
574
  query_params = opts[:query_params] || {}
@@ -650,25 +584,19 @@ module Notifo
650
584
  form_params = opts[:form_params] || {}
651
585
 
652
586
  # http body (model)
653
- post_body = opts[:debug_body] || @api_client.object_to_http_body(email_template_dto)
654
-
655
- # return_type
656
- return_type = opts[:debug_return_type]
587
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
657
588
 
658
- # auth_names
659
- auth_names = opts[:debug_auth_names] || []
589
+ return_type = opts[:return_type]
660
590
 
661
- new_options = opts.merge(
662
- :operation => :"AppsApi.apps_put_email_template",
591
+ auth_names = opts[:auth_names] || []
592
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
663
593
  :header_params => header_params,
664
594
  :query_params => query_params,
665
595
  :form_params => form_params,
666
596
  :body => post_body,
667
597
  :auth_names => auth_names,
668
- :return_type => return_type
669
- )
598
+ :return_type => return_type)
670
599
 
671
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
672
600
  if @api_client.config.debugging
673
601
  @api_client.config.logger.debug "API called: AppsApi#apps_put_email_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
674
602
  end