diff --git a/.gitignore b/.gitignore index c205431..1447c0f 100644 --- a/.gitignore +++ b/.gitignore @@ -64,4 +64,5 @@ target/ .ipynb_checkpoints # Miscellaneous -playground.py \ No newline at end of file +playground.py +/env \ No newline at end of file diff --git a/README.md b/README.md index 519bd27..e10b9f7 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ The package is available by running : ```sh pip install sib-api-v3-sdk ``` -(you may need to run `pip` with root permission: `sudo pip install sib-api-v3-sdk`) +(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`) Then import the package: ```python @@ -88,21 +88,13 @@ All URIs are relative to *https://api.sendinblue.com/v3* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- *AccountApi* | [**get_account**](docs/AccountApi.md#get_account) | **GET** /account | Get your account information, plan and credits details -*AttributesApi* | [**create_attribute**](docs/AttributesApi.md#create_attribute) | **POST** /contacts/attributes/{attributeCategory}/{attributeName} | Create contact attribute -*AttributesApi* | [**delete_attribute**](docs/AttributesApi.md#delete_attribute) | **DELETE** /contacts/attributes/{attributeCategory}/{attributeName} | Delete an attribute -*AttributesApi* | [**get_attributes**](docs/AttributesApi.md#get_attributes) | **GET** /contacts/attributes | List all attributes -*AttributesApi* | [**update_attribute**](docs/AttributesApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute -*CRMApi* | [**crm_notes_get**](docs/CRMApi.md#crm_notes_get) | **GET** /crm/notes | Get all notes -*CRMApi* | [**crm_notes_id_delete**](docs/CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note -*CRMApi* | [**crm_notes_id_get**](docs/CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note -*CRMApi* | [**crm_notes_id_patch**](docs/CRMApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note -*CRMApi* | [**crm_notes_post**](docs/CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a note -*CRMApi* | [**crm_tasks_get**](docs/CRMApi.md#crm_tasks_get) | **GET** /crm/tasks | Get all tasks -*CRMApi* | [**crm_tasks_id_delete**](docs/CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task -*CRMApi* | [**crm_tasks_id_get**](docs/CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task -*CRMApi* | [**crm_tasks_id_patch**](docs/CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task -*CRMApi* | [**crm_tasks_post**](docs/CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task -*CRMApi* | [**crm_tasktypes_get**](docs/CRMApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types +*CompaniesApi* | [**companies_attributes_get**](docs/CompaniesApi.md#companies_attributes_get) | **GET** /companies/attributes | Get company attributes +*CompaniesApi* | [**companies_get**](docs/CompaniesApi.md#companies_get) | **GET** /companies | Get all companies +*CompaniesApi* | [**companies_id_delete**](docs/CompaniesApi.md#companies_id_delete) | **DELETE** /companies/{id} | Delete a company +*CompaniesApi* | [**companies_id_get**](docs/CompaniesApi.md#companies_id_get) | **GET** /companies/{id} | Get a company +*CompaniesApi* | [**companies_id_patch**](docs/CompaniesApi.md#companies_id_patch) | **PATCH** /companies/{id} | Update a company +*CompaniesApi* | [**companies_link_unlink_id_patch**](docs/CompaniesApi.md#companies_link_unlink_id_patch) | **PATCH** /companies/link-unlink/{id} | Link and Unlink company with contacts and deals +*CompaniesApi* | [**companies_post**](docs/CompaniesApi.md#companies_post) | **POST** /companies | Create a company *ContactsApi* | [**add_contact_to_list**](docs/ContactsApi.md#add_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list *ContactsApi* | [**create_attribute**](docs/ContactsApi.md#create_attribute) | **POST** /contacts/attributes/{attributeCategory}/{attributeName} | Create contact attribute *ContactsApi* | [**create_contact**](docs/ContactsApi.md#create_contact) | **POST** /contacts | Create a contact @@ -131,6 +123,34 @@ Class | Method | HTTP request | Description *ContactsApi* | [**update_contact**](docs/ContactsApi.md#update_contact) | **PUT** /contacts/{identifier} | Update a contact *ContactsApi* | [**update_folder**](docs/ContactsApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a folder *ContactsApi* | [**update_list**](docs/ContactsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list +*ConversationsApi* | [**conversations_agent_online_ping_post**](docs/ConversationsApi.md#conversations_agent_online_ping_post) | **POST** /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes +*ConversationsApi* | [**conversations_messages_id_delete**](docs/ConversationsApi.md#conversations_messages_id_delete) | **DELETE** /conversations/messages/{id} | Delete a message sent by an agent +*ConversationsApi* | [**conversations_messages_id_get**](docs/ConversationsApi.md#conversations_messages_id_get) | **GET** /conversations/messages/{id} | Get a message +*ConversationsApi* | [**conversations_messages_id_put**](docs/ConversationsApi.md#conversations_messages_id_put) | **PUT** /conversations/messages/{id} | Update a message sent by an agent +*ConversationsApi* | [**conversations_messages_post**](docs/ConversationsApi.md#conversations_messages_post) | **POST** /conversations/messages | Send a message as an agent +*ConversationsApi* | [**conversations_pushed_messages_id_delete**](docs/ConversationsApi.md#conversations_pushed_messages_id_delete) | **DELETE** /conversations/pushedMessages/{id} | Delete an automated message +*ConversationsApi* | [**conversations_pushed_messages_id_get**](docs/ConversationsApi.md#conversations_pushed_messages_id_get) | **GET** /conversations/pushedMessages/{id} | Get an automated message +*ConversationsApi* | [**conversations_pushed_messages_id_put**](docs/ConversationsApi.md#conversations_pushed_messages_id_put) | **PUT** /conversations/pushedMessages/{id} | Update an automated message +*ConversationsApi* | [**conversations_pushed_messages_post**](docs/ConversationsApi.md#conversations_pushed_messages_post) | **POST** /conversations/pushedMessages | Send an automated message to a visitor +*DealsApi* | [**crm_attributes_deals_get**](docs/DealsApi.md#crm_attributes_deals_get) | **GET** /crm/attributes/deals | Get deal attributes +*DealsApi* | [**crm_deals_get**](docs/DealsApi.md#crm_deals_get) | **GET** /crm/deals | Get all deals +*DealsApi* | [**crm_deals_id_delete**](docs/DealsApi.md#crm_deals_id_delete) | **DELETE** /crm/deals/{id} | Delete a deal +*DealsApi* | [**crm_deals_id_get**](docs/DealsApi.md#crm_deals_id_get) | **GET** /crm/deals/{id} | Get a deal +*DealsApi* | [**crm_deals_id_patch**](docs/DealsApi.md#crm_deals_id_patch) | **PATCH** /crm/deals/{id} | Update a deal +*DealsApi* | [**crm_deals_link_unlink_id_patch**](docs/DealsApi.md#crm_deals_link_unlink_id_patch) | **PATCH** /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies +*DealsApi* | [**crm_deals_post**](docs/DealsApi.md#crm_deals_post) | **POST** /crm/deals | Create a deal +*DealsApi* | [**crm_pipeline_details_get**](docs/DealsApi.md#crm_pipeline_details_get) | **GET** /crm/pipeline/details | Get pipeline stages +*EcommerceApi* | [**create_batch_order**](docs/EcommerceApi.md#create_batch_order) | **POST** /orders/status/batch | Create orders in batch +*EcommerceApi* | [**create_order**](docs/EcommerceApi.md#create_order) | **POST** /orders/status | Managing the status of the order +*EcommerceApi* | [**create_update_batch_category**](docs/EcommerceApi.md#create_update_batch_category) | **POST** /categories/batch | Create categories in batch +*EcommerceApi* | [**create_update_batch_products**](docs/EcommerceApi.md#create_update_batch_products) | **POST** /products/batch | Create products in batch +*EcommerceApi* | [**create_update_category**](docs/EcommerceApi.md#create_update_category) | **POST** /categories | Create/Update a category +*EcommerceApi* | [**create_update_product**](docs/EcommerceApi.md#create_update_product) | **POST** /products | Create/Update a product +*EcommerceApi* | [**ecommerce_activate_post**](docs/EcommerceApi.md#ecommerce_activate_post) | **POST** /ecommerce/activate | Activate the eCommerce app +*EcommerceApi* | [**get_categories**](docs/EcommerceApi.md#get_categories) | **GET** /categories | Return all your categories +*EcommerceApi* | [**get_category_info**](docs/EcommerceApi.md#get_category_info) | **GET** /categories/{id} | Get a category details +*EcommerceApi* | [**get_product_info**](docs/EcommerceApi.md#get_product_info) | **GET** /products/{id} | Get a product's details +*EcommerceApi* | [**get_products**](docs/EcommerceApi.md#get_products) | **GET** /products | Return all your products *EmailCampaignsApi* | [**create_email_campaign**](docs/EmailCampaignsApi.md#create_email_campaign) | **POST** /emailCampaigns | Create an email campaign *EmailCampaignsApi* | [**delete_email_campaign**](docs/EmailCampaignsApi.md#delete_email_campaign) | **DELETE** /emailCampaigns/{campaignId} | Delete an email campaign *EmailCampaignsApi* | [**email_export_recipients**](docs/EmailCampaignsApi.md#email_export_recipients) | **POST** /emailCampaigns/{campaignId}/exportRecipients | Export the recipients of an email campaign @@ -144,30 +164,32 @@ Class | Method | HTTP request | Description *EmailCampaignsApi* | [**update_campaign_status**](docs/EmailCampaignsApi.md#update_campaign_status) | **PUT** /emailCampaigns/{campaignId}/status | Update an email campaign status *EmailCampaignsApi* | [**update_email_campaign**](docs/EmailCampaignsApi.md#update_email_campaign) | **PUT** /emailCampaigns/{campaignId} | Update an email campaign *EmailCampaignsApi* | [**upload_image_to_gallery**](docs/EmailCampaignsApi.md#upload_image_to_gallery) | **POST** /emailCampaigns/images | Upload an image to your account's image gallery -*FoldersApi* | [**create_folder**](docs/FoldersApi.md#create_folder) | **POST** /contacts/folders | Create a folder -*FoldersApi* | [**delete_folder**](docs/FoldersApi.md#delete_folder) | **DELETE** /contacts/folders/{folderId} | Delete a folder (and all its lists) -*FoldersApi* | [**get_folder**](docs/FoldersApi.md#get_folder) | **GET** /contacts/folders/{folderId} | Returns a folder's details -*FoldersApi* | [**get_folder_lists**](docs/FoldersApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get lists in a folder -*FoldersApi* | [**get_folders**](docs/FoldersApi.md#get_folders) | **GET** /contacts/folders | Get all folders -*FoldersApi* | [**update_folder**](docs/FoldersApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a folder +*ExternalFeedsApi* | [**create_external_feed**](docs/ExternalFeedsApi.md#create_external_feed) | **POST** /feeds | Create an external feed +*ExternalFeedsApi* | [**delete_external_feed**](docs/ExternalFeedsApi.md#delete_external_feed) | **DELETE** /feeds/{uuid} | Delete an external feed +*ExternalFeedsApi* | [**get_all_external_feeds**](docs/ExternalFeedsApi.md#get_all_external_feeds) | **GET** /feeds | Fetch all external feeds +*ExternalFeedsApi* | [**get_external_feed_by_uuid**](docs/ExternalFeedsApi.md#get_external_feed_by_uuid) | **GET** /feeds/{uuid} | Get an external feed by UUID +*ExternalFeedsApi* | [**update_external_feed**](docs/ExternalFeedsApi.md#update_external_feed) | **PUT** /feeds/{uuid} | Update an external feed +*FilesApi* | [**crm_files_get**](docs/FilesApi.md#crm_files_get) | **GET** /crm/files | Get all files +*FilesApi* | [**crm_files_id_data_get**](docs/FilesApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +*FilesApi* | [**crm_files_id_delete**](docs/FilesApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +*FilesApi* | [**crm_files_id_get**](docs/FilesApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +*FilesApi* | [**crm_files_post**](docs/FilesApi.md#crm_files_post) | **POST** /crm/files | Upload a file +*InboundParsingApi* | [**get_inbound_email_attachment**](docs/InboundParsingApi.md#get_inbound_email_attachment) | **GET** /inbound/attachments/{downloadToken} | Retrieve inbound attachment with download token. *InboundParsingApi* | [**get_inbound_email_events**](docs/InboundParsingApi.md#get_inbound_email_events) | **GET** /inbound/events | Get the list of all the events for the received emails. *InboundParsingApi* | [**get_inbound_email_events_by_uuid**](docs/InboundParsingApi.md#get_inbound_email_events_by_uuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email. -*ListsApi* | [**add_contact_to_list**](docs/ListsApi.md#add_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list -*ListsApi* | [**create_list**](docs/ListsApi.md#create_list) | **POST** /contacts/lists | Create a list -*ListsApi* | [**delete_list**](docs/ListsApi.md#delete_list) | **DELETE** /contacts/lists/{listId} | Delete a list -*ListsApi* | [**get_contacts_from_list**](docs/ListsApi.md#get_contacts_from_list) | **GET** /contacts/lists/{listId}/contacts | Get contacts in a list -*ListsApi* | [**get_folder_lists**](docs/ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get lists in a folder -*ListsApi* | [**get_list**](docs/ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get a list's details -*ListsApi* | [**get_lists**](docs/ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists -*ListsApi* | [**remove_contact_from_list**](docs/ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list -*ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list *MasterAccountApi* | [**corporate_master_account_get**](docs/MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account *MasterAccountApi* | [**corporate_sub_account_get**](docs/MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account. *MasterAccountApi* | [**corporate_sub_account_id_delete**](docs/MasterAccountApi.md#corporate_sub_account_id_delete) | **DELETE** /corporate/subAccount/{id} | Delete a sub-account *MasterAccountApi* | [**corporate_sub_account_id_get**](docs/MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details *MasterAccountApi* | [**corporate_sub_account_id_plan_put**](docs/MasterAccountApi.md#corporate_sub_account_id_plan_put) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan +*MasterAccountApi* | [**corporate_sub_account_key_post**](docs/MasterAccountApi.md#corporate_sub_account_key_post) | **POST** /corporate/subAccount/key | Create an API key for a sub-account *MasterAccountApi* | [**corporate_sub_account_post**](docs/MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account. *MasterAccountApi* | [**corporate_sub_account_sso_token_post**](docs/MasterAccountApi.md#corporate_sub_account_sso_token_post) | **POST** /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue +*NotesApi* | [**crm_notes_get**](docs/NotesApi.md#crm_notes_get) | **GET** /crm/notes | Get all notes +*NotesApi* | [**crm_notes_id_delete**](docs/NotesApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note +*NotesApi* | [**crm_notes_id_get**](docs/NotesApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note +*NotesApi* | [**crm_notes_id_patch**](docs/NotesApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note +*NotesApi* | [**crm_notes_post**](docs/NotesApi.md#crm_notes_post) | **POST** /crm/notes | Create a note *ProcessApi* | [**get_process**](docs/ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process *ProcessApi* | [**get_processes**](docs/ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account *ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childIdentifier}/credits/add | Add Email and/or SMS credits to a specific child account @@ -202,10 +224,18 @@ Class | Method | HTTP request | Description *SendersApi* | [**get_ips_from_sender**](docs/SendersApi.md#get_ips_from_sender) | **GET** /senders/{senderId}/ips | Get all the dedicated IPs for a sender *SendersApi* | [**get_senders**](docs/SendersApi.md#get_senders) | **GET** /senders | Get the list of all your senders *SendersApi* | [**update_sender**](docs/SendersApi.md#update_sender) | **PUT** /senders/{senderId} | Update a sender +*TasksApi* | [**crm_tasks_get**](docs/TasksApi.md#crm_tasks_get) | **GET** /crm/tasks | Get all tasks +*TasksApi* | [**crm_tasks_id_delete**](docs/TasksApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task +*TasksApi* | [**crm_tasks_id_get**](docs/TasksApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task +*TasksApi* | [**crm_tasks_id_patch**](docs/TasksApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task +*TasksApi* | [**crm_tasks_post**](docs/TasksApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task +*TasksApi* | [**crm_tasktypes_get**](docs/TasksApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types *TransactionalSMSApi* | [**get_sms_events**](docs/TransactionalSMSApi.md#get_sms_events) | **GET** /transactionalSMS/statistics/events | Get all your SMS activity (unaggregated events) *TransactionalSMSApi* | [**get_transac_aggregated_sms_report**](docs/TransactionalSMSApi.md#get_transac_aggregated_sms_report) | **GET** /transactionalSMS/statistics/aggregatedReport | Get your SMS activity aggregated over a period of time *TransactionalSMSApi* | [**get_transac_sms_report**](docs/TransactionalSMSApi.md#get_transac_sms_report) | **GET** /transactionalSMS/statistics/reports | Get your SMS activity aggregated per day *TransactionalSMSApi* | [**send_transac_sms**](docs/TransactionalSMSApi.md#send_transac_sms) | **POST** /transactionalSMS/sms | Send SMS message to a mobile number +*TransactionalWhatsAppApi* | [**get_whatsapp_event_report**](docs/TransactionalWhatsAppApi.md#get_whatsapp_event_report) | **GET** /whatsapp/statistics/events | Get all your WhatsApp activity (unaggregated events) +*TransactionalWhatsAppApi* | [**send_whatsapp_message**](docs/TransactionalWhatsAppApi.md#send_whatsapp_message) | **POST** /whatsapp/sendMessage | Send a WhatsApp message *TransactionalEmailsApi* | [**block_new_domain**](docs/TransactionalEmailsApi.md#block_new_domain) | **POST** /smtp/blockedDomains | Add a new domain to the list of blocked domains *TransactionalEmailsApi* | [**create_smtp_template**](docs/TransactionalEmailsApi.md#create_smtp_template) | **POST** /smtp/templates | Create an email template *TransactionalEmailsApi* | [**delete_blocked_domain**](docs/TransactionalEmailsApi.md#delete_blocked_domain) | **DELETE** /smtp/blockedDomains/{domain} | Unblock an existing domain from the list of blocked domains @@ -233,6 +263,9 @@ Class | Method | HTTP request | Description *WebhooksApi* | [**get_webhook**](docs/WebhooksApi.md#get_webhook) | **GET** /webhooks/{webhookId} | Get a webhook details *WebhooksApi* | [**get_webhooks**](docs/WebhooksApi.md#get_webhooks) | **GET** /webhooks | Get all webhooks *WebhooksApi* | [**update_webhook**](docs/WebhooksApi.md#update_webhook) | **PUT** /webhooks/{webhookId} | Update a webhook +*WhatsappCampaignsApi* | [**delete_whatsapp_campaign**](docs/WhatsappCampaignsApi.md#delete_whatsapp_campaign) | **DELETE** /whatsappCampaigns/{campaignId} | Delete a Whatsapp campaign +*WhatsappCampaignsApi* | [**get_whatsapp_campaign**](docs/WhatsappCampaignsApi.md#get_whatsapp_campaign) | **GET** /whatsappCampaigns/{campaignId} | Get a Whatsapp campaign +*WhatsappCampaignsApi* | [**get_whatsapp_templates**](docs/WhatsappCampaignsApi.md#get_whatsapp_templates) | **GET** /whatsappCampaigns/template-list | Return all your created whatsapp templates ## Documentation For Models @@ -249,16 +282,41 @@ Class | Method | HTTP request | Description - [BlockDomain](docs/BlockDomain.md) - [Body](docs/Body.md) - [Body1](docs/Body1.md) + - [Body10](docs/Body10.md) + - [Body11](docs/Body11.md) + - [Body12](docs/Body12.md) + - [Body2](docs/Body2.md) + - [Body3](docs/Body3.md) + - [Body4](docs/Body4.md) + - [Body5](docs/Body5.md) + - [Body6](docs/Body6.md) + - [Body7](docs/Body7.md) + - [Body8](docs/Body8.md) + - [Body9](docs/Body9.md) + - [BodyVariablesItems](docs/BodyVariablesItems.md) + - [CompaniesList](docs/CompaniesList.md) + - [Company](docs/Company.md) + - [CompanyAttributes](docs/CompanyAttributes.md) + - [CompanyAttributesInner](docs/CompanyAttributesInner.md) + - [ComponentItems](docs/ComponentItems.md) + - [ConversationsMessage](docs/ConversationsMessage.md) + - [ConversationsMessageFile](docs/ConversationsMessageFile.md) + - [ConversationsMessageFileImageInfo](docs/ConversationsMessageFileImageInfo.md) + - [CreateApiKeyRequest](docs/CreateApiKeyRequest.md) + - [CreateApiKeyResponse](docs/CreateApiKeyResponse.md) - [CreateAttribute](docs/CreateAttribute.md) - [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md) + - [CreateCategoryModel](docs/CreateCategoryModel.md) - [CreateChild](docs/CreateChild.md) - [CreateContact](docs/CreateContact.md) - [CreateDoiContact](docs/CreateDoiContact.md) - [CreateEmailCampaign](docs/CreateEmailCampaign.md) - [CreateEmailCampaignRecipients](docs/CreateEmailCampaignRecipients.md) - [CreateEmailCampaignSender](docs/CreateEmailCampaignSender.md) + - [CreateExternalFeed](docs/CreateExternalFeed.md) - [CreateList](docs/CreateList.md) - [CreateModel](docs/CreateModel.md) + - [CreateProductModel](docs/CreateProductModel.md) - [CreateReseller](docs/CreateReseller.md) - [CreateSender](docs/CreateSender.md) - [CreateSenderIps](docs/CreateSenderIps.md) @@ -270,18 +328,36 @@ Class | Method | HTTP request | Description - [CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md) - [CreateSubAccount](docs/CreateSubAccount.md) - [CreateSubAccountResponse](docs/CreateSubAccountResponse.md) + - [CreateUpdateBatchCategory](docs/CreateUpdateBatchCategory.md) + - [CreateUpdateBatchCategoryModel](docs/CreateUpdateBatchCategoryModel.md) + - [CreateUpdateBatchProducts](docs/CreateUpdateBatchProducts.md) + - [CreateUpdateBatchProductsModel](docs/CreateUpdateBatchProductsModel.md) + - [CreateUpdateCategories](docs/CreateUpdateCategories.md) + - [CreateUpdateCategory](docs/CreateUpdateCategory.md) - [CreateUpdateContactModel](docs/CreateUpdateContactModel.md) - [CreateUpdateFolder](docs/CreateUpdateFolder.md) + - [CreateUpdateProduct](docs/CreateUpdateProduct.md) + - [CreateUpdateProducts](docs/CreateUpdateProducts.md) - [CreateWebhook](docs/CreateWebhook.md) + - [CreatedBatchId](docs/CreatedBatchId.md) - [CreatedProcessId](docs/CreatedProcessId.md) + - [Deal](docs/Deal.md) + - [DealAttributes](docs/DealAttributes.md) + - [DealAttributesInner](docs/DealAttributesInner.md) + - [DealsList](docs/DealsList.md) - [DeleteHardbounces](docs/DeleteHardbounces.md) - [EmailExportRecipients](docs/EmailExportRecipients.md) - [ErrorModel](docs/ErrorModel.md) + - [FileData](docs/FileData.md) + - [FileDownloadableLink](docs/FileDownloadableLink.md) + - [FileList](docs/FileList.md) - [GetAccountMarketingAutomation](docs/GetAccountMarketingAutomation.md) - [GetAccountPlan](docs/GetAccountPlan.md) - [GetAccountRelay](docs/GetAccountRelay.md) - [GetAccountRelayData](docs/GetAccountRelayData.md) - [GetAggregatedReport](docs/GetAggregatedReport.md) + - [GetAllExternalFeeds](docs/GetAllExternalFeeds.md) + - [GetAllExternalFeedsFeeds](docs/GetAllExternalFeedsFeeds.md) - [GetAttributes](docs/GetAttributes.md) - [GetAttributesAttributes](docs/GetAttributesAttributes.md) - [GetAttributesEnumeration](docs/GetAttributesEnumeration.md) @@ -289,6 +365,8 @@ Class | Method | HTTP request | Description - [GetCampaignOverview](docs/GetCampaignOverview.md) - [GetCampaignRecipients](docs/GetCampaignRecipients.md) - [GetCampaignStats](docs/GetCampaignStats.md) + - [GetCategories](docs/GetCategories.md) + - [GetCategoryDetails](docs/GetCategoryDetails.md) - [GetChildAccountCreationStatus](docs/GetChildAccountCreationStatus.md) - [GetChildDomain](docs/GetChildDomain.md) - [GetChildDomains](docs/GetChildDomains.md) @@ -323,6 +401,8 @@ Class | Method | HTTP request | Description - [GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription](docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md) - [GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription](docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md) - [GetExtendedListCampaignStats](docs/GetExtendedListCampaignStats.md) + - [GetExternalFeedByUUID](docs/GetExternalFeedByUUID.md) + - [GetExternalFeedByUUIDHeaders](docs/GetExternalFeedByUUIDHeaders.md) - [GetFolder](docs/GetFolder.md) - [GetFolderLists](docs/GetFolderLists.md) - [GetFolders](docs/GetFolders.md) @@ -339,6 +419,8 @@ Class | Method | HTTP request | Description - [GetLists](docs/GetLists.md) - [GetProcess](docs/GetProcess.md) - [GetProcesses](docs/GetProcesses.md) + - [GetProductDetails](docs/GetProductDetails.md) + - [GetProducts](docs/GetProducts.md) - [GetReports](docs/GetReports.md) - [GetReportsReports](docs/GetReportsReports.md) - [GetScheduledEmailByBatchId](docs/GetScheduledEmailByBatchId.md) @@ -370,9 +452,18 @@ Class | Method | HTTP request | Description - [GetTransacEmailsListTransactionalEmails](docs/GetTransacEmailsListTransactionalEmails.md) - [GetTransacSmsReport](docs/GetTransacSmsReport.md) - [GetTransacSmsReportReports](docs/GetTransacSmsReportReports.md) + - [GetWATemplates](docs/GetWATemplates.md) + - [GetWATemplatesTemplates](docs/GetWATemplatesTemplates.md) - [GetWebhook](docs/GetWebhook.md) - [GetWebhooks](docs/GetWebhooks.md) + - [GetWhatsappCampaignOverview](docs/GetWhatsappCampaignOverview.md) + - [GetWhatsappEventReport](docs/GetWhatsappEventReport.md) + - [GetWhatsappEventReportEvents](docs/GetWhatsappEventReportEvents.md) + - [InlineResponse200](docs/InlineResponse200.md) - [InlineResponse201](docs/InlineResponse201.md) + - [InlineResponse2011](docs/InlineResponse2011.md) + - [InlineResponse2012](docs/InlineResponse2012.md) + - [InlineResponse2013](docs/InlineResponse2013.md) - [ManageIp](docs/ManageIp.md) - [MasterDetailsResponse](docs/MasterDetailsResponse.md) - [MasterDetailsResponseBillingInfo](docs/MasterDetailsResponseBillingInfo.md) @@ -384,6 +475,12 @@ Class | Method | HTTP request | Description - [NoteData](docs/NoteData.md) - [NoteId](docs/NoteId.md) - [NoteList](docs/NoteList.md) + - [Order](docs/Order.md) + - [OrderBatch](docs/OrderBatch.md) + - [OrderBilling](docs/OrderBilling.md) + - [OrderProducts](docs/OrderProducts.md) + - [Pipeline](docs/Pipeline.md) + - [PipelineStage](docs/PipelineStage.md) - [PostContactInfo](docs/PostContactInfo.md) - [PostContactInfoContacts](docs/PostContactInfoContacts.md) - [PostSendFailed](docs/PostSendFailed.md) @@ -415,6 +512,7 @@ Class | Method | HTTP request | Description - [SendTestEmail](docs/SendTestEmail.md) - [SendTestSms](docs/SendTestSms.md) - [SendTransacSms](docs/SendTransacSms.md) + - [SendWhatsappMessage](docs/SendWhatsappMessage.md) - [SsoTokenRequest](docs/SsoTokenRequest.md) - [SubAccountDetailsResponse](docs/SubAccountDetailsResponse.md) - [SubAccountDetailsResponsePlanInfo](docs/SubAccountDetailsResponsePlanInfo.md) @@ -446,13 +544,18 @@ Class | Method | HTTP request | Description - [UpdateEmailCampaign](docs/UpdateEmailCampaign.md) - [UpdateEmailCampaignRecipients](docs/UpdateEmailCampaignRecipients.md) - [UpdateEmailCampaignSender](docs/UpdateEmailCampaignSender.md) + - [UpdateExternalFeed](docs/UpdateExternalFeed.md) - [UpdateList](docs/UpdateList.md) - [UpdateSender](docs/UpdateSender.md) - [UpdateSmsCampaign](docs/UpdateSmsCampaign.md) - [UpdateSmtpTemplate](docs/UpdateSmtpTemplate.md) - [UpdateSmtpTemplateSender](docs/UpdateSmtpTemplateSender.md) - [UpdateWebhook](docs/UpdateWebhook.md) + - [UploadImageModel](docs/UploadImageModel.md) - [UploadImageToGallery](docs/UploadImageToGallery.md) + - [VariablesItems](docs/VariablesItems.md) + - [WhatsappCampStats](docs/WhatsappCampStats.md) + - [WhatsappCampTemplate](docs/WhatsappCampTemplate.md) - [GetChildInfo](docs/GetChildInfo.md) - [GetExtendedCampaignOverview](docs/GetExtendedCampaignOverview.md) - [GetExtendedClient](docs/GetExtendedClient.md) diff --git a/docs/Body.md b/docs/Body.md index 1259552..071d449 100644 --- a/docs/Body.md +++ b/docs/Body.md @@ -3,17 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of task | -**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional] -**task_type_id** | **str** | Id for type of task e.g Call / Email / Meeting etc. | -**_date** | **datetime** | Task due date and time | -**notes** | **str** | Notes added to a task | [optional] -**done** | **bool** | Task marked as done | [optional] -**assign_to_id** | **str** | User id to whom task is assigned | [optional] -**contacts_ids** | **list[int]** | Contact ids for contacts linked to this task | [optional] -**deals_ids** | **list[str]** | Deal ids for deals a task is linked to | [optional] -**companies_ids** | **list[str]** | Companies ids for companies a task is linked to | [optional] -**reminder** | [**TaskReminder**](TaskReminder.md) | | [optional] +**name** | **str** | Name of company | +**attributes** | **object** | Attributes for company creation | [optional] +**country_code** | **int** | Country code if phone_number is passed in attributes. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body1.md b/docs/Body1.md index e4488ba..67d4ced 100644 --- a/docs/Body1.md +++ b/docs/Body1.md @@ -3,17 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of task | -**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional] -**task_type_id** | **str** | Id for type of task e.g Call / Email / Meeting etc. | -**_date** | **datetime** | Task date/time | -**notes** | **str** | Notes added to a task | [optional] -**done** | **bool** | Task marked as done | [optional] -**assign_to_id** | **str** | User id to whom task is assigned | [optional] -**contacts_ids** | **list[int]** | Contact ids for contacts linked to this task | [optional] -**deals_ids** | **list[str]** | Deal ids for deals a task is linked to | [optional] -**companies_ids** | **list[str]** | Companies ids for companies a task is linked to | [optional] -**reminder** | [**TaskReminder**](TaskReminder.md) | | [optional] +**name** | **str** | Name of company | [optional] +**attributes** | **object** | Attributes for company update | [optional] +**country_code** | **int** | Country code if phone_number is passed in attributes. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Body10.md b/docs/Body10.md new file mode 100644 index 0000000..54f478e --- /dev/null +++ b/docs/Body10.md @@ -0,0 +1,13 @@ +# Body10 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**visitor_id** | **str** | visitor’s ID received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a> or generated by you to <a href=\"https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\">bind existing user account to Conversations</a> | +**text** | **str** | message text | +**agent_id** | **str** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Optional if `groupId` is set. | [optional] +**group_id** | **str** | group ID. It can be found on group’s page. Optional if `agentId` is set. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body11.md b/docs/Body11.md new file mode 100644 index 0000000..7b845e7 --- /dev/null +++ b/docs/Body11.md @@ -0,0 +1,10 @@ +# Body11 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | edited message text | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body12.md b/docs/Body12.md new file mode 100644 index 0000000..740d7f2 --- /dev/null +++ b/docs/Body12.md @@ -0,0 +1,13 @@ +# Body12 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**agent_id** | **str** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). | [optional] +**received_from** | **str** | mark your messages to distinguish messages created by you from the others. | [optional] +**agent_email** | **str** | agent email. When sending online pings 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. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically. | [optional] +**agent_name** | **str** | agent name. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body2.md b/docs/Body2.md new file mode 100644 index 0000000..f4a265d --- /dev/null +++ b/docs/Body2.md @@ -0,0 +1,13 @@ +# Body2 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**link_contact_ids** | **list[int]** | Contact ids for contacts to be linked with company | [optional] +**unlink_contact_ids** | **list[int]** | Contact ids for contacts to be unlinked from company | [optional] +**link_deals_ids** | **list[str]** | Deals ids for deals to be linked with company | [optional] +**unlink_deals_ids** | **list[str]** | Deals ids for deals to be unlinked from company | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body3.md b/docs/Body3.md new file mode 100644 index 0000000..bf75749 --- /dev/null +++ b/docs/Body3.md @@ -0,0 +1,11 @@ +# Body3 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of deal | +**attributes** | **object** | Attributes fo\\r deal creation | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body4.md b/docs/Body4.md new file mode 100644 index 0000000..5758024 --- /dev/null +++ b/docs/Body4.md @@ -0,0 +1,11 @@ +# Body4 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of deal | [optional] +**attributes** | **object** | Attributes for deal update | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body5.md b/docs/Body5.md new file mode 100644 index 0000000..8c843e9 --- /dev/null +++ b/docs/Body5.md @@ -0,0 +1,13 @@ +# Body5 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**link_contact_ids** | **list[int]** | Contact ids for contacts to be linked with deal | [optional] +**unlink_contact_ids** | **list[int]** | Contact ids for contacts to be unlinked from deal | [optional] +**link_company_ids** | **list[str]** | Company ids to be linked with deal | [optional] +**unlink_company_ids** | **list[str]** | Company ids to be unlinked from deal | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body6.md b/docs/Body6.md new file mode 100644 index 0000000..cf61372 --- /dev/null +++ b/docs/Body6.md @@ -0,0 +1,20 @@ +# Body6 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of task | +**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional] +**task_type_id** | **str** | Id for type of task e.g Call / Email / Meeting etc. | +**_date** | **datetime** | Task due date and time | +**notes** | **str** | Notes added to a task | [optional] +**done** | **bool** | Task marked as done | [optional] +**assign_to_id** | **str** | User id to whom task is assigned | [optional] +**contacts_ids** | **list[int]** | Contact ids for contacts linked to this task | [optional] +**deals_ids** | **list[str]** | Deal ids for deals a task is linked to | [optional] +**companies_ids** | **list[str]** | Companies ids for companies a task is linked to | [optional] +**reminder** | [**TaskReminder**](TaskReminder.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body7.md b/docs/Body7.md new file mode 100644 index 0000000..70a6853 --- /dev/null +++ b/docs/Body7.md @@ -0,0 +1,19 @@ +# Body7 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of task | [optional] +**duration** | **int** | Duration of task in milliseconds [1 minute = 60000 ms] | [optional] +**task_type_id** | **str** | Id for type of task e.g Call / Email / Meeting etc. | [optional] +**_date** | **datetime** | Task date/time | [optional] +**notes** | **str** | Notes added to a task | [optional] +**done** | **bool** | Task marked as done | [optional] +**assign_to_id** | **str** | User id to whom task is assigned | [optional] +**contacts_ids** | **list[int]** | Contact ids for contacts linked to this task | [optional] +**deals_ids** | **list[str]** | Deal ids for deals a task is linked to | [optional] +**companies_ids** | **list[str]** | Companies ids for companies a task is linked to | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body8.md b/docs/Body8.md new file mode 100644 index 0000000..5b33a21 --- /dev/null +++ b/docs/Body8.md @@ -0,0 +1,15 @@ +# Body8 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**visitor_id** | **str** | visitor’s ID received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a> or generated by you to <a href=\"https://developers.sendinblue.com/docs/customize-the-widget#identifying-existing-users\">bind existing user account to Conversations</a> | +**text** | **str** | message text | +**agent_id** | **str** | agent ID. It can be found on agent’s page or received <a href=\"https://developers.sendinblue.com/docs/conversations-webhooks\">from a webhook</a>. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). | [optional] +**received_from** | **str** | mark your messages to distinguish messages created by you from the others. | [optional] +**agent_email** | **str** | 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. | [optional] +**agent_name** | **str** | agent name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Body9.md b/docs/Body9.md new file mode 100644 index 0000000..ac62914 --- /dev/null +++ b/docs/Body9.md @@ -0,0 +1,10 @@ +# Body9 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**text** | **str** | edited message text | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BodyVariablesItems.md b/docs/BodyVariablesItems.md new file mode 100644 index 0000000..233c544 --- /dev/null +++ b/docs/BodyVariablesItems.md @@ -0,0 +1,9 @@ +# BodyVariablesItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompaniesApi.md b/docs/CompaniesApi.md new file mode 100644 index 0000000..ee34d55 --- /dev/null +++ b/docs/CompaniesApi.md @@ -0,0 +1,424 @@ +# sib_api_v3_sdk.CompaniesApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**companies_attributes_get**](CompaniesApi.md#companies_attributes_get) | **GET** /companies/attributes | Get company attributes +[**companies_get**](CompaniesApi.md#companies_get) | **GET** /companies | Get all companies +[**companies_id_delete**](CompaniesApi.md#companies_id_delete) | **DELETE** /companies/{id} | Delete a company +[**companies_id_get**](CompaniesApi.md#companies_id_get) | **GET** /companies/{id} | Get a company +[**companies_id_patch**](CompaniesApi.md#companies_id_patch) | **PATCH** /companies/{id} | Update a company +[**companies_link_unlink_id_patch**](CompaniesApi.md#companies_link_unlink_id_patch) | **PATCH** /companies/link-unlink/{id} | Link and Unlink company with contacts and deals +[**companies_post**](CompaniesApi.md#companies_post) | **POST** /companies | Create a company + + +# **companies_attributes_get** +> CompanyAttributes companies_attributes_get() + +Get company attributes + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) + +try: + # Get company attributes + api_response = api_instance.companies_attributes_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_attributes_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CompanyAttributes**](CompanyAttributes.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_get** +> CompaniesList companies_get(filters=filters, linked_contacts_ids=linked_contacts_ids, linked_deals_ids=linked_deals_ids, page=page, limit=limit, sort=sort, sort_by=sort_by) + +Get all companies + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +filters = 'filters_example' # str | Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} (optional) +linked_contacts_ids = 789 # int | Filter by linked contacts ids (optional) +linked_deals_ids = 'linked_deals_ids_example' # str | Filter by linked deals ids (optional) +page = 789 # int | Index of the first document of the page (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +sort = 'sort_example' # str | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional) +sort_by = 'sort_by_example' # str | The field used to sort field names. (optional) + +try: + # Get all companies + api_response = api_instance.companies_get(filters=filters, linked_contacts_ids=linked_contacts_ids, linked_deals_ids=linked_deals_ids, page=page, limit=limit, sort=sort, sort_by=sort_by) + pprint(api_response) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters** | **str**| Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} | [optional] + **linked_contacts_ids** | **int**| Filter by linked contacts ids | [optional] + **linked_deals_ids** | **str**| Filter by linked deals ids | [optional] + **page** | **int**| Index of the first document of the page | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **sort** | **str**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional] + **sort_by** | **str**| The field used to sort field names. | [optional] + +### Return type + +[**CompaniesList**](CompaniesList.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_id_delete** +> companies_id_delete(id) + +Delete a company + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Delete a company + api_instance.companies_id_delete(id) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_id_get** +> Company companies_id_get(id) + +Get a company + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Get a company + api_response = api_instance.companies_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**Company**](Company.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_id_patch** +> Company companies_id_patch(id, body) + +Update a company + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body1() # Body1 | Updated company details. + +try: + # Update a company + api_response = api_instance.companies_id_patch(id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body1**](Body1.md)| Updated company details. | + +### Return type + +[**Company**](Company.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_link_unlink_id_patch** +> companies_link_unlink_id_patch(id, body) + +Link and Unlink company with contacts and deals + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body2() # Body2 | Linked / Unlinked contacts and deals ids. + +try: + # Link and Unlink company with contacts and deals + api_instance.companies_link_unlink_id_patch(id, body) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_link_unlink_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body2**](Body2.md)| Linked / Unlinked contacts and deals ids. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **companies_post** +> InlineResponse200 companies_post(body) + +Create a company + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.CompaniesApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body() # Body | Company create data. + +try: + # Create a company + api_response = api_instance.companies_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling CompaniesApi->companies_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body**](Body.md)| Company create data. | + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/CompaniesList.md b/docs/CompaniesList.md new file mode 100644 index 0000000..8bd8751 --- /dev/null +++ b/docs/CompaniesList.md @@ -0,0 +1,10 @@ +# CompaniesList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[Company]**](Company.md) | List of compaies | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Company.md b/docs/Company.md new file mode 100644 index 0000000..be8dfca --- /dev/null +++ b/docs/Company.md @@ -0,0 +1,13 @@ +# Company + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique company id | [optional] +**attributes** | **object** | Company attributes with values | [optional] +**linked_contacts_ids** | **list[int]** | Contact ids for contacts linked to this company | [optional] +**linked_deals_ids** | **list[str]** | Deals ids for companies linked to this company | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompanyAttributes.md b/docs/CompanyAttributes.md new file mode 100644 index 0000000..ec083e8 --- /dev/null +++ b/docs/CompanyAttributes.md @@ -0,0 +1,9 @@ +# CompanyAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CompanyAttributesInner.md b/docs/CompanyAttributesInner.md new file mode 100644 index 0000000..f14c5fb --- /dev/null +++ b/docs/CompanyAttributesInner.md @@ -0,0 +1,14 @@ +# CompanyAttributesInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**internal_name** | **str** | | [optional] +**label** | **str** | | [optional] +**attribute_type_name** | **str** | | [optional] +**attribute_options** | **list[object]** | | [optional] +**is_required** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ComponentItems.md b/docs/ComponentItems.md new file mode 100644 index 0000000..76f760d --- /dev/null +++ b/docs/ComponentItems.md @@ -0,0 +1,11 @@ +# ComponentItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**text** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index b15d55f..d547334 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -688,8 +688,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) identifier = 'identifier_example' # str | Email (urlencoded) OR ID of the contact OR its SMS attribute value -start_date = NULL # object | **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) -end_date = NULL # object | **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. (optional) +start_date = 'start_date_example' # str | **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate (optional) +end_date = 'end_date_example' # str | **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. (optional) try: # Get a contact's details @@ -704,8 +704,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **identifier** | **str**| Email (urlencoded) OR ID of the contact OR its SMS attribute value | - **start_date** | [**object**](.md)| **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional] - **end_date** | [**object**](.md)| **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | [optional] + **start_date** | **str**| **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional] + **end_date** | **str**| **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | [optional] ### Return type @@ -784,7 +784,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_contacts** -> GetContacts get_contacts(limit=limit, offset=offset, modified_since=modified_since, sort=sort) +> GetContacts get_contacts(limit=limit, offset=offset, modified_since=modified_since, created_since=created_since, sort=sort) Get all the contacts @@ -812,11 +812,12 @@ api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration limit = 50 # int | Number of documents per page (optional) (default to 50) offset = 0 # int | Index of the first document of the page (optional) (default to 0) modified_since = 'modified_since_example' # str | Filter (urlencoded) the contacts 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. (optional) +created_since = 'created_since_example' # str | Filter (urlencoded) the contacts 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. (optional) sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) try: # Get all the contacts - api_response = api_instance.get_contacts(limit=limit, offset=offset, modified_since=modified_since, sort=sort) + api_response = api_instance.get_contacts(limit=limit, offset=offset, modified_since=modified_since, created_since=created_since, sort=sort) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->get_contacts: %s\n" % e) @@ -829,6 +830,7 @@ Name | Type | Description | Notes **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] **modified_since** | **str**| Filter (urlencoded) the contacts 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. | [optional] + **created_since** | **str**| Filter (urlencoded) the contacts 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. | [optional] **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] ### Return type diff --git a/docs/ConversationsApi.md b/docs/ConversationsApi.md new file mode 100644 index 0000000..57e2a19 --- /dev/null +++ b/docs/ConversationsApi.md @@ -0,0 +1,539 @@ +# sib_api_v3_sdk.ConversationsApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**conversations_agent_online_ping_post**](ConversationsApi.md#conversations_agent_online_ping_post) | **POST** /conversations/agentOnlinePing | Sets agent’s status to online for 2-3 minutes +[**conversations_messages_id_delete**](ConversationsApi.md#conversations_messages_id_delete) | **DELETE** /conversations/messages/{id} | Delete a message sent by an agent +[**conversations_messages_id_get**](ConversationsApi.md#conversations_messages_id_get) | **GET** /conversations/messages/{id} | Get a message +[**conversations_messages_id_put**](ConversationsApi.md#conversations_messages_id_put) | **PUT** /conversations/messages/{id} | Update a message sent by an agent +[**conversations_messages_post**](ConversationsApi.md#conversations_messages_post) | **POST** /conversations/messages | Send a message as an agent +[**conversations_pushed_messages_id_delete**](ConversationsApi.md#conversations_pushed_messages_id_delete) | **DELETE** /conversations/pushedMessages/{id} | Delete an automated message +[**conversations_pushed_messages_id_get**](ConversationsApi.md#conversations_pushed_messages_id_get) | **GET** /conversations/pushedMessages/{id} | Get an automated message +[**conversations_pushed_messages_id_put**](ConversationsApi.md#conversations_pushed_messages_id_put) | **PUT** /conversations/pushedMessages/{id} | Update an automated message +[**conversations_pushed_messages_post**](ConversationsApi.md#conversations_pushed_messages_post) | **POST** /conversations/pushedMessages | Send an automated message to a visitor + + +# **conversations_agent_online_ping_post** +> conversations_agent_online_ping_post(body) + +Sets agent’s status to online for 2-3 minutes + +We recommend pinging this endpoint every minute for as long as the agent has to be considered online. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body12() # Body12 | Agent fields. + +try: + # Sets agent’s status to online for 2-3 minutes + api_instance.conversations_agent_online_ping_post(body) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_agent_online_ping_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body12**](Body12.md)| Agent fields. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_messages_id_delete** +> conversations_messages_id_delete(id) + +Delete a message sent by an agent + +Only agents’ messages can be deleted. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message + +try: + # Delete a message sent by an agent + api_instance.conversations_messages_id_delete(id) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_messages_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_messages_id_get** +> ConversationsMessage conversations_messages_id_get(id) + +Get a message + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message + +try: + # Get a message + api_response = api_instance.conversations_messages_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_messages_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message | + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_messages_id_put** +> ConversationsMessage conversations_messages_id_put(id, body=body) + +Update a message sent by an agent + +Only agents’ messages can be edited. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message +body = sib_api_v3_sdk.Body9() # Body9 | (optional) + +try: + # Update a message sent by an agent + api_response = api_instance.conversations_messages_id_put(id, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_messages_id_put: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message | + **body** | [**Body9**](Body9.md)| | [optional] + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_messages_post** +> ConversationsMessage conversations_messages_post(body) + +Send a message as an agent + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body8() # Body8 | Message fields. + +try: + # Send a message as an agent + api_response = api_instance.conversations_messages_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_messages_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body8**](Body8.md)| Message fields. | + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_pushed_messages_id_delete** +> conversations_pushed_messages_id_delete(id) + +Delete an automated message + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message + +try: + # Delete an automated message + api_instance.conversations_pushed_messages_id_delete(id) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_pushed_messages_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_pushed_messages_id_get** +> ConversationsMessage conversations_pushed_messages_id_get(id) + +Get an automated message + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message sent previously + +try: + # Get an automated message + api_response = api_instance.conversations_pushed_messages_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_pushed_messages_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message sent previously | + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_pushed_messages_id_put** +> ConversationsMessage conversations_pushed_messages_id_put(id, body) + +Update an automated message + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | ID of the message +body = sib_api_v3_sdk.Body11() # Body11 | + +try: + # Update an automated message + api_response = api_instance.conversations_pushed_messages_id_put(id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_pushed_messages_id_put: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| ID of the message | + **body** | [**Body11**](Body11.md)| | + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **conversations_pushed_messages_post** +> ConversationsMessage conversations_pushed_messages_post(body) + +Send an automated message to a visitor + +Example of automated messages: order status, announce new features in your web app, etc. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ConversationsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body10() # Body10 | + +try: + # Send an automated message to a visitor + api_response = api_instance.conversations_pushed_messages_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling ConversationsApi->conversations_pushed_messages_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body10**](Body10.md)| | + +### Return type + +[**ConversationsMessage**](ConversationsMessage.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/ConversationsMessage.md b/docs/ConversationsMessage.md new file mode 100644 index 0000000..14e63e3 --- /dev/null +++ b/docs/ConversationsMessage.md @@ -0,0 +1,19 @@ +# ConversationsMessage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Message ID. It can be used for further manipulations with the message. | [optional] +**type** | **str** | `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages. | [optional] +**text** | **str** | Message text or name of the attached file | [optional] +**visitor_id** | **str** | visitor’s ID | [optional] +**agent_id** | **str** | ID of the agent on whose behalf the message was sent (only in messages sent by an agent). | [optional] +**agent_name** | **str** | Agent’s name as displayed to the visitor. Only in the messages sent by an agent. | [optional] +**created_at** | **int** | Timestamp in milliseconds. | [optional] +**is_pushed** | **bool** | `true` for pushed messages | [optional] +**received_from** | **str** | In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop. | [optional] +**file** | [**ConversationsMessageFile**](ConversationsMessageFile.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConversationsMessageFile.md b/docs/ConversationsMessageFile.md new file mode 100644 index 0000000..59fc3db --- /dev/null +++ b/docs/ConversationsMessageFile.md @@ -0,0 +1,14 @@ +# ConversationsMessageFile + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**filename** | **str** | Name of the file | [optional] +**size** | **int** | Size in bytes | [optional] +**is_image** | **bool** | Whether the file is an image | [optional] +**url** | **str** | URL of the file | [optional] +**image_info** | [**ConversationsMessageFileImageInfo**](ConversationsMessageFileImageInfo.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ConversationsMessageFileImageInfo.md b/docs/ConversationsMessageFileImageInfo.md new file mode 100644 index 0000000..7d571d7 --- /dev/null +++ b/docs/ConversationsMessageFileImageInfo.md @@ -0,0 +1,12 @@ +# ConversationsMessageFileImageInfo + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**width** | **int** | Width of the image | [optional] +**height** | **int** | height of the image | [optional] +**preview_url** | **str** | URL of the preview | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateApiKeyRequest.md b/docs/CreateApiKeyRequest.md new file mode 100644 index 0000000..44c0c29 --- /dev/null +++ b/docs/CreateApiKeyRequest.md @@ -0,0 +1,11 @@ +# CreateApiKeyRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Id of the sub-account organization | +**name** | **str** | Name of the API key | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateApiKeyResponse.md b/docs/CreateApiKeyResponse.md new file mode 100644 index 0000000..3c27ce8 --- /dev/null +++ b/docs/CreateApiKeyResponse.md @@ -0,0 +1,11 @@ +# CreateApiKeyResponse + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **str** | Status of the API operation. | [optional] +**key** | **str** | API Key | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAttribute.md b/docs/CreateAttribute.md index 3ca7ca5..4c3041a 100644 --- a/docs/CreateAttribute.md +++ b/docs/CreateAttribute.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **str** | Value of the attribute. Use only if the attribute's category is 'calculated' or 'global' | [optional] +**is_recurring** | **bool** | Type of the attribute. Use only if the attribute's category is 'calculated' or 'global' | [optional] **enumeration** | [**list[CreateAttributeEnumeration]**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute's category is \"category\". For example, [{\"value\":1, \"label\":\"male\"}, {\"value\":2, \"label\":\"female\"}] | [optional] **type** | **str** | Type of the attribute. Use only if the attribute's category is 'normal', 'category' or 'transactional' ( type 'boolean' is only available if the category is 'normal' attribute, type 'id' is only available if the category is 'transactional' attribute & type 'category' is only available if the category is 'category' attribute ) | [optional] diff --git a/docs/CreateCategoryModel.md b/docs/CreateCategoryModel.md new file mode 100644 index 0000000..ed98c76 --- /dev/null +++ b/docs/CreateCategoryModel.md @@ -0,0 +1,10 @@ +# CreateCategoryModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | ID of the category when a new category is created | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateContact.md b/docs/CreateContact.md index 3114d41..16e71e4 100644 --- a/docs/CreateContact.md +++ b/docs/CreateContact.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | 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] +**ext_id** | **str** | Pass your own Id to create a contact. | [optional] **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 SendinBlue account. For eg. {\"FNAME\":\"Elly\", \"LNAME\":\"Roger\"} | [optional] **email_blacklisted** | **bool** | Set this field to blacklist the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set this field to blacklist the contact for SMS (smsBlacklisted = true) | [optional] diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index 4a19807..54558e9 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -31,6 +31,8 @@ Name | Type | Description | Notes **ip_warmup_enable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to False] **initial_quota** | **int** | Mandatory if ipWarmupEnable is set to true. Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional] **increase_rate** | **int** | Mandatory if ipWarmupEnable is set to true. Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional] +**unsubscription_page_id** | **str** | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used. | [optional] +**update_form_id** | **str** | Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateEmailCampaignRecipients.md b/docs/CreateEmailCampaignRecipients.md index 7d2d73f..8f494f5 100644 --- a/docs/CreateEmailCampaignRecipients.md +++ b/docs/CreateEmailCampaignRecipients.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exclusion_list_ids** | **list[int]** | List ids to exclude from the campaign | [optional] **list_ids** | **list[int]** | Mandatory if scheduledAt is not empty. List Ids to send the campaign to | [optional] +**segment_ids** | **list[int]** | Mandatory if listIds are not used. Segment ids to send the campaign to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateExternalFeed.md b/docs/CreateExternalFeed.md new file mode 100644 index 0000000..7f18ea9 --- /dev/null +++ b/docs/CreateExternalFeed.md @@ -0,0 +1,18 @@ +# CreateExternalFeed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the feed | +**url** | **str** | URL of the feed | +**auth_type** | **str** | Auth type of the feed: * `basic` * `token` * `noAuth` | [optional] [default to 'noAuth'] +**username** | **str** | Username for authType `basic` | [optional] +**password** | **str** | Password for authType `basic` | [optional] +**token** | **str** | Token for authType `token` | [optional] +**headers** | [**list[GetExternalFeedByUUIDHeaders]**](GetExternalFeedByUUIDHeaders.md) | Custom headers for the feed | [optional] +**max_retries** | **int** | Maximum number of retries on the feed url | [optional] +**cache** | **bool** | Toggle caching of feed url response | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateProductModel.md b/docs/CreateProductModel.md new file mode 100644 index 0000000..971ea54 --- /dev/null +++ b/docs/CreateProductModel.md @@ -0,0 +1,10 @@ +# CreateProductModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | ID of the Product when a new product is created | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateSmsCampaign.md b/docs/CreateSmsCampaign.md index e5d7e2b..04b0da0 100644 --- a/docs/CreateSmsCampaign.md +++ b/docs/CreateSmsCampaign.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] **scheduled_at** | **str** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] **unicode_enabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to False] +**organisation_prefix** | **str** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [optional] +**unsubscribe_instruction** | **str** | Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/CreateUpdateBatchCategory.md b/docs/CreateUpdateBatchCategory.md new file mode 100644 index 0000000..8f352b7 --- /dev/null +++ b/docs/CreateUpdateBatchCategory.md @@ -0,0 +1,11 @@ +# CreateUpdateBatchCategory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | [**list[CreateUpdateCategories]**](CreateUpdateCategories.md) | array of categories objects | +**update_enabled** | **bool** | Facilitate to update the existing categories in the same request (updateEnabled = true) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateBatchCategoryModel.md b/docs/CreateUpdateBatchCategoryModel.md new file mode 100644 index 0000000..6602500 --- /dev/null +++ b/docs/CreateUpdateBatchCategoryModel.md @@ -0,0 +1,11 @@ +# CreateUpdateBatchCategoryModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_count** | **int** | Number of the new created categories | [optional] +**updated_count** | **int** | Number of the existing categories updated | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateBatchProducts.md b/docs/CreateUpdateBatchProducts.md new file mode 100644 index 0000000..e797532 --- /dev/null +++ b/docs/CreateUpdateBatchProducts.md @@ -0,0 +1,11 @@ +# CreateUpdateBatchProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**products** | [**list[CreateUpdateProducts]**](CreateUpdateProducts.md) | array of products objects | +**update_enabled** | **bool** | Facilitate to update the existing categories in the same request (updateEnabled = true) | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateBatchProductsModel.md b/docs/CreateUpdateBatchProductsModel.md new file mode 100644 index 0000000..f74f961 --- /dev/null +++ b/docs/CreateUpdateBatchProductsModel.md @@ -0,0 +1,11 @@ +# CreateUpdateBatchProductsModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_count** | **int** | Number of the new created products | [optional] +**updated_count** | **int** | Number of the existing products updated | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateCategories.md b/docs/CreateUpdateCategories.md new file mode 100644 index 0000000..307fbc8 --- /dev/null +++ b/docs/CreateUpdateCategories.md @@ -0,0 +1,13 @@ +# CreateUpdateCategories + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique Category ID as saved in the shop | +**name** | **str** | **Mandatory in case of creation**. Name of the Category, as displayed in the shop | [optional] +**url** | **str** | URL to the category | [optional] +**deleted_at** | **str** | UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateCategory.md b/docs/CreateUpdateCategory.md new file mode 100644 index 0000000..91aa4c2 --- /dev/null +++ b/docs/CreateUpdateCategory.md @@ -0,0 +1,14 @@ +# CreateUpdateCategory + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique Category ID as saved in the shop | +**name** | **str** | **Mandatory in case of creation**. Name of the Category, as displayed in the shop | [optional] +**url** | **str** | URL to the category | [optional] +**update_enabled** | **bool** | Facilitate to update the existing category in the same request (updateEnabled = true) | [optional] [default to False] +**deleted_at** | **str** | UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateProduct.md b/docs/CreateUpdateProduct.md new file mode 100644 index 0000000..7749bae --- /dev/null +++ b/docs/CreateUpdateProduct.md @@ -0,0 +1,20 @@ +# CreateUpdateProduct + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Product ID for which you requested the details | +**name** | **str** | Mandatory in case of creation**. Name of the product for which you requested the details | +**url** | **str** | URL to the product | [optional] +**image_url** | **str** | Absolute URL to the cover image of the product | [optional] +**sku** | **str** | Product identifier from the shop | [optional] +**price** | **float** | Price of the product | [optional] +**categories** | **list[str]** | Category ID-s of the product | [optional] +**parent_id** | **str** | Parent product id of the product | [optional] +**meta_info** | **dict(str, str)** | Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. | [optional] +**update_enabled** | **bool** | Facilitate to update the existing category in the same request (updateEnabled = true) | [optional] [default to False] +**deleted_at** | **str** | UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateUpdateProducts.md b/docs/CreateUpdateProducts.md new file mode 100644 index 0000000..3d89a8e --- /dev/null +++ b/docs/CreateUpdateProducts.md @@ -0,0 +1,19 @@ +# CreateUpdateProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Product ID for which you requested the details | +**name** | **str** | Mandatory in case of creation**. Name of the product for which you requested the details | +**url** | **str** | URL to the product | [optional] +**image_url** | **str** | Absolute URL to the cover image of the product | [optional] +**sku** | **str** | Product identifier from the shop | [optional] +**price** | **float** | Price of the product | [optional] +**categories** | **list[str]** | Category ID-s of the product | [optional] +**parent_id** | **str** | Parent product id of the product | [optional] +**meta_info** | **dict(str, str)** | Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. | [optional] +**deleted_at** | **str** | UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreatedBatchId.md b/docs/CreatedBatchId.md new file mode 100644 index 0000000..793c193 --- /dev/null +++ b/docs/CreatedBatchId.md @@ -0,0 +1,10 @@ +# CreatedBatchId + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batch_id** | **float** | Batch ID of the request | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Deal.md b/docs/Deal.md new file mode 100644 index 0000000..f13eacc --- /dev/null +++ b/docs/Deal.md @@ -0,0 +1,13 @@ +# Deal + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique deal id | [optional] +**attributes** | **object** | Deal attributes with values | [optional] +**linked_contacts_ids** | **list[int]** | Contact ids for contacts linked to this deal | [optional] +**linked_companies_ids** | **list[str]** | Companies ids for companies linked to this deal | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DealAttributes.md b/docs/DealAttributes.md new file mode 100644 index 0000000..babf754 --- /dev/null +++ b/docs/DealAttributes.md @@ -0,0 +1,9 @@ +# DealAttributes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DealAttributesInner.md b/docs/DealAttributesInner.md new file mode 100644 index 0000000..da6119b --- /dev/null +++ b/docs/DealAttributesInner.md @@ -0,0 +1,14 @@ +# DealAttributesInner + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**internal_name** | **str** | | [optional] +**label** | **str** | | [optional] +**attribute_type_name** | **str** | | [optional] +**attribute_options** | **list[object]** | | [optional] +**is_required** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DealsApi.md b/docs/DealsApi.md new file mode 100644 index 0000000..03abf72 --- /dev/null +++ b/docs/DealsApi.md @@ -0,0 +1,477 @@ +# sib_api_v3_sdk.DealsApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_attributes_deals_get**](DealsApi.md#crm_attributes_deals_get) | **GET** /crm/attributes/deals | Get deal attributes +[**crm_deals_get**](DealsApi.md#crm_deals_get) | **GET** /crm/deals | Get all deals +[**crm_deals_id_delete**](DealsApi.md#crm_deals_id_delete) | **DELETE** /crm/deals/{id} | Delete a deal +[**crm_deals_id_get**](DealsApi.md#crm_deals_id_get) | **GET** /crm/deals/{id} | Get a deal +[**crm_deals_id_patch**](DealsApi.md#crm_deals_id_patch) | **PATCH** /crm/deals/{id} | Update a deal +[**crm_deals_link_unlink_id_patch**](DealsApi.md#crm_deals_link_unlink_id_patch) | **PATCH** /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies +[**crm_deals_post**](DealsApi.md#crm_deals_post) | **POST** /crm/deals | Create a deal +[**crm_pipeline_details_get**](DealsApi.md#crm_pipeline_details_get) | **GET** /crm/pipeline/details | Get pipeline stages + + +# **crm_attributes_deals_get** +> DealAttributes crm_attributes_deals_get() + +Get deal attributes + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) + +try: + # Get deal attributes + api_response = api_instance.crm_attributes_deals_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DealsApi->crm_attributes_deals_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**DealAttributes**](DealAttributes.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_get** +> DealsList crm_deals_get(filters_attributes=filters_attributes, filters_linked_companies_ids=filters_linked_companies_ids, filters_linked_contacts_ids=filters_linked_contacts_ids, offset=offset, limit=limit, sort=sort, sort_by=sort_by) + +Get all deals + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +filters_attributes = 'filters_attributes_example' # str | Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" (optional) +filters_linked_companies_ids = 'filters_linked_companies_ids_example' # str | Filter by linked companies ids (optional) +filters_linked_contacts_ids = 'filters_linked_contacts_ids_example' # str | Filter by linked companies ids (optional) +offset = 789 # int | Index of the first document of the page (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +sort = 'sort_example' # str | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional) +sort_by = 'sort_by_example' # str | The field used to sort field names. (optional) + +try: + # Get all deals + api_response = api_instance.crm_deals_get(filters_attributes=filters_attributes, filters_linked_companies_ids=filters_linked_companies_ids, filters_linked_contacts_ids=filters_linked_contacts_ids, offset=offset, limit=limit, sort=sort, sort_by=sort_by) + pprint(api_response) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filters_attributes** | **str**| Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" | [optional] + **filters_linked_companies_ids** | **str**| Filter by linked companies ids | [optional] + **filters_linked_contacts_ids** | **str**| Filter by linked companies ids | [optional] + **offset** | **int**| Index of the first document of the page | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **sort** | **str**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional] + **sort_by** | **str**| The field used to sort field names. | [optional] + +### Return type + +[**DealsList**](DealsList.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_id_delete** +> crm_deals_id_delete(id) + +Delete a deal + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Delete a deal + api_instance.crm_deals_id_delete(id) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_id_get** +> Deal crm_deals_id_get(id) + +Get a deal + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Get a deal + api_response = api_instance.crm_deals_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**Deal**](Deal.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_id_patch** +> crm_deals_id_patch(id, body) + +Update a deal + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body4() # Body4 | Updated deal details. + +try: + # Update a deal + api_instance.crm_deals_id_patch(id, body) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body4**](Body4.md)| Updated deal details. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_link_unlink_id_patch** +> crm_deals_link_unlink_id_patch(id, body) + +Link and Unlink a deal with contacts and companies + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body5() # Body5 | Linked / Unlinked contacts and companies ids. + +try: + # Link and Unlink a deal with contacts and companies + api_instance.crm_deals_link_unlink_id_patch(id, body) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_link_unlink_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body5**](Body5.md)| Linked / Unlinked contacts and companies ids. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_deals_post** +> InlineResponse201 crm_deals_post(body) + +Create a deal + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body3() # Body3 | Deal create data. + +try: + # Create a deal + api_response = api_instance.crm_deals_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DealsApi->crm_deals_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body3**](Body3.md)| Deal create data. | + +### Return type + +[**InlineResponse201**](InlineResponse201.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_pipeline_details_get** +> Pipeline crm_pipeline_details_get() + +Get pipeline stages + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.DealsApi(sib_api_v3_sdk.ApiClient(configuration)) + +try: + # Get pipeline stages + api_response = api_instance.crm_pipeline_details_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling DealsApi->crm_pipeline_details_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**Pipeline**](Pipeline.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/DealsList.md b/docs/DealsList.md new file mode 100644 index 0000000..7e1f8d9 --- /dev/null +++ b/docs/DealsList.md @@ -0,0 +1,10 @@ +# DealsList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**items** | [**list[Deal]**](Deal.md) | List of deals | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/EcommerceApi.md b/docs/EcommerceApi.md new file mode 100644 index 0000000..8b9c6ea --- /dev/null +++ b/docs/EcommerceApi.md @@ -0,0 +1,665 @@ +# sib_api_v3_sdk.EcommerceApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_batch_order**](EcommerceApi.md#create_batch_order) | **POST** /orders/status/batch | Create orders in batch +[**create_order**](EcommerceApi.md#create_order) | **POST** /orders/status | Managing the status of the order +[**create_update_batch_category**](EcommerceApi.md#create_update_batch_category) | **POST** /categories/batch | Create categories in batch +[**create_update_batch_products**](EcommerceApi.md#create_update_batch_products) | **POST** /products/batch | Create products in batch +[**create_update_category**](EcommerceApi.md#create_update_category) | **POST** /categories | Create/Update a category +[**create_update_product**](EcommerceApi.md#create_update_product) | **POST** /products | Create/Update a product +[**ecommerce_activate_post**](EcommerceApi.md#ecommerce_activate_post) | **POST** /ecommerce/activate | Activate the eCommerce app +[**get_categories**](EcommerceApi.md#get_categories) | **GET** /categories | Return all your categories +[**get_category_info**](EcommerceApi.md#get_category_info) | **GET** /categories/{id} | Get a category details +[**get_product_info**](EcommerceApi.md#get_product_info) | **GET** /products/{id} | Get a product's details +[**get_products**](EcommerceApi.md#get_products) | **GET** /products | Return all your products + + +# **create_batch_order** +> create_batch_order(order_batch) + +Create orders in batch + +Create multiple orders at one time instead of one order at a time + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +order_batch = sib_api_v3_sdk.OrderBatch() # OrderBatch | + +try: + # Create orders in batch + api_instance.create_batch_order(order_batch) +except ApiException as e: + print("Exception when calling EcommerceApi->create_batch_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order_batch** | [**OrderBatch**](OrderBatch.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_order** +> create_order(order) + +Managing the status of the order + +Manages the transactional status of the order + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +order = sib_api_v3_sdk.Order() # Order | + +try: + # Managing the status of the order + api_instance.create_order(order) +except ApiException as e: + print("Exception when calling EcommerceApi->create_order: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **order** | [**Order**](Order.md)| | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_update_batch_category** +> CreateUpdateBatchCategoryModel create_update_batch_category(create_update_batch_category) + +Create categories in batch + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +create_update_batch_category = sib_api_v3_sdk.CreateUpdateBatchCategory() # CreateUpdateBatchCategory | Values to create a batch of categories + +try: + # Create categories in batch + api_response = api_instance.create_update_batch_category(create_update_batch_category) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->create_update_batch_category: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_update_batch_category** | [**CreateUpdateBatchCategory**](CreateUpdateBatchCategory.md)| Values to create a batch of categories | + +### Return type + +[**CreateUpdateBatchCategoryModel**](CreateUpdateBatchCategoryModel.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_update_batch_products** +> CreateUpdateBatchProductsModel create_update_batch_products(create_update_batch_products) + +Create products in batch + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +create_update_batch_products = sib_api_v3_sdk.CreateUpdateBatchProducts() # CreateUpdateBatchProducts | Values to create a batch of products + +try: + # Create products in batch + api_response = api_instance.create_update_batch_products(create_update_batch_products) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->create_update_batch_products: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_update_batch_products** | [**CreateUpdateBatchProducts**](CreateUpdateBatchProducts.md)| Values to create a batch of products | + +### Return type + +[**CreateUpdateBatchProductsModel**](CreateUpdateBatchProductsModel.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_update_category** +> CreateCategoryModel create_update_category(create_update_category) + +Create/Update a category + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +create_update_category = sib_api_v3_sdk.CreateUpdateCategory() # CreateUpdateCategory | Values to create/update a category + +try: + # Create/Update a category + api_response = api_instance.create_update_category(create_update_category) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->create_update_category: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_update_category** | [**CreateUpdateCategory**](CreateUpdateCategory.md)| Values to create/update a category | + +### Return type + +[**CreateCategoryModel**](CreateCategoryModel.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **create_update_product** +> CreateProductModel create_update_product(create_update_product) + +Create/Update a product + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +create_update_product = sib_api_v3_sdk.CreateUpdateProduct() # CreateUpdateProduct | Values to create/update a product + +try: + # Create/Update a product + api_response = api_instance.create_update_product(create_update_product) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->create_update_product: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_update_product** | [**CreateUpdateProduct**](CreateUpdateProduct.md)| Values to create/update a product | + +### Return type + +[**CreateProductModel**](CreateProductModel.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ecommerce_activate_post** +> ecommerce_activate_post() + +Activate the eCommerce app + +Getting access to Sendinblue eCommerce. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) + +try: + # Activate the eCommerce app + api_instance.ecommerce_activate_post() +except ApiException as e: + print("Exception when calling EcommerceApi->ecommerce_activate_post: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_categories** +> GetCategories get_categories(limit=limit, offset=offset, sort=sort, ids=ids, name=name) + +Return all your categories + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +limit = 50 # int | Number of documents per page (optional) (default to 50) +offset = 0 # int | Index of the first document in the page (optional) (default to 0) +sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) +ids = ['ids_example'] # list[str] | Filter by category ids (optional) +name = 'name_example' # str | Filter by category name (optional) + +try: + # Return all your categories + api_response = api_instance.get_categories(limit=limit, offset=offset, sort=sort, ids=ids, name=name) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->get_categories: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **offset** | **int**| Index of the first document in the page | [optional] [default to 0] + **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] + **ids** | [**list[str]**](str.md)| Filter by category ids | [optional] + **name** | **str**| Filter by category name | [optional] + +### Return type + +[**GetCategories**](GetCategories.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_category_info** +> GetCategoryDetails get_category_info(id) + +Get a category details + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | Category ID + +try: + # Get a category details + api_response = api_instance.get_category_info(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->get_category_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Category ID | + +### Return type + +[**GetCategoryDetails**](GetCategoryDetails.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_product_info** +> GetProductDetails get_product_info(id) + +Get a product's details + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | Product ID + +try: + # Get a product's details + api_response = api_instance.get_product_info(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->get_product_info: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Product ID | + +### Return type + +[**GetProductDetails**](GetProductDetails.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_products** +> GetProducts get_products(limit=limit, offset=offset, sort=sort, ids=ids, name=name, price=price, categories=categories) + +Return all your products + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.EcommerceApi(sib_api_v3_sdk.ApiClient(configuration)) +limit = 50 # int | Number of documents per page (optional) (default to 50) +offset = 0 # int | Index of the first document in the page (optional) (default to 0) +sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) +ids = ['ids_example'] # list[str] | Filter by product ids (optional) +name = 'name_example' # str | Filter by product name, minimum 3 characters should be present for search (optional) +price = ['price_example'] # list[str] | Filter by product price, like price[lte] (optional) +categories = ['categories_example'] # list[str] | Filter by category ids (optional) + +try: + # Return all your products + api_response = api_instance.get_products(limit=limit, offset=offset, sort=sort, ids=ids, name=name, price=price, categories=categories) + pprint(api_response) +except ApiException as e: + print("Exception when calling EcommerceApi->get_products: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **offset** | **int**| Index of the first document in the page | [optional] [default to 0] + **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] + **ids** | [**list[str]**](str.md)| Filter by product ids | [optional] + **name** | **str**| Filter by product name, minimum 3 characters should be present for search | [optional] + **price** | [**list[str]**](str.md)| Filter by product price, like price[lte] | [optional] + **categories** | [**list[str]**](str.md)| Filter by category ids | [optional] + +### Return type + +[**GetProducts**](GetProducts.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/EmailCampaignsApi.md b/docs/EmailCampaignsApi.md index 741e47e..bea9660 100644 --- a/docs/EmailCampaignsApi.md +++ b/docs/EmailCampaignsApi.md @@ -251,7 +251,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_email_campaign** -> GetEmailCampaign get_email_campaign(campaign_id) +> GetEmailCampaign get_email_campaign(campaign_id, statistics=statistics) Get an email campaign report @@ -277,10 +277,11 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) campaign_id = 789 # int | Id of the campaign +statistics = 'statistics_example' # str | Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. (optional) try: # Get an email campaign report - api_response = api_instance.get_email_campaign(campaign_id) + api_response = api_instance.get_email_campaign(campaign_id, statistics=statistics) pprint(api_response) except ApiException as e: print("Exception when calling EmailCampaignsApi->get_email_campaign: %s\n" % e) @@ -291,6 +292,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **campaign_id** | **int**| Id of the campaign | + **statistics** | **str**| Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. | [optional] ### Return type @@ -308,7 +310,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **get_email_campaigns** -> GetEmailCampaigns get_email_campaigns(type=type, status=status, start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort) +> GetEmailCampaigns get_email_campaigns(type=type, status=status, statistics=statistics, start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort, exclude_html_content=exclude_html_content) Return all your created email campaigns @@ -335,15 +337,17 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' api_instance = sib_api_v3_sdk.EmailCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) type = 'type_example' # str | Filter on the type of the campaigns (optional) status = 'status_example' # str | Filter on the status of the campaign (optional) +statistics = 'statistics_example' # str | Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. (optional) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) limit = 50 # int | Number of documents per page (optional) (default to 50) offset = 0 # int | Index of the first document in the page (optional) (default to 0) sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) +exclude_html_content = true # bool | Use this flag to exclude htmlContent from the response body. If set to **true**, htmlContent field will be returned as empty string in the response body (optional) try: # Return all your created email campaigns - api_response = api_instance.get_email_campaigns(type=type, status=status, start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort) + api_response = api_instance.get_email_campaigns(type=type, status=status, statistics=statistics, start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort, exclude_html_content=exclude_html_content) pprint(api_response) except ApiException as e: print("Exception when calling EmailCampaignsApi->get_email_campaigns: %s\n" % e) @@ -355,11 +359,13 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type** | **str**| Filter on the type of the campaigns | [optional] **status** | **str**| Filter on the status of the campaign | [optional] + **statistics** | **str**| Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. | [optional] **start_date** | **str**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] **end_date** | **str**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] **limit** | **int**| Number of documents per page | [optional] [default to 50] **offset** | **int**| Index of the first document in the page | [optional] [default to 0] **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] + **exclude_html_content** | **bool**| Use this flag to exclude htmlContent from the response body. If set to **true**, htmlContent field will be returned as empty string in the response body | [optional] ### Return type @@ -726,7 +732,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **upload_image_to_gallery** -> upload_image_to_gallery(upload_image) +> UploadImageModel upload_image_to_gallery(upload_image) Upload an image to your account's image gallery @@ -755,7 +761,8 @@ upload_image = sib_api_v3_sdk.UploadImageToGallery() # UploadImageToGallery | Pa try: # Upload an image to your account's image gallery - api_instance.upload_image_to_gallery(upload_image) + api_response = api_instance.upload_image_to_gallery(upload_image) + pprint(api_response) except ApiException as e: print("Exception when calling EmailCampaignsApi->upload_image_to_gallery: %s\n" % e) ``` @@ -768,7 +775,7 @@ Name | Type | Description | Notes ### Return type -void (empty response body) +[**UploadImageModel**](UploadImageModel.md) ### Authorization diff --git a/docs/ExternalFeedsApi.md b/docs/ExternalFeedsApi.md new file mode 100644 index 0000000..807a28d --- /dev/null +++ b/docs/ExternalFeedsApi.md @@ -0,0 +1,320 @@ +# sib_api_v3_sdk.ExternalFeedsApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_external_feed**](ExternalFeedsApi.md#create_external_feed) | **POST** /feeds | Create an external feed +[**delete_external_feed**](ExternalFeedsApi.md#delete_external_feed) | **DELETE** /feeds/{uuid} | Delete an external feed +[**get_all_external_feeds**](ExternalFeedsApi.md#get_all_external_feeds) | **GET** /feeds | Fetch all external feeds +[**get_external_feed_by_uuid**](ExternalFeedsApi.md#get_external_feed_by_uuid) | **GET** /feeds/{uuid} | Get an external feed by UUID +[**update_external_feed**](ExternalFeedsApi.md#update_external_feed) | **PUT** /feeds/{uuid} | Update an external feed + + +# **create_external_feed** +> InlineResponse2013 create_external_feed(create_external_feed) + +Create an external feed + +This endpoint will create an external feed. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ExternalFeedsApi(sib_api_v3_sdk.ApiClient(configuration)) +create_external_feed = sib_api_v3_sdk.CreateExternalFeed() # CreateExternalFeed | Values to create a feed + +try: + # Create an external feed + api_response = api_instance.create_external_feed(create_external_feed) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExternalFeedsApi->create_external_feed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_external_feed** | [**CreateExternalFeed**](CreateExternalFeed.md)| Values to create a feed | + +### Return type + +[**InlineResponse2013**](InlineResponse2013.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **delete_external_feed** +> delete_external_feed(uuid) + +Delete an external feed + +This endpoint will delete an external feed. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ExternalFeedsApi(sib_api_v3_sdk.ApiClient(configuration)) +uuid = 'uuid_example' # str | UUID of the feed to delete + +try: + # Delete an external feed + api_instance.delete_external_feed(uuid) +except ApiException as e: + print("Exception when calling ExternalFeedsApi->delete_external_feed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **str**| UUID of the feed to delete | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_all_external_feeds** +> GetAllExternalFeeds get_all_external_feeds(search=search, start_date=start_date, end_date=end_date, sort=sort, auth_type=auth_type, limit=limit, offset=offset) + +Fetch all external feeds + +This endpoint can fetch all created external feeds. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ExternalFeedsApi(sib_api_v3_sdk.ApiClient(configuration)) +search = 'search_example' # str | Can be used to filter records by search keyword on feed name (optional) +start_date = '2013-10-20' # date | Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. (optional) +end_date = '2013-10-20' # date | Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. (optional) +sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. (optional) (default to desc) +auth_type = 'auth_type_example' # str | Filter the records by `authType` of the feed. (optional) +limit = 50 # int | Number of documents returned per page. (optional) (default to 50) +offset = 0 # int | Index of the first document on the page. (optional) (default to 0) + +try: + # Fetch all external feeds + api_response = api_instance.get_all_external_feeds(search=search, start_date=start_date, end_date=end_date, sort=sort, auth_type=auth_type, limit=limit, offset=offset) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExternalFeedsApi->get_all_external_feeds: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **search** | **str**| Can be used to filter records by search keyword on feed name | [optional] + **start_date** | **date**| Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. | [optional] + **end_date** | **date**| Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. | [optional] + **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. | [optional] [default to desc] + **auth_type** | **str**| Filter the records by `authType` of the feed. | [optional] + **limit** | **int**| Number of documents returned per page. | [optional] [default to 50] + **offset** | **int**| Index of the first document on the page. | [optional] [default to 0] + +### Return type + +[**GetAllExternalFeeds**](GetAllExternalFeeds.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_external_feed_by_uuid** +> GetExternalFeedByUUID get_external_feed_by_uuid(uuid) + +Get an external feed by UUID + +This endpoint will update an external feed. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ExternalFeedsApi(sib_api_v3_sdk.ApiClient(configuration)) +uuid = 'uuid_example' # str | UUID of the feed to fetch + +try: + # Get an external feed by UUID + api_response = api_instance.get_external_feed_by_uuid(uuid) + pprint(api_response) +except ApiException as e: + print("Exception when calling ExternalFeedsApi->get_external_feed_by_uuid: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **str**| UUID of the feed to fetch | + +### Return type + +[**GetExternalFeedByUUID**](GetExternalFeedByUUID.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **update_external_feed** +> update_external_feed(uuid, update_external_feed) + +Update an external feed + +This endpoint will update an external feed. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.ExternalFeedsApi(sib_api_v3_sdk.ApiClient(configuration)) +uuid = 'uuid_example' # str | UUID of the feed to update +update_external_feed = sib_api_v3_sdk.UpdateExternalFeed() # UpdateExternalFeed | Values to update a feed + +try: + # Update an external feed + api_instance.update_external_feed(uuid, update_external_feed) +except ApiException as e: + print("Exception when calling ExternalFeedsApi->update_external_feed: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **uuid** | **str**| UUID of the feed to update | + **update_external_feed** | [**UpdateExternalFeed**](UpdateExternalFeed.md)| Values to update a feed | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/FileData.md b/docs/FileData.md index 15a5ae6..c070c1d 100644 --- a/docs/FileData.md +++ b/docs/FileData.md @@ -3,16 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**url** | **str** | Url of uploaded file | [optional] -**id** | **str** | Id of uploaded file | [optional] **name** | **str** | Name of uploaded file | [optional] **author_id** | **str** | Account id of user which created the file | [optional] -**author** | **object** | Account details of user which created the file | [optional] **contact_id** | **int** | Contact id of contact on which file is uploaded | [optional] -**deal_ids** | **list[str]** | Deal ids linked to a file | [optional] -**size** | **int** | Size of file uploaded | [optional] +**deal_id** | **str** | Deal id linked to a file | [optional] +**company_id** | **str** | Company id linked to a file | [optional] +**size** | **int** | Size of file in bytes | [optional] **created_at** | **datetime** | File created date/time | [optional] -**updated_at** | **datetime** | File updated date/time | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FileDownloadableLink.md b/docs/FileDownloadableLink.md new file mode 100644 index 0000000..5902f46 --- /dev/null +++ b/docs/FileDownloadableLink.md @@ -0,0 +1,10 @@ +# FileDownloadableLink + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**file_url** | **str** | A unique link to download the requested file. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FileList.md b/docs/FileList.md new file mode 100644 index 0000000..887c2d9 --- /dev/null +++ b/docs/FileList.md @@ -0,0 +1,9 @@ +# FileList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/FilesApi.md b/docs/FilesApi.md new file mode 100644 index 0000000..8b440c8 --- /dev/null +++ b/docs/FilesApi.md @@ -0,0 +1,315 @@ +# sib_api_v3_sdk.FilesApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_files_get**](FilesApi.md#crm_files_get) | **GET** /crm/files | Get all files +[**crm_files_id_data_get**](FilesApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +[**crm_files_id_delete**](FilesApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +[**crm_files_id_get**](FilesApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +[**crm_files_post**](FilesApi.md#crm_files_post) | **POST** /crm/files | Upload a file + + +# **crm_files_get** +> FileList crm_files_get(entity=entity, entity_ids=entity_ids, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort) + +Get all files + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.FilesApi(sib_api_v3_sdk.ApiClient(configuration)) +entity = 'entity_example' # str | Filter by file entity type (optional) +entity_ids = 'entity_ids_example' # str | Filter by file entity IDs (optional) +date_from = 56 # int | dateFrom to date range filter type (timestamp in milliseconds) (optional) +date_to = 56 # int | dateTo to date range filter type (timestamp in milliseconds) (optional) +offset = 789 # int | Index of the first document of the page (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +sort = 'sort_example' # str | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional) + +try: + # Get all files + api_response = api_instance.crm_files_get(entity=entity, entity_ids=entity_ids, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort) + pprint(api_response) +except ApiException as e: + print("Exception when calling FilesApi->crm_files_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity** | **str**| Filter by file entity type | [optional] + **entity_ids** | **str**| Filter by file entity IDs | [optional] + **date_from** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional] + **date_to** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional] + **offset** | **int**| Index of the first document of the page | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **sort** | **str**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional] + +### Return type + +[**FileList**](FileList.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_files_id_data_get** +> FileData crm_files_id_data_get(id) + +Get file details + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.FilesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | File id to get file data. + +try: + # Get file details + api_response = api_instance.crm_files_id_data_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling FilesApi->crm_files_id_data_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| File id to get file data. | + +### Return type + +[**FileData**](FileData.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_files_id_delete** +> crm_files_id_delete(id) + +Delete a file + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.FilesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | File id to delete. + +try: + # Delete a file + api_instance.crm_files_id_delete(id) +except ApiException as e: + print("Exception when calling FilesApi->crm_files_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| File id to delete. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_files_id_get** +> FileDownloadableLink crm_files_id_get(id) + +Download a file + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.FilesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | File id to download. + +try: + # Download a file + api_response = api_instance.crm_files_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling FilesApi->crm_files_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| File id to download. | + +### Return type + +[**FileDownloadableLink**](FileDownloadableLink.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_files_post** +> FileData crm_files_post(file, deal_id=deal_id, contact_id=contact_id, company_id=company_id) + +Upload a file + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.FilesApi(sib_api_v3_sdk.ApiClient(configuration)) +file = '/path/to/file.txt' # file | File data to create a file. +deal_id = 'deal_id_example' # str | Deal id linked to a file (optional) +contact_id = 789 # int | Contact id linked to a file (optional) +company_id = 'company_id_example' # str | Company id linked to a file (optional) + +try: + # Upload a file + api_response = api_instance.crm_files_post(file, deal_id=deal_id, contact_id=contact_id, company_id=company_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling FilesApi->crm_files_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **file**| File data to create a file. | + **deal_id** | **str**| Deal id linked to a file | [optional] + **contact_id** | **int**| Contact id linked to a file | [optional] + **company_id** | **str**| Company id linked to a file | [optional] + +### Return type + +[**FileData**](FileData.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: multipart/form-data + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/GetAllExternalFeeds.md b/docs/GetAllExternalFeeds.md new file mode 100644 index 0000000..56459c9 --- /dev/null +++ b/docs/GetAllExternalFeeds.md @@ -0,0 +1,11 @@ +# GetAllExternalFeeds + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**count** | **int** | Total number of batches | [optional] +**feeds** | [**list[GetAllExternalFeedsFeeds]**](GetAllExternalFeedsFeeds.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetAllExternalFeedsFeeds.md b/docs/GetAllExternalFeedsFeeds.md new file mode 100644 index 0000000..859339a --- /dev/null +++ b/docs/GetAllExternalFeedsFeeds.md @@ -0,0 +1,21 @@ +# GetAllExternalFeedsFeeds + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the feed | +**name** | **str** | Name of the feed | +**url** | **str** | URL of the feed | +**auth_type** | **str** | Auth type of the feed: * `basic` * `token` * `noAuth` | +**username** | **str** | Username for authType `basic` | [optional] +**password** | **str** | Password for authType `basic` | [optional] +**token** | **str** | Token for authType `token` | [optional] +**headers** | [**list[GetExternalFeedByUUIDHeaders]**](GetExternalFeedByUUIDHeaders.md) | Custom headers for the feed | +**max_retries** | **int** | Maximum number of retries on the feed url | +**cache** | **bool** | Toggle caching of feed url response | +**created_at** | **datetime** | Datetime on which the feed was created | +**modified_at** | **datetime** | Datetime on which the feed was modified | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetCategories.md b/docs/GetCategories.md new file mode 100644 index 0000000..28c81b9 --- /dev/null +++ b/docs/GetCategories.md @@ -0,0 +1,11 @@ +# GetCategories + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**categories** | **list[object]** | | +**count** | **int** | Number of categories | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetCategoryDetails.md b/docs/GetCategoryDetails.md new file mode 100644 index 0000000..bd36d34 --- /dev/null +++ b/docs/GetCategoryDetails.md @@ -0,0 +1,15 @@ +# GetCategoryDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Category ID for which you requested the details | +**name** | **str** | Name of the category for which you requested the details | +**created_at** | **str** | Creation UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | Last modification UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**url** | **str** | URL to the category | [optional] +**is_deleted** | **bool** | category deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetExternalFeedByUUID.md b/docs/GetExternalFeedByUUID.md new file mode 100644 index 0000000..71db336 --- /dev/null +++ b/docs/GetExternalFeedByUUID.md @@ -0,0 +1,21 @@ +# GetExternalFeedByUUID + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the feed | +**name** | **str** | Name of the feed | +**url** | **str** | URL of the feed | +**auth_type** | **str** | Auth type of the feed: * `basic` * `token` * `noAuth` | +**username** | **str** | Username for authType `basic` | [optional] +**password** | **str** | Password for authType `basic` | [optional] +**token** | **str** | Token for authType `token` | [optional] +**headers** | [**list[GetExternalFeedByUUIDHeaders]**](GetExternalFeedByUUIDHeaders.md) | Custom headers for the feed | +**max_retries** | **int** | Maximum number of retries on the feed url | +**cache** | **bool** | Toggle caching of feed url response | +**created_at** | **datetime** | Datetime on which the feed was created | +**modified_at** | **datetime** | Datetime on which the feed was modified | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetExternalFeedByUUIDHeaders.md b/docs/GetExternalFeedByUUIDHeaders.md new file mode 100644 index 0000000..c7c50ba --- /dev/null +++ b/docs/GetExternalFeedByUUIDHeaders.md @@ -0,0 +1,11 @@ +# GetExternalFeedByUUIDHeaders + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the header | [optional] +**value** | **str** | Value of the header | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetProductDetails.md b/docs/GetProductDetails.md new file mode 100644 index 0000000..05586d7 --- /dev/null +++ b/docs/GetProductDetails.md @@ -0,0 +1,24 @@ +# GetProductDetails + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Product ID for which you requested the details | +**name** | **str** | Name of the product for which you requested the details | +**created_at** | **str** | Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**url** | **str** | URL to the product | [optional] +**image_url** | **str** | Absolute URL to the cover image of the product | [optional] +**sku** | **str** | Product identifier from the shop | [optional] +**price** | **float** | Price of the product | [optional] +**categories** | **list[str]** | Category ID-s of the product | [optional] +**parent_id** | **str** | Parent product id of the product | [optional] +**s3_original** | **str** | S3 url of original image | [optional] +**s3_thumb_analytics** | **str** | S3 thumbnail url of original image in 120x120 dimension for analytics section | +**meta_info** | **object** | Meta data of product such as description, vendor, producer, stock level, etc. | [optional] +**s3_thumb_editor** | **str** | S3 thumbnail url of original image in 600x400 dimension for editor section | +**is_deleted** | **bool** | product deleted from the shop's database | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetProducts.md b/docs/GetProducts.md new file mode 100644 index 0000000..7573756 --- /dev/null +++ b/docs/GetProducts.md @@ -0,0 +1,11 @@ +# GetProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**products** | **list[object]** | | +**count** | **int** | Number of products | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetWATemplates.md b/docs/GetWATemplates.md new file mode 100644 index 0000000..56e044f --- /dev/null +++ b/docs/GetWATemplates.md @@ -0,0 +1,11 @@ +# GetWATemplates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**templates** | [**list[GetWATemplatesTemplates]**](GetWATemplatesTemplates.md) | | +**count** | **int** | Number of whatsapp templates retrived | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetWATemplatesTemplates.md b/docs/GetWATemplatesTemplates.md new file mode 100644 index 0000000..7650974 --- /dev/null +++ b/docs/GetWATemplatesTemplates.md @@ -0,0 +1,17 @@ +# GetWATemplatesTemplates + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | id of the template | +**name** | **str** | Name of the Whatsapp template | +**status** | **str** | Status of the Whatsapp template | +**language** | **str** | Language in which template exists | +**category** | **str** | category of the template | +**error_reason** | **str** | Error reason in the template creation | [optional] +**created_at** | **str** | Creation UTC date-time of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | UTC date-time of last modification of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetWebhook.md b/docs/GetWebhook.md index 677af80..d94af7c 100644 --- a/docs/GetWebhook.md +++ b/docs/GetWebhook.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **int** | ID of the webhook | **description** | **str** | Description of the webhook | **events** | **list[str]** | | -**type** | **str** | Type of webhook (marketing or transac) | +**type** | **str** | Type of webhook (marketing or transactional) | **created_at** | **str** | Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | **modified_at** | **str** | Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | diff --git a/docs/GetWhatsappCampaignOverview.md b/docs/GetWhatsappCampaignOverview.md new file mode 100644 index 0000000..1b3b054 --- /dev/null +++ b/docs/GetWhatsappCampaignOverview.md @@ -0,0 +1,18 @@ +# GetWhatsappCampaignOverview + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | ID of the Whatsapp Campaign | +**campaign_name** | **str** | Name of the Whatsapp Campaign | +**campaign_status** | **str** | Status of the Whatsapp Campaign | +**scheduled_at** | **str** | UTC date-time on which Whatsapp campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | [optional] +**sender_number** | **str** | Sender of the Whatsapp Campaign | +**stats** | [**WhatsappCampStats**](WhatsappCampStats.md) | | [optional] +**template** | [**WhatsappCampTemplate**](WhatsappCampTemplate.md) | | +**created_at** | **str** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetWhatsappEventReport.md b/docs/GetWhatsappEventReport.md new file mode 100644 index 0000000..dd97016 --- /dev/null +++ b/docs/GetWhatsappEventReport.md @@ -0,0 +1,10 @@ +# GetWhatsappEventReport + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**events** | [**list[GetWhatsappEventReportEvents]**](GetWhatsappEventReportEvents.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/GetWhatsappEventReportEvents.md b/docs/GetWhatsappEventReportEvents.md new file mode 100644 index 0000000..4a4889f --- /dev/null +++ b/docs/GetWhatsappEventReportEvents.md @@ -0,0 +1,17 @@ +# GetWhatsappEventReportEvents + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contact_number** | **str** | WhatsApp Number with country code. Example, 85264318721 | +**_date** | **str** | UTC date-time on which the event has been generated | +**message_id** | **str** | Message ID which generated the event | +**event** | **str** | Event which occurred | +**reason** | **str** | Reason for the event (will be there in case of `error` and `soft-bounce` events) | [optional] +**body** | **str** | Text of the reply (will be there only in case of `reply` event with text) | [optional] +**media_url** | **str** | Url of the media reply (will be there only in case of `reply` event with media) | [optional] +**sender_number** | **str** | WhatsApp Number with country code. Example, 85264318721 | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InboundParsingApi.md b/docs/InboundParsingApi.md index 65d490e..889d50d 100644 --- a/docs/InboundParsingApi.md +++ b/docs/InboundParsingApi.md @@ -4,10 +4,70 @@ All URIs are relative to *https://api.sendinblue.com/v3* Method | HTTP request | Description ------------- | ------------- | ------------- +[**get_inbound_email_attachment**](InboundParsingApi.md#get_inbound_email_attachment) | **GET** /inbound/attachments/{downloadToken} | Retrieve inbound attachment with download token. [**get_inbound_email_events**](InboundParsingApi.md#get_inbound_email_events) | **GET** /inbound/events | Get the list of all the events for the received emails. [**get_inbound_email_events_by_uuid**](InboundParsingApi.md#get_inbound_email_events_by_uuid) | **GET** /inbound/events/{uuid} | Fetch all events history for one particular received email. +# **get_inbound_email_attachment** +> file get_inbound_email_attachment(download_token) + +Retrieve inbound attachment with download token. + +This endpoint will retrieve inbound attachment with download token. + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.InboundParsingApi(sib_api_v3_sdk.ApiClient(configuration)) +download_token = 'download_token_example' # str | Token to fetch a particular attachment + +try: + # Retrieve inbound attachment with download token. + api_response = api_instance.get_inbound_email_attachment(download_token) + pprint(api_response) +except ApiException as e: + print("Exception when calling InboundParsingApi->get_inbound_email_attachment: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **download_token** | **str**| Token to fetch a particular attachment | + +### Return type + +[**file**](file.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_inbound_email_events** > GetInboundEmailEvents get_inbound_email_events(sender=sender, start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort) diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md new file mode 100644 index 0000000..59df25b --- /dev/null +++ b/docs/InlineResponse200.md @@ -0,0 +1,10 @@ +# InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique company id | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse201.md b/docs/InlineResponse201.md index 4a6a5d9..0cdc5c9 100644 --- a/docs/InlineResponse201.md +++ b/docs/InlineResponse201.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | Unique task id | +**id** | **str** | Unique deal id | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/InlineResponse2011.md b/docs/InlineResponse2011.md new file mode 100644 index 0000000..8bbd1a8 --- /dev/null +++ b/docs/InlineResponse2011.md @@ -0,0 +1,10 @@ +# InlineResponse2011 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique task id | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse2012.md b/docs/InlineResponse2012.md new file mode 100644 index 0000000..2d4cd0f --- /dev/null +++ b/docs/InlineResponse2012.md @@ -0,0 +1,10 @@ +# InlineResponse2012 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message_id** | **str** | messageId of sent message | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InlineResponse2013.md b/docs/InlineResponse2013.md new file mode 100644 index 0000000..a8e9aa7 --- /dev/null +++ b/docs/InlineResponse2013.md @@ -0,0 +1,10 @@ +# InlineResponse2013 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | ID of the object created | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/MasterAccountApi.md b/docs/MasterAccountApi.md index 0cbe292..97bb911 100644 --- a/docs/MasterAccountApi.md +++ b/docs/MasterAccountApi.md @@ -9,6 +9,7 @@ Method | HTTP request | Description [**corporate_sub_account_id_delete**](MasterAccountApi.md#corporate_sub_account_id_delete) | **DELETE** /corporate/subAccount/{id} | Delete a sub-account [**corporate_sub_account_id_get**](MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details [**corporate_sub_account_id_plan_put**](MasterAccountApi.md#corporate_sub_account_id_plan_put) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan +[**corporate_sub_account_key_post**](MasterAccountApi.md#corporate_sub_account_key_post) | **POST** /corporate/subAccount/key | Create an API key for a sub-account [**corporate_sub_account_post**](MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account. [**corporate_sub_account_sso_token_post**](MasterAccountApi.md#corporate_sub_account_sso_token_post) | **POST** /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue @@ -304,6 +305,65 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **corporate_sub_account_key_post** +> CreateApiKeyResponse corporate_sub_account_key_post(create_api_key_request) + +Create an API key for a sub-account + +This endpoint will generate an API v3 key for a sub account + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration)) +create_api_key_request = sib_api_v3_sdk.CreateApiKeyRequest() # CreateApiKeyRequest | Values to generate API key for sub-account + +try: + # Create an API key for a sub-account + api_response = api_instance.corporate_sub_account_key_post(create_api_key_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling MasterAccountApi->corporate_sub_account_key_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_api_key_request** | [**CreateApiKeyRequest**](CreateApiKeyRequest.md)| Values to generate API key for sub-account | + +### Return type + +[**CreateApiKeyResponse**](CreateApiKeyResponse.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **corporate_sub_account_post** > CreateSubAccountResponse corporate_sub_account_post(sub_account_create) @@ -368,7 +428,7 @@ Name | Type | Description | Notes Generate SSO token to access Sendinblue -This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. +This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. ### Example ```python diff --git a/docs/NoteData.md b/docs/NoteData.md index e0f89d2..026faa6 100644 --- a/docs/NoteData.md +++ b/docs/NoteData.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **text** | **str** | Text content of a note | **contact_ids** | **list[int]** | Contact Ids linked to a note | [optional] **deal_ids** | **list[str]** | Deal Ids linked to a note | [optional] +**company_ids** | **list[str]** | Company Ids linked to a note | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/NotesApi.md b/docs/NotesApi.md new file mode 100644 index 0000000..8f1a81b --- /dev/null +++ b/docs/NotesApi.md @@ -0,0 +1,310 @@ +# sib_api_v3_sdk.NotesApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_notes_get**](NotesApi.md#crm_notes_get) | **GET** /crm/notes | Get all notes +[**crm_notes_id_delete**](NotesApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note +[**crm_notes_id_get**](NotesApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note +[**crm_notes_id_patch**](NotesApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note +[**crm_notes_post**](NotesApi.md#crm_notes_post) | **POST** /crm/notes | Create a note + + +# **crm_notes_get** +> NoteList crm_notes_get(entity=entity, entity_ids=entity_ids, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort) + +Get all notes + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.NotesApi(sib_api_v3_sdk.ApiClient(configuration)) +entity = 'entity_example' # str | Filter by note entity type (optional) +entity_ids = 'entity_ids_example' # str | Filter by note entity IDs (optional) +date_from = 56 # int | dateFrom to date range filter type (timestamp in milliseconds) (optional) +date_to = 56 # int | dateTo to date range filter type (timestamp in milliseconds) (optional) +offset = 789 # int | Index of the first document of the page (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +sort = 'sort_example' # str | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional) + +try: + # Get all notes + api_response = api_instance.crm_notes_get(entity=entity, entity_ids=entity_ids, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort) + pprint(api_response) +except ApiException as e: + print("Exception when calling NotesApi->crm_notes_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **entity** | **str**| Filter by note entity type | [optional] + **entity_ids** | **str**| Filter by note entity IDs | [optional] + **date_from** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional] + **date_to** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional] + **offset** | **int**| Index of the first document of the page | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **sort** | **str**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional] + +### Return type + +[**NoteList**](NoteList.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_notes_id_delete** +> crm_notes_id_delete(id) + +Delete a note + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.NotesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | Note ID to delete + +try: + # Delete a note + api_instance.crm_notes_id_delete(id) +except ApiException as e: + print("Exception when calling NotesApi->crm_notes_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Note ID to delete | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_notes_id_get** +> Note crm_notes_id_get(id) + +Get a note + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.NotesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | Note ID to get + +try: + # Get a note + api_response = api_instance.crm_notes_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling NotesApi->crm_notes_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Note ID to get | + +### Return type + +[**Note**](Note.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_notes_id_patch** +> crm_notes_id_patch(id, body) + +Update a note + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.NotesApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | Note ID to update +body = sib_api_v3_sdk.NoteData() # NoteData | Note data to update a note + +try: + # Update a note + api_instance.crm_notes_id_patch(id, body) +except ApiException as e: + print("Exception when calling NotesApi->crm_notes_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| Note ID to update | + **body** | [**NoteData**](NoteData.md)| Note data to update a note | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_notes_post** +> NoteId crm_notes_post(body) + +Create a note + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.NotesApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.NoteData() # NoteData | Note data to create a note. + +try: + # Create a note + api_response = api_instance.crm_notes_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling NotesApi->crm_notes_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**NoteData**](NoteData.md)| Note data to create a note. | + +### Return type + +[**NoteId**](NoteId.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/Order.md b/docs/Order.md new file mode 100644 index 0000000..b94de23 --- /dev/null +++ b/docs/Order.md @@ -0,0 +1,18 @@ +# Order + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique ID of the order. | +**created_at** | **str** | Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. | +**updated_at** | **str** | Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. | +**status** | **str** | State of the order. | +**amount** | **float** | Total amount of the order, including all shipping expenses, tax and the price of items. | +**products** | [**list[OrderProducts]**](OrderProducts.md) | | +**email** | **str** | Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter. | [optional] +**billing** | [**OrderBilling**](OrderBilling.md) | | [optional] +**coupons** | **list[str]** | Coupons applied to the order. Stored case insensitive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrderBatch.md b/docs/OrderBatch.md new file mode 100644 index 0000000..2770635 --- /dev/null +++ b/docs/OrderBatch.md @@ -0,0 +1,11 @@ +# OrderBatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**orders** | [**list[Order]**](Order.md) | array of order objects | +**notify_url** | **str** | Notify Url provided by client to get the status of batch request | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrderBilling.md b/docs/OrderBilling.md new file mode 100644 index 0000000..89b2a0f --- /dev/null +++ b/docs/OrderBilling.md @@ -0,0 +1,16 @@ +# OrderBilling + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | Full billing address. | [optional] +**city** | **str** | Exact city of the address. | [optional] +**country_code** | **str** | Billing country 2-letter ISO code. | [optional] +**phone** | **str** | Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed. | [optional] +**post_code** | **str** | Postcode for delivery and billing. | [optional] +**payment_method** | **str** | How the visitor will pay for the item(s), e.g. paypal, check, etc. | [optional] +**region** | **str** | Exact region (state/province) for delivery and billing. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/OrderProducts.md b/docs/OrderProducts.md new file mode 100644 index 0000000..c52da68 --- /dev/null +++ b/docs/OrderProducts.md @@ -0,0 +1,13 @@ +# OrderProducts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**product_id** | **str** | ID of the product. | +**quantity** | **float** | How many pieces of the product the visitor has added to the cart. | +**variant_id** | **str** | Product ID of the red color shirts. | [optional] +**price** | **float** | The price of a unit of product | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Pipeline.md b/docs/Pipeline.md new file mode 100644 index 0000000..6c9efab --- /dev/null +++ b/docs/Pipeline.md @@ -0,0 +1,10 @@ +# Pipeline + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**stages** | [**list[PipelineStage]**](PipelineStage.md) | List of stages | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PipelineStage.md b/docs/PipelineStage.md new file mode 100644 index 0000000..6573a15 --- /dev/null +++ b/docs/PipelineStage.md @@ -0,0 +1,11 @@ +# PipelineStage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Stage id | [optional] +**name** | **str** | Stage name | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SendTransacSms.md b/docs/SendTransacSms.md index 850b391..863c53a 100644 --- a/docs/SendTransacSms.md +++ b/docs/SendTransacSms.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **tag** | **str** | Tag of the message | [optional] **web_url** | **str** | Webhook to call for each event triggered by the message (delivered etc.) | [optional] **unicode_enabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to False] +**organisation_prefix** | **str** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SendWhatsappMessage.md b/docs/SendWhatsappMessage.md new file mode 100644 index 0000000..04f48c8 --- /dev/null +++ b/docs/SendWhatsappMessage.md @@ -0,0 +1,13 @@ +# SendWhatsappMessage + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**template_id** | **int** | ID of the template to send | [optional] +**text** | **str** | Text to be sent as message body (will be overridden if templateId is passed in the same request) | [optional] +**sender_number** | **str** | WhatsApp Number with country code. Example, 85264318721 | +**contact_numbers** | **list[str]** | List of phone numbers of the contacts | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SsoTokenRequest.md b/docs/SsoTokenRequest.md index cc057b7..f890caa 100644 --- a/docs/SsoTokenRequest.md +++ b/docs/SsoTokenRequest.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | Id of the sub-account organization | **email** | **str** | User email of sub-account organization | [optional] +**target** | **str** | Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TasksApi.md b/docs/TasksApi.md new file mode 100644 index 0000000..202999b --- /dev/null +++ b/docs/TasksApi.md @@ -0,0 +1,376 @@ +# sib_api_v3_sdk.TasksApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_tasks_get**](TasksApi.md#crm_tasks_get) | **GET** /crm/tasks | Get all tasks +[**crm_tasks_id_delete**](TasksApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task +[**crm_tasks_id_get**](TasksApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task +[**crm_tasks_id_patch**](TasksApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task +[**crm_tasks_post**](TasksApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task +[**crm_tasktypes_get**](TasksApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types + + +# **crm_tasks_get** +> TaskList crm_tasks_get(filter_type=filter_type, filter_status=filter_status, filter_date=filter_date, filter_assign_to=filter_assign_to, filter_contacts=filter_contacts, filter_deals=filter_deals, filter_companies=filter_companies, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort, sort_by=sort_by) + +Get all tasks + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) +filter_type = 'filter_type_example' # str | Filter by task type (ID) (optional) +filter_status = 'filter_status_example' # str | Filter by task status (optional) +filter_date = 'filter_date_example' # str | Filter by date (optional) +filter_assign_to = 'filter_assign_to_example' # str | Filter by assignTo id (optional) +filter_contacts = 'filter_contacts_example' # str | Filter by contact ids (optional) +filter_deals = 'filter_deals_example' # str | Filter by deals ids (optional) +filter_companies = 'filter_companies_example' # str | Filter by companies ids (optional) +date_from = 56 # int | dateFrom to date range filter type (timestamp in milliseconds) (optional) +date_to = 56 # int | dateTo to date range filter type (timestamp in milliseconds) (optional) +offset = 789 # int | Index of the first document of the page (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +sort = 'sort_example' # str | Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed (optional) +sort_by = 'sort_by_example' # str | The field used to sort field names. (optional) + +try: + # Get all tasks + api_response = api_instance.crm_tasks_get(filter_type=filter_type, filter_status=filter_status, filter_date=filter_date, filter_assign_to=filter_assign_to, filter_contacts=filter_contacts, filter_deals=filter_deals, filter_companies=filter_companies, date_from=date_from, date_to=date_to, offset=offset, limit=limit, sort=sort, sort_by=sort_by) + pprint(api_response) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasks_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filter_type** | **str**| Filter by task type (ID) | [optional] + **filter_status** | **str**| Filter by task status | [optional] + **filter_date** | **str**| Filter by date | [optional] + **filter_assign_to** | **str**| Filter by assignTo id | [optional] + **filter_contacts** | **str**| Filter by contact ids | [optional] + **filter_deals** | **str**| Filter by deals ids | [optional] + **filter_companies** | **str**| Filter by companies ids | [optional] + **date_from** | **int**| dateFrom to date range filter type (timestamp in milliseconds) | [optional] + **date_to** | **int**| dateTo to date range filter type (timestamp in milliseconds) | [optional] + **offset** | **int**| Index of the first document of the page | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **sort** | **str**| Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed | [optional] + **sort_by** | **str**| The field used to sort field names. | [optional] + +### Return type + +[**TaskList**](TaskList.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_tasks_id_delete** +> crm_tasks_id_delete(id) + +Delete a task + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Delete a task + api_instance.crm_tasks_id_delete(id) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasks_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_tasks_id_get** +> Task crm_tasks_id_get(id) + +Get a task + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | + +try: + # Get a task + api_response = api_instance.crm_tasks_id_get(id) + pprint(api_response) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasks_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + +### Return type + +[**Task**](Task.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_tasks_id_patch** +> crm_tasks_id_patch(id, body) + +Update a task + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body7() # Body7 | Updated task details. + +try: + # Update a task + api_instance.crm_tasks_id_patch(id, body) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasks_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body7**](Body7.md)| Updated task details. | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_tasks_post** +> InlineResponse2011 crm_tasks_post(body) + +Create a task + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body6() # Body6 | Task name. + +try: + # Create a task + api_response = api_instance.crm_tasks_post(body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasks_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body6**](Body6.md)| Task name. | + +### Return type + +[**InlineResponse2011**](InlineResponse2011.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **crm_tasktypes_get** +> TaskTypes crm_tasktypes_get() + +Get all task types + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TasksApi(sib_api_v3_sdk.ApiClient(configuration)) + +try: + # Get all task types + api_response = api_instance.crm_tasktypes_get() + pprint(api_response) +except ApiException as e: + print("Exception when calling TasksApi->crm_tasktypes_get: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**TaskTypes**](TaskTypes.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TransactionalEmailsApi.md b/docs/TransactionalEmailsApi.md index 7d4bde2..aac1706 100644 --- a/docs/TransactionalEmailsApi.md +++ b/docs/TransactionalEmailsApi.md @@ -521,7 +521,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.TransactionalEmailsApi(sib_api_v3_sdk.ApiClient(configuration)) -limit = 50 # int | Number limitation for the result returned (optional) (default to 50) +limit = 2500 # int | Number limitation for the result returned (optional) (default to 2500) offset = 0 # int | Beginning point in the list to retrieve from. (optional) (default to 0) start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) end_date = 'end_date_example' # str | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) @@ -545,7 +545,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int**| Number limitation for the result returned | [optional] [default to 50] + **limit** | **int**| Number limitation for the result returned | [optional] [default to 2500] **offset** | **int**| Beginning point in the list to retrieve from. | [optional] [default to 0] **start_date** | **str**| Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] **end_date** | **str**| Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] diff --git a/docs/TransactionalWhatsAppApi.md b/docs/TransactionalWhatsAppApi.md new file mode 100644 index 0000000..836e2c7 --- /dev/null +++ b/docs/TransactionalWhatsAppApi.md @@ -0,0 +1,142 @@ +# sib_api_v3_sdk.TransactionalWhatsAppApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_whatsapp_event_report**](TransactionalWhatsAppApi.md#get_whatsapp_event_report) | **GET** /whatsapp/statistics/events | Get all your WhatsApp activity (unaggregated events) +[**send_whatsapp_message**](TransactionalWhatsAppApi.md#send_whatsapp_message) | **POST** /whatsapp/sendMessage | Send a WhatsApp message + + +# **get_whatsapp_event_report** +> GetWhatsappEventReport get_whatsapp_event_report(limit=limit, offset=offset, start_date=start_date, end_date=end_date, days=days, contact_number=contact_number, event=event, sort=sort) + +Get all your WhatsApp activity (unaggregated events) + +This endpoint will show the unaggregated statistics for WhatsApp activity (30 days by default if `startDate` and `endDate` or `days` is not passed. The date range can not exceed 90 days) + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TransactionalWhatsAppApi(sib_api_v3_sdk.ApiClient(configuration)) +limit = 2500 # int | Number limitation for the result returned (optional) (default to 2500) +offset = 0 # int | Beginning point in the list to retrieve from (optional) (default to 0) +start_date = 'start_date_example' # str | **Mandatory if endDate is used.** Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate (optional) +end_date = 'end_date_example' # str | **Mandatory if startDate is used.** Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate (optional) +days = 789 # int | Number of days in the past including today (positive integer). _Not compatible with 'startDate' and 'endDate'_ (optional) +contact_number = 'contact_number_example' # str | Filter results for specific contact (WhatsApp Number with country code. Example, 85264318721) (optional) +event = 'event_example' # str | Filter the report for a specific event type (optional) +sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) + +try: + # Get all your WhatsApp activity (unaggregated events) + api_response = api_instance.get_whatsapp_event_report(limit=limit, offset=offset, start_date=start_date, end_date=end_date, days=days, contact_number=contact_number, event=event, sort=sort) + pprint(api_response) +except ApiException as e: + print("Exception when calling TransactionalWhatsAppApi->get_whatsapp_event_report: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int**| Number limitation for the result returned | [optional] [default to 2500] + **offset** | **int**| Beginning point in the list to retrieve from | [optional] [default to 0] + **start_date** | **str**| **Mandatory if endDate is used.** Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate | [optional] + **end_date** | **str**| **Mandatory if startDate is used.** Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate | [optional] + **days** | **int**| Number of days in the past including today (positive integer). _Not compatible with 'startDate' and 'endDate'_ | [optional] + **contact_number** | **str**| Filter results for specific contact (WhatsApp Number with country code. Example, 85264318721) | [optional] + **event** | **str**| Filter the report for a specific event type | [optional] + **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] + +### Return type + +[**GetWhatsappEventReport**](GetWhatsappEventReport.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **send_whatsapp_message** +> InlineResponse2012 send_whatsapp_message(send_whatsapp_message) + +Send a WhatsApp message + +This endpoint is used to send a WhatsApp message.
(**The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Sendinblue platform to fetch the Template ID.**) + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.TransactionalWhatsAppApi(sib_api_v3_sdk.ApiClient(configuration)) +send_whatsapp_message = sib_api_v3_sdk.SendWhatsappMessage() # SendWhatsappMessage | Values to send WhatsApp message + +try: + # Send a WhatsApp message + api_response = api_instance.send_whatsapp_message(send_whatsapp_message) + pprint(api_response) +except ApiException as e: + print("Exception when calling TransactionalWhatsAppApi->send_whatsapp_message: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **send_whatsapp_message** | [**SendWhatsappMessage**](SendWhatsappMessage.md)| Values to send WhatsApp message | + +### Return type + +[**InlineResponse2012**](InlineResponse2012.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/UpdateBatchContactsContacts.md b/docs/UpdateBatchContactsContacts.md index 4c079a5..efb15d8 100644 --- a/docs/UpdateBatchContactsContacts.md +++ b/docs/UpdateBatchContactsContacts.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **email** | **str** | Email address of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional] **id** | **int** | id of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional] **sms** | **str** | SMS of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) | [optional] +**ext_id** | **str** | Pass your own Id to update ext_id of a contact. | [optional] **attributes** | **dict(str, object)** | Pass the set of attributes to be updated. **These attributes must be present in your account**. To update existing email address of a contact with the new one please pass EMAIL in attribtes. For example, **{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}**. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in **SMS** field should be passed with proper country code. For example: **{\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"}** | [optional] **email_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional] diff --git a/docs/UpdateContact.md b/docs/UpdateContact.md index 1ea2bc3..da8f57d 100644 --- a/docs/UpdateContact.md +++ b/docs/UpdateContact.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attributes** | **object** | Pass the set of attributes to be updated. These attributes must be present in your account. To update existing email address of a contact with the new one please pass EMAIL in attributes. For example, `{ \"EMAIL\":\"newemail@domain.com\", \"FNAME\":\"Ellie\", \"LNAME\":\"Roger\"}`. The attribute's parameter should be passed in capital letter while updating a contact. Keep in mind transactional attributes can be updated the same way as normal attributes. Mobile Number in \"SMS\" field should be passed with proper country code. For example {\"SMS\":\"+91xxxxxxxxxx\"} or {\"SMS\":\"0091xxxxxxxxxx\"} | [optional] +**ext_id** | **str** | Pass your own Id to update ext_id of a contact. | [optional] **email_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) | [optional] **sms_blacklisted** | **bool** | Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) | [optional] **list_ids** | **list[int]** | Ids of the lists to add the contact to | [optional] diff --git a/docs/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index 9c1ba3d..86249c3 100644 --- a/docs/UpdateEmailCampaign.md +++ b/docs/UpdateEmailCampaign.md @@ -31,6 +31,8 @@ Name | Type | Description | Notes **ip_warmup_enable** | **bool** | Available for dedicated ip clients. Set this to true if you wish to warm up your ip. | [optional] [default to False] **initial_quota** | **int** | Set an initial quota greater than 1 for warming up your ip. We recommend you set a value of 3000. | [optional] **increase_rate** | **int** | Set a percentage increase rate for warming up your ip. We recommend you set the increase rate to 30% per day. If you want to send the same number of emails every day, set the daily increase value to 0%. | [optional] +**unsubscription_page_id** | **str** | Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. | [optional] +**update_form_id** | **str** | Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateEmailCampaignRecipients.md b/docs/UpdateEmailCampaignRecipients.md index d1f59b7..7b0be39 100644 --- a/docs/UpdateEmailCampaignRecipients.md +++ b/docs/UpdateEmailCampaignRecipients.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **exclusion_list_ids** | **list[int]** | List ids which have to be excluded from a campaign | [optional] -**list_ids** | **list[int]** | Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty | [optional] +**list_ids** | **list[int]** | Lists Ids to send the campaign to. Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty | [optional] +**segment_ids** | **list[int]** | Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it. Segment ids to send the campaign to. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateExternalFeed.md b/docs/UpdateExternalFeed.md new file mode 100644 index 0000000..482ad6c --- /dev/null +++ b/docs/UpdateExternalFeed.md @@ -0,0 +1,18 @@ +# UpdateExternalFeed + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the feed | [optional] +**url** | **str** | URL of the feed | [optional] +**auth_type** | **str** | Auth type of the feed: * `basic` * `token` * `noAuth` | [optional] +**username** | **str** | Username for authType `basic` | [optional] +**password** | **str** | Password for authType `basic` | [optional] +**token** | **str** | Token for authType `token` | [optional] +**headers** | [**list[GetExternalFeedByUUIDHeaders]**](GetExternalFeedByUUIDHeaders.md) | Custom headers for the feed | [optional] +**max_retries** | **int** | Maximum number of retries on the feed url | [optional] +**cache** | **bool** | Toggle caching of feed url response | [optional] [default to False] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateSmsCampaign.md b/docs/UpdateSmsCampaign.md index cbf6d46..211c909 100644 --- a/docs/UpdateSmsCampaign.md +++ b/docs/UpdateSmsCampaign.md @@ -9,6 +9,8 @@ Name | Type | Description | Notes **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] **scheduled_at** | **str** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional] **unicode_enabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [optional] [default to False] +**organisation_prefix** | **str** | A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** | [optional] +**unsubscribe_instruction** | **str** | Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UploadImageModel.md b/docs/UploadImageModel.md new file mode 100644 index 0000000..fde73ea --- /dev/null +++ b/docs/UploadImageModel.md @@ -0,0 +1,10 @@ +# UploadImageModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **str** | URL of the image uploaded | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/VariablesItems.md b/docs/VariablesItems.md new file mode 100644 index 0000000..f8cd5a7 --- /dev/null +++ b/docs/VariablesItems.md @@ -0,0 +1,12 @@ +# VariablesItems + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] +**default** | **str** | | [optional] +**datatype** | **str** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WhatsappCampStats.md b/docs/WhatsappCampStats.md new file mode 100644 index 0000000..6c1fc66 --- /dev/null +++ b/docs/WhatsappCampStats.md @@ -0,0 +1,14 @@ +# WhatsappCampStats + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sent** | **int** | | +**delivered** | **int** | | +**read** | **int** | | +**unsubscribe** | **int** | | +**not_sent** | **int** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WhatsappCampTemplate.md b/docs/WhatsappCampTemplate.md new file mode 100644 index 0000000..d431b1b --- /dev/null +++ b/docs/WhatsappCampTemplate.md @@ -0,0 +1,20 @@ +# WhatsappCampTemplate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name of the template | [optional] +**category** | **str** | description of the template | [optional] +**language** | **str** | language of the template | [optional] +**contains_button** | **bool** | | [optional] +**display_header** | **bool** | | [optional] +**header_type** | **str** | type of header | [optional] +**components** | [**list[ComponentItems]**](ComponentItems.md) | array of component item objects | [optional] +**header_variables** | [**list[VariablesItems]**](VariablesItems.md) | array of variables item object | [optional] +**body_variables** | [**list[VariablesItems]**](VariablesItems.md) | array of variables item variables | [optional] +**button_type** | **str** | | [optional] +**hide_footer** | **bool** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WhatsappCampaignsApi.md b/docs/WhatsappCampaignsApi.md new file mode 100644 index 0000000..34dc567 --- /dev/null +++ b/docs/WhatsappCampaignsApi.md @@ -0,0 +1,189 @@ +# sib_api_v3_sdk.WhatsappCampaignsApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_whatsapp_campaign**](WhatsappCampaignsApi.md#delete_whatsapp_campaign) | **DELETE** /whatsappCampaigns/{campaignId} | Delete a Whatsapp campaign +[**get_whatsapp_campaign**](WhatsappCampaignsApi.md#get_whatsapp_campaign) | **GET** /whatsappCampaigns/{campaignId} | Get a Whatsapp campaign +[**get_whatsapp_templates**](WhatsappCampaignsApi.md#get_whatsapp_templates) | **GET** /whatsappCampaigns/template-list | Return all your created whatsapp templates + + +# **delete_whatsapp_campaign** +> delete_whatsapp_campaign(campaign_id) + +Delete a Whatsapp campaign + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.WhatsappCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) +campaign_id = 789 # int | id of the campaign + +try: + # Delete a Whatsapp campaign + api_instance.delete_whatsapp_campaign(campaign_id) +except ApiException as e: + print("Exception when calling WhatsappCampaignsApi->delete_whatsapp_campaign: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **int**| id of the campaign | + +### Return type + +void (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_whatsapp_campaign** +> GetWhatsappCampaignOverview get_whatsapp_campaign(campaign_id) + +Get a Whatsapp campaign + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.WhatsappCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) +campaign_id = 'campaign_id_example' # str | Id of the campaign + +try: + # Get a Whatsapp campaign + api_response = api_instance.get_whatsapp_campaign(campaign_id) + pprint(api_response) +except ApiException as e: + print("Exception when calling WhatsappCampaignsApi->get_whatsapp_campaign: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **campaign_id** | **str**| Id of the campaign | + +### Return type + +[**GetWhatsappCampaignOverview**](GetWhatsappCampaignOverview.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **get_whatsapp_templates** +> GetWATemplates get_whatsapp_templates(start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort) + +Return all your created whatsapp templates + +### Example +```python +from __future__ import print_function +import time +import sib_api_v3_sdk +from sib_api_v3_sdk.rest import ApiException +from pprint import pprint + +# Configure API key authorization: api-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['api-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['api-key'] = 'Bearer' +# Configure API key authorization: partner-key +configuration = sib_api_v3_sdk.Configuration() +configuration.api_key['partner-key'] = 'YOUR_API_KEY' +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed +# configuration.api_key_prefix['partner-key'] = 'Bearer' + +# create an instance of the API class +api_instance = sib_api_v3_sdk.WhatsappCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) +start_date = 'start_date_example' # str | **Mandatory if endDate is used**. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +end_date = 'end_date_example' # str | **Mandatory if startDate is used**. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) (optional) +limit = 50 # int | Number of documents per page (optional) (default to 50) +offset = 0 # int | Index of the first document in the page (optional) (default to 0) +sort = 'desc' # str | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional) (default to desc) + +try: + # Return all your created whatsapp templates + api_response = api_instance.get_whatsapp_templates(start_date=start_date, end_date=end_date, limit=limit, offset=offset, sort=sort) + pprint(api_response) +except ApiException as e: + print("Exception when calling WhatsappCampaignsApi->get_whatsapp_templates: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **start_date** | **str**| **Mandatory if endDate is used**. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **end_date** | **str**| **Mandatory if startDate is used**. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) | [optional] + **limit** | **int**| Number of documents per page | [optional] [default to 50] + **offset** | **int**| Index of the first document in the page | [optional] [default to 0] + **sort** | **str**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc] + +### Return type + +[**GetWATemplates**](GetWATemplates.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/setup.py b/setup.py index 4da08f2..996dbae 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "sib-api-v3-sdk" -VERSION = "7.5.0" +VERSION = "7.6.0" # To install the library, run the following # # python setup.py install diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index b11c530..a0c853a 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -17,21 +17,27 @@ # import apis into sdk package from sib_api_v3_sdk.api.account_api import AccountApi -from sib_api_v3_sdk.api.attributes_api import AttributesApi -from sib_api_v3_sdk.api.crm_api import CRMApi +from sib_api_v3_sdk.api.companies_api import CompaniesApi from sib_api_v3_sdk.api.contacts_api import ContactsApi +from sib_api_v3_sdk.api.conversations_api import ConversationsApi +from sib_api_v3_sdk.api.deals_api import DealsApi +from sib_api_v3_sdk.api.ecommerce_api import EcommerceApi from sib_api_v3_sdk.api.email_campaigns_api import EmailCampaignsApi -from sib_api_v3_sdk.api.folders_api import FoldersApi +from sib_api_v3_sdk.api.external_feeds_api import ExternalFeedsApi +from sib_api_v3_sdk.api.files_api import FilesApi from sib_api_v3_sdk.api.inbound_parsing_api import InboundParsingApi -from sib_api_v3_sdk.api.lists_api import ListsApi from sib_api_v3_sdk.api.master_account_api import MasterAccountApi +from sib_api_v3_sdk.api.notes_api import NotesApi from sib_api_v3_sdk.api.process_api import ProcessApi from sib_api_v3_sdk.api.reseller_api import ResellerApi from sib_api_v3_sdk.api.sms_campaigns_api import SMSCampaignsApi from sib_api_v3_sdk.api.senders_api import SendersApi +from sib_api_v3_sdk.api.tasks_api import TasksApi from sib_api_v3_sdk.api.transactional_sms_api import TransactionalSMSApi +from sib_api_v3_sdk.api.transactional_whats_app_api import TransactionalWhatsAppApi from sib_api_v3_sdk.api.transactional_emails_api import TransactionalEmailsApi from sib_api_v3_sdk.api.webhooks_api import WebhooksApi +from sib_api_v3_sdk.api.whatsapp_campaigns_api import WhatsappCampaignsApi # import ApiClient from sib_api_v3_sdk.api_client import ApiClient @@ -49,16 +55,41 @@ from sib_api_v3_sdk.models.block_domain import BlockDomain from sib_api_v3_sdk.models.body import Body from sib_api_v3_sdk.models.body1 import Body1 +from sib_api_v3_sdk.models.body10 import Body10 +from sib_api_v3_sdk.models.body11 import Body11 +from sib_api_v3_sdk.models.body12 import Body12 +from sib_api_v3_sdk.models.body2 import Body2 +from sib_api_v3_sdk.models.body3 import Body3 +from sib_api_v3_sdk.models.body4 import Body4 +from sib_api_v3_sdk.models.body5 import Body5 +from sib_api_v3_sdk.models.body6 import Body6 +from sib_api_v3_sdk.models.body7 import Body7 +from sib_api_v3_sdk.models.body8 import Body8 +from sib_api_v3_sdk.models.body9 import Body9 +from sib_api_v3_sdk.models.body_variables_items import BodyVariablesItems +from sib_api_v3_sdk.models.companies_list import CompaniesList +from sib_api_v3_sdk.models.company import Company +from sib_api_v3_sdk.models.company_attributes import CompanyAttributes +from sib_api_v3_sdk.models.company_attributes_inner import CompanyAttributesInner +from sib_api_v3_sdk.models.component_items import ComponentItems +from sib_api_v3_sdk.models.conversations_message import ConversationsMessage +from sib_api_v3_sdk.models.conversations_message_file import ConversationsMessageFile +from sib_api_v3_sdk.models.conversations_message_file_image_info import ConversationsMessageFileImageInfo +from sib_api_v3_sdk.models.create_api_key_request import CreateApiKeyRequest +from sib_api_v3_sdk.models.create_api_key_response import CreateApiKeyResponse from sib_api_v3_sdk.models.create_attribute import CreateAttribute from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration +from sib_api_v3_sdk.models.create_category_model import CreateCategoryModel from sib_api_v3_sdk.models.create_child import CreateChild from sib_api_v3_sdk.models.create_contact import CreateContact from sib_api_v3_sdk.models.create_doi_contact import CreateDoiContact from sib_api_v3_sdk.models.create_email_campaign import CreateEmailCampaign from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender +from sib_api_v3_sdk.models.create_external_feed import CreateExternalFeed from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel +from sib_api_v3_sdk.models.create_product_model import CreateProductModel from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps @@ -70,18 +101,36 @@ from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender from sib_api_v3_sdk.models.create_sub_account import CreateSubAccount from sib_api_v3_sdk.models.create_sub_account_response import CreateSubAccountResponse +from sib_api_v3_sdk.models.create_update_batch_category import CreateUpdateBatchCategory +from sib_api_v3_sdk.models.create_update_batch_category_model import CreateUpdateBatchCategoryModel +from sib_api_v3_sdk.models.create_update_batch_products import CreateUpdateBatchProducts +from sib_api_v3_sdk.models.create_update_batch_products_model import CreateUpdateBatchProductsModel +from sib_api_v3_sdk.models.create_update_categories import CreateUpdateCategories +from sib_api_v3_sdk.models.create_update_category import CreateUpdateCategory from sib_api_v3_sdk.models.create_update_contact_model import CreateUpdateContactModel from sib_api_v3_sdk.models.create_update_folder import CreateUpdateFolder +from sib_api_v3_sdk.models.create_update_product import CreateUpdateProduct +from sib_api_v3_sdk.models.create_update_products import CreateUpdateProducts from sib_api_v3_sdk.models.create_webhook import CreateWebhook +from sib_api_v3_sdk.models.created_batch_id import CreatedBatchId from sib_api_v3_sdk.models.created_process_id import CreatedProcessId +from sib_api_v3_sdk.models.deal import Deal +from sib_api_v3_sdk.models.deal_attributes import DealAttributes +from sib_api_v3_sdk.models.deal_attributes_inner import DealAttributesInner +from sib_api_v3_sdk.models.deals_list import DealsList from sib_api_v3_sdk.models.delete_hardbounces import DeleteHardbounces from sib_api_v3_sdk.models.email_export_recipients import EmailExportRecipients from sib_api_v3_sdk.models.error_model import ErrorModel +from sib_api_v3_sdk.models.file_data import FileData +from sib_api_v3_sdk.models.file_downloadable_link import FileDownloadableLink +from sib_api_v3_sdk.models.file_list import FileList from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData from sib_api_v3_sdk.models.get_aggregated_report import GetAggregatedReport +from sib_api_v3_sdk.models.get_all_external_feeds import GetAllExternalFeeds +from sib_api_v3_sdk.models.get_all_external_feeds_feeds import GetAllExternalFeedsFeeds from sib_api_v3_sdk.models.get_attributes import GetAttributes from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration @@ -89,6 +138,8 @@ from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats +from sib_api_v3_sdk.models.get_categories import GetCategories +from sib_api_v3_sdk.models.get_category_details import GetCategoryDetails from sib_api_v3_sdk.models.get_child_account_creation_status import GetChildAccountCreationStatus from sib_api_v3_sdk.models.get_child_domain import GetChildDomain from sib_api_v3_sdk.models.get_child_domains import GetChildDomains @@ -123,6 +174,8 @@ from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats +from sib_api_v3_sdk.models.get_external_feed_by_uuid import GetExternalFeedByUUID +from sib_api_v3_sdk.models.get_external_feed_by_uuid_headers import GetExternalFeedByUUIDHeaders from sib_api_v3_sdk.models.get_folder import GetFolder from sib_api_v3_sdk.models.get_folder_lists import GetFolderLists from sib_api_v3_sdk.models.get_folders import GetFolders @@ -139,6 +192,8 @@ from sib_api_v3_sdk.models.get_lists import GetLists from sib_api_v3_sdk.models.get_process import GetProcess from sib_api_v3_sdk.models.get_processes import GetProcesses +from sib_api_v3_sdk.models.get_product_details import GetProductDetails +from sib_api_v3_sdk.models.get_products import GetProducts from sib_api_v3_sdk.models.get_reports import GetReports from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports from sib_api_v3_sdk.models.get_scheduled_email_by_batch_id import GetScheduledEmailByBatchId @@ -170,9 +225,18 @@ from sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails import GetTransacEmailsListTransactionalEmails from sib_api_v3_sdk.models.get_transac_sms_report import GetTransacSmsReport from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports +from sib_api_v3_sdk.models.get_wa_templates import GetWATemplates +from sib_api_v3_sdk.models.get_wa_templates_templates import GetWATemplatesTemplates from sib_api_v3_sdk.models.get_webhook import GetWebhook from sib_api_v3_sdk.models.get_webhooks import GetWebhooks +from sib_api_v3_sdk.models.get_whatsapp_campaign_overview import GetWhatsappCampaignOverview +from sib_api_v3_sdk.models.get_whatsapp_event_report import GetWhatsappEventReport +from sib_api_v3_sdk.models.get_whatsapp_event_report_events import GetWhatsappEventReportEvents +from sib_api_v3_sdk.models.inline_response200 import InlineResponse200 from sib_api_v3_sdk.models.inline_response201 import InlineResponse201 +from sib_api_v3_sdk.models.inline_response2011 import InlineResponse2011 +from sib_api_v3_sdk.models.inline_response2012 import InlineResponse2012 +from sib_api_v3_sdk.models.inline_response2013 import InlineResponse2013 from sib_api_v3_sdk.models.manage_ip import ManageIp from sib_api_v3_sdk.models.master_details_response import MasterDetailsResponse from sib_api_v3_sdk.models.master_details_response_billing_info import MasterDetailsResponseBillingInfo @@ -184,6 +248,12 @@ from sib_api_v3_sdk.models.note_data import NoteData from sib_api_v3_sdk.models.note_id import NoteId from sib_api_v3_sdk.models.note_list import NoteList +from sib_api_v3_sdk.models.order import Order +from sib_api_v3_sdk.models.order_batch import OrderBatch +from sib_api_v3_sdk.models.order_billing import OrderBilling +from sib_api_v3_sdk.models.order_products import OrderProducts +from sib_api_v3_sdk.models.pipeline import Pipeline +from sib_api_v3_sdk.models.pipeline_stage import PipelineStage from sib_api_v3_sdk.models.post_contact_info import PostContactInfo from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts from sib_api_v3_sdk.models.post_send_failed import PostSendFailed @@ -215,6 +285,7 @@ from sib_api_v3_sdk.models.send_test_email import SendTestEmail from sib_api_v3_sdk.models.send_test_sms import SendTestSms from sib_api_v3_sdk.models.send_transac_sms import SendTransacSms +from sib_api_v3_sdk.models.send_whatsapp_message import SendWhatsappMessage from sib_api_v3_sdk.models.sso_token_request import SsoTokenRequest from sib_api_v3_sdk.models.sub_account_details_response import SubAccountDetailsResponse from sib_api_v3_sdk.models.sub_account_details_response_plan_info import SubAccountDetailsResponsePlanInfo @@ -246,13 +317,18 @@ from sib_api_v3_sdk.models.update_email_campaign import UpdateEmailCampaign from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender +from sib_api_v3_sdk.models.update_external_feed import UpdateExternalFeed from sib_api_v3_sdk.models.update_list import UpdateList from sib_api_v3_sdk.models.update_sender import UpdateSender from sib_api_v3_sdk.models.update_sms_campaign import UpdateSmsCampaign from sib_api_v3_sdk.models.update_smtp_template import UpdateSmtpTemplate from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender from sib_api_v3_sdk.models.update_webhook import UpdateWebhook +from sib_api_v3_sdk.models.upload_image_model import UploadImageModel from sib_api_v3_sdk.models.upload_image_to_gallery import UploadImageToGallery +from sib_api_v3_sdk.models.variables_items import VariablesItems +from sib_api_v3_sdk.models.whatsapp_camp_stats import WhatsappCampStats +from sib_api_v3_sdk.models.whatsapp_camp_template import WhatsappCampTemplate from sib_api_v3_sdk.models.get_child_info import GetChildInfo from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient diff --git a/sib_api_v3_sdk/api/__init__.py b/sib_api_v3_sdk/api/__init__.py index 8592b4e..7d8e00c 100644 --- a/sib_api_v3_sdk/api/__init__.py +++ b/sib_api_v3_sdk/api/__init__.py @@ -4,18 +4,24 @@ # import apis into api package from sib_api_v3_sdk.api.account_api import AccountApi -from sib_api_v3_sdk.api.attributes_api import AttributesApi -from sib_api_v3_sdk.api.crm_api import CRMApi +from sib_api_v3_sdk.api.companies_api import CompaniesApi from sib_api_v3_sdk.api.contacts_api import ContactsApi +from sib_api_v3_sdk.api.conversations_api import ConversationsApi +from sib_api_v3_sdk.api.deals_api import DealsApi +from sib_api_v3_sdk.api.ecommerce_api import EcommerceApi from sib_api_v3_sdk.api.email_campaigns_api import EmailCampaignsApi -from sib_api_v3_sdk.api.folders_api import FoldersApi +from sib_api_v3_sdk.api.external_feeds_api import ExternalFeedsApi +from sib_api_v3_sdk.api.files_api import FilesApi from sib_api_v3_sdk.api.inbound_parsing_api import InboundParsingApi -from sib_api_v3_sdk.api.lists_api import ListsApi from sib_api_v3_sdk.api.master_account_api import MasterAccountApi +from sib_api_v3_sdk.api.notes_api import NotesApi from sib_api_v3_sdk.api.process_api import ProcessApi from sib_api_v3_sdk.api.reseller_api import ResellerApi from sib_api_v3_sdk.api.sms_campaigns_api import SMSCampaignsApi from sib_api_v3_sdk.api.senders_api import SendersApi +from sib_api_v3_sdk.api.tasks_api import TasksApi from sib_api_v3_sdk.api.transactional_sms_api import TransactionalSMSApi +from sib_api_v3_sdk.api.transactional_whats_app_api import TransactionalWhatsAppApi from sib_api_v3_sdk.api.transactional_emails_api import TransactionalEmailsApi from sib_api_v3_sdk.api.webhooks_api import WebhooksApi +from sib_api_v3_sdk.api.whatsapp_campaigns_api import WhatsappCampaignsApi diff --git a/sib_api_v3_sdk/api/companies_api.py b/sib_api_v3_sdk/api/companies_api.py new file mode 100644 index 0000000..35accea --- /dev/null +++ b/sib_api_v3_sdk/api/companies_api.py @@ -0,0 +1,741 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class CompaniesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def companies_attributes_get(self, **kwargs): # noqa: E501 + """Get company attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_attributes_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: CompanyAttributes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_attributes_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.companies_attributes_get_with_http_info(**kwargs) # noqa: E501 + return data + + def companies_attributes_get_with_http_info(self, **kwargs): # noqa: E501 + """Get company attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_attributes_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: CompanyAttributes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_attributes_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies/attributes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CompanyAttributes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_get(self, **kwargs): # noqa: E501 + """Get all companies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filters: Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} + :param int linked_contacts_ids: Filter by linked contacts ids + :param str linked_deals_ids: Filter by linked deals ids + :param int page: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: CompaniesList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.companies_get_with_http_info(**kwargs) # noqa: E501 + return data + + def companies_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all companies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filters: Filter by attrbutes. If you have filter for owner on your side please send it as {\"attributes.owner\":\"5b1a17d914b73d35a76ca0c7\"} + :param int linked_contacts_ids: Filter by linked contacts ids + :param str linked_deals_ids: Filter by linked deals ids + :param int page: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: CompaniesList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['filters', 'linked_contacts_ids', 'linked_deals_ids', 'page', 'limit', 'sort', 'sort_by'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filters' in params: + query_params.append(('filters', params['filters'])) # noqa: E501 + if 'linked_contacts_ids' in params: + query_params.append(('linkedContactsIds', params['linked_contacts_ids'])) # noqa: E501 + if 'linked_deals_ids' in params: + query_params.append(('linkedDealsIds', params['linked_deals_ids'])) # noqa: E501 + if 'page' in params: + query_params.append(('page', params['page'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sortBy', params['sort_by'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CompaniesList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.companies_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def companies_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `companies_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_id_get(self, id, **kwargs): # noqa: E501 + """Get a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Company + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.companies_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def companies_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Company + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `companies_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Company', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_id_patch(self, id, body, **kwargs): # noqa: E501 + """Update a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body1 body: Updated company details. (required) + :return: Company + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.companies_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def companies_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Update a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body1 body: Updated company details. (required) + :return: Company + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `companies_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `companies_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Company', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_link_unlink_id_patch(self, id, body, **kwargs): # noqa: E501 + """Link and Unlink company with contacts and deals # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_link_unlink_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body2 body: Linked / Unlinked contacts and deals ids. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_link_unlink_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.companies_link_unlink_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def companies_link_unlink_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Link and Unlink company with contacts and deals # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_link_unlink_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body2 body: Linked / Unlinked contacts and deals ids. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_link_unlink_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `companies_link_unlink_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `companies_link_unlink_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies/link-unlink/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def companies_post(self, body, **kwargs): # noqa: E501 + """Create a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body body: Company create data. (required) + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.companies_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.companies_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def companies_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a company # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.companies_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body body: Company create data. (required) + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method companies_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `companies_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/companies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse200', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/contacts_api.py b/sib_api_v3_sdk/api/contacts_api.py index 23e9082..f32f9f0 100644 --- a/sib_api_v3_sdk/api/contacts_api.py +++ b/sib_api_v3_sdk/api/contacts_api.py @@ -1135,8 +1135,8 @@ def get_contact_info(self, identifier, **kwargs): # noqa: E501 :param async_req bool :param str identifier: Email (urlencoded) OR ID of the contact OR its SMS attribute value (required) - :param object start_date: **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate - :param object end_date: **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. + :param str start_date: **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate + :param str end_date: **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. :return: GetExtendedContactDetails If the method is called asynchronously, returns the request thread. @@ -1159,8 +1159,8 @@ def get_contact_info_with_http_info(self, identifier, **kwargs): # noqa: E501 :param async_req bool :param str identifier: Email (urlencoded) OR ID of the contact OR its SMS attribute value (required) - :param object start_date: **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate - :param object end_date: **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. + :param str start_date: **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate + :param str end_date: **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. :return: GetExtendedContactDetails If the method is called asynchronously, returns the request thread. @@ -1348,6 +1348,7 @@ def get_contacts(self, **kwargs): # noqa: E501 :param int limit: Number of documents per page :param int offset: Index of the first document of the page :param str modified_since: Filter (urlencoded) the contacts 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. + :param str created_since: Filter (urlencoded) the contacts 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. :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed :return: GetContacts If the method is called asynchronously, @@ -1372,13 +1373,14 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 :param int limit: Number of documents per page :param int offset: Index of the first document of the page :param str modified_since: Filter (urlencoded) the contacts 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. + :param str created_since: Filter (urlencoded) the contacts 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. :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed :return: GetContacts If the method is called asynchronously, returns the request thread. """ - all_params = ['limit', 'offset', 'modified_since', 'sort'] # noqa: E501 + all_params = ['limit', 'offset', 'modified_since', 'created_since', 'sort'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1396,6 +1398,8 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 1000: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_contacts`, must be a value less than or equal to `1000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_contacts`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1407,6 +1411,8 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('offset', params['offset'])) # noqa: E501 if 'modified_since' in params: query_params.append(('modifiedSince', params['modified_since'])) # noqa: E501 + if 'created_since' in params: + query_params.append(('createdSince', params['created_since'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 @@ -1509,6 +1515,8 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 if 'limit' in params and params['limit'] > 500: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value less than or equal to `500`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1719,6 +1727,8 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 50: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_folder_lists`, must be a value less than or equal to `50`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_folder_lists`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1832,6 +1842,8 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 50: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_folders`, must be a value less than or equal to `50`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_folders`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -2032,6 +2044,8 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 50: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_lists`, must be a value less than or equal to `50`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_lists`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/conversations_api.py b/sib_api_v3_sdk/api/conversations_api.py new file mode 100644 index 0000000..de29cbe --- /dev/null +++ b/sib_api_v3_sdk/api/conversations_api.py @@ -0,0 +1,927 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class ConversationsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def conversations_agent_online_ping_post(self, body, **kwargs): # noqa: E501 + """Sets agent’s status to online for 2-3 minutes # noqa: E501 + + We recommend pinging this endpoint every minute for as long as the agent has to be considered online. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_agent_online_ping_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body12 body: Agent fields. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_agent_online_ping_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.conversations_agent_online_ping_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def conversations_agent_online_ping_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Sets agent’s status to online for 2-3 minutes # noqa: E501 + + We recommend pinging this endpoint every minute for as long as the agent has to be considered online. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_agent_online_ping_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body12 body: Agent fields. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_agent_online_ping_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `conversations_agent_online_ping_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/agentOnlinePing', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_messages_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a message sent by an agent # noqa: E501 + + Only agents’ messages can be deleted. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_messages_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.conversations_messages_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def conversations_messages_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a message sent by an agent # noqa: E501 + + Only agents’ messages can be deleted. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_messages_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_messages_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/messages/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_messages_id_get(self, id, **kwargs): # noqa: E501 + """Get a message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_messages_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.conversations_messages_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def conversations_messages_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_messages_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_messages_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/messages/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_messages_id_put(self, id, **kwargs): # noqa: E501 + """Update a message sent by an agent # noqa: E501 + + Only agents’ messages can be edited. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_put(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :param Body9 body: + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_messages_id_put_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.conversations_messages_id_put_with_http_info(id, **kwargs) # noqa: E501 + return data + + def conversations_messages_id_put_with_http_info(self, id, **kwargs): # noqa: E501 + """Update a message sent by an agent # noqa: E501 + + Only agents’ messages can be edited. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_id_put_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :param Body9 body: + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_messages_id_put" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_messages_id_put`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/messages/{id}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_messages_post(self, body, **kwargs): # noqa: E501 + """Send a message as an agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body8 body: Message fields. (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_messages_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.conversations_messages_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def conversations_messages_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Send a message as an agent # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_messages_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body8 body: Message fields. (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_messages_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `conversations_messages_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/messages', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_pushed_messages_id_delete(self, id, **kwargs): # noqa: E501 + """Delete an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_pushed_messages_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.conversations_pushed_messages_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def conversations_pushed_messages_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_pushed_messages_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_pushed_messages_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/pushedMessages/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_pushed_messages_id_get(self, id, **kwargs): # noqa: E501 + """Get an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message sent previously (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_pushed_messages_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.conversations_pushed_messages_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def conversations_pushed_messages_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message sent previously (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_pushed_messages_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_pushed_messages_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/pushedMessages/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_pushed_messages_id_put(self, id, body, **kwargs): # noqa: E501 + """Update an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_put(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :param Body11 body: (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_pushed_messages_id_put_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.conversations_pushed_messages_id_put_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def conversations_pushed_messages_id_put_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Update an automated message # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_id_put_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: ID of the message (required) + :param Body11 body: (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_pushed_messages_id_put" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `conversations_pushed_messages_id_put`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `conversations_pushed_messages_id_put`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/pushedMessages/{id}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def conversations_pushed_messages_post(self, body, **kwargs): # noqa: E501 + """Send an automated message to a visitor # noqa: E501 + + Example of automated messages: order status, announce new features in your web app, etc. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body10 body: (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.conversations_pushed_messages_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.conversations_pushed_messages_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def conversations_pushed_messages_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Send an automated message to a visitor # noqa: E501 + + Example of automated messages: order status, announce new features in your web app, etc. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.conversations_pushed_messages_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body10 body: (required) + :return: ConversationsMessage + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method conversations_pushed_messages_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `conversations_pushed_messages_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/conversations/pushedMessages', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='ConversationsMessage', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/deals_api.py b/sib_api_v3_sdk/api/deals_api.py new file mode 100644 index 0000000..25715a5 --- /dev/null +++ b/sib_api_v3_sdk/api/deals_api.py @@ -0,0 +1,830 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class DealsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def crm_attributes_deals_get(self, **kwargs): # noqa: E501 + """Get deal attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_attributes_deals_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: DealAttributes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_attributes_deals_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_attributes_deals_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_attributes_deals_get_with_http_info(self, **kwargs): # noqa: E501 + """Get deal attributes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_attributes_deals_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: DealAttributes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_attributes_deals_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/attributes/deals', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DealAttributes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_get(self, **kwargs): # noqa: E501 + """Get all deals # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filters_attributes: Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" + :param str filters_linked_companies_ids: Filter by linked companies ids + :param str filters_linked_contacts_ids: Filter by linked companies ids + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: DealsList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_deals_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_deals_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all deals # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filters_attributes: Filter by attrbutes. If you have filter for owner on your side please send it as `attributes.owner`.\" + :param str filters_linked_companies_ids: Filter by linked companies ids + :param str filters_linked_contacts_ids: Filter by linked companies ids + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: DealsList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['filters_attributes', 'filters_linked_companies_ids', 'filters_linked_contacts_ids', 'offset', 'limit', 'sort', 'sort_by'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filters_attributes' in params: + query_params.append(('filters[attributes]', params['filters_attributes'])) # noqa: E501 + if 'filters_linked_companies_ids' in params: + query_params.append(('filters[linkedCompaniesIds]', params['filters_linked_companies_ids'])) # noqa: E501 + if 'filters_linked_contacts_ids' in params: + query_params.append(('filters[linkedContactsIds]', params['filters_linked_contacts_ids'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sortBy', params['sort_by'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='DealsList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_deals_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_deals_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_deals_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_id_get(self, id, **kwargs): # noqa: E501 + """Get a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Deal + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_deals_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_deals_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Deal + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_deals_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Deal', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_id_patch(self, id, body, **kwargs): # noqa: E501 + """Update a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body4 body: Updated deal details. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.crm_deals_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def crm_deals_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Update a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body4 body: Updated deal details. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_deals_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_deals_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_link_unlink_id_patch(self, id, body, **kwargs): # noqa: E501 + """Link and Unlink a deal with contacts and companies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_link_unlink_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body5 body: Linked / Unlinked contacts and companies ids. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_link_unlink_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.crm_deals_link_unlink_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def crm_deals_link_unlink_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Link and Unlink a deal with contacts and companies # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_link_unlink_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body5 body: Linked / Unlinked contacts and companies ids. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_link_unlink_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_deals_link_unlink_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_deals_link_unlink_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals/link-unlink/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_deals_post(self, body, **kwargs): # noqa: E501 + """Create a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body3 body: Deal create data. (required) + :return: InlineResponse201 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_deals_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.crm_deals_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def crm_deals_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a deal # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_deals_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body3 body: Deal create data. (required) + :return: InlineResponse201 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_deals_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_deals_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/deals', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse201', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_pipeline_details_get(self, **kwargs): # noqa: E501 + """Get pipeline stages # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_pipeline_details_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: Pipeline + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_pipeline_details_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_pipeline_details_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_pipeline_details_get_with_http_info(self, **kwargs): # noqa: E501 + """Get pipeline stages # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_pipeline_details_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: Pipeline + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_pipeline_details_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/pipeline/details', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Pipeline', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/ecommerce_api.py b/sib_api_v3_sdk/api/ecommerce_api.py new file mode 100644 index 0000000..e4c8b3d --- /dev/null +++ b/sib_api_v3_sdk/api/ecommerce_api.py @@ -0,0 +1,1139 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class EcommerceApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_batch_order(self, order_batch, **kwargs): # noqa: E501 + """Create orders in batch # noqa: E501 + + Create multiple orders at one time instead of one order at a time # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_batch_order(order_batch, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param OrderBatch order_batch: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_batch_order_with_http_info(order_batch, **kwargs) # noqa: E501 + else: + (data) = self.create_batch_order_with_http_info(order_batch, **kwargs) # noqa: E501 + return data + + def create_batch_order_with_http_info(self, order_batch, **kwargs): # noqa: E501 + """Create orders in batch # noqa: E501 + + Create multiple orders at one time instead of one order at a time # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_batch_order_with_http_info(order_batch, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param OrderBatch order_batch: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['order_batch'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_batch_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'order_batch' is set + if ('order_batch' not in params or + params['order_batch'] is None): + raise ValueError("Missing the required parameter `order_batch` when calling `create_batch_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'order_batch' in params: + body_params = params['order_batch'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/orders/status/batch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_order(self, order, **kwargs): # noqa: E501 + """Managing the status of the order # noqa: E501 + + Manages the transactional status of the order # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_order(order, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Order order: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_order_with_http_info(order, **kwargs) # noqa: E501 + else: + (data) = self.create_order_with_http_info(order, **kwargs) # noqa: E501 + return data + + def create_order_with_http_info(self, order, **kwargs): # noqa: E501 + """Managing the status of the order # noqa: E501 + + Manages the transactional status of the order # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_order_with_http_info(order, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Order order: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['order'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_order" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'order' is set + if ('order' not in params or + params['order'] is None): + raise ValueError("Missing the required parameter `order` when calling `create_order`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'order' in params: + body_params = params['order'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/orders/status', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_update_batch_category(self, create_update_batch_category, **kwargs): # noqa: E501 + """Create categories in batch # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_batch_category(create_update_batch_category, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateBatchCategory create_update_batch_category: Values to create a batch of categories (required) + :return: CreateUpdateBatchCategoryModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_update_batch_category_with_http_info(create_update_batch_category, **kwargs) # noqa: E501 + else: + (data) = self.create_update_batch_category_with_http_info(create_update_batch_category, **kwargs) # noqa: E501 + return data + + def create_update_batch_category_with_http_info(self, create_update_batch_category, **kwargs): # noqa: E501 + """Create categories in batch # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_batch_category_with_http_info(create_update_batch_category, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateBatchCategory create_update_batch_category: Values to create a batch of categories (required) + :return: CreateUpdateBatchCategoryModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_update_batch_category'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_update_batch_category" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_update_batch_category' is set + if ('create_update_batch_category' not in params or + params['create_update_batch_category'] is None): + raise ValueError("Missing the required parameter `create_update_batch_category` when calling `create_update_batch_category`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_update_batch_category' in params: + body_params = params['create_update_batch_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/categories/batch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateUpdateBatchCategoryModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_update_batch_products(self, create_update_batch_products, **kwargs): # noqa: E501 + """Create products in batch # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_batch_products(create_update_batch_products, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateBatchProducts create_update_batch_products: Values to create a batch of products (required) + :return: CreateUpdateBatchProductsModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_update_batch_products_with_http_info(create_update_batch_products, **kwargs) # noqa: E501 + else: + (data) = self.create_update_batch_products_with_http_info(create_update_batch_products, **kwargs) # noqa: E501 + return data + + def create_update_batch_products_with_http_info(self, create_update_batch_products, **kwargs): # noqa: E501 + """Create products in batch # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_batch_products_with_http_info(create_update_batch_products, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateBatchProducts create_update_batch_products: Values to create a batch of products (required) + :return: CreateUpdateBatchProductsModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_update_batch_products'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_update_batch_products" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_update_batch_products' is set + if ('create_update_batch_products' not in params or + params['create_update_batch_products'] is None): + raise ValueError("Missing the required parameter `create_update_batch_products` when calling `create_update_batch_products`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_update_batch_products' in params: + body_params = params['create_update_batch_products'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/products/batch', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateUpdateBatchProductsModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_update_category(self, create_update_category, **kwargs): # noqa: E501 + """Create/Update a category # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_category(create_update_category, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateCategory create_update_category: Values to create/update a category (required) + :return: CreateCategoryModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_update_category_with_http_info(create_update_category, **kwargs) # noqa: E501 + else: + (data) = self.create_update_category_with_http_info(create_update_category, **kwargs) # noqa: E501 + return data + + def create_update_category_with_http_info(self, create_update_category, **kwargs): # noqa: E501 + """Create/Update a category # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_category_with_http_info(create_update_category, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateCategory create_update_category: Values to create/update a category (required) + :return: CreateCategoryModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_update_category'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_update_category" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_update_category' is set + if ('create_update_category' not in params or + params['create_update_category'] is None): + raise ValueError("Missing the required parameter `create_update_category` when calling `create_update_category`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_update_category' in params: + body_params = params['create_update_category'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/categories', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateCategoryModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def create_update_product(self, create_update_product, **kwargs): # noqa: E501 + """Create/Update a product # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_product(create_update_product, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateProduct create_update_product: Values to create/update a product (required) + :return: CreateProductModel + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_update_product_with_http_info(create_update_product, **kwargs) # noqa: E501 + else: + (data) = self.create_update_product_with_http_info(create_update_product, **kwargs) # noqa: E501 + return data + + def create_update_product_with_http_info(self, create_update_product, **kwargs): # noqa: E501 + """Create/Update a product # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_update_product_with_http_info(create_update_product, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateUpdateProduct create_update_product: Values to create/update a product (required) + :return: CreateProductModel + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_update_product'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_update_product" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_update_product' is set + if ('create_update_product' not in params or + params['create_update_product'] is None): + raise ValueError("Missing the required parameter `create_update_product` when calling `create_update_product`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_update_product' in params: + body_params = params['create_update_product'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/products', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateProductModel', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ecommerce_activate_post(self, **kwargs): # noqa: E501 + """Activate the eCommerce app # noqa: E501 + + Getting access to Sendinblue eCommerce. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ecommerce_activate_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ecommerce_activate_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ecommerce_activate_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ecommerce_activate_post_with_http_info(self, **kwargs): # noqa: E501 + """Activate the eCommerce app # noqa: E501 + + Getting access to Sendinblue eCommerce. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ecommerce_activate_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ecommerce_activate_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/ecommerce/activate', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_categories(self, **kwargs): # noqa: E501 + """Return all your categories # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_categories(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param list[str] ids: Filter by category ids + :param str name: Filter by category name + :return: GetCategories + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_categories_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_categories_with_http_info(**kwargs) # noqa: E501 + return data + + def get_categories_with_http_info(self, **kwargs): # noqa: E501 + """Return all your categories # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_categories_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param list[str] ids: Filter by category ids + :param str name: Filter by category name + :return: GetCategories + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'offset', 'sort', 'ids', 'name'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_categories" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 100: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_categories`, must be a value less than or equal to `100`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'ids' in params: + query_params.append(('ids', params['ids'])) # noqa: E501 + collection_formats['ids'] = 'csv' # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/categories', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetCategories', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_category_info(self, id, **kwargs): # noqa: E501 + """Get a category details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_category_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Category ID (required) + :return: GetCategoryDetails + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_category_info_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_category_info_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_category_info_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a category details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_category_info_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Category ID (required) + :return: GetCategoryDetails + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_category_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_category_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/categories/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetCategoryDetails', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_product_info(self, id, **kwargs): # noqa: E501 + """Get a product's details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_product_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Product ID (required) + :return: GetProductDetails + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_product_info_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.get_product_info_with_http_info(id, **kwargs) # noqa: E501 + return data + + def get_product_info_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a product's details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_product_info_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Product ID (required) + :return: GetProductDetails + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_product_info" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `get_product_info`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/products/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetProductDetails', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_products(self, **kwargs): # noqa: E501 + """Return all your products # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_products(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param list[str] ids: Filter by product ids + :param str name: Filter by product name, minimum 3 characters should be present for search + :param list[str] price: Filter by product price, like price[lte] + :param list[str] categories: Filter by category ids + :return: GetProducts + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_products_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_products_with_http_info(**kwargs) # noqa: E501 + return data + + def get_products_with_http_info(self, **kwargs): # noqa: E501 + """Return all your products # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_products_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param list[str] ids: Filter by product ids + :param str name: Filter by product name, minimum 3 characters should be present for search + :param list[str] price: Filter by product price, like price[lte] + :param list[str] categories: Filter by category ids + :return: GetProducts + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'offset', 'sort', 'ids', 'name', 'price', 'categories'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_products" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 1000: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_products`, must be a value less than or equal to `1000`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'ids' in params: + query_params.append(('ids', params['ids'])) # noqa: E501 + collection_formats['ids'] = 'csv' # noqa: E501 + if 'name' in params: + query_params.append(('name', params['name'])) # noqa: E501 + if 'price' in params: + query_params.append(('price', params['price'])) # noqa: E501 + collection_formats['price'] = 'csv' # noqa: E501 + if 'categories' in params: + query_params.append(('categories', params['categories'])) # noqa: E501 + collection_formats['categories'] = 'csv' # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/products', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetProducts', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/email_campaigns_api.py b/sib_api_v3_sdk/api/email_campaigns_api.py index edc0dbc..920d7c3 100644 --- a/sib_api_v3_sdk/api/email_campaigns_api.py +++ b/sib_api_v3_sdk/api/email_campaigns_api.py @@ -437,6 +437,7 @@ def get_email_campaign(self, campaign_id, **kwargs): # noqa: E501 :param async_req bool :param int campaign_id: Id of the campaign (required) + :param str statistics: Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. @@ -458,12 +459,13 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 :param async_req bool :param int campaign_id: Id of the campaign (required) + :param str statistics: Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. """ - all_params = ['campaign_id'] # noqa: E501 + all_params = ['campaign_id', 'statistics'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -490,6 +492,8 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E50 path_params['campaignId'] = params['campaign_id'] # noqa: E501 query_params = [] + if 'statistics' in params: + query_params.append(('statistics', params['statistics'])) # noqa: E501 header_params = {} @@ -535,11 +539,13 @@ def get_email_campaigns(self, **kwargs): # noqa: E501 :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign + :param str statistics: Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number of documents per page :param int offset: Index of the first document in the page :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param bool exclude_html_content: Use this flag to exclude htmlContent from the response body. If set to **true**, htmlContent field will be returned as empty string in the response body :return: GetEmailCampaigns If the method is called asynchronously, returns the request thread. @@ -562,17 +568,19 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param str type: Filter on the type of the campaigns :param str status: Filter on the status of the campaign + :param str statistics: Filter on the type of statistics required. Example **globalStats** value will only fetch globalStats info of the campaign in returned response. :param str start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param str end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' ) :param int limit: Number of documents per page :param int offset: Index of the first document in the page :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :param bool exclude_html_content: Use this flag to exclude htmlContent from the response body. If set to **true**, htmlContent field will be returned as empty string in the response body :return: GetEmailCampaigns If the method is called asynchronously, returns the request thread. """ - all_params = ['type', 'status', 'start_date', 'end_date', 'limit', 'offset', 'sort'] # noqa: E501 + all_params = ['type', 'status', 'statistics', 'start_date', 'end_date', 'limit', 'offset', 'sort', 'exclude_html_content'] # noqa: E501 all_params.append('async_req') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -590,6 +598,8 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 100: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_email_campaigns`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_email_campaigns`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -599,6 +609,8 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('type', params['type'])) # noqa: E501 if 'status' in params: query_params.append(('status', params['status'])) # noqa: E501 + if 'statistics' in params: + query_params.append(('statistics', params['statistics'])) # noqa: E501 if 'start_date' in params: query_params.append(('startDate', params['start_date'])) # noqa: E501 if 'end_date' in params: @@ -609,6 +621,8 @@ def get_email_campaigns_with_http_info(self, **kwargs): # noqa: E501 query_params.append(('offset', params['offset'])) # noqa: E501 if 'sort' in params: query_params.append(('sort', params['sort'])) # noqa: E501 + if 'exclude_html_content' in params: + query_params.append(('excludeHtmlContent', params['exclude_html_content'])) # noqa: E501 header_params = {} @@ -1271,7 +1285,7 @@ def upload_image_to_gallery(self, upload_image, **kwargs): # noqa: E501 :param async_req bool :param UploadImageToGallery upload_image: Parameters to upload an image (required) - :return: None + :return: UploadImageModel If the method is called asynchronously, returns the request thread. """ @@ -1292,7 +1306,7 @@ def upload_image_to_gallery_with_http_info(self, upload_image, **kwargs): # noq :param async_req bool :param UploadImageToGallery upload_image: Parameters to upload an image (required) - :return: None + :return: UploadImageModel If the method is called asynchronously, returns the request thread. """ @@ -1350,7 +1364,7 @@ def upload_image_to_gallery_with_http_info(self, upload_image, **kwargs): # noq body=body_params, post_params=form_params, files=local_var_files, - response_type=None, # noqa: E501 + response_type='UploadImageModel', # noqa: E501 auth_settings=auth_settings, async_req=params.get('async_req'), _return_http_data_only=params.get('_return_http_data_only'), diff --git a/sib_api_v3_sdk/api/external_feeds_api.py b/sib_api_v3_sdk/api/external_feeds_api.py new file mode 100644 index 0000000..729e267 --- /dev/null +++ b/sib_api_v3_sdk/api/external_feeds_api.py @@ -0,0 +1,561 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class ExternalFeedsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def create_external_feed(self, create_external_feed, **kwargs): # noqa: E501 + """Create an external feed # noqa: E501 + + This endpoint will create an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_external_feed(create_external_feed, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateExternalFeed create_external_feed: Values to create a feed (required) + :return: InlineResponse2013 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.create_external_feed_with_http_info(create_external_feed, **kwargs) # noqa: E501 + else: + (data) = self.create_external_feed_with_http_info(create_external_feed, **kwargs) # noqa: E501 + return data + + def create_external_feed_with_http_info(self, create_external_feed, **kwargs): # noqa: E501 + """Create an external feed # noqa: E501 + + This endpoint will create an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.create_external_feed_with_http_info(create_external_feed, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateExternalFeed create_external_feed: Values to create a feed (required) + :return: InlineResponse2013 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_external_feed'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_external_feed" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_external_feed' is set + if ('create_external_feed' not in params or + params['create_external_feed'] is None): + raise ValueError("Missing the required parameter `create_external_feed` when calling `create_external_feed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_external_feed' in params: + body_params = params['create_external_feed'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/feeds', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2013', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_external_feed(self, uuid, **kwargs): # noqa: E501 + """Delete an external feed # noqa: E501 + + This endpoint will delete an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_external_feed(uuid, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_external_feed_with_http_info(uuid, **kwargs) # noqa: E501 + else: + (data) = self.delete_external_feed_with_http_info(uuid, **kwargs) # noqa: E501 + return data + + def delete_external_feed_with_http_info(self, uuid, **kwargs): # noqa: E501 + """Delete an external feed # noqa: E501 + + This endpoint will delete an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_external_feed_with_http_info(uuid, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['uuid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_external_feed" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'uuid' is set + if ('uuid' not in params or + params['uuid'] is None): + raise ValueError("Missing the required parameter `uuid` when calling `delete_external_feed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'uuid' in params: + path_params['uuid'] = params['uuid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/feeds/{uuid}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_all_external_feeds(self, **kwargs): # noqa: E501 + """Fetch all external feeds # noqa: E501 + + This endpoint can fetch all created external feeds. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_external_feeds(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str search: Can be used to filter records by search keyword on feed name + :param date start_date: Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. + :param date end_date: Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. + :param str auth_type: Filter the records by `authType` of the feed. + :param int limit: Number of documents returned per page. + :param int offset: Index of the first document on the page. + :return: GetAllExternalFeeds + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_all_external_feeds_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_all_external_feeds_with_http_info(**kwargs) # noqa: E501 + return data + + def get_all_external_feeds_with_http_info(self, **kwargs): # noqa: E501 + """Fetch all external feeds # noqa: E501 + + This endpoint can fetch all created external feeds. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_all_external_feeds_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str search: Can be used to filter records by search keyword on feed name + :param date start_date: Mandatory if `endDate` is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Can be maximum 30 days older than current date. + :param date end_date: Mandatory if `startDate` is used. Ending date (YYYY-MM-DD) till which you want to fetch the list. Maximum time period that can be selected is one month. + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed. + :param str auth_type: Filter the records by `authType` of the feed. + :param int limit: Number of documents returned per page. + :param int offset: Index of the first document on the page. + :return: GetAllExternalFeeds + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['search', 'start_date', 'end_date', 'sort', 'auth_type', 'limit', 'offset'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_all_external_feeds" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 500: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_all_external_feeds`, must be a value less than or equal to `500`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_all_external_feeds`, must be a value greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'search' in params: + query_params.append(('search', params['search'])) # noqa: E501 + if 'start_date' in params: + query_params.append(('startDate', params['start_date'])) # noqa: E501 + if 'end_date' in params: + query_params.append(('endDate', params['end_date'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'auth_type' in params: + query_params.append(('authType', params['auth_type'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/feeds', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetAllExternalFeeds', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_external_feed_by_uuid(self, uuid, **kwargs): # noqa: E501 + """Get an external feed by UUID # noqa: E501 + + This endpoint will update an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_external_feed_by_uuid(uuid, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to fetch (required) + :return: GetExternalFeedByUUID + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_external_feed_by_uuid_with_http_info(uuid, **kwargs) # noqa: E501 + else: + (data) = self.get_external_feed_by_uuid_with_http_info(uuid, **kwargs) # noqa: E501 + return data + + def get_external_feed_by_uuid_with_http_info(self, uuid, **kwargs): # noqa: E501 + """Get an external feed by UUID # noqa: E501 + + This endpoint will update an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_external_feed_by_uuid_with_http_info(uuid, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to fetch (required) + :return: GetExternalFeedByUUID + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['uuid'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_external_feed_by_uuid" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'uuid' is set + if ('uuid' not in params or + params['uuid'] is None): + raise ValueError("Missing the required parameter `uuid` when calling `get_external_feed_by_uuid`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'uuid' in params: + path_params['uuid'] = params['uuid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/feeds/{uuid}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetExternalFeedByUUID', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def update_external_feed(self, uuid, update_external_feed, **kwargs): # noqa: E501 + """Update an external feed # noqa: E501 + + This endpoint will update an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_external_feed(uuid, update_external_feed, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to update (required) + :param UpdateExternalFeed update_external_feed: Values to update a feed (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.update_external_feed_with_http_info(uuid, update_external_feed, **kwargs) # noqa: E501 + else: + (data) = self.update_external_feed_with_http_info(uuid, update_external_feed, **kwargs) # noqa: E501 + return data + + def update_external_feed_with_http_info(self, uuid, update_external_feed, **kwargs): # noqa: E501 + """Update an external feed # noqa: E501 + + This endpoint will update an external feed. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.update_external_feed_with_http_info(uuid, update_external_feed, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str uuid: UUID of the feed to update (required) + :param UpdateExternalFeed update_external_feed: Values to update a feed (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['uuid', 'update_external_feed'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method update_external_feed" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'uuid' is set + if ('uuid' not in params or + params['uuid'] is None): + raise ValueError("Missing the required parameter `uuid` when calling `update_external_feed`") # noqa: E501 + # verify the required parameter 'update_external_feed' is set + if ('update_external_feed' not in params or + params['update_external_feed'] is None): + raise ValueError("Missing the required parameter `update_external_feed` when calling `update_external_feed`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'uuid' in params: + path_params['uuid'] = params['uuid'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'update_external_feed' in params: + body_params = params['update_external_feed'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/feeds/{uuid}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/files_api.py b/sib_api_v3_sdk/api/files_api.py new file mode 100644 index 0000000..9af3e09 --- /dev/null +++ b/sib_api_v3_sdk/api/files_api.py @@ -0,0 +1,551 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class FilesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def crm_files_get(self, **kwargs): # noqa: E501 + """Get all files # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str entity: Filter by file entity type + :param str entity_ids: Filter by file entity IDs + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :return: FileList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_files_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_files_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_files_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all files # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str entity: Filter by file entity type + :param str entity_ids: Filter by file entity IDs + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :return: FileList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['entity', 'entity_ids', 'date_from', 'date_to', 'offset', 'limit', 'sort'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_files_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'entity' in params: + query_params.append(('entity', params['entity'])) # noqa: E501 + if 'entity_ids' in params: + query_params.append(('entityIds', params['entity_ids'])) # noqa: E501 + if 'date_from' in params: + query_params.append(('dateFrom', params['date_from'])) # noqa: E501 + if 'date_to' in params: + query_params.append(('dateTo', params['date_to'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/files', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FileList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_files_id_data_get(self, id, **kwargs): # noqa: E501 + """Get file details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_data_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to get file data. (required) + :return: FileData + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_files_id_data_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_files_id_data_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_files_id_data_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get file details # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_data_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to get file data. (required) + :return: FileData + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_files_id_data_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_files_id_data_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/files/{id}/data', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FileData', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_files_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to delete. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_files_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_files_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_files_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to delete. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_files_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_files_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/files/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_files_id_get(self, id, **kwargs): # noqa: E501 + """Download a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to download. (required) + :return: FileDownloadableLink + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_files_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_files_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_files_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Download a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: File id to download. (required) + :return: FileDownloadableLink + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_files_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_files_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/files/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FileDownloadableLink', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_files_post(self, file, **kwargs): # noqa: E501 + """Upload a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_post(file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file file: File data to create a file. (required) + :param str deal_id: Deal id linked to a file + :param int contact_id: Contact id linked to a file + :param str company_id: Company id linked to a file + :return: FileData + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_files_post_with_http_info(file, **kwargs) # noqa: E501 + else: + (data) = self.crm_files_post_with_http_info(file, **kwargs) # noqa: E501 + return data + + def crm_files_post_with_http_info(self, file, **kwargs): # noqa: E501 + """Upload a file # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_files_post_with_http_info(file, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param file file: File data to create a file. (required) + :param str deal_id: Deal id linked to a file + :param int contact_id: Contact id linked to a file + :param str company_id: Company id linked to a file + :return: FileData + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file', 'deal_id', 'contact_id', 'company_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_files_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'file' is set + if ('file' not in params or + params['file'] is None): + raise ValueError("Missing the required parameter `file` when calling `crm_files_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + if 'file' in params: + local_var_files['file'] = params['file'] # noqa: E501 + if 'deal_id' in params: + form_params.append(('dealId', params['deal_id'])) # noqa: E501 + if 'contact_id' in params: + form_params.append(('contactId', params['contact_id'])) # noqa: E501 + if 'company_id' in params: + form_params.append(('companyId', params['company_id'])) # noqa: E501 + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['multipart/form-data']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/files', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='FileData', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/inbound_parsing_api.py b/sib_api_v3_sdk/api/inbound_parsing_api.py index 4c4a28f..b74adc3 100644 --- a/sib_api_v3_sdk/api/inbound_parsing_api.py +++ b/sib_api_v3_sdk/api/inbound_parsing_api.py @@ -33,6 +33,105 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client + def get_inbound_email_attachment(self, download_token, **kwargs): # noqa: E501 + """Retrieve inbound attachment with download token. # noqa: E501 + + This endpoint will retrieve inbound attachment with download token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_inbound_email_attachment(download_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str download_token: Token to fetch a particular attachment (required) + :return: file + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 + else: + (data) = self.get_inbound_email_attachment_with_http_info(download_token, **kwargs) # noqa: E501 + return data + + def get_inbound_email_attachment_with_http_info(self, download_token, **kwargs): # noqa: E501 + """Retrieve inbound attachment with download token. # noqa: E501 + + This endpoint will retrieve inbound attachment with download token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_inbound_email_attachment_with_http_info(download_token, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str download_token: Token to fetch a particular attachment (required) + :return: file + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['download_token'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_inbound_email_attachment" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'download_token' is set + if ('download_token' not in params or + params['download_token'] is None): + raise ValueError("Missing the required parameter `download_token` when calling `get_inbound_email_attachment`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'download_token' in params: + path_params['downloadToken'] = params['download_token'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/inbound/attachments/{downloadToken}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='file', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_inbound_email_events(self, **kwargs): # noqa: E501 """Get the list of all the events for the received emails. # noqa: E501 @@ -99,6 +198,8 @@ def get_inbound_email_events_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 500: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_inbound_email_events`, must be a value less than or equal to `500`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_inbound_email_events`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/master_account_api.py b/sib_api_v3_sdk/api/master_account_api.py index e07ee3e..f95e83e 100644 --- a/sib_api_v3_sdk/api/master_account_api.py +++ b/sib_api_v3_sdk/api/master_account_api.py @@ -534,6 +534,105 @@ def corporate_sub_account_id_plan_put_with_http_info(self, id, update_plan_detai _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def corporate_sub_account_key_post(self, create_api_key_request, **kwargs): # noqa: E501 + """Create an API key for a sub-account # noqa: E501 + + This endpoint will generate an API v3 key for a sub account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.corporate_sub_account_key_post(create_api_key_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateApiKeyRequest create_api_key_request: Values to generate API key for sub-account (required) + :return: CreateApiKeyResponse + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.corporate_sub_account_key_post_with_http_info(create_api_key_request, **kwargs) # noqa: E501 + else: + (data) = self.corporate_sub_account_key_post_with_http_info(create_api_key_request, **kwargs) # noqa: E501 + return data + + def corporate_sub_account_key_post_with_http_info(self, create_api_key_request, **kwargs): # noqa: E501 + """Create an API key for a sub-account # noqa: E501 + + This endpoint will generate an API v3 key for a sub account # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.corporate_sub_account_key_post_with_http_info(create_api_key_request, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param CreateApiKeyRequest create_api_key_request: Values to generate API key for sub-account (required) + :return: CreateApiKeyResponse + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['create_api_key_request'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method corporate_sub_account_key_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'create_api_key_request' is set + if ('create_api_key_request' not in params or + params['create_api_key_request'] is None): + raise ValueError("Missing the required parameter `create_api_key_request` when calling `corporate_sub_account_key_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'create_api_key_request' in params: + body_params = params['create_api_key_request'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/corporate/subAccount/key', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='CreateApiKeyResponse', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def corporate_sub_account_post(self, sub_account_create, **kwargs): # noqa: E501 """Create a new sub-account under a master account. # noqa: E501 @@ -636,7 +735,7 @@ def corporate_sub_account_post_with_http_info(self, sub_account_create, **kwargs def corporate_sub_account_sso_token_post(self, sso_token_request, **kwargs): # noqa: E501 """Generate SSO token to access Sendinblue # noqa: E501 - This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. # noqa: E501 + This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.corporate_sub_account_sso_token_post(sso_token_request, async_req=True) @@ -658,7 +757,7 @@ def corporate_sub_account_sso_token_post(self, sso_token_request, **kwargs): # def corporate_sub_account_sso_token_post_with_http_info(self, sso_token_request, **kwargs): # noqa: E501 """Generate SSO token to access Sendinblue # noqa: E501 - This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. # noqa: E501 + This endpoint generates an sso token to authenticate and access a sub-account of the master using the account endpoint https://account-app.sendinblue.com/account/login/sub-account/sso/[token], where [token] will be replaced by the actual token. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.corporate_sub_account_sso_token_post_with_http_info(sso_token_request, async_req=True) diff --git a/sib_api_v3_sdk/api/notes_api.py b/sib_api_v3_sdk/api/notes_api.py new file mode 100644 index 0000000..bb299fb --- /dev/null +++ b/sib_api_v3_sdk/api/notes_api.py @@ -0,0 +1,547 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class NotesApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def crm_notes_get(self, **kwargs): # noqa: E501 + """Get all notes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str entity: Filter by note entity type + :param str entity_ids: Filter by note entity IDs + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :return: NoteList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_notes_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_notes_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_notes_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all notes # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str entity: Filter by note entity type + :param str entity_ids: Filter by note entity IDs + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :return: NoteList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['entity', 'entity_ids', 'date_from', 'date_to', 'offset', 'limit', 'sort'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_notes_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'entity' in params: + query_params.append(('entity', params['entity'])) # noqa: E501 + if 'entity_ids' in params: + query_params.append(('entityIds', params['entity_ids'])) # noqa: E501 + if 'date_from' in params: + query_params.append(('dateFrom', params['date_from'])) # noqa: E501 + if 'date_to' in params: + query_params.append(('dateTo', params['date_to'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/notes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NoteList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_notes_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_notes_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_notes_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_notes_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to delete (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_notes_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_notes_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/notes/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_notes_id_get(self, id, **kwargs): # noqa: E501 + """Get a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to get (required) + :return: Note + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_notes_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_notes_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_notes_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to get (required) + :return: Note + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_notes_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_notes_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/notes/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Note', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_notes_id_patch(self, id, body, **kwargs): # noqa: E501 + """Update a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to update (required) + :param NoteData body: Note data to update a note (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_notes_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.crm_notes_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def crm_notes_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Update a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: Note ID to update (required) + :param NoteData body: Note data to update a note (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_notes_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_notes_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_notes_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/notes/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_notes_post(self, body, **kwargs): # noqa: E501 + """Create a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NoteData body: Note data to create a note. (required) + :return: NoteId + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_notes_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.crm_notes_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def crm_notes_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a note # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_notes_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param NoteData body: Note data to create a note. (required) + :return: NoteId + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_notes_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_notes_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/notes', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='NoteId', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/process_api.py b/sib_api_v3_sdk/api/process_api.py index 343b79f..6c2af8f 100644 --- a/sib_api_v3_sdk/api/process_api.py +++ b/sib_api_v3_sdk/api/process_api.py @@ -188,6 +188,8 @@ def get_processes_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 50: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_processes`, must be a value less than or equal to `50`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_processes`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/reseller_api.py b/sib_api_v3_sdk/api/reseller_api.py index c49ebe9..e595eea 100644 --- a/sib_api_v3_sdk/api/reseller_api.py +++ b/sib_api_v3_sdk/api/reseller_api.py @@ -1095,6 +1095,8 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 20: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_reseller_childs`, must be a value less than or equal to `20`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_reseller_childs`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/sms_campaigns_api.py b/sib_api_v3_sdk/api/sms_campaigns_api.py index 137208f..62b9fcb 100644 --- a/sib_api_v3_sdk/api/sms_campaigns_api.py +++ b/sib_api_v3_sdk/api/sms_campaigns_api.py @@ -388,6 +388,8 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 1000: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_sms_campaigns`, must be a value less than or equal to `1000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_sms_campaigns`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/tasks_api.py b/sib_api_v3_sdk/api/tasks_api.py new file mode 100644 index 0000000..8180d21 --- /dev/null +++ b/sib_api_v3_sdk/api/tasks_api.py @@ -0,0 +1,660 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class TasksApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def crm_tasks_get(self, **kwargs): # noqa: E501 + """Get all tasks # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filter_type: Filter by task type (ID) + :param str filter_status: Filter by task status + :param str filter_date: Filter by date + :param str filter_assign_to: Filter by assignTo id + :param str filter_contacts: Filter by contact ids + :param str filter_deals: Filter by deals ids + :param str filter_companies: Filter by companies ids + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: TaskList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_tasks_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_tasks_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all tasks # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str filter_type: Filter by task type (ID) + :param str filter_status: Filter by task status + :param str filter_date: Filter by date + :param str filter_assign_to: Filter by assignTo id + :param str filter_contacts: Filter by contact ids + :param str filter_deals: Filter by deals ids + :param str filter_companies: Filter by companies ids + :param int date_from: dateFrom to date range filter type (timestamp in milliseconds) + :param int date_to: dateTo to date range filter type (timestamp in milliseconds) + :param int offset: Index of the first document of the page + :param int limit: Number of documents per page + :param str sort: Sort the results in the ascending/descending order. Default order is **descending** by creation if `sort` is not passed + :param str sort_by: The field used to sort field names. + :return: TaskList + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['filter_type', 'filter_status', 'filter_date', 'filter_assign_to', 'filter_contacts', 'filter_deals', 'filter_companies', 'date_from', 'date_to', 'offset', 'limit', 'sort', 'sort_by'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasks_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + if 'filter_type' in params: + query_params.append(('filter[type]', params['filter_type'])) # noqa: E501 + if 'filter_status' in params: + query_params.append(('filter[status]', params['filter_status'])) # noqa: E501 + if 'filter_date' in params: + query_params.append(('filter[date]', params['filter_date'])) # noqa: E501 + if 'filter_assign_to' in params: + query_params.append(('filter[assignTo]', params['filter_assign_to'])) # noqa: E501 + if 'filter_contacts' in params: + query_params.append(('filter[contacts]', params['filter_contacts'])) # noqa: E501 + if 'filter_deals' in params: + query_params.append(('filter[deals]', params['filter_deals'])) # noqa: E501 + if 'filter_companies' in params: + query_params.append(('filter[companies]', params['filter_companies'])) # noqa: E501 + if 'date_from' in params: + query_params.append(('dateFrom', params['date_from'])) # noqa: E501 + if 'date_to' in params: + query_params.append(('dateTo', params['date_to'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + if 'sort_by' in params: + query_params.append(('sortBy', params['sort_by'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasks', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TaskList', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_tasks_id_delete(self, id, **kwargs): # noqa: E501 + """Delete a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_tasks_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_tasks_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasks_id_delete" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_delete`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasks/{id}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_tasks_id_get(self, id, **kwargs): # noqa: E501 + """Get a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_get(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Task + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.crm_tasks_id_get_with_http_info(id, **kwargs) # noqa: E501 + return data + + def crm_tasks_id_get_with_http_info(self, id, **kwargs): # noqa: E501 + """Get a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_get_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :return: Task + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasks_id_get" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_get`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasks/{id}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='Task', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_tasks_id_patch(self, id, body, **kwargs): # noqa: E501 + """Update a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_patch(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body7 body: Updated task details. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + else: + (data) = self.crm_tasks_id_patch_with_http_info(id, body, **kwargs) # noqa: E501 + return data + + def crm_tasks_id_patch_with_http_info(self, id, body, **kwargs): # noqa: E501 + """Update a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_id_patch_with_http_info(id, body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str id: (required) + :param Body7 body: Updated task details. (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasks_id_patch" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'id' is set + if ('id' not in params or + params['id'] is None): + raise ValueError("Missing the required parameter `id` when calling `crm_tasks_id_patch`") # noqa: E501 + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_tasks_id_patch`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'id' in params: + path_params['id'] = params['id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasks/{id}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_tasks_post(self, body, **kwargs): # noqa: E501 + """Create a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_post(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body6 body: Task name. (required) + :return: InlineResponse2011 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasks_post_with_http_info(body, **kwargs) # noqa: E501 + else: + (data) = self.crm_tasks_post_with_http_info(body, **kwargs) # noqa: E501 + return data + + def crm_tasks_post_with_http_info(self, body, **kwargs): # noqa: E501 + """Create a task # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasks_post_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param Body6 body: Task name. (required) + :return: InlineResponse2011 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasks_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params or + params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `crm_tasks_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2011', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def crm_tasktypes_get(self, **kwargs): # noqa: E501 + """Get all task types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasktypes_get(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: TaskTypes + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.crm_tasktypes_get_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.crm_tasktypes_get_with_http_info(**kwargs) # noqa: E501 + return data + + def crm_tasktypes_get_with_http_info(self, **kwargs): # noqa: E501 + """Get all task types # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.crm_tasktypes_get_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :return: TaskTypes + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method crm_tasktypes_get" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/crm/tasktypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='TaskTypes', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/transactional_emails_api.py b/sib_api_v3_sdk/api/transactional_emails_api.py index 508adaa..99aee1b 100644 --- a/sib_api_v3_sdk/api/transactional_emails_api.py +++ b/sib_api_v3_sdk/api/transactional_emails_api.py @@ -891,8 +891,10 @@ def get_email_event_report_with_http_info(self, **kwargs): # noqa: E501 params[key] = val del params['kwargs'] - if 'limit' in params and params['limit'] > 100: # noqa: E501 - raise ValueError("Invalid value for parameter `limit` when calling `get_email_event_report`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in params and params['limit'] > 5000: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_email_event_report`, must be a value less than or equal to `5000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_email_event_report`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1026,6 +1028,8 @@ def get_scheduled_email_by_batch_id_with_http_info(self, batch_id, **kwargs): # if 'limit' in params and params['limit'] > 500: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_scheduled_email_by_batch_id`, must be a value less than or equal to `500`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_scheduled_email_by_batch_id`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1252,6 +1256,8 @@ def get_smtp_report_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 30: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_report`, must be a value less than or equal to `30`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_report`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1462,6 +1468,8 @@ def get_smtp_templates_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 1000: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_templates`, must be a value less than or equal to `1000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_smtp_templates`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1573,6 +1581,8 @@ def get_transac_blocked_contacts_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 100: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_transac_blocked_contacts`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_transac_blocked_contacts`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} @@ -1792,6 +1802,8 @@ def get_transac_emails_list_with_http_info(self, **kwargs): # noqa: E501 if 'limit' in params and params['limit'] > 1000: # noqa: E501 raise ValueError("Invalid value for parameter `limit` when calling `get_transac_emails_list`, must be a value less than or equal to `1000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_transac_emails_list`, must be a value greater than or equal to `0`") # noqa: E501 collection_formats = {} path_params = {} diff --git a/sib_api_v3_sdk/api/transactional_whats_app_api.py b/sib_api_v3_sdk/api/transactional_whats_app_api.py new file mode 100644 index 0000000..350bd6b --- /dev/null +++ b/sib_api_v3_sdk/api/transactional_whats_app_api.py @@ -0,0 +1,260 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class TransactionalWhatsAppApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def get_whatsapp_event_report(self, **kwargs): # noqa: E501 + """Get all your WhatsApp activity (unaggregated events) # noqa: E501 + + This endpoint will show the unaggregated statistics for WhatsApp activity (30 days by default if `startDate` and `endDate` or `days` is not passed. The date range can not exceed 90 days) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_event_report(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number limitation for the result returned + :param int offset: Beginning point in the list to retrieve from + :param str start_date: **Mandatory if endDate is used.** Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate + :param str end_date: **Mandatory if startDate is used.** Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate + :param int days: Number of days in the past including today (positive integer). _Not compatible with 'startDate' and 'endDate'_ + :param str contact_number: Filter results for specific contact (WhatsApp Number with country code. Example, 85264318721) + :param str event: Filter the report for a specific event type + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :return: GetWhatsappEventReport + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_whatsapp_event_report_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_whatsapp_event_report_with_http_info(**kwargs) # noqa: E501 + return data + + def get_whatsapp_event_report_with_http_info(self, **kwargs): # noqa: E501 + """Get all your WhatsApp activity (unaggregated events) # noqa: E501 + + This endpoint will show the unaggregated statistics for WhatsApp activity (30 days by default if `startDate` and `endDate` or `days` is not passed. The date range can not exceed 90 days) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_event_report_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int limit: Number limitation for the result returned + :param int offset: Beginning point in the list to retrieve from + :param str start_date: **Mandatory if endDate is used.** Starting date of the report (YYYY-MM-DD). Must be lower than equal to endDate + :param str end_date: **Mandatory if startDate is used.** Ending date of the report (YYYY-MM-DD). Must be greater than equal to startDate + :param int days: Number of days in the past including today (positive integer). _Not compatible with 'startDate' and 'endDate'_ + :param str contact_number: Filter results for specific contact (WhatsApp Number with country code. Example, 85264318721) + :param str event: Filter the report for a specific event type + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :return: GetWhatsappEventReport + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['limit', 'offset', 'start_date', 'end_date', 'days', 'contact_number', 'event', 'sort'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_whatsapp_event_report" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 5000: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_whatsapp_event_report`, must be a value less than or equal to `5000`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_whatsapp_event_report`, must be a value greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'start_date' in params: + query_params.append(('startDate', params['start_date'])) # noqa: E501 + if 'end_date' in params: + query_params.append(('endDate', params['end_date'])) # noqa: E501 + if 'days' in params: + query_params.append(('days', params['days'])) # noqa: E501 + if 'contact_number' in params: + query_params.append(('contactNumber', params['contact_number'])) # noqa: E501 + if 'event' in params: + query_params.append(('event', params['event'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/whatsapp/statistics/events', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetWhatsappEventReport', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def send_whatsapp_message(self, send_whatsapp_message, **kwargs): # noqa: E501 + """Send a WhatsApp message # noqa: E501 + + This endpoint is used to send a WhatsApp message.
(**The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Sendinblue platform to fetch the Template ID.**) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_whatsapp_message(send_whatsapp_message, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SendWhatsappMessage send_whatsapp_message: Values to send WhatsApp message (required) + :return: InlineResponse2012 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.send_whatsapp_message_with_http_info(send_whatsapp_message, **kwargs) # noqa: E501 + else: + (data) = self.send_whatsapp_message_with_http_info(send_whatsapp_message, **kwargs) # noqa: E501 + return data + + def send_whatsapp_message_with_http_info(self, send_whatsapp_message, **kwargs): # noqa: E501 + """Send a WhatsApp message # noqa: E501 + + This endpoint is used to send a WhatsApp message.
(**The first message you send using the API must contain a Template ID. You must create a template on WhatsApp on the Sendinblue platform to fetch the Template ID.**) # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.send_whatsapp_message_with_http_info(send_whatsapp_message, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param SendWhatsappMessage send_whatsapp_message: Values to send WhatsApp message (required) + :return: InlineResponse2012 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['send_whatsapp_message'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method send_whatsapp_message" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'send_whatsapp_message' is set + if ('send_whatsapp_message' not in params or + params['send_whatsapp_message'] is None): + raise ValueError("Missing the required parameter `send_whatsapp_message` when calling `send_whatsapp_message`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'send_whatsapp_message' in params: + body_params = params['send_whatsapp_message'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/whatsapp/sendMessage', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2012', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api/whatsapp_campaigns_api.py b/sib_api_v3_sdk/api/whatsapp_campaigns_api.py new file mode 100644 index 0000000..c5f2ec8 --- /dev/null +++ b/sib_api_v3_sdk/api/whatsapp_campaigns_api.py @@ -0,0 +1,341 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from sib_api_v3_sdk.api_client import ApiClient + + +class WhatsappCampaignsApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def delete_whatsapp_campaign(self, campaign_id, **kwargs): # noqa: E501 + """Delete a Whatsapp campaign # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_whatsapp_campaign(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: id of the campaign (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.delete_whatsapp_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 + else: + (data) = self.delete_whatsapp_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 + return data + + def delete_whatsapp_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 + """Delete a Whatsapp campaign # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.delete_whatsapp_campaign_with_http_info(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int campaign_id: id of the campaign (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['campaign_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_whatsapp_campaign" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'campaign_id' is set + if ('campaign_id' not in params or + params['campaign_id'] is None): + raise ValueError("Missing the required parameter `campaign_id` when calling `delete_whatsapp_campaign`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'campaign_id' in params: + path_params['campaignId'] = params['campaign_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/whatsappCampaigns/{campaignId}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type=None, # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_whatsapp_campaign(self, campaign_id, **kwargs): # noqa: E501 + """Get a Whatsapp campaign # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_campaign(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str campaign_id: Id of the campaign (required) + :return: GetWhatsappCampaignOverview + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_whatsapp_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 + else: + (data) = self.get_whatsapp_campaign_with_http_info(campaign_id, **kwargs) # noqa: E501 + return data + + def get_whatsapp_campaign_with_http_info(self, campaign_id, **kwargs): # noqa: E501 + """Get a Whatsapp campaign # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_campaign_with_http_info(campaign_id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str campaign_id: Id of the campaign (required) + :return: GetWhatsappCampaignOverview + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['campaign_id'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_whatsapp_campaign" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'campaign_id' is set + if ('campaign_id' not in params or + params['campaign_id'] is None): + raise ValueError("Missing the required parameter `campaign_id` when calling `get_whatsapp_campaign`") # noqa: E501 + + collection_formats = {} + + path_params = {} + if 'campaign_id' in params: + path_params['campaignId'] = params['campaign_id'] # noqa: E501 + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/whatsappCampaigns/{campaignId}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetWhatsappCampaignOverview', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def get_whatsapp_templates(self, **kwargs): # noqa: E501 + """Return all your created whatsapp templates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_templates(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str start_date: **Mandatory if endDate is used**. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: **Mandatory if startDate is used**. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :return: GetWATemplates + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.get_whatsapp_templates_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.get_whatsapp_templates_with_http_info(**kwargs) # noqa: E501 + return data + + def get_whatsapp_templates_with_http_info(self, **kwargs): # noqa: E501 + """Return all your created whatsapp templates # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.get_whatsapp_templates_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param str start_date: **Mandatory if endDate is used**. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param str end_date: **Mandatory if startDate is used**. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the templates created. **Prefer to pass your timezone in date-time format for accurate result** ( only available if either 'status' not passed and if passed is set to 'sent' ) + :param int limit: Number of documents per page + :param int offset: Index of the first document in the page + :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed + :return: GetWATemplates + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['start_date', 'end_date', 'limit', 'offset', 'sort'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_whatsapp_templates" % key + ) + params[key] = val + del params['kwargs'] + + if 'limit' in params and params['limit'] > 100: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_whatsapp_templates`, must be a value less than or equal to `100`") # noqa: E501 + if 'limit' in params and params['limit'] < 0: # noqa: E501 + raise ValueError("Invalid value for parameter `limit` when calling `get_whatsapp_templates`, must be a value greater than or equal to `0`") # noqa: E501 + collection_formats = {} + + path_params = {} + + query_params = [] + if 'start_date' in params: + query_params.append(('startDate', params['start_date'])) # noqa: E501 + if 'end_date' in params: + query_params.append(('endDate', params['end_date'])) # noqa: E501 + if 'limit' in params: + query_params.append(('limit', params['limit'])) # noqa: E501 + if 'offset' in params: + query_params.append(('offset', params['offset'])) # noqa: E501 + if 'sort' in params: + query_params.append(('sort', params['sort'])) # noqa: E501 + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = ['api-key', 'partner-key'] # noqa: E501 + + return self.api_client.call_api( + '/whatsappCampaigns/template-list', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetWATemplates', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/sib_api_v3_sdk/api_client.py b/sib_api_v3_sdk/api_client.py index 793f765..137d21e 100644 --- a/sib_api_v3_sdk/api_client.py +++ b/sib_api_v3_sdk/api_client.py @@ -75,10 +75,8 @@ def __init__(self, configuration=None, header_name=None, header_value=None, elif header_name is not None and header_name != "User-Agent": self.default_headers[header_name] = header_value else: - self.user_agent = 'sendinblue_clientAPI/v7.4.0/python' + self.user_agent = 'sendinblue_clientAPI/v7.6.0/python' self.cookie = cookie - # Set default User-Agent. - # self.user_agent = 'Swagger-Codegen/7.4.0/python' def __del__(self): if self._pool is not None: diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index b2cdc69..be1852b 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -27,16 +27,41 @@ from sib_api_v3_sdk.models.block_domain import BlockDomain from sib_api_v3_sdk.models.body import Body from sib_api_v3_sdk.models.body1 import Body1 +from sib_api_v3_sdk.models.body10 import Body10 +from sib_api_v3_sdk.models.body11 import Body11 +from sib_api_v3_sdk.models.body12 import Body12 +from sib_api_v3_sdk.models.body2 import Body2 +from sib_api_v3_sdk.models.body3 import Body3 +from sib_api_v3_sdk.models.body4 import Body4 +from sib_api_v3_sdk.models.body5 import Body5 +from sib_api_v3_sdk.models.body6 import Body6 +from sib_api_v3_sdk.models.body7 import Body7 +from sib_api_v3_sdk.models.body8 import Body8 +from sib_api_v3_sdk.models.body9 import Body9 +from sib_api_v3_sdk.models.body_variables_items import BodyVariablesItems +from sib_api_v3_sdk.models.companies_list import CompaniesList +from sib_api_v3_sdk.models.company import Company +from sib_api_v3_sdk.models.company_attributes import CompanyAttributes +from sib_api_v3_sdk.models.company_attributes_inner import CompanyAttributesInner +from sib_api_v3_sdk.models.component_items import ComponentItems +from sib_api_v3_sdk.models.conversations_message import ConversationsMessage +from sib_api_v3_sdk.models.conversations_message_file import ConversationsMessageFile +from sib_api_v3_sdk.models.conversations_message_file_image_info import ConversationsMessageFileImageInfo +from sib_api_v3_sdk.models.create_api_key_request import CreateApiKeyRequest +from sib_api_v3_sdk.models.create_api_key_response import CreateApiKeyResponse from sib_api_v3_sdk.models.create_attribute import CreateAttribute from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration +from sib_api_v3_sdk.models.create_category_model import CreateCategoryModel from sib_api_v3_sdk.models.create_child import CreateChild from sib_api_v3_sdk.models.create_contact import CreateContact from sib_api_v3_sdk.models.create_doi_contact import CreateDoiContact from sib_api_v3_sdk.models.create_email_campaign import CreateEmailCampaign from sib_api_v3_sdk.models.create_email_campaign_recipients import CreateEmailCampaignRecipients from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender +from sib_api_v3_sdk.models.create_external_feed import CreateExternalFeed from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel +from sib_api_v3_sdk.models.create_product_model import CreateProductModel from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps @@ -48,18 +73,36 @@ from sib_api_v3_sdk.models.create_smtp_template_sender import CreateSmtpTemplateSender from sib_api_v3_sdk.models.create_sub_account import CreateSubAccount from sib_api_v3_sdk.models.create_sub_account_response import CreateSubAccountResponse +from sib_api_v3_sdk.models.create_update_batch_category import CreateUpdateBatchCategory +from sib_api_v3_sdk.models.create_update_batch_category_model import CreateUpdateBatchCategoryModel +from sib_api_v3_sdk.models.create_update_batch_products import CreateUpdateBatchProducts +from sib_api_v3_sdk.models.create_update_batch_products_model import CreateUpdateBatchProductsModel +from sib_api_v3_sdk.models.create_update_categories import CreateUpdateCategories +from sib_api_v3_sdk.models.create_update_category import CreateUpdateCategory from sib_api_v3_sdk.models.create_update_contact_model import CreateUpdateContactModel from sib_api_v3_sdk.models.create_update_folder import CreateUpdateFolder +from sib_api_v3_sdk.models.create_update_product import CreateUpdateProduct +from sib_api_v3_sdk.models.create_update_products import CreateUpdateProducts from sib_api_v3_sdk.models.create_webhook import CreateWebhook +from sib_api_v3_sdk.models.created_batch_id import CreatedBatchId from sib_api_v3_sdk.models.created_process_id import CreatedProcessId +from sib_api_v3_sdk.models.deal import Deal +from sib_api_v3_sdk.models.deal_attributes import DealAttributes +from sib_api_v3_sdk.models.deal_attributes_inner import DealAttributesInner +from sib_api_v3_sdk.models.deals_list import DealsList from sib_api_v3_sdk.models.delete_hardbounces import DeleteHardbounces from sib_api_v3_sdk.models.email_export_recipients import EmailExportRecipients from sib_api_v3_sdk.models.error_model import ErrorModel +from sib_api_v3_sdk.models.file_data import FileData +from sib_api_v3_sdk.models.file_downloadable_link import FileDownloadableLink +from sib_api_v3_sdk.models.file_list import FileList from sib_api_v3_sdk.models.get_account_marketing_automation import GetAccountMarketingAutomation from sib_api_v3_sdk.models.get_account_plan import GetAccountPlan from sib_api_v3_sdk.models.get_account_relay import GetAccountRelay from sib_api_v3_sdk.models.get_account_relay_data import GetAccountRelayData from sib_api_v3_sdk.models.get_aggregated_report import GetAggregatedReport +from sib_api_v3_sdk.models.get_all_external_feeds import GetAllExternalFeeds +from sib_api_v3_sdk.models.get_all_external_feeds_feeds import GetAllExternalFeedsFeeds from sib_api_v3_sdk.models.get_attributes import GetAttributes from sib_api_v3_sdk.models.get_attributes_attributes import GetAttributesAttributes from sib_api_v3_sdk.models.get_attributes_enumeration import GetAttributesEnumeration @@ -67,6 +110,8 @@ from sib_api_v3_sdk.models.get_campaign_overview import GetCampaignOverview from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats +from sib_api_v3_sdk.models.get_categories import GetCategories +from sib_api_v3_sdk.models.get_category_details import GetCategoryDetails from sib_api_v3_sdk.models.get_child_account_creation_status import GetChildAccountCreationStatus from sib_api_v3_sdk.models.get_child_domain import GetChildDomain from sib_api_v3_sdk.models.get_child_domains import GetChildDomains @@ -101,6 +146,8 @@ from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription from sib_api_v3_sdk.models.get_extended_contact_details_statistics_unsubscriptions_user_unsubscription import GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription from sib_api_v3_sdk.models.get_extended_list_campaign_stats import GetExtendedListCampaignStats +from sib_api_v3_sdk.models.get_external_feed_by_uuid import GetExternalFeedByUUID +from sib_api_v3_sdk.models.get_external_feed_by_uuid_headers import GetExternalFeedByUUIDHeaders from sib_api_v3_sdk.models.get_folder import GetFolder from sib_api_v3_sdk.models.get_folder_lists import GetFolderLists from sib_api_v3_sdk.models.get_folders import GetFolders @@ -117,6 +164,8 @@ from sib_api_v3_sdk.models.get_lists import GetLists from sib_api_v3_sdk.models.get_process import GetProcess from sib_api_v3_sdk.models.get_processes import GetProcesses +from sib_api_v3_sdk.models.get_product_details import GetProductDetails +from sib_api_v3_sdk.models.get_products import GetProducts from sib_api_v3_sdk.models.get_reports import GetReports from sib_api_v3_sdk.models.get_reports_reports import GetReportsReports from sib_api_v3_sdk.models.get_scheduled_email_by_batch_id import GetScheduledEmailByBatchId @@ -148,9 +197,18 @@ from sib_api_v3_sdk.models.get_transac_emails_list_transactional_emails import GetTransacEmailsListTransactionalEmails from sib_api_v3_sdk.models.get_transac_sms_report import GetTransacSmsReport from sib_api_v3_sdk.models.get_transac_sms_report_reports import GetTransacSmsReportReports +from sib_api_v3_sdk.models.get_wa_templates import GetWATemplates +from sib_api_v3_sdk.models.get_wa_templates_templates import GetWATemplatesTemplates from sib_api_v3_sdk.models.get_webhook import GetWebhook from sib_api_v3_sdk.models.get_webhooks import GetWebhooks +from sib_api_v3_sdk.models.get_whatsapp_campaign_overview import GetWhatsappCampaignOverview +from sib_api_v3_sdk.models.get_whatsapp_event_report import GetWhatsappEventReport +from sib_api_v3_sdk.models.get_whatsapp_event_report_events import GetWhatsappEventReportEvents +from sib_api_v3_sdk.models.inline_response200 import InlineResponse200 from sib_api_v3_sdk.models.inline_response201 import InlineResponse201 +from sib_api_v3_sdk.models.inline_response2011 import InlineResponse2011 +from sib_api_v3_sdk.models.inline_response2012 import InlineResponse2012 +from sib_api_v3_sdk.models.inline_response2013 import InlineResponse2013 from sib_api_v3_sdk.models.manage_ip import ManageIp from sib_api_v3_sdk.models.master_details_response import MasterDetailsResponse from sib_api_v3_sdk.models.master_details_response_billing_info import MasterDetailsResponseBillingInfo @@ -162,6 +220,12 @@ from sib_api_v3_sdk.models.note_data import NoteData from sib_api_v3_sdk.models.note_id import NoteId from sib_api_v3_sdk.models.note_list import NoteList +from sib_api_v3_sdk.models.order import Order +from sib_api_v3_sdk.models.order_batch import OrderBatch +from sib_api_v3_sdk.models.order_billing import OrderBilling +from sib_api_v3_sdk.models.order_products import OrderProducts +from sib_api_v3_sdk.models.pipeline import Pipeline +from sib_api_v3_sdk.models.pipeline_stage import PipelineStage from sib_api_v3_sdk.models.post_contact_info import PostContactInfo from sib_api_v3_sdk.models.post_contact_info_contacts import PostContactInfoContacts from sib_api_v3_sdk.models.post_send_failed import PostSendFailed @@ -193,6 +257,7 @@ from sib_api_v3_sdk.models.send_test_email import SendTestEmail from sib_api_v3_sdk.models.send_test_sms import SendTestSms from sib_api_v3_sdk.models.send_transac_sms import SendTransacSms +from sib_api_v3_sdk.models.send_whatsapp_message import SendWhatsappMessage from sib_api_v3_sdk.models.sso_token_request import SsoTokenRequest from sib_api_v3_sdk.models.sub_account_details_response import SubAccountDetailsResponse from sib_api_v3_sdk.models.sub_account_details_response_plan_info import SubAccountDetailsResponsePlanInfo @@ -224,13 +289,18 @@ from sib_api_v3_sdk.models.update_email_campaign import UpdateEmailCampaign from sib_api_v3_sdk.models.update_email_campaign_recipients import UpdateEmailCampaignRecipients from sib_api_v3_sdk.models.update_email_campaign_sender import UpdateEmailCampaignSender +from sib_api_v3_sdk.models.update_external_feed import UpdateExternalFeed from sib_api_v3_sdk.models.update_list import UpdateList from sib_api_v3_sdk.models.update_sender import UpdateSender from sib_api_v3_sdk.models.update_sms_campaign import UpdateSmsCampaign from sib_api_v3_sdk.models.update_smtp_template import UpdateSmtpTemplate from sib_api_v3_sdk.models.update_smtp_template_sender import UpdateSmtpTemplateSender from sib_api_v3_sdk.models.update_webhook import UpdateWebhook +from sib_api_v3_sdk.models.upload_image_model import UploadImageModel from sib_api_v3_sdk.models.upload_image_to_gallery import UploadImageToGallery +from sib_api_v3_sdk.models.variables_items import VariablesItems +from sib_api_v3_sdk.models.whatsapp_camp_stats import WhatsappCampStats +from sib_api_v3_sdk.models.whatsapp_camp_template import WhatsappCampTemplate from sib_api_v3_sdk.models.get_child_info import GetChildInfo from sib_api_v3_sdk.models.get_extended_campaign_overview import GetExtendedCampaignOverview from sib_api_v3_sdk.models.get_extended_client import GetExtendedClient diff --git a/sib_api_v3_sdk/models/body.py b/sib_api_v3_sdk/models/body.py index ff490d6..072f6f9 100644 --- a/sib_api_v3_sdk/models/body.py +++ b/sib_api_v3_sdk/models/body.py @@ -32,73 +32,35 @@ class Body(object): """ swagger_types = { 'name': 'str', - 'duration': 'int', - 'task_type_id': 'str', - '_date': 'datetime', - 'notes': 'str', - 'done': 'bool', - 'assign_to_id': 'str', - 'contacts_ids': 'list[int]', - 'deals_ids': 'list[str]', - 'companies_ids': 'list[str]', - 'reminder': 'TaskReminder' + 'attributes': 'object', + 'country_code': 'int' } attribute_map = { 'name': 'name', - 'duration': 'duration', - 'task_type_id': 'taskTypeId', - '_date': 'date', - 'notes': 'notes', - 'done': 'done', - 'assign_to_id': 'assignToId', - 'contacts_ids': 'contactsIds', - 'deals_ids': 'dealsIds', - 'companies_ids': 'companiesIds', - 'reminder': 'reminder' + 'attributes': 'attributes', + 'country_code': 'countryCode' } - def __init__(self, name=None, duration=None, task_type_id=None, _date=None, notes=None, done=None, assign_to_id=None, contacts_ids=None, deals_ids=None, companies_ids=None, reminder=None): # noqa: E501 + def __init__(self, name=None, attributes=None, country_code=None): # noqa: E501 """Body - a model defined in Swagger""" # noqa: E501 self._name = None - self._duration = None - self._task_type_id = None - self.__date = None - self._notes = None - self._done = None - self._assign_to_id = None - self._contacts_ids = None - self._deals_ids = None - self._companies_ids = None - self._reminder = None + self._attributes = None + self._country_code = None self.discriminator = None self.name = name - if duration is not None: - self.duration = duration - self.task_type_id = task_type_id - self._date = _date - if notes is not None: - self.notes = notes - if done is not None: - self.done = done - if assign_to_id is not None: - self.assign_to_id = assign_to_id - if contacts_ids is not None: - self.contacts_ids = contacts_ids - if deals_ids is not None: - self.deals_ids = deals_ids - if companies_ids is not None: - self.companies_ids = companies_ids - if reminder is not None: - self.reminder = reminder + if attributes is not None: + self.attributes = attributes + if country_code is not None: + self.country_code = country_code @property def name(self): """Gets the name of this Body. # noqa: E501 - Name of task # noqa: E501 + Name of company # noqa: E501 :return: The name of this Body. # noqa: E501 :rtype: str @@ -109,7 +71,7 @@ def name(self): def name(self, name): """Sets the name of this Body. - Name of task # noqa: E501 + Name of company # noqa: E501 :param name: The name of this Body. # noqa: E501 :type: str @@ -120,238 +82,50 @@ def name(self, name): self._name = name @property - def duration(self): - """Gets the duration of this Body. # noqa: E501 + def attributes(self): + """Gets the attributes of this Body. # noqa: E501 - Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + Attributes for company creation # noqa: E501 - :return: The duration of this Body. # noqa: E501 - :rtype: int - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this Body. - - Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 - - :param duration: The duration of this Body. # noqa: E501 - :type: int - """ - if duration is not None and duration < 0: # noqa: E501 - raise ValueError("Invalid value for `duration`, must be a value greater than or equal to `0`") # noqa: E501 - - self._duration = duration - - @property - def task_type_id(self): - """Gets the task_type_id of this Body. # noqa: E501 - - Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 - - :return: The task_type_id of this Body. # noqa: E501 - :rtype: str - """ - return self._task_type_id - - @task_type_id.setter - def task_type_id(self, task_type_id): - """Sets the task_type_id of this Body. - - Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 - - :param task_type_id: The task_type_id of this Body. # noqa: E501 - :type: str - """ - if task_type_id is None: - raise ValueError("Invalid value for `task_type_id`, must not be `None`") # noqa: E501 - - self._task_type_id = task_type_id - - @property - def _date(self): - """Gets the _date of this Body. # noqa: E501 - - Task due date and time # noqa: E501 - - :return: The _date of this Body. # noqa: E501 - :rtype: datetime - """ - return self.__date - - @_date.setter - def _date(self, _date): - """Sets the _date of this Body. - - Task due date and time # noqa: E501 - - :param _date: The _date of this Body. # noqa: E501 - :type: datetime - """ - if _date is None: - raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - - self.__date = _date - - @property - def notes(self): - """Gets the notes of this Body. # noqa: E501 - - Notes added to a task # noqa: E501 - - :return: The notes of this Body. # noqa: E501 - :rtype: str - """ - return self._notes - - @notes.setter - def notes(self, notes): - """Sets the notes of this Body. - - Notes added to a task # noqa: E501 - - :param notes: The notes of this Body. # noqa: E501 - :type: str - """ - - self._notes = notes - - @property - def done(self): - """Gets the done of this Body. # noqa: E501 - - Task marked as done # noqa: E501 - - :return: The done of this Body. # noqa: E501 - :rtype: bool - """ - return self._done - - @done.setter - def done(self, done): - """Sets the done of this Body. - - Task marked as done # noqa: E501 - - :param done: The done of this Body. # noqa: E501 - :type: bool - """ - - self._done = done - - @property - def assign_to_id(self): - """Gets the assign_to_id of this Body. # noqa: E501 - - User id to whom task is assigned # noqa: E501 - - :return: The assign_to_id of this Body. # noqa: E501 - :rtype: str - """ - return self._assign_to_id - - @assign_to_id.setter - def assign_to_id(self, assign_to_id): - """Sets the assign_to_id of this Body. - - User id to whom task is assigned # noqa: E501 - - :param assign_to_id: The assign_to_id of this Body. # noqa: E501 - :type: str - """ - - self._assign_to_id = assign_to_id - - @property - def contacts_ids(self): - """Gets the contacts_ids of this Body. # noqa: E501 - - Contact ids for contacts linked to this task # noqa: E501 - - :return: The contacts_ids of this Body. # noqa: E501 - :rtype: list[int] + :return: The attributes of this Body. # noqa: E501 + :rtype: object """ - return self._contacts_ids + return self._attributes - @contacts_ids.setter - def contacts_ids(self, contacts_ids): - """Sets the contacts_ids of this Body. + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Body. - Contact ids for contacts linked to this task # noqa: E501 + Attributes for company creation # noqa: E501 - :param contacts_ids: The contacts_ids of this Body. # noqa: E501 - :type: list[int] + :param attributes: The attributes of this Body. # noqa: E501 + :type: object """ - self._contacts_ids = contacts_ids + self._attributes = attributes @property - def deals_ids(self): - """Gets the deals_ids of this Body. # noqa: E501 + def country_code(self): + """Gets the country_code of this Body. # noqa: E501 - Deal ids for deals a task is linked to # noqa: E501 + Country code if phone_number is passed in attributes. # noqa: E501 - :return: The deals_ids of this Body. # noqa: E501 - :rtype: list[str] - """ - return self._deals_ids - - @deals_ids.setter - def deals_ids(self, deals_ids): - """Sets the deals_ids of this Body. - - Deal ids for deals a task is linked to # noqa: E501 - - :param deals_ids: The deals_ids of this Body. # noqa: E501 - :type: list[str] - """ - - self._deals_ids = deals_ids - - @property - def companies_ids(self): - """Gets the companies_ids of this Body. # noqa: E501 - - Companies ids for companies a task is linked to # noqa: E501 - - :return: The companies_ids of this Body. # noqa: E501 - :rtype: list[str] - """ - return self._companies_ids - - @companies_ids.setter - def companies_ids(self, companies_ids): - """Sets the companies_ids of this Body. - - Companies ids for companies a task is linked to # noqa: E501 - - :param companies_ids: The companies_ids of this Body. # noqa: E501 - :type: list[str] - """ - - self._companies_ids = companies_ids - - @property - def reminder(self): - """Gets the reminder of this Body. # noqa: E501 - - - :return: The reminder of this Body. # noqa: E501 - :rtype: TaskReminder + :return: The country_code of this Body. # noqa: E501 + :rtype: int """ - return self._reminder + return self._country_code - @reminder.setter - def reminder(self, reminder): - """Sets the reminder of this Body. + @country_code.setter + def country_code(self, country_code): + """Sets the country_code of this Body. + Country code if phone_number is passed in attributes. # noqa: E501 - :param reminder: The reminder of this Body. # noqa: E501 - :type: TaskReminder + :param country_code: The country_code of this Body. # noqa: E501 + :type: int """ - self._reminder = reminder + self._country_code = country_code def to_dict(self): """Returns the model properties as a dict""" diff --git a/sib_api_v3_sdk/models/body1.py b/sib_api_v3_sdk/models/body1.py index 4f94941..8c697c0 100644 --- a/sib_api_v3_sdk/models/body1.py +++ b/sib_api_v3_sdk/models/body1.py @@ -32,73 +32,36 @@ class Body1(object): """ swagger_types = { 'name': 'str', - 'duration': 'int', - 'task_type_id': 'str', - '_date': 'datetime', - 'notes': 'str', - 'done': 'bool', - 'assign_to_id': 'str', - 'contacts_ids': 'list[int]', - 'deals_ids': 'list[str]', - 'companies_ids': 'list[str]', - 'reminder': 'TaskReminder' + 'attributes': 'object', + 'country_code': 'int' } attribute_map = { 'name': 'name', - 'duration': 'duration', - 'task_type_id': 'taskTypeId', - '_date': 'date', - 'notes': 'notes', - 'done': 'done', - 'assign_to_id': 'assignToId', - 'contacts_ids': 'contactsIds', - 'deals_ids': 'dealsIds', - 'companies_ids': 'companiesIds', - 'reminder': 'reminder' + 'attributes': 'attributes', + 'country_code': 'countryCode' } - def __init__(self, name=None, duration=None, task_type_id=None, _date=None, notes=None, done=None, assign_to_id=None, contacts_ids=None, deals_ids=None, companies_ids=None, reminder=None): # noqa: E501 + def __init__(self, name=None, attributes=None, country_code=None): # noqa: E501 """Body1 - a model defined in Swagger""" # noqa: E501 self._name = None - self._duration = None - self._task_type_id = None - self.__date = None - self._notes = None - self._done = None - self._assign_to_id = None - self._contacts_ids = None - self._deals_ids = None - self._companies_ids = None - self._reminder = None + self._attributes = None + self._country_code = None self.discriminator = None - self.name = name - if duration is not None: - self.duration = duration - self.task_type_id = task_type_id - self._date = _date - if notes is not None: - self.notes = notes - if done is not None: - self.done = done - if assign_to_id is not None: - self.assign_to_id = assign_to_id - if contacts_ids is not None: - self.contacts_ids = contacts_ids - if deals_ids is not None: - self.deals_ids = deals_ids - if companies_ids is not None: - self.companies_ids = companies_ids - if reminder is not None: - self.reminder = reminder + if name is not None: + self.name = name + if attributes is not None: + self.attributes = attributes + if country_code is not None: + self.country_code = country_code @property def name(self): """Gets the name of this Body1. # noqa: E501 - Name of task # noqa: E501 + Name of company # noqa: E501 :return: The name of this Body1. # noqa: E501 :rtype: str @@ -109,247 +72,59 @@ def name(self): def name(self, name): """Sets the name of this Body1. - Name of task # noqa: E501 + Name of company # noqa: E501 :param name: The name of this Body1. # noqa: E501 :type: str """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 self._name = name @property - def duration(self): - """Gets the duration of this Body1. # noqa: E501 + def attributes(self): + """Gets the attributes of this Body1. # noqa: E501 - Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + Attributes for company update # noqa: E501 - :return: The duration of this Body1. # noqa: E501 - :rtype: int - """ - return self._duration - - @duration.setter - def duration(self, duration): - """Sets the duration of this Body1. - - Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 - - :param duration: The duration of this Body1. # noqa: E501 - :type: int - """ - - self._duration = duration - - @property - def task_type_id(self): - """Gets the task_type_id of this Body1. # noqa: E501 - - Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 - - :return: The task_type_id of this Body1. # noqa: E501 - :rtype: str - """ - return self._task_type_id - - @task_type_id.setter - def task_type_id(self, task_type_id): - """Sets the task_type_id of this Body1. - - Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 - - :param task_type_id: The task_type_id of this Body1. # noqa: E501 - :type: str - """ - if task_type_id is None: - raise ValueError("Invalid value for `task_type_id`, must not be `None`") # noqa: E501 - - self._task_type_id = task_type_id - - @property - def _date(self): - """Gets the _date of this Body1. # noqa: E501 - - Task date/time # noqa: E501 - - :return: The _date of this Body1. # noqa: E501 - :rtype: datetime - """ - return self.__date - - @_date.setter - def _date(self, _date): - """Sets the _date of this Body1. - - Task date/time # noqa: E501 - - :param _date: The _date of this Body1. # noqa: E501 - :type: datetime - """ - if _date is None: - raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 - - self.__date = _date - - @property - def notes(self): - """Gets the notes of this Body1. # noqa: E501 - - Notes added to a task # noqa: E501 - - :return: The notes of this Body1. # noqa: E501 - :rtype: str - """ - return self._notes - - @notes.setter - def notes(self, notes): - """Sets the notes of this Body1. - - Notes added to a task # noqa: E501 - - :param notes: The notes of this Body1. # noqa: E501 - :type: str - """ - - self._notes = notes - - @property - def done(self): - """Gets the done of this Body1. # noqa: E501 - - Task marked as done # noqa: E501 - - :return: The done of this Body1. # noqa: E501 - :rtype: bool - """ - return self._done - - @done.setter - def done(self, done): - """Sets the done of this Body1. - - Task marked as done # noqa: E501 - - :param done: The done of this Body1. # noqa: E501 - :type: bool - """ - - self._done = done - - @property - def assign_to_id(self): - """Gets the assign_to_id of this Body1. # noqa: E501 - - User id to whom task is assigned # noqa: E501 - - :return: The assign_to_id of this Body1. # noqa: E501 - :rtype: str - """ - return self._assign_to_id - - @assign_to_id.setter - def assign_to_id(self, assign_to_id): - """Sets the assign_to_id of this Body1. - - User id to whom task is assigned # noqa: E501 - - :param assign_to_id: The assign_to_id of this Body1. # noqa: E501 - :type: str - """ - - self._assign_to_id = assign_to_id - - @property - def contacts_ids(self): - """Gets the contacts_ids of this Body1. # noqa: E501 - - Contact ids for contacts linked to this task # noqa: E501 - - :return: The contacts_ids of this Body1. # noqa: E501 - :rtype: list[int] + :return: The attributes of this Body1. # noqa: E501 + :rtype: object """ - return self._contacts_ids + return self._attributes - @contacts_ids.setter - def contacts_ids(self, contacts_ids): - """Sets the contacts_ids of this Body1. + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Body1. - Contact ids for contacts linked to this task # noqa: E501 + Attributes for company update # noqa: E501 - :param contacts_ids: The contacts_ids of this Body1. # noqa: E501 - :type: list[int] + :param attributes: The attributes of this Body1. # noqa: E501 + :type: object """ - self._contacts_ids = contacts_ids + self._attributes = attributes @property - def deals_ids(self): - """Gets the deals_ids of this Body1. # noqa: E501 + def country_code(self): + """Gets the country_code of this Body1. # noqa: E501 - Deal ids for deals a task is linked to # noqa: E501 + Country code if phone_number is passed in attributes. # noqa: E501 - :return: The deals_ids of this Body1. # noqa: E501 - :rtype: list[str] - """ - return self._deals_ids - - @deals_ids.setter - def deals_ids(self, deals_ids): - """Sets the deals_ids of this Body1. - - Deal ids for deals a task is linked to # noqa: E501 - - :param deals_ids: The deals_ids of this Body1. # noqa: E501 - :type: list[str] - """ - - self._deals_ids = deals_ids - - @property - def companies_ids(self): - """Gets the companies_ids of this Body1. # noqa: E501 - - Companies ids for companies a task is linked to # noqa: E501 - - :return: The companies_ids of this Body1. # noqa: E501 - :rtype: list[str] - """ - return self._companies_ids - - @companies_ids.setter - def companies_ids(self, companies_ids): - """Sets the companies_ids of this Body1. - - Companies ids for companies a task is linked to # noqa: E501 - - :param companies_ids: The companies_ids of this Body1. # noqa: E501 - :type: list[str] - """ - - self._companies_ids = companies_ids - - @property - def reminder(self): - """Gets the reminder of this Body1. # noqa: E501 - - - :return: The reminder of this Body1. # noqa: E501 - :rtype: TaskReminder + :return: The country_code of this Body1. # noqa: E501 + :rtype: int """ - return self._reminder + return self._country_code - @reminder.setter - def reminder(self, reminder): - """Sets the reminder of this Body1. + @country_code.setter + def country_code(self, country_code): + """Sets the country_code of this Body1. + Country code if phone_number is passed in attributes. # noqa: E501 - :param reminder: The reminder of this Body1. # noqa: E501 - :type: TaskReminder + :param country_code: The country_code of this Body1. # noqa: E501 + :type: int """ - self._reminder = reminder + self._country_code = country_code def to_dict(self): """Returns the model properties as a dict""" diff --git a/sib_api_v3_sdk/models/body10.py b/sib_api_v3_sdk/models/body10.py new file mode 100644 index 0000000..7a7495a --- /dev/null +++ b/sib_api_v3_sdk/models/body10.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body10(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'visitor_id': 'str', + 'text': 'str', + 'agent_id': 'str', + 'group_id': 'str' + } + + attribute_map = { + 'visitor_id': 'visitorId', + 'text': 'text', + 'agent_id': 'agentId', + 'group_id': 'groupId' + } + + def __init__(self, visitor_id=None, text=None, agent_id=None, group_id=None): # noqa: E501 + """Body10 - a model defined in Swagger""" # noqa: E501 + + self._visitor_id = None + self._text = None + self._agent_id = None + self._group_id = None + self.discriminator = None + + self.visitor_id = visitor_id + self.text = text + if agent_id is not None: + self.agent_id = agent_id + if group_id is not None: + self.group_id = group_id + + @property + def visitor_id(self): + """Gets the visitor_id of this Body10. # noqa: E501 + + visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations # noqa: E501 + + :return: The visitor_id of this Body10. # noqa: E501 + :rtype: str + """ + return self._visitor_id + + @visitor_id.setter + def visitor_id(self, visitor_id): + """Sets the visitor_id of this Body10. + + visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations # noqa: E501 + + :param visitor_id: The visitor_id of this Body10. # noqa: E501 + :type: str + """ + if visitor_id is None: + raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 + + self._visitor_id = visitor_id + + @property + def text(self): + """Gets the text of this Body10. # noqa: E501 + + message text # noqa: E501 + + :return: The text of this Body10. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Body10. + + message text # noqa: E501 + + :param text: The text of this Body10. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + + self._text = text + + @property + def agent_id(self): + """Gets the agent_id of this Body10. # noqa: E501 + + agent ID. It can be found on agent’s page or received from a webhook. Optional if `groupId` is set. # noqa: E501 + + :return: The agent_id of this Body10. # noqa: E501 + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this Body10. + + agent ID. It can be found on agent’s page or received from a webhook. Optional if `groupId` is set. # noqa: E501 + + :param agent_id: The agent_id of this Body10. # noqa: E501 + :type: str + """ + + self._agent_id = agent_id + + @property + def group_id(self): + """Gets the group_id of this Body10. # noqa: E501 + + group ID. It can be found on group’s page. Optional if `agentId` is set. # noqa: E501 + + :return: The group_id of this Body10. # noqa: E501 + :rtype: str + """ + return self._group_id + + @group_id.setter + def group_id(self, group_id): + """Sets the group_id of this Body10. + + group ID. It can be found on group’s page. Optional if `agentId` is set. # noqa: E501 + + :param group_id: The group_id of this Body10. # noqa: E501 + :type: str + """ + + self._group_id = group_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body10, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body10): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body11.py b/sib_api_v3_sdk/models/body11.py new file mode 100644 index 0000000..0191467 --- /dev/null +++ b/sib_api_v3_sdk/models/body11.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body11(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'text': 'str' + } + + attribute_map = { + 'text': 'text' + } + + def __init__(self, text=None): # noqa: E501 + """Body11 - a model defined in Swagger""" # noqa: E501 + + self._text = None + self.discriminator = None + + self.text = text + + @property + def text(self): + """Gets the text of this Body11. # noqa: E501 + + edited message text # noqa: E501 + + :return: The text of this Body11. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Body11. + + edited message text # noqa: E501 + + :param text: The text of this Body11. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + + self._text = text + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body11, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body11): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body12.py b/sib_api_v3_sdk/models/body12.py new file mode 100644 index 0000000..1298c93 --- /dev/null +++ b/sib_api_v3_sdk/models/body12.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body12(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'agent_id': 'str', + 'received_from': 'str', + 'agent_email': 'str', + 'agent_name': 'str' + } + + attribute_map = { + 'agent_id': 'agentId', + 'received_from': 'receivedFrom', + 'agent_email': 'agentEmail', + 'agent_name': 'agentName' + } + + def __init__(self, agent_id=None, received_from=None, agent_email=None, agent_name=None): # noqa: E501 + """Body12 - a model defined in Swagger""" # noqa: E501 + + self._agent_id = None + self._received_from = None + self._agent_email = None + self._agent_name = None + self.discriminator = None + + if agent_id is not None: + self.agent_id = agent_id + if received_from is not None: + self.received_from = received_from + if agent_email is not None: + self.agent_email = agent_email + if agent_name is not None: + self.agent_name = agent_name + + @property + def agent_id(self): + """Gets the agent_id of this Body12. # noqa: E501 + + agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). # noqa: E501 + + :return: The agent_id of this Body12. # noqa: E501 + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this Body12. + + agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). # noqa: E501 + + :param agent_id: The agent_id of this Body12. # noqa: E501 + :type: str + """ + + self._agent_id = agent_id + + @property + def received_from(self): + """Gets the received_from of this Body12. # noqa: E501 + + mark your messages to distinguish messages created by you from the others. # noqa: E501 + + :return: The received_from of this Body12. # noqa: E501 + :rtype: str + """ + return self._received_from + + @received_from.setter + def received_from(self, received_from): + """Sets the received_from of this Body12. + + mark your messages to distinguish messages created by you from the others. # noqa: E501 + + :param received_from: The received_from of this Body12. # noqa: E501 + :type: str + """ + + self._received_from = received_from + + @property + def agent_email(self): + """Gets the agent_email of this Body12. # noqa: E501 + + agent email. When sending online pings 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. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically. # noqa: E501 + + :return: The agent_email of this Body12. # noqa: E501 + :rtype: str + """ + return self._agent_email + + @agent_email.setter + def agent_email(self, agent_email): + """Sets the agent_email of this Body12. + + agent email. When sending online pings 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. If there’s no agent with the specified email address in your Sendinblue organization, a dummy agent will be created automatically. # noqa: E501 + + :param agent_email: The agent_email of this Body12. # noqa: E501 + :type: str + """ + + self._agent_email = agent_email + + @property + def agent_name(self): + """Gets the agent_name of this Body12. # noqa: E501 + + agent name. # noqa: E501 + + :return: The agent_name of this Body12. # noqa: E501 + :rtype: str + """ + return self._agent_name + + @agent_name.setter + def agent_name(self, agent_name): + """Sets the agent_name of this Body12. + + agent name. # noqa: E501 + + :param agent_name: The agent_name of this Body12. # noqa: E501 + :type: str + """ + + self._agent_name = agent_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body12, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body12): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body2.py b/sib_api_v3_sdk/models/body2.py new file mode 100644 index 0000000..66b9e66 --- /dev/null +++ b/sib_api_v3_sdk/models/body2.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body2(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'link_contact_ids': 'list[int]', + 'unlink_contact_ids': 'list[int]', + 'link_deals_ids': 'list[str]', + 'unlink_deals_ids': 'list[str]' + } + + attribute_map = { + 'link_contact_ids': 'linkContactIds', + 'unlink_contact_ids': 'unlinkContactIds', + 'link_deals_ids': 'linkDealsIds', + 'unlink_deals_ids': 'unlinkDealsIds' + } + + def __init__(self, link_contact_ids=None, unlink_contact_ids=None, link_deals_ids=None, unlink_deals_ids=None): # noqa: E501 + """Body2 - a model defined in Swagger""" # noqa: E501 + + self._link_contact_ids = None + self._unlink_contact_ids = None + self._link_deals_ids = None + self._unlink_deals_ids = None + self.discriminator = None + + if link_contact_ids is not None: + self.link_contact_ids = link_contact_ids + if unlink_contact_ids is not None: + self.unlink_contact_ids = unlink_contact_ids + if link_deals_ids is not None: + self.link_deals_ids = link_deals_ids + if unlink_deals_ids is not None: + self.unlink_deals_ids = unlink_deals_ids + + @property + def link_contact_ids(self): + """Gets the link_contact_ids of this Body2. # noqa: E501 + + Contact ids for contacts to be linked with company # noqa: E501 + + :return: The link_contact_ids of this Body2. # noqa: E501 + :rtype: list[int] + """ + return self._link_contact_ids + + @link_contact_ids.setter + def link_contact_ids(self, link_contact_ids): + """Sets the link_contact_ids of this Body2. + + Contact ids for contacts to be linked with company # noqa: E501 + + :param link_contact_ids: The link_contact_ids of this Body2. # noqa: E501 + :type: list[int] + """ + + self._link_contact_ids = link_contact_ids + + @property + def unlink_contact_ids(self): + """Gets the unlink_contact_ids of this Body2. # noqa: E501 + + Contact ids for contacts to be unlinked from company # noqa: E501 + + :return: The unlink_contact_ids of this Body2. # noqa: E501 + :rtype: list[int] + """ + return self._unlink_contact_ids + + @unlink_contact_ids.setter + def unlink_contact_ids(self, unlink_contact_ids): + """Sets the unlink_contact_ids of this Body2. + + Contact ids for contacts to be unlinked from company # noqa: E501 + + :param unlink_contact_ids: The unlink_contact_ids of this Body2. # noqa: E501 + :type: list[int] + """ + + self._unlink_contact_ids = unlink_contact_ids + + @property + def link_deals_ids(self): + """Gets the link_deals_ids of this Body2. # noqa: E501 + + Deals ids for deals to be linked with company # noqa: E501 + + :return: The link_deals_ids of this Body2. # noqa: E501 + :rtype: list[str] + """ + return self._link_deals_ids + + @link_deals_ids.setter + def link_deals_ids(self, link_deals_ids): + """Sets the link_deals_ids of this Body2. + + Deals ids for deals to be linked with company # noqa: E501 + + :param link_deals_ids: The link_deals_ids of this Body2. # noqa: E501 + :type: list[str] + """ + + self._link_deals_ids = link_deals_ids + + @property + def unlink_deals_ids(self): + """Gets the unlink_deals_ids of this Body2. # noqa: E501 + + Deals ids for deals to be unlinked from company # noqa: E501 + + :return: The unlink_deals_ids of this Body2. # noqa: E501 + :rtype: list[str] + """ + return self._unlink_deals_ids + + @unlink_deals_ids.setter + def unlink_deals_ids(self, unlink_deals_ids): + """Sets the unlink_deals_ids of this Body2. + + Deals ids for deals to be unlinked from company # noqa: E501 + + :param unlink_deals_ids: The unlink_deals_ids of this Body2. # noqa: E501 + :type: list[str] + """ + + self._unlink_deals_ids = unlink_deals_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body2, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body2): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body3.py b/sib_api_v3_sdk/models/body3.py new file mode 100644 index 0000000..bd4b418 --- /dev/null +++ b/sib_api_v3_sdk/models/body3.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body3(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'attributes': 'object' + } + + attribute_map = { + 'name': 'name', + 'attributes': 'attributes' + } + + def __init__(self, name=None, attributes=None): # noqa: E501 + """Body3 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._attributes = None + self.discriminator = None + + self.name = name + if attributes is not None: + self.attributes = attributes + + @property + def name(self): + """Gets the name of this Body3. # noqa: E501 + + Name of deal # noqa: E501 + + :return: The name of this Body3. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body3. + + Name of deal # noqa: E501 + + :param name: The name of this Body3. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def attributes(self): + """Gets the attributes of this Body3. # noqa: E501 + + Attributes fo\\r deal creation # noqa: E501 + + :return: The attributes of this Body3. # noqa: E501 + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Body3. + + Attributes fo\\r deal creation # noqa: E501 + + :param attributes: The attributes of this Body3. # noqa: E501 + :type: object + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body3, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body3): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body4.py b/sib_api_v3_sdk/models/body4.py new file mode 100644 index 0000000..d6e39b1 --- /dev/null +++ b/sib_api_v3_sdk/models/body4.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body4(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'attributes': 'object' + } + + attribute_map = { + 'name': 'name', + 'attributes': 'attributes' + } + + def __init__(self, name=None, attributes=None): # noqa: E501 + """Body4 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._attributes = None + self.discriminator = None + + if name is not None: + self.name = name + if attributes is not None: + self.attributes = attributes + + @property + def name(self): + """Gets the name of this Body4. # noqa: E501 + + Name of deal # noqa: E501 + + :return: The name of this Body4. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body4. + + Name of deal # noqa: E501 + + :param name: The name of this Body4. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def attributes(self): + """Gets the attributes of this Body4. # noqa: E501 + + Attributes for deal update # noqa: E501 + + :return: The attributes of this Body4. # noqa: E501 + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Body4. + + Attributes for deal update # noqa: E501 + + :param attributes: The attributes of this Body4. # noqa: E501 + :type: object + """ + + self._attributes = attributes + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body4, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body4): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body5.py b/sib_api_v3_sdk/models/body5.py new file mode 100644 index 0000000..91888b4 --- /dev/null +++ b/sib_api_v3_sdk/models/body5.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body5(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'link_contact_ids': 'list[int]', + 'unlink_contact_ids': 'list[int]', + 'link_company_ids': 'list[str]', + 'unlink_company_ids': 'list[str]' + } + + attribute_map = { + 'link_contact_ids': 'linkContactIds', + 'unlink_contact_ids': 'unlinkContactIds', + 'link_company_ids': 'linkCompanyIds', + 'unlink_company_ids': 'unlinkCompanyIds' + } + + def __init__(self, link_contact_ids=None, unlink_contact_ids=None, link_company_ids=None, unlink_company_ids=None): # noqa: E501 + """Body5 - a model defined in Swagger""" # noqa: E501 + + self._link_contact_ids = None + self._unlink_contact_ids = None + self._link_company_ids = None + self._unlink_company_ids = None + self.discriminator = None + + if link_contact_ids is not None: + self.link_contact_ids = link_contact_ids + if unlink_contact_ids is not None: + self.unlink_contact_ids = unlink_contact_ids + if link_company_ids is not None: + self.link_company_ids = link_company_ids + if unlink_company_ids is not None: + self.unlink_company_ids = unlink_company_ids + + @property + def link_contact_ids(self): + """Gets the link_contact_ids of this Body5. # noqa: E501 + + Contact ids for contacts to be linked with deal # noqa: E501 + + :return: The link_contact_ids of this Body5. # noqa: E501 + :rtype: list[int] + """ + return self._link_contact_ids + + @link_contact_ids.setter + def link_contact_ids(self, link_contact_ids): + """Sets the link_contact_ids of this Body5. + + Contact ids for contacts to be linked with deal # noqa: E501 + + :param link_contact_ids: The link_contact_ids of this Body5. # noqa: E501 + :type: list[int] + """ + + self._link_contact_ids = link_contact_ids + + @property + def unlink_contact_ids(self): + """Gets the unlink_contact_ids of this Body5. # noqa: E501 + + Contact ids for contacts to be unlinked from deal # noqa: E501 + + :return: The unlink_contact_ids of this Body5. # noqa: E501 + :rtype: list[int] + """ + return self._unlink_contact_ids + + @unlink_contact_ids.setter + def unlink_contact_ids(self, unlink_contact_ids): + """Sets the unlink_contact_ids of this Body5. + + Contact ids for contacts to be unlinked from deal # noqa: E501 + + :param unlink_contact_ids: The unlink_contact_ids of this Body5. # noqa: E501 + :type: list[int] + """ + + self._unlink_contact_ids = unlink_contact_ids + + @property + def link_company_ids(self): + """Gets the link_company_ids of this Body5. # noqa: E501 + + Company ids to be linked with deal # noqa: E501 + + :return: The link_company_ids of this Body5. # noqa: E501 + :rtype: list[str] + """ + return self._link_company_ids + + @link_company_ids.setter + def link_company_ids(self, link_company_ids): + """Sets the link_company_ids of this Body5. + + Company ids to be linked with deal # noqa: E501 + + :param link_company_ids: The link_company_ids of this Body5. # noqa: E501 + :type: list[str] + """ + + self._link_company_ids = link_company_ids + + @property + def unlink_company_ids(self): + """Gets the unlink_company_ids of this Body5. # noqa: E501 + + Company ids to be unlinked from deal # noqa: E501 + + :return: The unlink_company_ids of this Body5. # noqa: E501 + :rtype: list[str] + """ + return self._unlink_company_ids + + @unlink_company_ids.setter + def unlink_company_ids(self, unlink_company_ids): + """Sets the unlink_company_ids of this Body5. + + Company ids to be unlinked from deal # noqa: E501 + + :param unlink_company_ids: The unlink_company_ids of this Body5. # noqa: E501 + :type: list[str] + """ + + self._unlink_company_ids = unlink_company_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body5, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body5): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body6.py b/sib_api_v3_sdk/models/body6.py new file mode 100644 index 0000000..95791cb --- /dev/null +++ b/sib_api_v3_sdk/models/body6.py @@ -0,0 +1,400 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body6(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'duration': 'int', + 'task_type_id': 'str', + '_date': 'datetime', + 'notes': 'str', + 'done': 'bool', + 'assign_to_id': 'str', + 'contacts_ids': 'list[int]', + 'deals_ids': 'list[str]', + 'companies_ids': 'list[str]', + 'reminder': 'TaskReminder' + } + + attribute_map = { + 'name': 'name', + 'duration': 'duration', + 'task_type_id': 'taskTypeId', + '_date': 'date', + 'notes': 'notes', + 'done': 'done', + 'assign_to_id': 'assignToId', + 'contacts_ids': 'contactsIds', + 'deals_ids': 'dealsIds', + 'companies_ids': 'companiesIds', + 'reminder': 'reminder' + } + + def __init__(self, name=None, duration=None, task_type_id=None, _date=None, notes=None, done=None, assign_to_id=None, contacts_ids=None, deals_ids=None, companies_ids=None, reminder=None): # noqa: E501 + """Body6 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._duration = None + self._task_type_id = None + self.__date = None + self._notes = None + self._done = None + self._assign_to_id = None + self._contacts_ids = None + self._deals_ids = None + self._companies_ids = None + self._reminder = None + self.discriminator = None + + self.name = name + if duration is not None: + self.duration = duration + self.task_type_id = task_type_id + self._date = _date + if notes is not None: + self.notes = notes + if done is not None: + self.done = done + if assign_to_id is not None: + self.assign_to_id = assign_to_id + if contacts_ids is not None: + self.contacts_ids = contacts_ids + if deals_ids is not None: + self.deals_ids = deals_ids + if companies_ids is not None: + self.companies_ids = companies_ids + if reminder is not None: + self.reminder = reminder + + @property + def name(self): + """Gets the name of this Body6. # noqa: E501 + + Name of task # noqa: E501 + + :return: The name of this Body6. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body6. + + Name of task # noqa: E501 + + :param name: The name of this Body6. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def duration(self): + """Gets the duration of this Body6. # noqa: E501 + + Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + + :return: The duration of this Body6. # noqa: E501 + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this Body6. + + Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + + :param duration: The duration of this Body6. # noqa: E501 + :type: int + """ + if duration is not None and duration < 0: # noqa: E501 + raise ValueError("Invalid value for `duration`, must be a value greater than or equal to `0`") # noqa: E501 + + self._duration = duration + + @property + def task_type_id(self): + """Gets the task_type_id of this Body6. # noqa: E501 + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :return: The task_type_id of this Body6. # noqa: E501 + :rtype: str + """ + return self._task_type_id + + @task_type_id.setter + def task_type_id(self, task_type_id): + """Sets the task_type_id of this Body6. + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :param task_type_id: The task_type_id of this Body6. # noqa: E501 + :type: str + """ + if task_type_id is None: + raise ValueError("Invalid value for `task_type_id`, must not be `None`") # noqa: E501 + + self._task_type_id = task_type_id + + @property + def _date(self): + """Gets the _date of this Body6. # noqa: E501 + + Task due date and time # noqa: E501 + + :return: The _date of this Body6. # noqa: E501 + :rtype: datetime + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this Body6. + + Task due date and time # noqa: E501 + + :param _date: The _date of this Body6. # noqa: E501 + :type: datetime + """ + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 + + self.__date = _date + + @property + def notes(self): + """Gets the notes of this Body6. # noqa: E501 + + Notes added to a task # noqa: E501 + + :return: The notes of this Body6. # noqa: E501 + :rtype: str + """ + return self._notes + + @notes.setter + def notes(self, notes): + """Sets the notes of this Body6. + + Notes added to a task # noqa: E501 + + :param notes: The notes of this Body6. # noqa: E501 + :type: str + """ + + self._notes = notes + + @property + def done(self): + """Gets the done of this Body6. # noqa: E501 + + Task marked as done # noqa: E501 + + :return: The done of this Body6. # noqa: E501 + :rtype: bool + """ + return self._done + + @done.setter + def done(self, done): + """Sets the done of this Body6. + + Task marked as done # noqa: E501 + + :param done: The done of this Body6. # noqa: E501 + :type: bool + """ + + self._done = done + + @property + def assign_to_id(self): + """Gets the assign_to_id of this Body6. # noqa: E501 + + User id to whom task is assigned # noqa: E501 + + :return: The assign_to_id of this Body6. # noqa: E501 + :rtype: str + """ + return self._assign_to_id + + @assign_to_id.setter + def assign_to_id(self, assign_to_id): + """Sets the assign_to_id of this Body6. + + User id to whom task is assigned # noqa: E501 + + :param assign_to_id: The assign_to_id of this Body6. # noqa: E501 + :type: str + """ + + self._assign_to_id = assign_to_id + + @property + def contacts_ids(self): + """Gets the contacts_ids of this Body6. # noqa: E501 + + Contact ids for contacts linked to this task # noqa: E501 + + :return: The contacts_ids of this Body6. # noqa: E501 + :rtype: list[int] + """ + return self._contacts_ids + + @contacts_ids.setter + def contacts_ids(self, contacts_ids): + """Sets the contacts_ids of this Body6. + + Contact ids for contacts linked to this task # noqa: E501 + + :param contacts_ids: The contacts_ids of this Body6. # noqa: E501 + :type: list[int] + """ + + self._contacts_ids = contacts_ids + + @property + def deals_ids(self): + """Gets the deals_ids of this Body6. # noqa: E501 + + Deal ids for deals a task is linked to # noqa: E501 + + :return: The deals_ids of this Body6. # noqa: E501 + :rtype: list[str] + """ + return self._deals_ids + + @deals_ids.setter + def deals_ids(self, deals_ids): + """Sets the deals_ids of this Body6. + + Deal ids for deals a task is linked to # noqa: E501 + + :param deals_ids: The deals_ids of this Body6. # noqa: E501 + :type: list[str] + """ + + self._deals_ids = deals_ids + + @property + def companies_ids(self): + """Gets the companies_ids of this Body6. # noqa: E501 + + Companies ids for companies a task is linked to # noqa: E501 + + :return: The companies_ids of this Body6. # noqa: E501 + :rtype: list[str] + """ + return self._companies_ids + + @companies_ids.setter + def companies_ids(self, companies_ids): + """Sets the companies_ids of this Body6. + + Companies ids for companies a task is linked to # noqa: E501 + + :param companies_ids: The companies_ids of this Body6. # noqa: E501 + :type: list[str] + """ + + self._companies_ids = companies_ids + + @property + def reminder(self): + """Gets the reminder of this Body6. # noqa: E501 + + + :return: The reminder of this Body6. # noqa: E501 + :rtype: TaskReminder + """ + return self._reminder + + @reminder.setter + def reminder(self, reminder): + """Sets the reminder of this Body6. + + + :param reminder: The reminder of this Body6. # noqa: E501 + :type: TaskReminder + """ + + self._reminder = reminder + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body6, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body6): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body7.py b/sib_api_v3_sdk/models/body7.py new file mode 100644 index 0000000..41058d5 --- /dev/null +++ b/sib_api_v3_sdk/models/body7.py @@ -0,0 +1,369 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body7(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'duration': 'int', + 'task_type_id': 'str', + '_date': 'datetime', + 'notes': 'str', + 'done': 'bool', + 'assign_to_id': 'str', + 'contacts_ids': 'list[int]', + 'deals_ids': 'list[str]', + 'companies_ids': 'list[str]' + } + + attribute_map = { + 'name': 'name', + 'duration': 'duration', + 'task_type_id': 'taskTypeId', + '_date': 'date', + 'notes': 'notes', + 'done': 'done', + 'assign_to_id': 'assignToId', + 'contacts_ids': 'contactsIds', + 'deals_ids': 'dealsIds', + 'companies_ids': 'companiesIds' + } + + def __init__(self, name=None, duration=None, task_type_id=None, _date=None, notes=None, done=None, assign_to_id=None, contacts_ids=None, deals_ids=None, companies_ids=None): # noqa: E501 + """Body7 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._duration = None + self._task_type_id = None + self.__date = None + self._notes = None + self._done = None + self._assign_to_id = None + self._contacts_ids = None + self._deals_ids = None + self._companies_ids = None + self.discriminator = None + + if name is not None: + self.name = name + if duration is not None: + self.duration = duration + if task_type_id is not None: + self.task_type_id = task_type_id + if _date is not None: + self._date = _date + if notes is not None: + self.notes = notes + if done is not None: + self.done = done + if assign_to_id is not None: + self.assign_to_id = assign_to_id + if contacts_ids is not None: + self.contacts_ids = contacts_ids + if deals_ids is not None: + self.deals_ids = deals_ids + if companies_ids is not None: + self.companies_ids = companies_ids + + @property + def name(self): + """Gets the name of this Body7. # noqa: E501 + + Name of task # noqa: E501 + + :return: The name of this Body7. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body7. + + Name of task # noqa: E501 + + :param name: The name of this Body7. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def duration(self): + """Gets the duration of this Body7. # noqa: E501 + + Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + + :return: The duration of this Body7. # noqa: E501 + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this Body7. + + Duration of task in milliseconds [1 minute = 60000 ms] # noqa: E501 + + :param duration: The duration of this Body7. # noqa: E501 + :type: int + """ + + self._duration = duration + + @property + def task_type_id(self): + """Gets the task_type_id of this Body7. # noqa: E501 + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :return: The task_type_id of this Body7. # noqa: E501 + :rtype: str + """ + return self._task_type_id + + @task_type_id.setter + def task_type_id(self, task_type_id): + """Sets the task_type_id of this Body7. + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :param task_type_id: The task_type_id of this Body7. # noqa: E501 + :type: str + """ + + self._task_type_id = task_type_id + + @property + def _date(self): + """Gets the _date of this Body7. # noqa: E501 + + Task date/time # noqa: E501 + + :return: The _date of this Body7. # noqa: E501 + :rtype: datetime + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this Body7. + + Task date/time # noqa: E501 + + :param _date: The _date of this Body7. # noqa: E501 + :type: datetime + """ + + self.__date = _date + + @property + def notes(self): + """Gets the notes of this Body7. # noqa: E501 + + Notes added to a task # noqa: E501 + + :return: The notes of this Body7. # noqa: E501 + :rtype: str + """ + return self._notes + + @notes.setter + def notes(self, notes): + """Sets the notes of this Body7. + + Notes added to a task # noqa: E501 + + :param notes: The notes of this Body7. # noqa: E501 + :type: str + """ + + self._notes = notes + + @property + def done(self): + """Gets the done of this Body7. # noqa: E501 + + Task marked as done # noqa: E501 + + :return: The done of this Body7. # noqa: E501 + :rtype: bool + """ + return self._done + + @done.setter + def done(self, done): + """Sets the done of this Body7. + + Task marked as done # noqa: E501 + + :param done: The done of this Body7. # noqa: E501 + :type: bool + """ + + self._done = done + + @property + def assign_to_id(self): + """Gets the assign_to_id of this Body7. # noqa: E501 + + User id to whom task is assigned # noqa: E501 + + :return: The assign_to_id of this Body7. # noqa: E501 + :rtype: str + """ + return self._assign_to_id + + @assign_to_id.setter + def assign_to_id(self, assign_to_id): + """Sets the assign_to_id of this Body7. + + User id to whom task is assigned # noqa: E501 + + :param assign_to_id: The assign_to_id of this Body7. # noqa: E501 + :type: str + """ + + self._assign_to_id = assign_to_id + + @property + def contacts_ids(self): + """Gets the contacts_ids of this Body7. # noqa: E501 + + Contact ids for contacts linked to this task # noqa: E501 + + :return: The contacts_ids of this Body7. # noqa: E501 + :rtype: list[int] + """ + return self._contacts_ids + + @contacts_ids.setter + def contacts_ids(self, contacts_ids): + """Sets the contacts_ids of this Body7. + + Contact ids for contacts linked to this task # noqa: E501 + + :param contacts_ids: The contacts_ids of this Body7. # noqa: E501 + :type: list[int] + """ + + self._contacts_ids = contacts_ids + + @property + def deals_ids(self): + """Gets the deals_ids of this Body7. # noqa: E501 + + Deal ids for deals a task is linked to # noqa: E501 + + :return: The deals_ids of this Body7. # noqa: E501 + :rtype: list[str] + """ + return self._deals_ids + + @deals_ids.setter + def deals_ids(self, deals_ids): + """Sets the deals_ids of this Body7. + + Deal ids for deals a task is linked to # noqa: E501 + + :param deals_ids: The deals_ids of this Body7. # noqa: E501 + :type: list[str] + """ + + self._deals_ids = deals_ids + + @property + def companies_ids(self): + """Gets the companies_ids of this Body7. # noqa: E501 + + Companies ids for companies a task is linked to # noqa: E501 + + :return: The companies_ids of this Body7. # noqa: E501 + :rtype: list[str] + """ + return self._companies_ids + + @companies_ids.setter + def companies_ids(self, companies_ids): + """Sets the companies_ids of this Body7. + + Companies ids for companies a task is linked to # noqa: E501 + + :param companies_ids: The companies_ids of this Body7. # noqa: E501 + :type: list[str] + """ + + self._companies_ids = companies_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body7, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body7): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body8.py b/sib_api_v3_sdk/models/body8.py new file mode 100644 index 0000000..7925e9c --- /dev/null +++ b/sib_api_v3_sdk/models/body8.py @@ -0,0 +1,259 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body8(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'visitor_id': 'str', + 'text': 'str', + 'agent_id': 'str', + 'received_from': 'str', + 'agent_email': 'str', + 'agent_name': 'str' + } + + attribute_map = { + 'visitor_id': 'visitorId', + 'text': 'text', + 'agent_id': 'agentId', + 'received_from': 'receivedFrom', + 'agent_email': 'agentEmail', + 'agent_name': 'agentName' + } + + def __init__(self, visitor_id=None, text=None, agent_id=None, received_from=None, agent_email=None, agent_name=None): # noqa: E501 + """Body8 - a model defined in Swagger""" # noqa: E501 + + self._visitor_id = None + self._text = None + self._agent_id = None + self._received_from = None + self._agent_email = None + self._agent_name = None + self.discriminator = None + + self.visitor_id = visitor_id + self.text = text + if agent_id is not None: + self.agent_id = agent_id + if received_from is not None: + self.received_from = received_from + if agent_email is not None: + self.agent_email = agent_email + if agent_name is not None: + self.agent_name = agent_name + + @property + def visitor_id(self): + """Gets the visitor_id of this Body8. # noqa: E501 + + visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations # noqa: E501 + + :return: The visitor_id of this Body8. # noqa: E501 + :rtype: str + """ + return self._visitor_id + + @visitor_id.setter + def visitor_id(self, visitor_id): + """Sets the visitor_id of this Body8. + + visitor’s ID received from a webhook or generated by you to bind existing user account to Conversations # noqa: E501 + + :param visitor_id: The visitor_id of this Body8. # noqa: E501 + :type: str + """ + if visitor_id is None: + raise ValueError("Invalid value for `visitor_id`, must not be `None`") # noqa: E501 + + self._visitor_id = visitor_id + + @property + def text(self): + """Gets the text of this Body8. # noqa: E501 + + message text # noqa: E501 + + :return: The text of this Body8. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Body8. + + message text # noqa: E501 + + :param text: The text of this Body8. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + + self._text = text + + @property + def agent_id(self): + """Gets the agent_id of this Body8. # noqa: E501 + + agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). # noqa: E501 + + :return: The agent_id of this Body8. # noqa: E501 + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this Body8. + + agent ID. It can be found on agent’s page or received from a webhook. Alternatively, you can use `agentEmail` + `agentName` + `receivedFrom` instead (all 3 fields required). # noqa: E501 + + :param agent_id: The agent_id of this Body8. # noqa: E501 + :type: str + """ + + self._agent_id = agent_id + + @property + def received_from(self): + """Gets the received_from of this Body8. # noqa: E501 + + mark your messages to distinguish messages created by you from the others. # noqa: E501 + + :return: The received_from of this Body8. # noqa: E501 + :rtype: str + """ + return self._received_from + + @received_from.setter + def received_from(self, received_from): + """Sets the received_from of this Body8. + + mark your messages to distinguish messages created by you from the others. # noqa: E501 + + :param received_from: The received_from of this Body8. # noqa: E501 + :type: str + """ + + self._received_from = received_from + + @property + def agent_email(self): + """Gets the agent_email of this Body8. # noqa: E501 + + 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. # noqa: E501 + + :return: The agent_email of this Body8. # noqa: E501 + :rtype: str + """ + return self._agent_email + + @agent_email.setter + def agent_email(self, agent_email): + """Sets the agent_email of this Body8. + + 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. # noqa: E501 + + :param agent_email: The agent_email of this Body8. # noqa: E501 + :type: str + """ + + self._agent_email = agent_email + + @property + def agent_name(self): + """Gets the agent_name of this Body8. # noqa: E501 + + agent name # noqa: E501 + + :return: The agent_name of this Body8. # noqa: E501 + :rtype: str + """ + return self._agent_name + + @agent_name.setter + def agent_name(self, agent_name): + """Sets the agent_name of this Body8. + + agent name # noqa: E501 + + :param agent_name: The agent_name of this Body8. # noqa: E501 + :type: str + """ + + self._agent_name = agent_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body8, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body8): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body9.py b/sib_api_v3_sdk/models/body9.py new file mode 100644 index 0000000..2768f0d --- /dev/null +++ b/sib_api_v3_sdk/models/body9.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Body9(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'text': 'str' + } + + attribute_map = { + 'text': 'text' + } + + def __init__(self, text=None): # noqa: E501 + """Body9 - a model defined in Swagger""" # noqa: E501 + + self._text = None + self.discriminator = None + + self.text = text + + @property + def text(self): + """Gets the text of this Body9. # noqa: E501 + + edited message text # noqa: E501 + + :return: The text of this Body9. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Body9. + + edited message text # noqa: E501 + + :param text: The text of this Body9. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + + self._text = text + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Body9, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Body9): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/body_variables_items.py b/sib_api_v3_sdk/models/body_variables_items.py new file mode 100644 index 0000000..ed1bba7 --- /dev/null +++ b/sib_api_v3_sdk/models/body_variables_items.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class BodyVariablesItems(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """BodyVariablesItems - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(BodyVariablesItems, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, BodyVariablesItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/companies_list.py b/sib_api_v3_sdk/models/companies_list.py new file mode 100644 index 0000000..3de6ee3 --- /dev/null +++ b/sib_api_v3_sdk/models/companies_list.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CompaniesList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'items': 'list[Company]' + } + + attribute_map = { + 'items': 'items' + } + + def __init__(self, items=None): # noqa: E501 + """CompaniesList - a model defined in Swagger""" # noqa: E501 + + self._items = None + self.discriminator = None + + if items is not None: + self.items = items + + @property + def items(self): + """Gets the items of this CompaniesList. # noqa: E501 + + List of compaies # noqa: E501 + + :return: The items of this CompaniesList. # noqa: E501 + :rtype: list[Company] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this CompaniesList. + + List of compaies # noqa: E501 + + :param items: The items of this CompaniesList. # noqa: E501 + :type: list[Company] + """ + + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CompaniesList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CompaniesList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/company.py b/sib_api_v3_sdk/models/company.py new file mode 100644 index 0000000..41ac3c4 --- /dev/null +++ b/sib_api_v3_sdk/models/company.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Company(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'attributes': 'object', + 'linked_contacts_ids': 'list[int]', + 'linked_deals_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'attributes': 'attributes', + 'linked_contacts_ids': 'linkedContactsIds', + 'linked_deals_ids': 'linkedDealsIds' + } + + def __init__(self, id=None, attributes=None, linked_contacts_ids=None, linked_deals_ids=None): # noqa: E501 + """Company - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._attributes = None + self._linked_contacts_ids = None + self._linked_deals_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if attributes is not None: + self.attributes = attributes + if linked_contacts_ids is not None: + self.linked_contacts_ids = linked_contacts_ids + if linked_deals_ids is not None: + self.linked_deals_ids = linked_deals_ids + + @property + def id(self): + """Gets the id of this Company. # noqa: E501 + + Unique company id # noqa: E501 + + :return: The id of this Company. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Company. + + Unique company id # noqa: E501 + + :param id: The id of this Company. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def attributes(self): + """Gets the attributes of this Company. # noqa: E501 + + Company attributes with values # noqa: E501 + + :return: The attributes of this Company. # noqa: E501 + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Company. + + Company attributes with values # noqa: E501 + + :param attributes: The attributes of this Company. # noqa: E501 + :type: object + """ + + self._attributes = attributes + + @property + def linked_contacts_ids(self): + """Gets the linked_contacts_ids of this Company. # noqa: E501 + + Contact ids for contacts linked to this company # noqa: E501 + + :return: The linked_contacts_ids of this Company. # noqa: E501 + :rtype: list[int] + """ + return self._linked_contacts_ids + + @linked_contacts_ids.setter + def linked_contacts_ids(self, linked_contacts_ids): + """Sets the linked_contacts_ids of this Company. + + Contact ids for contacts linked to this company # noqa: E501 + + :param linked_contacts_ids: The linked_contacts_ids of this Company. # noqa: E501 + :type: list[int] + """ + + self._linked_contacts_ids = linked_contacts_ids + + @property + def linked_deals_ids(self): + """Gets the linked_deals_ids of this Company. # noqa: E501 + + Deals ids for companies linked to this company # noqa: E501 + + :return: The linked_deals_ids of this Company. # noqa: E501 + :rtype: list[str] + """ + return self._linked_deals_ids + + @linked_deals_ids.setter + def linked_deals_ids(self, linked_deals_ids): + """Sets the linked_deals_ids of this Company. + + Deals ids for companies linked to this company # noqa: E501 + + :param linked_deals_ids: The linked_deals_ids of this Company. # noqa: E501 + :type: list[str] + """ + + self._linked_deals_ids = linked_deals_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Company, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Company): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/company_attributes.py b/sib_api_v3_sdk/models/company_attributes.py new file mode 100644 index 0000000..e23839a --- /dev/null +++ b/sib_api_v3_sdk/models/company_attributes.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CompanyAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """CompanyAttributes - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CompanyAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CompanyAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/company_attributes_inner.py b/sib_api_v3_sdk/models/company_attributes_inner.py new file mode 100644 index 0000000..481d6c9 --- /dev/null +++ b/sib_api_v3_sdk/models/company_attributes_inner.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CompanyAttributesInner(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'internal_name': 'str', + 'label': 'str', + 'attribute_type_name': 'str', + 'attribute_options': 'list[object]', + 'is_required': 'bool' + } + + attribute_map = { + 'internal_name': 'internalName', + 'label': 'label', + 'attribute_type_name': 'attributeTypeName', + 'attribute_options': 'attributeOptions', + 'is_required': 'isRequired' + } + + def __init__(self, internal_name=None, label=None, attribute_type_name=None, attribute_options=None, is_required=None): # noqa: E501 + """CompanyAttributesInner - a model defined in Swagger""" # noqa: E501 + + self._internal_name = None + self._label = None + self._attribute_type_name = None + self._attribute_options = None + self._is_required = None + self.discriminator = None + + if internal_name is not None: + self.internal_name = internal_name + if label is not None: + self.label = label + if attribute_type_name is not None: + self.attribute_type_name = attribute_type_name + if attribute_options is not None: + self.attribute_options = attribute_options + if is_required is not None: + self.is_required = is_required + + @property + def internal_name(self): + """Gets the internal_name of this CompanyAttributesInner. # noqa: E501 + + + :return: The internal_name of this CompanyAttributesInner. # noqa: E501 + :rtype: str + """ + return self._internal_name + + @internal_name.setter + def internal_name(self, internal_name): + """Sets the internal_name of this CompanyAttributesInner. + + + :param internal_name: The internal_name of this CompanyAttributesInner. # noqa: E501 + :type: str + """ + + self._internal_name = internal_name + + @property + def label(self): + """Gets the label of this CompanyAttributesInner. # noqa: E501 + + + :return: The label of this CompanyAttributesInner. # noqa: E501 + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this CompanyAttributesInner. + + + :param label: The label of this CompanyAttributesInner. # noqa: E501 + :type: str + """ + + self._label = label + + @property + def attribute_type_name(self): + """Gets the attribute_type_name of this CompanyAttributesInner. # noqa: E501 + + + :return: The attribute_type_name of this CompanyAttributesInner. # noqa: E501 + :rtype: str + """ + return self._attribute_type_name + + @attribute_type_name.setter + def attribute_type_name(self, attribute_type_name): + """Sets the attribute_type_name of this CompanyAttributesInner. + + + :param attribute_type_name: The attribute_type_name of this CompanyAttributesInner. # noqa: E501 + :type: str + """ + + self._attribute_type_name = attribute_type_name + + @property + def attribute_options(self): + """Gets the attribute_options of this CompanyAttributesInner. # noqa: E501 + + + :return: The attribute_options of this CompanyAttributesInner. # noqa: E501 + :rtype: list[object] + """ + return self._attribute_options + + @attribute_options.setter + def attribute_options(self, attribute_options): + """Sets the attribute_options of this CompanyAttributesInner. + + + :param attribute_options: The attribute_options of this CompanyAttributesInner. # noqa: E501 + :type: list[object] + """ + + self._attribute_options = attribute_options + + @property + def is_required(self): + """Gets the is_required of this CompanyAttributesInner. # noqa: E501 + + + :return: The is_required of this CompanyAttributesInner. # noqa: E501 + :rtype: bool + """ + return self._is_required + + @is_required.setter + def is_required(self, is_required): + """Sets the is_required of this CompanyAttributesInner. + + + :param is_required: The is_required of this CompanyAttributesInner. # noqa: E501 + :type: bool + """ + + self._is_required = is_required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CompanyAttributesInner, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CompanyAttributesInner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/component_items.py b/sib_api_v3_sdk/models/component_items.py new file mode 100644 index 0000000..7d5a4d9 --- /dev/null +++ b/sib_api_v3_sdk/models/component_items.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ComponentItems(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'type': 'str', + 'text': 'str' + } + + attribute_map = { + 'type': 'type', + 'text': 'text' + } + + def __init__(self, type=None, text=None): # noqa: E501 + """ComponentItems - a model defined in Swagger""" # noqa: E501 + + self._type = None + self._text = None + self.discriminator = None + + if type is not None: + self.type = type + if text is not None: + self.text = text + + @property + def type(self): + """Gets the type of this ComponentItems. # noqa: E501 + + + :return: The type of this ComponentItems. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ComponentItems. + + + :param type: The type of this ComponentItems. # noqa: E501 + :type: str + """ + + self._type = type + + @property + def text(self): + """Gets the text of this ComponentItems. # noqa: E501 + + + :return: The text of this ComponentItems. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this ComponentItems. + + + :param text: The text of this ComponentItems. # noqa: E501 + :type: str + """ + + self._text = text + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ComponentItems, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ComponentItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/conversations_message.py b/sib_api_v3_sdk/models/conversations_message.py new file mode 100644 index 0000000..3ec97cd --- /dev/null +++ b/sib_api_v3_sdk/models/conversations_message.py @@ -0,0 +1,375 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConversationsMessage(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'type': 'str', + 'text': 'str', + 'visitor_id': 'str', + 'agent_id': 'str', + 'agent_name': 'str', + 'created_at': 'int', + 'is_pushed': 'bool', + 'received_from': 'str', + 'file': 'ConversationsMessageFile' + } + + attribute_map = { + 'id': 'id', + 'type': 'type', + 'text': 'text', + 'visitor_id': 'visitorId', + 'agent_id': 'agentId', + 'agent_name': 'agentName', + 'created_at': 'createdAt', + 'is_pushed': 'isPushed', + 'received_from': 'receivedFrom', + 'file': 'file' + } + + def __init__(self, id=None, type=None, text=None, visitor_id=None, agent_id=None, agent_name=None, created_at=None, is_pushed=None, received_from=None, file=None): # noqa: E501 + """ConversationsMessage - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._type = None + self._text = None + self._visitor_id = None + self._agent_id = None + self._agent_name = None + self._created_at = None + self._is_pushed = None + self._received_from = None + self._file = None + self.discriminator = None + + if id is not None: + self.id = id + if type is not None: + self.type = type + if text is not None: + self.text = text + if visitor_id is not None: + self.visitor_id = visitor_id + if agent_id is not None: + self.agent_id = agent_id + if agent_name is not None: + self.agent_name = agent_name + if created_at is not None: + self.created_at = created_at + if is_pushed is not None: + self.is_pushed = is_pushed + if received_from is not None: + self.received_from = received_from + if file is not None: + self.file = file + + @property + def id(self): + """Gets the id of this ConversationsMessage. # noqa: E501 + + Message ID. It can be used for further manipulations with the message. # noqa: E501 + + :return: The id of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this ConversationsMessage. + + Message ID. It can be used for further manipulations with the message. # noqa: E501 + + :param id: The id of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def type(self): + """Gets the type of this ConversationsMessage. # noqa: E501 + + `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages. # noqa: E501 + + :return: The type of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this ConversationsMessage. + + `\"agent\"` for agents’ messages, `\"visitor\"` for visitors’ messages. # noqa: E501 + + :param type: The type of this ConversationsMessage. # noqa: E501 + :type: str + """ + allowed_values = ["agent", "visitor"] # noqa: E501 + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 + .format(type, allowed_values) + ) + + self._type = type + + @property + def text(self): + """Gets the text of this ConversationsMessage. # noqa: E501 + + Message text or name of the attached file # noqa: E501 + + :return: The text of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this ConversationsMessage. + + Message text or name of the attached file # noqa: E501 + + :param text: The text of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._text = text + + @property + def visitor_id(self): + """Gets the visitor_id of this ConversationsMessage. # noqa: E501 + + visitor’s ID # noqa: E501 + + :return: The visitor_id of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._visitor_id + + @visitor_id.setter + def visitor_id(self, visitor_id): + """Sets the visitor_id of this ConversationsMessage. + + visitor’s ID # noqa: E501 + + :param visitor_id: The visitor_id of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._visitor_id = visitor_id + + @property + def agent_id(self): + """Gets the agent_id of this ConversationsMessage. # noqa: E501 + + ID of the agent on whose behalf the message was sent (only in messages sent by an agent). # noqa: E501 + + :return: The agent_id of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._agent_id + + @agent_id.setter + def agent_id(self, agent_id): + """Sets the agent_id of this ConversationsMessage. + + ID of the agent on whose behalf the message was sent (only in messages sent by an agent). # noqa: E501 + + :param agent_id: The agent_id of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._agent_id = agent_id + + @property + def agent_name(self): + """Gets the agent_name of this ConversationsMessage. # noqa: E501 + + Agent’s name as displayed to the visitor. Only in the messages sent by an agent. # noqa: E501 + + :return: The agent_name of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._agent_name + + @agent_name.setter + def agent_name(self, agent_name): + """Sets the agent_name of this ConversationsMessage. + + Agent’s name as displayed to the visitor. Only in the messages sent by an agent. # noqa: E501 + + :param agent_name: The agent_name of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._agent_name = agent_name + + @property + def created_at(self): + """Gets the created_at of this ConversationsMessage. # noqa: E501 + + Timestamp in milliseconds. # noqa: E501 + + :return: The created_at of this ConversationsMessage. # noqa: E501 + :rtype: int + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this ConversationsMessage. + + Timestamp in milliseconds. # noqa: E501 + + :param created_at: The created_at of this ConversationsMessage. # noqa: E501 + :type: int + """ + if created_at is not None and created_at < 0: # noqa: E501 + raise ValueError("Invalid value for `created_at`, must be a value greater than or equal to `0`") # noqa: E501 + + self._created_at = created_at + + @property + def is_pushed(self): + """Gets the is_pushed of this ConversationsMessage. # noqa: E501 + + `true` for pushed messages # noqa: E501 + + :return: The is_pushed of this ConversationsMessage. # noqa: E501 + :rtype: bool + """ + return self._is_pushed + + @is_pushed.setter + def is_pushed(self, is_pushed): + """Sets the is_pushed of this ConversationsMessage. + + `true` for pushed messages # noqa: E501 + + :param is_pushed: The is_pushed of this ConversationsMessage. # noqa: E501 + :type: bool + """ + + self._is_pushed = is_pushed + + @property + def received_from(self): + """Gets the received_from of this ConversationsMessage. # noqa: E501 + + In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop. # noqa: E501 + + :return: The received_from of this ConversationsMessage. # noqa: E501 + :rtype: str + """ + return self._received_from + + @received_from.setter + def received_from(self, received_from): + """Sets the received_from of this ConversationsMessage. + + In two-way integrations, messages sent via REST API can be marked with receivedFrom property and then filtered out when received in a webhook to avoid infinite loop. # noqa: E501 + + :param received_from: The received_from of this ConversationsMessage. # noqa: E501 + :type: str + """ + + self._received_from = received_from + + @property + def file(self): + """Gets the file of this ConversationsMessage. # noqa: E501 + + + :return: The file of this ConversationsMessage. # noqa: E501 + :rtype: ConversationsMessageFile + """ + return self._file + + @file.setter + def file(self, file): + """Sets the file of this ConversationsMessage. + + + :param file: The file of this ConversationsMessage. # noqa: E501 + :type: ConversationsMessageFile + """ + + self._file = file + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConversationsMessage, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConversationsMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/conversations_message_file.py b/sib_api_v3_sdk/models/conversations_message_file.py new file mode 100644 index 0000000..94f39e4 --- /dev/null +++ b/sib_api_v3_sdk/models/conversations_message_file.py @@ -0,0 +1,229 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConversationsMessageFile(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'filename': 'str', + 'size': 'int', + 'is_image': 'bool', + 'url': 'str', + 'image_info': 'ConversationsMessageFileImageInfo' + } + + attribute_map = { + 'filename': 'filename', + 'size': 'size', + 'is_image': 'isImage', + 'url': 'url', + 'image_info': 'imageInfo' + } + + def __init__(self, filename=None, size=None, is_image=None, url=None, image_info=None): # noqa: E501 + """ConversationsMessageFile - a model defined in Swagger""" # noqa: E501 + + self._filename = None + self._size = None + self._is_image = None + self._url = None + self._image_info = None + self.discriminator = None + + if filename is not None: + self.filename = filename + if size is not None: + self.size = size + if is_image is not None: + self.is_image = is_image + if url is not None: + self.url = url + if image_info is not None: + self.image_info = image_info + + @property + def filename(self): + """Gets the filename of this ConversationsMessageFile. # noqa: E501 + + Name of the file # noqa: E501 + + :return: The filename of this ConversationsMessageFile. # noqa: E501 + :rtype: str + """ + return self._filename + + @filename.setter + def filename(self, filename): + """Sets the filename of this ConversationsMessageFile. + + Name of the file # noqa: E501 + + :param filename: The filename of this ConversationsMessageFile. # noqa: E501 + :type: str + """ + + self._filename = filename + + @property + def size(self): + """Gets the size of this ConversationsMessageFile. # noqa: E501 + + Size in bytes # noqa: E501 + + :return: The size of this ConversationsMessageFile. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this ConversationsMessageFile. + + Size in bytes # noqa: E501 + + :param size: The size of this ConversationsMessageFile. # noqa: E501 + :type: int + """ + if size is not None and size < 0: # noqa: E501 + raise ValueError("Invalid value for `size`, must be a value greater than or equal to `0`") # noqa: E501 + + self._size = size + + @property + def is_image(self): + """Gets the is_image of this ConversationsMessageFile. # noqa: E501 + + Whether the file is an image # noqa: E501 + + :return: The is_image of this ConversationsMessageFile. # noqa: E501 + :rtype: bool + """ + return self._is_image + + @is_image.setter + def is_image(self, is_image): + """Sets the is_image of this ConversationsMessageFile. + + Whether the file is an image # noqa: E501 + + :param is_image: The is_image of this ConversationsMessageFile. # noqa: E501 + :type: bool + """ + + self._is_image = is_image + + @property + def url(self): + """Gets the url of this ConversationsMessageFile. # noqa: E501 + + URL of the file # noqa: E501 + + :return: The url of this ConversationsMessageFile. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this ConversationsMessageFile. + + URL of the file # noqa: E501 + + :param url: The url of this ConversationsMessageFile. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def image_info(self): + """Gets the image_info of this ConversationsMessageFile. # noqa: E501 + + + :return: The image_info of this ConversationsMessageFile. # noqa: E501 + :rtype: ConversationsMessageFileImageInfo + """ + return self._image_info + + @image_info.setter + def image_info(self, image_info): + """Sets the image_info of this ConversationsMessageFile. + + + :param image_info: The image_info of this ConversationsMessageFile. # noqa: E501 + :type: ConversationsMessageFileImageInfo + """ + + self._image_info = image_info + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConversationsMessageFile, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConversationsMessageFile): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/conversations_message_file_image_info.py b/sib_api_v3_sdk/models/conversations_message_file_image_info.py new file mode 100644 index 0000000..f868cba --- /dev/null +++ b/sib_api_v3_sdk/models/conversations_message_file_image_info.py @@ -0,0 +1,177 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ConversationsMessageFileImageInfo(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'width': 'int', + 'height': 'int', + 'preview_url': 'str' + } + + attribute_map = { + 'width': 'width', + 'height': 'height', + 'preview_url': 'previewUrl' + } + + def __init__(self, width=None, height=None, preview_url=None): # noqa: E501 + """ConversationsMessageFileImageInfo - a model defined in Swagger""" # noqa: E501 + + self._width = None + self._height = None + self._preview_url = None + self.discriminator = None + + if width is not None: + self.width = width + if height is not None: + self.height = height + if preview_url is not None: + self.preview_url = preview_url + + @property + def width(self): + """Gets the width of this ConversationsMessageFileImageInfo. # noqa: E501 + + Width of the image # noqa: E501 + + :return: The width of this ConversationsMessageFileImageInfo. # noqa: E501 + :rtype: int + """ + return self._width + + @width.setter + def width(self, width): + """Sets the width of this ConversationsMessageFileImageInfo. + + Width of the image # noqa: E501 + + :param width: The width of this ConversationsMessageFileImageInfo. # noqa: E501 + :type: int + """ + if width is not None and width < 0: # noqa: E501 + raise ValueError("Invalid value for `width`, must be a value greater than or equal to `0`") # noqa: E501 + + self._width = width + + @property + def height(self): + """Gets the height of this ConversationsMessageFileImageInfo. # noqa: E501 + + height of the image # noqa: E501 + + :return: The height of this ConversationsMessageFileImageInfo. # noqa: E501 + :rtype: int + """ + return self._height + + @height.setter + def height(self, height): + """Sets the height of this ConversationsMessageFileImageInfo. + + height of the image # noqa: E501 + + :param height: The height of this ConversationsMessageFileImageInfo. # noqa: E501 + :type: int + """ + if height is not None and height < 0: # noqa: E501 + raise ValueError("Invalid value for `height`, must be a value greater than or equal to `0`") # noqa: E501 + + self._height = height + + @property + def preview_url(self): + """Gets the preview_url of this ConversationsMessageFileImageInfo. # noqa: E501 + + URL of the preview # noqa: E501 + + :return: The preview_url of this ConversationsMessageFileImageInfo. # noqa: E501 + :rtype: str + """ + return self._preview_url + + @preview_url.setter + def preview_url(self, preview_url): + """Sets the preview_url of this ConversationsMessageFileImageInfo. + + URL of the preview # noqa: E501 + + :param preview_url: The preview_url of this ConversationsMessageFileImageInfo. # noqa: E501 + :type: str + """ + + self._preview_url = preview_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ConversationsMessageFileImageInfo, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ConversationsMessageFileImageInfo): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_api_key_request.py b/sib_api_v3_sdk/models/create_api_key_request.py new file mode 100644 index 0000000..b9a605e --- /dev/null +++ b/sib_api_v3_sdk/models/create_api_key_request.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateApiKeyRequest(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """CreateApiKeyRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this CreateApiKeyRequest. # noqa: E501 + + Id of the sub-account organization # noqa: E501 + + :return: The id of this CreateApiKeyRequest. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateApiKeyRequest. + + Id of the sub-account organization # noqa: E501 + + :param id: The id of this CreateApiKeyRequest. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this CreateApiKeyRequest. # noqa: E501 + + Name of the API key # noqa: E501 + + :return: The name of this CreateApiKeyRequest. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateApiKeyRequest. + + Name of the API key # noqa: E501 + + :param name: The name of this CreateApiKeyRequest. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateApiKeyRequest, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateApiKeyRequest): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_api_key_response.py b/sib_api_v3_sdk/models/create_api_key_response.py new file mode 100644 index 0000000..3299dbd --- /dev/null +++ b/sib_api_v3_sdk/models/create_api_key_response.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateApiKeyResponse(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'status': 'str', + 'key': 'str' + } + + attribute_map = { + 'status': 'status', + 'key': 'key' + } + + def __init__(self, status=None, key=None): # noqa: E501 + """CreateApiKeyResponse - a model defined in Swagger""" # noqa: E501 + + self._status = None + self._key = None + self.discriminator = None + + if status is not None: + self.status = status + if key is not None: + self.key = key + + @property + def status(self): + """Gets the status of this CreateApiKeyResponse. # noqa: E501 + + Status of the API operation. # noqa: E501 + + :return: The status of this CreateApiKeyResponse. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this CreateApiKeyResponse. + + Status of the API operation. # noqa: E501 + + :param status: The status of this CreateApiKeyResponse. # noqa: E501 + :type: str + """ + + self._status = status + + @property + def key(self): + """Gets the key of this CreateApiKeyResponse. # noqa: E501 + + API Key # noqa: E501 + + :return: The key of this CreateApiKeyResponse. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this CreateApiKeyResponse. + + API Key # noqa: E501 + + :param key: The key of this CreateApiKeyResponse. # noqa: E501 + :type: str + """ + + self._key = key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateApiKeyResponse, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateApiKeyResponse): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_attribute.py b/sib_api_v3_sdk/models/create_attribute.py index c7da06d..a4841ff 100644 --- a/sib_api_v3_sdk/models/create_attribute.py +++ b/sib_api_v3_sdk/models/create_attribute.py @@ -32,26 +32,31 @@ class CreateAttribute(object): """ swagger_types = { 'value': 'str', + 'is_recurring': 'bool', 'enumeration': 'list[CreateAttributeEnumeration]', 'type': 'str' } attribute_map = { 'value': 'value', + 'is_recurring': 'isRecurring', 'enumeration': 'enumeration', 'type': 'type' } - def __init__(self, value=None, enumeration=None, type=None): # noqa: E501 + def __init__(self, value=None, is_recurring=None, enumeration=None, type=None): # noqa: E501 """CreateAttribute - a model defined in Swagger""" # noqa: E501 self._value = None + self._is_recurring = None self._enumeration = None self._type = None self.discriminator = None if value is not None: self.value = value + if is_recurring is not None: + self.is_recurring = is_recurring if enumeration is not None: self.enumeration = enumeration if type is not None: @@ -80,6 +85,29 @@ def value(self, value): self._value = value + @property + def is_recurring(self): + """Gets the is_recurring of this CreateAttribute. # noqa: E501 + + Type of the attribute. Use only if the attribute's category is 'calculated' or 'global' # noqa: E501 + + :return: The is_recurring of this CreateAttribute. # noqa: E501 + :rtype: bool + """ + return self._is_recurring + + @is_recurring.setter + def is_recurring(self, is_recurring): + """Sets the is_recurring of this CreateAttribute. + + Type of the attribute. Use only if the attribute's category is 'calculated' or 'global' # noqa: E501 + + :param is_recurring: The is_recurring of this CreateAttribute. # noqa: E501 + :type: bool + """ + + self._is_recurring = is_recurring + @property def enumeration(self): """Gets the enumeration of this CreateAttribute. # noqa: E501 diff --git a/sib_api_v3_sdk/models/create_category_model.py b/sib_api_v3_sdk/models/create_category_model.py new file mode 100644 index 0000000..6ee6e3f --- /dev/null +++ b/sib_api_v3_sdk/models/create_category_model.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateCategoryModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """CreateCategoryModel - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this CreateCategoryModel. # noqa: E501 + + ID of the category when a new category is created # noqa: E501 + + :return: The id of this CreateCategoryModel. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateCategoryModel. + + ID of the category when a new category is created # noqa: E501 + + :param id: The id of this CreateCategoryModel. # noqa: E501 + :type: int + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateCategoryModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateCategoryModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_contact.py b/sib_api_v3_sdk/models/create_contact.py index f02acca..b8e6eda 100644 --- a/sib_api_v3_sdk/models/create_contact.py +++ b/sib_api_v3_sdk/models/create_contact.py @@ -32,6 +32,7 @@ class CreateContact(object): """ swagger_types = { 'email': 'str', + 'ext_id': 'str', 'attributes': 'object', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', @@ -42,6 +43,7 @@ class CreateContact(object): attribute_map = { 'email': 'email', + 'ext_id': 'ext_id', 'attributes': 'attributes', 'email_blacklisted': 'emailBlacklisted', 'sms_blacklisted': 'smsBlacklisted', @@ -50,10 +52,11 @@ class CreateContact(object): 'smtp_blacklist_sender': 'smtpBlacklistSender' } - def __init__(self, email=None, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, update_enabled=False, smtp_blacklist_sender=None): # noqa: E501 + def __init__(self, email=None, ext_id=None, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, update_enabled=False, smtp_blacklist_sender=None): # noqa: E501 """CreateContact - a model defined in Swagger""" # noqa: E501 self._email = None + self._ext_id = None self._attributes = None self._email_blacklisted = None self._sms_blacklisted = None @@ -64,6 +67,8 @@ def __init__(self, email=None, attributes=None, email_blacklisted=None, sms_blac if email is not None: self.email = email + if ext_id is not None: + self.ext_id = ext_id if attributes is not None: self.attributes = attributes if email_blacklisted is not None: @@ -100,6 +105,29 @@ def email(self, email): self._email = email + @property + def ext_id(self): + """Gets the ext_id of this CreateContact. # noqa: E501 + + Pass your own Id to create a contact. # noqa: E501 + + :return: The ext_id of this CreateContact. # noqa: E501 + :rtype: str + """ + return self._ext_id + + @ext_id.setter + def ext_id(self, ext_id): + """Sets the ext_id of this CreateContact. + + Pass your own Id to create a contact. # noqa: E501 + + :param ext_id: The ext_id of this CreateContact. # noqa: E501 + :type: str + """ + + self._ext_id = ext_id + @property def attributes(self): """Gets the attributes of this CreateContact. # noqa: E501 diff --git a/sib_api_v3_sdk/models/create_email_campaign.py b/sib_api_v3_sdk/models/create_email_campaign.py index c00eb96..f022037 100644 --- a/sib_api_v3_sdk/models/create_email_campaign.py +++ b/sib_api_v3_sdk/models/create_email_campaign.py @@ -58,7 +58,9 @@ class CreateEmailCampaign(object): 'winner_delay': 'int', 'ip_warmup_enable': 'bool', 'initial_quota': 'int', - 'increase_rate': 'int' + 'increase_rate': 'int', + 'unsubscription_page_id': 'str', + 'update_form_id': 'str' } attribute_map = { @@ -89,10 +91,12 @@ class CreateEmailCampaign(object): 'winner_delay': 'winnerDelay', 'ip_warmup_enable': 'ipWarmupEnable', 'initial_quota': 'initialQuota', - 'increase_rate': 'increaseRate' + 'increase_rate': 'increaseRate', + 'unsubscription_page_id': 'unsubscriptionPageId', + 'update_form_id': 'updateFormId' } - def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, template_id=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=False, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None): # noqa: E501 + def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, template_id=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=False, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None, unsubscription_page_id=None, update_form_id=None): # noqa: E501 """CreateEmailCampaign - a model defined in Swagger""" # noqa: E501 self._tag = None @@ -123,6 +127,8 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._ip_warmup_enable = None self._initial_quota = None self._increase_rate = None + self._unsubscription_page_id = None + self._update_form_id = None self.discriminator = None if tag is not None: @@ -179,6 +185,10 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self.initial_quota = initial_quota if increase_rate is not None: self.increase_rate = increase_rate + if unsubscription_page_id is not None: + self.unsubscription_page_id = unsubscription_page_id + if update_form_id is not None: + self.update_form_id = update_form_id @property def tag(self): @@ -842,6 +852,52 @@ def increase_rate(self, increase_rate): self._increase_rate = increase_rate + @property + def unsubscription_page_id(self): + """Gets the unsubscription_page_id of this CreateEmailCampaign. # noqa: E501 + + Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used. # noqa: E501 + + :return: The unsubscription_page_id of this CreateEmailCampaign. # noqa: E501 + :rtype: str + """ + return self._unsubscription_page_id + + @unsubscription_page_id.setter + def unsubscription_page_id(self, unsubscription_page_id): + """Sets the unsubscription_page_id of this CreateEmailCampaign. + + Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. If not entered, then the default unsubscription page will be used. # noqa: E501 + + :param unsubscription_page_id: The unsubscription_page_id of this CreateEmailCampaign. # noqa: E501 + :type: str + """ + + self._unsubscription_page_id = unsubscription_page_id + + @property + def update_form_id(self): + """Gets the update_form_id of this CreateEmailCampaign. # noqa: E501 + + Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used. # noqa: E501 + + :return: The update_form_id of this CreateEmailCampaign. # noqa: E501 + :rtype: str + """ + return self._update_form_id + + @update_form_id.setter + def update_form_id(self, update_form_id): + """Sets the update_form_id of this CreateEmailCampaign. + + Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. If not entered, then the default update profile form will be used. # noqa: E501 + + :param update_form_id: The update_form_id of this CreateEmailCampaign. # noqa: E501 + :type: str + """ + + self._update_form_id = update_form_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/create_email_campaign_recipients.py b/sib_api_v3_sdk/models/create_email_campaign_recipients.py index da02cce..9d8a93f 100644 --- a/sib_api_v3_sdk/models/create_email_campaign_recipients.py +++ b/sib_api_v3_sdk/models/create_email_campaign_recipients.py @@ -32,25 +32,30 @@ class CreateEmailCampaignRecipients(object): """ swagger_types = { 'exclusion_list_ids': 'list[int]', - 'list_ids': 'list[int]' + 'list_ids': 'list[int]', + 'segment_ids': 'list[int]' } attribute_map = { 'exclusion_list_ids': 'exclusionListIds', - 'list_ids': 'listIds' + 'list_ids': 'listIds', + 'segment_ids': 'segmentIds' } - def __init__(self, exclusion_list_ids=None, list_ids=None): # noqa: E501 + def __init__(self, exclusion_list_ids=None, list_ids=None, segment_ids=None): # noqa: E501 """CreateEmailCampaignRecipients - a model defined in Swagger""" # noqa: E501 self._exclusion_list_ids = None self._list_ids = None + self._segment_ids = None self.discriminator = None if exclusion_list_ids is not None: self.exclusion_list_ids = exclusion_list_ids if list_ids is not None: self.list_ids = list_ids + if segment_ids is not None: + self.segment_ids = segment_ids @property def exclusion_list_ids(self): @@ -98,6 +103,29 @@ def list_ids(self, list_ids): self._list_ids = list_ids + @property + def segment_ids(self): + """Gets the segment_ids of this CreateEmailCampaignRecipients. # noqa: E501 + + Mandatory if listIds are not used. Segment ids to send the campaign to. # noqa: E501 + + :return: The segment_ids of this CreateEmailCampaignRecipients. # noqa: E501 + :rtype: list[int] + """ + return self._segment_ids + + @segment_ids.setter + def segment_ids(self, segment_ids): + """Sets the segment_ids of this CreateEmailCampaignRecipients. + + Mandatory if listIds are not used. Segment ids to send the campaign to. # noqa: E501 + + :param segment_ids: The segment_ids of this CreateEmailCampaignRecipients. # noqa: E501 + :type: list[int] + """ + + self._segment_ids = segment_ids + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/create_external_feed.py b/sib_api_v3_sdk/models/create_external_feed.py new file mode 100644 index 0000000..ddab322 --- /dev/null +++ b/sib_api_v3_sdk/models/create_external_feed.py @@ -0,0 +1,353 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateExternalFeed(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'url': 'str', + 'auth_type': 'str', + 'username': 'str', + 'password': 'str', + 'token': 'str', + 'headers': 'list[GetExternalFeedByUUIDHeaders]', + 'max_retries': 'int', + 'cache': 'bool' + } + + attribute_map = { + 'name': 'name', + 'url': 'url', + 'auth_type': 'authType', + 'username': 'username', + 'password': 'password', + 'token': 'token', + 'headers': 'headers', + 'max_retries': 'maxRetries', + 'cache': 'cache' + } + + def __init__(self, name=None, url=None, auth_type='noAuth', username=None, password=None, token=None, headers=None, max_retries=None, cache=False): # noqa: E501 + """CreateExternalFeed - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._url = None + self._auth_type = None + self._username = None + self._password = None + self._token = None + self._headers = None + self._max_retries = None + self._cache = None + self.discriminator = None + + self.name = name + self.url = url + if auth_type is not None: + self.auth_type = auth_type + if username is not None: + self.username = username + if password is not None: + self.password = password + if token is not None: + self.token = token + if headers is not None: + self.headers = headers + if max_retries is not None: + self.max_retries = max_retries + if cache is not None: + self.cache = cache + + @property + def name(self): + """Gets the name of this CreateExternalFeed. # noqa: E501 + + Name of the feed # noqa: E501 + + :return: The name of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateExternalFeed. + + Name of the feed # noqa: E501 + + :param name: The name of this CreateExternalFeed. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this CreateExternalFeed. # noqa: E501 + + URL of the feed # noqa: E501 + + :return: The url of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateExternalFeed. + + URL of the feed # noqa: E501 + + :param url: The url of this CreateExternalFeed. # noqa: E501 + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + @property + def auth_type(self): + """Gets the auth_type of this CreateExternalFeed. # noqa: E501 + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :return: The auth_type of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this CreateExternalFeed. + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :param auth_type: The auth_type of this CreateExternalFeed. # noqa: E501 + :type: str + """ + allowed_values = ["basic", "token", "noAuth"] # noqa: E501 + if auth_type not in allowed_values: + raise ValueError( + "Invalid value for `auth_type` ({0}), must be one of {1}" # noqa: E501 + .format(auth_type, allowed_values) + ) + + self._auth_type = auth_type + + @property + def username(self): + """Gets the username of this CreateExternalFeed. # noqa: E501 + + Username for authType `basic` # noqa: E501 + + :return: The username of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this CreateExternalFeed. + + Username for authType `basic` # noqa: E501 + + :param username: The username of this CreateExternalFeed. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this CreateExternalFeed. # noqa: E501 + + Password for authType `basic` # noqa: E501 + + :return: The password of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this CreateExternalFeed. + + Password for authType `basic` # noqa: E501 + + :param password: The password of this CreateExternalFeed. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def token(self): + """Gets the token of this CreateExternalFeed. # noqa: E501 + + Token for authType `token` # noqa: E501 + + :return: The token of this CreateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this CreateExternalFeed. + + Token for authType `token` # noqa: E501 + + :param token: The token of this CreateExternalFeed. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def headers(self): + """Gets the headers of this CreateExternalFeed. # noqa: E501 + + Custom headers for the feed # noqa: E501 + + :return: The headers of this CreateExternalFeed. # noqa: E501 + :rtype: list[GetExternalFeedByUUIDHeaders] + """ + return self._headers + + @headers.setter + def headers(self, headers): + """Sets the headers of this CreateExternalFeed. + + Custom headers for the feed # noqa: E501 + + :param headers: The headers of this CreateExternalFeed. # noqa: E501 + :type: list[GetExternalFeedByUUIDHeaders] + """ + + self._headers = headers + + @property + def max_retries(self): + """Gets the max_retries of this CreateExternalFeed. # noqa: E501 + + Maximum number of retries on the feed url # noqa: E501 + + :return: The max_retries of this CreateExternalFeed. # noqa: E501 + :rtype: int + """ + return self._max_retries + + @max_retries.setter + def max_retries(self, max_retries): + """Sets the max_retries of this CreateExternalFeed. + + Maximum number of retries on the feed url # noqa: E501 + + :param max_retries: The max_retries of this CreateExternalFeed. # noqa: E501 + :type: int + """ + if max_retries is not None and max_retries > 5: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value less than or equal to `5`") # noqa: E501 + if max_retries is not None and max_retries < 0: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value greater than or equal to `0`") # noqa: E501 + + self._max_retries = max_retries + + @property + def cache(self): + """Gets the cache of this CreateExternalFeed. # noqa: E501 + + Toggle caching of feed url response # noqa: E501 + + :return: The cache of this CreateExternalFeed. # noqa: E501 + :rtype: bool + """ + return self._cache + + @cache.setter + def cache(self, cache): + """Sets the cache of this CreateExternalFeed. + + Toggle caching of feed url response # noqa: E501 + + :param cache: The cache of this CreateExternalFeed. # noqa: E501 + :type: bool + """ + + self._cache = cache + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateExternalFeed, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateExternalFeed): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_product_model.py b/sib_api_v3_sdk/models/create_product_model.py new file mode 100644 index 0000000..60e3a3a --- /dev/null +++ b/sib_api_v3_sdk/models/create_product_model.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateProductModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """CreateProductModel - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + if id is not None: + self.id = id + + @property + def id(self): + """Gets the id of this CreateProductModel. # noqa: E501 + + ID of the Product when a new product is created # noqa: E501 + + :return: The id of this CreateProductModel. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateProductModel. + + ID of the Product when a new product is created # noqa: E501 + + :param id: The id of this CreateProductModel. # noqa: E501 + :type: int + """ + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateProductModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateProductModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_sms_campaign.py b/sib_api_v3_sdk/models/create_sms_campaign.py index f8d589e..f02d68c 100644 --- a/sib_api_v3_sdk/models/create_sms_campaign.py +++ b/sib_api_v3_sdk/models/create_sms_campaign.py @@ -36,7 +36,9 @@ class CreateSmsCampaign(object): 'content': 'str', 'recipients': 'CreateSmsCampaignRecipients', 'scheduled_at': 'str', - 'unicode_enabled': 'bool' + 'unicode_enabled': 'bool', + 'organisation_prefix': 'str', + 'unsubscribe_instruction': 'str' } attribute_map = { @@ -45,10 +47,12 @@ class CreateSmsCampaign(object): 'content': 'content', 'recipients': 'recipients', 'scheduled_at': 'scheduledAt', - 'unicode_enabled': 'unicodeEnabled' + 'unicode_enabled': 'unicodeEnabled', + 'organisation_prefix': 'organisationPrefix', + 'unsubscribe_instruction': 'unsubscribeInstruction' } - def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False): # noqa: E501 + def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None): # noqa: E501 """CreateSmsCampaign - a model defined in Swagger""" # noqa: E501 self._name = None @@ -57,6 +61,8 @@ def __init__(self, name=None, sender=None, content=None, recipients=None, schedu self._recipients = None self._scheduled_at = None self._unicode_enabled = None + self._organisation_prefix = None + self._unsubscribe_instruction = None self.discriminator = None self.name = name @@ -68,6 +74,10 @@ def __init__(self, name=None, sender=None, content=None, recipients=None, schedu self.scheduled_at = scheduled_at if unicode_enabled is not None: self.unicode_enabled = unicode_enabled + if organisation_prefix is not None: + self.organisation_prefix = organisation_prefix + if unsubscribe_instruction is not None: + self.unsubscribe_instruction = unsubscribe_instruction @property def name(self): @@ -213,6 +223,52 @@ def unicode_enabled(self, unicode_enabled): self._unicode_enabled = unicode_enabled + @property + def organisation_prefix(self): + """Gets the organisation_prefix of this CreateSmsCampaign. # noqa: E501 + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :return: The organisation_prefix of this CreateSmsCampaign. # noqa: E501 + :rtype: str + """ + return self._organisation_prefix + + @organisation_prefix.setter + def organisation_prefix(self, organisation_prefix): + """Sets the organisation_prefix of this CreateSmsCampaign. + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :param organisation_prefix: The organisation_prefix of this CreateSmsCampaign. # noqa: E501 + :type: str + """ + + self._organisation_prefix = organisation_prefix + + @property + def unsubscribe_instruction(self): + """Gets the unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501 + + Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501 + + :return: The unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501 + :rtype: str + """ + return self._unsubscribe_instruction + + @unsubscribe_instruction.setter + def unsubscribe_instruction(self, unsubscribe_instruction): + """Sets the unsubscribe_instruction of this CreateSmsCampaign. + + Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501 + + :param unsubscribe_instruction: The unsubscribe_instruction of this CreateSmsCampaign. # noqa: E501 + :type: str + """ + + self._unsubscribe_instruction = unsubscribe_instruction + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/create_update_batch_category.py b/sib_api_v3_sdk/models/create_update_batch_category.py new file mode 100644 index 0000000..e9e022b --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_batch_category.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateBatchCategory(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'categories': 'list[CreateUpdateCategories]', + 'update_enabled': 'bool' + } + + attribute_map = { + 'categories': 'categories', + 'update_enabled': 'updateEnabled' + } + + def __init__(self, categories=None, update_enabled=None): # noqa: E501 + """CreateUpdateBatchCategory - a model defined in Swagger""" # noqa: E501 + + self._categories = None + self._update_enabled = None + self.discriminator = None + + self.categories = categories + if update_enabled is not None: + self.update_enabled = update_enabled + + @property + def categories(self): + """Gets the categories of this CreateUpdateBatchCategory. # noqa: E501 + + array of categories objects # noqa: E501 + + :return: The categories of this CreateUpdateBatchCategory. # noqa: E501 + :rtype: list[CreateUpdateCategories] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this CreateUpdateBatchCategory. + + array of categories objects # noqa: E501 + + :param categories: The categories of this CreateUpdateBatchCategory. # noqa: E501 + :type: list[CreateUpdateCategories] + """ + if categories is None: + raise ValueError("Invalid value for `categories`, must not be `None`") # noqa: E501 + + self._categories = categories + + @property + def update_enabled(self): + """Gets the update_enabled of this CreateUpdateBatchCategory. # noqa: E501 + + Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501 + + :return: The update_enabled of this CreateUpdateBatchCategory. # noqa: E501 + :rtype: bool + """ + return self._update_enabled + + @update_enabled.setter + def update_enabled(self, update_enabled): + """Sets the update_enabled of this CreateUpdateBatchCategory. + + Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501 + + :param update_enabled: The update_enabled of this CreateUpdateBatchCategory. # noqa: E501 + :type: bool + """ + + self._update_enabled = update_enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateBatchCategory, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateBatchCategory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_batch_category_model.py b/sib_api_v3_sdk/models/create_update_batch_category_model.py new file mode 100644 index 0000000..e900cae --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_batch_category_model.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateBatchCategoryModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created_count': 'int', + 'updated_count': 'int' + } + + attribute_map = { + 'created_count': 'createdCount', + 'updated_count': 'updatedCount' + } + + def __init__(self, created_count=None, updated_count=None): # noqa: E501 + """CreateUpdateBatchCategoryModel - a model defined in Swagger""" # noqa: E501 + + self._created_count = None + self._updated_count = None + self.discriminator = None + + if created_count is not None: + self.created_count = created_count + if updated_count is not None: + self.updated_count = updated_count + + @property + def created_count(self): + """Gets the created_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + + Number of the new created categories # noqa: E501 + + :return: The created_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + :rtype: int + """ + return self._created_count + + @created_count.setter + def created_count(self, created_count): + """Sets the created_count of this CreateUpdateBatchCategoryModel. + + Number of the new created categories # noqa: E501 + + :param created_count: The created_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + :type: int + """ + + self._created_count = created_count + + @property + def updated_count(self): + """Gets the updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + + Number of the existing categories updated # noqa: E501 + + :return: The updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + :rtype: int + """ + return self._updated_count + + @updated_count.setter + def updated_count(self, updated_count): + """Sets the updated_count of this CreateUpdateBatchCategoryModel. + + Number of the existing categories updated # noqa: E501 + + :param updated_count: The updated_count of this CreateUpdateBatchCategoryModel. # noqa: E501 + :type: int + """ + + self._updated_count = updated_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateBatchCategoryModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateBatchCategoryModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_batch_products.py b/sib_api_v3_sdk/models/create_update_batch_products.py new file mode 100644 index 0000000..19e5450 --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_batch_products.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateBatchProducts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'products': 'list[CreateUpdateProducts]', + 'update_enabled': 'bool' + } + + attribute_map = { + 'products': 'products', + 'update_enabled': 'updateEnabled' + } + + def __init__(self, products=None, update_enabled=None): # noqa: E501 + """CreateUpdateBatchProducts - a model defined in Swagger""" # noqa: E501 + + self._products = None + self._update_enabled = None + self.discriminator = None + + self.products = products + if update_enabled is not None: + self.update_enabled = update_enabled + + @property + def products(self): + """Gets the products of this CreateUpdateBatchProducts. # noqa: E501 + + array of products objects # noqa: E501 + + :return: The products of this CreateUpdateBatchProducts. # noqa: E501 + :rtype: list[CreateUpdateProducts] + """ + return self._products + + @products.setter + def products(self, products): + """Sets the products of this CreateUpdateBatchProducts. + + array of products objects # noqa: E501 + + :param products: The products of this CreateUpdateBatchProducts. # noqa: E501 + :type: list[CreateUpdateProducts] + """ + if products is None: + raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501 + + self._products = products + + @property + def update_enabled(self): + """Gets the update_enabled of this CreateUpdateBatchProducts. # noqa: E501 + + Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501 + + :return: The update_enabled of this CreateUpdateBatchProducts. # noqa: E501 + :rtype: bool + """ + return self._update_enabled + + @update_enabled.setter + def update_enabled(self, update_enabled): + """Sets the update_enabled of this CreateUpdateBatchProducts. + + Facilitate to update the existing categories in the same request (updateEnabled = true) # noqa: E501 + + :param update_enabled: The update_enabled of this CreateUpdateBatchProducts. # noqa: E501 + :type: bool + """ + + self._update_enabled = update_enabled + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateBatchProducts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateBatchProducts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_batch_products_model.py b/sib_api_v3_sdk/models/create_update_batch_products_model.py new file mode 100644 index 0000000..475fbeb --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_batch_products_model.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateBatchProductsModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'created_count': 'int', + 'updated_count': 'int' + } + + attribute_map = { + 'created_count': 'createdCount', + 'updated_count': 'updatedCount' + } + + def __init__(self, created_count=None, updated_count=None): # noqa: E501 + """CreateUpdateBatchProductsModel - a model defined in Swagger""" # noqa: E501 + + self._created_count = None + self._updated_count = None + self.discriminator = None + + if created_count is not None: + self.created_count = created_count + if updated_count is not None: + self.updated_count = updated_count + + @property + def created_count(self): + """Gets the created_count of this CreateUpdateBatchProductsModel. # noqa: E501 + + Number of the new created products # noqa: E501 + + :return: The created_count of this CreateUpdateBatchProductsModel. # noqa: E501 + :rtype: int + """ + return self._created_count + + @created_count.setter + def created_count(self, created_count): + """Sets the created_count of this CreateUpdateBatchProductsModel. + + Number of the new created products # noqa: E501 + + :param created_count: The created_count of this CreateUpdateBatchProductsModel. # noqa: E501 + :type: int + """ + + self._created_count = created_count + + @property + def updated_count(self): + """Gets the updated_count of this CreateUpdateBatchProductsModel. # noqa: E501 + + Number of the existing products updated # noqa: E501 + + :return: The updated_count of this CreateUpdateBatchProductsModel. # noqa: E501 + :rtype: int + """ + return self._updated_count + + @updated_count.setter + def updated_count(self, updated_count): + """Sets the updated_count of this CreateUpdateBatchProductsModel. + + Number of the existing products updated # noqa: E501 + + :param updated_count: The updated_count of this CreateUpdateBatchProductsModel. # noqa: E501 + :type: int + """ + + self._updated_count = updated_count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateBatchProductsModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateBatchProductsModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_categories.py b/sib_api_v3_sdk/models/create_update_categories.py new file mode 100644 index 0000000..5a3e03a --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_categories.py @@ -0,0 +1,202 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateCategories(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'deleted_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'deleted_at': 'deletedAt' + } + + def __init__(self, id=None, name=None, url=None, deleted_at=None): # noqa: E501 + """CreateUpdateCategories - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._deleted_at = None + self.discriminator = None + + self.id = id + if name is not None: + self.name = name + if url is not None: + self.url = url + if deleted_at is not None: + self.deleted_at = deleted_at + + @property + def id(self): + """Gets the id of this CreateUpdateCategories. # noqa: E501 + + Unique Category ID as saved in the shop # noqa: E501 + + :return: The id of this CreateUpdateCategories. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateUpdateCategories. + + Unique Category ID as saved in the shop # noqa: E501 + + :param id: The id of this CreateUpdateCategories. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this CreateUpdateCategories. # noqa: E501 + + **Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501 + + :return: The name of this CreateUpdateCategories. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateUpdateCategories. + + **Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501 + + :param name: The name of this CreateUpdateCategories. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this CreateUpdateCategories. # noqa: E501 + + URL to the category # noqa: E501 + + :return: The url of this CreateUpdateCategories. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateUpdateCategories. + + URL to the category # noqa: E501 + + :param url: The url of this CreateUpdateCategories. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def deleted_at(self): + """Gets the deleted_at of this CreateUpdateCategories. # noqa: E501 + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501 + + :return: The deleted_at of this CreateUpdateCategories. # noqa: E501 + :rtype: str + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this CreateUpdateCategories. + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501 + + :param deleted_at: The deleted_at of this CreateUpdateCategories. # noqa: E501 + :type: str + """ + + self._deleted_at = deleted_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateCategories, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateCategories): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_category.py b/sib_api_v3_sdk/models/create_update_category.py new file mode 100644 index 0000000..cec8803 --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_category.py @@ -0,0 +1,230 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateCategory(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'update_enabled': 'bool', + 'deleted_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'update_enabled': 'updateEnabled', + 'deleted_at': 'deletedAt' + } + + def __init__(self, id=None, name=None, url=None, update_enabled=False, deleted_at=None): # noqa: E501 + """CreateUpdateCategory - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._update_enabled = None + self._deleted_at = None + self.discriminator = None + + self.id = id + if name is not None: + self.name = name + if url is not None: + self.url = url + if update_enabled is not None: + self.update_enabled = update_enabled + if deleted_at is not None: + self.deleted_at = deleted_at + + @property + def id(self): + """Gets the id of this CreateUpdateCategory. # noqa: E501 + + Unique Category ID as saved in the shop # noqa: E501 + + :return: The id of this CreateUpdateCategory. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateUpdateCategory. + + Unique Category ID as saved in the shop # noqa: E501 + + :param id: The id of this CreateUpdateCategory. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this CreateUpdateCategory. # noqa: E501 + + **Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501 + + :return: The name of this CreateUpdateCategory. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateUpdateCategory. + + **Mandatory in case of creation**. Name of the Category, as displayed in the shop # noqa: E501 + + :param name: The name of this CreateUpdateCategory. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this CreateUpdateCategory. # noqa: E501 + + URL to the category # noqa: E501 + + :return: The url of this CreateUpdateCategory. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateUpdateCategory. + + URL to the category # noqa: E501 + + :param url: The url of this CreateUpdateCategory. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def update_enabled(self): + """Gets the update_enabled of this CreateUpdateCategory. # noqa: E501 + + Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501 + + :return: The update_enabled of this CreateUpdateCategory. # noqa: E501 + :rtype: bool + """ + return self._update_enabled + + @update_enabled.setter + def update_enabled(self, update_enabled): + """Sets the update_enabled of this CreateUpdateCategory. + + Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501 + + :param update_enabled: The update_enabled of this CreateUpdateCategory. # noqa: E501 + :type: bool + """ + + self._update_enabled = update_enabled + + @property + def deleted_at(self): + """Gets the deleted_at of this CreateUpdateCategory. # noqa: E501 + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501 + + :return: The deleted_at of this CreateUpdateCategory. # noqa: E501 + :rtype: str + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this CreateUpdateCategory. + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the category deleted from the shop's database # noqa: E501 + + :param deleted_at: The deleted_at of this CreateUpdateCategory. # noqa: E501 + :type: str + """ + + self._deleted_at = deleted_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateCategory, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateCategory): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_product.py b/sib_api_v3_sdk/models/create_update_product.py new file mode 100644 index 0000000..de75d9d --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_product.py @@ -0,0 +1,399 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateProduct(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'image_url': 'str', + 'sku': 'str', + 'price': 'float', + 'categories': 'list[str]', + 'parent_id': 'str', + 'meta_info': 'dict(str, str)', + 'update_enabled': 'bool', + 'deleted_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'image_url': 'imageUrl', + 'sku': 'sku', + 'price': 'price', + 'categories': 'categories', + 'parent_id': 'parentId', + 'meta_info': 'metaInfo', + 'update_enabled': 'updateEnabled', + 'deleted_at': 'deletedAt' + } + + def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, update_enabled=False, deleted_at=None): # noqa: E501 + """CreateUpdateProduct - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._image_url = None + self._sku = None + self._price = None + self._categories = None + self._parent_id = None + self._meta_info = None + self._update_enabled = None + self._deleted_at = None + self.discriminator = None + + self.id = id + self.name = name + if url is not None: + self.url = url + if image_url is not None: + self.image_url = image_url + if sku is not None: + self.sku = sku + if price is not None: + self.price = price + if categories is not None: + self.categories = categories + if parent_id is not None: + self.parent_id = parent_id + if meta_info is not None: + self.meta_info = meta_info + if update_enabled is not None: + self.update_enabled = update_enabled + if deleted_at is not None: + self.deleted_at = deleted_at + + @property + def id(self): + """Gets the id of this CreateUpdateProduct. # noqa: E501 + + Product ID for which you requested the details # noqa: E501 + + :return: The id of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateUpdateProduct. + + Product ID for which you requested the details # noqa: E501 + + :param id: The id of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this CreateUpdateProduct. # noqa: E501 + + Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501 + + :return: The name of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateUpdateProduct. + + Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501 + + :param name: The name of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this CreateUpdateProduct. # noqa: E501 + + URL to the product # noqa: E501 + + :return: The url of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateUpdateProduct. + + URL to the product # noqa: E501 + + :param url: The url of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def image_url(self): + """Gets the image_url of this CreateUpdateProduct. # noqa: E501 + + Absolute URL to the cover image of the product # noqa: E501 + + :return: The image_url of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this CreateUpdateProduct. + + Absolute URL to the cover image of the product # noqa: E501 + + :param image_url: The image_url of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + + self._image_url = image_url + + @property + def sku(self): + """Gets the sku of this CreateUpdateProduct. # noqa: E501 + + Product identifier from the shop # noqa: E501 + + :return: The sku of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """Sets the sku of this CreateUpdateProduct. + + Product identifier from the shop # noqa: E501 + + :param sku: The sku of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + + self._sku = sku + + @property + def price(self): + """Gets the price of this CreateUpdateProduct. # noqa: E501 + + Price of the product # noqa: E501 + + :return: The price of this CreateUpdateProduct. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this CreateUpdateProduct. + + Price of the product # noqa: E501 + + :param price: The price of this CreateUpdateProduct. # noqa: E501 + :type: float + """ + + self._price = price + + @property + def categories(self): + """Gets the categories of this CreateUpdateProduct. # noqa: E501 + + Category ID-s of the product # noqa: E501 + + :return: The categories of this CreateUpdateProduct. # noqa: E501 + :rtype: list[str] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this CreateUpdateProduct. + + Category ID-s of the product # noqa: E501 + + :param categories: The categories of this CreateUpdateProduct. # noqa: E501 + :type: list[str] + """ + + self._categories = categories + + @property + def parent_id(self): + """Gets the parent_id of this CreateUpdateProduct. # noqa: E501 + + Parent product id of the product # noqa: E501 + + :return: The parent_id of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CreateUpdateProduct. + + Parent product id of the product # noqa: E501 + + :param parent_id: The parent_id of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + + self._parent_id = parent_id + + @property + def meta_info(self): + """Gets the meta_info of this CreateUpdateProduct. # noqa: E501 + + Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501 + + :return: The meta_info of this CreateUpdateProduct. # noqa: E501 + :rtype: dict(str, str) + """ + return self._meta_info + + @meta_info.setter + def meta_info(self, meta_info): + """Sets the meta_info of this CreateUpdateProduct. + + Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501 + + :param meta_info: The meta_info of this CreateUpdateProduct. # noqa: E501 + :type: dict(str, str) + """ + + self._meta_info = meta_info + + @property + def update_enabled(self): + """Gets the update_enabled of this CreateUpdateProduct. # noqa: E501 + + Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501 + + :return: The update_enabled of this CreateUpdateProduct. # noqa: E501 + :rtype: bool + """ + return self._update_enabled + + @update_enabled.setter + def update_enabled(self, update_enabled): + """Sets the update_enabled of this CreateUpdateProduct. + + Facilitate to update the existing category in the same request (updateEnabled = true) # noqa: E501 + + :param update_enabled: The update_enabled of this CreateUpdateProduct. # noqa: E501 + :type: bool + """ + + self._update_enabled = update_enabled + + @property + def deleted_at(self): + """Gets the deleted_at of this CreateUpdateProduct. # noqa: E501 + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501 + + :return: The deleted_at of this CreateUpdateProduct. # noqa: E501 + :rtype: str + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this CreateUpdateProduct. + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501 + + :param deleted_at: The deleted_at of this CreateUpdateProduct. # noqa: E501 + :type: str + """ + + self._deleted_at = deleted_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateProduct, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateProduct): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/create_update_products.py b/sib_api_v3_sdk/models/create_update_products.py new file mode 100644 index 0000000..45385de --- /dev/null +++ b/sib_api_v3_sdk/models/create_update_products.py @@ -0,0 +1,371 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreateUpdateProducts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'image_url': 'str', + 'sku': 'str', + 'price': 'float', + 'categories': 'list[str]', + 'parent_id': 'str', + 'meta_info': 'dict(str, str)', + 'deleted_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'image_url': 'imageUrl', + 'sku': 'sku', + 'price': 'price', + 'categories': 'categories', + 'parent_id': 'parentId', + 'meta_info': 'metaInfo', + 'deleted_at': 'deletedAt' + } + + def __init__(self, id=None, name=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, meta_info=None, deleted_at=None): # noqa: E501 + """CreateUpdateProducts - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._image_url = None + self._sku = None + self._price = None + self._categories = None + self._parent_id = None + self._meta_info = None + self._deleted_at = None + self.discriminator = None + + self.id = id + self.name = name + if url is not None: + self.url = url + if image_url is not None: + self.image_url = image_url + if sku is not None: + self.sku = sku + if price is not None: + self.price = price + if categories is not None: + self.categories = categories + if parent_id is not None: + self.parent_id = parent_id + if meta_info is not None: + self.meta_info = meta_info + if deleted_at is not None: + self.deleted_at = deleted_at + + @property + def id(self): + """Gets the id of this CreateUpdateProducts. # noqa: E501 + + Product ID for which you requested the details # noqa: E501 + + :return: The id of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this CreateUpdateProducts. + + Product ID for which you requested the details # noqa: E501 + + :param id: The id of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this CreateUpdateProducts. # noqa: E501 + + Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501 + + :return: The name of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this CreateUpdateProducts. + + Mandatory in case of creation**. Name of the product for which you requested the details # noqa: E501 + + :param name: The name of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this CreateUpdateProducts. # noqa: E501 + + URL to the product # noqa: E501 + + :return: The url of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this CreateUpdateProducts. + + URL to the product # noqa: E501 + + :param url: The url of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def image_url(self): + """Gets the image_url of this CreateUpdateProducts. # noqa: E501 + + Absolute URL to the cover image of the product # noqa: E501 + + :return: The image_url of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this CreateUpdateProducts. + + Absolute URL to the cover image of the product # noqa: E501 + + :param image_url: The image_url of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + + self._image_url = image_url + + @property + def sku(self): + """Gets the sku of this CreateUpdateProducts. # noqa: E501 + + Product identifier from the shop # noqa: E501 + + :return: The sku of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """Sets the sku of this CreateUpdateProducts. + + Product identifier from the shop # noqa: E501 + + :param sku: The sku of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + + self._sku = sku + + @property + def price(self): + """Gets the price of this CreateUpdateProducts. # noqa: E501 + + Price of the product # noqa: E501 + + :return: The price of this CreateUpdateProducts. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this CreateUpdateProducts. + + Price of the product # noqa: E501 + + :param price: The price of this CreateUpdateProducts. # noqa: E501 + :type: float + """ + + self._price = price + + @property + def categories(self): + """Gets the categories of this CreateUpdateProducts. # noqa: E501 + + Category ID-s of the product # noqa: E501 + + :return: The categories of this CreateUpdateProducts. # noqa: E501 + :rtype: list[str] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this CreateUpdateProducts. + + Category ID-s of the product # noqa: E501 + + :param categories: The categories of this CreateUpdateProducts. # noqa: E501 + :type: list[str] + """ + + self._categories = categories + + @property + def parent_id(self): + """Gets the parent_id of this CreateUpdateProducts. # noqa: E501 + + Parent product id of the product # noqa: E501 + + :return: The parent_id of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this CreateUpdateProducts. + + Parent product id of the product # noqa: E501 + + :param parent_id: The parent_id of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + + self._parent_id = parent_id + + @property + def meta_info(self): + """Gets the meta_info of this CreateUpdateProducts. # noqa: E501 + + Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501 + + :return: The meta_info of this CreateUpdateProducts. # noqa: E501 + :rtype: dict(str, str) + """ + return self._meta_info + + @meta_info.setter + def meta_info(self, meta_info): + """Sets the meta_info of this CreateUpdateProducts. + + Meta data of product such as description, vendor, producer, stock level. The size of cumulative metaInfo shall not exceed **1000 KB**. Maximum length of metaInfo object can be 10. # noqa: E501 + + :param meta_info: The meta_info of this CreateUpdateProducts. # noqa: E501 + :type: dict(str, str) + """ + + self._meta_info = meta_info + + @property + def deleted_at(self): + """Gets the deleted_at of this CreateUpdateProducts. # noqa: E501 + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501 + + :return: The deleted_at of this CreateUpdateProducts. # noqa: E501 + :rtype: str + """ + return self._deleted_at + + @deleted_at.setter + def deleted_at(self, deleted_at): + """Sets the deleted_at of this CreateUpdateProducts. + + UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) of the product deleted from the shop's database # noqa: E501 + + :param deleted_at: The deleted_at of this CreateUpdateProducts. # noqa: E501 + :type: str + """ + + self._deleted_at = deleted_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreateUpdateProducts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreateUpdateProducts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/created_batch_id.py b/sib_api_v3_sdk/models/created_batch_id.py new file mode 100644 index 0000000..6b85bff --- /dev/null +++ b/sib_api_v3_sdk/models/created_batch_id.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class CreatedBatchId(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'batch_id': 'float' + } + + attribute_map = { + 'batch_id': 'batchId' + } + + def __init__(self, batch_id=None): # noqa: E501 + """CreatedBatchId - a model defined in Swagger""" # noqa: E501 + + self._batch_id = None + self.discriminator = None + + self.batch_id = batch_id + + @property + def batch_id(self): + """Gets the batch_id of this CreatedBatchId. # noqa: E501 + + Batch ID of the request # noqa: E501 + + :return: The batch_id of this CreatedBatchId. # noqa: E501 + :rtype: float + """ + return self._batch_id + + @batch_id.setter + def batch_id(self, batch_id): + """Sets the batch_id of this CreatedBatchId. + + Batch ID of the request # noqa: E501 + + :param batch_id: The batch_id of this CreatedBatchId. # noqa: E501 + :type: float + """ + if batch_id is None: + raise ValueError("Invalid value for `batch_id`, must not be `None`") # noqa: E501 + + self._batch_id = batch_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(CreatedBatchId, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, CreatedBatchId): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/deal.py b/sib_api_v3_sdk/models/deal.py new file mode 100644 index 0000000..c670da8 --- /dev/null +++ b/sib_api_v3_sdk/models/deal.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Deal(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'attributes': 'object', + 'linked_contacts_ids': 'list[int]', + 'linked_companies_ids': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'attributes': 'attributes', + 'linked_contacts_ids': 'linkedContactsIds', + 'linked_companies_ids': 'linkedCompaniesIds' + } + + def __init__(self, id=None, attributes=None, linked_contacts_ids=None, linked_companies_ids=None): # noqa: E501 + """Deal - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._attributes = None + self._linked_contacts_ids = None + self._linked_companies_ids = None + self.discriminator = None + + if id is not None: + self.id = id + if attributes is not None: + self.attributes = attributes + if linked_contacts_ids is not None: + self.linked_contacts_ids = linked_contacts_ids + if linked_companies_ids is not None: + self.linked_companies_ids = linked_companies_ids + + @property + def id(self): + """Gets the id of this Deal. # noqa: E501 + + Unique deal id # noqa: E501 + + :return: The id of this Deal. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Deal. + + Unique deal id # noqa: E501 + + :param id: The id of this Deal. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def attributes(self): + """Gets the attributes of this Deal. # noqa: E501 + + Deal attributes with values # noqa: E501 + + :return: The attributes of this Deal. # noqa: E501 + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Deal. + + Deal attributes with values # noqa: E501 + + :param attributes: The attributes of this Deal. # noqa: E501 + :type: object + """ + + self._attributes = attributes + + @property + def linked_contacts_ids(self): + """Gets the linked_contacts_ids of this Deal. # noqa: E501 + + Contact ids for contacts linked to this deal # noqa: E501 + + :return: The linked_contacts_ids of this Deal. # noqa: E501 + :rtype: list[int] + """ + return self._linked_contacts_ids + + @linked_contacts_ids.setter + def linked_contacts_ids(self, linked_contacts_ids): + """Sets the linked_contacts_ids of this Deal. + + Contact ids for contacts linked to this deal # noqa: E501 + + :param linked_contacts_ids: The linked_contacts_ids of this Deal. # noqa: E501 + :type: list[int] + """ + + self._linked_contacts_ids = linked_contacts_ids + + @property + def linked_companies_ids(self): + """Gets the linked_companies_ids of this Deal. # noqa: E501 + + Companies ids for companies linked to this deal # noqa: E501 + + :return: The linked_companies_ids of this Deal. # noqa: E501 + :rtype: list[str] + """ + return self._linked_companies_ids + + @linked_companies_ids.setter + def linked_companies_ids(self, linked_companies_ids): + """Sets the linked_companies_ids of this Deal. + + Companies ids for companies linked to this deal # noqa: E501 + + :param linked_companies_ids: The linked_companies_ids of this Deal. # noqa: E501 + :type: list[str] + """ + + self._linked_companies_ids = linked_companies_ids + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Deal, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Deal): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/deal_attributes.py b/sib_api_v3_sdk/models/deal_attributes.py new file mode 100644 index 0000000..0f79445 --- /dev/null +++ b/sib_api_v3_sdk/models/deal_attributes.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DealAttributes(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """DealAttributes - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DealAttributes, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DealAttributes): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/deal_attributes_inner.py b/sib_api_v3_sdk/models/deal_attributes_inner.py new file mode 100644 index 0000000..d2d1c41 --- /dev/null +++ b/sib_api_v3_sdk/models/deal_attributes_inner.py @@ -0,0 +1,219 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DealAttributesInner(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'internal_name': 'str', + 'label': 'str', + 'attribute_type_name': 'str', + 'attribute_options': 'list[object]', + 'is_required': 'bool' + } + + attribute_map = { + 'internal_name': 'internalName', + 'label': 'label', + 'attribute_type_name': 'attributeTypeName', + 'attribute_options': 'attributeOptions', + 'is_required': 'isRequired' + } + + def __init__(self, internal_name=None, label=None, attribute_type_name=None, attribute_options=None, is_required=None): # noqa: E501 + """DealAttributesInner - a model defined in Swagger""" # noqa: E501 + + self._internal_name = None + self._label = None + self._attribute_type_name = None + self._attribute_options = None + self._is_required = None + self.discriminator = None + + if internal_name is not None: + self.internal_name = internal_name + if label is not None: + self.label = label + if attribute_type_name is not None: + self.attribute_type_name = attribute_type_name + if attribute_options is not None: + self.attribute_options = attribute_options + if is_required is not None: + self.is_required = is_required + + @property + def internal_name(self): + """Gets the internal_name of this DealAttributesInner. # noqa: E501 + + + :return: The internal_name of this DealAttributesInner. # noqa: E501 + :rtype: str + """ + return self._internal_name + + @internal_name.setter + def internal_name(self, internal_name): + """Sets the internal_name of this DealAttributesInner. + + + :param internal_name: The internal_name of this DealAttributesInner. # noqa: E501 + :type: str + """ + + self._internal_name = internal_name + + @property + def label(self): + """Gets the label of this DealAttributesInner. # noqa: E501 + + + :return: The label of this DealAttributesInner. # noqa: E501 + :rtype: str + """ + return self._label + + @label.setter + def label(self, label): + """Sets the label of this DealAttributesInner. + + + :param label: The label of this DealAttributesInner. # noqa: E501 + :type: str + """ + + self._label = label + + @property + def attribute_type_name(self): + """Gets the attribute_type_name of this DealAttributesInner. # noqa: E501 + + + :return: The attribute_type_name of this DealAttributesInner. # noqa: E501 + :rtype: str + """ + return self._attribute_type_name + + @attribute_type_name.setter + def attribute_type_name(self, attribute_type_name): + """Sets the attribute_type_name of this DealAttributesInner. + + + :param attribute_type_name: The attribute_type_name of this DealAttributesInner. # noqa: E501 + :type: str + """ + + self._attribute_type_name = attribute_type_name + + @property + def attribute_options(self): + """Gets the attribute_options of this DealAttributesInner. # noqa: E501 + + + :return: The attribute_options of this DealAttributesInner. # noqa: E501 + :rtype: list[object] + """ + return self._attribute_options + + @attribute_options.setter + def attribute_options(self, attribute_options): + """Sets the attribute_options of this DealAttributesInner. + + + :param attribute_options: The attribute_options of this DealAttributesInner. # noqa: E501 + :type: list[object] + """ + + self._attribute_options = attribute_options + + @property + def is_required(self): + """Gets the is_required of this DealAttributesInner. # noqa: E501 + + + :return: The is_required of this DealAttributesInner. # noqa: E501 + :rtype: bool + """ + return self._is_required + + @is_required.setter + def is_required(self, is_required): + """Sets the is_required of this DealAttributesInner. + + + :param is_required: The is_required of this DealAttributesInner. # noqa: E501 + :type: bool + """ + + self._is_required = is_required + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DealAttributesInner, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DealAttributesInner): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/deals_list.py b/sib_api_v3_sdk/models/deals_list.py new file mode 100644 index 0000000..704e6b6 --- /dev/null +++ b/sib_api_v3_sdk/models/deals_list.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class DealsList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'items': 'list[Deal]' + } + + attribute_map = { + 'items': 'items' + } + + def __init__(self, items=None): # noqa: E501 + """DealsList - a model defined in Swagger""" # noqa: E501 + + self._items = None + self.discriminator = None + + if items is not None: + self.items = items + + @property + def items(self): + """Gets the items of this DealsList. # noqa: E501 + + List of deals # noqa: E501 + + :return: The items of this DealsList. # noqa: E501 + :rtype: list[Deal] + """ + return self._items + + @items.setter + def items(self, items): + """Sets the items of this DealsList. + + List of deals # noqa: E501 + + :param items: The items of this DealsList. # noqa: E501 + :type: list[Deal] + """ + + self._items = items + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(DealsList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, DealsList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/file_data.py b/sib_api_v3_sdk/models/file_data.py index ee9d535..957a9e0 100644 --- a/sib_api_v3_sdk/models/file_data.py +++ b/sib_api_v3_sdk/models/file_data.py @@ -31,112 +31,51 @@ class FileData(object): and the value is json key in definition. """ swagger_types = { - 'url': 'str', - 'id': 'str', 'name': 'str', 'author_id': 'str', - 'author': 'object', 'contact_id': 'int', - 'deal_ids': 'list[str]', + 'deal_id': 'str', + 'company_id': 'str', 'size': 'int', - 'created_at': 'datetime', - 'updated_at': 'datetime' + 'created_at': 'datetime' } attribute_map = { - 'url': 'url', - 'id': 'id', 'name': 'name', 'author_id': 'authorId', - 'author': 'author', 'contact_id': 'contactId', - 'deal_ids': 'dealIds', + 'deal_id': 'dealId', + 'company_id': 'companyId', 'size': 'size', - 'created_at': 'createdAt', - 'updated_at': 'updatedAt' + 'created_at': 'createdAt' } - def __init__(self, url=None, id=None, name=None, author_id=None, author=None, contact_id=None, deal_ids=None, size=None, created_at=None, updated_at=None): # noqa: E501 + def __init__(self, name=None, author_id=None, contact_id=None, deal_id=None, company_id=None, size=None, created_at=None): # noqa: E501 """FileData - a model defined in Swagger""" # noqa: E501 - self._url = None - self._id = None self._name = None self._author_id = None - self._author = None self._contact_id = None - self._deal_ids = None + self._deal_id = None + self._company_id = None self._size = None self._created_at = None - self._updated_at = None self.discriminator = None - if url is not None: - self.url = url - if id is not None: - self.id = id if name is not None: self.name = name if author_id is not None: self.author_id = author_id - if author is not None: - self.author = author if contact_id is not None: self.contact_id = contact_id - if deal_ids is not None: - self.deal_ids = deal_ids + if deal_id is not None: + self.deal_id = deal_id + if company_id is not None: + self.company_id = company_id if size is not None: self.size = size if created_at is not None: self.created_at = created_at - if updated_at is not None: - self.updated_at = updated_at - - @property - def url(self): - """Gets the url of this FileData. # noqa: E501 - - Url of uploaded file # noqa: E501 - - :return: The url of this FileData. # noqa: E501 - :rtype: str - """ - return self._url - - @url.setter - def url(self, url): - """Sets the url of this FileData. - - Url of uploaded file # noqa: E501 - - :param url: The url of this FileData. # noqa: E501 - :type: str - """ - - self._url = url - - @property - def id(self): - """Gets the id of this FileData. # noqa: E501 - - Id of uploaded file # noqa: E501 - - :return: The id of this FileData. # noqa: E501 - :rtype: str - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this FileData. - - Id of uploaded file # noqa: E501 - - :param id: The id of this FileData. # noqa: E501 - :type: str - """ - - self._id = id @property def name(self): @@ -184,29 +123,6 @@ def author_id(self, author_id): self._author_id = author_id - @property - def author(self): - """Gets the author of this FileData. # noqa: E501 - - Account details of user which created the file # noqa: E501 - - :return: The author of this FileData. # noqa: E501 - :rtype: object - """ - return self._author - - @author.setter - def author(self, author): - """Sets the author of this FileData. - - Account details of user which created the file # noqa: E501 - - :param author: The author of this FileData. # noqa: E501 - :type: object - """ - - self._author = author - @property def contact_id(self): """Gets the contact_id of this FileData. # noqa: E501 @@ -231,33 +147,56 @@ def contact_id(self, contact_id): self._contact_id = contact_id @property - def deal_ids(self): - """Gets the deal_ids of this FileData. # noqa: E501 + def deal_id(self): + """Gets the deal_id of this FileData. # noqa: E501 + + Deal id linked to a file # noqa: E501 + + :return: The deal_id of this FileData. # noqa: E501 + :rtype: str + """ + return self._deal_id + + @deal_id.setter + def deal_id(self, deal_id): + """Sets the deal_id of this FileData. + + Deal id linked to a file # noqa: E501 + + :param deal_id: The deal_id of this FileData. # noqa: E501 + :type: str + """ + + self._deal_id = deal_id + + @property + def company_id(self): + """Gets the company_id of this FileData. # noqa: E501 - Deal ids linked to a file # noqa: E501 + Company id linked to a file # noqa: E501 - :return: The deal_ids of this FileData. # noqa: E501 - :rtype: list[str] + :return: The company_id of this FileData. # noqa: E501 + :rtype: str """ - return self._deal_ids + return self._company_id - @deal_ids.setter - def deal_ids(self, deal_ids): - """Sets the deal_ids of this FileData. + @company_id.setter + def company_id(self, company_id): + """Sets the company_id of this FileData. - Deal ids linked to a file # noqa: E501 + Company id linked to a file # noqa: E501 - :param deal_ids: The deal_ids of this FileData. # noqa: E501 - :type: list[str] + :param company_id: The company_id of this FileData. # noqa: E501 + :type: str """ - self._deal_ids = deal_ids + self._company_id = company_id @property def size(self): """Gets the size of this FileData. # noqa: E501 - Size of file uploaded # noqa: E501 + Size of file in bytes # noqa: E501 :return: The size of this FileData. # noqa: E501 :rtype: int @@ -268,7 +207,7 @@ def size(self): def size(self, size): """Sets the size of this FileData. - Size of file uploaded # noqa: E501 + Size of file in bytes # noqa: E501 :param size: The size of this FileData. # noqa: E501 :type: int @@ -299,29 +238,6 @@ def created_at(self, created_at): self._created_at = created_at - @property - def updated_at(self): - """Gets the updated_at of this FileData. # noqa: E501 - - File updated date/time # noqa: E501 - - :return: The updated_at of this FileData. # noqa: E501 - :rtype: datetime - """ - return self._updated_at - - @updated_at.setter - def updated_at(self, updated_at): - """Sets the updated_at of this FileData. - - File updated date/time # noqa: E501 - - :param updated_at: The updated_at of this FileData. # noqa: E501 - :type: datetime - """ - - self._updated_at = updated_at - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/file_downloadable_link.py b/sib_api_v3_sdk/models/file_downloadable_link.py new file mode 100644 index 0000000..3116863 --- /dev/null +++ b/sib_api_v3_sdk/models/file_downloadable_link.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FileDownloadableLink(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'file_url': 'str' + } + + attribute_map = { + 'file_url': 'fileUrl' + } + + def __init__(self, file_url=None): # noqa: E501 + """FileDownloadableLink - a model defined in Swagger""" # noqa: E501 + + self._file_url = None + self.discriminator = None + + self.file_url = file_url + + @property + def file_url(self): + """Gets the file_url of this FileDownloadableLink. # noqa: E501 + + A unique link to download the requested file. # noqa: E501 + + :return: The file_url of this FileDownloadableLink. # noqa: E501 + :rtype: str + """ + return self._file_url + + @file_url.setter + def file_url(self, file_url): + """Sets the file_url of this FileDownloadableLink. + + A unique link to download the requested file. # noqa: E501 + + :param file_url: The file_url of this FileDownloadableLink. # noqa: E501 + :type: str + """ + if file_url is None: + raise ValueError("Invalid value for `file_url`, must not be `None`") # noqa: E501 + + self._file_url = file_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FileDownloadableLink, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FileDownloadableLink): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/file_list.py b/sib_api_v3_sdk/models/file_list.py new file mode 100644 index 0000000..f81fd7a --- /dev/null +++ b/sib_api_v3_sdk/models/file_list.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class FileList(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """FileList - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(FileList, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, FileList): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_all_external_feeds.py b/sib_api_v3_sdk/models/get_all_external_feeds.py new file mode 100644 index 0000000..4fee89a --- /dev/null +++ b/sib_api_v3_sdk/models/get_all_external_feeds.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetAllExternalFeeds(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'count': 'int', + 'feeds': 'list[GetAllExternalFeedsFeeds]' + } + + attribute_map = { + 'count': 'count', + 'feeds': 'feeds' + } + + def __init__(self, count=None, feeds=None): # noqa: E501 + """GetAllExternalFeeds - a model defined in Swagger""" # noqa: E501 + + self._count = None + self._feeds = None + self.discriminator = None + + if count is not None: + self.count = count + if feeds is not None: + self.feeds = feeds + + @property + def count(self): + """Gets the count of this GetAllExternalFeeds. # noqa: E501 + + Total number of batches # noqa: E501 + + :return: The count of this GetAllExternalFeeds. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetAllExternalFeeds. + + Total number of batches # noqa: E501 + + :param count: The count of this GetAllExternalFeeds. # noqa: E501 + :type: int + """ + + self._count = count + + @property + def feeds(self): + """Gets the feeds of this GetAllExternalFeeds. # noqa: E501 + + + :return: The feeds of this GetAllExternalFeeds. # noqa: E501 + :rtype: list[GetAllExternalFeedsFeeds] + """ + return self._feeds + + @feeds.setter + def feeds(self, feeds): + """Sets the feeds of this GetAllExternalFeeds. + + + :param feeds: The feeds of this GetAllExternalFeeds. # noqa: E501 + :type: list[GetAllExternalFeedsFeeds] + """ + + self._feeds = feeds + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetAllExternalFeeds, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetAllExternalFeeds): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_all_external_feeds_feeds.py b/sib_api_v3_sdk/models/get_all_external_feeds_feeds.py new file mode 100644 index 0000000..de2eb93 --- /dev/null +++ b/sib_api_v3_sdk/models/get_all_external_feeds_feeds.py @@ -0,0 +1,444 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetAllExternalFeedsFeeds(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'auth_type': 'str', + 'username': 'str', + 'password': 'str', + 'token': 'str', + 'headers': 'list[GetExternalFeedByUUIDHeaders]', + 'max_retries': 'int', + 'cache': 'bool', + 'created_at': 'datetime', + 'modified_at': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'auth_type': 'authType', + 'username': 'username', + 'password': 'password', + 'token': 'token', + 'headers': 'headers', + 'max_retries': 'maxRetries', + 'cache': 'cache', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt' + } + + def __init__(self, id=None, name=None, url=None, auth_type=None, username=None, password=None, token=None, headers=None, max_retries=None, cache=None, created_at=None, modified_at=None): # noqa: E501 + """GetAllExternalFeedsFeeds - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._auth_type = None + self._username = None + self._password = None + self._token = None + self._headers = None + self._max_retries = None + self._cache = None + self._created_at = None + self._modified_at = None + self.discriminator = None + + self.id = id + self.name = name + self.url = url + self.auth_type = auth_type + if username is not None: + self.username = username + if password is not None: + self.password = password + if token is not None: + self.token = token + self.headers = headers + self.max_retries = max_retries + self.cache = cache + self.created_at = created_at + self.modified_at = modified_at + + @property + def id(self): + """Gets the id of this GetAllExternalFeedsFeeds. # noqa: E501 + + ID of the feed # noqa: E501 + + :return: The id of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetAllExternalFeedsFeeds. + + ID of the feed # noqa: E501 + + :param id: The id of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GetAllExternalFeedsFeeds. # noqa: E501 + + Name of the feed # noqa: E501 + + :return: The name of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetAllExternalFeedsFeeds. + + Name of the feed # noqa: E501 + + :param name: The name of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this GetAllExternalFeedsFeeds. # noqa: E501 + + URL of the feed # noqa: E501 + + :return: The url of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetAllExternalFeedsFeeds. + + URL of the feed # noqa: E501 + + :param url: The url of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + @property + def auth_type(self): + """Gets the auth_type of this GetAllExternalFeedsFeeds. # noqa: E501 + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :return: The auth_type of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this GetAllExternalFeedsFeeds. + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :param auth_type: The auth_type of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + if auth_type is None: + raise ValueError("Invalid value for `auth_type`, must not be `None`") # noqa: E501 + allowed_values = ["basic", "token", "noAuth"] # noqa: E501 + if auth_type not in allowed_values: + raise ValueError( + "Invalid value for `auth_type` ({0}), must be one of {1}" # noqa: E501 + .format(auth_type, allowed_values) + ) + + self._auth_type = auth_type + + @property + def username(self): + """Gets the username of this GetAllExternalFeedsFeeds. # noqa: E501 + + Username for authType `basic` # noqa: E501 + + :return: The username of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this GetAllExternalFeedsFeeds. + + Username for authType `basic` # noqa: E501 + + :param username: The username of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this GetAllExternalFeedsFeeds. # noqa: E501 + + Password for authType `basic` # noqa: E501 + + :return: The password of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this GetAllExternalFeedsFeeds. + + Password for authType `basic` # noqa: E501 + + :param password: The password of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def token(self): + """Gets the token of this GetAllExternalFeedsFeeds. # noqa: E501 + + Token for authType `token` # noqa: E501 + + :return: The token of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this GetAllExternalFeedsFeeds. + + Token for authType `token` # noqa: E501 + + :param token: The token of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def headers(self): + """Gets the headers of this GetAllExternalFeedsFeeds. # noqa: E501 + + Custom headers for the feed # noqa: E501 + + :return: The headers of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: list[GetExternalFeedByUUIDHeaders] + """ + return self._headers + + @headers.setter + def headers(self, headers): + """Sets the headers of this GetAllExternalFeedsFeeds. + + Custom headers for the feed # noqa: E501 + + :param headers: The headers of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: list[GetExternalFeedByUUIDHeaders] + """ + if headers is None: + raise ValueError("Invalid value for `headers`, must not be `None`") # noqa: E501 + + self._headers = headers + + @property + def max_retries(self): + """Gets the max_retries of this GetAllExternalFeedsFeeds. # noqa: E501 + + Maximum number of retries on the feed url # noqa: E501 + + :return: The max_retries of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: int + """ + return self._max_retries + + @max_retries.setter + def max_retries(self, max_retries): + """Sets the max_retries of this GetAllExternalFeedsFeeds. + + Maximum number of retries on the feed url # noqa: E501 + + :param max_retries: The max_retries of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: int + """ + if max_retries is None: + raise ValueError("Invalid value for `max_retries`, must not be `None`") # noqa: E501 + if max_retries is not None and max_retries > 5: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value less than or equal to `5`") # noqa: E501 + if max_retries is not None and max_retries < 0: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value greater than or equal to `0`") # noqa: E501 + + self._max_retries = max_retries + + @property + def cache(self): + """Gets the cache of this GetAllExternalFeedsFeeds. # noqa: E501 + + Toggle caching of feed url response # noqa: E501 + + :return: The cache of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: bool + """ + return self._cache + + @cache.setter + def cache(self, cache): + """Sets the cache of this GetAllExternalFeedsFeeds. + + Toggle caching of feed url response # noqa: E501 + + :param cache: The cache of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: bool + """ + if cache is None: + raise ValueError("Invalid value for `cache`, must not be `None`") # noqa: E501 + + self._cache = cache + + @property + def created_at(self): + """Gets the created_at of this GetAllExternalFeedsFeeds. # noqa: E501 + + Datetime on which the feed was created # noqa: E501 + + :return: The created_at of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetAllExternalFeedsFeeds. + + Datetime on which the feed was created # noqa: E501 + + :param created_at: The created_at of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: datetime + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetAllExternalFeedsFeeds. # noqa: E501 + + Datetime on which the feed was modified # noqa: E501 + + :return: The modified_at of this GetAllExternalFeedsFeeds. # noqa: E501 + :rtype: datetime + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetAllExternalFeedsFeeds. + + Datetime on which the feed was modified # noqa: E501 + + :param modified_at: The modified_at of this GetAllExternalFeedsFeeds. # noqa: E501 + :type: datetime + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetAllExternalFeedsFeeds, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetAllExternalFeedsFeeds): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_categories.py b/sib_api_v3_sdk/models/get_categories.py new file mode 100644 index 0000000..86ee39a --- /dev/null +++ b/sib_api_v3_sdk/models/get_categories.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetCategories(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'categories': 'list[object]', + 'count': 'int' + } + + attribute_map = { + 'categories': 'categories', + 'count': 'count' + } + + def __init__(self, categories=None, count=None): # noqa: E501 + """GetCategories - a model defined in Swagger""" # noqa: E501 + + self._categories = None + self._count = None + self.discriminator = None + + self.categories = categories + self.count = count + + @property + def categories(self): + """Gets the categories of this GetCategories. # noqa: E501 + + + :return: The categories of this GetCategories. # noqa: E501 + :rtype: list[object] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this GetCategories. + + + :param categories: The categories of this GetCategories. # noqa: E501 + :type: list[object] + """ + if categories is None: + raise ValueError("Invalid value for `categories`, must not be `None`") # noqa: E501 + + self._categories = categories + + @property + def count(self): + """Gets the count of this GetCategories. # noqa: E501 + + Number of categories # noqa: E501 + + :return: The count of this GetCategories. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetCategories. + + Number of categories # noqa: E501 + + :param count: The count of this GetCategories. # noqa: E501 + :type: int + """ + if count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetCategories, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetCategories): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_category_details.py b/sib_api_v3_sdk/models/get_category_details.py new file mode 100644 index 0000000..582c17a --- /dev/null +++ b/sib_api_v3_sdk/models/get_category_details.py @@ -0,0 +1,261 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetCategoryDetails(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'created_at': 'str', + 'modified_at': 'str', + 'url': 'str', + 'is_deleted': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt', + 'url': 'url', + 'is_deleted': 'isDeleted' + } + + def __init__(self, id=None, name=None, created_at=None, modified_at=None, url=None, is_deleted=None): # noqa: E501 + """GetCategoryDetails - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._created_at = None + self._modified_at = None + self._url = None + self._is_deleted = None + self.discriminator = None + + self.id = id + self.name = name + self.created_at = created_at + self.modified_at = modified_at + if url is not None: + self.url = url + if is_deleted is not None: + self.is_deleted = is_deleted + + @property + def id(self): + """Gets the id of this GetCategoryDetails. # noqa: E501 + + Category ID for which you requested the details # noqa: E501 + + :return: The id of this GetCategoryDetails. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetCategoryDetails. + + Category ID for which you requested the details # noqa: E501 + + :param id: The id of this GetCategoryDetails. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GetCategoryDetails. # noqa: E501 + + Name of the category for which you requested the details # noqa: E501 + + :return: The name of this GetCategoryDetails. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetCategoryDetails. + + Name of the category for which you requested the details # noqa: E501 + + :param name: The name of this GetCategoryDetails. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def created_at(self): + """Gets the created_at of this GetCategoryDetails. # noqa: E501 + + Creation UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The created_at of this GetCategoryDetails. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetCategoryDetails. + + Creation UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param created_at: The created_at of this GetCategoryDetails. # noqa: E501 + :type: str + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetCategoryDetails. # noqa: E501 + + Last modification UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The modified_at of this GetCategoryDetails. # noqa: E501 + :rtype: str + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetCategoryDetails. + + Last modification UTC date-time of the category (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param modified_at: The modified_at of this GetCategoryDetails. # noqa: E501 + :type: str + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + @property + def url(self): + """Gets the url of this GetCategoryDetails. # noqa: E501 + + URL to the category # noqa: E501 + + :return: The url of this GetCategoryDetails. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetCategoryDetails. + + URL to the category # noqa: E501 + + :param url: The url of this GetCategoryDetails. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def is_deleted(self): + """Gets the is_deleted of this GetCategoryDetails. # noqa: E501 + + category deleted from the shop's database # noqa: E501 + + :return: The is_deleted of this GetCategoryDetails. # noqa: E501 + :rtype: bool + """ + return self._is_deleted + + @is_deleted.setter + def is_deleted(self, is_deleted): + """Sets the is_deleted of this GetCategoryDetails. + + category deleted from the shop's database # noqa: E501 + + :param is_deleted: The is_deleted of this GetCategoryDetails. # noqa: E501 + :type: bool + """ + + self._is_deleted = is_deleted + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetCategoryDetails, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetCategoryDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_external_feed_by_uuid.py b/sib_api_v3_sdk/models/get_external_feed_by_uuid.py new file mode 100644 index 0000000..1770161 --- /dev/null +++ b/sib_api_v3_sdk/models/get_external_feed_by_uuid.py @@ -0,0 +1,444 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetExternalFeedByUUID(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'url': 'str', + 'auth_type': 'str', + 'username': 'str', + 'password': 'str', + 'token': 'str', + 'headers': 'list[GetExternalFeedByUUIDHeaders]', + 'max_retries': 'int', + 'cache': 'bool', + 'created_at': 'datetime', + 'modified_at': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'url': 'url', + 'auth_type': 'authType', + 'username': 'username', + 'password': 'password', + 'token': 'token', + 'headers': 'headers', + 'max_retries': 'maxRetries', + 'cache': 'cache', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt' + } + + def __init__(self, id=None, name=None, url=None, auth_type=None, username=None, password=None, token=None, headers=None, max_retries=None, cache=None, created_at=None, modified_at=None): # noqa: E501 + """GetExternalFeedByUUID - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._url = None + self._auth_type = None + self._username = None + self._password = None + self._token = None + self._headers = None + self._max_retries = None + self._cache = None + self._created_at = None + self._modified_at = None + self.discriminator = None + + self.id = id + self.name = name + self.url = url + self.auth_type = auth_type + if username is not None: + self.username = username + if password is not None: + self.password = password + if token is not None: + self.token = token + self.headers = headers + self.max_retries = max_retries + self.cache = cache + self.created_at = created_at + self.modified_at = modified_at + + @property + def id(self): + """Gets the id of this GetExternalFeedByUUID. # noqa: E501 + + ID of the feed # noqa: E501 + + :return: The id of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetExternalFeedByUUID. + + ID of the feed # noqa: E501 + + :param id: The id of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GetExternalFeedByUUID. # noqa: E501 + + Name of the feed # noqa: E501 + + :return: The name of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetExternalFeedByUUID. + + Name of the feed # noqa: E501 + + :param name: The name of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def url(self): + """Gets the url of this GetExternalFeedByUUID. # noqa: E501 + + URL of the feed # noqa: E501 + + :return: The url of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetExternalFeedByUUID. + + URL of the feed # noqa: E501 + + :param url: The url of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + @property + def auth_type(self): + """Gets the auth_type of this GetExternalFeedByUUID. # noqa: E501 + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :return: The auth_type of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this GetExternalFeedByUUID. + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :param auth_type: The auth_type of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + if auth_type is None: + raise ValueError("Invalid value for `auth_type`, must not be `None`") # noqa: E501 + allowed_values = ["basic", "token", "noAuth"] # noqa: E501 + if auth_type not in allowed_values: + raise ValueError( + "Invalid value for `auth_type` ({0}), must be one of {1}" # noqa: E501 + .format(auth_type, allowed_values) + ) + + self._auth_type = auth_type + + @property + def username(self): + """Gets the username of this GetExternalFeedByUUID. # noqa: E501 + + Username for authType `basic` # noqa: E501 + + :return: The username of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this GetExternalFeedByUUID. + + Username for authType `basic` # noqa: E501 + + :param username: The username of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this GetExternalFeedByUUID. # noqa: E501 + + Password for authType `basic` # noqa: E501 + + :return: The password of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this GetExternalFeedByUUID. + + Password for authType `basic` # noqa: E501 + + :param password: The password of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def token(self): + """Gets the token of this GetExternalFeedByUUID. # noqa: E501 + + Token for authType `token` # noqa: E501 + + :return: The token of this GetExternalFeedByUUID. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this GetExternalFeedByUUID. + + Token for authType `token` # noqa: E501 + + :param token: The token of this GetExternalFeedByUUID. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def headers(self): + """Gets the headers of this GetExternalFeedByUUID. # noqa: E501 + + Custom headers for the feed # noqa: E501 + + :return: The headers of this GetExternalFeedByUUID. # noqa: E501 + :rtype: list[GetExternalFeedByUUIDHeaders] + """ + return self._headers + + @headers.setter + def headers(self, headers): + """Sets the headers of this GetExternalFeedByUUID. + + Custom headers for the feed # noqa: E501 + + :param headers: The headers of this GetExternalFeedByUUID. # noqa: E501 + :type: list[GetExternalFeedByUUIDHeaders] + """ + if headers is None: + raise ValueError("Invalid value for `headers`, must not be `None`") # noqa: E501 + + self._headers = headers + + @property + def max_retries(self): + """Gets the max_retries of this GetExternalFeedByUUID. # noqa: E501 + + Maximum number of retries on the feed url # noqa: E501 + + :return: The max_retries of this GetExternalFeedByUUID. # noqa: E501 + :rtype: int + """ + return self._max_retries + + @max_retries.setter + def max_retries(self, max_retries): + """Sets the max_retries of this GetExternalFeedByUUID. + + Maximum number of retries on the feed url # noqa: E501 + + :param max_retries: The max_retries of this GetExternalFeedByUUID. # noqa: E501 + :type: int + """ + if max_retries is None: + raise ValueError("Invalid value for `max_retries`, must not be `None`") # noqa: E501 + if max_retries is not None and max_retries > 5: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value less than or equal to `5`") # noqa: E501 + if max_retries is not None and max_retries < 0: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value greater than or equal to `0`") # noqa: E501 + + self._max_retries = max_retries + + @property + def cache(self): + """Gets the cache of this GetExternalFeedByUUID. # noqa: E501 + + Toggle caching of feed url response # noqa: E501 + + :return: The cache of this GetExternalFeedByUUID. # noqa: E501 + :rtype: bool + """ + return self._cache + + @cache.setter + def cache(self, cache): + """Sets the cache of this GetExternalFeedByUUID. + + Toggle caching of feed url response # noqa: E501 + + :param cache: The cache of this GetExternalFeedByUUID. # noqa: E501 + :type: bool + """ + if cache is None: + raise ValueError("Invalid value for `cache`, must not be `None`") # noqa: E501 + + self._cache = cache + + @property + def created_at(self): + """Gets the created_at of this GetExternalFeedByUUID. # noqa: E501 + + Datetime on which the feed was created # noqa: E501 + + :return: The created_at of this GetExternalFeedByUUID. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetExternalFeedByUUID. + + Datetime on which the feed was created # noqa: E501 + + :param created_at: The created_at of this GetExternalFeedByUUID. # noqa: E501 + :type: datetime + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetExternalFeedByUUID. # noqa: E501 + + Datetime on which the feed was modified # noqa: E501 + + :return: The modified_at of this GetExternalFeedByUUID. # noqa: E501 + :rtype: datetime + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetExternalFeedByUUID. + + Datetime on which the feed was modified # noqa: E501 + + :param modified_at: The modified_at of this GetExternalFeedByUUID. # noqa: E501 + :type: datetime + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetExternalFeedByUUID, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetExternalFeedByUUID): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_external_feed_by_uuid_headers.py b/sib_api_v3_sdk/models/get_external_feed_by_uuid_headers.py new file mode 100644 index 0000000..d29b05c --- /dev/null +++ b/sib_api_v3_sdk/models/get_external_feed_by_uuid_headers.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetExternalFeedByUUIDHeaders(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'value': 'str' + } + + attribute_map = { + 'name': 'name', + 'value': 'value' + } + + def __init__(self, name=None, value=None): # noqa: E501 + """GetExternalFeedByUUIDHeaders - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._value = None + self.discriminator = None + + if name is not None: + self.name = name + if value is not None: + self.value = value + + @property + def name(self): + """Gets the name of this GetExternalFeedByUUIDHeaders. # noqa: E501 + + Name of the header # noqa: E501 + + :return: The name of this GetExternalFeedByUUIDHeaders. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetExternalFeedByUUIDHeaders. + + Name of the header # noqa: E501 + + :param name: The name of this GetExternalFeedByUUIDHeaders. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def value(self): + """Gets the value of this GetExternalFeedByUUIDHeaders. # noqa: E501 + + Value of the header # noqa: E501 + + :return: The value of this GetExternalFeedByUUIDHeaders. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this GetExternalFeedByUUIDHeaders. + + Value of the header # noqa: E501 + + :param value: The value of this GetExternalFeedByUUIDHeaders. # noqa: E501 + :type: str + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetExternalFeedByUUIDHeaders, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetExternalFeedByUUIDHeaders): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_product_details.py b/sib_api_v3_sdk/models/get_product_details.py new file mode 100644 index 0000000..c583900 --- /dev/null +++ b/sib_api_v3_sdk/models/get_product_details.py @@ -0,0 +1,515 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetProductDetails(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'created_at': 'str', + 'modified_at': 'str', + 'url': 'str', + 'image_url': 'str', + 'sku': 'str', + 'price': 'float', + 'categories': 'list[str]', + 'parent_id': 'str', + 's3_original': 'str', + 's3_thumb_analytics': 'str', + 'meta_info': 'object', + 's3_thumb_editor': 'str', + 'is_deleted': 'bool' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt', + 'url': 'url', + 'image_url': 'imageUrl', + 'sku': 'sku', + 'price': 'price', + 'categories': 'categories', + 'parent_id': 'parentId', + 's3_original': 's3Original', + 's3_thumb_analytics': 's3ThumbAnalytics', + 'meta_info': 'metaInfo', + 's3_thumb_editor': 's3ThumbEditor', + 'is_deleted': 'isDeleted' + } + + def __init__(self, id=None, name=None, created_at=None, modified_at=None, url=None, image_url=None, sku=None, price=None, categories=None, parent_id=None, s3_original=None, s3_thumb_analytics=None, meta_info=None, s3_thumb_editor=None, is_deleted=None): # noqa: E501 + """GetProductDetails - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._created_at = None + self._modified_at = None + self._url = None + self._image_url = None + self._sku = None + self._price = None + self._categories = None + self._parent_id = None + self._s3_original = None + self._s3_thumb_analytics = None + self._meta_info = None + self._s3_thumb_editor = None + self._is_deleted = None + self.discriminator = None + + self.id = id + self.name = name + self.created_at = created_at + self.modified_at = modified_at + if url is not None: + self.url = url + if image_url is not None: + self.image_url = image_url + if sku is not None: + self.sku = sku + if price is not None: + self.price = price + if categories is not None: + self.categories = categories + if parent_id is not None: + self.parent_id = parent_id + if s3_original is not None: + self.s3_original = s3_original + self.s3_thumb_analytics = s3_thumb_analytics + if meta_info is not None: + self.meta_info = meta_info + self.s3_thumb_editor = s3_thumb_editor + if is_deleted is not None: + self.is_deleted = is_deleted + + @property + def id(self): + """Gets the id of this GetProductDetails. # noqa: E501 + + Product ID for which you requested the details # noqa: E501 + + :return: The id of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetProductDetails. + + Product ID for which you requested the details # noqa: E501 + + :param id: The id of this GetProductDetails. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GetProductDetails. # noqa: E501 + + Name of the product for which you requested the details # noqa: E501 + + :return: The name of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetProductDetails. + + Name of the product for which you requested the details # noqa: E501 + + :param name: The name of this GetProductDetails. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def created_at(self): + """Gets the created_at of this GetProductDetails. # noqa: E501 + + Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The created_at of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetProductDetails. + + Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param created_at: The created_at of this GetProductDetails. # noqa: E501 + :type: str + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetProductDetails. # noqa: E501 + + Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The modified_at of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetProductDetails. + + Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param modified_at: The modified_at of this GetProductDetails. # noqa: E501 + :type: str + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + @property + def url(self): + """Gets the url of this GetProductDetails. # noqa: E501 + + URL to the product # noqa: E501 + + :return: The url of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this GetProductDetails. + + URL to the product # noqa: E501 + + :param url: The url of this GetProductDetails. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def image_url(self): + """Gets the image_url of this GetProductDetails. # noqa: E501 + + Absolute URL to the cover image of the product # noqa: E501 + + :return: The image_url of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._image_url + + @image_url.setter + def image_url(self, image_url): + """Sets the image_url of this GetProductDetails. + + Absolute URL to the cover image of the product # noqa: E501 + + :param image_url: The image_url of this GetProductDetails. # noqa: E501 + :type: str + """ + + self._image_url = image_url + + @property + def sku(self): + """Gets the sku of this GetProductDetails. # noqa: E501 + + Product identifier from the shop # noqa: E501 + + :return: The sku of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._sku + + @sku.setter + def sku(self, sku): + """Sets the sku of this GetProductDetails. + + Product identifier from the shop # noqa: E501 + + :param sku: The sku of this GetProductDetails. # noqa: E501 + :type: str + """ + + self._sku = sku + + @property + def price(self): + """Gets the price of this GetProductDetails. # noqa: E501 + + Price of the product # noqa: E501 + + :return: The price of this GetProductDetails. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this GetProductDetails. + + Price of the product # noqa: E501 + + :param price: The price of this GetProductDetails. # noqa: E501 + :type: float + """ + + self._price = price + + @property + def categories(self): + """Gets the categories of this GetProductDetails. # noqa: E501 + + Category ID-s of the product # noqa: E501 + + :return: The categories of this GetProductDetails. # noqa: E501 + :rtype: list[str] + """ + return self._categories + + @categories.setter + def categories(self, categories): + """Sets the categories of this GetProductDetails. + + Category ID-s of the product # noqa: E501 + + :param categories: The categories of this GetProductDetails. # noqa: E501 + :type: list[str] + """ + + self._categories = categories + + @property + def parent_id(self): + """Gets the parent_id of this GetProductDetails. # noqa: E501 + + Parent product id of the product # noqa: E501 + + :return: The parent_id of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._parent_id + + @parent_id.setter + def parent_id(self, parent_id): + """Sets the parent_id of this GetProductDetails. + + Parent product id of the product # noqa: E501 + + :param parent_id: The parent_id of this GetProductDetails. # noqa: E501 + :type: str + """ + + self._parent_id = parent_id + + @property + def s3_original(self): + """Gets the s3_original of this GetProductDetails. # noqa: E501 + + S3 url of original image # noqa: E501 + + :return: The s3_original of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._s3_original + + @s3_original.setter + def s3_original(self, s3_original): + """Sets the s3_original of this GetProductDetails. + + S3 url of original image # noqa: E501 + + :param s3_original: The s3_original of this GetProductDetails. # noqa: E501 + :type: str + """ + + self._s3_original = s3_original + + @property + def s3_thumb_analytics(self): + """Gets the s3_thumb_analytics of this GetProductDetails. # noqa: E501 + + S3 thumbnail url of original image in 120x120 dimension for analytics section # noqa: E501 + + :return: The s3_thumb_analytics of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._s3_thumb_analytics + + @s3_thumb_analytics.setter + def s3_thumb_analytics(self, s3_thumb_analytics): + """Sets the s3_thumb_analytics of this GetProductDetails. + + S3 thumbnail url of original image in 120x120 dimension for analytics section # noqa: E501 + + :param s3_thumb_analytics: The s3_thumb_analytics of this GetProductDetails. # noqa: E501 + :type: str + """ + if s3_thumb_analytics is None: + raise ValueError("Invalid value for `s3_thumb_analytics`, must not be `None`") # noqa: E501 + + self._s3_thumb_analytics = s3_thumb_analytics + + @property + def meta_info(self): + """Gets the meta_info of this GetProductDetails. # noqa: E501 + + Meta data of product such as description, vendor, producer, stock level, etc. # noqa: E501 + + :return: The meta_info of this GetProductDetails. # noqa: E501 + :rtype: object + """ + return self._meta_info + + @meta_info.setter + def meta_info(self, meta_info): + """Sets the meta_info of this GetProductDetails. + + Meta data of product such as description, vendor, producer, stock level, etc. # noqa: E501 + + :param meta_info: The meta_info of this GetProductDetails. # noqa: E501 + :type: object + """ + + self._meta_info = meta_info + + @property + def s3_thumb_editor(self): + """Gets the s3_thumb_editor of this GetProductDetails. # noqa: E501 + + S3 thumbnail url of original image in 600x400 dimension for editor section # noqa: E501 + + :return: The s3_thumb_editor of this GetProductDetails. # noqa: E501 + :rtype: str + """ + return self._s3_thumb_editor + + @s3_thumb_editor.setter + def s3_thumb_editor(self, s3_thumb_editor): + """Sets the s3_thumb_editor of this GetProductDetails. + + S3 thumbnail url of original image in 600x400 dimension for editor section # noqa: E501 + + :param s3_thumb_editor: The s3_thumb_editor of this GetProductDetails. # noqa: E501 + :type: str + """ + if s3_thumb_editor is None: + raise ValueError("Invalid value for `s3_thumb_editor`, must not be `None`") # noqa: E501 + + self._s3_thumb_editor = s3_thumb_editor + + @property + def is_deleted(self): + """Gets the is_deleted of this GetProductDetails. # noqa: E501 + + product deleted from the shop's database # noqa: E501 + + :return: The is_deleted of this GetProductDetails. # noqa: E501 + :rtype: bool + """ + return self._is_deleted + + @is_deleted.setter + def is_deleted(self, is_deleted): + """Sets the is_deleted of this GetProductDetails. + + product deleted from the shop's database # noqa: E501 + + :param is_deleted: The is_deleted of this GetProductDetails. # noqa: E501 + :type: bool + """ + + self._is_deleted = is_deleted + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetProductDetails, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetProductDetails): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_products.py b/sib_api_v3_sdk/models/get_products.py new file mode 100644 index 0000000..d45393a --- /dev/null +++ b/sib_api_v3_sdk/models/get_products.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetProducts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'products': 'list[object]', + 'count': 'int' + } + + attribute_map = { + 'products': 'products', + 'count': 'count' + } + + def __init__(self, products=None, count=None): # noqa: E501 + """GetProducts - a model defined in Swagger""" # noqa: E501 + + self._products = None + self._count = None + self.discriminator = None + + self.products = products + self.count = count + + @property + def products(self): + """Gets the products of this GetProducts. # noqa: E501 + + + :return: The products of this GetProducts. # noqa: E501 + :rtype: list[object] + """ + return self._products + + @products.setter + def products(self, products): + """Sets the products of this GetProducts. + + + :param products: The products of this GetProducts. # noqa: E501 + :type: list[object] + """ + if products is None: + raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501 + + self._products = products + + @property + def count(self): + """Gets the count of this GetProducts. # noqa: E501 + + Number of products # noqa: E501 + + :return: The count of this GetProducts. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetProducts. + + Number of products # noqa: E501 + + :param count: The count of this GetProducts. # noqa: E501 + :type: int + """ + if count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetProducts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetProducts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_sms_event_report_events.py b/sib_api_v3_sdk/models/get_sms_event_report_events.py index 03048ad..2b9c514 100644 --- a/sib_api_v3_sdk/models/get_sms_event_report_events.py +++ b/sib_api_v3_sdk/models/get_sms_event_report_events.py @@ -166,7 +166,7 @@ def event(self, event): :param event: The event of this GetSmsEventReportEvents. # noqa: E501 :type: str """ - allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "sent", "accepted", "unsubscription", "replies", "blocked"] # noqa: E501 + allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "sent", "accepted", "unsubscription", "replies", "blocked", "rejected"] # noqa: E501 if event not in allowed_values: raise ValueError( "Invalid value for `event` ({0}), must be one of {1}" # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_wa_templates.py b/sib_api_v3_sdk/models/get_wa_templates.py new file mode 100644 index 0000000..e4d08d6 --- /dev/null +++ b/sib_api_v3_sdk/models/get_wa_templates.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetWATemplates(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'templates': 'list[GetWATemplatesTemplates]', + 'count': 'int' + } + + attribute_map = { + 'templates': 'templates', + 'count': 'count' + } + + def __init__(self, templates=None, count=None): # noqa: E501 + """GetWATemplates - a model defined in Swagger""" # noqa: E501 + + self._templates = None + self._count = None + self.discriminator = None + + self.templates = templates + self.count = count + + @property + def templates(self): + """Gets the templates of this GetWATemplates. # noqa: E501 + + + :return: The templates of this GetWATemplates. # noqa: E501 + :rtype: list[GetWATemplatesTemplates] + """ + return self._templates + + @templates.setter + def templates(self, templates): + """Sets the templates of this GetWATemplates. + + + :param templates: The templates of this GetWATemplates. # noqa: E501 + :type: list[GetWATemplatesTemplates] + """ + if templates is None: + raise ValueError("Invalid value for `templates`, must not be `None`") # noqa: E501 + + self._templates = templates + + @property + def count(self): + """Gets the count of this GetWATemplates. # noqa: E501 + + Number of whatsapp templates retrived # noqa: E501 + + :return: The count of this GetWATemplates. # noqa: E501 + :rtype: int + """ + return self._count + + @count.setter + def count(self, count): + """Sets the count of this GetWATemplates. + + Number of whatsapp templates retrived # noqa: E501 + + :param count: The count of this GetWATemplates. # noqa: E501 + :type: int + """ + if count is None: + raise ValueError("Invalid value for `count`, must not be `None`") # noqa: E501 + + self._count = count + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetWATemplates, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWATemplates): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_wa_templates_templates.py b/sib_api_v3_sdk/models/get_wa_templates_templates.py new file mode 100644 index 0000000..ddc521f --- /dev/null +++ b/sib_api_v3_sdk/models/get_wa_templates_templates.py @@ -0,0 +1,320 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetWATemplatesTemplates(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str', + 'status': 'str', + 'language': 'str', + 'category': 'str', + 'error_reason': 'str', + 'created_at': 'str', + 'modified_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name', + 'status': 'status', + 'language': 'language', + 'category': 'category', + 'error_reason': 'errorReason', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt' + } + + def __init__(self, id=None, name=None, status=None, language=None, category=None, error_reason=None, created_at=None, modified_at=None): # noqa: E501 + """GetWATemplatesTemplates - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self._status = None + self._language = None + self._category = None + self._error_reason = None + self._created_at = None + self._modified_at = None + self.discriminator = None + + self.id = id + self.name = name + self.status = status + self.language = language + self.category = category + if error_reason is not None: + self.error_reason = error_reason + self.created_at = created_at + self.modified_at = modified_at + + @property + def id(self): + """Gets the id of this GetWATemplatesTemplates. # noqa: E501 + + id of the template # noqa: E501 + + :return: The id of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetWATemplatesTemplates. + + id of the template # noqa: E501 + + :param id: The id of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def name(self): + """Gets the name of this GetWATemplatesTemplates. # noqa: E501 + + Name of the Whatsapp template # noqa: E501 + + :return: The name of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetWATemplatesTemplates. + + Name of the Whatsapp template # noqa: E501 + + :param name: The name of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def status(self): + """Gets the status of this GetWATemplatesTemplates. # noqa: E501 + + Status of the Whatsapp template # noqa: E501 + + :return: The status of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this GetWATemplatesTemplates. + + Status of the Whatsapp template # noqa: E501 + + :param status: The status of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def language(self): + """Gets the language of this GetWATemplatesTemplates. # noqa: E501 + + Language in which template exists # noqa: E501 + + :return: The language of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this GetWATemplatesTemplates. + + Language in which template exists # noqa: E501 + + :param language: The language of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if language is None: + raise ValueError("Invalid value for `language`, must not be `None`") # noqa: E501 + + self._language = language + + @property + def category(self): + """Gets the category of this GetWATemplatesTemplates. # noqa: E501 + + category of the template # noqa: E501 + + :return: The category of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this GetWATemplatesTemplates. + + category of the template # noqa: E501 + + :param category: The category of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if category is None: + raise ValueError("Invalid value for `category`, must not be `None`") # noqa: E501 + + self._category = category + + @property + def error_reason(self): + """Gets the error_reason of this GetWATemplatesTemplates. # noqa: E501 + + Error reason in the template creation # noqa: E501 + + :return: The error_reason of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._error_reason + + @error_reason.setter + def error_reason(self, error_reason): + """Sets the error_reason of this GetWATemplatesTemplates. + + Error reason in the template creation # noqa: E501 + + :param error_reason: The error_reason of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + + self._error_reason = error_reason + + @property + def created_at(self): + """Gets the created_at of this GetWATemplatesTemplates. # noqa: E501 + + Creation UTC date-time of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The created_at of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetWATemplatesTemplates. + + Creation UTC date-time of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param created_at: The created_at of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetWATemplatesTemplates. # noqa: E501 + + UTC date-time of last modification of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The modified_at of this GetWATemplatesTemplates. # noqa: E501 + :rtype: str + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetWATemplatesTemplates. + + UTC date-time of last modification of the whatsapp template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param modified_at: The modified_at of this GetWATemplatesTemplates. # noqa: E501 + :type: str + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetWATemplatesTemplates, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWATemplatesTemplates): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_webhook.py b/sib_api_v3_sdk/models/get_webhook.py index f34ab10..616c915 100644 --- a/sib_api_v3_sdk/models/get_webhook.py +++ b/sib_api_v3_sdk/models/get_webhook.py @@ -172,7 +172,7 @@ def events(self, events): def type(self): """Gets the type of this GetWebhook. # noqa: E501 - Type of webhook (marketing or transac) # noqa: E501 + Type of webhook (marketing or transactional) # noqa: E501 :return: The type of this GetWebhook. # noqa: E501 :rtype: str @@ -183,14 +183,14 @@ def type(self): def type(self, type): """Sets the type of this GetWebhook. - Type of webhook (marketing or transac) # noqa: E501 + Type of webhook (marketing or transactional) # noqa: E501 :param type: The type of this GetWebhook. # noqa: E501 :type: str """ if type is None: raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501 - allowed_values = ["marketing", "transac"] # noqa: E501 + allowed_values = ["marketing", "transactional"] # noqa: E501 if type not in allowed_values: raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_whatsapp_campaign_overview.py b/sib_api_v3_sdk/models/get_whatsapp_campaign_overview.py new file mode 100644 index 0000000..b26da9b --- /dev/null +++ b/sib_api_v3_sdk/models/get_whatsapp_campaign_overview.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetWhatsappCampaignOverview(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'campaign_name': 'str', + 'campaign_status': 'str', + 'scheduled_at': 'str', + 'sender_number': 'str', + 'stats': 'WhatsappCampStats', + 'template': 'WhatsappCampTemplate', + 'created_at': 'str', + 'modified_at': 'str' + } + + attribute_map = { + 'id': 'id', + 'campaign_name': 'campaignName', + 'campaign_status': 'campaignStatus', + 'scheduled_at': 'scheduledAt', + 'sender_number': 'senderNumber', + 'stats': 'stats', + 'template': 'template', + 'created_at': 'createdAt', + 'modified_at': 'modifiedAt' + } + + def __init__(self, id=None, campaign_name=None, campaign_status=None, scheduled_at=None, sender_number=None, stats=None, template=None, created_at=None, modified_at=None): # noqa: E501 + """GetWhatsappCampaignOverview - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._campaign_name = None + self._campaign_status = None + self._scheduled_at = None + self._sender_number = None + self._stats = None + self._template = None + self._created_at = None + self._modified_at = None + self.discriminator = None + + self.id = id + self.campaign_name = campaign_name + self.campaign_status = campaign_status + if scheduled_at is not None: + self.scheduled_at = scheduled_at + self.sender_number = sender_number + if stats is not None: + self.stats = stats + self.template = template + self.created_at = created_at + self.modified_at = modified_at + + @property + def id(self): + """Gets the id of this GetWhatsappCampaignOverview. # noqa: E501 + + ID of the Whatsapp Campaign # noqa: E501 + + :return: The id of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this GetWhatsappCampaignOverview. + + ID of the Whatsapp Campaign # noqa: E501 + + :param id: The id of this GetWhatsappCampaignOverview. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def campaign_name(self): + """Gets the campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 + + Name of the Whatsapp Campaign # noqa: E501 + + :return: The campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._campaign_name + + @campaign_name.setter + def campaign_name(self, campaign_name): + """Sets the campaign_name of this GetWhatsappCampaignOverview. + + Name of the Whatsapp Campaign # noqa: E501 + + :param campaign_name: The campaign_name of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + if campaign_name is None: + raise ValueError("Invalid value for `campaign_name`, must not be `None`") # noqa: E501 + + self._campaign_name = campaign_name + + @property + def campaign_status(self): + """Gets the campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 + + Status of the Whatsapp Campaign # noqa: E501 + + :return: The campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._campaign_status + + @campaign_status.setter + def campaign_status(self, campaign_status): + """Sets the campaign_status of this GetWhatsappCampaignOverview. + + Status of the Whatsapp Campaign # noqa: E501 + + :param campaign_status: The campaign_status of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + if campaign_status is None: + raise ValueError("Invalid value for `campaign_status`, must not be `None`") # noqa: E501 + allowed_values = ["draft", "scheduled", "pending", "approved", "running", "suspended", "rejected", "sent"] # noqa: E501 + if campaign_status not in allowed_values: + raise ValueError( + "Invalid value for `campaign_status` ({0}), must be one of {1}" # noqa: E501 + .format(campaign_status, allowed_values) + ) + + self._campaign_status = campaign_status + + @property + def scheduled_at(self): + """Gets the scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 + + UTC date-time on which Whatsapp campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 + + :return: The scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._scheduled_at + + @scheduled_at.setter + def scheduled_at(self, scheduled_at): + """Sets the scheduled_at of this GetWhatsappCampaignOverview. + + UTC date-time on which Whatsapp campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 + + :param scheduled_at: The scheduled_at of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + + self._scheduled_at = scheduled_at + + @property + def sender_number(self): + """Gets the sender_number of this GetWhatsappCampaignOverview. # noqa: E501 + + Sender of the Whatsapp Campaign # noqa: E501 + + :return: The sender_number of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._sender_number + + @sender_number.setter + def sender_number(self, sender_number): + """Sets the sender_number of this GetWhatsappCampaignOverview. + + Sender of the Whatsapp Campaign # noqa: E501 + + :param sender_number: The sender_number of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + if sender_number is None: + raise ValueError("Invalid value for `sender_number`, must not be `None`") # noqa: E501 + + self._sender_number = sender_number + + @property + def stats(self): + """Gets the stats of this GetWhatsappCampaignOverview. # noqa: E501 + + + :return: The stats of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: WhatsappCampStats + """ + return self._stats + + @stats.setter + def stats(self, stats): + """Sets the stats of this GetWhatsappCampaignOverview. + + + :param stats: The stats of this GetWhatsappCampaignOverview. # noqa: E501 + :type: WhatsappCampStats + """ + + self._stats = stats + + @property + def template(self): + """Gets the template of this GetWhatsappCampaignOverview. # noqa: E501 + + + :return: The template of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: WhatsappCampTemplate + """ + return self._template + + @template.setter + def template(self, template): + """Sets the template of this GetWhatsappCampaignOverview. + + + :param template: The template of this GetWhatsappCampaignOverview. # noqa: E501 + :type: WhatsappCampTemplate + """ + if template is None: + raise ValueError("Invalid value for `template`, must not be `None`") # noqa: E501 + + self._template = template + + @property + def created_at(self): + """Gets the created_at of this GetWhatsappCampaignOverview. # noqa: E501 + + Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The created_at of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this GetWhatsappCampaignOverview. + + Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param created_at: The created_at of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def modified_at(self): + """Gets the modified_at of this GetWhatsappCampaignOverview. # noqa: E501 + + UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :return: The modified_at of this GetWhatsappCampaignOverview. # noqa: E501 + :rtype: str + """ + return self._modified_at + + @modified_at.setter + def modified_at(self, modified_at): + """Sets the modified_at of this GetWhatsappCampaignOverview. + + UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 + + :param modified_at: The modified_at of this GetWhatsappCampaignOverview. # noqa: E501 + :type: str + """ + if modified_at is None: + raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 + + self._modified_at = modified_at + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetWhatsappCampaignOverview, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWhatsappCampaignOverview): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_whatsapp_event_report.py b/sib_api_v3_sdk/models/get_whatsapp_event_report.py new file mode 100644 index 0000000..03b1068 --- /dev/null +++ b/sib_api_v3_sdk/models/get_whatsapp_event_report.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetWhatsappEventReport(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'events': 'list[GetWhatsappEventReportEvents]' + } + + attribute_map = { + 'events': 'events' + } + + def __init__(self, events=None): # noqa: E501 + """GetWhatsappEventReport - a model defined in Swagger""" # noqa: E501 + + self._events = None + self.discriminator = None + + if events is not None: + self.events = events + + @property + def events(self): + """Gets the events of this GetWhatsappEventReport. # noqa: E501 + + + :return: The events of this GetWhatsappEventReport. # noqa: E501 + :rtype: list[GetWhatsappEventReportEvents] + """ + return self._events + + @events.setter + def events(self, events): + """Sets the events of this GetWhatsappEventReport. + + + :param events: The events of this GetWhatsappEventReport. # noqa: E501 + :type: list[GetWhatsappEventReportEvents] + """ + + self._events = events + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetWhatsappEventReport, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWhatsappEventReport): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/get_whatsapp_event_report_events.py b/sib_api_v3_sdk/models/get_whatsapp_event_report_events.py new file mode 100644 index 0000000..4166aef --- /dev/null +++ b/sib_api_v3_sdk/models/get_whatsapp_event_report_events.py @@ -0,0 +1,324 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetWhatsappEventReportEvents(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'contact_number': 'str', + '_date': 'str', + 'message_id': 'str', + 'event': 'str', + 'reason': 'str', + 'body': 'str', + 'media_url': 'str', + 'sender_number': 'str' + } + + attribute_map = { + 'contact_number': 'contactNumber', + '_date': 'date', + 'message_id': 'messageId', + 'event': 'event', + 'reason': 'reason', + 'body': 'body', + 'media_url': 'mediaUrl', + 'sender_number': 'senderNumber' + } + + def __init__(self, contact_number=None, _date=None, message_id=None, event=None, reason=None, body=None, media_url=None, sender_number=None): # noqa: E501 + """GetWhatsappEventReportEvents - a model defined in Swagger""" # noqa: E501 + + self._contact_number = None + self.__date = None + self._message_id = None + self._event = None + self._reason = None + self._body = None + self._media_url = None + self._sender_number = None + self.discriminator = None + + self.contact_number = contact_number + self._date = _date + self.message_id = message_id + self.event = event + if reason is not None: + self.reason = reason + if body is not None: + self.body = body + if media_url is not None: + self.media_url = media_url + self.sender_number = sender_number + + @property + def contact_number(self): + """Gets the contact_number of this GetWhatsappEventReportEvents. # noqa: E501 + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :return: The contact_number of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._contact_number + + @contact_number.setter + def contact_number(self, contact_number): + """Sets the contact_number of this GetWhatsappEventReportEvents. + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :param contact_number: The contact_number of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + if contact_number is None: + raise ValueError("Invalid value for `contact_number`, must not be `None`") # noqa: E501 + + self._contact_number = contact_number + + @property + def _date(self): + """Gets the _date of this GetWhatsappEventReportEvents. # noqa: E501 + + UTC date-time on which the event has been generated # noqa: E501 + + :return: The _date of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this GetWhatsappEventReportEvents. + + UTC date-time on which the event has been generated # noqa: E501 + + :param _date: The _date of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + if _date is None: + raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 + + self.__date = _date + + @property + def message_id(self): + """Gets the message_id of this GetWhatsappEventReportEvents. # noqa: E501 + + Message ID which generated the event # noqa: E501 + + :return: The message_id of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """Sets the message_id of this GetWhatsappEventReportEvents. + + Message ID which generated the event # noqa: E501 + + :param message_id: The message_id of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + if message_id is None: + raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 + + self._message_id = message_id + + @property + def event(self): + """Gets the event of this GetWhatsappEventReportEvents. # noqa: E501 + + Event which occurred # noqa: E501 + + :return: The event of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._event + + @event.setter + def event(self, event): + """Sets the event of this GetWhatsappEventReportEvents. + + Event which occurred # noqa: E501 + + :param event: The event of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + if event is None: + raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 + allowed_values = ["sent", "delivered", "read", "error", "unsubscribe", "reply", "soft-bounce"] # noqa: E501 + if event not in allowed_values: + raise ValueError( + "Invalid value for `event` ({0}), must be one of {1}" # noqa: E501 + .format(event, allowed_values) + ) + + self._event = event + + @property + def reason(self): + """Gets the reason of this GetWhatsappEventReportEvents. # noqa: E501 + + Reason for the event (will be there in case of `error` and `soft-bounce` events) # noqa: E501 + + :return: The reason of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """Sets the reason of this GetWhatsappEventReportEvents. + + Reason for the event (will be there in case of `error` and `soft-bounce` events) # noqa: E501 + + :param reason: The reason of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + + self._reason = reason + + @property + def body(self): + """Gets the body of this GetWhatsappEventReportEvents. # noqa: E501 + + Text of the reply (will be there only in case of `reply` event with text) # noqa: E501 + + :return: The body of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._body + + @body.setter + def body(self, body): + """Sets the body of this GetWhatsappEventReportEvents. + + Text of the reply (will be there only in case of `reply` event with text) # noqa: E501 + + :param body: The body of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + + self._body = body + + @property + def media_url(self): + """Gets the media_url of this GetWhatsappEventReportEvents. # noqa: E501 + + Url of the media reply (will be there only in case of `reply` event with media) # noqa: E501 + + :return: The media_url of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._media_url + + @media_url.setter + def media_url(self, media_url): + """Sets the media_url of this GetWhatsappEventReportEvents. + + Url of the media reply (will be there only in case of `reply` event with media) # noqa: E501 + + :param media_url: The media_url of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + + self._media_url = media_url + + @property + def sender_number(self): + """Gets the sender_number of this GetWhatsappEventReportEvents. # noqa: E501 + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :return: The sender_number of this GetWhatsappEventReportEvents. # noqa: E501 + :rtype: str + """ + return self._sender_number + + @sender_number.setter + def sender_number(self, sender_number): + """Sets the sender_number of this GetWhatsappEventReportEvents. + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :param sender_number: The sender_number of this GetWhatsappEventReportEvents. # noqa: E501 + :type: str + """ + if sender_number is None: + raise ValueError("Invalid value for `sender_number`, must not be `None`") # noqa: E501 + + self._sender_number = sender_number + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GetWhatsappEventReportEvents, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetWhatsappEventReportEvents): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/inline_response200.py b/sib_api_v3_sdk/models/inline_response200.py new file mode 100644 index 0000000..c7b802e --- /dev/null +++ b/sib_api_v3_sdk/models/inline_response200.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse200(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """InlineResponse200 - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this InlineResponse200. # noqa: E501 + + Unique company id # noqa: E501 + + :return: The id of this InlineResponse200. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse200. + + Unique company id # noqa: E501 + + :param id: The id of this InlineResponse200. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse200, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse200): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/inline_response201.py b/sib_api_v3_sdk/models/inline_response201.py index 7e81212..40d55eb 100644 --- a/sib_api_v3_sdk/models/inline_response201.py +++ b/sib_api_v3_sdk/models/inline_response201.py @@ -50,7 +50,7 @@ def __init__(self, id=None): # noqa: E501 def id(self): """Gets the id of this InlineResponse201. # noqa: E501 - Unique task id # noqa: E501 + Unique deal id # noqa: E501 :return: The id of this InlineResponse201. # noqa: E501 :rtype: str @@ -61,7 +61,7 @@ def id(self): def id(self, id): """Sets the id of this InlineResponse201. - Unique task id # noqa: E501 + Unique deal id # noqa: E501 :param id: The id of this InlineResponse201. # noqa: E501 :type: str diff --git a/sib_api_v3_sdk/models/inline_response2011.py b/sib_api_v3_sdk/models/inline_response2011.py new file mode 100644 index 0000000..9d0266f --- /dev/null +++ b/sib_api_v3_sdk/models/inline_response2011.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2011(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """InlineResponse2011 - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this InlineResponse2011. # noqa: E501 + + Unique task id # noqa: E501 + + :return: The id of this InlineResponse2011. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2011. + + Unique task id # noqa: E501 + + :param id: The id of this InlineResponse2011. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2011, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2011): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/inline_response2012.py b/sib_api_v3_sdk/models/inline_response2012.py new file mode 100644 index 0000000..7e275b4 --- /dev/null +++ b/sib_api_v3_sdk/models/inline_response2012.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2012(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'message_id': 'str' + } + + attribute_map = { + 'message_id': 'messageId' + } + + def __init__(self, message_id=None): # noqa: E501 + """InlineResponse2012 - a model defined in Swagger""" # noqa: E501 + + self._message_id = None + self.discriminator = None + + self.message_id = message_id + + @property + def message_id(self): + """Gets the message_id of this InlineResponse2012. # noqa: E501 + + messageId of sent message # noqa: E501 + + :return: The message_id of this InlineResponse2012. # noqa: E501 + :rtype: str + """ + return self._message_id + + @message_id.setter + def message_id(self, message_id): + """Sets the message_id of this InlineResponse2012. + + messageId of sent message # noqa: E501 + + :param message_id: The message_id of this InlineResponse2012. # noqa: E501 + :type: str + """ + if message_id is None: + raise ValueError("Invalid value for `message_id`, must not be `None`") # noqa: E501 + + self._message_id = message_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2012, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2012): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/inline_response2013.py b/sib_api_v3_sdk/models/inline_response2013.py new file mode 100644 index 0000000..4c07487 --- /dev/null +++ b/sib_api_v3_sdk/models/inline_response2013.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class InlineResponse2013(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str' + } + + attribute_map = { + 'id': 'id' + } + + def __init__(self, id=None): # noqa: E501 + """InlineResponse2013 - a model defined in Swagger""" # noqa: E501 + + self._id = None + self.discriminator = None + + self.id = id + + @property + def id(self): + """Gets the id of this InlineResponse2013. # noqa: E501 + + ID of the object created # noqa: E501 + + :return: The id of this InlineResponse2013. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2013. + + ID of the object created # noqa: E501 + + :param id: The id of this InlineResponse2013. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2013, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2013): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/note_data.py b/sib_api_v3_sdk/models/note_data.py index feff7fe..11fc707 100644 --- a/sib_api_v3_sdk/models/note_data.py +++ b/sib_api_v3_sdk/models/note_data.py @@ -33,21 +33,24 @@ class NoteData(object): swagger_types = { 'text': 'str', 'contact_ids': 'list[int]', - 'deal_ids': 'list[str]' + 'deal_ids': 'list[str]', + 'company_ids': 'list[str]' } attribute_map = { 'text': 'text', 'contact_ids': 'contactIds', - 'deal_ids': 'dealIds' + 'deal_ids': 'dealIds', + 'company_ids': 'companyIds' } - def __init__(self, text=None, contact_ids=None, deal_ids=None): # noqa: E501 + def __init__(self, text=None, contact_ids=None, deal_ids=None, company_ids=None): # noqa: E501 """NoteData - a model defined in Swagger""" # noqa: E501 self._text = None self._contact_ids = None self._deal_ids = None + self._company_ids = None self.discriminator = None self.text = text @@ -55,6 +58,8 @@ def __init__(self, text=None, contact_ids=None, deal_ids=None): # noqa: E501 self.contact_ids = contact_ids if deal_ids is not None: self.deal_ids = deal_ids + if company_ids is not None: + self.company_ids = company_ids @property def text(self): @@ -131,6 +136,29 @@ def deal_ids(self, deal_ids): self._deal_ids = deal_ids + @property + def company_ids(self): + """Gets the company_ids of this NoteData. # noqa: E501 + + Company Ids linked to a note # noqa: E501 + + :return: The company_ids of this NoteData. # noqa: E501 + :rtype: list[str] + """ + return self._company_ids + + @company_ids.setter + def company_ids(self, company_ids): + """Sets the company_ids of this NoteData. + + Company Ids linked to a note # noqa: E501 + + :param company_ids: The company_ids of this NoteData. # noqa: E501 + :type: list[str] + """ + + self._company_ids = company_ids + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/order.py b/sib_api_v3_sdk/models/order.py new file mode 100644 index 0000000..f3e5523 --- /dev/null +++ b/sib_api_v3_sdk/models/order.py @@ -0,0 +1,343 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Order(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'created_at': 'str', + 'updated_at': 'str', + 'status': 'str', + 'amount': 'float', + 'products': 'list[OrderProducts]', + 'email': 'str', + 'billing': 'OrderBilling', + 'coupons': 'list[str]' + } + + attribute_map = { + 'id': 'id', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt', + 'status': 'status', + 'amount': 'amount', + 'products': 'products', + 'email': 'email', + 'billing': 'billing', + 'coupons': 'coupons' + } + + def __init__(self, id=None, created_at=None, updated_at=None, status=None, amount=None, products=None, email=None, billing=None, coupons=None): # noqa: E501 + """Order - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._created_at = None + self._updated_at = None + self._status = None + self._amount = None + self._products = None + self._email = None + self._billing = None + self._coupons = None + self.discriminator = None + + self.id = id + self.created_at = created_at + self.updated_at = updated_at + self.status = status + self.amount = amount + self.products = products + if email is not None: + self.email = email + if billing is not None: + self.billing = billing + if coupons is not None: + self.coupons = coupons + + @property + def id(self): + """Gets the id of this Order. # noqa: E501 + + Unique ID of the order. # noqa: E501 + + :return: The id of this Order. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Order. + + Unique ID of the order. # noqa: E501 + + :param id: The id of this Order. # noqa: E501 + :type: str + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def created_at(self): + """Gets the created_at of this Order. # noqa: E501 + + Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. # noqa: E501 + + :return: The created_at of this Order. # noqa: E501 + :rtype: str + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Order. + + Event occurrence UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when order is actually created. # noqa: E501 + + :param created_at: The created_at of this Order. # noqa: E501 + :type: str + """ + if created_at is None: + raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this Order. # noqa: E501 + + Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. # noqa: E501 + + :return: The updated_at of this Order. # noqa: E501 + :rtype: str + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this Order. + + Event updated UTC date-time (YYYY-MM-DDTHH:mm:ssZ), when the status of the order is actually changed/updated. # noqa: E501 + + :param updated_at: The updated_at of this Order. # noqa: E501 + :type: str + """ + if updated_at is None: + raise ValueError("Invalid value for `updated_at`, must not be `None`") # noqa: E501 + + self._updated_at = updated_at + + @property + def status(self): + """Gets the status of this Order. # noqa: E501 + + State of the order. # noqa: E501 + + :return: The status of this Order. # noqa: E501 + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """Sets the status of this Order. + + State of the order. # noqa: E501 + + :param status: The status of this Order. # noqa: E501 + :type: str + """ + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") # noqa: E501 + + self._status = status + + @property + def amount(self): + """Gets the amount of this Order. # noqa: E501 + + Total amount of the order, including all shipping expenses, tax and the price of items. # noqa: E501 + + :return: The amount of this Order. # noqa: E501 + :rtype: float + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this Order. + + Total amount of the order, including all shipping expenses, tax and the price of items. # noqa: E501 + + :param amount: The amount of this Order. # noqa: E501 + :type: float + """ + if amount is None: + raise ValueError("Invalid value for `amount`, must not be `None`") # noqa: E501 + + self._amount = amount + + @property + def products(self): + """Gets the products of this Order. # noqa: E501 + + + :return: The products of this Order. # noqa: E501 + :rtype: list[OrderProducts] + """ + return self._products + + @products.setter + def products(self, products): + """Sets the products of this Order. + + + :param products: The products of this Order. # noqa: E501 + :type: list[OrderProducts] + """ + if products is None: + raise ValueError("Invalid value for `products`, must not be `None`") # noqa: E501 + + self._products = products + + @property + def email(self): + """Gets the email of this Order. # noqa: E501 + + Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter. # noqa: E501 + + :return: The email of this Order. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Order. + + Email of the contact, Mandatory if \"phone\" field is not passed in \"billing\" parameter. # noqa: E501 + + :param email: The email of this Order. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def billing(self): + """Gets the billing of this Order. # noqa: E501 + + + :return: The billing of this Order. # noqa: E501 + :rtype: OrderBilling + """ + return self._billing + + @billing.setter + def billing(self, billing): + """Sets the billing of this Order. + + + :param billing: The billing of this Order. # noqa: E501 + :type: OrderBilling + """ + + self._billing = billing + + @property + def coupons(self): + """Gets the coupons of this Order. # noqa: E501 + + Coupons applied to the order. Stored case insensitive. # noqa: E501 + + :return: The coupons of this Order. # noqa: E501 + :rtype: list[str] + """ + return self._coupons + + @coupons.setter + def coupons(self, coupons): + """Sets the coupons of this Order. + + Coupons applied to the order. Stored case insensitive. # noqa: E501 + + :param coupons: The coupons of this Order. # noqa: E501 + :type: list[str] + """ + + self._coupons = coupons + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Order, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Order): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/order_batch.py b/sib_api_v3_sdk/models/order_batch.py new file mode 100644 index 0000000..d4c2002 --- /dev/null +++ b/sib_api_v3_sdk/models/order_batch.py @@ -0,0 +1,146 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class OrderBatch(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'orders': 'list[Order]', + 'notify_url': 'str' + } + + attribute_map = { + 'orders': 'orders', + 'notify_url': 'notifyUrl' + } + + def __init__(self, orders=None, notify_url=None): # noqa: E501 + """OrderBatch - a model defined in Swagger""" # noqa: E501 + + self._orders = None + self._notify_url = None + self.discriminator = None + + self.orders = orders + if notify_url is not None: + self.notify_url = notify_url + + @property + def orders(self): + """Gets the orders of this OrderBatch. # noqa: E501 + + array of order objects # noqa: E501 + + :return: The orders of this OrderBatch. # noqa: E501 + :rtype: list[Order] + """ + return self._orders + + @orders.setter + def orders(self, orders): + """Sets the orders of this OrderBatch. + + array of order objects # noqa: E501 + + :param orders: The orders of this OrderBatch. # noqa: E501 + :type: list[Order] + """ + if orders is None: + raise ValueError("Invalid value for `orders`, must not be `None`") # noqa: E501 + + self._orders = orders + + @property + def notify_url(self): + """Gets the notify_url of this OrderBatch. # noqa: E501 + + Notify Url provided by client to get the status of batch request # noqa: E501 + + :return: The notify_url of this OrderBatch. # noqa: E501 + :rtype: str + """ + return self._notify_url + + @notify_url.setter + def notify_url(self, notify_url): + """Sets the notify_url of this OrderBatch. + + Notify Url provided by client to get the status of batch request # noqa: E501 + + :param notify_url: The notify_url of this OrderBatch. # noqa: E501 + :type: str + """ + + self._notify_url = notify_url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrderBatch, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderBatch): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/order_billing.py b/sib_api_v3_sdk/models/order_billing.py new file mode 100644 index 0000000..4c8e9e2 --- /dev/null +++ b/sib_api_v3_sdk/models/order_billing.py @@ -0,0 +1,285 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class OrderBilling(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'str', + 'city': 'str', + 'country_code': 'str', + 'phone': 'str', + 'post_code': 'str', + 'payment_method': 'str', + 'region': 'str' + } + + attribute_map = { + 'address': 'address', + 'city': 'city', + 'country_code': 'countryCode', + 'phone': 'phone', + 'post_code': 'postCode', + 'payment_method': 'paymentMethod', + 'region': 'region' + } + + def __init__(self, address=None, city=None, country_code=None, phone=None, post_code=None, payment_method=None, region=None): # noqa: E501 + """OrderBilling - a model defined in Swagger""" # noqa: E501 + + self._address = None + self._city = None + self._country_code = None + self._phone = None + self._post_code = None + self._payment_method = None + self._region = None + self.discriminator = None + + if address is not None: + self.address = address + if city is not None: + self.city = city + if country_code is not None: + self.country_code = country_code + if phone is not None: + self.phone = phone + if post_code is not None: + self.post_code = post_code + if payment_method is not None: + self.payment_method = payment_method + if region is not None: + self.region = region + + @property + def address(self): + """Gets the address of this OrderBilling. # noqa: E501 + + Full billing address. # noqa: E501 + + :return: The address of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this OrderBilling. + + Full billing address. # noqa: E501 + + :param address: The address of this OrderBilling. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def city(self): + """Gets the city of this OrderBilling. # noqa: E501 + + Exact city of the address. # noqa: E501 + + :return: The city of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._city + + @city.setter + def city(self, city): + """Sets the city of this OrderBilling. + + Exact city of the address. # noqa: E501 + + :param city: The city of this OrderBilling. # noqa: E501 + :type: str + """ + + self._city = city + + @property + def country_code(self): + """Gets the country_code of this OrderBilling. # noqa: E501 + + Billing country 2-letter ISO code. # noqa: E501 + + :return: The country_code of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._country_code + + @country_code.setter + def country_code(self, country_code): + """Sets the country_code of this OrderBilling. + + Billing country 2-letter ISO code. # noqa: E501 + + :param country_code: The country_code of this OrderBilling. # noqa: E501 + :type: str + """ + + self._country_code = country_code + + @property + def phone(self): + """Gets the phone of this OrderBilling. # noqa: E501 + + Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed. # noqa: E501 + + :return: The phone of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._phone + + @phone.setter + def phone(self, phone): + """Sets the phone of this OrderBilling. + + Phone number to contact for further details about the order, Mandatory if \"email\" field is not passed. # noqa: E501 + + :param phone: The phone of this OrderBilling. # noqa: E501 + :type: str + """ + + self._phone = phone + + @property + def post_code(self): + """Gets the post_code of this OrderBilling. # noqa: E501 + + Postcode for delivery and billing. # noqa: E501 + + :return: The post_code of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._post_code + + @post_code.setter + def post_code(self, post_code): + """Sets the post_code of this OrderBilling. + + Postcode for delivery and billing. # noqa: E501 + + :param post_code: The post_code of this OrderBilling. # noqa: E501 + :type: str + """ + + self._post_code = post_code + + @property + def payment_method(self): + """Gets the payment_method of this OrderBilling. # noqa: E501 + + How the visitor will pay for the item(s), e.g. paypal, check, etc. # noqa: E501 + + :return: The payment_method of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._payment_method + + @payment_method.setter + def payment_method(self, payment_method): + """Sets the payment_method of this OrderBilling. + + How the visitor will pay for the item(s), e.g. paypal, check, etc. # noqa: E501 + + :param payment_method: The payment_method of this OrderBilling. # noqa: E501 + :type: str + """ + + self._payment_method = payment_method + + @property + def region(self): + """Gets the region of this OrderBilling. # noqa: E501 + + Exact region (state/province) for delivery and billing. # noqa: E501 + + :return: The region of this OrderBilling. # noqa: E501 + :rtype: str + """ + return self._region + + @region.setter + def region(self, region): + """Sets the region of this OrderBilling. + + Exact region (state/province) for delivery and billing. # noqa: E501 + + :param region: The region of this OrderBilling. # noqa: E501 + :type: str + """ + + self._region = region + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrderBilling, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderBilling): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/order_products.py b/sib_api_v3_sdk/models/order_products.py new file mode 100644 index 0000000..139f965 --- /dev/null +++ b/sib_api_v3_sdk/models/order_products.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class OrderProducts(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'product_id': 'str', + 'quantity': 'float', + 'variant_id': 'str', + 'price': 'float' + } + + attribute_map = { + 'product_id': 'productId', + 'quantity': 'quantity', + 'variant_id': 'variantId', + 'price': 'price' + } + + def __init__(self, product_id=None, quantity=None, variant_id=None, price=None): # noqa: E501 + """OrderProducts - a model defined in Swagger""" # noqa: E501 + + self._product_id = None + self._quantity = None + self._variant_id = None + self._price = None + self.discriminator = None + + self.product_id = product_id + self.quantity = quantity + if variant_id is not None: + self.variant_id = variant_id + self.price = price + + @property + def product_id(self): + """Gets the product_id of this OrderProducts. # noqa: E501 + + ID of the product. # noqa: E501 + + :return: The product_id of this OrderProducts. # noqa: E501 + :rtype: str + """ + return self._product_id + + @product_id.setter + def product_id(self, product_id): + """Sets the product_id of this OrderProducts. + + ID of the product. # noqa: E501 + + :param product_id: The product_id of this OrderProducts. # noqa: E501 + :type: str + """ + if product_id is None: + raise ValueError("Invalid value for `product_id`, must not be `None`") # noqa: E501 + + self._product_id = product_id + + @property + def quantity(self): + """Gets the quantity of this OrderProducts. # noqa: E501 + + How many pieces of the product the visitor has added to the cart. # noqa: E501 + + :return: The quantity of this OrderProducts. # noqa: E501 + :rtype: float + """ + return self._quantity + + @quantity.setter + def quantity(self, quantity): + """Sets the quantity of this OrderProducts. + + How many pieces of the product the visitor has added to the cart. # noqa: E501 + + :param quantity: The quantity of this OrderProducts. # noqa: E501 + :type: float + """ + if quantity is None: + raise ValueError("Invalid value for `quantity`, must not be `None`") # noqa: E501 + + self._quantity = quantity + + @property + def variant_id(self): + """Gets the variant_id of this OrderProducts. # noqa: E501 + + Product ID of the red color shirts. # noqa: E501 + + :return: The variant_id of this OrderProducts. # noqa: E501 + :rtype: str + """ + return self._variant_id + + @variant_id.setter + def variant_id(self, variant_id): + """Sets the variant_id of this OrderProducts. + + Product ID of the red color shirts. # noqa: E501 + + :param variant_id: The variant_id of this OrderProducts. # noqa: E501 + :type: str + """ + + self._variant_id = variant_id + + @property + def price(self): + """Gets the price of this OrderProducts. # noqa: E501 + + The price of a unit of product # noqa: E501 + + :return: The price of this OrderProducts. # noqa: E501 + :rtype: float + """ + return self._price + + @price.setter + def price(self, price): + """Sets the price of this OrderProducts. + + The price of a unit of product # noqa: E501 + + :param price: The price of this OrderProducts. # noqa: E501 + :type: float + """ + if price is None: + raise ValueError("Invalid value for `price`, must not be `None`") # noqa: E501 + + self._price = price + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(OrderProducts, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, OrderProducts): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/pipeline.py b/sib_api_v3_sdk/models/pipeline.py new file mode 100644 index 0000000..4f0d26c --- /dev/null +++ b/sib_api_v3_sdk/models/pipeline.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class Pipeline(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'stages': 'list[PipelineStage]' + } + + attribute_map = { + 'stages': 'stages' + } + + def __init__(self, stages=None): # noqa: E501 + """Pipeline - a model defined in Swagger""" # noqa: E501 + + self._stages = None + self.discriminator = None + + if stages is not None: + self.stages = stages + + @property + def stages(self): + """Gets the stages of this Pipeline. # noqa: E501 + + List of stages # noqa: E501 + + :return: The stages of this Pipeline. # noqa: E501 + :rtype: list[PipelineStage] + """ + return self._stages + + @stages.setter + def stages(self, stages): + """Sets the stages of this Pipeline. + + List of stages # noqa: E501 + + :param stages: The stages of this Pipeline. # noqa: E501 + :type: list[PipelineStage] + """ + + self._stages = stages + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(Pipeline, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, Pipeline): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/pipeline_stage.py b/sib_api_v3_sdk/models/pipeline_stage.py new file mode 100644 index 0000000..2d3748e --- /dev/null +++ b/sib_api_v3_sdk/models/pipeline_stage.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PipelineStage(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'str', + 'name': 'str' + } + + attribute_map = { + 'id': 'id', + 'name': 'name' + } + + def __init__(self, id=None, name=None): # noqa: E501 + """PipelineStage - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._name = None + self.discriminator = None + + if id is not None: + self.id = id + if name is not None: + self.name = name + + @property + def id(self): + """Gets the id of this PipelineStage. # noqa: E501 + + Stage id # noqa: E501 + + :return: The id of this PipelineStage. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this PipelineStage. + + Stage id # noqa: E501 + + :param id: The id of this PipelineStage. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def name(self): + """Gets the name of this PipelineStage. # noqa: E501 + + Stage name # noqa: E501 + + :return: The name of this PipelineStage. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PipelineStage. + + Stage name # noqa: E501 + + :param name: The name of this PipelineStage. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PipelineStage, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, PipelineStage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/send_transac_sms.py b/sib_api_v3_sdk/models/send_transac_sms.py index 817b7d2..861033a 100644 --- a/sib_api_v3_sdk/models/send_transac_sms.py +++ b/sib_api_v3_sdk/models/send_transac_sms.py @@ -37,7 +37,8 @@ class SendTransacSms(object): 'type': 'str', 'tag': 'str', 'web_url': 'str', - 'unicode_enabled': 'bool' + 'unicode_enabled': 'bool', + 'organisation_prefix': 'str' } attribute_map = { @@ -47,10 +48,11 @@ class SendTransacSms(object): 'type': 'type', 'tag': 'tag', 'web_url': 'webUrl', - 'unicode_enabled': 'unicodeEnabled' + 'unicode_enabled': 'unicodeEnabled', + 'organisation_prefix': 'organisationPrefix' } - def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=False): # noqa: E501 + def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=False, organisation_prefix=None): # noqa: E501 """SendTransacSms - a model defined in Swagger""" # noqa: E501 self._sender = None @@ -60,6 +62,7 @@ def __init__(self, sender=None, recipient=None, content=None, type='transactiona self._tag = None self._web_url = None self._unicode_enabled = None + self._organisation_prefix = None self.discriminator = None self.sender = sender @@ -73,6 +76,8 @@ def __init__(self, sender=None, recipient=None, content=None, type='transactiona self.web_url = web_url if unicode_enabled is not None: self.unicode_enabled = unicode_enabled + if organisation_prefix is not None: + self.organisation_prefix = organisation_prefix @property def sender(self): @@ -249,6 +254,29 @@ def unicode_enabled(self, unicode_enabled): self._unicode_enabled = unicode_enabled + @property + def organisation_prefix(self): + """Gets the organisation_prefix of this SendTransacSms. # noqa: E501 + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :return: The organisation_prefix of this SendTransacSms. # noqa: E501 + :rtype: str + """ + return self._organisation_prefix + + @organisation_prefix.setter + def organisation_prefix(self, organisation_prefix): + """Sets the organisation_prefix of this SendTransacSms. + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :param organisation_prefix: The organisation_prefix of this SendTransacSms. # noqa: E501 + :type: str + """ + + self._organisation_prefix = organisation_prefix + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/send_whatsapp_message.py b/sib_api_v3_sdk/models/send_whatsapp_message.py new file mode 100644 index 0000000..9ea491d --- /dev/null +++ b/sib_api_v3_sdk/models/send_whatsapp_message.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class SendWhatsappMessage(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'template_id': 'int', + 'text': 'str', + 'sender_number': 'str', + 'contact_numbers': 'list[str]' + } + + attribute_map = { + 'template_id': 'templateId', + 'text': 'text', + 'sender_number': 'senderNumber', + 'contact_numbers': 'contactNumbers' + } + + def __init__(self, template_id=None, text=None, sender_number=None, contact_numbers=None): # noqa: E501 + """SendWhatsappMessage - a model defined in Swagger""" # noqa: E501 + + self._template_id = None + self._text = None + self._sender_number = None + self._contact_numbers = None + self.discriminator = None + + if template_id is not None: + self.template_id = template_id + if text is not None: + self.text = text + self.sender_number = sender_number + self.contact_numbers = contact_numbers + + @property + def template_id(self): + """Gets the template_id of this SendWhatsappMessage. # noqa: E501 + + ID of the template to send # noqa: E501 + + :return: The template_id of this SendWhatsappMessage. # noqa: E501 + :rtype: int + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this SendWhatsappMessage. + + ID of the template to send # noqa: E501 + + :param template_id: The template_id of this SendWhatsappMessage. # noqa: E501 + :type: int + """ + + self._template_id = template_id + + @property + def text(self): + """Gets the text of this SendWhatsappMessage. # noqa: E501 + + Text to be sent as message body (will be overridden if templateId is passed in the same request) # noqa: E501 + + :return: The text of this SendWhatsappMessage. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this SendWhatsappMessage. + + Text to be sent as message body (will be overridden if templateId is passed in the same request) # noqa: E501 + + :param text: The text of this SendWhatsappMessage. # noqa: E501 + :type: str + """ + + self._text = text + + @property + def sender_number(self): + """Gets the sender_number of this SendWhatsappMessage. # noqa: E501 + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :return: The sender_number of this SendWhatsappMessage. # noqa: E501 + :rtype: str + """ + return self._sender_number + + @sender_number.setter + def sender_number(self, sender_number): + """Sets the sender_number of this SendWhatsappMessage. + + WhatsApp Number with country code. Example, 85264318721 # noqa: E501 + + :param sender_number: The sender_number of this SendWhatsappMessage. # noqa: E501 + :type: str + """ + if sender_number is None: + raise ValueError("Invalid value for `sender_number`, must not be `None`") # noqa: E501 + + self._sender_number = sender_number + + @property + def contact_numbers(self): + """Gets the contact_numbers of this SendWhatsappMessage. # noqa: E501 + + List of phone numbers of the contacts # noqa: E501 + + :return: The contact_numbers of this SendWhatsappMessage. # noqa: E501 + :rtype: list[str] + """ + return self._contact_numbers + + @contact_numbers.setter + def contact_numbers(self, contact_numbers): + """Sets the contact_numbers of this SendWhatsappMessage. + + List of phone numbers of the contacts # noqa: E501 + + :param contact_numbers: The contact_numbers of this SendWhatsappMessage. # noqa: E501 + :type: list[str] + """ + if contact_numbers is None: + raise ValueError("Invalid value for `contact_numbers`, must not be `None`") # noqa: E501 + + self._contact_numbers = contact_numbers + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(SendWhatsappMessage, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, SendWhatsappMessage): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/sso_token_request.py b/sib_api_v3_sdk/models/sso_token_request.py index b47c0d3..2cc0e90 100644 --- a/sib_api_v3_sdk/models/sso_token_request.py +++ b/sib_api_v3_sdk/models/sso_token_request.py @@ -32,24 +32,29 @@ class SsoTokenRequest(object): """ swagger_types = { 'id': 'int', - 'email': 'str' + 'email': 'str', + 'target': 'str' } attribute_map = { 'id': 'id', - 'email': 'email' + 'email': 'email', + 'target': 'target' } - def __init__(self, id=None, email=None): # noqa: E501 + def __init__(self, id=None, email=None, target=None): # noqa: E501 """SsoTokenRequest - a model defined in Swagger""" # noqa: E501 self._id = None self._email = None + self._target = None self.discriminator = None self.id = id if email is not None: self.email = email + if target is not None: + self.target = target @property def id(self): @@ -99,6 +104,35 @@ def email(self, email): self._email = email + @property + def target(self): + """Gets the target of this SsoTokenRequest. # noqa: E501 + + Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login # noqa: E501 + + :return: The target of this SsoTokenRequest. # noqa: E501 + :rtype: str + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this SsoTokenRequest. + + Set target after login success * automation - Redirect to Automation after login * email_campaign - Redirect to Email Campaign after login * contacts - Redirect to Contacts after login * landing_pages - Redirect to Landing Pages after login * email_transactional - Redirect to Email Transactional after login * senders - Redirect to Contacts after login * sms_campaign - Redirect to Sms Campaign after login * sms_transactional - Redirect to Sms Transactional after login # noqa: E501 + + :param target: The target of this SsoTokenRequest. # noqa: E501 + :type: str + """ + allowed_values = ["automation", "email_campaign", "contacts", "landing_pages", "email_transactional", "senders", "sms_campaign", "sms_transactional"] # noqa: E501 + if target not in allowed_values: + raise ValueError( + "Invalid value for `target` ({0}), must be one of {1}" # noqa: E501 + .format(target, allowed_values) + ) + + self._target = target + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/update_batch_contacts_contacts.py b/sib_api_v3_sdk/models/update_batch_contacts_contacts.py index 1108fc6..2dc6c0a 100644 --- a/sib_api_v3_sdk/models/update_batch_contacts_contacts.py +++ b/sib_api_v3_sdk/models/update_batch_contacts_contacts.py @@ -34,6 +34,7 @@ class UpdateBatchContactsContacts(object): 'email': 'str', 'id': 'int', 'sms': 'str', + 'ext_id': 'str', 'attributes': 'dict(str, object)', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', @@ -46,6 +47,7 @@ class UpdateBatchContactsContacts(object): 'email': 'email', 'id': 'id', 'sms': 'sms', + 'ext_id': 'ext_id', 'attributes': 'attributes', 'email_blacklisted': 'emailBlacklisted', 'sms_blacklisted': 'smsBlacklisted', @@ -54,12 +56,13 @@ class UpdateBatchContactsContacts(object): 'smtp_blacklist_sender': 'smtpBlacklistSender' } - def __init__(self, email=None, id=None, sms=None, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, unlink_list_ids=None, smtp_blacklist_sender=None): # noqa: E501 + def __init__(self, email=None, id=None, sms=None, ext_id=None, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, unlink_list_ids=None, smtp_blacklist_sender=None): # noqa: E501 """UpdateBatchContactsContacts - a model defined in Swagger""" # noqa: E501 self._email = None self._id = None self._sms = None + self._ext_id = None self._attributes = None self._email_blacklisted = None self._sms_blacklisted = None @@ -74,6 +77,8 @@ def __init__(self, email=None, id=None, sms=None, attributes=None, email_blackli self.id = id if sms is not None: self.sms = sms + if ext_id is not None: + self.ext_id = ext_id if attributes is not None: self.attributes = attributes if email_blacklisted is not None: @@ -156,6 +161,29 @@ def sms(self, sms): self._sms = sms + @property + def ext_id(self): + """Gets the ext_id of this UpdateBatchContactsContacts. # noqa: E501 + + Pass your own Id to update ext_id of a contact. # noqa: E501 + + :return: The ext_id of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: str + """ + return self._ext_id + + @ext_id.setter + def ext_id(self, ext_id): + """Sets the ext_id of this UpdateBatchContactsContacts. + + Pass your own Id to update ext_id of a contact. # noqa: E501 + + :param ext_id: The ext_id of this UpdateBatchContactsContacts. # noqa: E501 + :type: str + """ + + self._ext_id = ext_id + @property def attributes(self): """Gets the attributes of this UpdateBatchContactsContacts. # noqa: E501 diff --git a/sib_api_v3_sdk/models/update_contact.py b/sib_api_v3_sdk/models/update_contact.py index 05e11ea..6a40779 100644 --- a/sib_api_v3_sdk/models/update_contact.py +++ b/sib_api_v3_sdk/models/update_contact.py @@ -32,6 +32,7 @@ class UpdateContact(object): """ swagger_types = { 'attributes': 'object', + 'ext_id': 'str', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', 'list_ids': 'list[int]', @@ -41,6 +42,7 @@ class UpdateContact(object): attribute_map = { 'attributes': 'attributes', + 'ext_id': 'ext_id', 'email_blacklisted': 'emailBlacklisted', 'sms_blacklisted': 'smsBlacklisted', 'list_ids': 'listIds', @@ -48,10 +50,11 @@ class UpdateContact(object): 'smtp_blacklist_sender': 'smtpBlacklistSender' } - def __init__(self, attributes=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, unlink_list_ids=None, smtp_blacklist_sender=None): # noqa: E501 + def __init__(self, attributes=None, ext_id=None, email_blacklisted=None, sms_blacklisted=None, list_ids=None, unlink_list_ids=None, smtp_blacklist_sender=None): # noqa: E501 """UpdateContact - a model defined in Swagger""" # noqa: E501 self._attributes = None + self._ext_id = None self._email_blacklisted = None self._sms_blacklisted = None self._list_ids = None @@ -61,6 +64,8 @@ def __init__(self, attributes=None, email_blacklisted=None, sms_blacklisted=None if attributes is not None: self.attributes = attributes + if ext_id is not None: + self.ext_id = ext_id if email_blacklisted is not None: self.email_blacklisted = email_blacklisted if sms_blacklisted is not None: @@ -95,6 +100,29 @@ def attributes(self, attributes): self._attributes = attributes + @property + def ext_id(self): + """Gets the ext_id of this UpdateContact. # noqa: E501 + + Pass your own Id to update ext_id of a contact. # noqa: E501 + + :return: The ext_id of this UpdateContact. # noqa: E501 + :rtype: str + """ + return self._ext_id + + @ext_id.setter + def ext_id(self, ext_id): + """Sets the ext_id of this UpdateContact. + + Pass your own Id to update ext_id of a contact. # noqa: E501 + + :param ext_id: The ext_id of this UpdateContact. # noqa: E501 + :type: str + """ + + self._ext_id = ext_id + @property def email_blacklisted(self): """Gets the email_blacklisted of this UpdateContact. # noqa: E501 diff --git a/sib_api_v3_sdk/models/update_email_campaign.py b/sib_api_v3_sdk/models/update_email_campaign.py index 629439a..aa3fc59 100644 --- a/sib_api_v3_sdk/models/update_email_campaign.py +++ b/sib_api_v3_sdk/models/update_email_campaign.py @@ -58,7 +58,9 @@ class UpdateEmailCampaign(object): 'winner_delay': 'int', 'ip_warmup_enable': 'bool', 'initial_quota': 'int', - 'increase_rate': 'int' + 'increase_rate': 'int', + 'unsubscription_page_id': 'str', + 'update_form_id': 'str' } attribute_map = { @@ -89,10 +91,12 @@ class UpdateEmailCampaign(object): 'winner_delay': 'winnerDelay', 'ip_warmup_enable': 'ipWarmupEnable', 'initial_quota': 'initialQuota', - 'increase_rate': 'increaseRate' + 'increase_rate': 'increaseRate', + 'unsubscription_page_id': 'unsubscriptionPageId', + 'update_form_id': 'updateFormId' } - def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, recurring=False, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=None, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None): # noqa: E501 + def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url=None, scheduled_at=None, subject=None, reply_to=None, to_field=None, recipients=None, attachment_url=None, inline_image_activation=False, mirror_active=None, recurring=False, footer=None, header=None, utm_campaign=None, params=None, send_at_best_time=None, ab_testing=False, subject_a=None, subject_b=None, split_rule=None, winner_criteria=None, winner_delay=None, ip_warmup_enable=False, initial_quota=None, increase_rate=None, unsubscription_page_id=None, update_form_id=None): # noqa: E501 """UpdateEmailCampaign - a model defined in Swagger""" # noqa: E501 self._tag = None @@ -123,6 +127,8 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self._ip_warmup_enable = None self._initial_quota = None self._increase_rate = None + self._unsubscription_page_id = None + self._update_form_id = None self.discriminator = None if tag is not None: @@ -181,6 +187,10 @@ def __init__(self, tag=None, sender=None, name=None, html_content=None, html_url self.initial_quota = initial_quota if increase_rate is not None: self.increase_rate = increase_rate + if unsubscription_page_id is not None: + self.unsubscription_page_id = unsubscription_page_id + if update_form_id is not None: + self.update_form_id = update_form_id @property def tag(self): @@ -840,6 +850,52 @@ def increase_rate(self, increase_rate): self._increase_rate = increase_rate + @property + def unsubscription_page_id(self): + """Gets the unsubscription_page_id of this UpdateEmailCampaign. # noqa: E501 + + Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. # noqa: E501 + + :return: The unsubscription_page_id of this UpdateEmailCampaign. # noqa: E501 + :rtype: str + """ + return self._unsubscription_page_id + + @unsubscription_page_id.setter + def unsubscription_page_id(self, unsubscription_page_id): + """Sets the unsubscription_page_id of this UpdateEmailCampaign. + + Enter an unsubscription page id. The page id is a 24 digit alphanumeric id that can be found in the URL when editing the page. # noqa: E501 + + :param unsubscription_page_id: The unsubscription_page_id of this UpdateEmailCampaign. # noqa: E501 + :type: str + """ + + self._unsubscription_page_id = unsubscription_page_id + + @property + def update_form_id(self): + """Gets the update_form_id of this UpdateEmailCampaign. # noqa: E501 + + Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. # noqa: E501 + + :return: The update_form_id of this UpdateEmailCampaign. # noqa: E501 + :rtype: str + """ + return self._update_form_id + + @update_form_id.setter + def update_form_id(self, update_form_id): + """Sets the update_form_id of this UpdateEmailCampaign. + + Mandatory if templateId is used containing the {{ update_profile }} tag. Enter an update profile form id. The form id is a 24 digit alphanumeric id that can be found in the URL when editing the form. # noqa: E501 + + :param update_form_id: The update_form_id of this UpdateEmailCampaign. # noqa: E501 + :type: str + """ + + self._update_form_id = update_form_id + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/update_email_campaign_recipients.py b/sib_api_v3_sdk/models/update_email_campaign_recipients.py index 1fa1073..e2d8c63 100644 --- a/sib_api_v3_sdk/models/update_email_campaign_recipients.py +++ b/sib_api_v3_sdk/models/update_email_campaign_recipients.py @@ -32,25 +32,30 @@ class UpdateEmailCampaignRecipients(object): """ swagger_types = { 'exclusion_list_ids': 'list[int]', - 'list_ids': 'list[int]' + 'list_ids': 'list[int]', + 'segment_ids': 'list[int]' } attribute_map = { 'exclusion_list_ids': 'exclusionListIds', - 'list_ids': 'listIds' + 'list_ids': 'listIds', + 'segment_ids': 'segmentIds' } - def __init__(self, exclusion_list_ids=None, list_ids=None): # noqa: E501 + def __init__(self, exclusion_list_ids=None, list_ids=None, segment_ids=None): # noqa: E501 """UpdateEmailCampaignRecipients - a model defined in Swagger""" # noqa: E501 self._exclusion_list_ids = None self._list_ids = None + self._segment_ids = None self.discriminator = None if exclusion_list_ids is not None: self.exclusion_list_ids = exclusion_list_ids if list_ids is not None: self.list_ids = list_ids + if segment_ids is not None: + self.segment_ids = segment_ids @property def exclusion_list_ids(self): @@ -79,7 +84,7 @@ def exclusion_list_ids(self, exclusion_list_ids): def list_ids(self): """Gets the list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 - Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 + Lists Ids to send the campaign to. Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 :return: The list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 :rtype: list[int] @@ -90,7 +95,7 @@ def list_ids(self): def list_ids(self, list_ids): """Sets the list_ids of this UpdateEmailCampaignRecipients. - Lists Ids to send the campaign to. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 + Lists Ids to send the campaign to. Campaign should only be updated with listIds if listIds were used to create it. REQUIRED if already not present in campaign and scheduledAt is not empty # noqa: E501 :param list_ids: The list_ids of this UpdateEmailCampaignRecipients. # noqa: E501 :type: list[int] @@ -98,6 +103,29 @@ def list_ids(self, list_ids): self._list_ids = list_ids + @property + def segment_ids(self): + """Gets the segment_ids of this UpdateEmailCampaignRecipients. # noqa: E501 + + Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it. Segment ids to send the campaign to. # noqa: E501 + + :return: The segment_ids of this UpdateEmailCampaignRecipients. # noqa: E501 + :rtype: list[int] + """ + return self._segment_ids + + @segment_ids.setter + def segment_ids(self, segment_ids): + """Sets the segment_ids of this UpdateEmailCampaignRecipients. + + Mandatory if listIds are not used. Campaign should only be updated with segmentIds if segmentIds were used to create it. Segment ids to send the campaign to. # noqa: E501 + + :param segment_ids: The segment_ids of this UpdateEmailCampaignRecipients. # noqa: E501 + :type: list[int] + """ + + self._segment_ids = segment_ids + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/update_external_feed.py b/sib_api_v3_sdk/models/update_external_feed.py new file mode 100644 index 0000000..17d38ce --- /dev/null +++ b/sib_api_v3_sdk/models/update_external_feed.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class UpdateExternalFeed(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'url': 'str', + 'auth_type': 'str', + 'username': 'str', + 'password': 'str', + 'token': 'str', + 'headers': 'list[GetExternalFeedByUUIDHeaders]', + 'max_retries': 'int', + 'cache': 'bool' + } + + attribute_map = { + 'name': 'name', + 'url': 'url', + 'auth_type': 'authType', + 'username': 'username', + 'password': 'password', + 'token': 'token', + 'headers': 'headers', + 'max_retries': 'maxRetries', + 'cache': 'cache' + } + + def __init__(self, name=None, url=None, auth_type=None, username=None, password=None, token=None, headers=None, max_retries=None, cache=False): # noqa: E501 + """UpdateExternalFeed - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._url = None + self._auth_type = None + self._username = None + self._password = None + self._token = None + self._headers = None + self._max_retries = None + self._cache = None + self.discriminator = None + + if name is not None: + self.name = name + if url is not None: + self.url = url + if auth_type is not None: + self.auth_type = auth_type + if username is not None: + self.username = username + if password is not None: + self.password = password + if token is not None: + self.token = token + if headers is not None: + self.headers = headers + if max_retries is not None: + self.max_retries = max_retries + if cache is not None: + self.cache = cache + + @property + def name(self): + """Gets the name of this UpdateExternalFeed. # noqa: E501 + + Name of the feed # noqa: E501 + + :return: The name of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this UpdateExternalFeed. + + Name of the feed # noqa: E501 + + :param name: The name of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def url(self): + """Gets the url of this UpdateExternalFeed. # noqa: E501 + + URL of the feed # noqa: E501 + + :return: The url of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UpdateExternalFeed. + + URL of the feed # noqa: E501 + + :param url: The url of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + + self._url = url + + @property + def auth_type(self): + """Gets the auth_type of this UpdateExternalFeed. # noqa: E501 + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :return: The auth_type of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._auth_type + + @auth_type.setter + def auth_type(self, auth_type): + """Sets the auth_type of this UpdateExternalFeed. + + Auth type of the feed: * `basic` * `token` * `noAuth` # noqa: E501 + + :param auth_type: The auth_type of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + allowed_values = ["basic", "token", "noAuth"] # noqa: E501 + if auth_type not in allowed_values: + raise ValueError( + "Invalid value for `auth_type` ({0}), must be one of {1}" # noqa: E501 + .format(auth_type, allowed_values) + ) + + self._auth_type = auth_type + + @property + def username(self): + """Gets the username of this UpdateExternalFeed. # noqa: E501 + + Username for authType `basic` # noqa: E501 + + :return: The username of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._username + + @username.setter + def username(self, username): + """Sets the username of this UpdateExternalFeed. + + Username for authType `basic` # noqa: E501 + + :param username: The username of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + + self._username = username + + @property + def password(self): + """Gets the password of this UpdateExternalFeed. # noqa: E501 + + Password for authType `basic` # noqa: E501 + + :return: The password of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._password + + @password.setter + def password(self, password): + """Sets the password of this UpdateExternalFeed. + + Password for authType `basic` # noqa: E501 + + :param password: The password of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + + self._password = password + + @property + def token(self): + """Gets the token of this UpdateExternalFeed. # noqa: E501 + + Token for authType `token` # noqa: E501 + + :return: The token of this UpdateExternalFeed. # noqa: E501 + :rtype: str + """ + return self._token + + @token.setter + def token(self, token): + """Sets the token of this UpdateExternalFeed. + + Token for authType `token` # noqa: E501 + + :param token: The token of this UpdateExternalFeed. # noqa: E501 + :type: str + """ + + self._token = token + + @property + def headers(self): + """Gets the headers of this UpdateExternalFeed. # noqa: E501 + + Custom headers for the feed # noqa: E501 + + :return: The headers of this UpdateExternalFeed. # noqa: E501 + :rtype: list[GetExternalFeedByUUIDHeaders] + """ + return self._headers + + @headers.setter + def headers(self, headers): + """Sets the headers of this UpdateExternalFeed. + + Custom headers for the feed # noqa: E501 + + :param headers: The headers of this UpdateExternalFeed. # noqa: E501 + :type: list[GetExternalFeedByUUIDHeaders] + """ + + self._headers = headers + + @property + def max_retries(self): + """Gets the max_retries of this UpdateExternalFeed. # noqa: E501 + + Maximum number of retries on the feed url # noqa: E501 + + :return: The max_retries of this UpdateExternalFeed. # noqa: E501 + :rtype: int + """ + return self._max_retries + + @max_retries.setter + def max_retries(self, max_retries): + """Sets the max_retries of this UpdateExternalFeed. + + Maximum number of retries on the feed url # noqa: E501 + + :param max_retries: The max_retries of this UpdateExternalFeed. # noqa: E501 + :type: int + """ + if max_retries is not None and max_retries > 5: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value less than or equal to `5`") # noqa: E501 + if max_retries is not None and max_retries < 0: # noqa: E501 + raise ValueError("Invalid value for `max_retries`, must be a value greater than or equal to `0`") # noqa: E501 + + self._max_retries = max_retries + + @property + def cache(self): + """Gets the cache of this UpdateExternalFeed. # noqa: E501 + + Toggle caching of feed url response # noqa: E501 + + :return: The cache of this UpdateExternalFeed. # noqa: E501 + :rtype: bool + """ + return self._cache + + @cache.setter + def cache(self, cache): + """Sets the cache of this UpdateExternalFeed. + + Toggle caching of feed url response # noqa: E501 + + :param cache: The cache of this UpdateExternalFeed. # noqa: E501 + :type: bool + """ + + self._cache = cache + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UpdateExternalFeed, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UpdateExternalFeed): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/update_sms_campaign.py b/sib_api_v3_sdk/models/update_sms_campaign.py index ca571be..e829c20 100644 --- a/sib_api_v3_sdk/models/update_sms_campaign.py +++ b/sib_api_v3_sdk/models/update_sms_campaign.py @@ -36,7 +36,9 @@ class UpdateSmsCampaign(object): 'content': 'str', 'recipients': 'CreateSmsCampaignRecipients', 'scheduled_at': 'str', - 'unicode_enabled': 'bool' + 'unicode_enabled': 'bool', + 'organisation_prefix': 'str', + 'unsubscribe_instruction': 'str' } attribute_map = { @@ -45,10 +47,12 @@ class UpdateSmsCampaign(object): 'content': 'content', 'recipients': 'recipients', 'scheduled_at': 'scheduledAt', - 'unicode_enabled': 'unicodeEnabled' + 'unicode_enabled': 'unicodeEnabled', + 'organisation_prefix': 'organisationPrefix', + 'unsubscribe_instruction': 'unsubscribeInstruction' } - def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False): # noqa: E501 + def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False, organisation_prefix=None, unsubscribe_instruction=None): # noqa: E501 """UpdateSmsCampaign - a model defined in Swagger""" # noqa: E501 self._name = None @@ -57,6 +61,8 @@ def __init__(self, name=None, sender=None, content=None, recipients=None, schedu self._recipients = None self._scheduled_at = None self._unicode_enabled = None + self._organisation_prefix = None + self._unsubscribe_instruction = None self.discriminator = None if name is not None: @@ -71,6 +77,10 @@ def __init__(self, name=None, sender=None, content=None, recipients=None, schedu self.scheduled_at = scheduled_at if unicode_enabled is not None: self.unicode_enabled = unicode_enabled + if organisation_prefix is not None: + self.organisation_prefix = organisation_prefix + if unsubscribe_instruction is not None: + self.unsubscribe_instruction = unsubscribe_instruction @property def name(self): @@ -210,6 +220,52 @@ def unicode_enabled(self, unicode_enabled): self._unicode_enabled = unicode_enabled + @property + def organisation_prefix(self): + """Gets the organisation_prefix of this UpdateSmsCampaign. # noqa: E501 + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :return: The organisation_prefix of this UpdateSmsCampaign. # noqa: E501 + :rtype: str + """ + return self._organisation_prefix + + @organisation_prefix.setter + def organisation_prefix(self, organisation_prefix): + """Sets the organisation_prefix of this UpdateSmsCampaign. + + A recognizable prefix will ensure your audience knows who you are. Recommended by U.S. carriers. This will be added as your Brand Name before the message content. **Prefer verifying maximum length of 160 characters including this prefix in message content to avoid multiple sending of same sms.** # noqa: E501 + + :param organisation_prefix: The organisation_prefix of this UpdateSmsCampaign. # noqa: E501 + :type: str + """ + + self._organisation_prefix = organisation_prefix + + @property + def unsubscribe_instruction(self): + """Gets the unsubscribe_instruction of this UpdateSmsCampaign. # noqa: E501 + + Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501 + + :return: The unsubscribe_instruction of this UpdateSmsCampaign. # noqa: E501 + :rtype: str + """ + return self._unsubscribe_instruction + + @unsubscribe_instruction.setter + def unsubscribe_instruction(self, unsubscribe_instruction): + """Sets the unsubscribe_instruction of this UpdateSmsCampaign. + + Instructions to unsubscribe from future communications. Recommended by U.S. carriers. Must include **STOP** keyword. This will be added as instructions after the end of message content. **Prefer verifying maximum length of 160 characters including this instructions in message content to avoid multiple sending of same sms.** # noqa: E501 + + :param unsubscribe_instruction: The unsubscribe_instruction of this UpdateSmsCampaign. # noqa: E501 + :type: str + """ + + self._unsubscribe_instruction = unsubscribe_instruction + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/upload_image_model.py b/sib_api_v3_sdk/models/upload_image_model.py new file mode 100644 index 0000000..5264c51 --- /dev/null +++ b/sib_api_v3_sdk/models/upload_image_model.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class UploadImageModel(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'url': 'str' + } + + attribute_map = { + 'url': 'url' + } + + def __init__(self, url=None): # noqa: E501 + """UploadImageModel - a model defined in Swagger""" # noqa: E501 + + self._url = None + self.discriminator = None + + self.url = url + + @property + def url(self): + """Gets the url of this UploadImageModel. # noqa: E501 + + URL of the image uploaded # noqa: E501 + + :return: The url of this UploadImageModel. # noqa: E501 + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """Sets the url of this UploadImageModel. + + URL of the image uploaded # noqa: E501 + + :param url: The url of this UploadImageModel. # noqa: E501 + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501 + + self._url = url + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(UploadImageModel, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, UploadImageModel): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/variables_items.py b/sib_api_v3_sdk/models/variables_items.py new file mode 100644 index 0000000..6356c54 --- /dev/null +++ b/sib_api_v3_sdk/models/variables_items.py @@ -0,0 +1,167 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class VariablesItems(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'default': 'str', + 'datatype': 'str' + } + + attribute_map = { + 'name': 'name', + 'default': 'default', + 'datatype': 'datatype' + } + + def __init__(self, name=None, default=None, datatype=None): # noqa: E501 + """VariablesItems - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._default = None + self._datatype = None + self.discriminator = None + + if name is not None: + self.name = name + if default is not None: + self.default = default + if datatype is not None: + self.datatype = datatype + + @property + def name(self): + """Gets the name of this VariablesItems. # noqa: E501 + + + :return: The name of this VariablesItems. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this VariablesItems. + + + :param name: The name of this VariablesItems. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def default(self): + """Gets the default of this VariablesItems. # noqa: E501 + + + :return: The default of this VariablesItems. # noqa: E501 + :rtype: str + """ + return self._default + + @default.setter + def default(self, default): + """Sets the default of this VariablesItems. + + + :param default: The default of this VariablesItems. # noqa: E501 + :type: str + """ + + self._default = default + + @property + def datatype(self): + """Gets the datatype of this VariablesItems. # noqa: E501 + + + :return: The datatype of this VariablesItems. # noqa: E501 + :rtype: str + """ + return self._datatype + + @datatype.setter + def datatype(self, datatype): + """Sets the datatype of this VariablesItems. + + + :param datatype: The datatype of this VariablesItems. # noqa: E501 + :type: str + """ + + self._datatype = datatype + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(VariablesItems, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, VariablesItems): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/whatsapp_camp_stats.py b/sib_api_v3_sdk/models/whatsapp_camp_stats.py new file mode 100644 index 0000000..e6690e7 --- /dev/null +++ b/sib_api_v3_sdk/models/whatsapp_camp_stats.py @@ -0,0 +1,224 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsappCampStats(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'sent': 'int', + 'delivered': 'int', + 'read': 'int', + 'unsubscribe': 'int', + 'not_sent': 'int' + } + + attribute_map = { + 'sent': 'sent', + 'delivered': 'delivered', + 'read': 'read', + 'unsubscribe': 'unsubscribe', + 'not_sent': 'not_sent' + } + + def __init__(self, sent=None, delivered=None, read=None, unsubscribe=None, not_sent=None): # noqa: E501 + """WhatsappCampStats - a model defined in Swagger""" # noqa: E501 + + self._sent = None + self._delivered = None + self._read = None + self._unsubscribe = None + self._not_sent = None + self.discriminator = None + + self.sent = sent + self.delivered = delivered + self.read = read + self.unsubscribe = unsubscribe + self.not_sent = not_sent + + @property + def sent(self): + """Gets the sent of this WhatsappCampStats. # noqa: E501 + + + :return: The sent of this WhatsappCampStats. # noqa: E501 + :rtype: int + """ + return self._sent + + @sent.setter + def sent(self, sent): + """Sets the sent of this WhatsappCampStats. + + + :param sent: The sent of this WhatsappCampStats. # noqa: E501 + :type: int + """ + if sent is None: + raise ValueError("Invalid value for `sent`, must not be `None`") # noqa: E501 + + self._sent = sent + + @property + def delivered(self): + """Gets the delivered of this WhatsappCampStats. # noqa: E501 + + + :return: The delivered of this WhatsappCampStats. # noqa: E501 + :rtype: int + """ + return self._delivered + + @delivered.setter + def delivered(self, delivered): + """Sets the delivered of this WhatsappCampStats. + + + :param delivered: The delivered of this WhatsappCampStats. # noqa: E501 + :type: int + """ + if delivered is None: + raise ValueError("Invalid value for `delivered`, must not be `None`") # noqa: E501 + + self._delivered = delivered + + @property + def read(self): + """Gets the read of this WhatsappCampStats. # noqa: E501 + + + :return: The read of this WhatsappCampStats. # noqa: E501 + :rtype: int + """ + return self._read + + @read.setter + def read(self, read): + """Sets the read of this WhatsappCampStats. + + + :param read: The read of this WhatsappCampStats. # noqa: E501 + :type: int + """ + if read is None: + raise ValueError("Invalid value for `read`, must not be `None`") # noqa: E501 + + self._read = read + + @property + def unsubscribe(self): + """Gets the unsubscribe of this WhatsappCampStats. # noqa: E501 + + + :return: The unsubscribe of this WhatsappCampStats. # noqa: E501 + :rtype: int + """ + return self._unsubscribe + + @unsubscribe.setter + def unsubscribe(self, unsubscribe): + """Sets the unsubscribe of this WhatsappCampStats. + + + :param unsubscribe: The unsubscribe of this WhatsappCampStats. # noqa: E501 + :type: int + """ + if unsubscribe is None: + raise ValueError("Invalid value for `unsubscribe`, must not be `None`") # noqa: E501 + + self._unsubscribe = unsubscribe + + @property + def not_sent(self): + """Gets the not_sent of this WhatsappCampStats. # noqa: E501 + + + :return: The not_sent of this WhatsappCampStats. # noqa: E501 + :rtype: int + """ + return self._not_sent + + @not_sent.setter + def not_sent(self, not_sent): + """Sets the not_sent of this WhatsappCampStats. + + + :param not_sent: The not_sent of this WhatsappCampStats. # noqa: E501 + :type: int + """ + if not_sent is None: + raise ValueError("Invalid value for `not_sent`, must not be `None`") # noqa: E501 + + self._not_sent = not_sent + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(WhatsappCampStats, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WhatsappCampStats): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/sib_api_v3_sdk/models/whatsapp_camp_template.py b/sib_api_v3_sdk/models/whatsapp_camp_template.py new file mode 100644 index 0000000..3ac30d8 --- /dev/null +++ b/sib_api_v3_sdk/models/whatsapp_camp_template.py @@ -0,0 +1,389 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WhatsappCampTemplate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'category': 'str', + 'language': 'str', + 'contains_button': 'bool', + 'display_header': 'bool', + 'header_type': 'str', + 'components': 'list[ComponentItems]', + 'header_variables': 'list[VariablesItems]', + 'body_variables': 'list[VariablesItems]', + 'button_type': 'str', + 'hide_footer': 'bool' + } + + attribute_map = { + 'name': 'name', + 'category': 'category', + 'language': 'language', + 'contains_button': 'contains_button', + 'display_header': 'display_header', + 'header_type': 'header_type', + 'components': 'components', + 'header_variables': 'header_variables', + 'body_variables': 'body_variables', + 'button_type': 'button_type', + 'hide_footer': 'hide_footer' + } + + def __init__(self, name=None, category=None, language=None, contains_button=None, display_header=None, header_type=None, components=None, header_variables=None, body_variables=None, button_type=None, hide_footer=None): # noqa: E501 + """WhatsappCampTemplate - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._category = None + self._language = None + self._contains_button = None + self._display_header = None + self._header_type = None + self._components = None + self._header_variables = None + self._body_variables = None + self._button_type = None + self._hide_footer = None + self.discriminator = None + + if name is not None: + self.name = name + if category is not None: + self.category = category + if language is not None: + self.language = language + if contains_button is not None: + self.contains_button = contains_button + if display_header is not None: + self.display_header = display_header + if header_type is not None: + self.header_type = header_type + if components is not None: + self.components = components + if header_variables is not None: + self.header_variables = header_variables + if body_variables is not None: + self.body_variables = body_variables + if button_type is not None: + self.button_type = button_type + if hide_footer is not None: + self.hide_footer = hide_footer + + @property + def name(self): + """Gets the name of this WhatsappCampTemplate. # noqa: E501 + + name of the template # noqa: E501 + + :return: The name of this WhatsappCampTemplate. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this WhatsappCampTemplate. + + name of the template # noqa: E501 + + :param name: The name of this WhatsappCampTemplate. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def category(self): + """Gets the category of this WhatsappCampTemplate. # noqa: E501 + + description of the template # noqa: E501 + + :return: The category of this WhatsappCampTemplate. # noqa: E501 + :rtype: str + """ + return self._category + + @category.setter + def category(self, category): + """Sets the category of this WhatsappCampTemplate. + + description of the template # noqa: E501 + + :param category: The category of this WhatsappCampTemplate. # noqa: E501 + :type: str + """ + + self._category = category + + @property + def language(self): + """Gets the language of this WhatsappCampTemplate. # noqa: E501 + + language of the template # noqa: E501 + + :return: The language of this WhatsappCampTemplate. # noqa: E501 + :rtype: str + """ + return self._language + + @language.setter + def language(self, language): + """Sets the language of this WhatsappCampTemplate. + + language of the template # noqa: E501 + + :param language: The language of this WhatsappCampTemplate. # noqa: E501 + :type: str + """ + + self._language = language + + @property + def contains_button(self): + """Gets the contains_button of this WhatsappCampTemplate. # noqa: E501 + + + :return: The contains_button of this WhatsappCampTemplate. # noqa: E501 + :rtype: bool + """ + return self._contains_button + + @contains_button.setter + def contains_button(self, contains_button): + """Sets the contains_button of this WhatsappCampTemplate. + + + :param contains_button: The contains_button of this WhatsappCampTemplate. # noqa: E501 + :type: bool + """ + + self._contains_button = contains_button + + @property + def display_header(self): + """Gets the display_header of this WhatsappCampTemplate. # noqa: E501 + + + :return: The display_header of this WhatsappCampTemplate. # noqa: E501 + :rtype: bool + """ + return self._display_header + + @display_header.setter + def display_header(self, display_header): + """Sets the display_header of this WhatsappCampTemplate. + + + :param display_header: The display_header of this WhatsappCampTemplate. # noqa: E501 + :type: bool + """ + + self._display_header = display_header + + @property + def header_type(self): + """Gets the header_type of this WhatsappCampTemplate. # noqa: E501 + + type of header # noqa: E501 + + :return: The header_type of this WhatsappCampTemplate. # noqa: E501 + :rtype: str + """ + return self._header_type + + @header_type.setter + def header_type(self, header_type): + """Sets the header_type of this WhatsappCampTemplate. + + type of header # noqa: E501 + + :param header_type: The header_type of this WhatsappCampTemplate. # noqa: E501 + :type: str + """ + + self._header_type = header_type + + @property + def components(self): + """Gets the components of this WhatsappCampTemplate. # noqa: E501 + + array of component item objects # noqa: E501 + + :return: The components of this WhatsappCampTemplate. # noqa: E501 + :rtype: list[ComponentItems] + """ + return self._components + + @components.setter + def components(self, components): + """Sets the components of this WhatsappCampTemplate. + + array of component item objects # noqa: E501 + + :param components: The components of this WhatsappCampTemplate. # noqa: E501 + :type: list[ComponentItems] + """ + + self._components = components + + @property + def header_variables(self): + """Gets the header_variables of this WhatsappCampTemplate. # noqa: E501 + + array of variables item object # noqa: E501 + + :return: The header_variables of this WhatsappCampTemplate. # noqa: E501 + :rtype: list[VariablesItems] + """ + return self._header_variables + + @header_variables.setter + def header_variables(self, header_variables): + """Sets the header_variables of this WhatsappCampTemplate. + + array of variables item object # noqa: E501 + + :param header_variables: The header_variables of this WhatsappCampTemplate. # noqa: E501 + :type: list[VariablesItems] + """ + + self._header_variables = header_variables + + @property + def body_variables(self): + """Gets the body_variables of this WhatsappCampTemplate. # noqa: E501 + + array of variables item variables # noqa: E501 + + :return: The body_variables of this WhatsappCampTemplate. # noqa: E501 + :rtype: list[VariablesItems] + """ + return self._body_variables + + @body_variables.setter + def body_variables(self, body_variables): + """Sets the body_variables of this WhatsappCampTemplate. + + array of variables item variables # noqa: E501 + + :param body_variables: The body_variables of this WhatsappCampTemplate. # noqa: E501 + :type: list[VariablesItems] + """ + + self._body_variables = body_variables + + @property + def button_type(self): + """Gets the button_type of this WhatsappCampTemplate. # noqa: E501 + + + :return: The button_type of this WhatsappCampTemplate. # noqa: E501 + :rtype: str + """ + return self._button_type + + @button_type.setter + def button_type(self, button_type): + """Sets the button_type of this WhatsappCampTemplate. + + + :param button_type: The button_type of this WhatsappCampTemplate. # noqa: E501 + :type: str + """ + + self._button_type = button_type + + @property + def hide_footer(self): + """Gets the hide_footer of this WhatsappCampTemplate. # noqa: E501 + + + :return: The hide_footer of this WhatsappCampTemplate. # noqa: E501 + :rtype: bool + """ + return self._hide_footer + + @hide_footer.setter + def hide_footer(self, hide_footer): + """Sets the hide_footer of this WhatsappCampTemplate. + + + :param hide_footer: The hide_footer of this WhatsappCampTemplate. # noqa: E501 + :type: bool + """ + + self._hide_footer = hide_footer + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(WhatsappCampTemplate, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, WhatsappCampTemplate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/test/test_body10.py b/test/test_body10.py new file mode 100644 index 0000000..f225a00 --- /dev/null +++ b/test/test_body10.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body10 import Body10 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody10(unittest.TestCase): + """Body10 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody10(self): + """Test Body10""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body10.Body10() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body11.py b/test/test_body11.py new file mode 100644 index 0000000..a886d80 --- /dev/null +++ b/test/test_body11.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body11 import Body11 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody11(unittest.TestCase): + """Body11 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody11(self): + """Test Body11""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body11.Body11() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body12.py b/test/test_body12.py new file mode 100644 index 0000000..46ac6a1 --- /dev/null +++ b/test/test_body12.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body12 import Body12 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody12(unittest.TestCase): + """Body12 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody12(self): + """Test Body12""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body12.Body12() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body2.py b/test/test_body2.py new file mode 100644 index 0000000..942c6e6 --- /dev/null +++ b/test/test_body2.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body2 import Body2 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody2(unittest.TestCase): + """Body2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody2(self): + """Test Body2""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body2.Body2() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body3.py b/test/test_body3.py new file mode 100644 index 0000000..822d284 --- /dev/null +++ b/test/test_body3.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body3 import Body3 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody3(unittest.TestCase): + """Body3 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody3(self): + """Test Body3""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body3.Body3() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body4.py b/test/test_body4.py new file mode 100644 index 0000000..1b74817 --- /dev/null +++ b/test/test_body4.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body4 import Body4 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody4(unittest.TestCase): + """Body4 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody4(self): + """Test Body4""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body4.Body4() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body5.py b/test/test_body5.py new file mode 100644 index 0000000..cfa2933 --- /dev/null +++ b/test/test_body5.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body5 import Body5 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody5(unittest.TestCase): + """Body5 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody5(self): + """Test Body5""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body5.Body5() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body6.py b/test/test_body6.py new file mode 100644 index 0000000..ffa134e --- /dev/null +++ b/test/test_body6.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body6 import Body6 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody6(unittest.TestCase): + """Body6 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody6(self): + """Test Body6""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body6.Body6() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body7.py b/test/test_body7.py new file mode 100644 index 0000000..2154933 --- /dev/null +++ b/test/test_body7.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body7 import Body7 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody7(unittest.TestCase): + """Body7 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody7(self): + """Test Body7""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body7.Body7() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body8.py b/test/test_body8.py new file mode 100644 index 0000000..6d1ee8a --- /dev/null +++ b/test/test_body8.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body8 import Body8 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody8(unittest.TestCase): + """Body8 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody8(self): + """Test Body8""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body8.Body8() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body9.py b/test/test_body9.py new file mode 100644 index 0000000..d6bdc9a --- /dev/null +++ b/test/test_body9.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body9 import Body9 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody9(unittest.TestCase): + """Body9 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody9(self): + """Test Body9""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body9.Body9() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body_variables_items.py b/test/test_body_variables_items.py new file mode 100644 index 0000000..b0d986e --- /dev/null +++ b/test/test_body_variables_items.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.body_variables_items import BodyVariablesItems # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBodyVariablesItems(unittest.TestCase): + """BodyVariablesItems unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBodyVariablesItems(self): + """Test BodyVariablesItems""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body_variables_items.BodyVariablesItems() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_companies_api.py b/test/test_companies_api.py new file mode 100644 index 0000000..f9ff1d6 --- /dev/null +++ b/test/test_companies_api.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.companies_api import CompaniesApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCompaniesApi(unittest.TestCase): + """CompaniesApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.companies_api.CompaniesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_companies_attributes_get(self): + """Test case for companies_attributes_get + + Get company attributes # noqa: E501 + """ + pass + + def test_companies_get(self): + """Test case for companies_get + + Get all companies # noqa: E501 + """ + pass + + def test_companies_id_delete(self): + """Test case for companies_id_delete + + Delete a company # noqa: E501 + """ + pass + + def test_companies_id_get(self): + """Test case for companies_id_get + + Get a company # noqa: E501 + """ + pass + + def test_companies_id_patch(self): + """Test case for companies_id_patch + + Update a company # noqa: E501 + """ + pass + + def test_companies_link_unlink_id_patch(self): + """Test case for companies_link_unlink_id_patch + + Link and Unlink company with contacts and deals # noqa: E501 + """ + pass + + def test_companies_post(self): + """Test case for companies_post + + Create a company # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_companies_list.py b/test/test_companies_list.py new file mode 100644 index 0000000..f25c9a0 --- /dev/null +++ b/test/test_companies_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.companies_list import CompaniesList # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCompaniesList(unittest.TestCase): + """CompaniesList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompaniesList(self): + """Test CompaniesList""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.companies_list.CompaniesList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_company.py b/test/test_company.py new file mode 100644 index 0000000..7b5892e --- /dev/null +++ b/test/test_company.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.company import Company # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCompany(unittest.TestCase): + """Company unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompany(self): + """Test Company""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.company.Company() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_company_attributes.py b/test/test_company_attributes.py new file mode 100644 index 0000000..24db57d --- /dev/null +++ b/test/test_company_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.company_attributes import CompanyAttributes # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCompanyAttributes(unittest.TestCase): + """CompanyAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompanyAttributes(self): + """Test CompanyAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.company_attributes.CompanyAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_company_attributes_inner.py b/test/test_company_attributes_inner.py new file mode 100644 index 0000000..a516270 --- /dev/null +++ b/test/test_company_attributes_inner.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.company_attributes_inner import CompanyAttributesInner # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCompanyAttributesInner(unittest.TestCase): + """CompanyAttributesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCompanyAttributesInner(self): + """Test CompanyAttributesInner""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.company_attributes_inner.CompanyAttributesInner() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_component_items.py b/test/test_component_items.py new file mode 100644 index 0000000..2e81615 --- /dev/null +++ b/test/test_component_items.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.component_items import ComponentItems # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestComponentItems(unittest.TestCase): + """ComponentItems unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testComponentItems(self): + """Test ComponentItems""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.component_items.ComponentItems() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversations_api.py b/test/test_conversations_api.py new file mode 100644 index 0000000..7fe9ed0 --- /dev/null +++ b/test/test_conversations_api.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.conversations_api import ConversationsApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestConversationsApi(unittest.TestCase): + """ConversationsApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.conversations_api.ConversationsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_conversations_agent_online_ping_post(self): + """Test case for conversations_agent_online_ping_post + + Sets agent’s status to online for 2-3 minutes # noqa: E501 + """ + pass + + def test_conversations_messages_id_delete(self): + """Test case for conversations_messages_id_delete + + Delete a message sent by an agent # noqa: E501 + """ + pass + + def test_conversations_messages_id_get(self): + """Test case for conversations_messages_id_get + + Get a message # noqa: E501 + """ + pass + + def test_conversations_messages_id_put(self): + """Test case for conversations_messages_id_put + + Update a message sent by an agent # noqa: E501 + """ + pass + + def test_conversations_messages_post(self): + """Test case for conversations_messages_post + + Send a message as an agent # noqa: E501 + """ + pass + + def test_conversations_pushed_messages_id_delete(self): + """Test case for conversations_pushed_messages_id_delete + + Delete an automated message # noqa: E501 + """ + pass + + def test_conversations_pushed_messages_id_get(self): + """Test case for conversations_pushed_messages_id_get + + Get an automated message # noqa: E501 + """ + pass + + def test_conversations_pushed_messages_id_put(self): + """Test case for conversations_pushed_messages_id_put + + Update an automated message # noqa: E501 + """ + pass + + def test_conversations_pushed_messages_post(self): + """Test case for conversations_pushed_messages_post + + Send an automated message to a visitor # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversations_message.py b/test/test_conversations_message.py new file mode 100644 index 0000000..8f9c8e8 --- /dev/null +++ b/test/test_conversations_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.conversations_message import ConversationsMessage # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestConversationsMessage(unittest.TestCase): + """ConversationsMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversationsMessage(self): + """Test ConversationsMessage""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.conversations_message.ConversationsMessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversations_message_file.py b/test/test_conversations_message_file.py new file mode 100644 index 0000000..adf4a57 --- /dev/null +++ b/test/test_conversations_message_file.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.conversations_message_file import ConversationsMessageFile # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestConversationsMessageFile(unittest.TestCase): + """ConversationsMessageFile unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversationsMessageFile(self): + """Test ConversationsMessageFile""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.conversations_message_file.ConversationsMessageFile() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_conversations_message_file_image_info.py b/test/test_conversations_message_file_image_info.py new file mode 100644 index 0000000..61748a2 --- /dev/null +++ b/test/test_conversations_message_file_image_info.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.conversations_message_file_image_info import ConversationsMessageFileImageInfo # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestConversationsMessageFileImageInfo(unittest.TestCase): + """ConversationsMessageFileImageInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testConversationsMessageFileImageInfo(self): + """Test ConversationsMessageFileImageInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.conversations_message_file_image_info.ConversationsMessageFileImageInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_api_key_request.py b/test/test_create_api_key_request.py new file mode 100644 index 0000000..944b5d1 --- /dev/null +++ b/test/test_create_api_key_request.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_api_key_request import CreateApiKeyRequest # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateApiKeyRequest(unittest.TestCase): + """CreateApiKeyRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateApiKeyRequest(self): + """Test CreateApiKeyRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_api_key_request.CreateApiKeyRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_api_key_response.py b/test/test_create_api_key_response.py new file mode 100644 index 0000000..65bdeb5 --- /dev/null +++ b/test/test_create_api_key_response.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_api_key_response import CreateApiKeyResponse # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateApiKeyResponse(unittest.TestCase): + """CreateApiKeyResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateApiKeyResponse(self): + """Test CreateApiKeyResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_api_key_response.CreateApiKeyResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_category_model.py b/test/test_create_category_model.py new file mode 100644 index 0000000..b4906a8 --- /dev/null +++ b/test/test_create_category_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_category_model import CreateCategoryModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateCategoryModel(unittest.TestCase): + """CreateCategoryModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateCategoryModel(self): + """Test CreateCategoryModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_category_model.CreateCategoryModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_external_feed.py b/test/test_create_external_feed.py new file mode 100644 index 0000000..6ec923a --- /dev/null +++ b/test/test_create_external_feed.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_external_feed import CreateExternalFeed # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateExternalFeed(unittest.TestCase): + """CreateExternalFeed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateExternalFeed(self): + """Test CreateExternalFeed""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_external_feed.CreateExternalFeed() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_product_model.py b/test/test_create_product_model.py new file mode 100644 index 0000000..f0bcf96 --- /dev/null +++ b/test/test_create_product_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_product_model import CreateProductModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateProductModel(unittest.TestCase): + """CreateProductModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateProductModel(self): + """Test CreateProductModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_product_model.CreateProductModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_batch_category.py b/test/test_create_update_batch_category.py new file mode 100644 index 0000000..b02219a --- /dev/null +++ b/test/test_create_update_batch_category.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_batch_category import CreateUpdateBatchCategory # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateBatchCategory(unittest.TestCase): + """CreateUpdateBatchCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateBatchCategory(self): + """Test CreateUpdateBatchCategory""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_batch_category.CreateUpdateBatchCategory() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_batch_category_model.py b/test/test_create_update_batch_category_model.py new file mode 100644 index 0000000..049d6dd --- /dev/null +++ b/test/test_create_update_batch_category_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_batch_category_model import CreateUpdateBatchCategoryModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateBatchCategoryModel(unittest.TestCase): + """CreateUpdateBatchCategoryModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateBatchCategoryModel(self): + """Test CreateUpdateBatchCategoryModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_batch_category_model.CreateUpdateBatchCategoryModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_batch_products.py b/test/test_create_update_batch_products.py new file mode 100644 index 0000000..2f1ac6d --- /dev/null +++ b/test/test_create_update_batch_products.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_batch_products import CreateUpdateBatchProducts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateBatchProducts(unittest.TestCase): + """CreateUpdateBatchProducts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateBatchProducts(self): + """Test CreateUpdateBatchProducts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_batch_products.CreateUpdateBatchProducts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_batch_products_model.py b/test/test_create_update_batch_products_model.py new file mode 100644 index 0000000..335fafe --- /dev/null +++ b/test/test_create_update_batch_products_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_batch_products_model import CreateUpdateBatchProductsModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateBatchProductsModel(unittest.TestCase): + """CreateUpdateBatchProductsModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateBatchProductsModel(self): + """Test CreateUpdateBatchProductsModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_batch_products_model.CreateUpdateBatchProductsModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_categories.py b/test/test_create_update_categories.py new file mode 100644 index 0000000..ac56975 --- /dev/null +++ b/test/test_create_update_categories.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_categories import CreateUpdateCategories # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateCategories(unittest.TestCase): + """CreateUpdateCategories unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateCategories(self): + """Test CreateUpdateCategories""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_categories.CreateUpdateCategories() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_category.py b/test/test_create_update_category.py new file mode 100644 index 0000000..a044091 --- /dev/null +++ b/test/test_create_update_category.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_category import CreateUpdateCategory # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateCategory(unittest.TestCase): + """CreateUpdateCategory unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateCategory(self): + """Test CreateUpdateCategory""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_category.CreateUpdateCategory() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_product.py b/test/test_create_update_product.py new file mode 100644 index 0000000..9f8e0db --- /dev/null +++ b/test/test_create_update_product.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_product import CreateUpdateProduct # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateProduct(unittest.TestCase): + """CreateUpdateProduct unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateProduct(self): + """Test CreateUpdateProduct""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_product.CreateUpdateProduct() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_update_products.py b/test/test_create_update_products.py new file mode 100644 index 0000000..fa106ce --- /dev/null +++ b/test/test_create_update_products.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.create_update_products import CreateUpdateProducts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateUpdateProducts(unittest.TestCase): + """CreateUpdateProducts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateUpdateProducts(self): + """Test CreateUpdateProducts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_update_products.CreateUpdateProducts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_created_batch_id.py b/test/test_created_batch_id.py new file mode 100644 index 0000000..7b5d465 --- /dev/null +++ b/test/test_created_batch_id.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.created_batch_id import CreatedBatchId # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreatedBatchId(unittest.TestCase): + """CreatedBatchId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreatedBatchId(self): + """Test CreatedBatchId""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.created_batch_id.CreatedBatchId() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deal.py b/test/test_deal.py new file mode 100644 index 0000000..269b3bb --- /dev/null +++ b/test/test_deal.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.deal import Deal # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestDeal(unittest.TestCase): + """Deal unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDeal(self): + """Test Deal""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.deal.Deal() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deal_attributes.py b/test/test_deal_attributes.py new file mode 100644 index 0000000..00030db --- /dev/null +++ b/test/test_deal_attributes.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.deal_attributes import DealAttributes # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestDealAttributes(unittest.TestCase): + """DealAttributes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDealAttributes(self): + """Test DealAttributes""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.deal_attributes.DealAttributes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deal_attributes_inner.py b/test/test_deal_attributes_inner.py new file mode 100644 index 0000000..8b10ada --- /dev/null +++ b/test/test_deal_attributes_inner.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.deal_attributes_inner import DealAttributesInner # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestDealAttributesInner(unittest.TestCase): + """DealAttributesInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDealAttributesInner(self): + """Test DealAttributesInner""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.deal_attributes_inner.DealAttributesInner() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deals_api.py b/test/test_deals_api.py new file mode 100644 index 0000000..acd82c1 --- /dev/null +++ b/test/test_deals_api.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.deals_api import DealsApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestDealsApi(unittest.TestCase): + """DealsApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.deals_api.DealsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_crm_attributes_deals_get(self): + """Test case for crm_attributes_deals_get + + Get deal attributes # noqa: E501 + """ + pass + + def test_crm_deals_get(self): + """Test case for crm_deals_get + + Get all deals # noqa: E501 + """ + pass + + def test_crm_deals_id_delete(self): + """Test case for crm_deals_id_delete + + Delete a deal # noqa: E501 + """ + pass + + def test_crm_deals_id_get(self): + """Test case for crm_deals_id_get + + Get a deal # noqa: E501 + """ + pass + + def test_crm_deals_id_patch(self): + """Test case for crm_deals_id_patch + + Update a deal # noqa: E501 + """ + pass + + def test_crm_deals_link_unlink_id_patch(self): + """Test case for crm_deals_link_unlink_id_patch + + Link and Unlink a deal with contacts and companies # noqa: E501 + """ + pass + + def test_crm_deals_post(self): + """Test case for crm_deals_post + + Create a deal # noqa: E501 + """ + pass + + def test_crm_pipeline_details_get(self): + """Test case for crm_pipeline_details_get + + Get pipeline stages # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_deals_list.py b/test/test_deals_list.py new file mode 100644 index 0000000..52982d7 --- /dev/null +++ b/test/test_deals_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.deals_list import DealsList # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestDealsList(unittest.TestCase): + """DealsList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testDealsList(self): + """Test DealsList""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.deals_list.DealsList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ecommerce_api.py b/test/test_ecommerce_api.py new file mode 100644 index 0000000..8a79fa3 --- /dev/null +++ b/test/test_ecommerce_api.py @@ -0,0 +1,111 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.ecommerce_api import EcommerceApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestEcommerceApi(unittest.TestCase): + """EcommerceApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.ecommerce_api.EcommerceApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_batch_order(self): + """Test case for create_batch_order + + Create orders in batch # noqa: E501 + """ + pass + + def test_create_order(self): + """Test case for create_order + + Managing the status of the order # noqa: E501 + """ + pass + + def test_create_update_batch_category(self): + """Test case for create_update_batch_category + + Create categories in batch # noqa: E501 + """ + pass + + def test_create_update_batch_products(self): + """Test case for create_update_batch_products + + Create products in batch # noqa: E501 + """ + pass + + def test_create_update_category(self): + """Test case for create_update_category + + Create/Update a category # noqa: E501 + """ + pass + + def test_create_update_product(self): + """Test case for create_update_product + + Create/Update a product # noqa: E501 + """ + pass + + def test_ecommerce_activate_post(self): + """Test case for ecommerce_activate_post + + Activate the eCommerce app # noqa: E501 + """ + pass + + def test_get_categories(self): + """Test case for get_categories + + Return all your categories # noqa: E501 + """ + pass + + def test_get_category_info(self): + """Test case for get_category_info + + Get a category details # noqa: E501 + """ + pass + + def test_get_product_info(self): + """Test case for get_product_info + + Get a product's details # noqa: E501 + """ + pass + + def test_get_products(self): + """Test case for get_products + + Return all your products # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_external_feeds_api.py b/test/test_external_feeds_api.py new file mode 100644 index 0000000..3b9d43e --- /dev/null +++ b/test/test_external_feeds_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.external_feeds_api import ExternalFeedsApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestExternalFeedsApi(unittest.TestCase): + """ExternalFeedsApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.external_feeds_api.ExternalFeedsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_create_external_feed(self): + """Test case for create_external_feed + + Create an external feed # noqa: E501 + """ + pass + + def test_delete_external_feed(self): + """Test case for delete_external_feed + + Delete an external feed # noqa: E501 + """ + pass + + def test_get_all_external_feeds(self): + """Test case for get_all_external_feeds + + Fetch all external feeds # noqa: E501 + """ + pass + + def test_get_external_feed_by_uuid(self): + """Test case for get_external_feed_by_uuid + + Get an external feed by UUID # noqa: E501 + """ + pass + + def test_update_external_feed(self): + """Test case for update_external_feed + + Update an external feed # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file_downloadable_link.py b/test/test_file_downloadable_link.py new file mode 100644 index 0000000..3f66477 --- /dev/null +++ b/test/test_file_downloadable_link.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.file_downloadable_link import FileDownloadableLink # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestFileDownloadableLink(unittest.TestCase): + """FileDownloadableLink unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileDownloadableLink(self): + """Test FileDownloadableLink""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.file_downloadable_link.FileDownloadableLink() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_file_list.py b/test/test_file_list.py new file mode 100644 index 0000000..23c4d4e --- /dev/null +++ b/test/test_file_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.file_list import FileList # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestFileList(unittest.TestCase): + """FileList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileList(self): + """Test FileList""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.file_list.FileList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_files_api.py b/test/test_files_api.py new file mode 100644 index 0000000..519d22e --- /dev/null +++ b/test/test_files_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.files_api import FilesApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestFilesApi(unittest.TestCase): + """FilesApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.files_api.FilesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_crm_files_get(self): + """Test case for crm_files_get + + Get all files # noqa: E501 + """ + pass + + def test_crm_files_id_data_get(self): + """Test case for crm_files_id_data_get + + Get file details # noqa: E501 + """ + pass + + def test_crm_files_id_delete(self): + """Test case for crm_files_id_delete + + Delete a file # noqa: E501 + """ + pass + + def test_crm_files_id_get(self): + """Test case for crm_files_id_get + + Download a file # noqa: E501 + """ + pass + + def test_crm_files_post(self): + """Test case for crm_files_post + + Upload a file # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_all_external_feeds.py b/test/test_get_all_external_feeds.py new file mode 100644 index 0000000..e39d39e --- /dev/null +++ b/test/test_get_all_external_feeds.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_all_external_feeds import GetAllExternalFeeds # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetAllExternalFeeds(unittest.TestCase): + """GetAllExternalFeeds unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetAllExternalFeeds(self): + """Test GetAllExternalFeeds""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_all_external_feeds.GetAllExternalFeeds() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_all_external_feeds_feeds.py b/test/test_get_all_external_feeds_feeds.py new file mode 100644 index 0000000..5b420e9 --- /dev/null +++ b/test/test_get_all_external_feeds_feeds.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_all_external_feeds_feeds import GetAllExternalFeedsFeeds # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetAllExternalFeedsFeeds(unittest.TestCase): + """GetAllExternalFeedsFeeds unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetAllExternalFeedsFeeds(self): + """Test GetAllExternalFeedsFeeds""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_all_external_feeds_feeds.GetAllExternalFeedsFeeds() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_categories.py b/test/test_get_categories.py new file mode 100644 index 0000000..8157faf --- /dev/null +++ b/test/test_get_categories.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_categories import GetCategories # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetCategories(unittest.TestCase): + """GetCategories unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCategories(self): + """Test GetCategories""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_categories.GetCategories() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_category_details.py b/test/test_get_category_details.py new file mode 100644 index 0000000..26bcded --- /dev/null +++ b/test/test_get_category_details.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_category_details import GetCategoryDetails # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetCategoryDetails(unittest.TestCase): + """GetCategoryDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetCategoryDetails(self): + """Test GetCategoryDetails""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_category_details.GetCategoryDetails() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_external_feed_by_uuid.py b/test/test_get_external_feed_by_uuid.py new file mode 100644 index 0000000..28be18d --- /dev/null +++ b/test/test_get_external_feed_by_uuid.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_external_feed_by_uuid import GetExternalFeedByUUID # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetExternalFeedByUUID(unittest.TestCase): + """GetExternalFeedByUUID unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetExternalFeedByUUID(self): + """Test GetExternalFeedByUUID""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_external_feed_by_uuid.GetExternalFeedByUUID() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_external_feed_by_uuid_headers.py b/test/test_get_external_feed_by_uuid_headers.py new file mode 100644 index 0000000..73356f9 --- /dev/null +++ b/test/test_get_external_feed_by_uuid_headers.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_external_feed_by_uuid_headers import GetExternalFeedByUUIDHeaders # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetExternalFeedByUUIDHeaders(unittest.TestCase): + """GetExternalFeedByUUIDHeaders unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetExternalFeedByUUIDHeaders(self): + """Test GetExternalFeedByUUIDHeaders""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_external_feed_by_uuid_headers.GetExternalFeedByUUIDHeaders() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_product_details.py b/test/test_get_product_details.py new file mode 100644 index 0000000..b874dee --- /dev/null +++ b/test/test_get_product_details.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_product_details import GetProductDetails # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetProductDetails(unittest.TestCase): + """GetProductDetails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetProductDetails(self): + """Test GetProductDetails""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_product_details.GetProductDetails() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_products.py b/test/test_get_products.py new file mode 100644 index 0000000..ae37dfa --- /dev/null +++ b/test/test_get_products.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_products import GetProducts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetProducts(unittest.TestCase): + """GetProducts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetProducts(self): + """Test GetProducts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_products.GetProducts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_wa_templates.py b/test/test_get_wa_templates.py new file mode 100644 index 0000000..d7943e9 --- /dev/null +++ b/test/test_get_wa_templates.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_wa_templates import GetWATemplates # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetWATemplates(unittest.TestCase): + """GetWATemplates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetWATemplates(self): + """Test GetWATemplates""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_wa_templates.GetWATemplates() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_wa_templates_templates.py b/test/test_get_wa_templates_templates.py new file mode 100644 index 0000000..1bee915 --- /dev/null +++ b/test/test_get_wa_templates_templates.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_wa_templates_templates import GetWATemplatesTemplates # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetWATemplatesTemplates(unittest.TestCase): + """GetWATemplatesTemplates unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetWATemplatesTemplates(self): + """Test GetWATemplatesTemplates""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_wa_templates_templates.GetWATemplatesTemplates() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_whatsapp_campaign_overview.py b/test/test_get_whatsapp_campaign_overview.py new file mode 100644 index 0000000..b830c78 --- /dev/null +++ b/test/test_get_whatsapp_campaign_overview.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_whatsapp_campaign_overview import GetWhatsappCampaignOverview # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetWhatsappCampaignOverview(unittest.TestCase): + """GetWhatsappCampaignOverview unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetWhatsappCampaignOverview(self): + """Test GetWhatsappCampaignOverview""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_whatsapp_campaign_overview.GetWhatsappCampaignOverview() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_whatsapp_event_report.py b/test/test_get_whatsapp_event_report.py new file mode 100644 index 0000000..210d592 --- /dev/null +++ b/test/test_get_whatsapp_event_report.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_whatsapp_event_report import GetWhatsappEventReport # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetWhatsappEventReport(unittest.TestCase): + """GetWhatsappEventReport unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetWhatsappEventReport(self): + """Test GetWhatsappEventReport""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_whatsapp_event_report.GetWhatsappEventReport() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_whatsapp_event_report_events.py b/test/test_get_whatsapp_event_report_events.py new file mode 100644 index 0000000..8e032ba --- /dev/null +++ b/test/test_get_whatsapp_event_report_events.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_whatsapp_event_report_events import GetWhatsappEventReportEvents # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetWhatsappEventReportEvents(unittest.TestCase): + """GetWhatsappEventReportEvents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetWhatsappEventReportEvents(self): + """Test GetWhatsappEventReportEvents""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_whatsapp_event_report_events.GetWhatsappEventReportEvents() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py new file mode 100644 index 0000000..a7968a6 --- /dev/null +++ b/test/test_inline_response200.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.inline_response200 import InlineResponse200 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestInlineResponse200(unittest.TestCase): + """InlineResponse200 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse200(self): + """Test InlineResponse200""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.inline_response200.InlineResponse200() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2011.py b/test/test_inline_response2011.py new file mode 100644 index 0000000..d8bb734 --- /dev/null +++ b/test/test_inline_response2011.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.inline_response2011 import InlineResponse2011 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestInlineResponse2011(unittest.TestCase): + """InlineResponse2011 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2011(self): + """Test InlineResponse2011""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.inline_response2011.InlineResponse2011() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2012.py b/test/test_inline_response2012.py new file mode 100644 index 0000000..bb3dcbf --- /dev/null +++ b/test/test_inline_response2012.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.inline_response2012 import InlineResponse2012 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestInlineResponse2012(unittest.TestCase): + """InlineResponse2012 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2012(self): + """Test InlineResponse2012""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.inline_response2012.InlineResponse2012() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2013.py b/test/test_inline_response2013.py new file mode 100644 index 0000000..d7a171a --- /dev/null +++ b/test/test_inline_response2013.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.inline_response2013 import InlineResponse2013 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestInlineResponse2013(unittest.TestCase): + """InlineResponse2013 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2013(self): + """Test InlineResponse2013""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.inline_response2013.InlineResponse2013() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_notes_api.py b/test/test_notes_api.py new file mode 100644 index 0000000..489fdbe --- /dev/null +++ b/test/test_notes_api.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.notes_api import NotesApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestNotesApi(unittest.TestCase): + """NotesApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.notes_api.NotesApi() # noqa: E501 + + def tearDown(self): + pass + + def test_crm_notes_get(self): + """Test case for crm_notes_get + + Get all notes # noqa: E501 + """ + pass + + def test_crm_notes_id_delete(self): + """Test case for crm_notes_id_delete + + Delete a note # noqa: E501 + """ + pass + + def test_crm_notes_id_get(self): + """Test case for crm_notes_id_get + + Get a note # noqa: E501 + """ + pass + + def test_crm_notes_id_patch(self): + """Test case for crm_notes_id_patch + + Update a note # noqa: E501 + """ + pass + + def test_crm_notes_post(self): + """Test case for crm_notes_post + + Create a note # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_order.py b/test/test_order.py new file mode 100644 index 0000000..630dbd8 --- /dev/null +++ b/test/test_order.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.order import Order # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestOrder(unittest.TestCase): + """Order unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrder(self): + """Test Order""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.order.Order() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_order_batch.py b/test/test_order_batch.py new file mode 100644 index 0000000..837b140 --- /dev/null +++ b/test/test_order_batch.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.order_batch import OrderBatch # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestOrderBatch(unittest.TestCase): + """OrderBatch unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrderBatch(self): + """Test OrderBatch""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.order_batch.OrderBatch() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_order_billing.py b/test/test_order_billing.py new file mode 100644 index 0000000..2635549 --- /dev/null +++ b/test/test_order_billing.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.order_billing import OrderBilling # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestOrderBilling(unittest.TestCase): + """OrderBilling unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrderBilling(self): + """Test OrderBilling""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.order_billing.OrderBilling() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_order_products.py b/test/test_order_products.py new file mode 100644 index 0000000..21b6207 --- /dev/null +++ b/test/test_order_products.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.order_products import OrderProducts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestOrderProducts(unittest.TestCase): + """OrderProducts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOrderProducts(self): + """Test OrderProducts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.order_products.OrderProducts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pipeline.py b/test/test_pipeline.py new file mode 100644 index 0000000..92287c5 --- /dev/null +++ b/test/test_pipeline.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.pipeline import Pipeline # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestPipeline(unittest.TestCase): + """Pipeline unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPipeline(self): + """Test Pipeline""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.pipeline.Pipeline() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_pipeline_stage.py b/test/test_pipeline_stage.py new file mode 100644 index 0000000..73515da --- /dev/null +++ b/test/test_pipeline_stage.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.pipeline_stage import PipelineStage # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestPipelineStage(unittest.TestCase): + """PipelineStage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPipelineStage(self): + """Test PipelineStage""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.pipeline_stage.PipelineStage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_send_whatsapp_message.py b/test/test_send_whatsapp_message.py new file mode 100644 index 0000000..621c95a --- /dev/null +++ b/test/test_send_whatsapp_message.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.send_whatsapp_message import SendWhatsappMessage # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSendWhatsappMessage(unittest.TestCase): + """SendWhatsappMessage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSendWhatsappMessage(self): + """Test SendWhatsappMessage""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.send_whatsapp_message.SendWhatsappMessage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_tasks_api.py b/test/test_tasks_api.py new file mode 100644 index 0000000..69dde2a --- /dev/null +++ b/test/test_tasks_api.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.tasks_api import TasksApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestTasksApi(unittest.TestCase): + """TasksApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.tasks_api.TasksApi() # noqa: E501 + + def tearDown(self): + pass + + def test_crm_tasks_get(self): + """Test case for crm_tasks_get + + Get all tasks # noqa: E501 + """ + pass + + def test_crm_tasks_id_delete(self): + """Test case for crm_tasks_id_delete + + Delete a task # noqa: E501 + """ + pass + + def test_crm_tasks_id_get(self): + """Test case for crm_tasks_id_get + + Get a task # noqa: E501 + """ + pass + + def test_crm_tasks_id_patch(self): + """Test case for crm_tasks_id_patch + + Update a task # noqa: E501 + """ + pass + + def test_crm_tasks_post(self): + """Test case for crm_tasks_post + + Create a task # noqa: E501 + """ + pass + + def test_crm_tasktypes_get(self): + """Test case for crm_tasktypes_get + + Get all task types # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_transactional_whats_app_api.py b/test/test_transactional_whats_app_api.py new file mode 100644 index 0000000..f39549d --- /dev/null +++ b/test/test_transactional_whats_app_api.py @@ -0,0 +1,48 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.transactional_whats_app_api import TransactionalWhatsAppApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestTransactionalWhatsAppApi(unittest.TestCase): + """TransactionalWhatsAppApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.transactional_whats_app_api.TransactionalWhatsAppApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_whatsapp_event_report(self): + """Test case for get_whatsapp_event_report + + Get all your WhatsApp activity (unaggregated events) # noqa: E501 + """ + pass + + def test_send_whatsapp_message(self): + """Test case for send_whatsapp_message + + Send a WhatsApp message # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_external_feed.py b/test/test_update_external_feed.py new file mode 100644 index 0000000..6c66ef7 --- /dev/null +++ b/test/test_update_external_feed.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.update_external_feed import UpdateExternalFeed # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestUpdateExternalFeed(unittest.TestCase): + """UpdateExternalFeed unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateExternalFeed(self): + """Test UpdateExternalFeed""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.update_external_feed.UpdateExternalFeed() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_upload_image_model.py b/test/test_upload_image_model.py new file mode 100644 index 0000000..48eafc4 --- /dev/null +++ b/test/test_upload_image_model.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.upload_image_model import UploadImageModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestUploadImageModel(unittest.TestCase): + """UploadImageModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUploadImageModel(self): + """Test UploadImageModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.upload_image_model.UploadImageModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_variables_items.py b/test/test_variables_items.py new file mode 100644 index 0000000..5dec1af --- /dev/null +++ b/test/test_variables_items.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.variables_items import VariablesItems # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestVariablesItems(unittest.TestCase): + """VariablesItems unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testVariablesItems(self): + """Test VariablesItems""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.variables_items.VariablesItems() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whatsapp_camp_stats.py b/test/test_whatsapp_camp_stats.py new file mode 100644 index 0000000..f062414 --- /dev/null +++ b/test/test_whatsapp_camp_stats.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.whatsapp_camp_stats import WhatsappCampStats # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestWhatsappCampStats(unittest.TestCase): + """WhatsappCampStats unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsappCampStats(self): + """Test WhatsappCampStats""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.whatsapp_camp_stats.WhatsappCampStats() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whatsapp_camp_template.py b/test/test_whatsapp_camp_template.py new file mode 100644 index 0000000..13a55d2 --- /dev/null +++ b/test/test_whatsapp_camp_template.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.whatsapp_camp_template import WhatsappCampTemplate # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestWhatsappCampTemplate(unittest.TestCase): + """WhatsappCampTemplate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWhatsappCampTemplate(self): + """Test WhatsappCampTemplate""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.whatsapp_camp_template.WhatsappCampTemplate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_whatsapp_campaigns_api.py b/test/test_whatsapp_campaigns_api.py new file mode 100644 index 0000000..6f21f8b --- /dev/null +++ b/test/test_whatsapp_campaigns_api.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.api.whatsapp_campaigns_api import WhatsappCampaignsApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestWhatsappCampaignsApi(unittest.TestCase): + """WhatsappCampaignsApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.whatsapp_campaigns_api.WhatsappCampaignsApi() # noqa: E501 + + def tearDown(self): + pass + + def test_delete_whatsapp_campaign(self): + """Test case for delete_whatsapp_campaign + + Delete a Whatsapp campaign # noqa: E501 + """ + pass + + def test_get_whatsapp_campaign(self): + """Test case for get_whatsapp_campaign + + Get a Whatsapp campaign # noqa: E501 + """ + pass + + def test_get_whatsapp_templates(self): + """Test case for get_whatsapp_templates + + Return all your created whatsapp templates # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main()