brevo 2.0.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -111,6 +111,43 @@ describe 'EcommerceApi' do
|
|
111
111
|
end
|
112
112
|
end
|
113
113
|
|
114
|
+
# unit tests for ecommerce_attribution_metrics_conversion_source_conversion_source_id_get
|
115
|
+
# Get detailed attribution metrics for a single Brevo campaign
|
116
|
+
# @param conversion_source The Brevo campaign type for which data will be retrieved
|
117
|
+
# @param conversion_source_id The Brevo campaign id for which data will be retrieved
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [nil]
|
120
|
+
describe 'ecommerce_attribution_metrics_conversion_source_conversion_source_id_get test' do
|
121
|
+
it 'should work' do
|
122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# unit tests for ecommerce_attribution_metrics_get
|
127
|
+
# Get attribution metrics for one or more Brevo campaigns
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @option opts [Object] :period_from When getting metrics for a specific period, define the starting datetime in RFC3339 format
|
130
|
+
# @option opts [Object] :period_to When getting metrics for a specific period, define the end datetime in RFC3339 format
|
131
|
+
# @option opts [Object] :email_campaign_id The email campaign id(s) to get metrics for
|
132
|
+
# @return [nil]
|
133
|
+
describe 'ecommerce_attribution_metrics_get test' do
|
134
|
+
it 'should work' do
|
135
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# unit tests for ecommerce_attribution_products_conversion_source_conversion_source_id_get
|
140
|
+
# Get attributed product sales for a single Brevo campaign
|
141
|
+
# @param conversion_source The Brevo campaign type for which data will be retrieved
|
142
|
+
# @param conversion_source_id The Brevo campaign id for which data will be retrieved
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @return [nil]
|
145
|
+
describe 'ecommerce_attribution_products_conversion_source_conversion_source_id_get test' do
|
146
|
+
it 'should work' do
|
147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
|
114
151
|
# unit tests for get_categories
|
115
152
|
# Return all your categories
|
116
153
|
# @param [Hash] opts the optional parameters
|
@@ -119,6 +156,8 @@ describe 'EcommerceApi' do
|
|
119
156
|
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
120
157
|
# @option opts [Array<String>] :ids Filter by category ids
|
121
158
|
# @option opts [String] :name Filter by category name
|
159
|
+
# @option opts [String] :modified_since Filter (urlencoded) the categories modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
160
|
+
# @option opts [String] :created_since Filter (urlencoded) the categories created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
122
161
|
# @return [GetCategories]
|
123
162
|
describe 'get_categories test' do
|
124
163
|
it 'should work' do
|
@@ -137,6 +176,22 @@ describe 'EcommerceApi' do
|
|
137
176
|
end
|
138
177
|
end
|
139
178
|
|
179
|
+
# unit tests for get_orders
|
180
|
+
# Get order details
|
181
|
+
# Get all the orders
|
182
|
+
# @param [Hash] opts the optional parameters
|
183
|
+
# @option opts [Integer] :limit Number of documents per page
|
184
|
+
# @option opts [Integer] :offset Index of the first document in the page
|
185
|
+
# @option opts [String] :sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
|
186
|
+
# @option opts [String] :modified_since Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
187
|
+
# @option opts [String] :created_since Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
188
|
+
# @return [GetOrders]
|
189
|
+
describe 'get_orders test' do
|
190
|
+
it 'should work' do
|
191
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
140
195
|
# unit tests for get_product_info
|
141
196
|
# Get a product's details
|
142
197
|
# @param id Product ID
|
@@ -163,6 +218,8 @@ describe 'EcommerceApi' do
|
|
163
218
|
# @option opts [Float] :price_eq Price filter for products equals to particular amount
|
164
219
|
# @option opts [Float] :price_ne Price filter for products not equals to particular amount
|
165
220
|
# @option opts [Array<String>] :categories Filter by category ids
|
221
|
+
# @option opts [String] :modified_since Filter (urlencoded) the orders modified after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
222
|
+
# @option opts [String] :created_since Filter (urlencoded) the orders created after a given UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). **Prefer to pass your timezone in date-time format for accurate result.**
|
166
223
|
# @return [GetProducts]
|
167
224
|
describe 'get_products test' do
|
168
225
|
it 'should work' do
|
@@ -83,7 +83,6 @@ describe 'EmailCampaignsApi' do
|
|
83
83
|
# @param campaign_id Id of the campaign
|
84
84
|
# @param [Hash] opts the optional parameters
|
85
85
|
# @option opts [String] :statistics Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response.
|
86
|
-
# @option opts [String] :utm_value Get email campaign report on the basis of custom UTM Value.**You can use either campaignId or utmValue to fetch campaign report.To use utmValue filter pass campaignId as empty.**
|
87
86
|
# @return [GetEmailCampaign]
|
88
87
|
describe 'get_email_campaign test' do
|
89
88
|
it 'should work' do
|
@@ -0,0 +1,47 @@
|
|
1
|
+
=begin
|
2
|
+
#Brevo API
|
3
|
+
|
4
|
+
#Brevo 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/brevo **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@brevo.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 Brevo::EventsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'EventsApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Brevo::EventsApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of EventsApi' do
|
30
|
+
it 'should create an instance of EventsApi' do
|
31
|
+
expect(@instance).to be_instance_of(Brevo::EventsApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_event
|
36
|
+
# Create an event
|
37
|
+
# Create an event to track a contact's interaction.
|
38
|
+
# @param event
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'create_event test' 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
|
+
end
|
@@ -37,7 +37,7 @@ describe 'ExternalFeedsApi' do
|
|
37
37
|
# This endpoint will create an external feed.
|
38
38
|
# @param create_external_feed Values to create a feed
|
39
39
|
# @param [Hash] opts the optional parameters
|
40
|
-
# @return [
|
40
|
+
# @return [InlineResponse2015]
|
41
41
|
describe 'create_external_feed test' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -32,6 +32,68 @@ describe 'MasterAccountApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for corporate_group_id_delete
|
36
|
+
# Delete a group
|
37
|
+
# This endpoint allows you to delete a group of sub-organizations. When a group is deleted, the sub-organizations are no longer part of this group. The users associated with the group are no longer associated with the group once deleted.
|
38
|
+
# @param id Id of the group
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [nil]
|
41
|
+
describe 'corporate_group_id_delete test' 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
|
+
# unit tests for corporate_group_id_get
|
48
|
+
# GET a group details
|
49
|
+
# This endpoint allows you to retrieve a specific group’s information such as the list of sub-organizations and the user associated with the group.
|
50
|
+
# @param id Id of the group of sub-organization
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [CorporateGroupDetailsResponse]
|
53
|
+
describe 'corporate_group_id_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_group_id_put
|
60
|
+
# Update a group of sub-accounts
|
61
|
+
# This endpoint allows you to update a group of sub-accounts
|
62
|
+
# @param id Id of the group
|
63
|
+
# @param body Group details to be updated.
|
64
|
+
# @param [Hash] opts the optional parameters
|
65
|
+
# @return [nil]
|
66
|
+
describe 'corporate_group_id_put test' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# unit tests for corporate_group_post
|
73
|
+
# Create a new group of sub-accounts
|
74
|
+
# This endpoint allows to create a group of sub-accounts
|
75
|
+
# @param body Group details to be created.
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [InlineResponse201]
|
78
|
+
describe 'corporate_group_post 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_group_unlink_group_id_sub_accounts_put
|
85
|
+
# Delete sub-account from group
|
86
|
+
# This endpoint allows you to remove a sub-organization from a group.
|
87
|
+
# @param group_id Id of the group
|
88
|
+
# @param body List of sub-account ids
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [nil]
|
91
|
+
describe 'corporate_group_unlink_group_id_sub_accounts_put test' do
|
92
|
+
it 'should work' do
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
35
97
|
# unit tests for corporate_master_account_get
|
36
98
|
# Get the details of requested master account
|
37
99
|
# This endpoint will provide the details of the master account.
|
@@ -43,6 +105,18 @@ describe 'MasterAccountApi' do
|
|
43
105
|
end
|
44
106
|
end
|
45
107
|
|
108
|
+
# unit tests for corporate_sso_token_post
|
109
|
+
# Generate SSO token to access admin account
|
110
|
+
# This endpoint generates an SSO token to authenticate and access the admin account using the endpoint https://account-app.brevo.com/account/login/corporate/sso/[token], where [token] will be replaced by the actual token.
|
111
|
+
# @param sso_token_request_corporate User email of admin account
|
112
|
+
# @param [Hash] opts the optional parameters
|
113
|
+
# @return [GetSsoToken]
|
114
|
+
describe 'corporate_sso_token_post test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
46
120
|
# unit tests for corporate_sub_account_get
|
47
121
|
# Get the list of all the sub-accounts of the master account.
|
48
122
|
# This endpoint will provide the list all the sub-accounts of the master account.
|
@@ -130,7 +204,7 @@ describe 'MasterAccountApi' do
|
|
130
204
|
end
|
131
205
|
|
132
206
|
# unit tests for corporate_sub_account_sso_token_post
|
133
|
-
# Generate SSO token to access
|
207
|
+
# Generate SSO token to access sub-account
|
134
208
|
# This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.brevo.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token.
|
135
209
|
# @param sso_token_request Values to generate SSO token for sub-account
|
136
210
|
# @param [Hash] opts the optional parameters
|
@@ -141,6 +215,31 @@ describe 'MasterAccountApi' do
|
|
141
215
|
end
|
142
216
|
end
|
143
217
|
|
218
|
+
# unit tests for corporate_user_invitation_action_email_put
|
219
|
+
# Resend / cancel admin user invitation
|
220
|
+
# This endpoint will allow the user to: - Resend an admin user invitation - Cancel an admin user invitation
|
221
|
+
# @param action Action to be performed (cancel / resend)
|
222
|
+
# @param email Email address of the recipient
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @return [InlineResponse200]
|
225
|
+
describe 'corporate_user_invitation_action_email_put test' do
|
226
|
+
it 'should work' do
|
227
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
228
|
+
end
|
229
|
+
end
|
230
|
+
|
231
|
+
# unit tests for corporate_user_revoke_email_delete
|
232
|
+
# Revoke an admin user
|
233
|
+
# This endpoint allows to revoke/remove an invited member of your Admin account
|
234
|
+
# @param email Email of the invited user
|
235
|
+
# @param [Hash] opts the optional parameters
|
236
|
+
# @return [nil]
|
237
|
+
describe 'corporate_user_revoke_email_delete test' do
|
238
|
+
it 'should work' do
|
239
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
240
|
+
end
|
241
|
+
end
|
242
|
+
|
144
243
|
# unit tests for get_account_activity
|
145
244
|
# Get user activity logs
|
146
245
|
# @param [Hash] opts the optional parameters
|
@@ -155,4 +254,49 @@ describe 'MasterAccountApi' do
|
|
155
254
|
end
|
156
255
|
end
|
157
256
|
|
257
|
+
# unit tests for get_corporate_invited_users_list
|
258
|
+
# Get the list of all admin users
|
259
|
+
# This endpoint allows you to list all Admin users of your Admin account
|
260
|
+
# @param [Hash] opts the optional parameters
|
261
|
+
# @return [GetCorporateInvitedUsersList]
|
262
|
+
describe 'get_corporate_invited_users_list test' do
|
263
|
+
it 'should work' do
|
264
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# unit tests for get_corporate_user_permission
|
269
|
+
# Check admin user permissions
|
270
|
+
# @param email Email of the invited user
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [GetCorporateUserPermission]
|
273
|
+
describe 'get_corporate_user_permission test' do
|
274
|
+
it 'should work' do
|
275
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# unit tests for get_sub_account_groups
|
280
|
+
# Get the list of groups
|
281
|
+
# This endpoint allows you to list all groups created on your Admin account.
|
282
|
+
# @param [Hash] opts the optional parameters
|
283
|
+
# @return [Array<InlineResponse2001>]
|
284
|
+
describe 'get_sub_account_groups test' do
|
285
|
+
it 'should work' do
|
286
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
287
|
+
end
|
288
|
+
end
|
289
|
+
|
290
|
+
# unit tests for invite_admin_user
|
291
|
+
# Send invitation to an admin user
|
292
|
+
# `This endpoint allows you to invite a member to manage the Admin account Features and their respective permissions are as below: - `my_plan`: - \"all\" - `api`: - \"none\" - `user_management`: - \"all\" - `app_management` | Not available in ENTv2: - \"all\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited admin user.
|
293
|
+
# @param send_invitation Payload to send an invitation
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @return [InviteAdminUser]
|
296
|
+
describe 'invite_admin_user test' do
|
297
|
+
it 'should work' do
|
298
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
158
302
|
end
|
data/spec/api/tasks_api_spec.rb
CHANGED
@@ -38,7 +38,7 @@ describe 'TasksApi' do
|
|
38
38
|
# @option opts [String] :filter_type Filter by task type (ID)
|
39
39
|
# @option opts [String] :filter_status Filter by task status
|
40
40
|
# @option opts [String] :filter_date Filter by date
|
41
|
-
# @option opts [String] :filter_assign_to Filter by assignTo
|
41
|
+
# @option opts [String] :filter_assign_to Filter by the \"assignTo\" ID. You can utilize account emails for the \"assignTo\" attribute.
|
42
42
|
# @option opts [String] :filter_contacts Filter by contact ids
|
43
43
|
# @option opts [String] :filter_deals Filter by deals ids
|
44
44
|
# @option opts [String] :filter_companies Filter by companies ids
|
@@ -93,7 +93,7 @@ describe 'TasksApi' do
|
|
93
93
|
# Create a task
|
94
94
|
# @param body Task name.
|
95
95
|
# @param [Hash] opts the optional parameters
|
96
|
-
# @return [
|
96
|
+
# @return [InlineResponse2012]
|
97
97
|
describe 'crm_tasks_post test' do
|
98
98
|
it 'should work' do
|
99
99
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -304,12 +304,12 @@ describe 'TransactionalEmailsApi' do
|
|
304
304
|
end
|
305
305
|
end
|
306
306
|
|
307
|
-
# unit tests for
|
307
|
+
# unit tests for smtp_log_identifier_delete
|
308
308
|
# Delete an SMTP transactional log
|
309
|
-
# @param
|
309
|
+
# @param identifier MessageId or Email of the transactional log(s) to delete
|
310
310
|
# @param [Hash] opts the optional parameters
|
311
311
|
# @return [nil]
|
312
|
-
describe '
|
312
|
+
describe 'smtp_log_identifier_delete test' do
|
313
313
|
it 'should work' do
|
314
314
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
315
315
|
end
|
@@ -56,7 +56,7 @@ describe 'TransactionalWhatsAppApi' do
|
|
56
56
|
# This endpoint is used to send a WhatsApp message. <br/>(**The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Brevo platform to fetch the Template ID.**)
|
57
57
|
# @param send_whatsapp_message Values to send WhatsApp message
|
58
58
|
# @param [Hash] opts the optional parameters
|
59
|
-
# @return [
|
59
|
+
# @return [InlineResponse2014]
|
60
60
|
describe 'send_whatsapp_message test' do
|
61
61
|
it 'should work' do
|
62
62
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/user_api_spec.rb
CHANGED
@@ -32,6 +32,18 @@ describe 'UserApi' do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
+
# unit tests for edit_user_permission
|
36
|
+
# Update permission for a user
|
37
|
+
# `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" **Note**: - The privileges array remains the same as in the send invitation; the user simply needs to provide the permissions that need to be updated. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.
|
38
|
+
# @param update_permissions Values to update permissions for an invited user
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Inviteuser]
|
41
|
+
describe 'edit_user_permission test' 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
|
+
|
35
47
|
# unit tests for get_invited_users_list
|
36
48
|
# Get the list of all your users
|
37
49
|
# @param [Hash] opts the optional parameters
|
@@ -53,4 +65,39 @@ describe 'UserApi' do
|
|
53
65
|
end
|
54
66
|
end
|
55
67
|
|
68
|
+
# unit tests for inviteuser
|
69
|
+
# Send invitation to user
|
70
|
+
# `Feature` - A Feature represents a specific functionality like Email campaign, Deals, Calls, Automations, etc. on Brevo. While inviting a user, determine which feature you want to manage access to. You must specify the feature accurately to avoid errors. `Permission` - A Permission defines the level of access or control a user has over a specific feature. While inviting user, decide on the permission level required for the selected feature. Make sure the chosen permission is related to the selected feature. Features and their respective permissions are as below: - `email_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `sms_campaigns`: - \"create_edit_delete\" - \"send_schedule_suspend\" - `contacts`: - \"view\" - \"create_edit_delete\" - \"import\" - \"export\" - \"list_and_attributes\" - \"forms\" - `templates`: - \"create_edit_delete\" - \"activate_deactivate\" - `workflows`: - \"create_edit_delete\" - \"activate_deactivate_pause\" - \"settings\" - `facebook_ads`: - \"create_edit_delete\" - \"schedule_pause\" - `landing_pages`: - \"all\" - `transactional_emails`: - \"settings\" - \"logs\" - `smtp_api`: - \"smtp\" - \"api_keys\" - \"authorized_ips\" - `user_management`: - \"all\" - `sales_platform`: - \"manage_owned_deals_tasks_companies\" - \"manage_others_deals_tasks_companies\" - \"reports\" - \"settings\" - `phone`: - \"all\" - `conversations`: - \"access\" - \"assign\" - \"configure\" - `senders_domains_dedicated_ips`: - \"senders_management\" - \"domains_management\" - \"dedicated_ips_management\" - `push_notifications`: - \"view\" - \"create_edit_delete\" - \"send\" - \"settings\" **Note**: - If `all_features_access: false` then only privileges are required otherwise if `true` then it's assumed that all permissions will be there for the invited user. - The availability of feature and its permission depends on your current plan. Please select the features and permissions accordingly.
|
71
|
+
# @param send_invitation Values to create an invitation
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @return [Inviteuser]
|
74
|
+
describe 'inviteuser 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 put_revoke_user_permission
|
81
|
+
# Revoke user permission
|
82
|
+
# @param email Email of the invited user.
|
83
|
+
# @param [Hash] opts the optional parameters
|
84
|
+
# @return [PutRevokeUserPermission]
|
85
|
+
describe 'put_revoke_user_permission 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 putresendcancelinvitation
|
92
|
+
# Resend / Cancel invitation
|
93
|
+
# @param action action
|
94
|
+
# @param email Email of the invited user.
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [Putresendcancelinvitation]
|
97
|
+
describe 'putresendcancelinvitation test' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
56
103
|
end
|
@@ -55,8 +55,8 @@ describe 'WebhooksApi' do
|
|
55
55
|
end
|
56
56
|
|
57
57
|
# unit tests for export_webhooks_history
|
58
|
-
# Export all
|
59
|
-
# This endpoint will submit a request to get the history of webhooks in the CSV file. The link to download
|
58
|
+
# Export all webhook events
|
59
|
+
# This endpoint will submit a request to get the history of webhooks in the CSV file. The link to download the CSV file will be sent to the webhook that was provided in the notifyURL.
|
60
60
|
# @param export_webhook_history Values to submit for webhooks history
|
61
61
|
# @param [Hash] opts the optional parameters
|
62
62
|
# @return [CreatedProcessId]
|
@@ -109,6 +109,7 @@ describe 'WhatsAppCampaignsApi' do
|
|
109
109
|
# @option opts [Integer] :limit Number of documents per page
|
110
110
|
# @option opts [Integer] :offset Index of the first document in the page
|
111
111
|
# @option opts [String] :sort Sort the results in the ascending/descending order of record modification. Default order is **descending** if `sort` is not passed
|
112
|
+
# @option opts [String] :source source of the template
|
112
113
|
# @return [GetWATemplates]
|
113
114
|
describe 'get_whats_app_templates test' do
|
114
115
|
it 'should work' do
|
data/spec/models/body_10_spec.rb
CHANGED
@@ -32,25 +32,61 @@ describe 'Body10' do
|
|
32
32
|
expect(@instance).to be_instance_of(Brevo::Body10)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "name"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "duration"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "task_type_id"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
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
|
54
90
|
it 'should work' do
|
55
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
92
|
end
|
data/spec/models/body_11_spec.rb
CHANGED
@@ -32,10 +32,40 @@ describe 'Body11' do
|
|
32
32
|
expect(@instance).to be_instance_of(Brevo::Body11)
|
33
33
|
end
|
34
34
|
end
|
35
|
+
describe 'test attribute "visitor_id"' 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
|
+
|
35
41
|
describe 'test attribute "text"' do
|
36
42
|
it 'should work' do
|
37
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
44
|
end
|
39
45
|
end
|
40
46
|
|
47
|
+
describe 'test attribute "agent_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 "received_from"' 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 "agent_email"' 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 "agent_name"' 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
|
+
|
41
71
|
end
|
data/spec/models/body_12_spec.rb
CHANGED
@@ -32,25 +32,7 @@ describe 'Body12' do
|
|
32
32
|
expect(@instance).to be_instance_of(Brevo::Body12)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
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 "received_from"' 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 "agent_email"' 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 "agent_name"' do
|
35
|
+
describe 'test attribute "text"' do
|
54
36
|
it 'should work' do
|
55
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
38
|
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
=begin
|
2
|
+
#Brevo API
|
3
|
+
|
4
|
+
#Brevo 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/brevo **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@brevo.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 Brevo::Body13
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Body13' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = Brevo::Body13.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Body13' do
|
31
|
+
it 'should create an instance of Body13' do
|
32
|
+
expect(@instance).to be_instance_of(Brevo::Body13)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "visitor_id"' 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 "text"' 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 "agent_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 "group_id"' 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
|
+
end
|