notifo-io 1.0.1 → 1.0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +510 -8
  3. data/Rakefile +0 -2
  4. data/docs/AddAllowedTopicDto.md +3 -14
  5. data/docs/AddContributorDto.md +4 -16
  6. data/docs/AppContributorDto.md +5 -18
  7. data/docs/AppDetailsDto.md +18 -44
  8. data/docs/AppDto.md +8 -24
  9. data/docs/AppsApi.md +149 -331
  10. data/docs/Body.md +7 -0
  11. data/docs/ConfigsApi.md +21 -61
  12. data/docs/ConfirmMode.md +2 -11
  13. data/docs/CreateEmailTemplateDto.md +3 -14
  14. data/docs/EmailTemplateDto.md +5 -18
  15. data/docs/EmailTemplatesDto.md +6 -0
  16. data/docs/EmailVerificationStatus.md +2 -11
  17. data/docs/ErrorDto.md +7 -22
  18. data/docs/EventDto.md +14 -36
  19. data/docs/EventProperties.md +6 -0
  20. data/docs/EventsApi.md +36 -73
  21. data/docs/IsoDayOfWeek.md +2 -11
  22. data/docs/ListResponseDtoOfEventDto.md +4 -16
  23. data/docs/ListResponseDtoOfLogEntryDto.md +4 -16
  24. data/docs/ListResponseDtoOfMediaDto.md +4 -16
  25. data/docs/ListResponseDtoOfSubscriptionDto.md +4 -16
  26. data/docs/ListResponseDtoOfTemplateDto.md +4 -16
  27. data/docs/ListResponseDtoOfTopicDto.md +4 -16
  28. data/docs/ListResponseDtoOfUserDto.md +4 -16
  29. data/docs/LocalizedText.md +6 -0
  30. data/docs/LogEntryDto.md +6 -20
  31. data/docs/LogsApi.md +21 -40
  32. data/docs/MediaApi.md +102 -196
  33. data/docs/MediaDto.md +9 -26
  34. data/docs/MediaMetadata.md +6 -0
  35. data/docs/MediaType.md +2 -11
  36. data/docs/NotificationFormattingDto.md +10 -28
  37. data/docs/NotificationSend.md +2 -11
  38. data/docs/NotificationSettingDto.md +4 -16
  39. data/docs/ProfileDto.md +10 -28
  40. data/docs/PublishDto.md +12 -32
  41. data/docs/PublishManyDto.md +3 -14
  42. data/docs/ResizeMode.md +2 -11
  43. data/docs/SchedulingDto.md +6 -20
  44. data/docs/SchedulingType.md +2 -11
  45. data/docs/SubscriptionDto.md +4 -16
  46. data/docs/TemplateDto.md +5 -18
  47. data/docs/TemplatesApi.md +51 -106
  48. data/docs/TopicDto.md +5 -18
  49. data/docs/TopicsApi.md +21 -40
  50. data/docs/UpdateProfileDto.md +8 -24
  51. data/docs/UpsertAppDto.md +12 -32
  52. data/docs/UpsertTemplateDto.md +5 -18
  53. data/docs/UpsertTemplatesDto.md +3 -14
  54. data/docs/UpsertUserDto.md +10 -28
  55. data/docs/UpsertUsersDto.md +3 -14
  56. data/docs/UserApi.md +68 -160
  57. data/docs/UserDto.md +12 -32
  58. data/docs/UsersApi.md +144 -308
  59. data/git_push.sh +7 -10
  60. data/lib/notifo.rb +9 -5
  61. data/lib/notifo/api/apps_api.rb +130 -202
  62. data/lib/notifo/api/configs_api.rb +14 -30
  63. data/lib/notifo/api/events_api.rb +29 -45
  64. data/lib/notifo/api/logs_api.rb +12 -21
  65. data/lib/notifo/api/media_api.rb +60 -97
  66. data/lib/notifo/api/templates_api.rb +39 -62
  67. data/lib/notifo/api/topics_api.rb +12 -21
  68. data/lib/notifo/api/user_api.rb +51 -88
  69. data/lib/notifo/api/users_api.rb +121 -186
  70. data/lib/notifo/api_client.rb +54 -56
  71. data/lib/notifo/api_error.rb +5 -5
  72. data/lib/notifo/configuration.rb +12 -84
  73. data/lib/notifo/models/add_allowed_topic_dto.rb +13 -44
  74. data/lib/notifo/models/add_contributor_dto.rb +14 -64
  75. data/lib/notifo/models/app_contributor_dto.rb +15 -84
  76. data/lib/notifo/models/app_details_dto.rb +28 -103
  77. data/lib/notifo/models/app_dto.rb +18 -87
  78. data/lib/notifo/models/{inline_object.rb → body.rb} +16 -29
  79. data/lib/notifo/models/confirm_mode.rb +7 -16
  80. data/lib/notifo/models/create_email_template_dto.rb +13 -44
  81. data/lib/notifo/models/email_template_dto.rb +15 -66
  82. data/lib/notifo/models/email_templates_dto.rb +201 -0
  83. data/lib/notifo/models/email_verification_status.rb +8 -17
  84. data/lib/notifo/models/error_dto.rb +17 -33
  85. data/lib/notifo/models/event_dto.rb +24 -114
  86. data/lib/notifo/models/event_properties.rb +201 -0
  87. data/lib/notifo/models/iso_day_of_week.rb +12 -21
  88. data/lib/notifo/models/list_response_dto_of_event_dto.rb +14 -26
  89. data/lib/notifo/models/list_response_dto_of_log_entry_dto.rb +14 -26
  90. data/lib/notifo/models/list_response_dto_of_media_dto.rb +14 -26
  91. data/lib/notifo/models/list_response_dto_of_subscription_dto.rb +14 -26
  92. data/lib/notifo/models/list_response_dto_of_template_dto.rb +14 -26
  93. data/lib/notifo/models/list_response_dto_of_topic_dto.rb +14 -26
  94. data/lib/notifo/models/list_response_dto_of_user_dto.rb +14 -26
  95. data/lib/notifo/models/localized_text.rb +201 -0
  96. data/lib/notifo/models/log_entry_dto.rb +16 -85
  97. data/lib/notifo/models/media_dto.rb +20 -110
  98. data/lib/notifo/models/media_metadata.rb +201 -0
  99. data/lib/notifo/models/media_type.rb +8 -17
  100. data/lib/notifo/models/notification_formatting_dto.rb +27 -53
  101. data/lib/notifo/models/notification_send.rb +8 -17
  102. data/lib/notifo/models/notification_setting_dto.rb +23 -36
  103. data/lib/notifo/models/profile_dto.rb +20 -73
  104. data/lib/notifo/models/publish_dto.rb +23 -60
  105. data/lib/notifo/models/publish_many_dto.rb +13 -25
  106. data/lib/notifo/models/resize_mode.rb +11 -20
  107. data/lib/notifo/models/scheduling_dto.rb +16 -29
  108. data/lib/notifo/models/scheduling_type.rb +6 -15
  109. data/lib/notifo/models/subscription_dto.rb +14 -46
  110. data/lib/notifo/models/template_dto.rb +15 -46
  111. data/lib/notifo/models/topic_dto.rb +15 -65
  112. data/lib/notifo/models/update_profile_dto.rb +18 -36
  113. data/lib/notifo/models/upsert_app_dto.rb +22 -44
  114. data/lib/notifo/models/upsert_template_dto.rb +15 -47
  115. data/lib/notifo/models/upsert_templates_dto.rb +13 -25
  116. data/lib/notifo/models/upsert_user_dto.rb +20 -40
  117. data/lib/notifo/models/upsert_users_dto.rb +13 -25
  118. data/lib/notifo/models/user_dto.rb +22 -77
  119. data/lib/notifo/version.rb +4 -5
  120. data/notifo.gemspec +7 -7
  121. data/spec/api/apps_api_spec.rb +14 -15
  122. data/spec/api/configs_api_spec.rb +7 -8
  123. data/spec/api/events_api_spec.rb +8 -9
  124. data/spec/api/logs_api_spec.rb +7 -8
  125. data/spec/api/media_api_spec.rb +32 -11
  126. data/spec/api/templates_api_spec.rb +8 -9
  127. data/spec/api/topics_api_spec.rb +7 -8
  128. data/spec/api/user_api_spec.rb +9 -10
  129. data/spec/api/users_api_spec.rb +10 -11
  130. data/spec/api_client_spec.rb +5 -6
  131. data/spec/base_object_spec.rb +109 -0
  132. data/spec/configuration_spec.rb +7 -8
  133. data/spec/models/add_allowed_topic_dto_spec.rb +15 -9
  134. data/spec/models/add_contributor_dto_spec.rb +15 -9
  135. data/spec/models/app_contributor_dto_spec.rb +15 -9
  136. data/spec/models/app_details_dto_spec.rb +15 -9
  137. data/spec/models/app_dto_spec.rb +15 -9
  138. data/spec/models/body_spec.rb +40 -0
  139. data/spec/models/confirm_mode_spec.rb +15 -9
  140. data/spec/models/create_email_template_dto_spec.rb +15 -9
  141. data/spec/models/email_template_dto_spec.rb +15 -9
  142. data/spec/models/email_templates_dto_spec.rb +34 -0
  143. data/spec/models/email_verification_status_spec.rb +15 -9
  144. data/spec/models/error_dto_spec.rb +15 -9
  145. data/spec/models/event_dto_spec.rb +15 -9
  146. data/spec/models/event_properties_spec.rb +34 -0
  147. data/spec/models/iso_day_of_week_spec.rb +15 -9
  148. data/spec/models/list_response_dto_of_event_dto_spec.rb +15 -9
  149. data/spec/models/list_response_dto_of_log_entry_dto_spec.rb +15 -9
  150. data/spec/models/list_response_dto_of_media_dto_spec.rb +15 -9
  151. data/spec/models/list_response_dto_of_subscription_dto_spec.rb +15 -9
  152. data/spec/models/list_response_dto_of_template_dto_spec.rb +15 -9
  153. data/spec/models/list_response_dto_of_topic_dto_spec.rb +15 -9
  154. data/spec/models/list_response_dto_of_user_dto_spec.rb +15 -9
  155. data/spec/models/localized_text_spec.rb +34 -0
  156. data/spec/models/log_entry_dto_spec.rb +15 -9
  157. data/spec/models/media_dto_spec.rb +21 -9
  158. data/spec/models/media_metadata_spec.rb +34 -0
  159. data/spec/models/media_type_spec.rb +15 -9
  160. data/spec/models/notification_formatting_dto_spec.rb +15 -9
  161. data/spec/models/notification_send_spec.rb +15 -9
  162. data/spec/models/notification_setting_dto_spec.rb +16 -10
  163. data/spec/models/profile_dto_spec.rb +15 -9
  164. data/spec/models/publish_dto_spec.rb +15 -9
  165. data/spec/models/publish_many_dto_spec.rb +15 -9
  166. data/spec/models/resize_mode_spec.rb +15 -9
  167. data/spec/models/scheduling_dto_spec.rb +15 -9
  168. data/spec/models/scheduling_type_spec.rb +15 -9
  169. data/spec/models/subscription_dto_spec.rb +15 -9
  170. data/spec/models/template_dto_spec.rb +15 -9
  171. data/spec/models/topic_dto_spec.rb +15 -9
  172. data/spec/models/update_profile_dto_spec.rb +15 -9
  173. data/spec/models/upsert_app_dto_spec.rb +15 -9
  174. data/spec/models/upsert_template_dto_spec.rb +15 -9
  175. data/spec/models/upsert_templates_dto_spec.rb +15 -9
  176. data/spec/models/upsert_user_dto_spec.rb +15 -9
  177. data/spec/models/upsert_users_dto_spec.rb +15 -9
  178. data/spec/models/user_dto_spec.rb +15 -9
  179. data/spec/spec_helper.rb +4 -5
  180. metadata +44 -9
  181. data/docs/InlineObject.md +0 -18
  182. data/notifo-1.0.0.gem +0 -0
  183. data/notifo-io-1.0.0.2.gem +0 -0
  184. data/notifo-io-1.0.0.gem +0 -0
  185. data/spec/models/inline_object_spec.rb +0 -34
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
 
data/lib/notifo.rb CHANGED
@@ -1,13 +1,12 @@
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
12
  # Common files
@@ -22,12 +21,15 @@ require 'notifo/models/add_contributor_dto'
22
21
  require 'notifo/models/app_contributor_dto'
23
22
  require 'notifo/models/app_details_dto'
24
23
  require 'notifo/models/app_dto'
24
+ require 'notifo/models/body'
25
25
  require 'notifo/models/confirm_mode'
26
26
  require 'notifo/models/create_email_template_dto'
27
27
  require 'notifo/models/email_template_dto'
28
+ require 'notifo/models/email_templates_dto'
28
29
  require 'notifo/models/email_verification_status'
29
30
  require 'notifo/models/error_dto'
30
31
  require 'notifo/models/event_dto'
32
+ require 'notifo/models/event_properties'
31
33
  require 'notifo/models/iso_day_of_week'
32
34
  require 'notifo/models/list_response_dto_of_event_dto'
33
35
  require 'notifo/models/list_response_dto_of_log_entry_dto'
@@ -36,8 +38,10 @@ require 'notifo/models/list_response_dto_of_subscription_dto'
36
38
  require 'notifo/models/list_response_dto_of_template_dto'
37
39
  require 'notifo/models/list_response_dto_of_topic_dto'
38
40
  require 'notifo/models/list_response_dto_of_user_dto'
41
+ require 'notifo/models/localized_text'
39
42
  require 'notifo/models/log_entry_dto'
40
43
  require 'notifo/models/media_dto'
44
+ require 'notifo/models/media_metadata'
41
45
  require 'notifo/models/media_type'
42
46
  require 'notifo/models/notification_formatting_dto'
43
47
  require 'notifo/models/notification_send'
@@ -1,17 +1,14 @@
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
12
  module Notifo
16
13
  class AppsApi
17
14
  attr_accessor :api_client
@@ -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