brevo 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +56 -4
- data/docs/Body.md +2 -3
- data/docs/Body1.md +2 -3
- data/docs/Body10.md +10 -4
- data/docs/Body11.md +6 -1
- data/docs/Body12.md +1 -4
- data/docs/Body13.md +11 -0
- data/docs/Body14.md +8 -0
- data/docs/Body15.md +11 -0
- data/docs/Body2.md +1 -4
- data/docs/Body3.md +3 -2
- data/docs/Body4.md +3 -2
- data/docs/Body5.md +4 -4
- data/docs/Body6.md +2 -11
- data/docs/Body7.md +2 -10
- data/docs/Body8.md +4 -6
- data/docs/Body9.md +11 -1
- data/docs/CompaniesApi.md +8 -8
- data/docs/ContactsApi.md +14 -4
- data/docs/ConversationsApi.md +10 -10
- data/docs/ConversionSourceMetrics.md +12 -0
- data/docs/ConversionSourceProduct.md +15 -0
- data/docs/CorporateGroupDetailsResponse.md +10 -0
- data/docs/CorporateGroupDetailsResponseGroup.md +10 -0
- data/docs/CorporateGroupDetailsResponseSubaccounts.md +10 -0
- data/docs/CorporateGroupDetailsResponseUsers.md +10 -0
- data/docs/CouponsApi.md +12 -9
- data/docs/CreateContact.md +1 -1
- data/docs/CreateCouponCollection.md +5 -2
- data/docs/CreateDomainModel.md +1 -0
- data/docs/CreateDomainModelDnsRecords.md +1 -0
- data/docs/CreateWebhook.md +3 -0
- data/docs/CreateWhatsAppTemplate.md +1 -0
- data/docs/DealsApi.md +10 -10
- data/docs/EcommerceApi.md +261 -2
- data/docs/EmailCampaignsApi.md +1 -3
- data/docs/Event.md +12 -0
- data/docs/EventIdentifiers.md +12 -0
- data/docs/EventsApi.md +67 -0
- data/docs/ExportWebhooksHistory.md +2 -1
- data/docs/ExternalFeedsApi.md +2 -2
- data/docs/GetContactDetails.md +1 -1
- data/docs/GetCorporateInvitedUsersList.md +8 -0
- data/docs/GetCorporateInvitedUsersListFeatureAccess.md +11 -0
- data/docs/GetCorporateInvitedUsersListGroups.md +9 -0
- data/docs/GetCorporateInvitedUsersListUsers.md +12 -0
- data/docs/GetCorporateUserPermission.md +11 -0
- data/docs/GetCorporateUserPermissionFeatureAccess.md +11 -0
- data/docs/GetCorporateUserPermissionGroups.md +9 -0
- data/docs/GetCouponCollection.md +9 -6
- data/docs/GetExtendedContactDetails.md +1 -1
- data/docs/GetOrders.md +9 -0
- data/docs/GetWebhook.md +3 -0
- data/docs/GetWebhookAuth.md +9 -0
- data/docs/GetWebhookHeaders.md +9 -0
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +2 -3
- data/docs/InlineResponse2002.md +8 -0
- data/docs/InlineResponse2003.md +10 -0
- data/docs/InlineResponse201.md +1 -1
- data/docs/InlineResponse2011.md +1 -1
- data/docs/InlineResponse2012.md +1 -1
- data/docs/InlineResponse2013.md +1 -1
- data/docs/InlineResponse2014.md +1 -1
- data/docs/InlineResponse2015.md +8 -0
- data/docs/InviteAdminUser.md +11 -0
- data/docs/InviteAdminUserPrivileges.md +9 -0
- data/docs/Inviteuser.md +10 -0
- data/docs/InviteuserPrivileges.md +9 -0
- data/docs/MasterAccountApi.md +828 -117
- data/docs/MasterDetailsResponsePlanInfoFeatures.md +2 -0
- data/docs/OrderBatch.md +1 -0
- data/docs/PutRevokeUserPermission.md +8 -0
- data/docs/Putresendcancelinvitation.md +8 -0
- data/docs/RequestContactImport.md +1 -0
- data/docs/SendSmtpEmail.md +18 -19
- data/docs/SendSmtpEmailMessageVersions.md +2 -0
- data/docs/SendWhatsappMessage.md +1 -0
- data/docs/SsoTokenRequestCorporate.md +8 -0
- data/docs/SubAccountAppsToggleRequest.md +1 -1
- data/docs/SubAccountUpdatePlanRequestFeatures.md +2 -2
- data/docs/TasksApi.md +8 -8
- data/docs/TransactionalEmailsApi.md +7 -7
- data/docs/TransactionalWhatsAppApi.md +2 -2
- data/docs/UpdateContact.md +1 -1
- data/docs/UpdateCouponCollection.md +4 -1
- data/docs/UpdateWebhook.md +3 -0
- data/docs/UserApi.md +239 -0
- data/docs/WebhooksApi.md +4 -4
- data/docs/WhatsAppCampaignsApi.md +3 -1
- data/lib/brevo/api/companies_api.rb +3 -3
- data/lib/brevo/api/contacts_api.rb +14 -2
- data/lib/brevo/api/conversations_api.rb +2 -2
- data/lib/brevo/api/coupons_api.rb +15 -16
- data/lib/brevo/api/deals_api.rb +5 -5
- data/lib/brevo/api/ecommerce_api.rb +250 -0
- data/lib/brevo/api/email_campaigns_api.rb +0 -3
- data/lib/brevo/api/events_api.rb +86 -0
- data/lib/brevo/api/external_feeds_api.rb +3 -3
- data/lib/brevo/api/master_account_api.rb +652 -4
- data/lib/brevo/api/tasks_api.rb +5 -5
- data/lib/brevo/api/transactional_emails_api.rb +11 -11
- data/lib/brevo/api/transactional_whats_app_api.rb +3 -3
- data/lib/brevo/api/user_api.rb +222 -0
- data/lib/brevo/api/webhooks_api.rb +4 -4
- data/lib/brevo/api/whats_app_campaigns_api.rb +6 -0
- data/lib/brevo/models/body.rb +20 -28
- data/lib/brevo/models/body_1.rb +22 -25
- data/lib/brevo/models/body_10.rb +95 -39
- data/lib/brevo/models/body_11.rb +60 -5
- data/lib/brevo/models/body_12.rb +13 -38
- data/lib/brevo/models/body_13.rb +225 -0
- data/lib/brevo/models/body_14.rb +190 -0
- data/lib/brevo/models/body_15.rb +215 -0
- data/lib/brevo/models/body_2.rb +14 -45
- data/lib/brevo/models/body_3.rb +16 -6
- data/lib/brevo/models/body_4.rb +16 -6
- data/lib/brevo/models/body_5.rb +19 -19
- data/lib/brevo/models/body_6.rb +9 -129
- data/lib/brevo/models/body_7.rb +9 -95
- data/lib/brevo/models/body_8.rb +37 -59
- data/lib/brevo/models/body_9.rb +141 -11
- data/lib/brevo/models/conversion_source_metrics.rb +279 -0
- data/lib/brevo/models/conversion_source_product.rb +252 -0
- data/lib/brevo/models/corporate_group_details_response.rb +206 -0
- data/lib/brevo/models/corporate_group_details_response_group.rb +205 -0
- data/lib/brevo/models/corporate_group_details_response_subaccounts.rb +205 -0
- data/lib/brevo/models/corporate_group_details_response_users.rb +205 -0
- data/lib/brevo/models/create_contact.rb +1 -1
- data/lib/brevo/models/create_coupon_collection.rb +37 -7
- data/lib/brevo/models/create_domain_model.rb +11 -1
- data/lib/brevo/models/create_domain_model_dns_records.rb +13 -4
- data/lib/brevo/models/create_webhook.rb +35 -4
- data/lib/brevo/models/create_whats_app_template.rb +28 -6
- data/lib/brevo/models/event.rb +234 -0
- data/lib/brevo/models/event_identifiers.rb +236 -0
- data/lib/brevo/models/export_webhooks_history.rb +31 -4
- data/lib/brevo/models/get_contact_details.rb +0 -5
- data/lib/brevo/models/get_corporate_invited_users_list.rb +187 -0
- data/lib/brevo/models/get_corporate_invited_users_list_feature_access.rb +224 -0
- data/lib/brevo/models/get_corporate_invited_users_list_groups.rb +196 -0
- data/lib/brevo/models/get_corporate_invited_users_list_users.rb +248 -0
- data/lib/brevo/models/get_corporate_user_permission.rb +236 -0
- data/lib/brevo/models/get_corporate_user_permission_feature_access.rb +224 -0
- data/lib/brevo/models/get_corporate_user_permission_groups.rb +196 -0
- data/lib/brevo/models/get_coupon_collection.rb +40 -10
- data/lib/brevo/models/get_extended_contact_details.rb +0 -5
- data/lib/brevo/models/get_orders.rb +196 -0
- data/lib/brevo/models/get_webhook.rb +35 -4
- data/lib/brevo/models/get_webhook_auth.rb +196 -0
- data/lib/brevo/models/get_webhook_headers.rb +195 -0
- data/lib/brevo/models/inline_response_200.rb +7 -14
- data/lib/brevo/models/inline_response_200_1.rb +9 -34
- data/lib/brevo/models/inline_response_200_2.rb +191 -0
- data/lib/brevo/models/inline_response_200_3.rb +215 -0
- data/lib/brevo/models/inline_response_201.rb +0 -7
- data/lib/brevo/models/inline_response_201_1.rb +2 -2
- data/lib/brevo/models/inline_response_201_2.rb +2 -1
- data/lib/brevo/models/inline_response_201_3.rb +11 -11
- data/lib/brevo/models/inline_response_201_4.rb +11 -11
- data/lib/brevo/models/inline_response_201_5.rb +190 -0
- data/lib/brevo/models/invite_admin_user.rb +233 -0
- data/lib/brevo/models/invite_admin_user_privileges.rb +232 -0
- data/lib/brevo/models/inviteuser.rb +221 -0
- data/lib/brevo/models/inviteuser_privileges.rb +232 -0
- data/lib/brevo/models/master_details_response_plan_info_features.rb +21 -1
- data/lib/brevo/models/order_batch.rb +16 -4
- data/lib/brevo/models/put_revoke_user_permission.rb +191 -0
- data/lib/brevo/models/putresendcancelinvitation.rb +191 -0
- data/lib/brevo/models/request_contact_import.rb +13 -1
- data/lib/brevo/models/send_smtp_email_message_versions.rb +24 -4
- data/lib/brevo/models/send_whatsapp_message.rb +11 -1
- data/lib/brevo/models/sso_token_request_corporate.rb +190 -0
- data/lib/brevo/models/sub_account_apps_toggle_request.rb +1 -1
- data/lib/brevo/models/sub_account_details_response_plan_info_features_inbox.rb +1 -1
- data/lib/brevo/models/sub_account_details_response_plan_info_features_landing_page.rb +1 -1
- data/lib/brevo/models/sub_account_update_plan_request_features.rb +2 -2
- data/lib/brevo/models/update_contact.rb +1 -1
- data/lib/brevo/models/update_coupon_collection.rb +34 -9
- data/lib/brevo/models/update_webhook.rb +35 -4
- data/lib/brevo/version.rb +1 -1
- data/lib/brevo.rb +32 -0
- data/spec/api/companies_api_spec.rb +1 -1
- data/spec/api/contacts_api_spec.rb +5 -1
- data/spec/api/conversations_api_spec.rb +1 -1
- data/spec/api/coupons_api_spec.rb +4 -3
- data/spec/api/deals_api_spec.rb +2 -2
- data/spec/api/ecommerce_api_spec.rb +57 -0
- data/spec/api/email_campaigns_api_spec.rb +0 -1
- data/spec/api/events_api_spec.rb +47 -0
- data/spec/api/external_feeds_api_spec.rb +1 -1
- data/spec/api/master_account_api_spec.rb +145 -1
- data/spec/api/tasks_api_spec.rb +2 -2
- data/spec/api/transactional_emails_api_spec.rb +3 -3
- data/spec/api/transactional_whats_app_api_spec.rb +1 -1
- data/spec/api/user_api_spec.rb +47 -0
- data/spec/api/webhooks_api_spec.rb +2 -2
- data/spec/api/whats_app_campaigns_api_spec.rb +1 -0
- data/spec/models/body_10_spec.rb +40 -4
- data/spec/models/body_11_spec.rb +30 -0
- data/spec/models/body_12_spec.rb +1 -19
- data/spec/models/body_13_spec.rb +59 -0
- data/spec/models/body_14_spec.rb +41 -0
- data/spec/models/body_15_spec.rb +59 -0
- data/spec/models/body_1_spec.rb +2 -8
- data/spec/models/body_2_spec.rb +1 -19
- data/spec/models/body_3_spec.rb +6 -0
- data/spec/models/body_4_spec.rb +6 -0
- data/spec/models/body_5_spec.rb +2 -2
- data/spec/models/body_6_spec.rb +1 -55
- data/spec/models/body_7_spec.rb +1 -49
- data/spec/models/body_8_spec.rb +4 -16
- data/spec/models/body_9_spec.rb +61 -1
- data/spec/models/body_spec.rb +2 -8
- data/spec/models/conversion_source_metrics_spec.rb +69 -0
- data/spec/models/conversion_source_product_spec.rb +83 -0
- data/spec/models/corporate_group_details_response_group_spec.rb +53 -0
- data/spec/models/corporate_group_details_response_spec.rb +53 -0
- data/spec/models/corporate_group_details_response_subaccounts_spec.rb +53 -0
- data/spec/models/corporate_group_details_response_users_spec.rb +53 -0
- data/spec/models/create_coupon_collection_spec.rb +18 -0
- data/spec/models/create_domain_model_dns_records_spec.rb +6 -0
- data/spec/models/create_domain_model_spec.rb +6 -0
- data/spec/models/create_webhook_spec.rb +18 -0
- data/spec/models/create_whats_app_template_spec.rb +11 -1
- data/spec/models/event_identifiers_spec.rb +65 -0
- data/spec/models/event_spec.rb +65 -0
- data/spec/models/export_webhooks_history_spec.rb +11 -1
- data/spec/models/get_corporate_invited_users_list_feature_access_spec.rb +59 -0
- data/spec/models/get_corporate_invited_users_list_groups_spec.rb +47 -0
- data/spec/models/get_corporate_invited_users_list_spec.rb +41 -0
- data/spec/models/get_corporate_invited_users_list_users_spec.rb +65 -0
- data/spec/models/get_corporate_user_permission_feature_access_spec.rb +59 -0
- data/spec/models/get_corporate_user_permission_groups_spec.rb +47 -0
- data/spec/models/get_corporate_user_permission_spec.rb +59 -0
- data/spec/models/get_coupon_collection_spec.rb +18 -0
- data/spec/models/get_orders_spec.rb +47 -0
- data/spec/models/get_webhook_auth_spec.rb +47 -0
- data/spec/models/get_webhook_headers_spec.rb +47 -0
- data/spec/models/get_webhook_spec.rb +18 -0
- data/spec/models/inline_response_200_1_spec.rb +1 -7
- data/spec/models/inline_response_200_2_spec.rb +41 -0
- data/spec/models/inline_response_200_3_spec.rb +53 -0
- data/spec/models/inline_response_200_spec.rb +1 -1
- data/spec/models/inline_response_201_3_spec.rb +1 -1
- data/spec/models/inline_response_201_4_spec.rb +1 -1
- data/spec/models/inline_response_201_5_spec.rb +41 -0
- data/spec/models/invite_admin_user_privileges_spec.rb +55 -0
- data/spec/models/invite_admin_user_spec.rb +59 -0
- data/spec/models/inviteuser_privileges_spec.rb +55 -0
- data/spec/models/inviteuser_spec.rb +53 -0
- data/spec/models/master_details_response_plan_info_features_spec.rb +12 -0
- data/spec/models/order_batch_spec.rb +6 -0
- data/spec/models/put_revoke_user_permission_spec.rb +41 -0
- data/spec/models/putresendcancelinvitation_spec.rb +41 -0
- data/spec/models/request_contact_import_spec.rb +6 -0
- data/spec/models/send_smtp_email_message_versions_spec.rb +12 -0
- data/spec/models/send_whatsapp_message_spec.rb +6 -0
- data/spec/models/sso_token_request_corporate_spec.rb +41 -0
- data/spec/models/update_coupon_collection_spec.rb +18 -0
- data/spec/models/update_webhook_spec.rb +18 -0
- metadata +152 -24
data/docs/ConversationsApi.md
CHANGED
|
@@ -41,7 +41,7 @@ end
|
|
|
41
41
|
|
|
42
42
|
api_instance = Brevo::ConversationsApi.new
|
|
43
43
|
|
|
44
|
-
body = Brevo::
|
|
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** | [**
|
|
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::
|
|
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** | [**
|
|
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::
|
|
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** | [**
|
|
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::
|
|
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** | [**
|
|
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::
|
|
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** | [**
|
|
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
|
-
>
|
|
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
|
-
[**
|
|
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
|
-
>
|
|
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
|
-
|
|
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,
|
|
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
|
-
[**
|
|
296
|
+
[**InlineResponse2003**](InlineResponse2003.md)
|
|
294
297
|
|
|
295
298
|
### Authorization
|
|
296
299
|
|
data/docs/CreateContact.md
CHANGED
|
@@ -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** | **
|
|
7
|
-
**default_coupon** | **
|
|
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
|
|
data/docs/CreateDomainModel.md
CHANGED
|
@@ -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
|
|
data/docs/CreateWebhook.md
CHANGED
|
@@ -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
|
|
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
|
|
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::
|
|
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** | [**
|
|
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::
|
|
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** | [**
|
|
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
|
-
>
|
|
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::
|
|
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** | [**
|
|
411
|
+
**body** | [**Body6**](Body6.md)| Deal create data. |
|
|
412
412
|
|
|
413
413
|
### Return type
|
|
414
414
|
|
|
415
|
-
[**
|
|
415
|
+
[**InlineResponse2011**](InlineResponse2011.md)
|
|
416
416
|
|
|
417
417
|
### Authorization
|
|
418
418
|
|