sib-api-v3-sdk 5.5.0 → 7.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (473) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -29
  3. data/docs/AbTestCampaignResult.md +2 -0
  4. data/docs/AbTestCampaignResultClickedLinks.md +9 -0
  5. data/docs/AbTestCampaignResultStatistics.md +13 -0
  6. data/docs/AbTestVersionClicks.md +7 -0
  7. data/docs/AbTestVersionClicksInner.md +10 -0
  8. data/docs/AbTestVersionStats.md +9 -0
  9. data/docs/AddContactToList.md +2 -1
  10. data/docs/BlockDomain.md +8 -0
  11. data/docs/ContactsApi.md +45 -33
  12. data/docs/CreateDoiContact.md +1 -1
  13. data/docs/CreateEmailCampaign.md +1 -1
  14. data/docs/CreateSmsCampaign.md +2 -2
  15. data/docs/CreateSmtpEmail.md +2 -1
  16. data/docs/CreateSmtpTemplateSender.md +1 -1
  17. data/docs/CreateWebhook.md +1 -1
  18. data/docs/EmailCampaignsApi.md +7 -5
  19. data/docs/FoldersApi.md +9 -3
  20. data/docs/GetAggregatedReport.md +13 -13
  21. data/docs/GetBlockedDomains.md +8 -0
  22. data/docs/GetCampaignOverview.md +1 -1
  23. data/docs/GetCampaignStats.md +1 -0
  24. data/docs/GetChildDomain.md +2 -2
  25. data/docs/GetChildrenList.md +1 -1
  26. data/docs/GetContactCampaignStatsOpened.md +1 -1
  27. data/docs/GetContactDetails.md +2 -2
  28. data/docs/GetEmailCampaign.md +8 -8
  29. data/docs/GetEmailCampaigns.md +1 -1
  30. data/docs/GetEmailEventReportEvents.md +2 -1
  31. data/docs/GetExtendedCampaignOverview.md +6 -6
  32. data/docs/GetExtendedCampaignStats.md +1 -1
  33. data/docs/GetExtendedCampaignStatsGlobalStats.md +7 -0
  34. data/docs/GetExtendedContactDetails.md +2 -2
  35. data/docs/GetExtendedContactDetailsStatisticsLinks.md +1 -1
  36. data/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +1 -1
  37. data/docs/GetExtendedContactDetailsStatisticsOpened.md +1 -1
  38. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +2 -2
  39. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +2 -2
  40. data/docs/GetExtendedList.md +1 -1
  41. data/docs/GetFolderLists.md +2 -2
  42. data/docs/GetLists.md +2 -2
  43. data/docs/GetProcesses.md +1 -1
  44. data/docs/GetSmsCampaign.md +5 -5
  45. data/docs/GetSmsCampaignOverview.md +3 -3
  46. data/docs/GetSmsCampaignRecipients.md +7 -0
  47. data/docs/GetSmsCampaigns.md +1 -1
  48. data/docs/GetSmsEventReportEvents.md +4 -4
  49. data/docs/GetSmtpTemplateOverview.md +2 -2
  50. data/docs/GetTransacAggregatedSmsReport.md +10 -10
  51. data/docs/GetTransacBlockedContactsContacts.md +1 -1
  52. data/docs/GetTransacEmailContent.md +1 -1
  53. data/docs/GetTransacEmailContentEvents.md +1 -1
  54. data/docs/GetTransacEmailsListTransactionalEmails.md +1 -1
  55. data/docs/GetTransacSmsReportReports.md +10 -10
  56. data/docs/GetWebhook.md +2 -2
  57. data/docs/ListsApi.md +15 -9
  58. data/docs/ProcessApi.md +3 -1
  59. data/docs/RemoveContactFromList.md +2 -1
  60. data/docs/SMSCampaignsApi.md +7 -5
  61. data/docs/SendReportEmail.md +1 -5
  62. data/docs/SendSmtpEmail.md +3 -2
  63. data/docs/SendSmtpEmailMessageVersions.md +13 -0
  64. data/docs/SendSmtpEmailReplyTo1.md +9 -0
  65. data/docs/SendSmtpEmailSender.md +3 -2
  66. data/docs/SendSmtpEmailTo1.md +9 -0
  67. data/docs/SendTransacSms.md +1 -1
  68. data/docs/{SMTPApi.md → TransactionalEmailsApi.md} +242 -60
  69. data/docs/TransactionalSMSApi.md +9 -5
  70. data/docs/UpdateEmailCampaign.md +1 -1
  71. data/docs/UpdateSmsCampaign.md +2 -2
  72. data/docs/UpdateWebhook.md +1 -1
  73. data/lib/sib-api-v3-sdk.rb +22 -10
  74. data/lib/sib-api-v3-sdk/api/account_api.rb +11 -1
  75. data/lib/sib-api-v3-sdk/api/attributes_api.rb +11 -1
  76. data/lib/sib-api-v3-sdk/api/contacts_api.rb +85 -45
  77. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +21 -5
  78. data/lib/sib-api-v3-sdk/api/folders_api.rb +23 -1
  79. data/lib/sib-api-v3-sdk/api/lists_api.rb +35 -7
  80. data/lib/sib-api-v3-sdk/api/process_api.rb +17 -1
  81. data/lib/sib-api-v3-sdk/api/reseller_api.rb +11 -1
  82. data/lib/sib-api-v3-sdk/api/senders_api.rb +11 -1
  83. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +21 -5
  84. data/lib/sib-api-v3-sdk/api/{smtp_api.rb → transactional_emails_api.rb} +249 -55
  85. data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +23 -1
  86. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +11 -1
  87. data/lib/sib-api-v3-sdk/api_client.rb +6 -4
  88. data/lib/sib-api-v3-sdk/api_error.rb +1 -1
  89. data/lib/sib-api-v3-sdk/configuration.rb +3 -3
  90. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +25 -6
  91. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +203 -0
  92. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +259 -0
  93. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +176 -0
  94. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +220 -0
  95. data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +206 -0
  96. data/lib/sib-api-v3-sdk/models/add_child_domain.rb +3 -2
  97. data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +20 -7
  98. data/lib/sib-api-v3-sdk/models/add_credits.rb +3 -2
  99. data/lib/sib-api-v3-sdk/models/block_domain.rb +190 -0
  100. data/lib/sib-api-v3-sdk/models/create_attribute.rb +3 -2
  101. data/lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb +3 -2
  102. data/lib/sib-api-v3-sdk/models/create_child.rb +3 -2
  103. data/lib/sib-api-v3-sdk/models/create_contact.rb +3 -2
  104. data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +8 -2
  105. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +4 -3
  106. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +3 -2
  107. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +3 -2
  108. data/lib/sib-api-v3-sdk/models/create_list.rb +3 -2
  109. data/lib/sib-api-v3-sdk/models/create_model.rb +3 -2
  110. data/lib/sib-api-v3-sdk/models/create_reseller.rb +3 -2
  111. data/lib/sib-api-v3-sdk/models/create_sender.rb +3 -2
  112. data/lib/sib-api-v3-sdk/models/create_sender_ips.rb +3 -2
  113. data/lib/sib-api-v3-sdk/models/create_sender_model.rb +3 -2
  114. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +10 -9
  115. data/lib/sib-api-v3-sdk/models/create_sms_campaign_recipients.rb +3 -2
  116. data/lib/sib-api-v3-sdk/models/create_smtp_email.rb +18 -11
  117. data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +3 -2
  118. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +3 -7
  119. data/lib/sib-api-v3-sdk/models/create_update_contact_model.rb +3 -2
  120. data/lib/sib-api-v3-sdk/models/create_update_folder.rb +3 -2
  121. data/lib/sib-api-v3-sdk/models/create_webhook.rb +4 -3
  122. data/lib/sib-api-v3-sdk/models/created_process_id.rb +3 -2
  123. data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +3 -2
  124. data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +3 -2
  125. data/lib/sib-api-v3-sdk/models/error_model.rb +3 -2
  126. data/lib/sib-api-v3-sdk/models/get_account.rb +3 -2
  127. data/lib/sib-api-v3-sdk/models/get_account_marketing_automation.rb +3 -2
  128. data/lib/sib-api-v3-sdk/models/get_account_plan.rb +3 -2
  129. data/lib/sib-api-v3-sdk/models/get_account_relay.rb +3 -2
  130. data/lib/sib-api-v3-sdk/models/get_account_relay_data.rb +3 -2
  131. data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +3 -67
  132. data/lib/sib-api-v3-sdk/models/get_attributes.rb +3 -2
  133. data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +3 -2
  134. data/lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb +3 -2
  135. data/lib/sib-api-v3-sdk/models/get_blocked_domains.rb +193 -0
  136. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +4 -3
  137. data/lib/sib-api-v3-sdk/models/get_campaign_recipients.rb +3 -2
  138. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +17 -6
  139. data/lib/sib-api-v3-sdk/models/get_child_account_creation_status.rb +3 -2
  140. data/lib/sib-api-v3-sdk/models/get_child_domain.rb +3 -12
  141. data/lib/sib-api-v3-sdk/models/get_child_domains.rb +3 -2
  142. data/lib/sib-api-v3-sdk/models/get_child_info.rb +3 -2
  143. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +3 -2
  144. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +3 -2
  145. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +3 -2
  146. data/lib/sib-api-v3-sdk/models/get_child_info_credits.rb +3 -2
  147. data/lib/sib-api-v3-sdk/models/get_child_info_statistics.rb +3 -2
  148. data/lib/sib-api-v3-sdk/models/get_children_list.rb +3 -7
  149. data/lib/sib-api-v3-sdk/models/get_client.rb +3 -2
  150. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +3 -2
  151. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +3 -2
  152. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +4 -3
  153. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_transac_attributes.rb +3 -2
  154. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +3 -2
  155. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +5 -4
  156. data/lib/sib-api-v3-sdk/models/get_contacts.rb +3 -2
  157. data/lib/sib-api-v3-sdk/models/get_device_browser_stats.rb +3 -2
  158. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +9 -18
  159. data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +3 -7
  160. data/lib/sib-api-v3-sdk/models/get_email_event_report.rb +3 -2
  161. data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +20 -9
  162. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +7 -16
  163. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview_sender.rb +3 -2
  164. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +4 -4
  165. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats_global_stats.rb +176 -0
  166. data/lib/sib-api-v3-sdk/models/get_extended_client.rb +3 -2
  167. data/lib/sib-api-v3-sdk/models/get_extended_client_address.rb +3 -2
  168. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +5 -4
  169. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +3 -2
  170. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_clicked.rb +3 -2
  171. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_links.rb +4 -3
  172. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +4 -3
  173. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +4 -3
  174. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions.rb +3 -2
  175. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +4 -8
  176. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +4 -8
  177. data/lib/sib-api-v3-sdk/models/get_extended_list.rb +4 -3
  178. data/lib/sib-api-v3-sdk/models/get_extended_list_campaign_stats.rb +3 -2
  179. data/lib/sib-api-v3-sdk/models/get_folder.rb +3 -2
  180. data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +3 -12
  181. data/lib/sib-api-v3-sdk/models/get_folders.rb +3 -2
  182. data/lib/sib-api-v3-sdk/models/get_ip.rb +3 -2
  183. data/lib/sib-api-v3-sdk/models/get_ip_from_sender.rb +3 -2
  184. data/lib/sib-api-v3-sdk/models/get_ips.rb +3 -2
  185. data/lib/sib-api-v3-sdk/models/get_ips_from_sender.rb +3 -2
  186. data/lib/sib-api-v3-sdk/models/get_list.rb +3 -2
  187. data/lib/sib-api-v3-sdk/models/get_lists.rb +3 -12
  188. data/lib/sib-api-v3-sdk/models/get_process.rb +3 -2
  189. data/lib/sib-api-v3-sdk/models/get_processes.rb +3 -7
  190. data/lib/sib-api-v3-sdk/models/get_reports.rb +3 -2
  191. data/lib/sib-api-v3-sdk/models/get_reports_reports.rb +3 -2
  192. data/lib/sib-api-v3-sdk/models/get_senders_list.rb +3 -2
  193. data/lib/sib-api-v3-sdk/models/get_senders_list_ips.rb +3 -2
  194. data/lib/sib-api-v3-sdk/models/get_senders_list_senders.rb +3 -2
  195. data/lib/sib-api-v3-sdk/models/get_shared_template_url.rb +3 -2
  196. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +8 -12
  197. data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +6 -10
  198. data/lib/sib-api-v3-sdk/models/get_sms_campaign_recipients.rb +175 -0
  199. data/lib/sib-api-v3-sdk/models/get_sms_campaign_stats.rb +3 -2
  200. data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +3 -7
  201. data/lib/sib-api-v3-sdk/models/get_sms_event_report.rb +3 -2
  202. data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +4 -23
  203. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +5 -4
  204. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview_sender.rb +3 -2
  205. data/lib/sib-api-v3-sdk/models/get_smtp_templates.rb +3 -2
  206. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +3 -2
  207. data/lib/sib-api-v3-sdk/models/get_stats_by_browser.rb +3 -2
  208. data/lib/sib-api-v3-sdk/models/get_stats_by_device.rb +3 -2
  209. data/lib/sib-api-v3-sdk/models/get_stats_by_domain.rb +3 -2
  210. data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +3 -52
  211. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts.rb +3 -2
  212. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_contacts.rb +4 -3
  213. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_reason.rb +3 -2
  214. data/lib/sib-api-v3-sdk/models/get_transac_email_content.rb +4 -3
  215. data/lib/sib-api-v3-sdk/models/get_transac_email_content_events.rb +4 -3
  216. data/lib/sib-api-v3-sdk/models/get_transac_emails_list.rb +3 -2
  217. data/lib/sib-api-v3-sdk/models/get_transac_emails_list_transactional_emails.rb +4 -3
  218. data/lib/sib-api-v3-sdk/models/get_transac_sms_report.rb +3 -2
  219. data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +3 -52
  220. data/lib/sib-api-v3-sdk/models/get_webhook.rb +5 -4
  221. data/lib/sib-api-v3-sdk/models/get_webhooks.rb +3 -2
  222. data/lib/sib-api-v3-sdk/models/manage_ip.rb +3 -2
  223. data/lib/sib-api-v3-sdk/models/post_contact_info.rb +3 -2
  224. data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +3 -2
  225. data/lib/sib-api-v3-sdk/models/post_send_failed.rb +3 -2
  226. data/lib/sib-api-v3-sdk/models/post_send_sms_test_failed.rb +3 -2
  227. data/lib/sib-api-v3-sdk/models/remaining_credit_model.rb +3 -2
  228. data/lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb +3 -2
  229. data/lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb +3 -2
  230. data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +17 -4
  231. data/lib/sib-api-v3-sdk/models/remove_credits.rb +3 -2
  232. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +3 -2
  233. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +3 -2
  234. data/lib/sib-api-v3-sdk/models/request_contact_import.rb +3 -2
  235. data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +3 -2
  236. data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +3 -2
  237. data/lib/sib-api-v3-sdk/models/send_email.rb +3 -2
  238. data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +3 -2
  239. data/lib/sib-api-v3-sdk/models/send_report.rb +3 -2
  240. data/lib/sib-api-v3-sdk/models/send_report_email.rb +6 -90
  241. data/lib/sib-api-v3-sdk/models/send_sms.rb +3 -2
  242. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +18 -10
  243. data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +3 -2
  244. data/lib/sib-api-v3-sdk/models/send_smtp_email_bcc.rb +3 -2
  245. data/lib/sib-api-v3-sdk/models/send_smtp_email_cc.rb +3 -2
  246. data/lib/sib-api-v3-sdk/models/send_smtp_email_message_versions.rb +247 -0
  247. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +3 -2
  248. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to_1.rb +201 -0
  249. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +20 -14
  250. data/lib/sib-api-v3-sdk/models/send_smtp_email_to.rb +3 -2
  251. data/lib/sib-api-v3-sdk/models/send_smtp_email_to_1.rb +200 -0
  252. data/lib/sib-api-v3-sdk/models/send_template_email.rb +3 -2
  253. data/lib/sib-api-v3-sdk/models/send_test_email.rb +3 -2
  254. data/lib/sib-api-v3-sdk/models/send_test_sms.rb +3 -2
  255. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +9 -8
  256. data/lib/sib-api-v3-sdk/models/update_attribute.rb +3 -2
  257. data/lib/sib-api-v3-sdk/models/update_attribute_enumeration.rb +3 -2
  258. data/lib/sib-api-v3-sdk/models/update_campaign_status.rb +3 -2
  259. data/lib/sib-api-v3-sdk/models/update_child.rb +3 -2
  260. data/lib/sib-api-v3-sdk/models/update_child_account_status.rb +3 -2
  261. data/lib/sib-api-v3-sdk/models/update_child_domain.rb +3 -2
  262. data/lib/sib-api-v3-sdk/models/update_contact.rb +3 -2
  263. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +4 -3
  264. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +3 -2
  265. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +3 -2
  266. data/lib/sib-api-v3-sdk/models/update_list.rb +3 -2
  267. data/lib/sib-api-v3-sdk/models/update_sender.rb +3 -2
  268. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +10 -9
  269. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +3 -2
  270. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +3 -2
  271. data/lib/sib-api-v3-sdk/models/update_webhook.rb +4 -3
  272. data/lib/sib-api-v3-sdk/models/upload_image_to_gallery.rb +3 -2
  273. data/lib/sib-api-v3-sdk/version.rb +2 -2
  274. data/spec/api/account_api_spec.rb +1 -1
  275. data/spec/api/attributes_api_spec.rb +1 -1
  276. data/spec/api/contacts_api_spec.rb +14 -9
  277. data/spec/api/email_campaigns_api_spec.rb +4 -3
  278. data/spec/api/folders_api_spec.rb +3 -1
  279. data/spec/api/lists_api_spec.rb +7 -4
  280. data/spec/api/process_api_spec.rb +2 -1
  281. data/spec/api/reseller_api_spec.rb +1 -1
  282. data/spec/api/senders_api_spec.rb +1 -1
  283. data/spec/api/sms_campaigns_api_spec.rb +4 -3
  284. data/spec/api/{smtp_api_spec.rb → transactional_emails_api_spec.rb} +47 -7
  285. data/spec/api/transactional_sms_api_spec.rb +3 -1
  286. data/spec/api/webhooks_api_spec.rb +1 -1
  287. data/spec/api_client_spec.rb +18 -1
  288. data/spec/configuration_spec.rb +1 -1
  289. data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +47 -0
  290. data/spec/models/ab_test_campaign_result_spec.rb +13 -1
  291. data/spec/models/ab_test_campaign_result_statistics_spec.rb +71 -0
  292. data/spec/models/ab_test_version_clicks_inner_spec.rb +53 -0
  293. data/spec/models/ab_test_version_clicks_spec.rb +35 -0
  294. data/spec/models/ab_test_version_stats_spec.rb +47 -0
  295. data/spec/models/add_child_domain_spec.rb +1 -1
  296. data/spec/models/add_contact_to_list_spec.rb +7 -1
  297. data/spec/models/add_credits_spec.rb +1 -1
  298. data/spec/models/block_domain_spec.rb +41 -0
  299. data/spec/models/create_attribute_enumeration_spec.rb +1 -1
  300. data/spec/models/create_attribute_spec.rb +1 -1
  301. data/spec/models/create_child_spec.rb +1 -1
  302. data/spec/models/create_contact_spec.rb +1 -1
  303. data/spec/models/create_doi_contact_spec.rb +1 -1
  304. data/spec/models/create_email_campaign_recipients_spec.rb +1 -1
  305. data/spec/models/create_email_campaign_sender_spec.rb +1 -1
  306. data/spec/models/create_email_campaign_spec.rb +1 -1
  307. data/spec/models/create_list_spec.rb +1 -1
  308. data/spec/models/create_model_spec.rb +1 -1
  309. data/spec/models/create_reseller_spec.rb +1 -1
  310. data/spec/models/create_sender_ips_spec.rb +1 -1
  311. data/spec/models/create_sender_model_spec.rb +1 -1
  312. data/spec/models/create_sender_spec.rb +1 -1
  313. data/spec/models/create_sms_campaign_recipients_spec.rb +1 -1
  314. data/spec/models/create_sms_campaign_spec.rb +1 -1
  315. data/spec/models/create_smtp_email_spec.rb +7 -1
  316. data/spec/models/create_smtp_template_sender_spec.rb +1 -1
  317. data/spec/models/create_smtp_template_spec.rb +1 -1
  318. data/spec/models/create_update_contact_model_spec.rb +1 -1
  319. data/spec/models/create_update_folder_spec.rb +1 -1
  320. data/spec/models/create_webhook_spec.rb +1 -1
  321. data/spec/models/created_process_id_spec.rb +1 -1
  322. data/spec/models/delete_hardbounces_spec.rb +1 -1
  323. data/spec/models/email_export_recipients_spec.rb +1 -1
  324. data/spec/models/error_model_spec.rb +1 -1
  325. data/spec/models/get_account_marketing_automation_spec.rb +1 -1
  326. data/spec/models/get_account_plan_spec.rb +1 -1
  327. data/spec/models/get_account_relay_data_spec.rb +1 -1
  328. data/spec/models/get_account_relay_spec.rb +1 -1
  329. data/spec/models/get_account_spec.rb +1 -1
  330. data/spec/models/get_aggregated_report_spec.rb +1 -1
  331. data/spec/models/get_attributes_attributes_spec.rb +1 -1
  332. data/spec/models/get_attributes_enumeration_spec.rb +1 -1
  333. data/spec/models/get_attributes_spec.rb +1 -1
  334. data/spec/models/get_blocked_domains_spec.rb +41 -0
  335. data/spec/models/get_campaign_overview_spec.rb +1 -1
  336. data/spec/models/get_campaign_recipients_spec.rb +1 -1
  337. data/spec/models/get_campaign_stats_spec.rb +7 -1
  338. data/spec/models/get_child_account_creation_status_spec.rb +1 -1
  339. data/spec/models/get_child_domain_spec.rb +1 -1
  340. data/spec/models/get_child_domains_spec.rb +1 -1
  341. data/spec/models/get_child_info_api_keys_spec.rb +1 -1
  342. data/spec/models/get_child_info_api_keys_v2_spec.rb +1 -1
  343. data/spec/models/get_child_info_api_keys_v3_spec.rb +1 -1
  344. data/spec/models/get_child_info_credits_spec.rb +1 -1
  345. data/spec/models/get_child_info_spec.rb +1 -1
  346. data/spec/models/get_child_info_statistics_spec.rb +1 -1
  347. data/spec/models/get_children_list_spec.rb +1 -1
  348. data/spec/models/get_client_spec.rb +1 -1
  349. data/spec/models/get_contact_campaign_stats_clicked_spec.rb +1 -1
  350. data/spec/models/get_contact_campaign_stats_opened_spec.rb +1 -1
  351. data/spec/models/get_contact_campaign_stats_spec.rb +1 -1
  352. data/spec/models/get_contact_campaign_stats_transac_attributes_spec.rb +1 -1
  353. data/spec/models/get_contact_campaign_stats_unsubscriptions_spec.rb +1 -1
  354. data/spec/models/get_contact_details_spec.rb +1 -1
  355. data/spec/models/get_contacts_spec.rb +1 -1
  356. data/spec/models/get_device_browser_stats_spec.rb +1 -1
  357. data/spec/models/get_email_campaign_spec.rb +1 -1
  358. data/spec/models/get_email_campaigns_spec.rb +1 -1
  359. data/spec/models/get_email_event_report_events_spec.rb +8 -2
  360. data/spec/models/get_email_event_report_spec.rb +1 -1
  361. data/spec/models/get_extended_campaign_overview_sender_spec.rb +1 -1
  362. data/spec/models/get_extended_campaign_overview_spec.rb +1 -1
  363. data/spec/models/get_extended_campaign_stats_global_stats_spec.rb +35 -0
  364. data/spec/models/get_extended_campaign_stats_spec.rb +1 -1
  365. data/spec/models/get_extended_client_address_spec.rb +1 -1
  366. data/spec/models/get_extended_client_spec.rb +1 -1
  367. data/spec/models/get_extended_contact_details_spec.rb +1 -1
  368. data/spec/models/get_extended_contact_details_statistics_clicked_spec.rb +1 -1
  369. data/spec/models/get_extended_contact_details_statistics_links_spec.rb +1 -1
  370. data/spec/models/get_extended_contact_details_statistics_messages_sent_spec.rb +1 -1
  371. data/spec/models/get_extended_contact_details_statistics_opened_spec.rb +1 -1
  372. data/spec/models/get_extended_contact_details_statistics_spec.rb +1 -1
  373. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription_spec.rb +1 -1
  374. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_spec.rb +1 -1
  375. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription_spec.rb +1 -1
  376. data/spec/models/get_extended_list_campaign_stats_spec.rb +1 -1
  377. data/spec/models/get_extended_list_spec.rb +1 -1
  378. data/spec/models/get_folder_lists_spec.rb +1 -1
  379. data/spec/models/get_folder_spec.rb +1 -1
  380. data/spec/models/get_folders_spec.rb +1 -1
  381. data/spec/models/get_ip_from_sender_spec.rb +1 -1
  382. data/spec/models/get_ip_spec.rb +1 -1
  383. data/spec/models/get_ips_from_sender_spec.rb +1 -1
  384. data/spec/models/get_ips_spec.rb +1 -1
  385. data/spec/models/get_list_spec.rb +1 -1
  386. data/spec/models/get_lists_spec.rb +1 -1
  387. data/spec/models/get_process_spec.rb +1 -1
  388. data/spec/models/get_processes_spec.rb +1 -1
  389. data/spec/models/get_reports_reports_spec.rb +1 -1
  390. data/spec/models/get_reports_spec.rb +1 -1
  391. data/spec/models/get_senders_list_ips_spec.rb +1 -1
  392. data/spec/models/get_senders_list_senders_spec.rb +1 -1
  393. data/spec/models/get_senders_list_spec.rb +1 -1
  394. data/spec/models/get_shared_template_url_spec.rb +1 -1
  395. data/spec/models/get_sms_campaign_overview_spec.rb +1 -1
  396. data/spec/models/get_sms_campaign_recipients_spec.rb +35 -0
  397. data/spec/models/get_sms_campaign_spec.rb +1 -1
  398. data/spec/models/get_sms_campaign_stats_spec.rb +1 -1
  399. data/spec/models/get_sms_campaigns_spec.rb +1 -1
  400. data/spec/models/get_sms_event_report_events_spec.rb +1 -1
  401. data/spec/models/get_sms_event_report_spec.rb +1 -1
  402. data/spec/models/get_smtp_template_overview_sender_spec.rb +1 -1
  403. data/spec/models/get_smtp_template_overview_spec.rb +1 -1
  404. data/spec/models/get_smtp_templates_spec.rb +1 -1
  405. data/spec/models/get_sso_token_spec.rb +1 -1
  406. data/spec/models/get_stats_by_browser_spec.rb +1 -1
  407. data/spec/models/get_stats_by_device_spec.rb +1 -1
  408. data/spec/models/get_stats_by_domain_spec.rb +1 -1
  409. data/spec/models/get_transac_aggregated_sms_report_spec.rb +1 -1
  410. data/spec/models/get_transac_blocked_contacts_contacts_spec.rb +1 -1
  411. data/spec/models/get_transac_blocked_contacts_reason_spec.rb +1 -1
  412. data/spec/models/get_transac_blocked_contacts_spec.rb +1 -1
  413. data/spec/models/get_transac_email_content_events_spec.rb +1 -1
  414. data/spec/models/get_transac_email_content_spec.rb +1 -1
  415. data/spec/models/get_transac_emails_list_spec.rb +1 -1
  416. data/spec/models/get_transac_emails_list_transactional_emails_spec.rb +1 -1
  417. data/spec/models/get_transac_sms_report_reports_spec.rb +1 -1
  418. data/spec/models/get_transac_sms_report_spec.rb +1 -1
  419. data/spec/models/get_webhook_spec.rb +1 -1
  420. data/spec/models/get_webhooks_spec.rb +1 -1
  421. data/spec/models/manage_ip_spec.rb +1 -1
  422. data/spec/models/post_contact_info_contacts_spec.rb +1 -1
  423. data/spec/models/post_contact_info_spec.rb +1 -1
  424. data/spec/models/post_send_failed_spec.rb +1 -1
  425. data/spec/models/post_send_sms_test_failed_spec.rb +1 -1
  426. data/spec/models/remaining_credit_model_child_spec.rb +1 -1
  427. data/spec/models/remaining_credit_model_reseller_spec.rb +1 -1
  428. data/spec/models/remaining_credit_model_spec.rb +1 -1
  429. data/spec/models/remove_contact_from_list_spec.rb +7 -1
  430. data/spec/models/remove_credits_spec.rb +1 -1
  431. data/spec/models/request_contact_export_custom_contact_filter_spec.rb +1 -1
  432. data/spec/models/request_contact_export_spec.rb +1 -1
  433. data/spec/models/request_contact_import_new_list_spec.rb +1 -1
  434. data/spec/models/request_contact_import_spec.rb +1 -1
  435. data/spec/models/request_sms_recipient_export_spec.rb +1 -1
  436. data/spec/models/send_email_attachment_spec.rb +1 -1
  437. data/spec/models/send_email_spec.rb +1 -1
  438. data/spec/models/send_report_email_spec.rb +1 -29
  439. data/spec/models/send_report_spec.rb +1 -1
  440. data/spec/models/send_sms_spec.rb +1 -1
  441. data/spec/models/send_smtp_email_attachment_spec.rb +1 -1
  442. data/spec/models/send_smtp_email_bcc_spec.rb +1 -1
  443. data/spec/models/send_smtp_email_cc_spec.rb +1 -1
  444. data/spec/models/send_smtp_email_message_versions_spec.rb +71 -0
  445. data/spec/models/send_smtp_email_reply_to_1_spec.rb +47 -0
  446. data/spec/models/send_smtp_email_reply_to_spec.rb +1 -1
  447. data/spec/models/send_smtp_email_sender_spec.rb +7 -1
  448. data/spec/models/send_smtp_email_spec.rb +7 -1
  449. data/spec/models/send_smtp_email_to_1_spec.rb +47 -0
  450. data/spec/models/send_smtp_email_to_spec.rb +1 -1
  451. data/spec/models/send_template_email_spec.rb +1 -1
  452. data/spec/models/send_test_email_spec.rb +1 -1
  453. data/spec/models/send_test_sms_spec.rb +1 -1
  454. data/spec/models/send_transac_sms_spec.rb +1 -1
  455. data/spec/models/update_attribute_enumeration_spec.rb +1 -1
  456. data/spec/models/update_attribute_spec.rb +1 -1
  457. data/spec/models/update_campaign_status_spec.rb +1 -1
  458. data/spec/models/update_child_account_status_spec.rb +1 -1
  459. data/spec/models/update_child_domain_spec.rb +1 -1
  460. data/spec/models/update_child_spec.rb +1 -1
  461. data/spec/models/update_contact_spec.rb +1 -1
  462. data/spec/models/update_email_campaign_recipients_spec.rb +1 -1
  463. data/spec/models/update_email_campaign_sender_spec.rb +1 -1
  464. data/spec/models/update_email_campaign_spec.rb +1 -1
  465. data/spec/models/update_list_spec.rb +1 -1
  466. data/spec/models/update_sender_spec.rb +1 -1
  467. data/spec/models/update_sms_campaign_spec.rb +1 -1
  468. data/spec/models/update_smtp_template_sender_spec.rb +1 -1
  469. data/spec/models/update_smtp_template_spec.rb +1 -1
  470. data/spec/models/update_webhook_spec.rb +1 -1
  471. data/spec/models/upload_image_to_gallery_spec.rb +1 -1
  472. data/spec/spec_helper.rb +1 -1
  473. metadata +58 -10
@@ -6,19 +6,82 @@
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.4.12
9
+ Swagger Codegen version: 2.4.18
10
10
 
11
11
  =end
12
12
 
13
13
  require 'uri'
14
14
 
15
15
  module SibApiV3Sdk
16
- class SMTPApi
16
+ class TransactionalEmailsApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent(user_agent)
26
+ @user_agent = user_agent
27
+ if user_agent.is_a?(String) && user_agent.downcase.start_with?('sendinblue_')
28
+ @api_client.default_headers['User-Agent'] = @user_agent
29
+ end
30
+ end
31
+
32
+ # Add a new domain to the list of blocked domains
33
+ # Blocks a new domain in order to avoid messages being sent to the same
34
+ # @param block_domain
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [nil]
37
+ def block_new_domain(block_domain, opts = {})
38
+ block_new_domain_with_http_info(block_domain, opts)
39
+ nil
40
+ end
41
+
42
+ # Add a new domain to the list of blocked domains
43
+ # Blocks a new domain in order to avoid messages being sent to the same
44
+ # @param block_domain
45
+ # @param [Hash] opts the optional parameters
46
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
47
+ def block_new_domain_with_http_info(block_domain, opts = {})
48
+ if @api_client.config.debugging
49
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.block_new_domain ...'
50
+ end
51
+ # verify the required parameter 'block_domain' is set
52
+ if @api_client.config.client_side_validation && block_domain.nil?
53
+ fail ArgumentError, "Missing the required parameter 'block_domain' when calling TransactionalEmailsApi.block_new_domain"
54
+ end
55
+ # resource path
56
+ local_var_path = '/smtp/blockedDomains'
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+ # HTTP header 'Accept' (if needed)
64
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
65
+ # HTTP header 'Content-Type'
66
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
67
+
68
+ # form parameters
69
+ form_params = {}
70
+
71
+ # http body (model)
72
+ post_body = @api_client.object_to_http_body(block_domain)
73
+ auth_names = ['api-key', 'partner-key']
74
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
75
+ :header_params => header_params,
76
+ :query_params => query_params,
77
+ :form_params => form_params,
78
+ :body => post_body,
79
+ :auth_names => auth_names)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#block_new_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
22
85
  # Create an email template
23
86
  # @param smtp_template values to update in transactional email template
24
87
  # @param [Hash] opts the optional parameters
@@ -34,11 +97,11 @@ module SibApiV3Sdk
34
97
  # @return [Array<(CreateModel, Fixnum, Hash)>] CreateModel data, response status code and response headers
35
98
  def create_smtp_template_with_http_info(smtp_template, opts = {})
36
99
  if @api_client.config.debugging
37
- @api_client.config.logger.debug 'Calling API: SMTPApi.create_smtp_template ...'
100
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.create_smtp_template ...'
38
101
  end
39
102
  # verify the required parameter 'smtp_template' is set
40
103
  if @api_client.config.client_side_validation && smtp_template.nil?
41
- fail ArgumentError, "Missing the required parameter 'smtp_template' when calling SMTPApi.create_smtp_template"
104
+ fail ArgumentError, "Missing the required parameter 'smtp_template' when calling TransactionalEmailsApi.create_smtp_template"
42
105
  end
43
106
  # resource path
44
107
  local_var_path = '/smtp/templates'
@@ -67,7 +130,60 @@ module SibApiV3Sdk
67
130
  :auth_names => auth_names,
68
131
  :return_type => 'CreateModel')
69
132
  if @api_client.config.debugging
70
- @api_client.config.logger.debug "API called: SMTPApi#create_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
133
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#create_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
134
+ end
135
+ return data, status_code, headers
136
+ end
137
+ # Unblock an existing domain from the list of blocked domains
138
+ # Unblocks an existing domain from the list of blocked domains
139
+ # @param domain The name of the domain to be deleted
140
+ # @param [Hash] opts the optional parameters
141
+ # @return [nil]
142
+ def delete_blocked_domain(domain, opts = {})
143
+ delete_blocked_domain_with_http_info(domain, opts)
144
+ nil
145
+ end
146
+
147
+ # Unblock an existing domain from the list of blocked domains
148
+ # Unblocks an existing domain from the list of blocked domains
149
+ # @param domain The name of the domain to be deleted
150
+ # @param [Hash] opts the optional parameters
151
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
152
+ def delete_blocked_domain_with_http_info(domain, opts = {})
153
+ if @api_client.config.debugging
154
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_blocked_domain ...'
155
+ end
156
+ # verify the required parameter 'domain' is set
157
+ if @api_client.config.client_side_validation && domain.nil?
158
+ fail ArgumentError, "Missing the required parameter 'domain' when calling TransactionalEmailsApi.delete_blocked_domain"
159
+ end
160
+ # resource path
161
+ local_var_path = '/smtp/blockedDomains/{domain}'.sub('{' + 'domain' + '}', domain.to_s)
162
+
163
+ # query parameters
164
+ query_params = {}
165
+
166
+ # header parameters
167
+ header_params = {}
168
+ # HTTP header 'Accept' (if needed)
169
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
170
+ # HTTP header 'Content-Type'
171
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
172
+
173
+ # form parameters
174
+ form_params = {}
175
+
176
+ # http body (model)
177
+ post_body = nil
178
+ auth_names = ['api-key', 'partner-key']
179
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
180
+ :header_params => header_params,
181
+ :query_params => query_params,
182
+ :form_params => form_params,
183
+ :body => post_body,
184
+ :auth_names => auth_names)
185
+ if @api_client.config.debugging
186
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_blocked_domain\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
187
  end
72
188
  return data, status_code, headers
73
189
  end
@@ -88,7 +204,7 @@ module SibApiV3Sdk
88
204
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
89
205
  def delete_hardbounces_with_http_info(opts = {})
90
206
  if @api_client.config.debugging
91
- @api_client.config.logger.debug 'Calling API: SMTPApi.delete_hardbounces ...'
207
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_hardbounces ...'
92
208
  end
93
209
  # resource path
94
210
  local_var_path = '/smtp/deleteHardbounces'
@@ -116,7 +232,7 @@ module SibApiV3Sdk
116
232
  :body => post_body,
117
233
  :auth_names => auth_names)
118
234
  if @api_client.config.debugging
119
- @api_client.config.logger.debug "API called: SMTPApi#delete_hardbounces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
235
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_hardbounces\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
120
236
  end
121
237
  return data, status_code, headers
122
238
  end
@@ -135,11 +251,11 @@ module SibApiV3Sdk
135
251
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
136
252
  def delete_smtp_template_with_http_info(template_id, opts = {})
137
253
  if @api_client.config.debugging
138
- @api_client.config.logger.debug 'Calling API: SMTPApi.delete_smtp_template ...'
254
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.delete_smtp_template ...'
139
255
  end
140
256
  # verify the required parameter 'template_id' is set
141
257
  if @api_client.config.client_side_validation && template_id.nil?
142
- fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.delete_smtp_template"
258
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.delete_smtp_template"
143
259
  end
144
260
  # resource path
145
261
  local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
@@ -167,7 +283,7 @@ module SibApiV3Sdk
167
283
  :body => post_body,
168
284
  :auth_names => auth_names)
169
285
  if @api_client.config.debugging
170
- @api_client.config.logger.debug "API called: SMTPApi#delete_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
286
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#delete_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
287
  end
172
288
  return data, status_code, headers
173
289
  end
@@ -192,7 +308,7 @@ module SibApiV3Sdk
192
308
  # @return [Array<(GetAggregatedReport, Fixnum, Hash)>] GetAggregatedReport data, response status code and response headers
193
309
  def get_aggregated_smtp_report_with_http_info(opts = {})
194
310
  if @api_client.config.debugging
195
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_aggregated_smtp_report ...'
311
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_aggregated_smtp_report ...'
196
312
  end
197
313
  # resource path
198
314
  local_var_path = '/smtp/statistics/aggregatedReport'
@@ -225,7 +341,55 @@ module SibApiV3Sdk
225
341
  :auth_names => auth_names,
226
342
  :return_type => 'GetAggregatedReport')
227
343
  if @api_client.config.debugging
228
- @api_client.config.logger.debug "API called: SMTPApi#get_aggregated_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_aggregated_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
345
+ end
346
+ return data, status_code, headers
347
+ end
348
+ # Get the list of blocked domains
349
+ # Get the list of blocked domains
350
+ # @param [Hash] opts the optional parameters
351
+ # @return [GetBlockedDomains]
352
+ def get_blocked_domains(opts = {})
353
+ data, _status_code, _headers = get_blocked_domains_with_http_info(opts)
354
+ data
355
+ end
356
+
357
+ # Get the list of blocked domains
358
+ # Get the list of blocked domains
359
+ # @param [Hash] opts the optional parameters
360
+ # @return [Array<(GetBlockedDomains, Fixnum, Hash)>] GetBlockedDomains data, response status code and response headers
361
+ def get_blocked_domains_with_http_info(opts = {})
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_blocked_domains ...'
364
+ end
365
+ # resource path
366
+ local_var_path = '/smtp/blockedDomains'
367
+
368
+ # query parameters
369
+ query_params = {}
370
+
371
+ # header parameters
372
+ header_params = {}
373
+ # HTTP header 'Accept' (if needed)
374
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
375
+ # HTTP header 'Content-Type'
376
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
377
+
378
+ # form parameters
379
+ form_params = {}
380
+
381
+ # http body (model)
382
+ post_body = nil
383
+ auth_names = ['api-key', 'partner-key']
384
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
385
+ :header_params => header_params,
386
+ :query_params => query_params,
387
+ :form_params => form_params,
388
+ :body => post_body,
389
+ :auth_names => auth_names,
390
+ :return_type => 'GetBlockedDomains')
391
+ if @api_client.config.debugging
392
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_blocked_domains\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
229
393
  end
230
394
  return data, status_code, headers
231
395
  end
@@ -241,6 +405,7 @@ module SibApiV3Sdk
241
405
  # @option opts [String] :tags Filter the report for tags (serialized and urlencoded array)
242
406
  # @option opts [String] :message_id Filter on a specific message id
243
407
  # @option opts [Integer] :template_id Filter on a specific template id
408
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
244
409
  # @return [GetEmailEventReport]
245
410
  def get_email_event_report(opts = {})
246
411
  data, _status_code, _headers = get_email_event_report_with_http_info(opts)
@@ -259,17 +424,21 @@ module SibApiV3Sdk
259
424
  # @option opts [String] :tags Filter the report for tags (serialized and urlencoded array)
260
425
  # @option opts [String] :message_id Filter on a specific message id
261
426
  # @option opts [Integer] :template_id Filter on a specific template id
427
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
262
428
  # @return [Array<(GetEmailEventReport, Fixnum, Hash)>] GetEmailEventReport data, response status code and response headers
263
429
  def get_email_event_report_with_http_info(opts = {})
264
430
  if @api_client.config.debugging
265
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_email_event_report ...'
431
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_email_event_report ...'
266
432
  end
267
433
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 100
268
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_email_event_report, must be smaller than or equal to 100.'
434
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be smaller than or equal to 100.'
269
435
  end
270
436
 
271
- if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed'].include?(opts[:'event'])
272
- fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed'
437
+ if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error'].include?(opts[:'event'])
438
+ fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed, error'
439
+ end
440
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
441
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
273
442
  end
274
443
  # resource path
275
444
  local_var_path = '/smtp/statistics/events'
@@ -286,6 +455,7 @@ module SibApiV3Sdk
286
455
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
287
456
  query_params[:'messageId'] = opts[:'message_id'] if !opts[:'message_id'].nil?
288
457
  query_params[:'templateId'] = opts[:'template_id'] if !opts[:'template_id'].nil?
458
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
289
459
 
290
460
  # header parameters
291
461
  header_params = {}
@@ -308,7 +478,7 @@ module SibApiV3Sdk
308
478
  :auth_names => auth_names,
309
479
  :return_type => 'GetEmailEventReport')
310
480
  if @api_client.config.debugging
311
- @api_client.config.logger.debug "API called: SMTPApi#get_email_event_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
481
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_email_event_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
312
482
  end
313
483
  return data, status_code, headers
314
484
  end
@@ -320,6 +490,7 @@ module SibApiV3Sdk
320
490
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
321
491
  # @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with &#39;startDate&#39; and &#39;endDate&#39;
322
492
  # @option opts [String] :tag Tag of the emails
493
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
323
494
  # @return [GetReports]
324
495
  def get_smtp_report(opts = {})
325
496
  data, _status_code, _headers = get_smtp_report_with_http_info(opts)
@@ -334,15 +505,19 @@ module SibApiV3Sdk
334
505
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
335
506
  # @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with &#39;startDate&#39; and &#39;endDate&#39;
336
507
  # @option opts [String] :tag Tag of the emails
508
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
337
509
  # @return [Array<(GetReports, Fixnum, Hash)>] GetReports data, response status code and response headers
338
510
  def get_smtp_report_with_http_info(opts = {})
339
511
  if @api_client.config.debugging
340
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_report ...'
512
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_report ...'
341
513
  end
342
514
  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.'
515
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_report, must be smaller than or equal to 30.'
344
516
  end
345
517
 
518
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
519
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
520
+ end
346
521
  # resource path
347
522
  local_var_path = '/smtp/statistics/reports'
348
523
 
@@ -354,6 +529,7 @@ module SibApiV3Sdk
354
529
  query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
355
530
  query_params[:'days'] = opts[:'days'] if !opts[:'days'].nil?
356
531
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
532
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
357
533
 
358
534
  # header parameters
359
535
  header_params = {}
@@ -376,7 +552,7 @@ module SibApiV3Sdk
376
552
  :auth_names => auth_names,
377
553
  :return_type => 'GetReports')
378
554
  if @api_client.config.debugging
379
- @api_client.config.logger.debug "API called: SMTPApi#get_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
555
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
380
556
  end
381
557
  return data, status_code, headers
382
558
  end
@@ -395,11 +571,11 @@ module SibApiV3Sdk
395
571
  # @return [Array<(GetSmtpTemplateOverview, Fixnum, Hash)>] GetSmtpTemplateOverview data, response status code and response headers
396
572
  def get_smtp_template_with_http_info(template_id, opts = {})
397
573
  if @api_client.config.debugging
398
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_template ...'
574
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_template ...'
399
575
  end
400
576
  # verify the required parameter 'template_id' is set
401
577
  if @api_client.config.client_side_validation && template_id.nil?
402
- fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.get_smtp_template"
578
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.get_smtp_template"
403
579
  end
404
580
  # resource path
405
581
  local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
@@ -428,7 +604,7 @@ module SibApiV3Sdk
428
604
  :auth_names => auth_names,
429
605
  :return_type => 'GetSmtpTemplateOverview')
430
606
  if @api_client.config.debugging
431
- @api_client.config.logger.debug "API called: SMTPApi#get_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
607
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
432
608
  end
433
609
  return data, status_code, headers
434
610
  end
@@ -437,6 +613,7 @@ module SibApiV3Sdk
437
613
  # @option opts [BOOLEAN] :template_status Filter on the status of the template. Active &#x3D; true, inactive &#x3D; false
438
614
  # @option opts [Integer] :limit Number of documents returned per page (default to 50)
439
615
  # @option opts [Integer] :offset Index of the first document in the page (default to 0)
616
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
440
617
  # @return [GetSmtpTemplates]
441
618
  def get_smtp_templates(opts = {})
442
619
  data, _status_code, _headers = get_smtp_templates_with_http_info(opts)
@@ -448,15 +625,19 @@ module SibApiV3Sdk
448
625
  # @option opts [BOOLEAN] :template_status Filter on the status of the template. Active &#x3D; true, inactive &#x3D; false
449
626
  # @option opts [Integer] :limit Number of documents returned per page
450
627
  # @option opts [Integer] :offset Index of the first document in the page
628
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
451
629
  # @return [Array<(GetSmtpTemplates, Fixnum, Hash)>] GetSmtpTemplates data, response status code and response headers
452
630
  def get_smtp_templates_with_http_info(opts = {})
453
631
  if @api_client.config.debugging
454
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_smtp_templates ...'
632
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_smtp_templates ...'
455
633
  end
456
634
  if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 1000
457
- fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SMTPApi.get_smtp_templates, must be smaller than or equal to 1000.'
635
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_smtp_templates, must be smaller than or equal to 1000.'
458
636
  end
459
637
 
638
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
639
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
640
+ end
460
641
  # resource path
461
642
  local_var_path = '/smtp/templates'
462
643
 
@@ -465,6 +646,7 @@ module SibApiV3Sdk
465
646
  query_params[:'templateStatus'] = opts[:'template_status'] if !opts[:'template_status'].nil?
466
647
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
467
648
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
649
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
468
650
 
469
651
  # header parameters
470
652
  header_params = {}
@@ -487,7 +669,7 @@ module SibApiV3Sdk
487
669
  :auth_names => auth_names,
488
670
  :return_type => 'GetSmtpTemplates')
489
671
  if @api_client.config.debugging
490
- @api_client.config.logger.debug "API called: SMTPApi#get_smtp_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_smtp_templates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
673
  end
492
674
  return data, status_code, headers
493
675
  end
@@ -498,6 +680,7 @@ module SibApiV3Sdk
498
680
  # @option opts [Integer] :limit Number of documents returned per page (default to 50)
499
681
  # @option opts [Integer] :offset Index of the first document on the page (default to 0)
500
682
  # @option opts [Array<String>] :senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
683
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
501
684
  # @return [GetTransacBlockedContacts]
502
685
  def get_transac_blocked_contacts(opts = {})
503
686
  data, _status_code, _headers = get_transac_blocked_contacts_with_http_info(opts)
@@ -511,15 +694,19 @@ module SibApiV3Sdk
511
694
  # @option opts [Integer] :limit Number of documents returned per page
512
695
  # @option opts [Integer] :offset Index of the first document on the page
513
696
  # @option opts [Array<String>] :senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed
697
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
514
698
  # @return [Array<(GetTransacBlockedContacts, Fixnum, Hash)>] GetTransacBlockedContacts data, response status code and response headers
515
699
  def get_transac_blocked_contacts_with_http_info(opts = {})
516
700
  if @api_client.config.debugging
517
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_blocked_contacts ...'
701
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_blocked_contacts ...'
518
702
  end
519
703
  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.'
704
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_transac_blocked_contacts, must be smaller than or equal to 100.'
521
705
  end
522
706
 
707
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
708
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
709
+ end
523
710
  # resource path
524
711
  local_var_path = '/smtp/blockedContacts'
525
712
 
@@ -530,6 +717,7 @@ module SibApiV3Sdk
530
717
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
531
718
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
532
719
  query_params[:'senders'] = @api_client.build_collection_param(opts[:'senders'], :csv) if !opts[:'senders'].nil?
720
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
533
721
 
534
722
  # header parameters
535
723
  header_params = {}
@@ -552,7 +740,7 @@ module SibApiV3Sdk
552
740
  :auth_names => auth_names,
553
741
  :return_type => 'GetTransacBlockedContacts')
554
742
  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}"
743
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_blocked_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
744
  end
557
745
  return data, status_code, headers
558
746
  end
@@ -571,11 +759,11 @@ module SibApiV3Sdk
571
759
  # @return [Array<(GetTransacEmailContent, Fixnum, Hash)>] GetTransacEmailContent data, response status code and response headers
572
760
  def get_transac_email_content_with_http_info(uuid, opts = {})
573
761
  if @api_client.config.debugging
574
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_email_content ...'
762
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_email_content ...'
575
763
  end
576
764
  # verify the required parameter 'uuid' is set
577
765
  if @api_client.config.client_side_validation && uuid.nil?
578
- fail ArgumentError, "Missing the required parameter 'uuid' when calling SMTPApi.get_transac_email_content"
766
+ fail ArgumentError, "Missing the required parameter 'uuid' when calling TransactionalEmailsApi.get_transac_email_content"
579
767
  end
580
768
  # resource path
581
769
  local_var_path = '/smtp/emails/{uuid}'.sub('{' + 'uuid' + '}', uuid.to_s)
@@ -604,7 +792,7 @@ module SibApiV3Sdk
604
792
  :auth_names => auth_names,
605
793
  :return_type => 'GetTransacEmailContent')
606
794
  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}"
795
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_email_content\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
608
796
  end
609
797
  return data, status_code, headers
610
798
  end
@@ -616,6 +804,7 @@ module SibApiV3Sdk
616
804
  # @option opts [String] :message_id Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
617
805
  # @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
806
  # @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.
807
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed (default to desc)
619
808
  # @return [GetTransacEmailsList]
620
809
  def get_transac_emails_list(opts = {})
621
810
  data, _status_code, _headers = get_transac_emails_list_with_http_info(opts)
@@ -630,10 +819,14 @@ module SibApiV3Sdk
630
819
  # @option opts [String] :message_id Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent.
631
820
  # @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
821
  # @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.
822
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if &#x60;sort&#x60; is not passed
633
823
  # @return [Array<(GetTransacEmailsList, Fixnum, Hash)>] GetTransacEmailsList data, response status code and response headers
634
824
  def get_transac_emails_list_with_http_info(opts = {})
635
825
  if @api_client.config.debugging
636
- @api_client.config.logger.debug 'Calling API: SMTPApi.get_transac_emails_list ...'
826
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.get_transac_emails_list ...'
827
+ end
828
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
829
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
637
830
  end
638
831
  # resource path
639
832
  local_var_path = '/smtp/emails'
@@ -645,6 +838,7 @@ module SibApiV3Sdk
645
838
  query_params[:'messageId'] = opts[:'message_id'] if !opts[:'message_id'].nil?
646
839
  query_params[:'startDate'] = opts[:'start_date'] if !opts[:'start_date'].nil?
647
840
  query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
841
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
648
842
 
649
843
  # header parameters
650
844
  header_params = {}
@@ -667,7 +861,7 @@ module SibApiV3Sdk
667
861
  :auth_names => auth_names,
668
862
  :return_type => 'GetTransacEmailsList')
669
863
  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}"
864
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#get_transac_emails_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
671
865
  end
672
866
  return data, status_code, headers
673
867
  end
@@ -690,15 +884,15 @@ module SibApiV3Sdk
690
884
  # @return [Array<(SendTemplateEmail, Fixnum, Hash)>] SendTemplateEmail data, response status code and response headers
691
885
  def send_template_with_http_info(template_id, send_email, opts = {})
692
886
  if @api_client.config.debugging
693
- @api_client.config.logger.debug 'Calling API: SMTPApi.send_template ...'
887
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_template ...'
694
888
  end
695
889
  # verify the required parameter 'template_id' is set
696
890
  if @api_client.config.client_side_validation && template_id.nil?
697
- fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.send_template"
891
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.send_template"
698
892
  end
699
893
  # verify the required parameter 'send_email' is set
700
894
  if @api_client.config.client_side_validation && send_email.nil?
701
- fail ArgumentError, "Missing the required parameter 'send_email' when calling SMTPApi.send_template"
895
+ fail ArgumentError, "Missing the required parameter 'send_email' when calling TransactionalEmailsApi.send_template"
702
896
  end
703
897
  # resource path
704
898
  local_var_path = '/smtp/templates/{templateId}/send'.sub('{' + 'templateId' + '}', template_id.to_s)
@@ -727,7 +921,7 @@ module SibApiV3Sdk
727
921
  :auth_names => auth_names,
728
922
  :return_type => 'SendTemplateEmail')
729
923
  if @api_client.config.debugging
730
- @api_client.config.logger.debug "API called: SMTPApi#send_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
924
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#send_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
731
925
  end
732
926
  return data, status_code, headers
733
927
  end
@@ -748,15 +942,15 @@ module SibApiV3Sdk
748
942
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
749
943
  def send_test_template_with_http_info(template_id, send_test_email, opts = {})
750
944
  if @api_client.config.debugging
751
- @api_client.config.logger.debug 'Calling API: SMTPApi.send_test_template ...'
945
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_test_template ...'
752
946
  end
753
947
  # verify the required parameter 'template_id' is set
754
948
  if @api_client.config.client_side_validation && template_id.nil?
755
- fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.send_test_template"
949
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.send_test_template"
756
950
  end
757
951
  # verify the required parameter 'send_test_email' is set
758
952
  if @api_client.config.client_side_validation && send_test_email.nil?
759
- fail ArgumentError, "Missing the required parameter 'send_test_email' when calling SMTPApi.send_test_template"
953
+ fail ArgumentError, "Missing the required parameter 'send_test_email' when calling TransactionalEmailsApi.send_test_template"
760
954
  end
761
955
  # resource path
762
956
  local_var_path = '/smtp/templates/{templateId}/sendTest'.sub('{' + 'templateId' + '}', template_id.to_s)
@@ -784,7 +978,7 @@ module SibApiV3Sdk
784
978
  :body => post_body,
785
979
  :auth_names => auth_names)
786
980
  if @api_client.config.debugging
787
- @api_client.config.logger.debug "API called: SMTPApi#send_test_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
981
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#send_test_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
788
982
  end
789
983
  return data, status_code, headers
790
984
  end
@@ -803,11 +997,11 @@ module SibApiV3Sdk
803
997
  # @return [Array<(CreateSmtpEmail, Fixnum, Hash)>] CreateSmtpEmail data, response status code and response headers
804
998
  def send_transac_email_with_http_info(send_smtp_email, opts = {})
805
999
  if @api_client.config.debugging
806
- @api_client.config.logger.debug 'Calling API: SMTPApi.send_transac_email ...'
1000
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.send_transac_email ...'
807
1001
  end
808
1002
  # verify the required parameter 'send_smtp_email' is set
809
1003
  if @api_client.config.client_side_validation && send_smtp_email.nil?
810
- fail ArgumentError, "Missing the required parameter 'send_smtp_email' when calling SMTPApi.send_transac_email"
1004
+ fail ArgumentError, "Missing the required parameter 'send_smtp_email' when calling TransactionalEmailsApi.send_transac_email"
811
1005
  end
812
1006
  # resource path
813
1007
  local_var_path = '/smtp/email'
@@ -836,7 +1030,7 @@ module SibApiV3Sdk
836
1030
  :auth_names => auth_names,
837
1031
  :return_type => 'CreateSmtpEmail')
838
1032
  if @api_client.config.debugging
839
- @api_client.config.logger.debug "API called: SMTPApi#send_transac_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1033
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#send_transac_email\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
840
1034
  end
841
1035
  return data, status_code, headers
842
1036
  end
@@ -855,11 +1049,11 @@ module SibApiV3Sdk
855
1049
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
856
1050
  def smtp_blocked_contacts_email_delete_with_http_info(email, opts = {})
857
1051
  if @api_client.config.debugging
858
- @api_client.config.logger.debug 'Calling API: SMTPApi.smtp_blocked_contacts_email_delete ...'
1052
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.smtp_blocked_contacts_email_delete ...'
859
1053
  end
860
1054
  # verify the required parameter 'email' is set
861
1055
  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"
1056
+ fail ArgumentError, "Missing the required parameter 'email' when calling TransactionalEmailsApi.smtp_blocked_contacts_email_delete"
863
1057
  end
864
1058
  # resource path
865
1059
  local_var_path = '/smtp/blockedContacts/{email}'.sub('{' + 'email' + '}', email.to_s)
@@ -887,7 +1081,7 @@ module SibApiV3Sdk
887
1081
  :body => post_body,
888
1082
  :auth_names => auth_names)
889
1083
  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}"
1084
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#smtp_blocked_contacts_email_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
891
1085
  end
892
1086
  return data, status_code, headers
893
1087
  end
@@ -906,11 +1100,11 @@ module SibApiV3Sdk
906
1100
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
907
1101
  def smtp_log_message_id_delete_with_http_info(message_id, opts = {})
908
1102
  if @api_client.config.debugging
909
- @api_client.config.logger.debug 'Calling API: SMTPApi.smtp_log_message_id_delete ...'
1103
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.smtp_log_message_id_delete ...'
910
1104
  end
911
1105
  # verify the required parameter 'message_id' is set
912
1106
  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"
1107
+ fail ArgumentError, "Missing the required parameter 'message_id' when calling TransactionalEmailsApi.smtp_log_message_id_delete"
914
1108
  end
915
1109
  # resource path
916
1110
  local_var_path = '/smtp/log/{messageId}'.sub('{' + 'messageId' + '}', message_id.to_s)
@@ -938,7 +1132,7 @@ module SibApiV3Sdk
938
1132
  :body => post_body,
939
1133
  :auth_names => auth_names)
940
1134
  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}"
1135
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#smtp_log_message_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
942
1136
  end
943
1137
  return data, status_code, headers
944
1138
  end
@@ -959,15 +1153,15 @@ module SibApiV3Sdk
959
1153
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
960
1154
  def update_smtp_template_with_http_info(template_id, smtp_template, opts = {})
961
1155
  if @api_client.config.debugging
962
- @api_client.config.logger.debug 'Calling API: SMTPApi.update_smtp_template ...'
1156
+ @api_client.config.logger.debug 'Calling API: TransactionalEmailsApi.update_smtp_template ...'
963
1157
  end
964
1158
  # verify the required parameter 'template_id' is set
965
1159
  if @api_client.config.client_side_validation && template_id.nil?
966
- fail ArgumentError, "Missing the required parameter 'template_id' when calling SMTPApi.update_smtp_template"
1160
+ fail ArgumentError, "Missing the required parameter 'template_id' when calling TransactionalEmailsApi.update_smtp_template"
967
1161
  end
968
1162
  # verify the required parameter 'smtp_template' is set
969
1163
  if @api_client.config.client_side_validation && smtp_template.nil?
970
- fail ArgumentError, "Missing the required parameter 'smtp_template' when calling SMTPApi.update_smtp_template"
1164
+ fail ArgumentError, "Missing the required parameter 'smtp_template' when calling TransactionalEmailsApi.update_smtp_template"
971
1165
  end
972
1166
  # resource path
973
1167
  local_var_path = '/smtp/templates/{templateId}'.sub('{' + 'templateId' + '}', template_id.to_s)
@@ -995,7 +1189,7 @@ module SibApiV3Sdk
995
1189
  :body => post_body,
996
1190
  :auth_names => auth_names)
997
1191
  if @api_client.config.debugging
998
- @api_client.config.logger.debug "API called: SMTPApi#update_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1192
+ @api_client.config.logger.debug "API called: TransactionalEmailsApi#update_smtp_template\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
999
1193
  end
1000
1194
  return data, status_code, headers
1001
1195
  end