sib-api-v3-sdk 7.5.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +59 -4
  3. data/docs/Body.md +18 -0
  4. data/docs/Body1.md +18 -0
  5. data/docs/CRMApi.md +710 -0
  6. data/docs/Contact.md +15 -0
  7. data/docs/ContactsApi.md +61 -2
  8. data/docs/CreateSmsCampaign.md +1 -0
  9. data/docs/CreateSubAccount.md +10 -0
  10. data/docs/CreateWebhook.md +2 -1
  11. data/docs/FileData.md +17 -0
  12. data/docs/GetCampaignStats.md +1 -0
  13. data/docs/GetContactCampaignStats.md +1 -0
  14. data/docs/GetExtendedContactDetailsStatistics.md +1 -0
  15. data/docs/GetExtendedContactDetailsStatisticsDelivered.md +9 -0
  16. data/docs/GetInboundEmailEvents.md +8 -0
  17. data/docs/GetInboundEmailEventsByUuid.md +15 -0
  18. data/docs/GetInboundEmailEventsByUuidAttachments.md +11 -0
  19. data/docs/GetInboundEmailEventsByUuidLogs.md +9 -0
  20. data/docs/GetInboundEmailEventsEvents.md +11 -0
  21. data/docs/InboundParsingApi.md +139 -0
  22. data/docs/MasterAccountApi.md +367 -0
  23. data/docs/MasterDetailsResponse.md +14 -0
  24. data/docs/MasterDetailsResponseBillingInfo.md +11 -0
  25. data/docs/MasterDetailsResponseBillingInfoAddress.md +12 -0
  26. data/docs/MasterDetailsResponseBillingInfoName.md +9 -0
  27. data/docs/MasterDetailsResponsePlanInfo.md +13 -0
  28. data/docs/MasterDetailsResponsePlanInfoFeatures.md +12 -0
  29. data/docs/Note.md +14 -0
  30. data/docs/NoteData.md +10 -0
  31. data/docs/RequestContactExport.md +1 -2
  32. data/docs/SendSmtpEmail.md +3 -3
  33. data/docs/SendTransacSms.md +1 -0
  34. data/docs/SsoTokenRequest.md +9 -0
  35. data/docs/SubAccountDetailsResponse.md +11 -0
  36. data/docs/SubAccountDetailsResponsePlanInfo.md +10 -0
  37. data/docs/SubAccountDetailsResponsePlanInfoCredits.md +9 -0
  38. data/docs/SubAccountDetailsResponsePlanInfoCreditsEmails.md +9 -0
  39. data/docs/SubAccountDetailsResponsePlanInfoFeatures.md +10 -0
  40. data/docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md +9 -0
  41. data/docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md +9 -0
  42. data/docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md +9 -0
  43. data/docs/SubAccountUpdatePlanRequest.md +9 -0
  44. data/docs/SubAccountUpdatePlanRequestCredits.md +8 -0
  45. data/docs/SubAccountUpdatePlanRequestFeatures.md +10 -0
  46. data/docs/SubAccountsResponse.md +9 -0
  47. data/docs/SubAccountsResponseSubAccounts.md +11 -0
  48. data/docs/Task.md +24 -0
  49. data/docs/TaskReminder.md +10 -0
  50. data/docs/TransactionalEmailsApi.md +4 -63
  51. data/docs/UpdateBatchContacts.md +8 -0
  52. data/docs/UpdateBatchContactsContacts.md +16 -0
  53. data/docs/UpdateBatchContactsModel.md +9 -0
  54. data/docs/UpdateSmsCampaign.md +1 -0
  55. data/docs/UpdateWebhook.md +2 -1
  56. data/lib/sib-api-v3-sdk/api/contacts_api.rb +55 -2
  57. data/lib/sib-api-v3-sdk/api/crm_api.rb +670 -0
  58. data/lib/sib-api-v3-sdk/api/inbound_parsing_api.rb +161 -0
  59. data/lib/sib-api-v3-sdk/api/master_account_api.rb +365 -0
  60. data/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +4 -60
  61. data/lib/sib-api-v3-sdk/api/webhooks_api.rb +2 -2
  62. data/lib/sib-api-v3-sdk/models/body.rb +305 -0
  63. data/lib/sib-api-v3-sdk/models/body_1.rb +305 -0
  64. data/lib/sib-api-v3-sdk/models/{send_email.rb → contact.rb} +64 -78
  65. data/lib/sib-api-v3-sdk/models/create_sms_campaign.rb +16 -4
  66. data/lib/sib-api-v3-sdk/models/create_sub_account.rb +244 -0
  67. data/lib/sib-api-v3-sdk/models/create_webhook.rb +17 -7
  68. data/lib/sib-api-v3-sdk/models/file_data.rb +278 -0
  69. data/lib/sib-api-v3-sdk/models/get_campaign_stats.rb +16 -1
  70. data/lib/sib-api-v3-sdk/models/get_contact_campaign_stats.rb +15 -4
  71. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics.rb +16 -4
  72. data/lib/sib-api-v3-sdk/models/get_extended_contact_details_statistics_delivered.rb +205 -0
  73. data/lib/sib-api-v3-sdk/models/{send_template_email.rb → get_inbound_email_events.rb} +10 -14
  74. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid.rb +259 -0
  75. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_attachments.rb +215 -0
  76. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_logs.rb +229 -0
  77. data/lib/sib-api-v3-sdk/models/get_inbound_email_events_events.rb +235 -0
  78. data/lib/sib-api-v3-sdk/models/master_details_response.rb +243 -0
  79. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info.rb +214 -0
  80. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_address.rb +226 -0
  81. data/lib/sib-api-v3-sdk/models/master_details_response_billing_info_name.rb +196 -0
  82. data/lib/sib-api-v3-sdk/models/master_details_response_plan_info.rb +272 -0
  83. data/lib/sib-api-v3-sdk/models/{send_email_attachment.rb → master_details_response_plan_info_features.rb} +45 -44
  84. data/lib/sib-api-v3-sdk/models/note.rb +283 -0
  85. data/lib/sib-api-v3-sdk/models/note_data.rb +243 -0
  86. data/lib/sib-api-v3-sdk/models/request_contact_export.rb +6 -11
  87. data/lib/sib-api-v3-sdk/models/request_contact_export_custom_contact_filter.rb +1 -1
  88. data/lib/sib-api-v3-sdk/models/send_smtp_email.rb +3 -3
  89. data/lib/sib-api-v3-sdk/models/send_transac_sms.rb +16 -4
  90. data/lib/sib-api-v3-sdk/models/sso_token_request.rb +200 -0
  91. data/lib/sib-api-v3-sdk/models/sub_account_details_response.rb +214 -0
  92. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info.rb +204 -0
  93. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits.rb +195 -0
  94. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails.rb +196 -0
  95. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features.rb +203 -0
  96. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_inbox.rb +196 -0
  97. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_landing_page.rb +196 -0
  98. data/lib/sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_users.rb +196 -0
  99. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request.rb +194 -0
  100. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_credits.rb +186 -0
  101. data/lib/sib-api-v3-sdk/models/sub_account_update_plan_request_features.rb +206 -0
  102. data/lib/sib-api-v3-sdk/models/sub_accounts_response.rb +196 -0
  103. data/lib/sib-api-v3-sdk/models/sub_accounts_response_sub_accounts.rb +235 -0
  104. data/lib/sib-api-v3-sdk/models/task.rb +367 -0
  105. data/lib/sib-api-v3-sdk/models/task_reminder.rb +257 -0
  106. data/lib/sib-api-v3-sdk/models/update_batch_contacts.rb +187 -0
  107. data/lib/sib-api-v3-sdk/models/update_batch_contacts_contacts.rb +273 -0
  108. data/lib/sib-api-v3-sdk/models/update_batch_contacts_model.rb +197 -0
  109. data/lib/sib-api-v3-sdk/models/update_sms_campaign.rb +16 -4
  110. data/lib/sib-api-v3-sdk/models/update_webhook.rb +15 -5
  111. data/lib/sib-api-v3-sdk/version.rb +1 -1
  112. data/lib/sib-api-v3-sdk.rb +41 -3
  113. data/sib-api-v3-sdk.gemspec +2 -1
  114. data/spec/api/contacts_api_spec.rb +13 -1
  115. data/spec/api/crm_api_spec.rb +170 -0
  116. data/spec/api/inbound_parsing_api_spec.rb +64 -0
  117. data/spec/api/master_account_api_spec.rb +108 -0
  118. data/spec/api/transactional_emails_api_spec.rb +2 -13
  119. data/spec/models/body_1_spec.rb +101 -0
  120. data/spec/models/body_spec.rb +101 -0
  121. data/spec/models/contact_spec.rb +83 -0
  122. data/spec/models/create_sms_campaign_spec.rb +6 -0
  123. data/spec/models/create_sub_account_spec.rb +57 -0
  124. data/spec/models/create_webhook_spec.rb +8 -2
  125. data/spec/models/file_data_spec.rb +95 -0
  126. data/spec/models/get_campaign_stats_spec.rb +6 -0
  127. data/spec/models/get_contact_campaign_stats_spec.rb +6 -0
  128. data/spec/models/get_extended_contact_details_statistics_delivered_spec.rb +47 -0
  129. data/spec/models/get_extended_contact_details_statistics_spec.rb +6 -0
  130. data/spec/models/get_inbound_email_events_by_uuid_attachments_spec.rb +59 -0
  131. data/spec/models/get_inbound_email_events_by_uuid_logs_spec.rb +51 -0
  132. data/spec/models/get_inbound_email_events_by_uuid_spec.rb +83 -0
  133. data/spec/models/get_inbound_email_events_events_spec.rb +59 -0
  134. data/spec/models/get_inbound_email_events_spec.rb +41 -0
  135. data/spec/models/master_details_response_billing_info_address_spec.rb +65 -0
  136. data/spec/models/master_details_response_billing_info_name_spec.rb +47 -0
  137. data/spec/models/master_details_response_billing_info_spec.rb +59 -0
  138. data/spec/models/master_details_response_plan_info_features_spec.rb +65 -0
  139. data/spec/models/master_details_response_plan_info_spec.rb +75 -0
  140. data/spec/models/master_details_response_spec.rb +77 -0
  141. data/spec/models/note_data_spec.rb +53 -0
  142. data/spec/models/note_spec.rb +77 -0
  143. data/spec/models/request_contact_export_spec.rb +0 -6
  144. data/spec/models/send_transac_sms_spec.rb +6 -0
  145. data/spec/models/{send_email_attachment_spec.rb → sso_token_request_spec.rb} +8 -8
  146. data/spec/models/sub_account_details_response_plan_info_credits_emails_spec.rb +47 -0
  147. data/spec/models/sub_account_details_response_plan_info_credits_spec.rb +47 -0
  148. data/spec/models/sub_account_details_response_plan_info_features_inbox_spec.rb +47 -0
  149. data/spec/models/sub_account_details_response_plan_info_features_landing_page_spec.rb +47 -0
  150. data/spec/models/sub_account_details_response_plan_info_features_spec.rb +53 -0
  151. data/spec/models/sub_account_details_response_plan_info_features_users_spec.rb +47 -0
  152. data/spec/models/sub_account_details_response_plan_info_spec.rb +53 -0
  153. data/spec/models/sub_account_details_response_spec.rb +59 -0
  154. data/spec/models/sub_account_update_plan_request_credits_spec.rb +41 -0
  155. data/spec/models/sub_account_update_plan_request_features_spec.rb +53 -0
  156. data/spec/models/sub_account_update_plan_request_spec.rb +47 -0
  157. data/spec/models/sub_accounts_response_spec.rb +47 -0
  158. data/spec/models/sub_accounts_response_sub_accounts_spec.rb +59 -0
  159. data/spec/models/task_reminder_spec.rb +57 -0
  160. data/spec/models/task_spec.rb +137 -0
  161. data/spec/models/{send_email_spec.rb → update_batch_contacts_contacts_spec.rb} +15 -15
  162. data/spec/models/update_batch_contacts_model_spec.rb +47 -0
  163. data/spec/models/{send_template_email_spec.rb → update_batch_contacts_spec.rb} +7 -7
  164. data/spec/models/update_sms_campaign_spec.rb +6 -0
  165. data/spec/models/update_webhook_spec.rb +7 -1
  166. metadata +186 -14
  167. data/docs/SendEmail.md +0 -16
  168. data/docs/SendEmailAttachment.md +0 -9
  169. data/docs/SendTemplateEmail.md +0 -8
@@ -27,6 +27,9 @@ require 'sib-api-v3-sdk/models/add_child_domain'
27
27
  require 'sib-api-v3-sdk/models/add_contact_to_list'
28
28
  require 'sib-api-v3-sdk/models/add_credits'
29
29
  require 'sib-api-v3-sdk/models/block_domain'
30
+ require 'sib-api-v3-sdk/models/body'
31
+ require 'sib-api-v3-sdk/models/body_1'
32
+ require 'sib-api-v3-sdk/models/contact'
30
33
  require 'sib-api-v3-sdk/models/create_attribute'
31
34
  require 'sib-api-v3-sdk/models/create_attribute_enumeration'
32
35
  require 'sib-api-v3-sdk/models/create_child'
@@ -46,6 +49,7 @@ require 'sib-api-v3-sdk/models/create_sms_campaign_recipients'
46
49
  require 'sib-api-v3-sdk/models/create_smtp_email'
47
50
  require 'sib-api-v3-sdk/models/create_smtp_template'
48
51
  require 'sib-api-v3-sdk/models/create_smtp_template_sender'
52
+ require 'sib-api-v3-sdk/models/create_sub_account'
49
53
  require 'sib-api-v3-sdk/models/create_update_contact_model'
50
54
  require 'sib-api-v3-sdk/models/create_update_folder'
51
55
  require 'sib-api-v3-sdk/models/create_webhook'
@@ -53,6 +57,7 @@ require 'sib-api-v3-sdk/models/created_process_id'
53
57
  require 'sib-api-v3-sdk/models/delete_hardbounces'
54
58
  require 'sib-api-v3-sdk/models/email_export_recipients'
55
59
  require 'sib-api-v3-sdk/models/error_model'
60
+ require 'sib-api-v3-sdk/models/file_data'
56
61
  require 'sib-api-v3-sdk/models/get_account'
57
62
  require 'sib-api-v3-sdk/models/get_account_marketing_automation'
58
63
  require 'sib-api-v3-sdk/models/get_account_plan'
@@ -98,6 +103,7 @@ require 'sib-api-v3-sdk/models/get_extended_client_address'
98
103
  require 'sib-api-v3-sdk/models/get_extended_contact_details'
99
104
  require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics'
100
105
  require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics_clicked'
106
+ require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics_delivered'
101
107
  require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics_links'
102
108
  require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics_messages_sent'
103
109
  require 'sib-api-v3-sdk/models/get_extended_contact_details_statistics_opened'
@@ -109,6 +115,11 @@ require 'sib-api-v3-sdk/models/get_extended_list_campaign_stats'
109
115
  require 'sib-api-v3-sdk/models/get_folder'
110
116
  require 'sib-api-v3-sdk/models/get_folder_lists'
111
117
  require 'sib-api-v3-sdk/models/get_folders'
118
+ require 'sib-api-v3-sdk/models/get_inbound_email_events'
119
+ require 'sib-api-v3-sdk/models/get_inbound_email_events_by_uuid'
120
+ require 'sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_attachments'
121
+ require 'sib-api-v3-sdk/models/get_inbound_email_events_by_uuid_logs'
122
+ require 'sib-api-v3-sdk/models/get_inbound_email_events_events'
112
123
  require 'sib-api-v3-sdk/models/get_ip'
113
124
  require 'sib-api-v3-sdk/models/get_ip_from_sender'
114
125
  require 'sib-api-v3-sdk/models/get_ips'
@@ -150,6 +161,14 @@ require 'sib-api-v3-sdk/models/get_transac_sms_report_reports'
150
161
  require 'sib-api-v3-sdk/models/get_webhook'
151
162
  require 'sib-api-v3-sdk/models/get_webhooks'
152
163
  require 'sib-api-v3-sdk/models/manage_ip'
164
+ require 'sib-api-v3-sdk/models/master_details_response'
165
+ require 'sib-api-v3-sdk/models/master_details_response_billing_info'
166
+ require 'sib-api-v3-sdk/models/master_details_response_billing_info_address'
167
+ require 'sib-api-v3-sdk/models/master_details_response_billing_info_name'
168
+ require 'sib-api-v3-sdk/models/master_details_response_plan_info'
169
+ require 'sib-api-v3-sdk/models/master_details_response_plan_info_features'
170
+ require 'sib-api-v3-sdk/models/note'
171
+ require 'sib-api-v3-sdk/models/note_data'
153
172
  require 'sib-api-v3-sdk/models/post_contact_info'
154
173
  require 'sib-api-v3-sdk/models/post_contact_info_contacts'
155
174
  require 'sib-api-v3-sdk/models/post_send_failed'
@@ -164,8 +183,6 @@ require 'sib-api-v3-sdk/models/request_contact_export_custom_contact_filter'
164
183
  require 'sib-api-v3-sdk/models/request_contact_import'
165
184
  require 'sib-api-v3-sdk/models/request_contact_import_new_list'
166
185
  require 'sib-api-v3-sdk/models/request_sms_recipient_export'
167
- require 'sib-api-v3-sdk/models/send_email'
168
- require 'sib-api-v3-sdk/models/send_email_attachment'
169
186
  require 'sib-api-v3-sdk/models/send_report'
170
187
  require 'sib-api-v3-sdk/models/send_report_email'
171
188
  require 'sib-api-v3-sdk/models/send_sms'
@@ -179,12 +196,30 @@ require 'sib-api-v3-sdk/models/send_smtp_email_reply_to_1'
179
196
  require 'sib-api-v3-sdk/models/send_smtp_email_sender'
180
197
  require 'sib-api-v3-sdk/models/send_smtp_email_to'
181
198
  require 'sib-api-v3-sdk/models/send_smtp_email_to_1'
182
- require 'sib-api-v3-sdk/models/send_template_email'
183
199
  require 'sib-api-v3-sdk/models/send_test_email'
184
200
  require 'sib-api-v3-sdk/models/send_test_sms'
185
201
  require 'sib-api-v3-sdk/models/send_transac_sms'
202
+ require 'sib-api-v3-sdk/models/sso_token_request'
203
+ require 'sib-api-v3-sdk/models/sub_account_details_response'
204
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info'
205
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits'
206
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_credits_emails'
207
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_features'
208
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_inbox'
209
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_landing_page'
210
+ require 'sib-api-v3-sdk/models/sub_account_details_response_plan_info_features_users'
211
+ require 'sib-api-v3-sdk/models/sub_account_update_plan_request'
212
+ require 'sib-api-v3-sdk/models/sub_account_update_plan_request_credits'
213
+ require 'sib-api-v3-sdk/models/sub_account_update_plan_request_features'
214
+ require 'sib-api-v3-sdk/models/sub_accounts_response'
215
+ require 'sib-api-v3-sdk/models/sub_accounts_response_sub_accounts'
216
+ require 'sib-api-v3-sdk/models/task'
217
+ require 'sib-api-v3-sdk/models/task_reminder'
186
218
  require 'sib-api-v3-sdk/models/update_attribute'
187
219
  require 'sib-api-v3-sdk/models/update_attribute_enumeration'
220
+ require 'sib-api-v3-sdk/models/update_batch_contacts'
221
+ require 'sib-api-v3-sdk/models/update_batch_contacts_contacts'
222
+ require 'sib-api-v3-sdk/models/update_batch_contacts_model'
188
223
  require 'sib-api-v3-sdk/models/update_campaign_status'
189
224
  require 'sib-api-v3-sdk/models/update_child'
190
225
  require 'sib-api-v3-sdk/models/update_child_account_status'
@@ -204,10 +239,13 @@ require 'sib-api-v3-sdk/models/upload_image_to_gallery'
204
239
  # APIs
205
240
  require 'sib-api-v3-sdk/api/account_api'
206
241
  require 'sib-api-v3-sdk/api/attributes_api'
242
+ require 'sib-api-v3-sdk/api/crm_api'
207
243
  require 'sib-api-v3-sdk/api/contacts_api'
208
244
  require 'sib-api-v3-sdk/api/email_campaigns_api'
209
245
  require 'sib-api-v3-sdk/api/folders_api'
246
+ require 'sib-api-v3-sdk/api/inbound_parsing_api'
210
247
  require 'sib-api-v3-sdk/api/lists_api'
248
+ require 'sib-api-v3-sdk/api/master_account_api'
211
249
  require 'sib-api-v3-sdk/api/process_api'
212
250
  require 'sib-api-v3-sdk/api/reseller_api'
213
251
  require 'sib-api-v3-sdk/api/sms_campaigns_api'
@@ -8,7 +8,7 @@
8
8
  OpenAPI spec version: 3.0.0
9
9
  Contact: contact@sendinblue.com
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
- Swagger Codegen version: 2.4.12
11
+ Swagger Codegen version: 2.4.19
12
12
 
13
13
  =end
14
14
 
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
 
30
30
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+ s.add_runtime_dependency 'addressable', '~> 2.3', '>= 2.3.0'
32
33
 
33
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
@@ -158,6 +158,7 @@ describe 'ContactsApi' do
158
158
 
159
159
  # unit tests for get_contact_info
160
160
  # Get a contact's details
161
+ # Along with the contact details, this endpoint will show the statistics of contact for the recent 90 days by default. To fetch the earlier statistics, please use Get contact campaign stats (https://developers.sendinblue.com/reference/contacts-7#getcontactstats) endpoint with the appropriate date ranges.
161
162
  # @param identifier Email (urlencoded) OR ID of the contact OR its SMS attribute value
162
163
  # @param [Hash] opts the optional parameters
163
164
  # @return [GetExtendedContactDetails]
@@ -172,7 +173,7 @@ describe 'ContactsApi' do
172
173
  # @param identifier Email (urlencoded) OR ID of the contact
173
174
  # @param [Hash] opts the optional parameters
174
175
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
175
- # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate
176
+ # @option opts [String] :end_date Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. Maximum difference between startDate and endDate should not be greater than 90 days
176
177
  # @return [GetContactCampaignStats]
177
178
  describe 'get_contact_stats test' do
178
179
  it 'should work' do
@@ -320,6 +321,17 @@ describe 'ContactsApi' do
320
321
  end
321
322
  end
322
323
 
324
+ # unit tests for update_batch_contacts
325
+ # Update multiple contacts
326
+ # @param update_batch_contacts Values to update multiple contacts
327
+ # @param [Hash] opts the optional parameters
328
+ # @return [nil]
329
+ describe 'update_batch_contacts test' do
330
+ it 'should work' do
331
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
332
+ end
333
+ end
334
+
323
335
  # unit tests for update_contact
324
336
  # Update a contact
325
337
  # @param identifier Email (urlencoded) OR ID of the contact
@@ -0,0 +1,170 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.19
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SibApiV3Sdk::CRMApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'CRMApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SibApiV3Sdk::CRMApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CRMApi' do
30
+ it 'should create an instance of CRMApi' do
31
+ expect(@instance).to be_instance_of(SibApiV3Sdk::CRMApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for crm_files_id_data_get
36
+ # Get file data by id.
37
+ # @param id File id to get file data.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [FileData]
40
+ describe 'crm_files_id_data_get test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for crm_files_id_delete
47
+ # Delete file.
48
+ # @param id File id to delete.
49
+ # @param [Hash] opts the optional parameters
50
+ # @return [nil]
51
+ describe 'crm_files_id_delete test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for crm_files_id_get
58
+ # Download file by id.
59
+ # @param id File id to download.
60
+ # @param [Hash] opts the optional parameters
61
+ # @return [nil]
62
+ describe 'crm_files_id_get test' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ # unit tests for crm_files_post
69
+ # Upload and create file.
70
+ # @param file File data to create a file.
71
+ # @param [Hash] opts the optional parameters
72
+ # @option opts [Array<String>] :deals_ids Deal ids linked to a file
73
+ # @return [FileData]
74
+ describe 'crm_files_post test' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ end
78
+ end
79
+
80
+ # unit tests for crm_notes_id_delete
81
+ # Delete Note by ID
82
+ # @param id Note ID to delete
83
+ # @param [Hash] opts the optional parameters
84
+ # @return [nil]
85
+ describe 'crm_notes_id_delete test' do
86
+ it 'should work' do
87
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
88
+ end
89
+ end
90
+
91
+ # unit tests for crm_notes_id_get
92
+ # Get one Note by ID
93
+ # @param id Note ID to get
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [Note]
96
+ describe 'crm_notes_id_get test' do
97
+ it 'should work' do
98
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
99
+ end
100
+ end
101
+
102
+ # unit tests for crm_notes_id_patch
103
+ # Update a note
104
+ # @param id Note ID to update
105
+ # @param body Note data to update a note
106
+ # @param [Hash] opts the optional parameters
107
+ # @return [Note]
108
+ describe 'crm_notes_id_patch test' do
109
+ it 'should work' do
110
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
111
+ end
112
+ end
113
+
114
+ # unit tests for crm_notes_post
115
+ # Create a new Note
116
+ # @param body Note data to create a note.
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [Note]
119
+ describe 'crm_notes_post test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
125
+ # unit tests for crm_tasks_id_delete
126
+ # Delete Task by id
127
+ # @param id
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [nil]
130
+ describe 'crm_tasks_id_delete test' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
136
+ # unit tests for crm_tasks_id_get
137
+ # Get one Task by ID
138
+ # @param id
139
+ # @param [Hash] opts the optional parameters
140
+ # @return [Task]
141
+ describe 'crm_tasks_id_get test' do
142
+ it 'should work' do
143
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
144
+ end
145
+ end
146
+
147
+ # unit tests for crm_tasks_id_patch
148
+ # Update partial existing task
149
+ # @param id
150
+ # @param body Updated task details.
151
+ # @param [Hash] opts the optional parameters
152
+ # @return [Task]
153
+ describe 'crm_tasks_id_patch test' do
154
+ it 'should work' do
155
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
156
+ end
157
+ end
158
+
159
+ # unit tests for crm_tasks_post
160
+ # Create a new Task
161
+ # @param body Task name.
162
+ # @param [Hash] opts the optional parameters
163
+ # @return [Task]
164
+ describe 'crm_tasks_post test' do
165
+ it 'should work' do
166
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
167
+ end
168
+ end
169
+
170
+ end
@@ -0,0 +1,64 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.19
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SibApiV3Sdk::InboundParsingApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'InboundParsingApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SibApiV3Sdk::InboundParsingApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of InboundParsingApi' do
30
+ it 'should create an instance of InboundParsingApi' do
31
+ expect(@instance).to be_instance_of(SibApiV3Sdk::InboundParsingApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for get_inbound_email_events
36
+ # Get the list of all the events for the received emails.
37
+ # This endpoint will show the list of all the events for the received emails.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [String] :sender Email address of the sender.
40
+ # @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.
41
+ # @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.
42
+ # @option opts [Integer] :limit Number of documents returned per page
43
+ # @option opts [Integer] :offset Index of the first document on the page
44
+ # @option opts [String] :sort Sort the results in the ascending/descending order of record creation
45
+ # @return [GetInboundEmailEvents]
46
+ describe 'get_inbound_email_events test' do
47
+ it 'should work' do
48
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
49
+ end
50
+ end
51
+
52
+ # unit tests for get_inbound_email_events_by_uuid
53
+ # Fetch all events history for one particular received email.
54
+ # This endpoint will show the list of all events history for one particular received email.
55
+ # @param uuid UUID to fetch events specific to recieved email
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [GetInboundEmailEventsByUuid]
58
+ describe 'get_inbound_email_events_by_uuid test' do
59
+ it 'should work' do
60
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
61
+ end
62
+ end
63
+
64
+ end
@@ -0,0 +1,108 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.19
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for SibApiV3Sdk::MasterAccountApi
17
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
18
+ # Please update as you see appropriate
19
+ describe 'MasterAccountApi' do
20
+ before do
21
+ # run before each test
22
+ @instance = SibApiV3Sdk::MasterAccountApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of MasterAccountApi' do
30
+ it 'should create an instance of MasterAccountApi' do
31
+ expect(@instance).to be_instance_of(SibApiV3Sdk::MasterAccountApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for corporate_master_account_get
36
+ # Get the details of requested master account
37
+ # This endpoint will provide the details of the master account.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [MasterDetailsResponse]
40
+ describe 'corporate_master_account_get test' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ # unit tests for corporate_sub_account_get
47
+ # Get the list of all the sub-accounts of the master account.
48
+ # This endpoint will provide the list all the sub-accounts of the master account.
49
+ # @param offset Page number of sub-accounts listing
50
+ # @param limit Number of sub-accounts to be displayed on each page
51
+ # @param [Hash] opts the optional parameters
52
+ # @return [SubAccountsResponse]
53
+ describe 'corporate_sub_account_get test' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ # unit tests for corporate_sub_account_id_get
60
+ # Get sub-account details
61
+ # This endpoint will provide the details of specified sub-account organization
62
+ # @param id Id of the sub-account organization
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [SubAccountDetailsResponse]
65
+ describe 'corporate_sub_account_id_get test' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ # unit tests for corporate_sub_account_id_plan_put
72
+ # Update sub-account plan
73
+ # This endpoint will update the sub-account plan
74
+ # @param id Id of the sub-account organization
75
+ # @param update_plan_details Values to update a sub-account plan
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [nil]
78
+ describe 'corporate_sub_account_id_plan_put test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ # unit tests for corporate_sub_account_post
85
+ # Create a new sub-account under a master account.
86
+ # This endpoint will create a new sub-account under a master account
87
+ # @param sub_account_create values to create new sub-account
88
+ # @param [Hash] opts the optional parameters
89
+ # @return [CreateModel]
90
+ describe 'corporate_sub_account_post test' do
91
+ it 'should work' do
92
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
93
+ end
94
+ end
95
+
96
+ # unit tests for corporate_sub_account_sso_token_post
97
+ # Generate SSO token to access Sendinblue
98
+ # This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced with actual token.
99
+ # @param sso_token_request Values to generate SSO token for sub-account
100
+ # @param [Hash] opts the optional parameters
101
+ # @return [GetSsoToken]
102
+ describe 'corporate_sub_account_sso_token_post test' do
103
+ it 'should work' do
104
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
105
+ end
106
+ end
107
+
108
+ end
@@ -92,6 +92,7 @@ describe 'TransactionalEmailsApi' do
92
92
 
93
93
  # unit tests for get_aggregated_smtp_report
94
94
  # Get your transactional email activity aggregated over a period of time
95
+ # This endpoint will show the aggregated stats for past 90 days by default if &#x60;startDate&#x60; and &#x60;endDate&#x60; OR &#x60;days&#x60; is not passed. The date range can not exceed 90 days
95
96
  # @param [Hash] opts the optional parameters
96
97
  # @option opts [String] :start_date Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate
97
98
  # @option opts [String] :end_date Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate
@@ -117,6 +118,7 @@ describe 'TransactionalEmailsApi' do
117
118
 
118
119
  # unit tests for get_email_event_report
119
120
  # Get all your transactional email activity (unaggregated events)
121
+ # This endpoint will show the aggregated stats for past 30 days by default if &#x60;startDate&#x60; and &#x60;endDate&#x60; OR &#x60;days&#x60; is not passed. The date range can not exceed 90 days
120
122
  # @param [Hash] opts the optional parameters
121
123
  # @option opts [Integer] :limit Number limitation for the result returned
122
124
  # @option opts [Integer] :offset Beginning point in the list to retrieve from.
@@ -224,19 +226,6 @@ describe 'TransactionalEmailsApi' do
224
226
  end
225
227
  end
226
228
 
227
- # unit tests for send_template
228
- # Send a template
229
- # This endpoint is deprecated. Prefer v3/smtp/email instead.
230
- # @param template_id Id of the template
231
- # @param send_email
232
- # @param [Hash] opts the optional parameters
233
- # @return [SendTemplateEmail]
234
- describe 'send_template test' do
235
- it 'should work' do
236
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
237
- end
238
- end
239
-
240
229
  # unit tests for send_test_template
241
230
  # Send a template to your test list
242
231
  # @param template_id Id of the template
@@ -0,0 +1,101 @@
1
+ =begin
2
+ #SendinBlue API
3
+
4
+ #SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
5
+
6
+ OpenAPI spec version: 3.0.0
7
+ Contact: contact@sendinblue.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.19
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for SibApiV3Sdk::Body1
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'Body1' do
21
+ before do
22
+ # run before each test
23
+ @instance = SibApiV3Sdk::Body1.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of Body1' do
31
+ it 'should create an instance of Body1' do
32
+ expect(@instance).to be_instance_of(SibApiV3Sdk::Body1)
33
+ end
34
+ end
35
+ describe 'test attribute "name"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "duration"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "task_type_id"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "date"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "notes"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "done"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "assign_to_id"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ describe 'test attribute "contacts_ids"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ describe 'test attribute "deals_ids"' do
84
+ it 'should work' do
85
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
86
+ end
87
+ end
88
+
89
+ describe 'test attribute "companies_ids"' do
90
+ it 'should work' do
91
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
92
+ end
93
+ end
94
+
95
+ describe 'test attribute "reminder"' do
96
+ it 'should work' do
97
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
98
+ end
99
+ end
100
+
101
+ end