sib-api-v3-sdk 7.0.0 → 7.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (464) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -8
  3. data/docs/BlockDomain.md +8 -0
  4. data/docs/ContactsApi.md +25 -13
  5. data/docs/CreateEmailCampaign.md +1 -1
  6. data/docs/CreateSmsCampaign.md +1 -1
  7. data/docs/CreateSmtpEmail.md +2 -1
  8. data/docs/CreateSmtpTemplateSender.md +1 -1
  9. data/docs/EmailCampaignsApi.md +7 -5
  10. data/docs/FoldersApi.md +9 -3
  11. data/docs/GetBlockedDomains.md +8 -0
  12. data/docs/GetCampaignOverview.md +1 -1
  13. data/docs/GetChildDomain.md +2 -2
  14. data/docs/GetChildrenList.md +1 -1
  15. data/docs/GetContactCampaignStatsOpened.md +1 -1
  16. data/docs/GetContactDetails.md +2 -2
  17. data/docs/GetEmailCampaign.md +8 -8
  18. data/docs/GetEmailCampaigns.md +1 -1
  19. data/docs/GetEmailEventReportEvents.md +2 -1
  20. data/docs/GetExtendedCampaignOverview.md +6 -6
  21. data/docs/GetExtendedCampaignStats.md +1 -1
  22. data/docs/GetExtendedCampaignStatsGlobalStats.md +7 -0
  23. data/docs/GetExtendedContactDetails.md +2 -2
  24. data/docs/GetExtendedContactDetailsStatisticsLinks.md +1 -1
  25. data/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +1 -1
  26. data/docs/GetExtendedContactDetailsStatisticsOpened.md +1 -1
  27. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +2 -2
  28. data/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +2 -2
  29. data/docs/GetExtendedList.md +2 -1
  30. data/docs/GetFolderLists.md +2 -2
  31. data/docs/GetList.md +1 -0
  32. data/docs/GetLists.md +2 -2
  33. data/docs/GetProcesses.md +1 -1
  34. data/docs/GetSmsCampaign.md +5 -5
  35. data/docs/GetSmsCampaignOverview.md +3 -3
  36. data/docs/GetSmsCampaignRecipients.md +7 -0
  37. data/docs/GetSmsCampaigns.md +1 -1
  38. data/docs/GetSmsEventReportEvents.md +4 -4
  39. data/docs/GetSmtpTemplateOverview.md +2 -2
  40. data/docs/GetTransacAggregatedSmsReport.md +10 -10
  41. data/docs/GetTransacBlockedContactsContacts.md +1 -1
  42. data/docs/GetTransacEmailContent.md +1 -1
  43. data/docs/GetTransacEmailContentEvents.md +1 -1
  44. data/docs/GetTransacEmailsList.md +1 -0
  45. data/docs/GetTransacEmailsListTransactionalEmails.md +1 -1
  46. data/docs/GetTransacSmsReportReports.md +10 -10
  47. data/docs/GetWebhook.md +2 -2
  48. data/docs/ListsApi.md +11 -5
  49. data/docs/ProcessApi.md +3 -1
  50. data/docs/SMSCampaignsApi.md +7 -5
  51. data/docs/SendReportEmail.md +1 -5
  52. data/docs/SendSmtpEmail.md +3 -2
  53. data/docs/SendSmtpEmailMessageVersions.md +13 -0
  54. data/docs/SendSmtpEmailReplyTo1.md +9 -0
  55. data/docs/SendSmtpEmailSender.md +3 -3
  56. data/docs/SendSmtpEmailTo1.md +9 -0
  57. data/docs/SendTestEmail.md +1 -1
  58. data/docs/TransactionalEmailsApi.md +197 -11
  59. data/docs/TransactionalSMSApi.md +9 -5
  60. data/docs/UpdateEmailCampaign.md +1 -1
  61. data/docs/UpdateSmsCampaign.md +1 -1
  62. data/docs/WebhooksApi.md +3 -1
  63. data/lib/sib-api-v3-sdk.rb +16 -9
  64. data/lib/sib-api-v3-sdk/api/account_api.rb +11 -1
  65. data/lib/sib-api-v3-sdk/api/attributes_api.rb +11 -1
  66. data/lib/sib-api-v3-sdk/api/contacts_api.rb +49 -9
  67. data/lib/sib-api-v3-sdk/api/email_campaigns_api.rb +21 -5
  68. data/lib/sib-api-v3-sdk/api/folders_api.rb +23 -1
  69. data/lib/sib-api-v3-sdk/api/lists_api.rb +31 -3
  70. data/lib/sib-api-v3-sdk/api/process_api.rb +17 -1
  71. data/lib/sib-api-v3-sdk/api/reseller_api.rb +11 -1
  72. data/lib/sib-api-v3-sdk/api/senders_api.rb +11 -1
  73. data/lib/sib-api-v3-sdk/api/sms_campaigns_api.rb +21 -5
  74. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +211 -7
  75. data/lib/sib-api-v3-sdk/api/transactional_sms_api.rb +23 -1
  76. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +17 -1
  77. data/lib/sib-api-v3-sdk/api_client.rb +8 -5
  78. data/lib/sib-api-v3-sdk/api_error.rb +1 -1
  79. data/lib/sib-api-v3-sdk/configuration.rb +3 -3
  80. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result.rb +3 -2
  81. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_clicked_links.rb +3 -2
  82. data/lib/sib-api-v3-sdk/models/ab_test_campaign_result_statistics.rb +3 -2
  83. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks.rb +3 -2
  84. data/lib/sib-api-v3-sdk/models/ab_test_version_clicks_inner.rb +3 -2
  85. data/lib/sib-api-v3-sdk/models/ab_test_version_stats.rb +3 -2
  86. data/lib/sib-api-v3-sdk/models/add_child_domain.rb +3 -2
  87. data/lib/sib-api-v3-sdk/models/add_contact_to_list.rb +3 -2
  88. data/lib/sib-api-v3-sdk/models/add_credits.rb +3 -2
  89. data/lib/sib-api-v3-sdk/models/block_domain.rb +190 -0
  90. data/lib/sib-api-v3-sdk/models/create_attribute.rb +3 -2
  91. data/lib/sib-api-v3-sdk/models/create_attribute_enumeration.rb +3 -2
  92. data/lib/sib-api-v3-sdk/models/create_child.rb +3 -2
  93. data/lib/sib-api-v3-sdk/models/create_contact.rb +3 -2
  94. data/lib/sib-api-v3-sdk/models/create_doi_contact.rb +3 -2
  95. data/lib/sib-api-v3-sdk/models/create_email_campaign.rb +4 -3
  96. data/lib/sib-api-v3-sdk/models/create_email_campaign_recipients.rb +3 -2
  97. data/lib/sib-api-v3-sdk/models/create_email_campaign_sender.rb +3 -2
  98. data/lib/sib-api-v3-sdk/models/create_list.rb +3 -2
  99. data/lib/sib-api-v3-sdk/models/create_model.rb +3 -2
  100. data/lib/sib-api-v3-sdk/models/create_reseller.rb +3 -2
  101. data/lib/sib-api-v3-sdk/models/create_sender.rb +3 -2
  102. data/lib/sib-api-v3-sdk/models/create_sender_ips.rb +3 -2
  103. data/lib/sib-api-v3-sdk/models/create_sender_model.rb +3 -2
  104. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +4 -3
  105. data/lib/sib-api-v3-sdk/models/create_sms_campaign_recipients.rb +3 -2
  106. data/lib/sib-api-v3-sdk/models/create_smtp_email.rb +18 -11
  107. data/lib/sib-api-v3-sdk/models/create_smtp_template.rb +3 -2
  108. data/lib/sib-api-v3-sdk/models/create_smtp_template_sender.rb +3 -7
  109. data/lib/sib-api-v3-sdk/models/create_update_contact_model.rb +3 -2
  110. data/lib/sib-api-v3-sdk/models/create_update_folder.rb +3 -2
  111. data/lib/sib-api-v3-sdk/models/create_webhook.rb +3 -2
  112. data/lib/sib-api-v3-sdk/models/created_process_id.rb +3 -2
  113. data/lib/sib-api-v3-sdk/models/delete_hardbounces.rb +3 -2
  114. data/lib/sib-api-v3-sdk/models/email_export_recipients.rb +3 -2
  115. data/lib/sib-api-v3-sdk/models/error_model.rb +3 -2
  116. data/lib/sib-api-v3-sdk/models/get_account.rb +3 -2
  117. data/lib/sib-api-v3-sdk/models/get_account_marketing_automation.rb +3 -2
  118. data/lib/sib-api-v3-sdk/models/get_account_plan.rb +3 -2
  119. data/lib/sib-api-v3-sdk/models/get_account_relay.rb +3 -2
  120. data/lib/sib-api-v3-sdk/models/get_account_relay_data.rb +3 -2
  121. data/lib/sib-api-v3-sdk/models/get_aggregated_report.rb +3 -2
  122. data/lib/sib-api-v3-sdk/models/get_attributes.rb +3 -2
  123. data/lib/sib-api-v3-sdk/models/get_attributes_attributes.rb +3 -2
  124. data/lib/sib-api-v3-sdk/models/get_attributes_enumeration.rb +3 -2
  125. data/lib/sib-api-v3-sdk/models/get_blocked_domains.rb +193 -0
  126. data/lib/sib-api-v3-sdk/models/get_campaign_overview.rb +4 -3
  127. data/lib/sib-api-v3-sdk/models/get_campaign_recipients.rb +3 -2
  128. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +3 -2
  129. data/lib/sib-api-v3-sdk/models/get_child_account_creation_status.rb +3 -2
  130. data/lib/sib-api-v3-sdk/models/get_child_domain.rb +3 -12
  131. data/lib/sib-api-v3-sdk/models/get_child_domains.rb +3 -2
  132. data/lib/sib-api-v3-sdk/models/get_child_info.rb +3 -2
  133. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys.rb +3 -2
  134. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v2.rb +3 -2
  135. data/lib/sib-api-v3-sdk/models/get_child_info_api_keys_v3.rb +3 -2
  136. data/lib/sib-api-v3-sdk/models/get_child_info_credits.rb +3 -2
  137. data/lib/sib-api-v3-sdk/models/get_child_info_statistics.rb +3 -2
  138. data/lib/sib-api-v3-sdk/models/get_children_list.rb +3 -7
  139. data/lib/sib-api-v3-sdk/models/get_client.rb +3 -2
  140. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +3 -2
  141. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_clicked.rb +3 -2
  142. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_opened.rb +4 -3
  143. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_transac_attributes.rb +3 -2
  144. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats_unsubscriptions.rb +3 -2
  145. data/lib/sib-api-v3-sdk/models/get_contact_details.rb +5 -4
  146. data/lib/sib-api-v3-sdk/models/get_contacts.rb +3 -2
  147. data/lib/sib-api-v3-sdk/models/get_device_browser_stats.rb +3 -2
  148. data/lib/sib-api-v3-sdk/models/get_email_campaign.rb +9 -18
  149. data/lib/sib-api-v3-sdk/models/get_email_campaigns.rb +3 -7
  150. data/lib/sib-api-v3-sdk/models/get_email_event_report.rb +3 -2
  151. data/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +20 -9
  152. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview.rb +7 -16
  153. data/lib/sib-api-v3-sdk/models/get_extended_campaign_overview_sender.rb +3 -2
  154. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats.rb +4 -4
  155. data/lib/sib-api-v3-sdk/models/get_extended_campaign_stats_global_stats.rb +176 -0
  156. data/lib/sib-api-v3-sdk/models/get_extended_client.rb +3 -2
  157. data/lib/sib-api-v3-sdk/models/get_extended_client_address.rb +3 -2
  158. data/lib/sib-api-v3-sdk/models/get_extended_contact_details.rb +5 -4
  159. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +3 -2
  160. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_clicked.rb +3 -2
  161. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_links.rb +4 -3
  162. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent.rb +4 -3
  163. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened.rb +4 -3
  164. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions.rb +3 -2
  165. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.rb +4 -8
  166. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.rb +4 -8
  167. data/lib/sib-api-v3-sdk/models/get_extended_list.rb +20 -4
  168. data/lib/sib-api-v3-sdk/models/get_extended_list_campaign_stats.rb +3 -2
  169. data/lib/sib-api-v3-sdk/models/get_folder.rb +3 -2
  170. data/lib/sib-api-v3-sdk/models/get_folder_lists.rb +3 -12
  171. data/lib/sib-api-v3-sdk/models/get_folders.rb +3 -2
  172. data/lib/sib-api-v3-sdk/models/get_ip.rb +3 -2
  173. data/lib/sib-api-v3-sdk/models/get_ip_from_sender.rb +3 -2
  174. data/lib/sib-api-v3-sdk/models/get_ips.rb +3 -2
  175. data/lib/sib-api-v3-sdk/models/get_ips_from_sender.rb +3 -2
  176. data/lib/sib-api-v3-sdk/models/get_list.rb +22 -6
  177. data/lib/sib-api-v3-sdk/models/get_lists.rb +3 -12
  178. data/lib/sib-api-v3-sdk/models/get_process.rb +3 -2
  179. data/lib/sib-api-v3-sdk/models/get_processes.rb +3 -7
  180. data/lib/sib-api-v3-sdk/models/get_reports.rb +3 -2
  181. data/lib/sib-api-v3-sdk/models/get_reports_reports.rb +3 -2
  182. data/lib/sib-api-v3-sdk/models/get_senders_list.rb +3 -2
  183. data/lib/sib-api-v3-sdk/models/get_senders_list_ips.rb +3 -2
  184. data/lib/sib-api-v3-sdk/models/get_senders_list_senders.rb +3 -2
  185. data/lib/sib-api-v3-sdk/models/get_shared_template_url.rb +3 -2
  186. data/lib/sib-api-v3-sdk/models/get_sms_campaign.rb +8 -12
  187. data/lib/sib-api-v3-sdk/models/get_sms_campaign_overview.rb +6 -10
  188. data/lib/sib-api-v3-sdk/models/get_sms_campaign_recipients.rb +175 -0
  189. data/lib/sib-api-v3-sdk/models/get_sms_campaign_stats.rb +3 -2
  190. data/lib/sib-api-v3-sdk/models/get_sms_campaigns.rb +3 -7
  191. data/lib/sib-api-v3-sdk/models/get_sms_event_report.rb +3 -2
  192. data/lib/sib-api-v3-sdk/models/get_sms_event_report_events.rb +4 -23
  193. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview.rb +5 -4
  194. data/lib/sib-api-v3-sdk/models/get_smtp_template_overview_sender.rb +3 -2
  195. data/lib/sib-api-v3-sdk/models/get_smtp_templates.rb +3 -2
  196. data/lib/sib-api-v3-sdk/models/get_sso_token.rb +3 -2
  197. data/lib/sib-api-v3-sdk/models/get_stats_by_browser.rb +3 -2
  198. data/lib/sib-api-v3-sdk/models/get_stats_by_device.rb +3 -2
  199. data/lib/sib-api-v3-sdk/models/get_stats_by_domain.rb +3 -2
  200. data/lib/sib-api-v3-sdk/models/get_transac_aggregated_sms_report.rb +3 -52
  201. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts.rb +3 -2
  202. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_contacts.rb +4 -3
  203. data/lib/sib-api-v3-sdk/models/get_transac_blocked_contacts_reason.rb +3 -2
  204. data/lib/sib-api-v3-sdk/models/get_transac_email_content.rb +4 -3
  205. data/lib/sib-api-v3-sdk/models/get_transac_email_content_events.rb +4 -3
  206. data/lib/sib-api-v3-sdk/models/get_transac_emails_list.rb +14 -3
  207. data/lib/sib-api-v3-sdk/models/get_transac_emails_list_transactional_emails.rb +4 -3
  208. data/lib/sib-api-v3-sdk/models/get_transac_sms_report.rb +3 -2
  209. data/lib/sib-api-v3-sdk/models/get_transac_sms_report_reports.rb +3 -52
  210. data/lib/sib-api-v3-sdk/models/get_webhook.rb +5 -4
  211. data/lib/sib-api-v3-sdk/models/get_webhooks.rb +3 -2
  212. data/lib/sib-api-v3-sdk/models/manage_ip.rb +3 -2
  213. data/lib/sib-api-v3-sdk/models/post_contact_info.rb +3 -2
  214. data/lib/sib-api-v3-sdk/models/post_contact_info_contacts.rb +3 -2
  215. data/lib/sib-api-v3-sdk/models/post_send_failed.rb +3 -2
  216. data/lib/sib-api-v3-sdk/models/post_send_sms_test_failed.rb +3 -2
  217. data/lib/sib-api-v3-sdk/models/remaining_credit_model.rb +3 -2
  218. data/lib/sib-api-v3-sdk/models/remaining_credit_model_child.rb +3 -2
  219. data/lib/sib-api-v3-sdk/models/remaining_credit_model_reseller.rb +3 -2
  220. data/lib/sib-api-v3-sdk/models/remove_contact_from_list.rb +3 -2
  221. data/lib/sib-api-v3-sdk/models/remove_credits.rb +3 -2
  222. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +3 -2
  223. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +3 -2
  224. data/lib/sib-api-v3-sdk/models/request_contact_import.rb +3 -2
  225. data/lib/sib-api-v3-sdk/models/request_contact_import_new_list.rb +3 -2
  226. data/lib/sib-api-v3-sdk/models/request_sms_recipient_export.rb +3 -2
  227. data/lib/sib-api-v3-sdk/models/send_email.rb +3 -2
  228. data/lib/sib-api-v3-sdk/models/send_email_attachment.rb +3 -2
  229. data/lib/sib-api-v3-sdk/models/send_report.rb +3 -2
  230. data/lib/sib-api-v3-sdk/models/send_report_email.rb +6 -90
  231. data/lib/sib-api-v3-sdk/models/send_sms.rb +3 -2
  232. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +18 -10
  233. data/lib/sib-api-v3-sdk/models/send_smtp_email_attachment.rb +3 -2
  234. data/lib/sib-api-v3-sdk/models/send_smtp_email_bcc.rb +3 -2
  235. data/lib/sib-api-v3-sdk/models/send_smtp_email_cc.rb +3 -2
  236. data/lib/sib-api-v3-sdk/models/send_smtp_email_message_versions.rb +247 -0
  237. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to.rb +3 -2
  238. data/lib/sib-api-v3-sdk/models/send_smtp_email_reply_to_1.rb +201 -0
  239. data/lib/sib-api-v3-sdk/models/send_smtp_email_sender.rb +7 -11
  240. data/lib/sib-api-v3-sdk/models/send_smtp_email_to.rb +3 -2
  241. data/lib/sib-api-v3-sdk/models/send_smtp_email_to_1.rb +200 -0
  242. data/lib/sib-api-v3-sdk/models/send_template_email.rb +3 -2
  243. data/lib/sib-api-v3-sdk/models/send_test_email.rb +4 -3
  244. data/lib/sib-api-v3-sdk/models/send_test_sms.rb +3 -2
  245. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +3 -2
  246. data/lib/sib-api-v3-sdk/models/update_attribute.rb +3 -2
  247. data/lib/sib-api-v3-sdk/models/update_attribute_enumeration.rb +3 -2
  248. data/lib/sib-api-v3-sdk/models/update_campaign_status.rb +3 -2
  249. data/lib/sib-api-v3-sdk/models/update_child.rb +3 -2
  250. data/lib/sib-api-v3-sdk/models/update_child_account_status.rb +3 -2
  251. data/lib/sib-api-v3-sdk/models/update_child_domain.rb +3 -2
  252. data/lib/sib-api-v3-sdk/models/update_contact.rb +3 -2
  253. data/lib/sib-api-v3-sdk/models/update_email_campaign.rb +4 -3
  254. data/lib/sib-api-v3-sdk/models/update_email_campaign_recipients.rb +3 -2
  255. data/lib/sib-api-v3-sdk/models/update_email_campaign_sender.rb +3 -2
  256. data/lib/sib-api-v3-sdk/models/update_list.rb +3 -2
  257. data/lib/sib-api-v3-sdk/models/update_sender.rb +3 -2
  258. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +4 -3
  259. data/lib/sib-api-v3-sdk/models/update_smtp_template.rb +3 -2
  260. data/lib/sib-api-v3-sdk/models/update_smtp_template_sender.rb +3 -2
  261. data/lib/sib-api-v3-sdk/models/update_webhook.rb +3 -2
  262. data/lib/sib-api-v3-sdk/models/upload_image_to_gallery.rb +3 -2
  263. data/lib/sib-api-v3-sdk/version.rb +2 -2
  264. data/spec/api/account_api_spec.rb +1 -1
  265. data/spec/api/attributes_api_spec.rb +1 -1
  266. data/spec/api/contacts_api_spec.rb +10 -5
  267. data/spec/api/email_campaigns_api_spec.rb +4 -3
  268. data/spec/api/folders_api_spec.rb +3 -1
  269. data/spec/api/lists_api_spec.rb +5 -2
  270. data/spec/api/process_api_spec.rb +2 -1
  271. data/spec/api/reseller_api_spec.rb +1 -1
  272. data/spec/api/senders_api_spec.rb +1 -1
  273. data/spec/api/sms_campaigns_api_spec.rb +4 -3
  274. data/spec/api/transactional_emails_api_spec.rb +45 -3
  275. data/spec/api/transactional_sms_api_spec.rb +3 -1
  276. data/spec/api/webhooks_api_spec.rb +2 -1
  277. data/spec/api_client_spec.rb +18 -1
  278. data/spec/configuration_spec.rb +1 -1
  279. data/spec/models/ab_test_campaign_result_clicked_links_spec.rb +1 -1
  280. data/spec/models/ab_test_campaign_result_spec.rb +1 -1
  281. data/spec/models/ab_test_campaign_result_statistics_spec.rb +1 -1
  282. data/spec/models/ab_test_version_clicks_inner_spec.rb +1 -1
  283. data/spec/models/ab_test_version_clicks_spec.rb +1 -1
  284. data/spec/models/ab_test_version_stats_spec.rb +1 -1
  285. data/spec/models/add_child_domain_spec.rb +1 -1
  286. data/spec/models/add_contact_to_list_spec.rb +1 -1
  287. data/spec/models/add_credits_spec.rb +1 -1
  288. data/spec/models/block_domain_spec.rb +41 -0
  289. data/spec/models/create_attribute_enumeration_spec.rb +1 -1
  290. data/spec/models/create_attribute_spec.rb +1 -1
  291. data/spec/models/create_child_spec.rb +1 -1
  292. data/spec/models/create_contact_spec.rb +1 -1
  293. data/spec/models/create_doi_contact_spec.rb +1 -1
  294. data/spec/models/create_email_campaign_recipients_spec.rb +1 -1
  295. data/spec/models/create_email_campaign_sender_spec.rb +1 -1
  296. data/spec/models/create_email_campaign_spec.rb +1 -1
  297. data/spec/models/create_list_spec.rb +1 -1
  298. data/spec/models/create_model_spec.rb +1 -1
  299. data/spec/models/create_reseller_spec.rb +1 -1
  300. data/spec/models/create_sender_ips_spec.rb +1 -1
  301. data/spec/models/create_sender_model_spec.rb +1 -1
  302. data/spec/models/create_sender_spec.rb +1 -1
  303. data/spec/models/create_sms_campaign_recipients_spec.rb +1 -1
  304. data/spec/models/create_sms_campaign_spec.rb +1 -1
  305. data/spec/models/create_smtp_email_spec.rb +7 -1
  306. data/spec/models/create_smtp_template_sender_spec.rb +1 -1
  307. data/spec/models/create_smtp_template_spec.rb +1 -1
  308. data/spec/models/create_update_contact_model_spec.rb +1 -1
  309. data/spec/models/create_update_folder_spec.rb +1 -1
  310. data/spec/models/create_webhook_spec.rb +1 -1
  311. data/spec/models/created_process_id_spec.rb +1 -1
  312. data/spec/models/delete_hardbounces_spec.rb +1 -1
  313. data/spec/models/email_export_recipients_spec.rb +1 -1
  314. data/spec/models/error_model_spec.rb +1 -1
  315. data/spec/models/get_account_marketing_automation_spec.rb +1 -1
  316. data/spec/models/get_account_plan_spec.rb +1 -1
  317. data/spec/models/get_account_relay_data_spec.rb +1 -1
  318. data/spec/models/get_account_relay_spec.rb +1 -1
  319. data/spec/models/get_account_spec.rb +1 -1
  320. data/spec/models/get_aggregated_report_spec.rb +1 -1
  321. data/spec/models/get_attributes_attributes_spec.rb +1 -1
  322. data/spec/models/get_attributes_enumeration_spec.rb +1 -1
  323. data/spec/models/get_attributes_spec.rb +1 -1
  324. data/spec/models/get_blocked_domains_spec.rb +41 -0
  325. data/spec/models/get_campaign_overview_spec.rb +1 -1
  326. data/spec/models/get_campaign_recipients_spec.rb +1 -1
  327. data/spec/models/get_campaign_stats_spec.rb +1 -1
  328. data/spec/models/get_child_account_creation_status_spec.rb +1 -1
  329. data/spec/models/get_child_domain_spec.rb +1 -1
  330. data/spec/models/get_child_domains_spec.rb +1 -1
  331. data/spec/models/get_child_info_api_keys_spec.rb +1 -1
  332. data/spec/models/get_child_info_api_keys_v2_spec.rb +1 -1
  333. data/spec/models/get_child_info_api_keys_v3_spec.rb +1 -1
  334. data/spec/models/get_child_info_credits_spec.rb +1 -1
  335. data/spec/models/get_child_info_spec.rb +1 -1
  336. data/spec/models/get_child_info_statistics_spec.rb +1 -1
  337. data/spec/models/get_children_list_spec.rb +1 -1
  338. data/spec/models/get_client_spec.rb +1 -1
  339. data/spec/models/get_contact_campaign_stats_clicked_spec.rb +1 -1
  340. data/spec/models/get_contact_campaign_stats_opened_spec.rb +1 -1
  341. data/spec/models/get_contact_campaign_stats_spec.rb +1 -1
  342. data/spec/models/get_contact_campaign_stats_transac_attributes_spec.rb +1 -1
  343. data/spec/models/get_contact_campaign_stats_unsubscriptions_spec.rb +1 -1
  344. data/spec/models/get_contact_details_spec.rb +1 -1
  345. data/spec/models/get_contacts_spec.rb +1 -1
  346. data/spec/models/get_device_browser_stats_spec.rb +1 -1
  347. data/spec/models/get_email_campaign_spec.rb +1 -1
  348. data/spec/models/get_email_campaigns_spec.rb +1 -1
  349. data/spec/models/get_email_event_report_events_spec.rb +8 -2
  350. data/spec/models/get_email_event_report_spec.rb +1 -1
  351. data/spec/models/get_extended_campaign_overview_sender_spec.rb +1 -1
  352. data/spec/models/get_extended_campaign_overview_spec.rb +1 -1
  353. data/spec/models/get_extended_campaign_stats_global_stats_spec.rb +35 -0
  354. data/spec/models/get_extended_campaign_stats_spec.rb +1 -1
  355. data/spec/models/get_extended_client_address_spec.rb +1 -1
  356. data/spec/models/get_extended_client_spec.rb +1 -1
  357. data/spec/models/get_extended_contact_details_spec.rb +1 -1
  358. data/spec/models/get_extended_contact_details_statistics_clicked_spec.rb +1 -1
  359. data/spec/models/get_extended_contact_details_statistics_links_spec.rb +1 -1
  360. data/spec/models/get_extended_contact_details_statistics_messages_sent_spec.rb +1 -1
  361. data/spec/models/get_extended_contact_details_statistics_opened_spec.rb +1 -1
  362. data/spec/models/get_extended_contact_details_statistics_spec.rb +1 -1
  363. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription_spec.rb +1 -1
  364. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_spec.rb +1 -1
  365. data/spec/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription_spec.rb +1 -1
  366. data/spec/models/get_extended_list_campaign_stats_spec.rb +1 -1
  367. data/spec/models/get_extended_list_spec.rb +7 -1
  368. data/spec/models/get_folder_lists_spec.rb +1 -1
  369. data/spec/models/get_folder_spec.rb +1 -1
  370. data/spec/models/get_folders_spec.rb +1 -1
  371. data/spec/models/get_ip_from_sender_spec.rb +1 -1
  372. data/spec/models/get_ip_spec.rb +1 -1
  373. data/spec/models/get_ips_from_sender_spec.rb +1 -1
  374. data/spec/models/get_ips_spec.rb +1 -1
  375. data/spec/models/get_list_spec.rb +7 -1
  376. data/spec/models/get_lists_spec.rb +1 -1
  377. data/spec/models/get_process_spec.rb +1 -1
  378. data/spec/models/get_processes_spec.rb +1 -1
  379. data/spec/models/get_reports_reports_spec.rb +1 -1
  380. data/spec/models/get_reports_spec.rb +1 -1
  381. data/spec/models/get_senders_list_ips_spec.rb +1 -1
  382. data/spec/models/get_senders_list_senders_spec.rb +1 -1
  383. data/spec/models/get_senders_list_spec.rb +1 -1
  384. data/spec/models/get_shared_template_url_spec.rb +1 -1
  385. data/spec/models/get_sms_campaign_overview_spec.rb +1 -1
  386. data/spec/models/get_sms_campaign_recipients_spec.rb +35 -0
  387. data/spec/models/get_sms_campaign_spec.rb +1 -1
  388. data/spec/models/get_sms_campaign_stats_spec.rb +1 -1
  389. data/spec/models/get_sms_campaigns_spec.rb +1 -1
  390. data/spec/models/get_sms_event_report_events_spec.rb +1 -1
  391. data/spec/models/get_sms_event_report_spec.rb +1 -1
  392. data/spec/models/get_smtp_template_overview_sender_spec.rb +1 -1
  393. data/spec/models/get_smtp_template_overview_spec.rb +1 -1
  394. data/spec/models/get_smtp_templates_spec.rb +1 -1
  395. data/spec/models/get_sso_token_spec.rb +1 -1
  396. data/spec/models/get_stats_by_browser_spec.rb +1 -1
  397. data/spec/models/get_stats_by_device_spec.rb +1 -1
  398. data/spec/models/get_stats_by_domain_spec.rb +1 -1
  399. data/spec/models/get_transac_aggregated_sms_report_spec.rb +1 -1
  400. data/spec/models/get_transac_blocked_contacts_contacts_spec.rb +1 -1
  401. data/spec/models/get_transac_blocked_contacts_reason_spec.rb +1 -1
  402. data/spec/models/get_transac_blocked_contacts_spec.rb +1 -1
  403. data/spec/models/get_transac_email_content_events_spec.rb +1 -1
  404. data/spec/models/get_transac_email_content_spec.rb +1 -1
  405. data/spec/models/get_transac_emails_list_spec.rb +7 -1
  406. data/spec/models/get_transac_emails_list_transactional_emails_spec.rb +1 -1
  407. data/spec/models/get_transac_sms_report_reports_spec.rb +1 -1
  408. data/spec/models/get_transac_sms_report_spec.rb +1 -1
  409. data/spec/models/get_webhook_spec.rb +1 -1
  410. data/spec/models/get_webhooks_spec.rb +1 -1
  411. data/spec/models/manage_ip_spec.rb +1 -1
  412. data/spec/models/post_contact_info_contacts_spec.rb +1 -1
  413. data/spec/models/post_contact_info_spec.rb +1 -1
  414. data/spec/models/post_send_failed_spec.rb +1 -1
  415. data/spec/models/post_send_sms_test_failed_spec.rb +1 -1
  416. data/spec/models/remaining_credit_model_child_spec.rb +1 -1
  417. data/spec/models/remaining_credit_model_reseller_spec.rb +1 -1
  418. data/spec/models/remaining_credit_model_spec.rb +1 -1
  419. data/spec/models/remove_contact_from_list_spec.rb +1 -1
  420. data/spec/models/remove_credits_spec.rb +1 -1
  421. data/spec/models/request_contact_export_custom_contact_filter_spec.rb +1 -1
  422. data/spec/models/request_contact_export_spec.rb +1 -1
  423. data/spec/models/request_contact_import_new_list_spec.rb +1 -1
  424. data/spec/models/request_contact_import_spec.rb +1 -1
  425. data/spec/models/request_sms_recipient_export_spec.rb +1 -1
  426. data/spec/models/send_email_attachment_spec.rb +1 -1
  427. data/spec/models/send_email_spec.rb +1 -1
  428. data/spec/models/send_report_email_spec.rb +1 -29
  429. data/spec/models/send_report_spec.rb +1 -1
  430. data/spec/models/send_sms_spec.rb +1 -1
  431. data/spec/models/send_smtp_email_attachment_spec.rb +1 -1
  432. data/spec/models/send_smtp_email_bcc_spec.rb +1 -1
  433. data/spec/models/send_smtp_email_cc_spec.rb +1 -1
  434. data/spec/models/send_smtp_email_message_versions_spec.rb +71 -0
  435. data/spec/models/send_smtp_email_reply_to_1_spec.rb +47 -0
  436. data/spec/models/send_smtp_email_reply_to_spec.rb +1 -1
  437. data/spec/models/send_smtp_email_sender_spec.rb +1 -1
  438. data/spec/models/send_smtp_email_spec.rb +7 -1
  439. data/spec/models/send_smtp_email_to_1_spec.rb +47 -0
  440. data/spec/models/send_smtp_email_to_spec.rb +1 -1
  441. data/spec/models/send_template_email_spec.rb +1 -1
  442. data/spec/models/send_test_email_spec.rb +1 -1
  443. data/spec/models/send_test_sms_spec.rb +1 -1
  444. data/spec/models/send_transac_sms_spec.rb +1 -1
  445. data/spec/models/update_attribute_enumeration_spec.rb +1 -1
  446. data/spec/models/update_attribute_spec.rb +1 -1
  447. data/spec/models/update_campaign_status_spec.rb +1 -1
  448. data/spec/models/update_child_account_status_spec.rb +1 -1
  449. data/spec/models/update_child_domain_spec.rb +1 -1
  450. data/spec/models/update_child_spec.rb +1 -1
  451. data/spec/models/update_contact_spec.rb +1 -1
  452. data/spec/models/update_email_campaign_recipients_spec.rb +1 -1
  453. data/spec/models/update_email_campaign_sender_spec.rb +1 -1
  454. data/spec/models/update_email_campaign_spec.rb +1 -1
  455. data/spec/models/update_list_spec.rb +1 -1
  456. data/spec/models/update_sender_spec.rb +1 -1
  457. data/spec/models/update_sms_campaign_spec.rb +1 -1
  458. data/spec/models/update_smtp_template_sender_spec.rb +1 -1
  459. data/spec/models/update_smtp_template_spec.rb +1 -1
  460. data/spec/models/update_webhook_spec.rb +1 -1
  461. data/spec/models/upload_image_to_gallery_spec.rb +1 -1
  462. data/spec/spec_helper.rb +1 -1
  463. metadata +193 -167
  464. data/testfile.rb +0 -23
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -19,6 +19,16 @@ module SibApiV3Sdk
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
+
22
32
  # Get all your SMS activity (unaggregated events)
23
33
  # @param [Hash] opts the optional parameters
24
34
  # @option opts [Integer] :limit Number of documents per page (default to 50)
@@ -29,6 +39,7 @@ module SibApiV3Sdk
29
39
  # @option opts [String] :phone_number Filter the report for a specific phone number
30
40
  # @option opts [String] :event Filter the report for specific events
31
41
  # @option opts [String] :tags Filter the report for specific tags passed as a serialized urlencoded array
42
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (default to desc)
32
43
  # @return [GetSmsEventReport]
33
44
  def get_sms_events(opts = {})
34
45
  data, _status_code, _headers = get_sms_events_with_http_info(opts)
@@ -45,6 +56,7 @@ module SibApiV3Sdk
45
56
  # @option opts [String] :phone_number Filter the report for a specific phone number
46
57
  # @option opts [String] :event Filter the report for specific events
47
58
  # @option opts [String] :tags Filter the report for specific tags passed as a serialized urlencoded array
59
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
48
60
  # @return [Array<(GetSmsEventReport, Fixnum, Hash)>] GetSmsEventReport data, response status code and response headers
49
61
  def get_sms_events_with_http_info(opts = {})
50
62
  if @api_client.config.debugging
@@ -57,6 +69,9 @@ module SibApiV3Sdk
57
69
  if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'sent', 'accepted', 'unsubscription', 'replies', 'blocked'].include?(opts[:'event'])
58
70
  fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, sent, accepted, unsubscription, replies, blocked'
59
71
  end
72
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
73
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
74
+ end
60
75
  # resource path
61
76
  local_var_path = '/transactionalSMS/statistics/events'
62
77
 
@@ -70,6 +85,7 @@ module SibApiV3Sdk
70
85
  query_params[:'phoneNumber'] = opts[:'phone_number'] if !opts[:'phone_number'].nil?
71
86
  query_params[:'event'] = opts[:'event'] if !opts[:'event'].nil?
72
87
  query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
88
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
73
89
 
74
90
  # header parameters
75
91
  header_params = {}
@@ -160,6 +176,7 @@ module SibApiV3Sdk
160
176
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
161
177
  # @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with &#39;startDate&#39; and &#39;endDate&#39;
162
178
  # @option opts [String] :tag Filter on a tag
179
+ # @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)
163
180
  # @return [GetTransacSmsReport]
164
181
  def get_transac_sms_report(opts = {})
165
182
  data, _status_code, _headers = get_transac_sms_report_with_http_info(opts)
@@ -172,11 +189,15 @@ module SibApiV3Sdk
172
189
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
173
190
  # @option opts [Integer] :days Number of days in the past including today (positive integer). Not compatible with &#39;startDate&#39; and &#39;endDate&#39;
174
191
  # @option opts [String] :tag Filter on a tag
192
+ # @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
175
193
  # @return [Array<(GetTransacSmsReport, Fixnum, Hash)>] GetTransacSmsReport data, response status code and response headers
176
194
  def get_transac_sms_report_with_http_info(opts = {})
177
195
  if @api_client.config.debugging
178
196
  @api_client.config.logger.debug 'Calling API: TransactionalSMSApi.get_transac_sms_report ...'
179
197
  end
198
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
199
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
200
+ end
180
201
  # resource path
181
202
  local_var_path = '/transactionalSMS/statistics/reports'
182
203
 
@@ -186,6 +207,7 @@ module SibApiV3Sdk
186
207
  query_params[:'endDate'] = opts[:'end_date'] if !opts[:'end_date'].nil?
187
208
  query_params[:'days'] = opts[:'days'] if !opts[:'days'].nil?
188
209
  query_params[:'tag'] = opts[:'tag'] if !opts[:'tag'].nil?
210
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
189
211
 
190
212
  # header parameters
191
213
  header_params = {}
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -19,6 +19,16 @@ module SibApiV3Sdk
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
+
22
32
  # Create a webhook
23
33
  # @param create_webhook Values to create a webhook
24
34
  # @param [Hash] opts the optional parameters
@@ -177,6 +187,7 @@ module SibApiV3Sdk
177
187
  # Get all webhooks
178
188
  # @param [Hash] opts the optional parameters
179
189
  # @option opts [String] :type Filter on webhook type (default to transactional)
190
+ # @option opts [String] :sort Sort the results in the ascending/descending order of webhook creation (default to desc)
180
191
  # @return [GetWebhooks]
181
192
  def get_webhooks(opts = {})
182
193
  data, _status_code, _headers = get_webhooks_with_http_info(opts)
@@ -186,6 +197,7 @@ module SibApiV3Sdk
186
197
  # Get all webhooks
187
198
  # @param [Hash] opts the optional parameters
188
199
  # @option opts [String] :type Filter on webhook type
200
+ # @option opts [String] :sort Sort the results in the ascending/descending order of webhook creation
189
201
  # @return [Array<(GetWebhooks, Fixnum, Hash)>] GetWebhooks data, response status code and response headers
190
202
  def get_webhooks_with_http_info(opts = {})
191
203
  if @api_client.config.debugging
@@ -194,12 +206,16 @@ module SibApiV3Sdk
194
206
  if @api_client.config.client_side_validation && opts[:'type'] && !['marketing', 'transactional'].include?(opts[:'type'])
195
207
  fail ArgumentError, 'invalid value for "type", must be one of marketing, transactional'
196
208
  end
209
+ if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort'])
210
+ fail ArgumentError, 'invalid value for "sort", must be one of asc, desc'
211
+ end
197
212
  # resource path
198
213
  local_var_path = '/webhooks'
199
214
 
200
215
  # query parameters
201
216
  query_params = {}
202
217
  query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil?
218
+ query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
203
219
 
204
220
  # header parameters
205
221
  header_params = {}
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -15,7 +15,7 @@ require 'json'
15
15
  require 'logger'
16
16
  require 'tempfile'
17
17
  require 'typhoeus'
18
- require 'uri'
18
+ require 'addressable/uri'
19
19
 
20
20
  module SibApiV3Sdk
21
21
  class ApiClient
@@ -63,7 +63,7 @@ module SibApiV3Sdk
63
63
  :message => response.return_message)
64
64
  else
65
65
  fail ApiError.new(:code => response.code,
66
- :response_headers => response.headers,
66
+ :response_headers => response.headers.to_h,
67
67
  :response_body => response.body),
68
68
  response.status_message
69
69
  end
@@ -109,9 +109,12 @@ module SibApiV3Sdk
109
109
  :ssl_verifyhost => _verify_ssl_host,
110
110
  :sslcert => @config.cert_file,
111
111
  :sslkey => @config.key_file,
112
- :verbose => @config.debugging
112
+ :verbose => @config.debugging,
113
+ :http_version => :httpv1_1
113
114
  }
114
115
 
116
+ req_opts.merge!(multipart: true) if header_params['Content-Type'].start_with? "multipart/"
117
+
115
118
  # set custom cert, if provided
116
119
  req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert
117
120
 
@@ -264,7 +267,7 @@ module SibApiV3Sdk
264
267
  def build_request_url(path)
265
268
  # Add leading and trailing slashes to path
266
269
  path = "/#{path}".gsub(/\/+/, '/')
267
- URI.encode(@config.base_url + path)
270
+ Addressable::URI.encode(@config.base_url + path)
268
271
  end
269
272
 
270
273
  # Builds the HTTP request body
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -6,11 +6,11 @@
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.19
10
10
 
11
11
  =end
12
12
 
13
- require 'uri'
13
+ require 'addressable/uri'
14
14
 
15
15
  module SibApiV3Sdk
16
16
  class Configuration
@@ -175,7 +175,7 @@ module SibApiV3Sdk
175
175
 
176
176
  def base_url
177
177
  url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
178
- URI.encode(url)
178
+ Addressable::URI.encode(url)
179
179
  end
180
180
 
181
181
  # Gets API key (with prefix if set).
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -198,7 +198,7 @@ module SibApiV3Sdk
198
198
  return nil unless attributes.is_a?(Hash)
199
199
  self.class.swagger_types.each_pair do |key, type|
200
200
  if type =~ /\AArray<(.*)>/i
201
- # check to ensure the input is an array given that the the attribute
201
+ # check to ensure the input is an array given that the attribute
202
202
  # is documented as an array but the input is not
203
203
  if attributes[self.class.attribute_map[key]].is_a?(Array)
204
204
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -294,5 +294,6 @@ module SibApiV3Sdk
294
294
  value
295
295
  end
296
296
  end
297
+
297
298
  end
298
299
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -102,7 +102,7 @@ module SibApiV3Sdk
102
102
  return nil unless attributes.is_a?(Hash)
103
103
  self.class.swagger_types.each_pair do |key, type|
104
104
  if type =~ /\AArray<(.*)>/i
105
- # check to ensure the input is an array given that the the attribute
105
+ # check to ensure the input is an array given that the attribute
106
106
  # is documented as an array but the input is not
107
107
  if attributes[self.class.attribute_map[key]].is_a?(Array)
108
108
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -198,5 +198,6 @@ module SibApiV3Sdk
198
198
  value
199
199
  end
200
200
  end
201
+
201
202
  end
202
203
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -158,7 +158,7 @@ module SibApiV3Sdk
158
158
  return nil unless attributes.is_a?(Hash)
159
159
  self.class.swagger_types.each_pair do |key, type|
160
160
  if type =~ /\AArray<(.*)>/i
161
- # check to ensure the input is an array given that the the attribute
161
+ # check to ensure the input is an array given that the attribute
162
162
  # is documented as an array but the input is not
163
163
  if attributes[self.class.attribute_map[key]].is_a?(Array)
164
164
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -254,5 +254,6 @@ module SibApiV3Sdk
254
254
  value
255
255
  end
256
256
  end
257
+
257
258
  end
258
259
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -75,7 +75,7 @@ module SibApiV3Sdk
75
75
  return nil unless attributes.is_a?(Hash)
76
76
  self.class.swagger_types.each_pair do |key, type|
77
77
  if type =~ /\AArray<(.*)>/i
78
- # check to ensure the input is an array given that the the attribute
78
+ # check to ensure the input is an array given that the attribute
79
79
  # is documented as an array but the input is not
80
80
  if attributes[self.class.attribute_map[key]].is_a?(Array)
81
81
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -171,5 +171,6 @@ module SibApiV3Sdk
171
171
  value
172
172
  end
173
173
  end
174
+
174
175
  end
175
176
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -119,7 +119,7 @@ module SibApiV3Sdk
119
119
  return nil unless attributes.is_a?(Hash)
120
120
  self.class.swagger_types.each_pair do |key, type|
121
121
  if type =~ /\AArray<(.*)>/i
122
- # check to ensure the input is an array given that the the attribute
122
+ # check to ensure the input is an array given that the attribute
123
123
  # is documented as an array but the input is not
124
124
  if attributes[self.class.attribute_map[key]].is_a?(Array)
125
125
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -215,5 +215,6 @@ module SibApiV3Sdk
215
215
  value
216
216
  end
217
217
  end
218
+
218
219
  end
219
220
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -105,7 +105,7 @@ module SibApiV3Sdk
105
105
  return nil unless attributes.is_a?(Hash)
106
106
  self.class.swagger_types.each_pair do |key, type|
107
107
  if type =~ /\AArray<(.*)>/i
108
- # check to ensure the input is an array given that the the attribute
108
+ # check to ensure the input is an array given that the attribute
109
109
  # is documented as an array but the input is not
110
110
  if attributes[self.class.attribute_map[key]].is_a?(Array)
111
111
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -201,5 +201,6 @@ module SibApiV3Sdk
201
201
  value
202
202
  end
203
203
  end
204
+
204
205
  end
205
206
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -84,7 +84,7 @@ module SibApiV3Sdk
84
84
  return nil unless attributes.is_a?(Hash)
85
85
  self.class.swagger_types.each_pair do |key, type|
86
86
  if type =~ /\AArray<(.*)>/i
87
- # check to ensure the input is an array given that the the attribute
87
+ # check to ensure the input is an array given that the attribute
88
88
  # is documented as an array but the input is not
89
89
  if attributes[self.class.attribute_map[key]].is_a?(Array)
90
90
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -180,5 +180,6 @@ module SibApiV3Sdk
180
180
  value
181
181
  end
182
182
  end
183
+
183
184
  end
184
185
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -98,7 +98,7 @@ module SibApiV3Sdk
98
98
  return nil unless attributes.is_a?(Hash)
99
99
  self.class.swagger_types.each_pair do |key, type|
100
100
  if type =~ /\AArray<(.*)>/i
101
- # check to ensure the input is an array given that the the attribute
101
+ # check to ensure the input is an array given that the attribute
102
102
  # is documented as an array but the input is not
103
103
  if attributes[self.class.attribute_map[key]].is_a?(Array)
104
104
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -194,5 +194,6 @@ module SibApiV3Sdk
194
194
  value
195
195
  end
196
196
  end
197
+
197
198
  end
198
199
  end
@@ -6,7 +6,7 @@
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.19
10
10
 
11
11
  =end
12
12
 
@@ -94,7 +94,7 @@ module SibApiV3Sdk
94
94
  return nil unless attributes.is_a?(Hash)
95
95
  self.class.swagger_types.each_pair do |key, type|
96
96
  if type =~ /\AArray<(.*)>/i
97
- # check to ensure the input is an array given that the the attribute
97
+ # check to ensure the input is an array given that the attribute
98
98
  # is documented as an array but the input is not
99
99
  if attributes[self.class.attribute_map[key]].is_a?(Array)
100
100
  self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
@@ -190,5 +190,6 @@ module SibApiV3Sdk
190
190
  value
191
191
  end
192
192
  end
193
+
193
194
  end
194
195
  end