brevo 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (263) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +56 -4
  3. data/docs/Body.md +2 -3
  4. data/docs/Body1.md +2 -3
  5. data/docs/Body10.md +10 -4
  6. data/docs/Body11.md +6 -1
  7. data/docs/Body12.md +1 -4
  8. data/docs/Body13.md +11 -0
  9. data/docs/Body14.md +8 -0
  10. data/docs/Body15.md +11 -0
  11. data/docs/Body2.md +1 -4
  12. data/docs/Body3.md +3 -2
  13. data/docs/Body4.md +3 -2
  14. data/docs/Body5.md +4 -4
  15. data/docs/Body6.md +2 -11
  16. data/docs/Body7.md +2 -10
  17. data/docs/Body8.md +4 -6
  18. data/docs/Body9.md +11 -1
  19. data/docs/CompaniesApi.md +8 -8
  20. data/docs/ContactsApi.md +14 -4
  21. data/docs/ConversationsApi.md +10 -10
  22. data/docs/ConversionSourceMetrics.md +12 -0
  23. data/docs/ConversionSourceProduct.md +15 -0
  24. data/docs/CorporateGroupDetailsResponse.md +10 -0
  25. data/docs/CorporateGroupDetailsResponseGroup.md +10 -0
  26. data/docs/CorporateGroupDetailsResponseSubaccounts.md +10 -0
  27. data/docs/CorporateGroupDetailsResponseUsers.md +10 -0
  28. data/docs/CouponsApi.md +12 -9
  29. data/docs/CreateContact.md +1 -1
  30. data/docs/CreateCouponCollection.md +5 -2
  31. data/docs/CreateDomainModel.md +1 -0
  32. data/docs/CreateDomainModelDnsRecords.md +1 -0
  33. data/docs/CreateWebhook.md +3 -0
  34. data/docs/CreateWhatsAppTemplate.md +1 -0
  35. data/docs/DealsApi.md +10 -10
  36. data/docs/EcommerceApi.md +261 -2
  37. data/docs/EmailCampaignsApi.md +1 -3
  38. data/docs/Event.md +12 -0
  39. data/docs/EventIdentifiers.md +12 -0
  40. data/docs/EventsApi.md +67 -0
  41. data/docs/ExportWebhooksHistory.md +2 -1
  42. data/docs/ExternalFeedsApi.md +2 -2
  43. data/docs/GetContactDetails.md +1 -1
  44. data/docs/GetCorporateInvitedUsersList.md +8 -0
  45. data/docs/GetCorporateInvitedUsersListFeatureAccess.md +11 -0
  46. data/docs/GetCorporateInvitedUsersListGroups.md +9 -0
  47. data/docs/GetCorporateInvitedUsersListUsers.md +12 -0
  48. data/docs/GetCorporateUserPermission.md +11 -0
  49. data/docs/GetCorporateUserPermissionFeatureAccess.md +11 -0
  50. data/docs/GetCorporateUserPermissionGroups.md +9 -0
  51. data/docs/GetCouponCollection.md +9 -6
  52. data/docs/GetExtendedContactDetails.md +1 -1
  53. data/docs/GetOrders.md +9 -0
  54. data/docs/GetWebhook.md +3 -0
  55. data/docs/GetWebhookAuth.md +9 -0
  56. data/docs/GetWebhookHeaders.md +9 -0
  57. data/docs/InlineResponse200.md +1 -1
  58. data/docs/InlineResponse2001.md +2 -3
  59. data/docs/InlineResponse2002.md +8 -0
  60. data/docs/InlineResponse2003.md +10 -0
  61. data/docs/InlineResponse201.md +1 -1
  62. data/docs/InlineResponse2011.md +1 -1
  63. data/docs/InlineResponse2012.md +1 -1
  64. data/docs/InlineResponse2013.md +1 -1
  65. data/docs/InlineResponse2014.md +1 -1
  66. data/docs/InlineResponse2015.md +8 -0
  67. data/docs/InviteAdminUser.md +11 -0
  68. data/docs/InviteAdminUserPrivileges.md +9 -0
  69. data/docs/Inviteuser.md +10 -0
  70. data/docs/InviteuserPrivileges.md +9 -0
  71. data/docs/MasterAccountApi.md +828 -117
  72. data/docs/MasterDetailsResponsePlanInfoFeatures.md +2 -0
  73. data/docs/OrderBatch.md +1 -0
  74. data/docs/PutRevokeUserPermission.md +8 -0
  75. data/docs/Putresendcancelinvitation.md +8 -0
  76. data/docs/RequestContactImport.md +1 -0
  77. data/docs/SendSmtpEmail.md +18 -19
  78. data/docs/SendSmtpEmailMessageVersions.md +2 -0
  79. data/docs/SendWhatsappMessage.md +1 -0
  80. data/docs/SsoTokenRequestCorporate.md +8 -0
  81. data/docs/SubAccountAppsToggleRequest.md +1 -1
  82. data/docs/SubAccountUpdatePlanRequestFeatures.md +2 -2
  83. data/docs/TasksApi.md +8 -8
  84. data/docs/TransactionalEmailsApi.md +7 -7
  85. data/docs/TransactionalWhatsAppApi.md +2 -2
  86. data/docs/UpdateContact.md +1 -1
  87. data/docs/UpdateCouponCollection.md +4 -1
  88. data/docs/UpdateWebhook.md +3 -0
  89. data/docs/UserApi.md +239 -0
  90. data/docs/WebhooksApi.md +4 -4
  91. data/docs/WhatsAppCampaignsApi.md +3 -1
  92. data/lib/brevo/api/companies_api.rb +3 -3
  93. data/lib/brevo/api/contacts_api.rb +14 -2
  94. data/lib/brevo/api/conversations_api.rb +2 -2
  95. data/lib/brevo/api/coupons_api.rb +15 -16
  96. data/lib/brevo/api/deals_api.rb +5 -5
  97. data/lib/brevo/api/ecommerce_api.rb +250 -0
  98. data/lib/brevo/api/email_campaigns_api.rb +0 -3
  99. data/lib/brevo/api/events_api.rb +86 -0
  100. data/lib/brevo/api/external_feeds_api.rb +3 -3
  101. data/lib/brevo/api/master_account_api.rb +652 -4
  102. data/lib/brevo/api/tasks_api.rb +5 -5
  103. data/lib/brevo/api/transactional_emails_api.rb +11 -11
  104. data/lib/brevo/api/transactional_whats_app_api.rb +3 -3
  105. data/lib/brevo/api/user_api.rb +222 -0
  106. data/lib/brevo/api/webhooks_api.rb +4 -4
  107. data/lib/brevo/api/whats_app_campaigns_api.rb +6 -0
  108. data/lib/brevo/models/body.rb +20 -28
  109. data/lib/brevo/models/body_1.rb +22 -25
  110. data/lib/brevo/models/body_10.rb +95 -39
  111. data/lib/brevo/models/body_11.rb +60 -5
  112. data/lib/brevo/models/body_12.rb +13 -38
  113. data/lib/brevo/models/body_13.rb +225 -0
  114. data/lib/brevo/models/body_14.rb +190 -0
  115. data/lib/brevo/models/body_15.rb +215 -0
  116. data/lib/brevo/models/body_2.rb +14 -45
  117. data/lib/brevo/models/body_3.rb +16 -6
  118. data/lib/brevo/models/body_4.rb +16 -6
  119. data/lib/brevo/models/body_5.rb +19 -19
  120. data/lib/brevo/models/body_6.rb +9 -129
  121. data/lib/brevo/models/body_7.rb +9 -95
  122. data/lib/brevo/models/body_8.rb +37 -59
  123. data/lib/brevo/models/body_9.rb +141 -11
  124. data/lib/brevo/models/conversion_source_metrics.rb +279 -0
  125. data/lib/brevo/models/conversion_source_product.rb +252 -0
  126. data/lib/brevo/models/corporate_group_details_response.rb +206 -0
  127. data/lib/brevo/models/corporate_group_details_response_group.rb +205 -0
  128. data/lib/brevo/models/corporate_group_details_response_subaccounts.rb +205 -0
  129. data/lib/brevo/models/corporate_group_details_response_users.rb +205 -0
  130. data/lib/brevo/models/create_contact.rb +1 -1
  131. data/lib/brevo/models/create_coupon_collection.rb +37 -7
  132. data/lib/brevo/models/create_domain_model.rb +11 -1
  133. data/lib/brevo/models/create_domain_model_dns_records.rb +13 -4
  134. data/lib/brevo/models/create_webhook.rb +35 -4
  135. data/lib/brevo/models/create_whats_app_template.rb +28 -6
  136. data/lib/brevo/models/event.rb +234 -0
  137. data/lib/brevo/models/event_identifiers.rb +236 -0
  138. data/lib/brevo/models/export_webhooks_history.rb +31 -4
  139. data/lib/brevo/models/get_contact_details.rb +0 -5
  140. data/lib/brevo/models/get_corporate_invited_users_list.rb +187 -0
  141. data/lib/brevo/models/get_corporate_invited_users_list_feature_access.rb +224 -0
  142. data/lib/brevo/models/get_corporate_invited_users_list_groups.rb +196 -0
  143. data/lib/brevo/models/get_corporate_invited_users_list_users.rb +248 -0
  144. data/lib/brevo/models/get_corporate_user_permission.rb +236 -0
  145. data/lib/brevo/models/get_corporate_user_permission_feature_access.rb +224 -0
  146. data/lib/brevo/models/get_corporate_user_permission_groups.rb +196 -0
  147. data/lib/brevo/models/get_coupon_collection.rb +40 -10
  148. data/lib/brevo/models/get_extended_contact_details.rb +0 -5
  149. data/lib/brevo/models/get_orders.rb +196 -0
  150. data/lib/brevo/models/get_webhook.rb +35 -4
  151. data/lib/brevo/models/get_webhook_auth.rb +196 -0
  152. data/lib/brevo/models/get_webhook_headers.rb +195 -0
  153. data/lib/brevo/models/inline_response_200.rb +7 -14
  154. data/lib/brevo/models/inline_response_200_1.rb +9 -34
  155. data/lib/brevo/models/inline_response_200_2.rb +191 -0
  156. data/lib/brevo/models/inline_response_200_3.rb +215 -0
  157. data/lib/brevo/models/inline_response_201.rb +0 -7
  158. data/lib/brevo/models/inline_response_201_1.rb +2 -2
  159. data/lib/brevo/models/inline_response_201_2.rb +2 -1
  160. data/lib/brevo/models/inline_response_201_3.rb +11 -11
  161. data/lib/brevo/models/inline_response_201_4.rb +11 -11
  162. data/lib/brevo/models/inline_response_201_5.rb +190 -0
  163. data/lib/brevo/models/invite_admin_user.rb +233 -0
  164. data/lib/brevo/models/invite_admin_user_privileges.rb +232 -0
  165. data/lib/brevo/models/inviteuser.rb +221 -0
  166. data/lib/brevo/models/inviteuser_privileges.rb +232 -0
  167. data/lib/brevo/models/master_details_response_plan_info_features.rb +21 -1
  168. data/lib/brevo/models/order_batch.rb +16 -4
  169. data/lib/brevo/models/put_revoke_user_permission.rb +191 -0
  170. data/lib/brevo/models/putresendcancelinvitation.rb +191 -0
  171. data/lib/brevo/models/request_contact_import.rb +13 -1
  172. data/lib/brevo/models/send_smtp_email_message_versions.rb +24 -4
  173. data/lib/brevo/models/send_whatsapp_message.rb +11 -1
  174. data/lib/brevo/models/sso_token_request_corporate.rb +190 -0
  175. data/lib/brevo/models/sub_account_apps_toggle_request.rb +1 -1
  176. data/lib/brevo/models/sub_account_details_response_plan_info_features_inbox.rb +1 -1
  177. data/lib/brevo/models/sub_account_details_response_plan_info_features_landing_page.rb +1 -1
  178. data/lib/brevo/models/sub_account_update_plan_request_features.rb +2 -2
  179. data/lib/brevo/models/update_contact.rb +1 -1
  180. data/lib/brevo/models/update_coupon_collection.rb +34 -9
  181. data/lib/brevo/models/update_webhook.rb +35 -4
  182. data/lib/brevo/version.rb +1 -1
  183. data/lib/brevo.rb +32 -0
  184. data/spec/api/companies_api_spec.rb +1 -1
  185. data/spec/api/contacts_api_spec.rb +5 -1
  186. data/spec/api/conversations_api_spec.rb +1 -1
  187. data/spec/api/coupons_api_spec.rb +4 -3
  188. data/spec/api/deals_api_spec.rb +2 -2
  189. data/spec/api/ecommerce_api_spec.rb +57 -0
  190. data/spec/api/email_campaigns_api_spec.rb +0 -1
  191. data/spec/api/events_api_spec.rb +47 -0
  192. data/spec/api/external_feeds_api_spec.rb +1 -1
  193. data/spec/api/master_account_api_spec.rb +145 -1
  194. data/spec/api/tasks_api_spec.rb +2 -2
  195. data/spec/api/transactional_emails_api_spec.rb +3 -3
  196. data/spec/api/transactional_whats_app_api_spec.rb +1 -1
  197. data/spec/api/user_api_spec.rb +47 -0
  198. data/spec/api/webhooks_api_spec.rb +2 -2
  199. data/spec/api/whats_app_campaigns_api_spec.rb +1 -0
  200. data/spec/models/body_10_spec.rb +40 -4
  201. data/spec/models/body_11_spec.rb +30 -0
  202. data/spec/models/body_12_spec.rb +1 -19
  203. data/spec/models/body_13_spec.rb +59 -0
  204. data/spec/models/body_14_spec.rb +41 -0
  205. data/spec/models/body_15_spec.rb +59 -0
  206. data/spec/models/body_1_spec.rb +2 -8
  207. data/spec/models/body_2_spec.rb +1 -19
  208. data/spec/models/body_3_spec.rb +6 -0
  209. data/spec/models/body_4_spec.rb +6 -0
  210. data/spec/models/body_5_spec.rb +2 -2
  211. data/spec/models/body_6_spec.rb +1 -55
  212. data/spec/models/body_7_spec.rb +1 -49
  213. data/spec/models/body_8_spec.rb +4 -16
  214. data/spec/models/body_9_spec.rb +61 -1
  215. data/spec/models/body_spec.rb +2 -8
  216. data/spec/models/conversion_source_metrics_spec.rb +69 -0
  217. data/spec/models/conversion_source_product_spec.rb +83 -0
  218. data/spec/models/corporate_group_details_response_group_spec.rb +53 -0
  219. data/spec/models/corporate_group_details_response_spec.rb +53 -0
  220. data/spec/models/corporate_group_details_response_subaccounts_spec.rb +53 -0
  221. data/spec/models/corporate_group_details_response_users_spec.rb +53 -0
  222. data/spec/models/create_coupon_collection_spec.rb +18 -0
  223. data/spec/models/create_domain_model_dns_records_spec.rb +6 -0
  224. data/spec/models/create_domain_model_spec.rb +6 -0
  225. data/spec/models/create_webhook_spec.rb +18 -0
  226. data/spec/models/create_whats_app_template_spec.rb +11 -1
  227. data/spec/models/event_identifiers_spec.rb +65 -0
  228. data/spec/models/event_spec.rb +65 -0
  229. data/spec/models/export_webhooks_history_spec.rb +11 -1
  230. data/spec/models/get_corporate_invited_users_list_feature_access_spec.rb +59 -0
  231. data/spec/models/get_corporate_invited_users_list_groups_spec.rb +47 -0
  232. data/spec/models/get_corporate_invited_users_list_spec.rb +41 -0
  233. data/spec/models/get_corporate_invited_users_list_users_spec.rb +65 -0
  234. data/spec/models/get_corporate_user_permission_feature_access_spec.rb +59 -0
  235. data/spec/models/get_corporate_user_permission_groups_spec.rb +47 -0
  236. data/spec/models/get_corporate_user_permission_spec.rb +59 -0
  237. data/spec/models/get_coupon_collection_spec.rb +18 -0
  238. data/spec/models/get_orders_spec.rb +47 -0
  239. data/spec/models/get_webhook_auth_spec.rb +47 -0
  240. data/spec/models/get_webhook_headers_spec.rb +47 -0
  241. data/spec/models/get_webhook_spec.rb +18 -0
  242. data/spec/models/inline_response_200_1_spec.rb +1 -7
  243. data/spec/models/inline_response_200_2_spec.rb +41 -0
  244. data/spec/models/inline_response_200_3_spec.rb +53 -0
  245. data/spec/models/inline_response_200_spec.rb +1 -1
  246. data/spec/models/inline_response_201_3_spec.rb +1 -1
  247. data/spec/models/inline_response_201_4_spec.rb +1 -1
  248. data/spec/models/inline_response_201_5_spec.rb +41 -0
  249. data/spec/models/invite_admin_user_privileges_spec.rb +55 -0
  250. data/spec/models/invite_admin_user_spec.rb +59 -0
  251. data/spec/models/inviteuser_privileges_spec.rb +55 -0
  252. data/spec/models/inviteuser_spec.rb +53 -0
  253. data/spec/models/master_details_response_plan_info_features_spec.rb +12 -0
  254. data/spec/models/order_batch_spec.rb +6 -0
  255. data/spec/models/put_revoke_user_permission_spec.rb +41 -0
  256. data/spec/models/putresendcancelinvitation_spec.rb +41 -0
  257. data/spec/models/request_contact_import_spec.rb +6 -0
  258. data/spec/models/send_smtp_email_message_versions_spec.rb +12 -0
  259. data/spec/models/send_whatsapp_message_spec.rb +6 -0
  260. data/spec/models/sso_token_request_corporate_spec.rb +41 -0
  261. data/spec/models/update_coupon_collection_spec.rb +18 -0
  262. data/spec/models/update_webhook_spec.rb +18 -0
  263. metadata +152 -24
@@ -41,7 +41,7 @@ end
41
41
 
42
42
  api_instance = Brevo::ConversationsApi.new
43
43
 
44
- body = Brevo::Body12.new # Body12 | Agent fields.
44
+ body = Brevo::Body15.new # Body15 | Agent fields.
45
45
 
46
46
 
47
47
  begin
@@ -56,7 +56,7 @@ end
56
56
 
57
57
  Name | Type | Description | Notes
58
58
  ------------- | ------------- | ------------- | -------------
59
- **body** | [**Body12**](Body12.md)| Agent fields. |
59
+ **body** | [**Body15**](Body15.md)| Agent fields. |
60
60
 
61
61
  ### Return type
62
62
 
@@ -217,7 +217,7 @@ api_instance = Brevo::ConversationsApi.new
217
217
  id = 'id_example' # String | ID of the message
218
218
 
219
219
  opts = {
220
- body: Brevo::Body9.new # Body9 |
220
+ body: Brevo::Body12.new # Body12 |
221
221
  }
222
222
 
223
223
  begin
@@ -234,7 +234,7 @@ end
234
234
  Name | Type | Description | Notes
235
235
  ------------- | ------------- | ------------- | -------------
236
236
  **id** | **String**| ID of the message |
237
- **body** | [**Body9**](Body9.md)| | [optional]
237
+ **body** | [**Body12**](Body12.md)| | [optional]
238
238
 
239
239
  ### Return type
240
240
 
@@ -275,7 +275,7 @@ end
275
275
 
276
276
  api_instance = Brevo::ConversationsApi.new
277
277
 
278
- body = Brevo::Body8.new # Body8 | Message fields.
278
+ body = Brevo::Body11.new # Body11 | Message fields.
279
279
 
280
280
 
281
281
  begin
@@ -291,7 +291,7 @@ end
291
291
 
292
292
  Name | Type | Description | Notes
293
293
  ------------- | ------------- | ------------- | -------------
294
- **body** | [**Body8**](Body8.md)| Message fields. |
294
+ **body** | [**Body11**](Body11.md)| Message fields. |
295
295
 
296
296
  ### Return type
297
297
 
@@ -447,7 +447,7 @@ api_instance = Brevo::ConversationsApi.new
447
447
 
448
448
  id = 'id_example' # String | ID of the message
449
449
 
450
- body = Brevo::Body11.new # Body11 |
450
+ body = Brevo::Body14.new # Body14 |
451
451
 
452
452
 
453
453
  begin
@@ -464,7 +464,7 @@ end
464
464
  Name | Type | Description | Notes
465
465
  ------------- | ------------- | ------------- | -------------
466
466
  **id** | **String**| ID of the message |
467
- **body** | [**Body11**](Body11.md)| |
467
+ **body** | [**Body14**](Body14.md)| |
468
468
 
469
469
  ### Return type
470
470
 
@@ -507,7 +507,7 @@ end
507
507
 
508
508
  api_instance = Brevo::ConversationsApi.new
509
509
 
510
- body = Brevo::Body10.new # Body10 |
510
+ body = Brevo::Body13.new # Body13 |
511
511
 
512
512
 
513
513
  begin
@@ -523,7 +523,7 @@ end
523
523
 
524
524
  Name | Type | Description | Notes
525
525
  ------------- | ------------- | ------------- | -------------
526
- **body** | [**Body10**](Body10.md)| |
526
+ **body** | [**Body13**](Body13.md)| |
527
527
 
528
528
  ### Return type
529
529
 
@@ -0,0 +1,12 @@
1
+ # Brevo::ConversionSourceMetrics
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Float** | |
7
+ **conversion_source** | **String** | |
8
+ **orders_count** | **Float** | |
9
+ **revenue** | **Float** | |
10
+ **average_basket** | **Float** | |
11
+
12
+
@@ -0,0 +1,15 @@
1
+ # Brevo::ConversionSourceProduct
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | |
7
+ **name** | **String** | | [optional]
8
+ **sku** | **String** | | [optional]
9
+ **price** | **Float** | | [optional]
10
+ **url** | **String** | | [optional]
11
+ **image_url** | **String** | | [optional]
12
+ **orders_count** | **Integer** | | [optional]
13
+ **revenue** | **Float** | | [optional]
14
+
15
+
@@ -0,0 +1,10 @@
1
+ # Brevo::CorporateGroupDetailsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **group** | [**CorporateGroupDetailsResponseGroup**](CorporateGroupDetailsResponseGroup.md) | | [optional]
7
+ **sub_accounts** | [**Array<CorporateGroupDetailsResponseSubaccounts>**](CorporateGroupDetailsResponseSubaccounts.md) | | [optional]
8
+ **users** | [**Array<CorporateGroupDetailsResponseUsers>**](CorporateGroupDetailsResponseUsers.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # Brevo::CorporateGroupDetailsResponseGroup
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Group id | [optional]
7
+ **group_name** | **String** | Name of the group | [optional]
8
+ **created_at** | **String** | Group creation date | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # Brevo::CorporateGroupDetailsResponseSubaccounts
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **Integer** | Id of the sub-account organzation | [optional]
7
+ **company_name** | **String** | Name of the sub-account organzation | [optional]
8
+ **created_at** | **String** | Creation date of the sub-account organzation | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # Brevo::CorporateGroupDetailsResponseUsers
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **email** | **String** | Email address of the user | [optional]
7
+ **last_name** | **String** | Last name of the user | [optional]
8
+ **first_name** | **String** | First name of the user | [optional]
9
+
10
+
data/docs/CouponsApi.md CHANGED
@@ -12,7 +12,7 @@ Method | HTTP request | Description
12
12
 
13
13
 
14
14
  # **create_coupon_collection**
15
- > InlineResponse2012 create_coupon_collection(create_coupon_collection)
15
+ > InlineResponse2013 create_coupon_collection(create_coupon_collection)
16
16
 
17
17
  Create а coupon collection
18
18
 
@@ -55,7 +55,7 @@ Name | Type | Description | Notes
55
55
 
56
56
  ### Return type
57
57
 
58
- [**InlineResponse2012**](InlineResponse2012.md)
58
+ [**InlineResponse2013**](InlineResponse2013.md)
59
59
 
60
60
  ### Authorization
61
61
 
@@ -208,7 +208,8 @@ api_instance = Brevo::CouponsApi.new
208
208
  opts = {
209
209
  limit: 50, # Integer | Number of documents returned per page
210
210
  offset: 0, # Integer | Index of the first document on the page
211
- sort: 'desc' # String | Sort the results by creation time in ascending/descending order
211
+ sort: 'desc', # String | Sort the results by creation time in ascending/descending order
212
+ sort_by: nil # Object | The field used to sort coupon collections
212
213
  }
213
214
 
214
215
  begin
@@ -227,6 +228,7 @@ Name | Type | Description | Notes
227
228
  **limit** | **Integer**| Number of documents returned per page | [optional] [default to 50]
228
229
  **offset** | **Integer**| Index of the first document on the page | [optional] [default to 0]
229
230
  **sort** | **String**| Sort the results by creation time in ascending/descending order | [optional] [default to desc]
231
+ **sort_by** | [**Object**](.md)| The field used to sort coupon collections | [optional]
230
232
 
231
233
  ### Return type
232
234
 
@@ -244,7 +246,7 @@ Name | Type | Description | Notes
244
246
 
245
247
 
246
248
  # **update_coupon_collection**
247
- > InlineResponse2001 update_coupon_collection(id, update_coupon_collection)
249
+ > InlineResponse2003 update_coupon_collection(id, opts)
248
250
 
249
251
  Update a coupon collection by id
250
252
 
@@ -269,12 +271,13 @@ api_instance = Brevo::CouponsApi.new
269
271
 
270
272
  id = 'id_example' # String | Id of the collection to update
271
273
 
272
- update_coupon_collection = Brevo::UpdateCouponCollection.new # UpdateCouponCollection | Values to update the coupon collection
273
-
274
+ opts = {
275
+ update_coupon_collection: Brevo::UpdateCouponCollection.new # UpdateCouponCollection | Values to update the coupon collection
276
+ }
274
277
 
275
278
  begin
276
279
  #Update a coupon collection by id
277
- result = api_instance.update_coupon_collection(id, update_coupon_collection)
280
+ result = api_instance.update_coupon_collection(id, opts)
278
281
  p result
279
282
  rescue Brevo::ApiError => e
280
283
  puts "Exception when calling CouponsApi->update_coupon_collection: #{e}"
@@ -286,11 +289,11 @@ end
286
289
  Name | Type | Description | Notes
287
290
  ------------- | ------------- | ------------- | -------------
288
291
  **id** | **String**| Id of the collection to update |
289
- **update_coupon_collection** | [**UpdateCouponCollection**](UpdateCouponCollection.md)| Values to update the coupon collection |
292
+ **update_coupon_collection** | [**UpdateCouponCollection**](UpdateCouponCollection.md)| Values to update the coupon collection | [optional]
290
293
 
291
294
  ### Return type
292
295
 
293
- [**InlineResponse2001**](InlineResponse2001.md)
296
+ [**InlineResponse2003**](InlineResponse2003.md)
294
297
 
295
298
  ### Authorization
296
299
 
@@ -5,7 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **email** | **String** | Email address of the user. Mandatory if \"SMS\" field is not passed in \"attributes\" parameter. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} | [optional]
7
7
  **ext_id** | **String** | Pass your own Id to create a contact. | [optional]
8
- **attributes** | **Object** | Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. These attributes must be present in your Brevo account. For eg. {\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"} | [optional]
8
+ **attributes** | **Object** | Pass the set of attributes and their values. The attribute's parameter should be passed in capital letter while creating a contact. Values that don't match the attribute type (e.g. text or string in a date attribute) will be ignored.These attributes must be present in your Brevo account. For eg. {\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"} | [optional]
9
9
  **email_blacklisted** | **BOOLEAN** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional]
10
10
  **sms_blacklisted** | **BOOLEAN** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional]
11
11
  **list_ids** | **Array<Integer>** | Ids of the lists to add the contact to | [optional]
@@ -3,7 +3,10 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **name** | **Object** | Name of the collection with no white spaces between words |
7
- **default_coupon** | **Object** | A default coupon to be used in case there are no coupons left |
6
+ **name** | **String** | Name of the coupons collection |
7
+ **default_coupon** | **String** | Default coupons collection name |
8
+ **expiration_date** | **DateTime** | Specify an expiration date for the coupon collection in RFC3339 format. Use null to remove the expiration date. | [optional]
9
+ **remaining_days_alert** | **Integer** | Send a notification alert (email) when the remaining days until the expiration date are equal or fall bellow this number. Use null to disable alerts. | [optional]
10
+ **remaining_coupons_alert** | **Integer** | Send a notification alert (email) when the remaining coupons count is equal or fall bellow this number. Use null to disable alerts. | [optional]
8
11
 
9
12
 
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **id** | **Integer** | ID of the Domain created |
7
7
  **domain_name** | **String** | Domain | [optional]
8
+ **domain_provider** | **String** | Domain Provider | [optional]
8
9
  **message** | **String** | Success message | [optional]
9
10
  **dns_records** | [**CreateDomainModelDnsRecords**](CreateDomainModelDnsRecords.md) | | [optional]
10
11
 
@@ -5,5 +5,6 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **dkim_record** | [**CreateDomainModelDnsRecordsDkimRecord**](CreateDomainModelDnsRecordsDkimRecord.md) | | [optional]
7
7
  **brevo_code** | [**CreateDomainModelDnsRecordsDkimRecord**](CreateDomainModelDnsRecordsDkimRecord.md) | | [optional]
8
+ **dmarc_record** | [**CreateDomainModelDnsRecordsDkimRecord**](CreateDomainModelDnsRecordsDkimRecord.md) | | [optional]
8
9
 
9
10
 
@@ -8,5 +8,8 @@ Name | Type | Description | Notes
8
8
  **events** | **Array<String>** | - Events triggering the webhook. Possible values for **Transactional** type webhook: #### `sent` OR `request`, `delivered`, `hardBounce`, `softBounce`, `blocked`, `spam`, `invalid`, `deferred`, `click`, `opened`, `uniqueOpened` and `unsubscribed` - Possible values for **Marketing** type webhook: #### `spam`, `opened`, `click`, `hardBounce`, `softBounce`, `unsubscribed`, `listAddition` & `delivered` - Possible values for **Inbound** type webhook: #### `inboundEmailProcessed` |
9
9
  **type** | **String** | Type of the webhook | [optional] [default to 'transactional']
10
10
  **domain** | **String** | Inbound domain of webhook, required in case of event type `inbound` | [optional]
11
+ **batched** | **BOOLEAN** | To send batched webhooks | [optional]
12
+ **auth** | [**GetWebhookAuth**](GetWebhookAuth.md) | | [optional]
13
+ **headers** | [**Array<GetWebhookHeaders>**](GetWebhookHeaders.md) | Custom headers to be send with webhooks | [optional]
11
14
 
12
15
 
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **media_url** | **String** | Absolute url of the media file **(no local file)** for the header. **Use this field in you want to add media in Template header and headerText is empty.** Allowed extensions for media files are: #### jpeg | png | mp4 | pdf | [optional]
10
10
  **body_text** | **String** | Body of the template. **Maximum allowed characters are 1024** |
11
11
  **header_text** | **String** | Text content of the header in the template. **Maximum allowed characters are 45** **Use this field to add text content in template header and if mediaUrl is empty** | [optional]
12
+ **source** | **String** | source of the template | [optional]
12
13
 
13
14
 
data/docs/DealsApi.md CHANGED
@@ -92,7 +92,7 @@ end
92
92
  api_instance = Brevo::DealsApi.new
93
93
 
94
94
  opts = {
95
- filters_attributes_deal_name: 'filters_attributes_deal_name_example', # String | Filter by attributes. If you have filter for owner on your side please send it as `filters[attributes.deal_owner]`.\"
95
+ filters_attributes_deal_name: 'filters_attributes_deal_name_example', # String | Filter by attributes. If you have a filter for the owner on your end, please send it as filters[attributes.deal_owner] and utilize the account email for the filtering.
96
96
  filters_linked_companies_ids: 'filters_linked_companies_ids_example', # String | Filter by linked companies ids
97
97
  filters_linked_contacts_ids: 'filters_linked_contacts_ids_example', # String | Filter by linked companies ids
98
98
  offset: 789, # Integer | Index of the first document of the page
@@ -114,7 +114,7 @@ end
114
114
 
115
115
  Name | Type | Description | Notes
116
116
  ------------- | ------------- | ------------- | -------------
117
- **filters_attributes_deal_name** | **String**| Filter by attributes. If you have filter for owner on your side please send it as `filters[attributes.deal_owner]`.\" | [optional]
117
+ **filters_attributes_deal_name** | **String**| Filter by attributes. If you have a filter for the owner on your end, please send it as filters[attributes.deal_owner] and utilize the account email for the filtering. | [optional]
118
118
  **filters_linked_companies_ids** | **String**| Filter by linked companies ids | [optional]
119
119
  **filters_linked_contacts_ids** | **String**| Filter by linked companies ids | [optional]
120
120
  **offset** | **Integer**| Index of the first document of the page | [optional]
@@ -276,7 +276,7 @@ api_instance = Brevo::DealsApi.new
276
276
 
277
277
  id = 'id_example' # String |
278
278
 
279
- body = Brevo::Body4.new # Body4 | Updated deal details.
279
+ body = Brevo::Body7.new # Body7 | Updated deal details.
280
280
 
281
281
 
282
282
  begin
@@ -292,7 +292,7 @@ end
292
292
  Name | Type | Description | Notes
293
293
  ------------- | ------------- | ------------- | -------------
294
294
  **id** | **String**| |
295
- **body** | [**Body4**](Body4.md)| Updated deal details. |
295
+ **body** | [**Body7**](Body7.md)| Updated deal details. |
296
296
 
297
297
  ### Return type
298
298
 
@@ -335,7 +335,7 @@ api_instance = Brevo::DealsApi.new
335
335
 
336
336
  id = 'id_example' # String |
337
337
 
338
- body = Brevo::Body5.new # Body5 | Linked / Unlinked contacts and companies ids.
338
+ body = Brevo::Body8.new # Body8 | Linked / Unlinked contacts and companies ids.
339
339
 
340
340
 
341
341
  begin
@@ -351,7 +351,7 @@ end
351
351
  Name | Type | Description | Notes
352
352
  ------------- | ------------- | ------------- | -------------
353
353
  **id** | **String**| |
354
- **body** | [**Body5**](Body5.md)| Linked / Unlinked contacts and companies ids. |
354
+ **body** | [**Body8**](Body8.md)| Linked / Unlinked contacts and companies ids. |
355
355
 
356
356
  ### Return type
357
357
 
@@ -369,7 +369,7 @@ nil (empty response body)
369
369
 
370
370
 
371
371
  # **crm_deals_post**
372
- > InlineResponse201 crm_deals_post(body)
372
+ > InlineResponse2011 crm_deals_post(body)
373
373
 
374
374
  Create a deal
375
375
 
@@ -392,7 +392,7 @@ end
392
392
 
393
393
  api_instance = Brevo::DealsApi.new
394
394
 
395
- body = Brevo::Body3.new # Body3 | Deal create data.
395
+ body = Brevo::Body6.new # Body6 | Deal create data.
396
396
 
397
397
 
398
398
  begin
@@ -408,11 +408,11 @@ end
408
408
 
409
409
  Name | Type | Description | Notes
410
410
  ------------- | ------------- | ------------- | -------------
411
- **body** | [**Body3**](Body3.md)| Deal create data. |
411
+ **body** | [**Body6**](Body6.md)| Deal create data. |
412
412
 
413
413
  ### Return type
414
414
 
415
- [**InlineResponse201**](InlineResponse201.md)
415
+ [**InlineResponse2011**](InlineResponse2011.md)
416
416
 
417
417
  ### Authorization
418
418