sib-api-v3-sdk 5.2.3 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (457) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/LICENSE.md +1 -1
  4. data/README.md +96 -68
  5. data/docs/AbTestCampaignResult.md +13 -0
  6. data/docs/AccountApi.md +3 -3
  7. data/docs/AddContactToList.md +1 -1
  8. data/docs/AttributesApi.md +18 -18
  9. data/docs/ContactsApi.md +123 -60
  10. data/docs/CreateAttribute.md +1 -1
  11. data/docs/CreateChild.md +1 -0
  12. data/docs/CreateContact.md +3 -3
  13. data/docs/CreateDoiContact.md +13 -0
  14. data/docs/CreateEmailCampaign.md +6 -3
  15. data/docs/CreateEmailCampaignSender.md +1 -0
  16. data/docs/CreateReseller.md +1 -0
  17. data/docs/CreateSender.md +1 -1
  18. data/docs/CreateSmtpEmail.md +1 -1
  19. data/docs/CreateSmtpTemplate.md +1 -1
  20. data/docs/CreateSmtpTemplateSender.md +1 -0
  21. data/docs/CreateWebhook.md +2 -2
  22. data/docs/EmailCampaignsApi.md +202 -25
  23. data/docs/EmailExportRecipients.md +1 -1
  24. data/docs/FoldersApi.md +12 -12
  25. data/docs/GetAccountRelay.md +1 -1
  26. data/docs/GetAccountRelayData.md +1 -1
  27. data/docs/GetChildAccountCreationStatus.md +8 -0
  28. data/docs/GetChildrenList.md +1 -0
  29. data/docs/GetDeviceBrowserStats.md +11 -0
  30. data/docs/GetEmailCampaign.md +1 -0
  31. data/docs/GetExtendedCampaignOverview.md +1 -0
  32. data/docs/GetExtendedCampaignOverviewSender.md +1 -0
  33. data/docs/GetExtendedCampaignStats.md +2 -0
  34. data/docs/GetSharedTemplateUrl.md +8 -0
  35. data/docs/GetSmtpTemplateOverview.md +1 -0
  36. data/docs/GetSmtpTemplateOverviewSender.md +1 -0
  37. data/docs/GetSmtpTemplates.md +1 -1
  38. data/docs/GetStatsByBrowser.md +7 -0
  39. data/docs/GetStatsByDevice.md +11 -0
  40. data/docs/GetTransacBlockedContacts.md +9 -0
  41. data/docs/GetTransacBlockedContactsContacts.md +11 -0
  42. data/docs/GetTransacBlockedContactsReason.md +9 -0
  43. data/docs/GetTransacEmailContent.md +14 -0
  44. data/docs/GetTransacEmailContentEvents.md +9 -0
  45. data/docs/GetTransacEmailsList.md +8 -0
  46. data/docs/GetTransacEmailsListTransactionalEmails.md +15 -0
  47. data/docs/ListsApi.md +13 -13
  48. data/docs/PostContactInfoContacts.md +1 -0
  49. data/docs/RemainingCreditModelChild.md +2 -2
  50. data/docs/RemainingCreditModelReseller.md +2 -2
  51. data/docs/RemoveContactFromList.md +2 -2
  52. data/docs/RequestContactExport.md +3 -2
  53. data/docs/RequestContactExportCustomContactFilter.md +13 -0
  54. data/docs/RequestContactImport.md +2 -2
  55. data/docs/RequestSMSRecipientExport.md +1 -1
  56. data/docs/ResellerApi.md +215 -86
  57. data/docs/SMSCampaignsApi.md +24 -24
  58. data/docs/SMTPApi.md +350 -42
  59. data/docs/SendEmail.md +2 -2
  60. data/docs/SendReport.md +1 -1
  61. data/docs/SendReportEmail.md +1 -1
  62. data/docs/SendSmtpEmail.md +4 -4
  63. data/docs/SendSmtpEmailBcc.md +1 -1
  64. data/docs/SendSmtpEmailCc.md +1 -1
  65. data/docs/SendSmtpEmailReplyTo.md +1 -1
  66. data/docs/SendSmtpEmailSender.md +1 -1
  67. data/docs/SendSmtpEmailTo.md +1 -1
  68. data/docs/SendTransacSms.md +1 -1
  69. data/docs/SendersApi.md +8 -8
  70. data/docs/TransactionalSMSApi.md +17 -17
  71. data/docs/UpdateAttribute.md +1 -1
  72. data/docs/UpdateChildAccountStatus.md +11 -0
  73. data/docs/UpdateContact.md +2 -2
  74. data/docs/UpdateEmailCampaign.md +5 -2
  75. data/docs/UpdateEmailCampaignSender.md +1 -0
  76. data/docs/UpdateSmtpTemplate.md +1 -1
  77. data/docs/UpdateSmtpTemplateSender.md +1 -0
  78. data/docs/UploadImageToGallery.md +9 -0
  79. data/docs/WebhooksApi.md +1 -1
  80. data/lib/sib-api-v3-sdk.rb +19 -2
  81. data/lib/sib-api-v3-sdk/api/account_api.rb +8 -11
  82. data/lib/sib-api-v3-sdk/api/attributes_api.rb +23 -35
  83. data/lib/sib-api-v3-sdk/api/contacts_api.rb +169 -186
  84. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +204 -73
  85. data/lib/sib-api-v3-sdk/api/folders_api.rb +29 -47
  86. data/lib/sib-api-v3-sdk/api/lists_api.rb +38 -65
  87. data/lib/sib-api-v3-sdk/api/process_api.rb +9 -15
  88. data/lib/sib-api-v3-sdk/api/reseller_api.rb +280 -201
  89. data/lib/sib-api-v3-sdk/api/senders_api.rb +25 -43
  90. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +47 -73
  91. data/lib/sib-api-v3-sdk/api/smtp_api.rb +342 -92
  92. data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +19 -31
  93. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +18 -33
  94. data/lib/sib-api-v3-sdk/api_client.rb +10 -10
  95. data/lib/sib-api-v3-sdk/api_error.rb +2 -2
  96. data/lib/sib-api-v3-sdk/configuration.rb +3 -3
  97. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +280 -0
  98. data/lib/sib-api-v3-sdk/models/add_child_domain.rb +7 -12
  99. data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +8 -13
  100. data/lib/sib-api-v3-sdk/models/add_credits.rb +7 -12
  101. data/lib/sib-api-v3-sdk/models/create_attribute.rb +11 -15
  102. data/lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb +9 -14
  103. data/lib/sib-api-v3-sdk/models/create_child.rb +58 -19
  104. data/lib/sib-api-v3-sdk/models/create_contact.rb +10 -15
  105. data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +253 -0
  106. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +82 -32
  107. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +7 -11
  108. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +21 -15
  109. data/lib/sib-api-v3-sdk/models/create_list.rb +9 -14
  110. data/lib/sib-api-v3-sdk/models/create_model.rb +8 -13
  111. data/lib/sib-api-v3-sdk/models/create_reseller.rb +20 -15
  112. data/lib/sib-api-v3-sdk/models/create_sender.rb +10 -15
  113. data/lib/sib-api-v3-sdk/models/create_sender_ips.rb +13 -19
  114. data/lib/sib-api-v3-sdk/models/create_sender_model.rb +8 -13
  115. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +13 -18
  116. data/lib/sib-api-v3-sdk/models/create_sms_campaign_recipients.rb +8 -13
  117. data/lib/sib-api-v3-sdk/models/create_smtp_email.rb +9 -14
  118. data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +11 -16
  119. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +21 -15
  120. data/lib/sib-api-v3-sdk/models/create_update_contact_model.rb +7 -12
  121. data/lib/sib-api-v3-sdk/models/create_update_folder.rb +7 -12
  122. data/lib/sib-api-v3-sdk/models/create_webhook.rb +14 -18
  123. data/lib/sib-api-v3-sdk/models/created_process_id.rb +8 -13
  124. data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +7 -12
  125. data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +12 -16
  126. data/lib/sib-api-v3-sdk/models/error_model.rb +12 -16
  127. data/lib/sib-api-v3-sdk/models/get_account.rb +14 -19
  128. data/lib/sib-api-v3-sdk/models/get_account_marketing_automation.rb +8 -13
  129. data/lib/sib-api-v3-sdk/models/get_account_plan.rb +16 -20
  130. data/lib/sib-api-v3-sdk/models/get_account_relay.rb +11 -15
  131. data/lib/sib-api-v3-sdk/models/get_account_relay_data.rb +12 -16
  132. data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +20 -25
  133. data/lib/sib-api-v3-sdk/models/get_attributes.rb +8 -13
  134. data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +15 -19
  135. data/lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb +9 -14
  136. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +17 -21
  137. data/lib/sib-api-v3-sdk/models/get_campaign_recipients.rb +9 -14
  138. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +17 -22
  139. data/lib/sib-api-v3-sdk/models/get_child_account_creation_status.rb +189 -0
  140. data/lib/sib-api-v3-sdk/models/get_child_domain.rb +9 -14
  141. data/lib/sib-api-v3-sdk/models/get_child_domains.rb +7 -12
  142. data/lib/sib-api-v3-sdk/models/get_child_info.rb +12 -17
  143. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +8 -12
  144. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +9 -14
  145. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +9 -14
  146. data/lib/sib-api-v3-sdk/models/get_child_info_credits.rb +7 -11
  147. data/lib/sib-api-v3-sdk/models/get_child_info_statistics.rb +7 -11
  148. data/lib/sib-api-v3-sdk/models/get_children_list.rb +24 -14
  149. data/lib/sib-api-v3-sdk/models/get_client.rb +11 -16
  150. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +7 -11
  151. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +9 -14
  152. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +11 -16
  153. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_transac_attributes.rb +10 -15
  154. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +9 -14
  155. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +15 -20
  156. data/lib/sib-api-v3-sdk/models/get_contacts.rb +9 -14
  157. data/lib/sib-api-v3-sdk/models/get_device_browser_stats.rb +234 -0
  158. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +40 -34
  159. data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +8 -13
  160. data/lib/sib-api-v3-sdk/models/get_email_event_report.rb +7 -12
  161. data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +14 -18
  162. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +40 -34
  163. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview_sender.rb +19 -14
  164. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +45 -20
  165. data/lib/sib-api-v3-sdk/models/get_extended_client.rb +12 -17
  166. data/lib/sib-api-v3-sdk/models/get_extended_client_address.rb +11 -15
  167. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +16 -21
  168. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +7 -11
  169. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_clicked.rb +9 -14
  170. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_links.rb +11 -16
  171. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +9 -14
  172. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +11 -16
  173. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions.rb +9 -13
  174. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +9 -14
  175. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +10 -15
  176. data/lib/sib-api-v3-sdk/models/get_extended_list.rb +13 -18
  177. data/lib/sib-api-v3-sdk/models/get_extended_list_campaign_stats.rb +9 -14
  178. data/lib/sib-api-v3-sdk/models/get_folder.rb +12 -17
  179. data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +9 -14
  180. data/lib/sib-api-v3-sdk/models/get_folders.rb +7 -12
  181. data/lib/sib-api-v3-sdk/models/get_ip.rb +11 -16
  182. data/lib/sib-api-v3-sdk/models/get_ip_from_sender.rb +11 -16
  183. data/lib/sib-api-v3-sdk/models/get_ips.rb +8 -13
  184. data/lib/sib-api-v3-sdk/models/get_ips_from_sender.rb +8 -13
  185. data/lib/sib-api-v3-sdk/models/get_list.rb +11 -16
  186. data/lib/sib-api-v3-sdk/models/get_lists.rb +9 -14
  187. data/lib/sib-api-v3-sdk/models/get_process.rb +13 -17
  188. data/lib/sib-api-v3-sdk/models/get_processes.rb +8 -13
  189. data/lib/sib-api-v3-sdk/models/get_reports.rb +7 -12
  190. data/lib/sib-api-v3-sdk/models/get_reports_reports.rb +20 -25
  191. data/lib/sib-api-v3-sdk/models/get_senders_list.rb +7 -12
  192. data/lib/sib-api-v3-sdk/models/get_senders_list_ips.rb +10 -15
  193. data/lib/sib-api-v3-sdk/models/get_senders_list_senders.rb +11 -16
  194. data/lib/sib-api-v3-sdk/models/get_shared_template_url.rb +189 -0
  195. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +20 -24
  196. data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +18 -22
  197. data/lib/sib-api-v3-sdk/models/get_sms_campaign_stats.rb +14 -19
  198. data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +8 -13
  199. data/lib/sib-api-v3-sdk/models/get_sms_event_report.rb +7 -12
  200. data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +14 -18
  201. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +31 -26
  202. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview_sender.rb +19 -14
  203. data/lib/sib-api-v3-sdk/models/get_smtp_templates.rb +8 -13
  204. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +8 -13
  205. data/lib/sib-api-v3-sdk/models/get_stats_by_browser.rb +174 -0
  206. data/lib/sib-api-v3-sdk/models/get_stats_by_device.rb +222 -0
  207. data/lib/sib-api-v3-sdk/models/get_stats_by_domain.rb +7 -12
  208. data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +17 -22
  209. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts.rb +195 -0
  210. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_contacts.rb +233 -0
  211. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_reason.rb +229 -0
  212. data/lib/sib-api-v3-sdk/models/get_transac_email_content.rb +276 -0
  213. data/lib/sib-api-v3-sdk/models/get_transac_email_content_events.rb +204 -0
  214. data/lib/sib-api-v3-sdk/models/get_transac_emails_list.rb +185 -0
  215. data/lib/sib-api-v3-sdk/models/get_transac_emails_list_transactional_emails.rb +281 -0
  216. data/lib/sib-api-v3-sdk/models/get_transac_sms_report.rb +7 -12
  217. data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +17 -22
  218. data/lib/sib-api-v3-sdk/models/get_webhook.rb +17 -21
  219. data/lib/sib-api-v3-sdk/models/get_webhooks.rb +8 -13
  220. data/lib/sib-api-v3-sdk/models/manage_ip.rb +7 -12
  221. data/lib/sib-api-v3-sdk/models/post_contact_info.rb +8 -13
  222. data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +19 -14
  223. data/lib/sib-api-v3-sdk/models/post_send_failed.rb +9 -14
  224. data/lib/sib-api-v3-sdk/models/post_send_sms_test_failed.rb +9 -14
  225. data/lib/sib-api-v3-sdk/models/remaining_credit_model.rb +9 -14
  226. data/lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb +11 -15
  227. data/lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb +11 -16
  228. data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +9 -14
  229. data/lib/sib-api-v3-sdk/models/remove_credits.rb +7 -12
  230. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +19 -20
  231. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +293 -0
  232. data/lib/sib-api-v3-sdk/models/request_contact_import.rb +9 -14
  233. data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +7 -11
  234. data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +12 -16
  235. data/lib/sib-api-v3-sdk/models/send_email.rb +10 -15
  236. data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +12 -17
  237. data/lib/sib-api-v3-sdk/models/send_report.rb +12 -16
  238. data/lib/sib-api-v3-sdk/models/send_report_email.rb +14 -17
  239. data/lib/sib-api-v3-sdk/models/send_sms.rb +9 -14
  240. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +12 -17
  241. data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +9 -15
  242. data/lib/sib-api-v3-sdk/models/send_smtp_email_bcc.rb +9 -14
  243. data/lib/sib-api-v3-sdk/models/send_smtp_email_cc.rb +9 -14
  244. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +10 -14
  245. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +10 -14
  246. data/lib/sib-api-v3-sdk/models/send_smtp_email_to.rb +9 -14
  247. data/lib/sib-api-v3-sdk/models/send_template_email.rb +8 -13
  248. data/lib/sib-api-v3-sdk/models/send_test_email.rb +7 -12
  249. data/lib/sib-api-v3-sdk/models/send_test_sms.rb +7 -12
  250. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +17 -21
  251. data/lib/sib-api-v3-sdk/models/update_attribute.rb +8 -13
  252. data/lib/sib-api-v3-sdk/models/update_attribute_enumeration.rb +9 -14
  253. data/lib/sib-api-v3-sdk/models/update_campaign_status.rb +10 -13
  254. data/lib/sib-api-v3-sdk/models/update_child.rb +7 -12
  255. data/lib/sib-api-v3-sdk/models/update_child_account_status.rb +214 -0
  256. data/lib/sib-api-v3-sdk/models/update_child_domain.rb +7 -12
  257. data/lib/sib-api-v3-sdk/models/update_contact.rb +9 -14
  258. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +79 -29
  259. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +7 -11
  260. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +20 -14
  261. data/lib/sib-api-v3-sdk/models/update_list.rb +7 -12
  262. data/lib/sib-api-v3-sdk/models/update_sender.rb +7 -12
  263. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +9 -15
  264. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +8 -13
  265. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +20 -14
  266. data/lib/sib-api-v3-sdk/models/update_webhook.rb +7 -11
  267. data/lib/sib-api-v3-sdk/models/upload_image_to_gallery.rb +199 -0
  268. data/lib/sib-api-v3-sdk/version.rb +3 -3
  269. data/sib-api-v3-sdk.gemspec +5 -5
  270. data/spec/api/account_api_spec.rb +4 -5
  271. data/spec/api/attributes_api_spec.rb +10 -14
  272. data/spec/api/contacts_api_spec.rb +57 -68
  273. data/spec/api/email_campaigns_api_spec.rb +54 -28
  274. data/spec/api/folders_api_spec.rb +12 -18
  275. data/spec/api/lists_api_spec.rb +15 -24
  276. data/spec/api/process_api_spec.rb +4 -6
  277. data/spec/api/reseller_api_spec.rb +64 -52
  278. data/spec/api/senders_api_spec.rb +10 -16
  279. data/spec/api/sms_campaigns_api_spec.rb +19 -27
  280. data/spec/api/smtp_api_spec.rb +88 -34
  281. data/spec/api/transactional_sms_api_spec.rb +8 -12
  282. data/spec/api/webhooks_api_spec.rb +7 -12
  283. data/spec/api_client_spec.rb +36 -36
  284. data/spec/configuration_spec.rb +10 -10
  285. data/spec/models/ab_test_campaign_result_spec.rb +79 -0
  286. data/spec/models/add_child_domain_spec.rb +3 -4
  287. data/spec/models/add_contact_to_list_spec.rb +3 -4
  288. data/spec/models/add_credits_spec.rb +4 -5
  289. data/spec/models/create_attribute_enumeration_spec.rb +4 -5
  290. data/spec/models/create_attribute_spec.rb +9 -10
  291. data/spec/models/create_child_spec.rb +17 -8
  292. data/spec/models/create_contact_spec.rb +9 -10
  293. data/spec/models/create_doi_contact_spec.rb +71 -0
  294. data/spec/models/create_email_campaign_recipients_spec.rb +4 -5
  295. data/spec/models/create_email_campaign_sender_spec.rb +10 -5
  296. data/spec/models/create_email_campaign_spec.rb +49 -32
  297. data/spec/models/create_list_spec.rb +4 -5
  298. data/spec/models/create_model_spec.rb +3 -4
  299. data/spec/models/create_reseller_spec.rb +9 -4
  300. data/spec/models/create_sender_ips_spec.rb +5 -6
  301. data/spec/models/create_sender_model_spec.rb +5 -6
  302. data/spec/models/create_sender_spec.rb +5 -6
  303. data/spec/models/create_sms_campaign_recipients_spec.rb +4 -5
  304. data/spec/models/create_sms_campaign_spec.rb +7 -8
  305. data/spec/models/create_smtp_email_spec.rb +3 -4
  306. data/spec/models/create_smtp_template_sender_spec.rb +10 -5
  307. data/spec/models/create_smtp_template_spec.rb +12 -13
  308. data/spec/models/create_update_contact_model_spec.rb +3 -4
  309. data/spec/models/create_update_folder_spec.rb +3 -4
  310. data/spec/models/create_webhook_spec.rb +14 -15
  311. data/spec/models/created_process_id_spec.rb +3 -4
  312. data/spec/models/delete_hardbounces_spec.rb +5 -6
  313. data/spec/models/email_export_recipients_spec.rb +8 -9
  314. data/spec/models/error_model_spec.rb +8 -9
  315. data/spec/models/get_account_marketing_automation_spec.rb +4 -5
  316. data/spec/models/get_account_plan_spec.rb +16 -17
  317. data/spec/models/get_account_relay_data_spec.rb +5 -6
  318. data/spec/models/get_account_relay_spec.rb +4 -5
  319. data/spec/models/get_account_spec.rb +10 -11
  320. data/spec/models/get_aggregated_report_spec.rb +15 -16
  321. data/spec/models/get_attributes_attributes_spec.rb +15 -16
  322. data/spec/models/get_attributes_enumeration_spec.rb +4 -5
  323. data/spec/models/get_attributes_spec.rb +3 -4
  324. data/spec/models/get_campaign_overview_spec.rb +23 -24
  325. data/spec/models/get_campaign_recipients_spec.rb +4 -5
  326. data/spec/models/get_campaign_stats_spec.rb +14 -15
  327. data/spec/models/get_child_account_creation_status_spec.rb +41 -0
  328. data/spec/models/get_child_domain_spec.rb +4 -5
  329. data/spec/models/get_child_domains_spec.rb +2 -3
  330. data/spec/models/get_child_info_api_keys_spec.rb +4 -5
  331. data/spec/models/get_child_info_api_keys_v2_spec.rb +4 -5
  332. data/spec/models/get_child_info_api_keys_v3_spec.rb +4 -5
  333. data/spec/models/get_child_info_credits_spec.rb +4 -5
  334. data/spec/models/get_child_info_spec.rb +11 -12
  335. data/spec/models/get_child_info_statistics_spec.rb +5 -6
  336. data/spec/models/get_children_list_spec.rb +9 -4
  337. data/spec/models/get_client_spec.rb +6 -7
  338. data/spec/models/get_contact_campaign_stats_clicked_spec.rb +4 -5
  339. data/spec/models/get_contact_campaign_stats_opened_spec.rb +6 -7
  340. data/spec/models/get_contact_campaign_stats_spec.rb +10 -11
  341. data/spec/models/get_contact_campaign_stats_transac_attributes_spec.rb +5 -6
  342. data/spec/models/get_contact_campaign_stats_unsubscriptions_spec.rb +4 -5
  343. data/spec/models/get_contact_details_spec.rb +11 -12
  344. data/spec/models/get_contacts_spec.rb +4 -5
  345. data/spec/models/get_device_browser_stats_spec.rb +59 -0
  346. data/spec/models/get_email_campaign_spec.rb +46 -41
  347. data/spec/models/get_email_campaigns_spec.rb +4 -5
  348. data/spec/models/get_email_event_report_events_spec.rb +16 -17
  349. data/spec/models/get_email_event_report_spec.rb +3 -4
  350. data/spec/models/get_extended_campaign_overview_sender_spec.rb +10 -5
  351. data/spec/models/get_extended_campaign_overview_spec.rb +44 -39
  352. data/spec/models/get_extended_campaign_stats_spec.rb +20 -9
  353. data/spec/models/get_extended_client_address_spec.rb +6 -7
  354. data/spec/models/get_extended_client_spec.rb +7 -8
  355. data/spec/models/get_extended_contact_details_spec.rb +12 -13
  356. data/spec/models/get_extended_contact_details_statistics_clicked_spec.rb +4 -5
  357. data/spec/models/get_extended_contact_details_statistics_links_spec.rb +6 -7
  358. data/spec/models/get_extended_contact_details_statistics_messages_sent_spec.rb +4 -5
  359. data/spec/models/get_extended_contact_details_statistics_opened_spec.rb +6 -7
  360. data/spec/models/get_extended_contact_details_statistics_spec.rb +10 -11
  361. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription_spec.rb +4 -5
  362. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_spec.rb +4 -5
  363. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription_spec.rb +5 -6
  364. data/spec/models/get_extended_list_campaign_stats_spec.rb +4 -5
  365. data/spec/models/get_extended_list_spec.rb +10 -11
  366. data/spec/models/get_folder_lists_spec.rb +4 -5
  367. data/spec/models/get_folder_spec.rb +7 -8
  368. data/spec/models/get_folders_spec.rb +4 -5
  369. data/spec/models/get_ip_from_sender_spec.rb +6 -7
  370. data/spec/models/get_ip_spec.rb +6 -7
  371. data/spec/models/get_ips_from_sender_spec.rb +3 -4
  372. data/spec/models/get_ips_spec.rb +3 -4
  373. data/spec/models/get_list_spec.rb +6 -7
  374. data/spec/models/get_lists_spec.rb +4 -5
  375. data/spec/models/get_process_spec.rb +10 -11
  376. data/spec/models/get_processes_spec.rb +4 -5
  377. data/spec/models/get_reports_reports_spec.rb +15 -16
  378. data/spec/models/get_reports_spec.rb +3 -4
  379. data/spec/models/get_senders_list_ips_spec.rb +5 -6
  380. data/spec/models/get_senders_list_senders_spec.rb +7 -8
  381. data/spec/models/get_senders_list_spec.rb +3 -4
  382. data/spec/models/get_shared_template_url_spec.rb +41 -0
  383. data/spec/models/get_sms_campaign_overview_spec.rb +14 -15
  384. data/spec/models/get_sms_campaign_spec.rb +16 -17
  385. data/spec/models/get_sms_campaign_stats_spec.rb +9 -10
  386. data/spec/models/get_sms_campaigns_spec.rb +4 -5
  387. data/spec/models/get_sms_event_report_events_spec.rb +13 -14
  388. data/spec/models/get_sms_event_report_spec.rb +3 -4
  389. data/spec/models/get_smtp_template_overview_sender_spec.rb +10 -5
  390. data/spec/models/get_smtp_template_overview_spec.rb +20 -15
  391. data/spec/models/get_smtp_templates_spec.rb +4 -5
  392. data/spec/models/get_sso_token_spec.rb +3 -4
  393. data/spec/models/get_stats_by_browser_spec.rb +35 -0
  394. data/spec/models/get_stats_by_device_spec.rb +59 -0
  395. data/spec/models/get_stats_by_domain_spec.rb +2 -3
  396. data/spec/models/get_transac_aggregated_sms_report_spec.rb +12 -13
  397. data/spec/models/get_transac_blocked_contacts_contacts_spec.rb +59 -0
  398. data/spec/models/get_transac_blocked_contacts_reason_spec.rb +51 -0
  399. data/spec/models/get_transac_blocked_contacts_spec.rb +47 -0
  400. data/spec/models/get_transac_email_content_events_spec.rb +47 -0
  401. data/spec/models/get_transac_email_content_spec.rb +77 -0
  402. data/spec/models/get_transac_emails_list_spec.rb +41 -0
  403. data/spec/models/get_transac_emails_list_transactional_emails_spec.rb +83 -0
  404. data/spec/models/get_transac_sms_report_reports_spec.rb +12 -13
  405. data/spec/models/get_transac_sms_report_spec.rb +3 -4
  406. data/spec/models/get_webhook_spec.rb +13 -14
  407. data/spec/models/get_webhooks_spec.rb +3 -4
  408. data/spec/models/manage_ip_spec.rb +3 -4
  409. data/spec/models/post_contact_info_contacts_spec.rb +11 -6
  410. data/spec/models/post_contact_info_spec.rb +3 -4
  411. data/spec/models/post_send_failed_spec.rb +7 -8
  412. data/spec/models/post_send_sms_test_failed_spec.rb +6 -7
  413. data/spec/models/remaining_credit_model_child_spec.rb +4 -5
  414. data/spec/models/remaining_credit_model_reseller_spec.rb +4 -5
  415. data/spec/models/remaining_credit_model_spec.rb +4 -5
  416. data/spec/models/remove_contact_from_list_spec.rb +4 -5
  417. data/spec/models/remove_credits_spec.rb +4 -5
  418. data/spec/models/request_contact_export_custom_contact_filter_spec.rb +83 -0
  419. data/spec/models/request_contact_export_spec.rb +11 -6
  420. data/spec/models/request_contact_import_new_list_spec.rb +4 -5
  421. data/spec/models/request_contact_import_spec.rb +11 -12
  422. data/spec/models/request_sms_recipient_export_spec.rb +8 -9
  423. data/spec/models/send_email_attachment_spec.rb +4 -5
  424. data/spec/models/send_email_spec.rb +11 -12
  425. data/spec/models/send_report_email_spec.rb +12 -13
  426. data/spec/models/send_report_spec.rb +8 -9
  427. data/spec/models/send_sms_spec.rb +7 -8
  428. data/spec/models/send_smtp_email_attachment_spec.rb +5 -6
  429. data/spec/models/send_smtp_email_bcc_spec.rb +4 -5
  430. data/spec/models/send_smtp_email_cc_spec.rb +4 -5
  431. data/spec/models/send_smtp_email_reply_to_spec.rb +4 -5
  432. data/spec/models/send_smtp_email_sender_spec.rb +4 -5
  433. data/spec/models/send_smtp_email_spec.rb +15 -16
  434. data/spec/models/send_smtp_email_to_spec.rb +4 -5
  435. data/spec/models/send_template_email_spec.rb +3 -4
  436. data/spec/models/send_test_email_spec.rb +3 -4
  437. data/spec/models/send_test_sms_spec.rb +3 -4
  438. data/spec/models/send_transac_sms_spec.rb +12 -13
  439. data/spec/models/update_attribute_enumeration_spec.rb +4 -5
  440. data/spec/models/update_attribute_spec.rb +4 -5
  441. data/spec/models/update_campaign_status_spec.rb +7 -8
  442. data/spec/models/update_child_account_status_spec.rb +59 -0
  443. data/spec/models/update_child_domain_spec.rb +3 -4
  444. data/spec/models/update_child_spec.rb +7 -8
  445. data/spec/models/update_contact_spec.rb +8 -9
  446. data/spec/models/update_email_campaign_recipients_spec.rb +4 -5
  447. data/spec/models/update_email_campaign_sender_spec.rb +10 -5
  448. data/spec/models/update_email_campaign_spec.rb +49 -32
  449. data/spec/models/update_list_spec.rb +4 -5
  450. data/spec/models/update_sender_spec.rb +5 -6
  451. data/spec/models/update_sms_campaign_spec.rb +7 -8
  452. data/spec/models/update_smtp_template_sender_spec.rb +10 -5
  453. data/spec/models/update_smtp_template_spec.rb +12 -13
  454. data/spec/models/update_webhook_spec.rb +9 -10
  455. data/spec/models/upload_image_to_gallery_spec.rb +47 -0
  456. data/spec/spec_helper.rb +2 -2
  457. metadata +70 -2
@@ -1,16 +1,16 @@
1
1
  =begin
2
2
  #SendinBlue API
3
3
 
4
- #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
5
 
6
6
  OpenAPI spec version: 3.0.0
7
7
  Contact: contact@sendinblue.com
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.12
10
10
 
11
11
  =end
12
12
 
13
- require "uri"
13
+ require 'uri'
14
14
 
15
15
  module SibApiV3Sdk
16
16
  class SMTPApi
@@ -19,32 +19,29 @@ module SibApiV3Sdk
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
-
23
- # Create an smtp template
24
- #
25
- # @param smtp_template values to update in smtp template
22
+ # Create an email template
23
+ # @param smtp_template values to update in transactional email template
26
24
  # @param [Hash] opts the optional parameters
27
25
  # @return [CreateModel]
28
26
  def create_smtp_template(smtp_template, opts = {})
29
27
  data, _status_code, _headers = create_smtp_template_with_http_info(smtp_template, opts)
30
- return data
28
+ data
31
29
  end
32
30
 
33
- # Create an smtp template
34
- #
35
- # @param smtp_template values to update in smtp template
31
+ # Create an email template
32
+ # @param smtp_template values to update in transactional email template
36
33
  # @param [Hash] opts the optional parameters
37
34
  # @return [Array<(CreateModel, Fixnum, Hash)>] CreateModel data, response status code and response headers
38
35
  def create_smtp_template_with_http_info(smtp_template, opts = {})
39
36
  if @api_client.config.debugging
40
- @api_client.config.logger.debug "Calling API: SMTPApi.create_smtp_template ..."
37
+ @api_client.config.logger.debug 'Calling API: SMTPApi.create_smtp_template ...'
41
38
  end
42
39
  # verify the required parameter 'smtp_template' is set
43
40
  if @api_client.config.client_side_validation && smtp_template.nil?
44
41
  fail ArgumentError, "Missing the required parameter 'smtp_template' when calling SMTPApi.create_smtp_template"
45
42
  end
46
43
  # resource path
47
- local_var_path = "/smtp/templates"
44
+ local_var_path = '/smtp/templates'
48
45
 
49
46
  # query parameters
50
47
  query_params = {}
@@ -74,7 +71,6 @@ module SibApiV3Sdk
74
71
  end
75
72
  return data, status_code, headers
76
73
  end
77
-
78
74
  # Delete hardbounces
79
75
  # Delete hardbounces. To use carefully (e.g. in case of temporary ISP failures)
80
76
  # @param [Hash] opts the optional parameters
@@ -82,7 +78,7 @@ module SibApiV3Sdk
82
78
  # @return [nil]
83
79
  def delete_hardbounces(opts = {})
84
80
  delete_hardbounces_with_http_info(opts)
85
- return nil
81
+ nil
86
82
  end
87
83
 
88
84
  # Delete hardbounces
@@ -92,10 +88,10 @@ module SibApiV3Sdk
92
88
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
93
89
  def delete_hardbounces_with_http_info(opts = {})
94
90
  if @api_client.config.debugging
95
- @api_client.config.logger.debug "Calling API: SMTPApi.delete_hardbounces ..."
91
+ @api_client.config.logger.debug 'Calling API: SMTPApi.delete_hardbounces ...'
96
92
  end
97
93
  # resource path
98
- local_var_path = "/smtp/deleteHardbounces"
94
+ local_var_path = '/smtp/deleteHardbounces'
99
95
 
100
96
  # query parameters
101
97
  query_params = {}
@@ -124,32 +120,29 @@ module SibApiV3Sdk
124
120
  end
125
121
  return data, status_code, headers
126
122
  end
127
-
128
- # Delete an inactive smtp template
129
- #
123
+ # Delete an inactive email template
130
124
  # @param template_id id of the template
131
125
  # @param [Hash] opts the optional parameters
132
126
  # @return [nil]
133
127
  def delete_smtp_template(template_id, opts = {})
134
128
  delete_smtp_template_with_http_info(template_id, opts)
135
- return nil
129
+ nil
136
130
  end
137
131
 
138
- # Delete an inactive smtp template
139
- #
132
+ # Delete an inactive email template
140
133
  # @param template_id id of the template
141
134
  # @param [Hash] opts the optional parameters
142
135
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
143
136
  def delete_smtp_template_with_http_info(template_id, opts = {})
144
137
  if @api_client.config.debugging
145
- @api_client.config.logger.debug "Calling API: SMTPApi.delete_smtp_template ..."
138
+ @api_client.config.logger.debug 'Calling API: SMTPApi.delete_smtp_template ...'
146
139
  end
147
140
  # verify the required parameter 'template_id' is set
148
141
  if @api_client.config.client_side_validation && template_id.nil?
149
142
  fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.delete_smtp_template"
150
143
  end
151
144
  # resource path
152
- local_var_path = "/smtp/templates/{templateId}".sub('{' + 'templateId' + '}', template_id.to_s)
145
+ local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
153
146
 
154
147
  # query parameters
155
148
  query_params = {}
@@ -178,9 +171,7 @@ module SibApiV3Sdk
178
171
  end
179
172
  return data, status_code, headers
180
173
  end
181
-
182
- # Get your SMTP activity aggregated over a period of time
183
- #
174
+ # Get your transactional email activity aggregated over a period of time
184
175
  # @param [Hash] opts the optional parameters
185
176
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
186
177
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -189,11 +180,10 @@ module SibApiV3Sdk
189
180
  # @return [GetAggregatedReport]
190
181
  def get_aggregated_smtp_report(opts = {})
191
182
  data, _status_code, _headers = get_aggregated_smtp_report_with_http_info(opts)
192
- return data
183
+ data
193
184
  end
194
185
 
195
- # Get your SMTP activity aggregated over a period of time
196
- #
186
+ # Get your transactional email activity aggregated over a period of time
197
187
  # @param [Hash] opts the optional parameters
198
188
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
199
189
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -202,10 +192,10 @@ module SibApiV3Sdk
202
192
  # @return [Array<(GetAggregatedReport, Fixnum, Hash)>] GetAggregatedReport data, response status code and response headers
203
193
  def get_aggregated_smtp_report_with_http_info(opts = {})
204
194
  if @api_client.config.debugging
205
- @api_client.config.logger.debug "Calling API: SMTPApi.get_aggregated_smtp_report ..."
195
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_aggregated_smtp_report ...'
206
196
  end
207
197
  # resource path
208
- local_var_path = "/smtp/statistics/aggregatedReport"
198
+ local_var_path = '/smtp/statistics/aggregatedReport'
209
199
 
210
200
  # query parameters
211
201
  query_params = {}
@@ -239,9 +229,7 @@ module SibApiV3Sdk
239
229
  end
240
230
  return data, status_code, headers
241
231
  end
242
-
243
- # Get all your SMTP activity (unaggregated events)
244
- #
232
+ # Get all your transactional email activity (unaggregated events)
245
233
  # @param [Hash] opts the optional parameters
246
234
  # @option opts [Integer] :limit Number limitation for the result returned (default to 50)
247
235
  # @option opts [Integer] :offset Beginning point in the list to retrieve from. (default to 0)
@@ -256,11 +244,10 @@ module SibApiV3Sdk
256
244
  # @return [GetEmailEventReport]
257
245
  def get_email_event_report(opts = {})
258
246
  data, _status_code, _headers = get_email_event_report_with_http_info(opts)
259
- return data
247
+ data
260
248
  end
261
249
 
262
- # Get all your SMTP activity (unaggregated events)
263
- #
250
+ # Get all your transactional email activity (unaggregated events)
264
251
  # @param [Hash] opts the optional parameters
265
252
  # @option opts [Integer] :limit Number limitation for the result returned
266
253
  # @option opts [Integer] :offset Beginning point in the list to retrieve from.
@@ -275,7 +262,7 @@ module SibApiV3Sdk
275
262
  # @return [Array<(GetEmailEventReport, Fixnum, Hash)>] GetEmailEventReport data, response status code and response headers
276
263
  def get_email_event_report_with_http_info(opts = {})
277
264
  if @api_client.config.debugging
278
- @api_client.config.logger.debug "Calling API: SMTPApi.get_email_event_report ..."
265
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_email_event_report ...'
279
266
  end
280
267
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
281
268
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_email_event_report, must be smaller than or equal to 100.'
@@ -285,7 +272,7 @@ module SibApiV3Sdk
285
272
  fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed'
286
273
  end
287
274
  # resource path
288
- local_var_path = "/smtp/statistics/events"
275
+ local_var_path = '/smtp/statistics/events'
289
276
 
290
277
  # query parameters
291
278
  query_params = {}
@@ -325,11 +312,9 @@ module SibApiV3Sdk
325
312
  end
326
313
  return data, status_code, headers
327
314
  end
328
-
329
- # Get your SMTP activity aggregated per day
330
- #
315
+ # Get your transactional email activity aggregated per day
331
316
  # @param [Hash] opts the optional parameters
332
- # @option opts [Integer] :limit Number of documents returned per page (default to 50)
317
+ # @option opts [Integer] :limit Number of documents returned per page (default to 10)
333
318
  # @option opts [Integer] :offset Index of the first document on the page (default to 0)
334
319
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)
335
320
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
@@ -338,11 +323,10 @@ module SibApiV3Sdk
338
323
  # @return [GetReports]
339
324
  def get_smtp_report(opts = {})
340
325
  data, _status_code, _headers = get_smtp_report_with_http_info(opts)
341
- return data
326
+ data
342
327
  end
343
328
 
344
- # Get your SMTP activity aggregated per day
345
- #
329
+ # Get your transactional email activity aggregated per day
346
330
  # @param [Hash] opts the optional parameters
347
331
  # @option opts [Integer] :limit Number of documents returned per page
348
332
  # @option opts [Integer] :offset Index of the first document on the page
@@ -353,14 +337,14 @@ module SibApiV3Sdk
353
337
  # @return [Array<(GetReports, Fixnum, Hash)>] GetReports data, response status code and response headers
354
338
  def get_smtp_report_with_http_info(opts = {})
355
339
  if @api_client.config.debugging
356
- @api_client.config.logger.debug "Calling API: SMTPApi.get_smtp_report ..."
340
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_report ...'
357
341
  end
358
- if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
359
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_smtp_report, must be smaller than or equal to 100.'
342
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 30
343
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_smtp_report, must be smaller than or equal to 30.'
360
344
  end
361
345
 
362
346
  # resource path
363
- local_var_path = "/smtp/statistics/reports"
347
+ local_var_path = '/smtp/statistics/reports'
364
348
 
365
349
  # query parameters
366
350
  query_params = {}
@@ -396,32 +380,29 @@ module SibApiV3Sdk
396
380
  end
397
381
  return data, status_code, headers
398
382
  end
399
-
400
- # Returns the template informations
401
- #
383
+ # Returns the template information
402
384
  # @param template_id id of the template
403
385
  # @param [Hash] opts the optional parameters
404
386
  # @return [GetSmtpTemplateOverview]
405
387
  def get_smtp_template(template_id, opts = {})
406
388
  data, _status_code, _headers = get_smtp_template_with_http_info(template_id, opts)
407
- return data
389
+ data
408
390
  end
409
391
 
410
- # Returns the template informations
411
- #
392
+ # Returns the template information
412
393
  # @param template_id id of the template
413
394
  # @param [Hash] opts the optional parameters
414
395
  # @return [Array<(GetSmtpTemplateOverview, Fixnum, Hash)>] GetSmtpTemplateOverview data, response status code and response headers
415
396
  def get_smtp_template_with_http_info(template_id, opts = {})
416
397
  if @api_client.config.debugging
417
- @api_client.config.logger.debug "Calling API: SMTPApi.get_smtp_template ..."
398
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_template ...'
418
399
  end
419
400
  # verify the required parameter 'template_id' is set
420
401
  if @api_client.config.client_side_validation && template_id.nil?
421
402
  fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.get_smtp_template"
422
403
  end
423
404
  # resource path
424
- local_var_path = "/smtp/templates/{templateId}".sub('{' + 'templateId' + '}', template_id.to_s)
405
+ local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
425
406
 
426
407
  # query parameters
427
408
  query_params = {}
@@ -451,9 +432,7 @@ module SibApiV3Sdk
451
432
  end
452
433
  return data, status_code, headers
453
434
  end
454
-
455
- # Get the list of SMTP templates
456
- #
435
+ # Get the list of email templates
457
436
  # @param [Hash] opts the optional parameters
458
437
  # @option opts [BOOLEAN] :template_status Filter on the status of the template. Active &#x3D; true, inactive &#x3D; false
459
438
  # @option opts [Integer] :limit Number of documents returned per page (default to 50)
@@ -461,11 +440,10 @@ module SibApiV3Sdk
461
440
  # @return [GetSmtpTemplates]
462
441
  def get_smtp_templates(opts = {})
463
442
  data, _status_code, _headers = get_smtp_templates_with_http_info(opts)
464
- return data
443
+ data
465
444
  end
466
445
 
467
- # Get the list of SMTP templates
468
- #
446
+ # Get the list of email templates
469
447
  # @param [Hash] opts the optional parameters
470
448
  # @option opts [BOOLEAN] :template_status Filter on the status of the template. Active &#x3D; true, inactive &#x3D; false
471
449
  # @option opts [Integer] :limit Number of documents returned per page
@@ -473,14 +451,14 @@ module SibApiV3Sdk
473
451
  # @return [Array<(GetSmtpTemplates, Fixnum, Hash)>] GetSmtpTemplates data, response status code and response headers
474
452
  def get_smtp_templates_with_http_info(opts = {})
475
453
  if @api_client.config.debugging
476
- @api_client.config.logger.debug "Calling API: SMTPApi.get_smtp_templates ..."
454
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_templates ...'
477
455
  end
478
456
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
479
457
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_smtp_templates, must be smaller than or equal to 1000.'
480
458
  end
481
459
 
482
460
  # resource path
483
- local_var_path = "/smtp/templates"
461
+ local_var_path = '/smtp/templates'
484
462
 
485
463
  # query parameters
486
464
  query_params = {}
@@ -513,7 +491,186 @@ module SibApiV3Sdk
513
491
  end
514
492
  return data, status_code, headers
515
493
  end
494
+ # Get the list of blocked or unsubscribed transactional contacts
495
+ # @param [Hash] opts the optional parameters
496
+ # @option opts [String] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts
497
+ # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts
498
+ # @option opts [Integer] :limit Number of documents returned per page (default to 50)
499
+ # @option opts [Integer] :offset Index of the first document on the page (default to 0)
500
+ # @option opts [Array<String>] :senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
501
+ # @return [GetTransacBlockedContacts]
502
+ def get_transac_blocked_contacts(opts = {})
503
+ data, _status_code, _headers = get_transac_blocked_contacts_with_http_info(opts)
504
+ data
505
+ end
506
+
507
+ # Get the list of blocked or unsubscribed transactional contacts
508
+ # @param [Hash] opts the optional parameters
509
+ # @option opts [String] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the blocked or unsubscribed contacts
510
+ # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts
511
+ # @option opts [Integer] :limit Number of documents returned per page
512
+ # @option opts [Integer] :offset Index of the first document on the page
513
+ # @option opts [Array<String>] :senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
514
+ # @return [Array<(GetTransacBlockedContacts, Fixnum, Hash)>] GetTransacBlockedContacts data, response status code and response headers
515
+ def get_transac_blocked_contacts_with_http_info(opts = {})
516
+ if @api_client.config.debugging
517
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_blocked_contacts ...'
518
+ end
519
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
520
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_transac_blocked_contacts, must be smaller than or equal to 100.'
521
+ end
522
+
523
+ # resource path
524
+ local_var_path = '/smtp/blockedContacts'
525
+
526
+ # query parameters
527
+ query_params = {}
528
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
529
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
530
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
531
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
532
+ query_params[:'senders'] = @api_client.build_collection_param(opts[:'senders'], :csv) if !opts[:'senders'].nil?
533
+
534
+ # header parameters
535
+ header_params = {}
536
+ # HTTP header 'Accept' (if needed)
537
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
538
+ # HTTP header 'Content-Type'
539
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
540
+
541
+ # form parameters
542
+ form_params = {}
543
+
544
+ # http body (model)
545
+ post_body = nil
546
+ auth_names = ['api-key', 'partner-key']
547
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
548
+ :header_params => header_params,
549
+ :query_params => query_params,
550
+ :form_params => form_params,
551
+ :body => post_body,
552
+ :auth_names => auth_names,
553
+ :return_type => 'GetTransacBlockedContacts')
554
+ if @api_client.config.debugging
555
+ @api_client.config.logger.debug "API called: SMTPApi#get_transac_blocked_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
+ end
557
+ return data, status_code, headers
558
+ end
559
+ # Get the personalized content of a sent transactional email
560
+ # @param uuid Unique id of the transactional email that has been sent to a particular contact
561
+ # @param [Hash] opts the optional parameters
562
+ # @return [GetTransacEmailContent]
563
+ def get_transac_email_content(uuid, opts = {})
564
+ data, _status_code, _headers = get_transac_email_content_with_http_info(uuid, opts)
565
+ data
566
+ end
567
+
568
+ # Get the personalized content of a sent transactional email
569
+ # @param uuid Unique id of the transactional email that has been sent to a particular contact
570
+ # @param [Hash] opts the optional parameters
571
+ # @return [Array<(GetTransacEmailContent, Fixnum, Hash)>] GetTransacEmailContent data, response status code and response headers
572
+ def get_transac_email_content_with_http_info(uuid, opts = {})
573
+ if @api_client.config.debugging
574
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_email_content ...'
575
+ end
576
+ # verify the required parameter 'uuid' is set
577
+ if @api_client.config.client_side_validation && uuid.nil?
578
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling SMTPApi.get_transac_email_content"
579
+ end
580
+ # resource path
581
+ local_var_path = '/smtp/emails/{uuid}'.sub('{' + 'uuid' + '}', uuid.to_s)
582
+
583
+ # query parameters
584
+ query_params = {}
516
585
 
586
+ # header parameters
587
+ header_params = {}
588
+ # HTTP header 'Accept' (if needed)
589
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
590
+ # HTTP header 'Content-Type'
591
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
592
+
593
+ # form parameters
594
+ form_params = {}
595
+
596
+ # http body (model)
597
+ post_body = nil
598
+ auth_names = ['api-key', 'partner-key']
599
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
600
+ :header_params => header_params,
601
+ :query_params => query_params,
602
+ :form_params => form_params,
603
+ :body => post_body,
604
+ :auth_names => auth_names,
605
+ :return_type => 'GetTransacEmailContent')
606
+ if @api_client.config.debugging
607
+ @api_client.config.logger.debug "API called: SMTPApi#get_transac_email_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
608
+ end
609
+ return data, status_code, headers
610
+ end
611
+ # Get the list of transactional emails on the basis of allowed filters
612
+ # This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters.
613
+ # @param [Hash] opts the optional parameters
614
+ # @option opts [String] :email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent.
615
+ # @option opts [Integer] :template_id Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email.
616
+ # @option opts [String] :message_id Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
617
+ # @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month.
618
+ # @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
619
+ # @return [GetTransacEmailsList]
620
+ def get_transac_emails_list(opts = {})
621
+ data, _status_code, _headers = get_transac_emails_list_with_http_info(opts)
622
+ data
623
+ end
624
+
625
+ # Get the list of transactional emails on the basis of allowed filters
626
+ # This endpoint will show the list of emails for past 30 days by default. To retrieve emails before that time, please pass startDate and endDate in query filters.
627
+ # @param [Hash] opts the optional parameters
628
+ # @option opts [String] :email Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent.
629
+ # @option opts [Integer] :template_id Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email.
630
+ # @option opts [String] :message_id Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
631
+ # @option opts [Date] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month.
632
+ # @option opts [Date] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month.
633
+ # @return [Array<(GetTransacEmailsList, Fixnum, Hash)>] GetTransacEmailsList data, response status code and response headers
634
+ def get_transac_emails_list_with_http_info(opts = {})
635
+ if @api_client.config.debugging
636
+ @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_emails_list ...'
637
+ end
638
+ # resource path
639
+ local_var_path = '/smtp/emails'
640
+
641
+ # query parameters
642
+ query_params = {}
643
+ query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
644
+ query_params[:'templateId'] = opts[:'template_id'] if !opts[:'template_id'].nil?
645
+ query_params[:'messageId'] = opts[:'message_id'] if !opts[:'message_id'].nil?
646
+ query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
647
+ query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
648
+
649
+ # header parameters
650
+ header_params = {}
651
+ # HTTP header 'Accept' (if needed)
652
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
653
+ # HTTP header 'Content-Type'
654
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
655
+
656
+ # form parameters
657
+ form_params = {}
658
+
659
+ # http body (model)
660
+ post_body = nil
661
+ auth_names = ['api-key', 'partner-key']
662
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
663
+ :header_params => header_params,
664
+ :query_params => query_params,
665
+ :form_params => form_params,
666
+ :body => post_body,
667
+ :auth_names => auth_names,
668
+ :return_type => 'GetTransacEmailsList')
669
+ if @api_client.config.debugging
670
+ @api_client.config.logger.debug "API called: SMTPApi#get_transac_emails_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
671
+ end
672
+ return data, status_code, headers
673
+ end
517
674
  # Send a template
518
675
  # This endpoint is deprecated. Prefer v3/smtp/email instead.
519
676
  # @param template_id Id of the template
@@ -522,7 +679,7 @@ module SibApiV3Sdk
522
679
  # @return [SendTemplateEmail]
523
680
  def send_template(template_id, send_email, opts = {})
524
681
  data, _status_code, _headers = send_template_with_http_info(template_id, send_email, opts)
525
- return data
682
+ data
526
683
  end
527
684
 
528
685
  # Send a template
@@ -533,7 +690,7 @@ module SibApiV3Sdk
533
690
  # @return [Array<(SendTemplateEmail, Fixnum, Hash)>] SendTemplateEmail data, response status code and response headers
534
691
  def send_template_with_http_info(template_id, send_email, opts = {})
535
692
  if @api_client.config.debugging
536
- @api_client.config.logger.debug "Calling API: SMTPApi.send_template ..."
693
+ @api_client.config.logger.debug 'Calling API: SMTPApi.send_template ...'
537
694
  end
538
695
  # verify the required parameter 'template_id' is set
539
696
  if @api_client.config.client_side_validation && template_id.nil?
@@ -544,7 +701,7 @@ module SibApiV3Sdk
544
701
  fail ArgumentError, "Missing the required parameter 'send_email' when calling SMTPApi.send_template"
545
702
  end
546
703
  # resource path
547
- local_var_path = "/smtp/templates/{templateId}/send".sub('{' + 'templateId' + '}', template_id.to_s)
704
+ local_var_path = '/smtp/templates/{templateId}/send'.sub('{' + 'templateId' + '}', template_id.to_s)
548
705
 
549
706
  # query parameters
550
707
  query_params = {}
@@ -574,27 +731,24 @@ module SibApiV3Sdk
574
731
  end
575
732
  return data, status_code, headers
576
733
  end
577
-
578
734
  # Send a template to your test list
579
- #
580
735
  # @param template_id Id of the template
581
736
  # @param send_test_email
582
737
  # @param [Hash] opts the optional parameters
583
738
  # @return [nil]
584
739
  def send_test_template(template_id, send_test_email, opts = {})
585
740
  send_test_template_with_http_info(template_id, send_test_email, opts)
586
- return nil
741
+ nil
587
742
  end
588
743
 
589
744
  # Send a template to your test list
590
- #
591
745
  # @param template_id Id of the template
592
746
  # @param send_test_email
593
747
  # @param [Hash] opts the optional parameters
594
748
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
595
749
  def send_test_template_with_http_info(template_id, send_test_email, opts = {})
596
750
  if @api_client.config.debugging
597
- @api_client.config.logger.debug "Calling API: SMTPApi.send_test_template ..."
751
+ @api_client.config.logger.debug 'Calling API: SMTPApi.send_test_template ...'
598
752
  end
599
753
  # verify the required parameter 'template_id' is set
600
754
  if @api_client.config.client_side_validation && template_id.nil?
@@ -605,7 +759,7 @@ module SibApiV3Sdk
605
759
  fail ArgumentError, "Missing the required parameter 'send_test_email' when calling SMTPApi.send_test_template"
606
760
  end
607
761
  # resource path
608
- local_var_path = "/smtp/templates/{templateId}/sendTest".sub('{' + 'templateId' + '}', template_id.to_s)
762
+ local_var_path = '/smtp/templates/{templateId}/sendTest'.sub('{' + 'templateId' + '}', template_id.to_s)
609
763
 
610
764
  # query parameters
611
765
  query_params = {}
@@ -634,32 +788,29 @@ module SibApiV3Sdk
634
788
  end
635
789
  return data, status_code, headers
636
790
  end
637
-
638
791
  # Send a transactional email
639
- #
640
792
  # @param send_smtp_email Values to send a transactional email
641
793
  # @param [Hash] opts the optional parameters
642
794
  # @return [CreateSmtpEmail]
643
795
  def send_transac_email(send_smtp_email, opts = {})
644
796
  data, _status_code, _headers = send_transac_email_with_http_info(send_smtp_email, opts)
645
- return data
797
+ data
646
798
  end
647
799
 
648
800
  # Send a transactional email
649
- #
650
801
  # @param send_smtp_email Values to send a transactional email
651
802
  # @param [Hash] opts the optional parameters
652
803
  # @return [Array<(CreateSmtpEmail, Fixnum, Hash)>] CreateSmtpEmail data, response status code and response headers
653
804
  def send_transac_email_with_http_info(send_smtp_email, opts = {})
654
805
  if @api_client.config.debugging
655
- @api_client.config.logger.debug "Calling API: SMTPApi.send_transac_email ..."
806
+ @api_client.config.logger.debug 'Calling API: SMTPApi.send_transac_email ...'
656
807
  end
657
808
  # verify the required parameter 'send_smtp_email' is set
658
809
  if @api_client.config.client_side_validation && send_smtp_email.nil?
659
810
  fail ArgumentError, "Missing the required parameter 'send_smtp_email' when calling SMTPApi.send_transac_email"
660
811
  end
661
812
  # resource path
662
- local_var_path = "/smtp/email"
813
+ local_var_path = '/smtp/email'
663
814
 
664
815
  # query parameters
665
816
  query_params = {}
@@ -689,27 +840,126 @@ module SibApiV3Sdk
689
840
  end
690
841
  return data, status_code, headers
691
842
  end
843
+ # Unblock or resubscribe a transactional contact
844
+ # @param email contact email (urlencoded) to unblock.
845
+ # @param [Hash] opts the optional parameters
846
+ # @return [nil]
847
+ def smtp_blocked_contacts_email_delete(email, opts = {})
848
+ smtp_blocked_contacts_email_delete_with_http_info(email, opts)
849
+ nil
850
+ end
851
+
852
+ # Unblock or resubscribe a transactional contact
853
+ # @param email contact email (urlencoded) to unblock.
854
+ # @param [Hash] opts the optional parameters
855
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
856
+ def smtp_blocked_contacts_email_delete_with_http_info(email, opts = {})
857
+ if @api_client.config.debugging
858
+ @api_client.config.logger.debug 'Calling API: SMTPApi.smtp_blocked_contacts_email_delete ...'
859
+ end
860
+ # verify the required parameter 'email' is set
861
+ if @api_client.config.client_side_validation && email.nil?
862
+ fail ArgumentError, "Missing the required parameter 'email' when calling SMTPApi.smtp_blocked_contacts_email_delete"
863
+ end
864
+ # resource path
865
+ local_var_path = '/smtp/blockedContacts/{email}'.sub('{' + 'email' + '}', email.to_s)
866
+
867
+ # query parameters
868
+ query_params = {}
869
+
870
+ # header parameters
871
+ header_params = {}
872
+ # HTTP header 'Accept' (if needed)
873
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
874
+ # HTTP header 'Content-Type'
875
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
876
+
877
+ # form parameters
878
+ form_params = {}
692
879
 
693
- # Updates an smtp templates
694
- #
880
+ # http body (model)
881
+ post_body = nil
882
+ auth_names = ['api-key', 'partner-key']
883
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
884
+ :header_params => header_params,
885
+ :query_params => query_params,
886
+ :form_params => form_params,
887
+ :body => post_body,
888
+ :auth_names => auth_names)
889
+ if @api_client.config.debugging
890
+ @api_client.config.logger.debug "API called: SMTPApi#smtp_blocked_contacts_email_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
+ end
892
+ return data, status_code, headers
893
+ end
894
+ # Delete an SMTP transactional log
895
+ # @param message_id MessageId of the transactional log to delete
896
+ # @param [Hash] opts the optional parameters
897
+ # @return [nil]
898
+ def smtp_log_message_id_delete(message_id, opts = {})
899
+ smtp_log_message_id_delete_with_http_info(message_id, opts)
900
+ nil
901
+ end
902
+
903
+ # Delete an SMTP transactional log
904
+ # @param message_id MessageId of the transactional log to delete
905
+ # @param [Hash] opts the optional parameters
906
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
907
+ def smtp_log_message_id_delete_with_http_info(message_id, opts = {})
908
+ if @api_client.config.debugging
909
+ @api_client.config.logger.debug 'Calling API: SMTPApi.smtp_log_message_id_delete ...'
910
+ end
911
+ # verify the required parameter 'message_id' is set
912
+ if @api_client.config.client_side_validation && message_id.nil?
913
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling SMTPApi.smtp_log_message_id_delete"
914
+ end
915
+ # resource path
916
+ local_var_path = '/smtp/log/{messageId}'.sub('{' + 'messageId' + '}', message_id.to_s)
917
+
918
+ # query parameters
919
+ query_params = {}
920
+
921
+ # header parameters
922
+ header_params = {}
923
+ # HTTP header 'Accept' (if needed)
924
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
925
+ # HTTP header 'Content-Type'
926
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
927
+
928
+ # form parameters
929
+ form_params = {}
930
+
931
+ # http body (model)
932
+ post_body = nil
933
+ auth_names = ['api-key', 'partner-key']
934
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
935
+ :header_params => header_params,
936
+ :query_params => query_params,
937
+ :form_params => form_params,
938
+ :body => post_body,
939
+ :auth_names => auth_names)
940
+ if @api_client.config.debugging
941
+ @api_client.config.logger.debug "API called: SMTPApi#smtp_log_message_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
+ end
943
+ return data, status_code, headers
944
+ end
945
+ # Update an email template
695
946
  # @param template_id id of the template
696
- # @param smtp_template values to update in smtp template
947
+ # @param smtp_template values to update in transactional email template
697
948
  # @param [Hash] opts the optional parameters
698
949
  # @return [nil]
699
950
  def update_smtp_template(template_id, smtp_template, opts = {})
700
951
  update_smtp_template_with_http_info(template_id, smtp_template, opts)
701
- return nil
952
+ nil
702
953
  end
703
954
 
704
- # Updates an smtp templates
705
- #
955
+ # Update an email template
706
956
  # @param template_id id of the template
707
- # @param smtp_template values to update in smtp template
957
+ # @param smtp_template values to update in transactional email template
708
958
  # @param [Hash] opts the optional parameters
709
959
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
710
960
  def update_smtp_template_with_http_info(template_id, smtp_template, opts = {})
711
961
  if @api_client.config.debugging
712
- @api_client.config.logger.debug "Calling API: SMTPApi.update_smtp_template ..."
962
+ @api_client.config.logger.debug 'Calling API: SMTPApi.update_smtp_template ...'
713
963
  end
714
964
  # verify the required parameter 'template_id' is set
715
965
  if @api_client.config.client_side_validation && template_id.nil?
@@ -720,7 +970,7 @@ module SibApiV3Sdk
720
970
  fail ArgumentError, "Missing the required parameter 'smtp_template' when calling SMTPApi.update_smtp_template"
721
971
  end
722
972
  # resource path
723
- local_var_path = "/smtp/templates/{templateId}".sub('{' + 'templateId' + '}', template_id.to_s)
973
+ local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
724
974
 
725
975
  # query parameters
726
976
  query_params = {}