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/lib/brevo/models/body_5.rb
CHANGED
|
@@ -14,25 +14,25 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Brevo
|
|
16
16
|
class Body5
|
|
17
|
-
# Contact ids for contacts to be linked with
|
|
17
|
+
# Contact ids for contacts to be linked with company
|
|
18
18
|
attr_accessor :link_contact_ids
|
|
19
19
|
|
|
20
|
-
# Contact ids for contacts to be unlinked from
|
|
20
|
+
# Contact ids for contacts to be unlinked from company
|
|
21
21
|
attr_accessor :unlink_contact_ids
|
|
22
22
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# Deals ids for deals to be linked with company
|
|
24
|
+
attr_accessor :link_deals_ids
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
26
|
+
# Deals ids for deals to be unlinked from company
|
|
27
|
+
attr_accessor :unlink_deals_ids
|
|
28
28
|
|
|
29
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
30
|
def self.attribute_map
|
|
31
31
|
{
|
|
32
32
|
:'link_contact_ids' => :'linkContactIds',
|
|
33
33
|
:'unlink_contact_ids' => :'unlinkContactIds',
|
|
34
|
-
:'
|
|
35
|
-
:'
|
|
34
|
+
:'link_deals_ids' => :'linkDealsIds',
|
|
35
|
+
:'unlink_deals_ids' => :'unlinkDealsIds'
|
|
36
36
|
}
|
|
37
37
|
end
|
|
38
38
|
|
|
@@ -41,8 +41,8 @@ module Brevo
|
|
|
41
41
|
{
|
|
42
42
|
:'link_contact_ids' => :'Array<Integer>',
|
|
43
43
|
:'unlink_contact_ids' => :'Array<Integer>',
|
|
44
|
-
:'
|
|
45
|
-
:'
|
|
44
|
+
:'link_deals_ids' => :'Array<String>',
|
|
45
|
+
:'unlink_deals_ids' => :'Array<String>'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -66,15 +66,15 @@ module Brevo
|
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
|
|
69
|
-
if attributes.has_key?(:'
|
|
70
|
-
if (value = attributes[:'
|
|
71
|
-
self.
|
|
69
|
+
if attributes.has_key?(:'linkDealsIds')
|
|
70
|
+
if (value = attributes[:'linkDealsIds']).is_a?(Array)
|
|
71
|
+
self.link_deals_ids = value
|
|
72
72
|
end
|
|
73
73
|
end
|
|
74
74
|
|
|
75
|
-
if attributes.has_key?(:'
|
|
76
|
-
if (value = attributes[:'
|
|
77
|
-
self.
|
|
75
|
+
if attributes.has_key?(:'unlinkDealsIds')
|
|
76
|
+
if (value = attributes[:'unlinkDealsIds']).is_a?(Array)
|
|
77
|
+
self.unlink_deals_ids = value
|
|
78
78
|
end
|
|
79
79
|
end
|
|
80
80
|
end
|
|
@@ -99,8 +99,8 @@ module Brevo
|
|
|
99
99
|
self.class == o.class &&
|
|
100
100
|
link_contact_ids == o.link_contact_ids &&
|
|
101
101
|
unlink_contact_ids == o.unlink_contact_ids &&
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
link_deals_ids == o.link_deals_ids &&
|
|
103
|
+
unlink_deals_ids == o.unlink_deals_ids
|
|
104
104
|
end
|
|
105
105
|
|
|
106
106
|
# @see the `==` method
|
|
@@ -112,7 +112,7 @@ module Brevo
|
|
|
112
112
|
# Calculates hash code according to all attributes.
|
|
113
113
|
# @return [Fixnum] Hash code
|
|
114
114
|
def hash
|
|
115
|
-
[link_contact_ids, unlink_contact_ids,
|
|
115
|
+
[link_contact_ids, unlink_contact_ids, link_deals_ids, unlink_deals_ids].hash
|
|
116
116
|
end
|
|
117
117
|
|
|
118
118
|
# Builds the object from hash
|
data/lib/brevo/models/body_6.rb
CHANGED
|
@@ -14,52 +14,17 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Brevo
|
|
16
16
|
class Body6
|
|
17
|
-
# Name of
|
|
17
|
+
# Name of deal
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
# Id for type of task e.g Call / Email / Meeting etc.
|
|
24
|
-
attr_accessor :task_type_id
|
|
25
|
-
|
|
26
|
-
# Task due date and time
|
|
27
|
-
attr_accessor :date
|
|
28
|
-
|
|
29
|
-
# Notes added to a task
|
|
30
|
-
attr_accessor :notes
|
|
31
|
-
|
|
32
|
-
# Task marked as done
|
|
33
|
-
attr_accessor :done
|
|
34
|
-
|
|
35
|
-
# User id to whom task is assigned
|
|
36
|
-
attr_accessor :assign_to_id
|
|
37
|
-
|
|
38
|
-
# Contact ids for contacts linked to this task
|
|
39
|
-
attr_accessor :contacts_ids
|
|
40
|
-
|
|
41
|
-
# Deal ids for deals a task is linked to
|
|
42
|
-
attr_accessor :deals_ids
|
|
43
|
-
|
|
44
|
-
# Companies ids for companies a task is linked to
|
|
45
|
-
attr_accessor :companies_ids
|
|
46
|
-
|
|
47
|
-
attr_accessor :reminder
|
|
20
|
+
# Attributes for deal creation To assign owner of a Deal you can send attributes.deal_owner and utilize the account email or ID. If you want to create a deal on a specific pipeline and stage you can use the following attributes `pipeline` and `deal_stage`. Pipeline and deal_stage are ids you can fetch using this endpoint `/crm/pipeline/details/{pipelineID}`
|
|
21
|
+
attr_accessor :attributes
|
|
48
22
|
|
|
49
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
24
|
def self.attribute_map
|
|
51
25
|
{
|
|
52
26
|
:'name' => :'name',
|
|
53
|
-
:'
|
|
54
|
-
:'task_type_id' => :'taskTypeId',
|
|
55
|
-
:'date' => :'date',
|
|
56
|
-
:'notes' => :'notes',
|
|
57
|
-
:'done' => :'done',
|
|
58
|
-
:'assign_to_id' => :'assignToId',
|
|
59
|
-
:'contacts_ids' => :'contactsIds',
|
|
60
|
-
:'deals_ids' => :'dealsIds',
|
|
61
|
-
:'companies_ids' => :'companiesIds',
|
|
62
|
-
:'reminder' => :'reminder'
|
|
27
|
+
:'attributes' => :'attributes'
|
|
63
28
|
}
|
|
64
29
|
end
|
|
65
30
|
|
|
@@ -67,16 +32,7 @@ module Brevo
|
|
|
67
32
|
def self.swagger_types
|
|
68
33
|
{
|
|
69
34
|
:'name' => :'String',
|
|
70
|
-
:'
|
|
71
|
-
:'task_type_id' => :'String',
|
|
72
|
-
:'date' => :'DateTime',
|
|
73
|
-
:'notes' => :'String',
|
|
74
|
-
:'done' => :'BOOLEAN',
|
|
75
|
-
:'assign_to_id' => :'String',
|
|
76
|
-
:'contacts_ids' => :'Array<Integer>',
|
|
77
|
-
:'deals_ids' => :'Array<String>',
|
|
78
|
-
:'companies_ids' => :'Array<String>',
|
|
79
|
-
:'reminder' => :'TaskReminder'
|
|
35
|
+
:'attributes' => :'Object'
|
|
80
36
|
}
|
|
81
37
|
end
|
|
82
38
|
|
|
@@ -92,50 +48,8 @@ module Brevo
|
|
|
92
48
|
self.name = attributes[:'name']
|
|
93
49
|
end
|
|
94
50
|
|
|
95
|
-
if attributes.has_key?(:'
|
|
96
|
-
self.
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.has_key?(:'taskTypeId')
|
|
100
|
-
self.task_type_id = attributes[:'taskTypeId']
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.has_key?(:'date')
|
|
104
|
-
self.date = attributes[:'date']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if attributes.has_key?(:'notes')
|
|
108
|
-
self.notes = attributes[:'notes']
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
if attributes.has_key?(:'done')
|
|
112
|
-
self.done = attributes[:'done']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.has_key?(:'assignToId')
|
|
116
|
-
self.assign_to_id = attributes[:'assignToId']
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
if attributes.has_key?(:'contactsIds')
|
|
120
|
-
if (value = attributes[:'contactsIds']).is_a?(Array)
|
|
121
|
-
self.contacts_ids = value
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
|
|
125
|
-
if attributes.has_key?(:'dealsIds')
|
|
126
|
-
if (value = attributes[:'dealsIds']).is_a?(Array)
|
|
127
|
-
self.deals_ids = value
|
|
128
|
-
end
|
|
129
|
-
end
|
|
130
|
-
|
|
131
|
-
if attributes.has_key?(:'companiesIds')
|
|
132
|
-
if (value = attributes[:'companiesIds']).is_a?(Array)
|
|
133
|
-
self.companies_ids = value
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
if attributes.has_key?(:'reminder')
|
|
138
|
-
self.reminder = attributes[:'reminder']
|
|
51
|
+
if attributes.has_key?(:'attributes')
|
|
52
|
+
self.attributes = attributes[:'attributes']
|
|
139
53
|
end
|
|
140
54
|
end
|
|
141
55
|
|
|
@@ -147,18 +61,6 @@ module Brevo
|
|
|
147
61
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
148
62
|
end
|
|
149
63
|
|
|
150
|
-
if !@duration.nil? && @duration < 0
|
|
151
|
-
invalid_properties.push('invalid value for "duration", must be greater than or equal to 0.')
|
|
152
|
-
end
|
|
153
|
-
|
|
154
|
-
if @task_type_id.nil?
|
|
155
|
-
invalid_properties.push('invalid value for "task_type_id", task_type_id cannot be nil.')
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
if @date.nil?
|
|
159
|
-
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
|
160
|
-
end
|
|
161
|
-
|
|
162
64
|
invalid_properties
|
|
163
65
|
end
|
|
164
66
|
|
|
@@ -166,38 +68,16 @@ module Brevo
|
|
|
166
68
|
# @return true if the model is valid
|
|
167
69
|
def valid?
|
|
168
70
|
return false if @name.nil?
|
|
169
|
-
return false if !@duration.nil? && @duration < 0
|
|
170
|
-
return false if @task_type_id.nil?
|
|
171
|
-
return false if @date.nil?
|
|
172
71
|
true
|
|
173
72
|
end
|
|
174
73
|
|
|
175
|
-
# Custom attribute writer method with validation
|
|
176
|
-
# @param [Object] duration Value to be assigned
|
|
177
|
-
def duration=(duration)
|
|
178
|
-
if !duration.nil? && duration < 0
|
|
179
|
-
fail ArgumentError, 'invalid value for "duration", must be greater than or equal to 0.'
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
@duration = duration
|
|
183
|
-
end
|
|
184
|
-
|
|
185
74
|
# Checks equality by comparing each attribute.
|
|
186
75
|
# @param [Object] Object to be compared
|
|
187
76
|
def ==(o)
|
|
188
77
|
return true if self.equal?(o)
|
|
189
78
|
self.class == o.class &&
|
|
190
79
|
name == o.name &&
|
|
191
|
-
|
|
192
|
-
task_type_id == o.task_type_id &&
|
|
193
|
-
date == o.date &&
|
|
194
|
-
notes == o.notes &&
|
|
195
|
-
done == o.done &&
|
|
196
|
-
assign_to_id == o.assign_to_id &&
|
|
197
|
-
contacts_ids == o.contacts_ids &&
|
|
198
|
-
deals_ids == o.deals_ids &&
|
|
199
|
-
companies_ids == o.companies_ids &&
|
|
200
|
-
reminder == o.reminder
|
|
80
|
+
attributes == o.attributes
|
|
201
81
|
end
|
|
202
82
|
|
|
203
83
|
# @see the `==` method
|
|
@@ -209,7 +89,7 @@ module Brevo
|
|
|
209
89
|
# Calculates hash code according to all attributes.
|
|
210
90
|
# @return [Fixnum] Hash code
|
|
211
91
|
def hash
|
|
212
|
-
[name,
|
|
92
|
+
[name, attributes].hash
|
|
213
93
|
end
|
|
214
94
|
|
|
215
95
|
# Builds the object from hash
|
data/lib/brevo/models/body_7.rb
CHANGED
|
@@ -14,49 +14,17 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Brevo
|
|
16
16
|
class Body7
|
|
17
|
-
# Name of
|
|
17
|
+
# Name of deal
|
|
18
18
|
attr_accessor :name
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
22
|
-
|
|
23
|
-
# Id for type of task e.g Call / Email / Meeting etc.
|
|
24
|
-
attr_accessor :task_type_id
|
|
25
|
-
|
|
26
|
-
# Task date/time
|
|
27
|
-
attr_accessor :date
|
|
28
|
-
|
|
29
|
-
# Notes added to a task
|
|
30
|
-
attr_accessor :notes
|
|
31
|
-
|
|
32
|
-
# Task marked as done
|
|
33
|
-
attr_accessor :done
|
|
34
|
-
|
|
35
|
-
# User id to whom task is assigned
|
|
36
|
-
attr_accessor :assign_to_id
|
|
37
|
-
|
|
38
|
-
# Contact ids for contacts linked to this task
|
|
39
|
-
attr_accessor :contacts_ids
|
|
40
|
-
|
|
41
|
-
# Deal ids for deals a task is linked to
|
|
42
|
-
attr_accessor :deals_ids
|
|
43
|
-
|
|
44
|
-
# Companies ids for companies a task is linked to
|
|
45
|
-
attr_accessor :companies_ids
|
|
20
|
+
# Attributes for deal update To assign owner of a Deal you can send attributes.deal_owner and utilize the account email or ID. If you wish to update the pipeline of a deal you need to provide the `pipeline` and the `deal_stage`. Pipeline and deal_stage are ids you can fetch using this endpoint `/crm/pipeline/details/{pipelineID}`
|
|
21
|
+
attr_accessor :attributes
|
|
46
22
|
|
|
47
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
48
24
|
def self.attribute_map
|
|
49
25
|
{
|
|
50
26
|
:'name' => :'name',
|
|
51
|
-
:'
|
|
52
|
-
:'task_type_id' => :'taskTypeId',
|
|
53
|
-
:'date' => :'date',
|
|
54
|
-
:'notes' => :'notes',
|
|
55
|
-
:'done' => :'done',
|
|
56
|
-
:'assign_to_id' => :'assignToId',
|
|
57
|
-
:'contacts_ids' => :'contactsIds',
|
|
58
|
-
:'deals_ids' => :'dealsIds',
|
|
59
|
-
:'companies_ids' => :'companiesIds'
|
|
27
|
+
:'attributes' => :'attributes'
|
|
60
28
|
}
|
|
61
29
|
end
|
|
62
30
|
|
|
@@ -64,15 +32,7 @@ module Brevo
|
|
|
64
32
|
def self.swagger_types
|
|
65
33
|
{
|
|
66
34
|
:'name' => :'String',
|
|
67
|
-
:'
|
|
68
|
-
:'task_type_id' => :'String',
|
|
69
|
-
:'date' => :'DateTime',
|
|
70
|
-
:'notes' => :'String',
|
|
71
|
-
:'done' => :'BOOLEAN',
|
|
72
|
-
:'assign_to_id' => :'String',
|
|
73
|
-
:'contacts_ids' => :'Array<Integer>',
|
|
74
|
-
:'deals_ids' => :'Array<String>',
|
|
75
|
-
:'companies_ids' => :'Array<String>'
|
|
35
|
+
:'attributes' => :'Object'
|
|
76
36
|
}
|
|
77
37
|
end
|
|
78
38
|
|
|
@@ -88,46 +48,8 @@ module Brevo
|
|
|
88
48
|
self.name = attributes[:'name']
|
|
89
49
|
end
|
|
90
50
|
|
|
91
|
-
if attributes.has_key?(:'
|
|
92
|
-
self.
|
|
93
|
-
end
|
|
94
|
-
|
|
95
|
-
if attributes.has_key?(:'taskTypeId')
|
|
96
|
-
self.task_type_id = attributes[:'taskTypeId']
|
|
97
|
-
end
|
|
98
|
-
|
|
99
|
-
if attributes.has_key?(:'date')
|
|
100
|
-
self.date = attributes[:'date']
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
if attributes.has_key?(:'notes')
|
|
104
|
-
self.notes = attributes[:'notes']
|
|
105
|
-
end
|
|
106
|
-
|
|
107
|
-
if attributes.has_key?(:'done')
|
|
108
|
-
self.done = attributes[:'done']
|
|
109
|
-
end
|
|
110
|
-
|
|
111
|
-
if attributes.has_key?(:'assignToId')
|
|
112
|
-
self.assign_to_id = attributes[:'assignToId']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
if attributes.has_key?(:'contactsIds')
|
|
116
|
-
if (value = attributes[:'contactsIds']).is_a?(Array)
|
|
117
|
-
self.contacts_ids = value
|
|
118
|
-
end
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
if attributes.has_key?(:'dealsIds')
|
|
122
|
-
if (value = attributes[:'dealsIds']).is_a?(Array)
|
|
123
|
-
self.deals_ids = value
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
if attributes.has_key?(:'companiesIds')
|
|
128
|
-
if (value = attributes[:'companiesIds']).is_a?(Array)
|
|
129
|
-
self.companies_ids = value
|
|
130
|
-
end
|
|
51
|
+
if attributes.has_key?(:'attributes')
|
|
52
|
+
self.attributes = attributes[:'attributes']
|
|
131
53
|
end
|
|
132
54
|
end
|
|
133
55
|
|
|
@@ -150,15 +72,7 @@ module Brevo
|
|
|
150
72
|
return true if self.equal?(o)
|
|
151
73
|
self.class == o.class &&
|
|
152
74
|
name == o.name &&
|
|
153
|
-
|
|
154
|
-
task_type_id == o.task_type_id &&
|
|
155
|
-
date == o.date &&
|
|
156
|
-
notes == o.notes &&
|
|
157
|
-
done == o.done &&
|
|
158
|
-
assign_to_id == o.assign_to_id &&
|
|
159
|
-
contacts_ids == o.contacts_ids &&
|
|
160
|
-
deals_ids == o.deals_ids &&
|
|
161
|
-
companies_ids == o.companies_ids
|
|
75
|
+
attributes == o.attributes
|
|
162
76
|
end
|
|
163
77
|
|
|
164
78
|
# @see the `==` method
|
|
@@ -170,7 +84,7 @@ module Brevo
|
|
|
170
84
|
# Calculates hash code according to all attributes.
|
|
171
85
|
# @return [Fixnum] Hash code
|
|
172
86
|
def hash
|
|
173
|
-
[name,
|
|
87
|
+
[name, attributes].hash
|
|
174
88
|
end
|
|
175
89
|
|
|
176
90
|
# Builds the object from hash
|
data/lib/brevo/models/body_8.rb
CHANGED
|
@@ -14,45 +14,35 @@ require 'date'
|
|
|
14
14
|
|
|
15
15
|
module Brevo
|
|
16
16
|
class Body8
|
|
17
|
-
#
|
|
18
|
-
attr_accessor :
|
|
17
|
+
# Contact ids for contacts to be linked with deal
|
|
18
|
+
attr_accessor :link_contact_ids
|
|
19
19
|
|
|
20
|
-
#
|
|
21
|
-
attr_accessor :
|
|
20
|
+
# Contact ids for contacts to be unlinked from deal
|
|
21
|
+
attr_accessor :unlink_contact_ids
|
|
22
22
|
|
|
23
|
-
#
|
|
24
|
-
attr_accessor :
|
|
23
|
+
# Company ids to be linked with deal
|
|
24
|
+
attr_accessor :link_company_ids
|
|
25
25
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
28
|
-
|
|
29
|
-
# agent email. When sending messages from a standalone system, it’s hard to maintain a 1-to-1 relationship between the users of both systems. In this case, an agent can be specified by their email address.
|
|
30
|
-
attr_accessor :agent_email
|
|
31
|
-
|
|
32
|
-
# agent name
|
|
33
|
-
attr_accessor :agent_name
|
|
26
|
+
# Company ids to be unlinked from deal
|
|
27
|
+
attr_accessor :unlink_company_ids
|
|
34
28
|
|
|
35
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
36
30
|
def self.attribute_map
|
|
37
31
|
{
|
|
38
|
-
:'
|
|
39
|
-
:'
|
|
40
|
-
:'
|
|
41
|
-
:'
|
|
42
|
-
:'agent_email' => :'agentEmail',
|
|
43
|
-
:'agent_name' => :'agentName'
|
|
32
|
+
:'link_contact_ids' => :'linkContactIds',
|
|
33
|
+
:'unlink_contact_ids' => :'unlinkContactIds',
|
|
34
|
+
:'link_company_ids' => :'linkCompanyIds',
|
|
35
|
+
:'unlink_company_ids' => :'unlinkCompanyIds'
|
|
44
36
|
}
|
|
45
37
|
end
|
|
46
38
|
|
|
47
39
|
# Attribute type mapping.
|
|
48
40
|
def self.swagger_types
|
|
49
41
|
{
|
|
50
|
-
:'
|
|
51
|
-
:'
|
|
52
|
-
:'
|
|
53
|
-
:'
|
|
54
|
-
:'agent_email' => :'String',
|
|
55
|
-
:'agent_name' => :'String'
|
|
42
|
+
:'link_contact_ids' => :'Array<Integer>',
|
|
43
|
+
:'unlink_contact_ids' => :'Array<Integer>',
|
|
44
|
+
:'link_company_ids' => :'Array<String>',
|
|
45
|
+
:'unlink_company_ids' => :'Array<String>'
|
|
56
46
|
}
|
|
57
47
|
end
|
|
58
48
|
|
|
@@ -64,28 +54,28 @@ module Brevo
|
|
|
64
54
|
# convert string to symbol for hash key
|
|
65
55
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
66
56
|
|
|
67
|
-
if attributes.has_key?(:'
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if attributes.has_key?(:'text')
|
|
72
|
-
self.text = attributes[:'text']
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
if attributes.has_key?(:'agentId')
|
|
76
|
-
self.agent_id = attributes[:'agentId']
|
|
57
|
+
if attributes.has_key?(:'linkContactIds')
|
|
58
|
+
if (value = attributes[:'linkContactIds']).is_a?(Array)
|
|
59
|
+
self.link_contact_ids = value
|
|
60
|
+
end
|
|
77
61
|
end
|
|
78
62
|
|
|
79
|
-
if attributes.has_key?(:'
|
|
80
|
-
|
|
63
|
+
if attributes.has_key?(:'unlinkContactIds')
|
|
64
|
+
if (value = attributes[:'unlinkContactIds']).is_a?(Array)
|
|
65
|
+
self.unlink_contact_ids = value
|
|
66
|
+
end
|
|
81
67
|
end
|
|
82
68
|
|
|
83
|
-
if attributes.has_key?(:'
|
|
84
|
-
|
|
69
|
+
if attributes.has_key?(:'linkCompanyIds')
|
|
70
|
+
if (value = attributes[:'linkCompanyIds']).is_a?(Array)
|
|
71
|
+
self.link_company_ids = value
|
|
72
|
+
end
|
|
85
73
|
end
|
|
86
74
|
|
|
87
|
-
if attributes.has_key?(:'
|
|
88
|
-
|
|
75
|
+
if attributes.has_key?(:'unlinkCompanyIds')
|
|
76
|
+
if (value = attributes[:'unlinkCompanyIds']).is_a?(Array)
|
|
77
|
+
self.unlink_company_ids = value
|
|
78
|
+
end
|
|
89
79
|
end
|
|
90
80
|
end
|
|
91
81
|
|
|
@@ -93,22 +83,12 @@ module Brevo
|
|
|
93
83
|
# @return Array for valid properties with the reasons
|
|
94
84
|
def list_invalid_properties
|
|
95
85
|
invalid_properties = Array.new
|
|
96
|
-
if @visitor_id.nil?
|
|
97
|
-
invalid_properties.push('invalid value for "visitor_id", visitor_id cannot be nil.')
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
if @text.nil?
|
|
101
|
-
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
|
102
|
-
end
|
|
103
|
-
|
|
104
86
|
invalid_properties
|
|
105
87
|
end
|
|
106
88
|
|
|
107
89
|
# Check to see if the all the properties in the model are valid
|
|
108
90
|
# @return true if the model is valid
|
|
109
91
|
def valid?
|
|
110
|
-
return false if @visitor_id.nil?
|
|
111
|
-
return false if @text.nil?
|
|
112
92
|
true
|
|
113
93
|
end
|
|
114
94
|
|
|
@@ -117,12 +97,10 @@ module Brevo
|
|
|
117
97
|
def ==(o)
|
|
118
98
|
return true if self.equal?(o)
|
|
119
99
|
self.class == o.class &&
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
agent_email == o.agent_email &&
|
|
125
|
-
agent_name == o.agent_name
|
|
100
|
+
link_contact_ids == o.link_contact_ids &&
|
|
101
|
+
unlink_contact_ids == o.unlink_contact_ids &&
|
|
102
|
+
link_company_ids == o.link_company_ids &&
|
|
103
|
+
unlink_company_ids == o.unlink_company_ids
|
|
126
104
|
end
|
|
127
105
|
|
|
128
106
|
# @see the `==` method
|
|
@@ -134,7 +112,7 @@ module Brevo
|
|
|
134
112
|
# Calculates hash code according to all attributes.
|
|
135
113
|
# @return [Fixnum] Hash code
|
|
136
114
|
def hash
|
|
137
|
-
[
|
|
115
|
+
[link_contact_ids, unlink_contact_ids, link_company_ids, unlink_company_ids].hash
|
|
138
116
|
end
|
|
139
117
|
|
|
140
118
|
# Builds the object from hash
|