diff --git a/README.md b/README.md index 21d22c7..8afe397 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,19 @@ Class | Method | HTTP request | Description *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_files_id_data_get**](docs/CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +*CRMApi* | [**crm_files_id_delete**](docs/CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +*CRMApi* | [**crm_files_id_get**](docs/CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +*CRMApi* | [**crm_files_post**](docs/CRMApi.md#crm_files_post) | **POST** /crm/files | Upload a file +*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_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 *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 @@ -116,6 +129,7 @@ Class | Method | HTTP request | Description *ContactsApi* | [**remove_contact_from_list**](docs/ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list *ContactsApi* | [**request_contact_export**](docs/ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts *ContactsApi* | [**update_attribute**](docs/ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute +*ContactsApi* | [**update_batch_contacts**](docs/ContactsApi.md#update_batch_contacts) | **POST** /contacts/batch | Update multiple contacts *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 @@ -151,8 +165,11 @@ Class | Method | HTTP request | Description *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_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 *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 @@ -229,6 +246,9 @@ Class | Method | HTTP request | Description - [AddContactToList](docs/AddContactToList.md) - [AddCredits](docs/AddCredits.md) - [BlockDomain](docs/BlockDomain.md) + - [Body](docs/Body.md) + - [Body1](docs/Body1.md) + - [Contact](docs/Contact.md) - [CreateAttribute](docs/CreateAttribute.md) - [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md) - [CreateChild](docs/CreateChild.md) @@ -256,6 +276,7 @@ Class | Method | HTTP request | Description - [DeleteHardbounces](docs/DeleteHardbounces.md) - [EmailExportRecipients](docs/EmailExportRecipients.md) - [ErrorModel](docs/ErrorModel.md) + - [FileData](docs/FileData.md) - [GetAccountMarketingAutomation](docs/GetAccountMarketingAutomation.md) - [GetAccountPlan](docs/GetAccountPlan.md) - [GetAccountRelay](docs/GetAccountRelay.md) @@ -294,6 +315,7 @@ Class | Method | HTTP request | Description - [GetExtendedClientAddress](docs/GetExtendedClientAddress.md) - [GetExtendedContactDetailsStatistics](docs/GetExtendedContactDetailsStatistics.md) - [GetExtendedContactDetailsStatisticsClicked](docs/GetExtendedContactDetailsStatisticsClicked.md) + - [GetExtendedContactDetailsStatisticsDelivered](docs/GetExtendedContactDetailsStatisticsDelivered.md) - [GetExtendedContactDetailsStatisticsLinks](docs/GetExtendedContactDetailsStatisticsLinks.md) - [GetExtendedContactDetailsStatisticsMessagesSent](docs/GetExtendedContactDetailsStatisticsMessagesSent.md) - [GetExtendedContactDetailsStatisticsOpened](docs/GetExtendedContactDetailsStatisticsOpened.md) @@ -354,6 +376,8 @@ Class | Method | HTTP request | Description - [MasterDetailsResponseBillingInfoName](docs/MasterDetailsResponseBillingInfoName.md) - [MasterDetailsResponsePlanInfo](docs/MasterDetailsResponsePlanInfo.md) - [MasterDetailsResponsePlanInfoFeatures](docs/MasterDetailsResponsePlanInfoFeatures.md) + - [Note](docs/Note.md) + - [NoteData](docs/NoteData.md) - [PostContactInfo](docs/PostContactInfo.md) - [PostContactInfoContacts](docs/PostContactInfoContacts.md) - [PostSendFailed](docs/PostSendFailed.md) @@ -384,6 +408,7 @@ Class | Method | HTTP request | Description - [SendTestEmail](docs/SendTestEmail.md) - [SendTestSms](docs/SendTestSms.md) - [SendTransacSms](docs/SendTransacSms.md) + - [SsoTokenRequest](docs/SsoTokenRequest.md) - [SubAccountDetailsResponse](docs/SubAccountDetailsResponse.md) - [SubAccountDetailsResponsePlanInfo](docs/SubAccountDetailsResponsePlanInfo.md) - [SubAccountDetailsResponsePlanInfoCredits](docs/SubAccountDetailsResponsePlanInfoCredits.md) @@ -392,10 +417,19 @@ Class | Method | HTTP request | Description - [SubAccountDetailsResponsePlanInfoFeaturesInbox](docs/SubAccountDetailsResponsePlanInfoFeaturesInbox.md) - [SubAccountDetailsResponsePlanInfoFeaturesLandingPage](docs/SubAccountDetailsResponsePlanInfoFeaturesLandingPage.md) - [SubAccountDetailsResponsePlanInfoFeaturesUsers](docs/SubAccountDetailsResponsePlanInfoFeaturesUsers.md) + - [SubAccountUpdatePlanRequest](docs/SubAccountUpdatePlanRequest.md) + - [SubAccountUpdatePlanRequestCredits](docs/SubAccountUpdatePlanRequestCredits.md) + - [SubAccountUpdatePlanRequestFeatures](docs/SubAccountUpdatePlanRequestFeatures.md) - [SubAccountsResponse](docs/SubAccountsResponse.md) - [SubAccountsResponseSubAccounts](docs/SubAccountsResponseSubAccounts.md) + - [Task](docs/Task.md) + - [TaskReminder](docs/TaskReminder.md) + - [TaskTypes](docs/TaskTypes.md) - [UpdateAttribute](docs/UpdateAttribute.md) - [UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md) + - [UpdateBatchContacts](docs/UpdateBatchContacts.md) + - [UpdateBatchContactsContacts](docs/UpdateBatchContactsContacts.md) + - [UpdateBatchContactsModel](docs/UpdateBatchContactsModel.md) - [UpdateCampaignStatus](docs/UpdateCampaignStatus.md) - [UpdateChild](docs/UpdateChild.md) - [UpdateChildAccountStatus](docs/UpdateChildAccountStatus.md) diff --git a/docs/Body.md b/docs/Body.md new file mode 100644 index 0000000..ef51d70 --- /dev/null +++ b/docs/Body.md @@ -0,0 +1,20 @@ +# Body + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of task | +**duration** | **int** | Duration of task | [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] + +[[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 new file mode 100644 index 0000000..8e97e5d --- /dev/null +++ b/docs/Body1.md @@ -0,0 +1,20 @@ +# Body1 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of task | +**duration** | **int** | Duration of task | [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] + +[[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/CRMApi.md b/docs/CRMApi.md new file mode 100644 index 0000000..13d1994 --- /dev/null +++ b/docs/CRMApi.md @@ -0,0 +1,760 @@ +# sib_api_v3_sdk.CRMApi + +All URIs are relative to *https://api.sendinblue.com/v3* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**crm_files_id_data_get**](CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +[**crm_files_id_delete**](CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +[**crm_files_id_get**](CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +[**crm_files_post**](CRMApi.md#crm_files_post) | **POST** /crm/files | Upload a file +[**crm_notes_id_delete**](CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note +[**crm_notes_id_get**](CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note +[**crm_notes_id_patch**](CRMApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note +[**crm_notes_post**](CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a note +[**crm_tasks_id_delete**](CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task +[**crm_tasks_id_get**](CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task +[**crm_tasks_id_patch**](CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task +[**crm_tasks_post**](CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task +[**crm_tasktypes_get**](CRMApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types + + +# **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.CRMApi(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 CRMApi->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.CRMApi(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 CRMApi->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** +> 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.CRMApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | File id to download. + +try: + # Download a file + api_instance.crm_files_id_get(id) +except ApiException as e: + print("Exception when calling CRMApi->crm_files_id_get: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| File id to download. | + +### 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_post** +> FileData crm_files_post(file, deals_ids=deals_ids) + +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.CRMApi(sib_api_v3_sdk.ApiClient(configuration)) +file = '/path/to/file.txt' # file | File data to create a file. +deals_ids = ['deals_ids_example'] # list[str] | Deal ids linked to a file (optional) + +try: + # Upload a file + api_response = api_instance.crm_files_post(file, deals_ids=deals_ids) + pprint(api_response) +except ApiException as e: + print("Exception when calling CRMApi->crm_files_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **file** | **file**| File data to create a file. | + **deals_ids** | [**list[str]**](str.md)| Deal ids 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) + +# **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.CRMApi(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 CRMApi->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.CRMApi(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 CRMApi->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** +> Note 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.CRMApi(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_response = api_instance.crm_notes_id_patch(id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling CRMApi->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 + +[**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_post** +> Note 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.CRMApi(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 CRMApi->crm_notes_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**NoteData**](NoteData.md)| Note data to create a note. | + +### 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_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.CRMApi(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 CRMApi->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.CRMApi(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 CRMApi->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** +> Task 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.CRMApi(sib_api_v3_sdk.ApiClient(configuration)) +id = 'id_example' # str | +body = sib_api_v3_sdk.Body1() # Body1 | Updated task details. + +try: + # Update a task + api_response = api_instance.crm_tasks_id_patch(id, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling CRMApi->crm_tasks_id_patch: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**Body1**](Body1.md)| Updated task details. | + +### 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_post** +> Task 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.CRMApi(sib_api_v3_sdk.ApiClient(configuration)) +body = sib_api_v3_sdk.Body() # Body | 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 CRMApi->crm_tasks_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**Body**](Body.md)| Task name. | + +### 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_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.CRMApi(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 CRMApi->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/Contact.md b/docs/Contact.md new file mode 100644 index 0000000..c76dd0c --- /dev/null +++ b/docs/Contact.md @@ -0,0 +1,17 @@ +# Contact + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**virtual_next_task** | **object** | Next incomplete task of contact | [optional] +**email** | **str** | Contact email | +**assign_to_id** | **str** | User id to whom contact is assigned | [optional] +**contacts_id** | **int** | Contact id | [optional] +**crm_lists** | **object** | CRM lists in which contact is added | +**attributes** | **object** | Contact attributes e.g firstname / lastname / SMS etc. | [optional] +**created_at** | **datetime** | Contact created date/time | [optional] +**updated_at** | **datetime** | Contact 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/ContactsApi.md b/docs/ContactsApi.md index fc56119..6cd0561 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -28,6 +28,7 @@ Method | HTTP request | Description [**remove_contact_from_list**](ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Delete a contact from a list [**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts [**update_attribute**](ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute +[**update_batch_contacts**](ContactsApi.md#update_batch_contacts) | **POST** /contacts/batch | Update multiple contacts [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{identifier} | Update a contact [**update_folder**](ContactsApi.md#update_folder) | **PUT** /contacts/folders/{folderId} | Update a folder [**update_list**](ContactsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list @@ -744,8 +745,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 -start_date = '2013-10-20' # 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 (optional) -end_date = '2013-10-20' # 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. Maximum difference between startDate and endDate should not be greater than 90 days (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. Maximum difference between startDate and endDate should not be greater than 90 days (optional) try: # Get email campaigns' statistics for a contact @@ -760,8 +761,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **identifier** | **str**| Email (urlencoded) OR ID of the contact | - **start_date** | **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 | [optional] - **end_date** | **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. Maximum difference between startDate and endDate should not be greater than 90 days | [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. Maximum difference between startDate and endDate should not be greater than 90 days | [optional] ### Return type @@ -806,7 +807,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' 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 = '2013-10-20T19:20:30+01:00' # datetime | 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) +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) 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: @@ -823,7 +824,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** | **datetime**| 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] + **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] **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 @@ -868,7 +869,7 @@ 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)) list_id = 789 # int | Id of the list -modified_since = '2013-10-20T19:20:30+01:00' # datetime | 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) +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) 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) 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) @@ -886,7 +887,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **modified_since** | **datetime**| 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] + **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] **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] **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] @@ -1442,6 +1443,62 @@ 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) +# **update_batch_contacts** +> update_batch_contacts(update_batch_contacts) + +Update multiple contacts + +### 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.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) +update_batch_contacts = sib_api_v3_sdk.UpdateBatchContacts() # UpdateBatchContacts | Values to update multiple contacts + +try: + # Update multiple contacts + api_instance.update_batch_contacts(update_batch_contacts) +except ApiException as e: + print("Exception when calling ContactsApi->update_batch_contacts: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_batch_contacts** | [**UpdateBatchContacts**](UpdateBatchContacts.md)| Values to update multiple contacts | + +### 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) + # **update_contact** > update_contact(identifier, update_contact) diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index 274d53c..4a19807 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **html_content** | **str** | Mandatory if htmlUrl and templateId are empty. Body of the message (HTML) | [optional] **html_url** | **str** | Mandatory if htmlContent and templateId are empty. Url to the message (HTML) | [optional] **template_id** | **int** | Mandatory if htmlContent and htmlUrl are empty. Id of the transactional email template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature. | [optional] -**scheduled_at** | **datetime** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional] +**scheduled_at** | **str** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional] **subject** | **str** | Subject of the campaign. Mandatory if abTesting is false. Ignored if abTesting is true. | [optional] **reply_to** | **str** | Email on which the campaign recipients will be able to reply to | [optional] **to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization | [optional] diff --git a/docs/CreateSmsCampaign.md b/docs/CreateSmsCampaign.md index 3bf794d..e5d7e2b 100644 --- a/docs/CreateSmsCampaign.md +++ b/docs/CreateSmsCampaign.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **sender** | **str** | Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters** | **content** | **str** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduled_at** | **datetime** | 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] +**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] [[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/CreateSubAccount.md b/docs/CreateSubAccount.md index 4d427d8..3664d47 100644 --- a/docs/CreateSubAccount.md +++ b/docs/CreateSubAccount.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **company_name** | **str** | Name of the organization | +**email** | **str** | Email address for the organization | **language** | **str** | Language for identifying localization information | [optional] **timezone** | **str** | Request timezone of the client | [optional] diff --git a/docs/EmailCampaignsApi.md b/docs/EmailCampaignsApi.md index b0e29d5..53a5058 100644 --- a/docs/EmailCampaignsApi.md +++ b/docs/EmailCampaignsApi.md @@ -335,8 +335,8 @@ 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) -start_date = '2013-10-20T19:20:30+01:00' # datetime | 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 = '2013-10-20T19:20:30+01:00' # datetime | 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) +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 = 500 # int | Number of documents per page (optional) (default to 500) 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) @@ -355,8 +355,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **type** | **str**| Filter on the type of the campaigns | [optional] **status** | **str**| Filter on the status of the campaign | [optional] - **start_date** | **datetime**| 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** | **datetime**| 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] + **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 500] **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] diff --git a/docs/FileData.md b/docs/FileData.md new file mode 100644 index 0000000..15a5ae6 --- /dev/null +++ b/docs/FileData.md @@ -0,0 +1,19 @@ +# FileData + +## 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] +**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/GetCampaignOverview.md b/docs/GetCampaignOverview.md index a094ccf..fd47730 100644 --- a/docs/GetCampaignOverview.md +++ b/docs/GetCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` | [optional] **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **datetime** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduled_at** | **str** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **ab_testing** | **bool** | Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. | [optional] **subject_a** | **str** | Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] **subject_b** | **str** | Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] diff --git a/docs/GetCampaignStats.md b/docs/GetCampaignStats.md index c6fc062..69132bb 100644 --- a/docs/GetCampaignStats.md +++ b/docs/GetCampaignStats.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **soft_bounces** | **int** | Number of softbounce for the campaign | **hard_bounces** | **int** | Number of harbounce for the campaign | **unique_views** | **int** | Number of unique openings for the campaign | +**trackable_views** | **int** | Recipients without any privacy protection option enabled in their email client | **unsubscriptions** | **int** | Number of unsubscription for the campaign | **viewed** | **int** | Number of openings for the campaign | **deferred** | **int** | Number of deferred emails for the campaign | [optional] diff --git a/docs/GetContactCampaignStats.md b/docs/GetContactCampaignStats.md index 6f8bcd4..b5a07e8 100644 --- a/docs/GetContactCampaignStats.md +++ b/docs/GetContactCampaignStats.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **opened** | [**list[GetContactCampaignStatsOpened]**](GetContactCampaignStatsOpened.md) | | [optional] **clicked** | [**list[GetContactCampaignStatsClicked]**](GetContactCampaignStatsClicked.md) | | [optional] **transac_attributes** | [**list[GetContactCampaignStatsTransacAttributes]**](GetContactCampaignStatsTransacAttributes.md) | | [optional] +**delivered** | [**list[GetExtendedContactDetailsStatisticsMessagesSent]**](GetExtendedContactDetailsStatisticsMessagesSent.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/GetContactCampaignStatsOpened.md b/docs/GetContactCampaignStatsOpened.md index fc32632..e9b861e 100644 --- a/docs/GetContactCampaignStatsOpened.md +++ b/docs/GetContactCampaignStatsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings of the campaign | -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | **ip** | **str** | IP from which the user has opened the campaign | [[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/GetContactDetails.md b/docs/GetContactDetails.md index 51a1bd2..a1dcf77 100644 --- a/docs/GetContactDetails.md +++ b/docs/GetContactDetails.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **id** | **int** | ID of the contact for which you requested the details | **email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | **sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**created_at** | **datetime** | Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **list_ids** | **list[int]** | | **list_unsubscribed** | **list[int]** | | [optional] **attributes** | **object** | Set of attributes of the contact | diff --git a/docs/GetEmailCampaign.md b/docs/GetEmailCampaign.md index 18c891d..18cecc2 100644 --- a/docs/GetEmailCampaign.md +++ b/docs/GetEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` | [optional] **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **datetime** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduled_at** | **str** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **ab_testing** | **bool** | Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. | [optional] **subject_a** | **str** | Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] **subject_b** | **str** | Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] @@ -25,12 +25,12 @@ Name | Type | Description | Notes **html_content** | **str** | HTML content of the campaign | **share_link** | **str** | Link to share the campaign on social medias | [optional] **tag** | **str** | Tag of the campaign | [optional] -**created_at** | **datetime** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**sent_date** | **datetime** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] +**sent_date** | **str** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] **return_bounce** | **int** | Total number of non-delivered campaigns for a particular campaign id. | [optional] **recipients** | **object** | | **statistics** | **object** | | diff --git a/docs/GetEmailEventReportEvents.md b/docs/GetEmailEventReportEvents.md index e51af57..5ab0d41 100644 --- a/docs/GetEmailEventReportEvents.md +++ b/docs/GetEmailEventReportEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **str** | Email address which generates the event | -**_date** | **datetime** | UTC date-time on which the event has been generated | +**_date** | **str** | UTC date-time on which the event has been generated | **subject** | **str** | Subject of the event | [optional] **message_id** | **str** | Message ID which generated the event | **event** | **str** | Event which occurred | diff --git a/docs/GetExtendedCampaignOverview.md b/docs/GetExtendedCampaignOverview.md index c2db7b6..b6b673f 100644 --- a/docs/GetExtendedCampaignOverview.md +++ b/docs/GetExtendedCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign. Only available if `abTesting` flag of the campaign is `false` | [optional] **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **datetime** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] +**scheduled_at** | **str** | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **ab_testing** | **bool** | Status of A/B Test for the campaign. abTesting = false means it is disabled, & abTesting = true means it is enabled. | [optional] **subject_a** | **str** | Subject A of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] **subject_b** | **str** | Subject B of the ab-test campaign. Only available if `abTesting` flag of the campaign is `true` | [optional] @@ -25,12 +25,12 @@ Name | Type | Description | Notes **html_content** | **str** | HTML content of the campaign | **share_link** | **str** | Link to share the campaign on social medias | [optional] **tag** | **str** | Tag of the campaign | [optional] -**created_at** | **datetime** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **inline_image_activation** | **bool** | Status of inline image. inlineImageActivation = false means image can’t be embedded, & inlineImageActivation = true means image can be embedded, in the email. | [optional] **mirror_active** | **bool** | Status of mirror links in campaign. mirrorActive = false means mirror links are deactivated, & mirrorActive = true means mirror links are activated, in the campaign | [optional] **recurring** | **bool** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring = false means contact can receive the same Trigger campaign only once, & recurring = true means contact can receive the same Trigger campaign several times | [optional] -**sent_date** | **datetime** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] +**sent_date** | **str** | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' | [optional] **return_bounce** | **int** | Total number of non-delivered campaigns for a particular campaign id. | [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/GetExtendedContactDetails.md b/docs/GetExtendedContactDetails.md index c00854a..d17cdea 100644 --- a/docs/GetExtendedContactDetails.md +++ b/docs/GetExtendedContactDetails.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **id** | **int** | ID of the contact for which you requested the details | **email_blacklisted** | **bool** | Blacklist status for email campaigns (true=blacklisted, false=not blacklisted) | **sms_blacklisted** | **bool** | Blacklist status for SMS campaigns (true=blacklisted, false=not blacklisted) | -**created_at** | **datetime** | Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **list_ids** | **list[int]** | | **list_unsubscribed** | **list[int]** | | [optional] **attributes** | **object** | Set of attributes of the contact | diff --git a/docs/GetExtendedContactDetailsStatistics.md b/docs/GetExtendedContactDetailsStatistics.md index 379612f..45675a4 100644 --- a/docs/GetExtendedContactDetailsStatistics.md +++ b/docs/GetExtendedContactDetailsStatistics.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **opened** | [**list[GetExtendedContactDetailsStatisticsOpened]**](GetExtendedContactDetailsStatisticsOpened.md) | Listing of the openings generated by the contact | [optional] **clicked** | [**list[GetExtendedContactDetailsStatisticsClicked]**](GetExtendedContactDetailsStatisticsClicked.md) | Listing of the clicks generated by the contact | [optional] **transac_attributes** | **list[object]** | Listing of the transactional attributes for the contact | [optional] +**delivered** | [**list[GetExtendedContactDetailsStatisticsDelivered]**](GetExtendedContactDetailsStatisticsDelivered.md) | Listing of the delivered campaign for the contact | [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/GetExtendedContactDetailsStatisticsDelivered.md b/docs/GetExtendedContactDetailsStatisticsDelivered.md new file mode 100644 index 0000000..2c223ce --- /dev/null +++ b/docs/GetExtendedContactDetailsStatisticsDelivered.md @@ -0,0 +1,11 @@ +# GetExtendedContactDetailsStatisticsDelivered + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**campaign_id** | **int** | ID of the campaign which generated the event | +**event_time** | **str** | UTC date-time of the event | + +[[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/GetExtendedContactDetailsStatisticsLinks.md b/docs/GetExtendedContactDetailsStatisticsLinks.md index 51829e1..b39bd72 100644 --- a/docs/GetExtendedContactDetailsStatisticsLinks.md +++ b/docs/GetExtendedContactDetailsStatisticsLinks.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **int** | Number of clicks on this link for the campaign | -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | **ip** | **str** | IP from which the user has clicked on the link | **url** | **str** | URL of the clicked link | diff --git a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md b/docs/GetExtendedContactDetailsStatisticsMessagesSent.md index 69d633f..d84fca3 100644 --- a/docs/GetExtendedContactDetailsStatisticsMessagesSent.md +++ b/docs/GetExtendedContactDetailsStatisticsMessagesSent.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | [[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/GetExtendedContactDetailsStatisticsOpened.md b/docs/GetExtendedContactDetailsStatisticsOpened.md index 5ba5558..cc25255 100644 --- a/docs/GetExtendedContactDetailsStatisticsOpened.md +++ b/docs/GetExtendedContactDetailsStatisticsOpened.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | **count** | **int** | Number of openings for the campaign | -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | **ip** | **str** | IP from which the user has opened the email | [[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/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md index 9d99f41..7c6b11e 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | **ip** | **str** | IP from which the user has been unsubscribed | [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/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md index b722d0c..41000ba 100644 --- a/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md +++ b/docs/GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **campaign_id** | **int** | ID of the campaign which generated the event | -**event_time** | **datetime** | UTC date-time of the event | +**event_time** | **str** | UTC date-time of the event | **ip** | **str** | IP from which the user has unsubscribed | [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/GetExtendedList.md b/docs/GetExtendedList.md index 1a0cea1..fc40436 100644 --- a/docs/GetExtendedList.md +++ b/docs/GetExtendedList.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **total_subscribers** | **int** | Number of contacts in the list | **unique_subscribers** | **int** | Number of unique contacts in the list | **folder_id** | **int** | ID of the folder | -**created_at** | **datetime** | Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) | **campaign_stats** | [**list[GetExtendedListCampaignStats]**](GetExtendedListCampaignStats.md) | | [optional] **dynamic_list** | **bool** | Status telling if the list is dynamic or not (true=dynamic, false=not dynamic) | [optional] diff --git a/docs/GetSmsCampaign.md b/docs/GetSmsCampaign.md index d2b2c9a..c00dc86 100644 --- a/docs/GetSmsCampaign.md +++ b/docs/GetSmsCampaign.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **name** | **str** | Name of the SMS Campaign | **status** | **str** | Status of the SMS Campaign | **content** | **str** | Content of the SMS Campaign | -**scheduled_at** | **datetime** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | [optional] +**scheduled_at** | **str** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | [optional] **sender** | **str** | Sender of the SMS Campaign | -**created_at** | **datetime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**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) | **recipients** | **object** | | **statistics** | **object** | | diff --git a/docs/GetSmsCampaignOverview.md b/docs/GetSmsCampaignOverview.md index 7f4e18d..28ae34d 100644 --- a/docs/GetSmsCampaignOverview.md +++ b/docs/GetSmsCampaignOverview.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes **name** | **str** | Name of the SMS Campaign | **status** | **str** | Status of the SMS Campaign | **content** | **str** | Content of the SMS Campaign | -**scheduled_at** | **datetime** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | [optional] +**scheduled_at** | **str** | UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | [optional] **sender** | **str** | Sender of the SMS Campaign | -**created_at** | **datetime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**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/GetSmsEventReportEvents.md b/docs/GetSmsEventReportEvents.md index 641267b..1b932c9 100644 --- a/docs/GetSmsEventReportEvents.md +++ b/docs/GetSmsEventReportEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phone_number** | **str** | Phone number which has generated the event | [optional] -**_date** | **datetime** | UTC date-time on which the event has been generated | [optional] +**_date** | **str** | UTC date-time on which the event has been generated | [optional] **message_id** | **str** | Message ID which generated the event | [optional] **event** | **str** | Event which occurred | [optional] **reason** | **str** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional] diff --git a/docs/GetSmtpTemplateOverview.md b/docs/GetSmtpTemplateOverview.md index 8203d65..b16a5eb 100644 --- a/docs/GetSmtpTemplateOverview.md +++ b/docs/GetSmtpTemplateOverview.md @@ -13,8 +13,8 @@ Name | Type | Description | Notes **to_field** | **str** | Customisation of the \"to\" field for the template | **tag** | **str** | Tag of the template | **html_content** | **str** | HTML content of the template | -**created_at** | **datetime** | Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**created_at** | **str** | Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **str** | Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | **doi_template** | **bool** | It is true if template is a valid Double opt-in (DOI) template, otherwise it is false. This field will be available only in case of single template detail call. | [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/GetTransacBlockedContactsContacts.md b/docs/GetTransacBlockedContactsContacts.md index 130103e..4eb3d6c 100644 --- a/docs/GetTransacBlockedContactsContacts.md +++ b/docs/GetTransacBlockedContactsContacts.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **email** | **str** | Email address of the blocked or unsubscribed contact | **sender_email** | **str** | Sender email address of the blocked or unsubscribed contact | **reason** | [**GetTransacBlockedContactsReason**](GetTransacBlockedContactsReason.md) | | -**blocked_at** | **datetime** | Date when the contact was blocked or unsubscribed on | +**blocked_at** | **str** | Date when the contact was blocked or unsubscribed on | [[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/GetTransacEmailContent.md b/docs/GetTransacEmailContent.md index 01dda5e..f9317ac 100644 --- a/docs/GetTransacEmailContent.md +++ b/docs/GetTransacEmailContent.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **email** | **str** | Email address to which transactional email has been sent | **subject** | **str** | Subject of the sent email | **template_id** | **int** | Id of the template | [optional] -**_date** | **datetime** | Date on which transactional email was sent | +**_date** | **str** | Date on which transactional email was sent | **events** | [**list[GetTransacEmailContentEvents]**](GetTransacEmailContentEvents.md) | Series of events which occurred on the transactional email | **body** | **str** | Actual content of the transactional email that has been sent | **attachment_count** | **int** | Count of the attachments that were sent in the email | diff --git a/docs/GetTransacEmailContentEvents.md b/docs/GetTransacEmailContentEvents.md index 9a3c4c0..4291ed4 100644 --- a/docs/GetTransacEmailContentEvents.md +++ b/docs/GetTransacEmailContentEvents.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the event that occurred on the sent email | -**time** | **datetime** | Time at which the event occurred | +**time** | **str** | Time at which the event occurred | [[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/GetTransacEmailsListTransactionalEmails.md b/docs/GetTransacEmailsListTransactionalEmails.md index 6c68cf2..92e66f4 100644 --- a/docs/GetTransacEmailsListTransactionalEmails.md +++ b/docs/GetTransacEmailsListTransactionalEmails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **template_id** | **int** | Id of the template | [optional] **message_id** | **str** | Message Id of the sent email | **uuid** | **str** | Unique id of the email sent to a particular contact | -**_date** | **datetime** | Date on which transactional email was sent | +**_date** | **str** | Date on which transactional email was sent | **_from** | **str** | Email address of the sender from which the email was sent | [optional] **tags** | **list[str]** | Tags used for your email | [optional] diff --git a/docs/GetWebhook.md b/docs/GetWebhook.md index 1461ebe..677af80 100644 --- a/docs/GetWebhook.md +++ b/docs/GetWebhook.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **description** | **str** | Description of the webhook | **events** | **list[str]** | | **type** | **str** | Type of webhook (marketing or transac) | -**created_at** | **datetime** | Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | -**modified_at** | **datetime** | Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**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) | [[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/ListsApi.md b/docs/ListsApi.md index a742b0f..e229e8b 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -214,7 +214,7 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) list_id = 789 # int | Id of the list -modified_since = '2013-10-20T19:20:30+01:00' # datetime | 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) +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) 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) 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) @@ -232,7 +232,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **modified_since** | **datetime**| 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] + **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] **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] **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] diff --git a/docs/MasterAccountApi.md b/docs/MasterAccountApi.md index dd7b0ae..32a7477 100644 --- a/docs/MasterAccountApi.md +++ b/docs/MasterAccountApi.md @@ -6,8 +6,11 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**corporate_master_account_get**](MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account [**corporate_sub_account_get**](MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account. +[**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_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 # **corporate_master_account_get** @@ -126,6 +129,62 @@ 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) +# **corporate_sub_account_id_delete** +> corporate_sub_account_id_delete(id) + +Delete 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)) +id = 789 # int | Id of the sub-account organization to be deleted + +try: + # Delete a sub-account + api_instance.corporate_sub_account_id_delete(id) +except ApiException as e: + print("Exception when calling MasterAccountApi->corporate_sub_account_id_delete: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| Id of the sub-account organization to be deleted | + +### 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) + # **corporate_sub_account_id_get** > SubAccountDetailsResponse corporate_sub_account_id_get(id) @@ -185,6 +244,66 @@ 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) +# **corporate_sub_account_id_plan_put** +> corporate_sub_account_id_plan_put(id, update_plan_details) + +Update sub-account plan + +This endpoint will update the sub-account plan + +### 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)) +id = 789 # int | Id of the sub-account organization +update_plan_details = sib_api_v3_sdk.SubAccountUpdatePlanRequest() # SubAccountUpdatePlanRequest | Values to update a sub-account plan + +try: + # Update sub-account plan + api_instance.corporate_sub_account_id_plan_put(id, update_plan_details) +except ApiException as e: + print("Exception when calling MasterAccountApi->corporate_sub_account_id_plan_put: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **int**| Id of the sub-account organization | + **update_plan_details** | [**SubAccountUpdatePlanRequest**](SubAccountUpdatePlanRequest.md)| Values to update a sub-account plan | + +### 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) + # **corporate_sub_account_post** > CreateModel corporate_sub_account_post(sub_account_create) @@ -244,3 +363,62 @@ 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) +# **corporate_sub_account_sso_token_post** +> GetSsoToken corporate_sub_account_sso_token_post(sso_token_request) + +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 with actual 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.MasterAccountApi(sib_api_v3_sdk.ApiClient(configuration)) +sso_token_request = sib_api_v3_sdk.SsoTokenRequest() # SsoTokenRequest | Values to generate SSO token for sub-account + +try: + # Generate SSO token to access Sendinblue + api_response = api_instance.corporate_sub_account_sso_token_post(sso_token_request) + pprint(api_response) +except ApiException as e: + print("Exception when calling MasterAccountApi->corporate_sub_account_sso_token_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sso_token_request** | [**SsoTokenRequest**](SsoTokenRequest.md)| Values to generate SSO token for sub-account | + +### Return type + +[**GetSsoToken**](GetSsoToken.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/Note.md b/docs/Note.md new file mode 100644 index 0000000..2b59b74 --- /dev/null +++ b/docs/Note.md @@ -0,0 +1,16 @@ +# Note + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Unique note Id | [optional] +**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] +**author_id** | **object** | Account details of user which created the note | [optional] +**created_at** | **datetime** | Note created date/time | [optional] +**updated_at** | **datetime** | Note 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/NoteData.md b/docs/NoteData.md new file mode 100644 index 0000000..e0f89d2 --- /dev/null +++ b/docs/NoteData.md @@ -0,0 +1,12 @@ +# NoteData + +## Properties +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] + +[[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/SMSCampaignsApi.md b/docs/SMSCampaignsApi.md index c5f4e6a..e2ea0ec 100644 --- a/docs/SMSCampaignsApi.md +++ b/docs/SMSCampaignsApi.md @@ -213,8 +213,8 @@ configuration.api_key['partner-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi(sib_api_v3_sdk.ApiClient(configuration)) status = 'status_example' # str | Status of campaign. (optional) -start_date = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 = '2013-10-20T19:20:30+01:00' # datetime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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) +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 sms 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 sms 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 = 500 # int | Number limitation for the result returned (optional) (default to 500) offset = 0 # int | Beginning point in the list to retrieve from. (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) @@ -232,8 +232,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **status** | **str**| Status of campaign. | [optional] - **start_date** | **datetime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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** | **datetime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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] + **start_date** | **str**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 sms 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 limitation for the result returned | [optional] [default to 500] **offset** | **int**| Beginning point in the list to retrieve from. | [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] diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index d121c8b..1ffb7b2 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -11,11 +11,11 @@ Name | Type | Description | Notes **text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] **subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] -**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] +**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] **headers** | **object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\", \"idempotencyKey\":\"abc-123\"}`. | [optional] -**template_id** | **int** | Id of the template. Mandatory if messageVersions are passed | [optional] +**template_id** | **int** | Id of the template. | [optional] **params** | **object** | Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. | [optional] -**message_versions** | [**list[SendSmtpEmailMessageVersions]**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional] +**message_versions** | [**list[SendSmtpEmailMessageVersions]**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional] **tags** | **list[str]** | Tag your emails to find them more easily | [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 cb90f64..850b391 100644 --- a/docs/SendTransacSms.md +++ b/docs/SendTransacSms.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **type** | **str** | Type of the SMS. Marketing SMS messages are those sent typically with marketing content. Transactional SMS messages are sent to individuals and are triggered in response to some action, such as a sign-up, purchase, etc. | [optional] [default to 'transactional'] **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] +**unicode_enabled** | **bool** | Format of the message. It indicates whether the content should be treated as unicode or not. | [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/SsoTokenRequest.md b/docs/SsoTokenRequest.md new file mode 100644 index 0000000..cc057b7 --- /dev/null +++ b/docs/SsoTokenRequest.md @@ -0,0 +1,11 @@ +# SsoTokenRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | Id of the sub-account organization | +**email** | **str** | User email of sub-account organization | [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/SubAccountUpdatePlanRequest.md b/docs/SubAccountUpdatePlanRequest.md new file mode 100644 index 0000000..674a667 --- /dev/null +++ b/docs/SubAccountUpdatePlanRequest.md @@ -0,0 +1,11 @@ +# SubAccountUpdatePlanRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**credits** | [**SubAccountUpdatePlanRequestCredits**](SubAccountUpdatePlanRequestCredits.md) | | [optional] +**features** | [**SubAccountUpdatePlanRequestFeatures**](SubAccountUpdatePlanRequestFeatures.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/SubAccountUpdatePlanRequestCredits.md b/docs/SubAccountUpdatePlanRequestCredits.md new file mode 100644 index 0000000..1e1eb44 --- /dev/null +++ b/docs/SubAccountUpdatePlanRequestCredits.md @@ -0,0 +1,10 @@ +# SubAccountUpdatePlanRequestCredits + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **int** | Number of email credits | [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/SubAccountUpdatePlanRequestFeatures.md b/docs/SubAccountUpdatePlanRequestFeatures.md new file mode 100644 index 0000000..bc131a1 --- /dev/null +++ b/docs/SubAccountUpdatePlanRequestFeatures.md @@ -0,0 +1,12 @@ +# SubAccountUpdatePlanRequestFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | **int** | Number of multi-users | [optional] +**landing_page** | **int** | Number of landing pages | [optional] +**inbox** | **int** | Number of inboxes | [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/Task.md b/docs/Task.md new file mode 100644 index 0000000..016d41e --- /dev/null +++ b/docs/Task.md @@ -0,0 +1,26 @@ +# Task + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**first_contact** | [**Contact**](Contact.md) | | [optional] +**id** | **str** | Unique task id | [optional] +**task_type_id** | **str** | Id for type of task e.g Call / Email / Meeting etc. | +**name** | **str** | Name of task | +**contacts_ids** | **list[int]** | Contact ids for contacts linked to this task | [optional] +**contacts** | [**list[Contact]**](Contact.md) | Contact details 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] +**assign_to_id** | **str** | User id to whom task is assigned | [optional] +**_date** | **datetime** | Task date/time | +**duration** | **int** | Duration of task | [optional] +**notes** | **str** | Notes added to a task | [optional] +**done** | **bool** | Task marked as done | [optional] +**reminder** | [**TaskReminder**](TaskReminder.md) | Task reminder date/time for a task | [optional] +**created_at** | **datetime** | Task created date/time | [optional] +**updated_at** | **datetime** | Task update date/time | [optional] +**refs** | **object** | | [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/TaskReminder.md b/docs/TaskReminder.md new file mode 100644 index 0000000..34d42f9 --- /dev/null +++ b/docs/TaskReminder.md @@ -0,0 +1,12 @@ +# TaskReminder + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**value** | **int** | Value of time unit before reminder is to be sent | +**unit** | **str** | Unit of time before reminder is to be sent | +**types** | **list[str]** | Type of task reminder | + +[[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/TaskTypes.md b/docs/TaskTypes.md new file mode 100644 index 0000000..99675a9 --- /dev/null +++ b/docs/TaskTypes.md @@ -0,0 +1,12 @@ +# TaskTypes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | Id of task type | [optional] +**icon** | **str** | Icon of task type | [optional] +**title** | **str** | Title of task type | [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/TransactionalEmailsApi.md b/docs/TransactionalEmailsApi.md index 90608ed..829eee1 100644 --- a/docs/TransactionalEmailsApi.md +++ b/docs/TransactionalEmailsApi.md @@ -855,8 +855,8 @@ api_instance = sib_api_v3_sdk.TransactionalEmailsApi(sib_api_v3_sdk.ApiClient(co email = 'email_example' # str | Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. (optional) template_id = 789 # int | Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. (optional) message_id = 'message_id_example' # str | Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. (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. Maximum time period that can be selected is one month. (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) +start_date = 'start_date_example' # str | Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. (optional) +end_date = 'end_date_example' # str | 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) limit = 500 # int | Number of documents returned per page (optional) (default to 500) offset = 0 # int | Index of the first document in the page (optional) (default to 0) @@ -876,8 +876,8 @@ Name | Type | Description | Notes **email** | **str**| Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. | [optional] **template_id** | **int**| Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. | [optional] **message_id** | **str**| Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. | [optional] - **start_date** | **date**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. | [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] + **start_date** | **str**| Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. | [optional] + **end_date** | **str**| 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] **limit** | **int**| Number of documents returned per page | [optional] [default to 500] **offset** | **int**| Index of the first document in the page | [optional] [default to 0] diff --git a/docs/UpdateBatchContacts.md b/docs/UpdateBatchContacts.md new file mode 100644 index 0000000..233630d --- /dev/null +++ b/docs/UpdateBatchContacts.md @@ -0,0 +1,10 @@ +# UpdateBatchContacts + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**contacts** | [**list[UpdateBatchContactsContacts]**](UpdateBatchContactsContacts.md) | List of contacts to be 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/UpdateBatchContactsContacts.md b/docs/UpdateBatchContactsContacts.md new file mode 100644 index 0000000..4c079a5 --- /dev/null +++ b/docs/UpdateBatchContactsContacts.md @@ -0,0 +1,18 @@ +# UpdateBatchContactsContacts + +## Properties +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] +**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] +**list_ids** | **list[int]** | Ids of the lists to add the contact to | [optional] +**unlink_list_ids** | **list[int]** | Ids of the lists to remove the contact from | [optional] +**smtp_blacklist_sender** | **list[str]** | transactional email forbidden sender for contact. Use only for email Contact | [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/UpdateBatchContactsModel.md b/docs/UpdateBatchContactsModel.md new file mode 100644 index 0000000..c8b99e2 --- /dev/null +++ b/docs/UpdateBatchContactsModel.md @@ -0,0 +1,11 @@ +# UpdateBatchContactsModel + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**success_ids** | **list[int]** | | [optional] +**failure_ids** | **list[int]** | | [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/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index c07d8a6..9bf0fe4 100644 --- a/docs/UpdateEmailCampaign.md +++ b/docs/UpdateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **str** | Name of the campaign | [optional] **html_content** | **str** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional] **html_url** | **str** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional] -**scheduled_at** | **datetime** | 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. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [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. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional] **subject** | **str** | Subject of the campaign | [optional] **reply_to** | **str** | Email on which campaign recipients will be able to reply to | [optional] **to_field** | **str** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization | [optional] diff --git a/docs/UpdateSmsCampaign.md b/docs/UpdateSmsCampaign.md index f2f9386..cbf6d46 100644 --- a/docs/UpdateSmsCampaign.md +++ b/docs/UpdateSmsCampaign.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **sender** | **str** | Name of the sender. **The number of characters is limited to 11 for alphanumeric characters and 15 for numeric characters** | [optional] **content** | **str** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional] **recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional] -**scheduled_at** | **datetime** | 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] +**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] [[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/setup.py b/setup.py index 7aa6a41..41cf0ed 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.3.0" +VERSION = "7.4.0" # To install the library, run the following # # python setup.py install @@ -39,5 +39,8 @@ keywords=["Swagger", "SendinBlue API"], install_requires=REQUIRES, packages=find_packages(), - include_package_data=True + include_package_data=True, + long_description="""\ + 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 + """ ) diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index 9dc4362..c572b10 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -18,6 +18,7 @@ # 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.contacts_api import ContactsApi from sib_api_v3_sdk.api.email_campaigns_api import EmailCampaignsApi from sib_api_v3_sdk.api.folders_api import FoldersApi @@ -46,6 +47,9 @@ from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits 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.contact import Contact 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_child import CreateChild @@ -73,6 +77,7 @@ 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.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 @@ -111,6 +116,7 @@ from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked +from sib_api_v3_sdk.models.get_extended_contact_details_statistics_delivered import GetExtendedContactDetailsStatisticsDelivered from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened @@ -171,6 +177,8 @@ from sib_api_v3_sdk.models.master_details_response_billing_info_name import MasterDetailsResponseBillingInfoName from sib_api_v3_sdk.models.master_details_response_plan_info import MasterDetailsResponsePlanInfo from sib_api_v3_sdk.models.master_details_response_plan_info_features import MasterDetailsResponsePlanInfoFeatures +from sib_api_v3_sdk.models.note import Note +from sib_api_v3_sdk.models.note_data import NoteData 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 @@ -201,6 +209,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.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 from sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits import SubAccountDetailsResponsePlanInfoCredits @@ -209,10 +218,19 @@ from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox import SubAccountDetailsResponsePlanInfoFeaturesInbox from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page import SubAccountDetailsResponsePlanInfoFeaturesLandingPage from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users import SubAccountDetailsResponsePlanInfoFeaturesUsers +from sib_api_v3_sdk.models.sub_account_update_plan_request import SubAccountUpdatePlanRequest +from sib_api_v3_sdk.models.sub_account_update_plan_request_credits import SubAccountUpdatePlanRequestCredits +from sib_api_v3_sdk.models.sub_account_update_plan_request_features import SubAccountUpdatePlanRequestFeatures from sib_api_v3_sdk.models.sub_accounts_response import SubAccountsResponse from sib_api_v3_sdk.models.sub_accounts_response_sub_accounts import SubAccountsResponseSubAccounts +from sib_api_v3_sdk.models.task import Task +from sib_api_v3_sdk.models.task_reminder import TaskReminder +from sib_api_v3_sdk.models.task_types import TaskTypes from sib_api_v3_sdk.models.update_attribute import UpdateAttribute from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration +from sib_api_v3_sdk.models.update_batch_contacts import UpdateBatchContacts +from sib_api_v3_sdk.models.update_batch_contacts_contacts import UpdateBatchContactsContacts +from sib_api_v3_sdk.models.update_batch_contacts_model import UpdateBatchContactsModel from sib_api_v3_sdk.models.update_campaign_status import UpdateCampaignStatus from sib_api_v3_sdk.models.update_child import UpdateChild from sib_api_v3_sdk.models.update_child_account_status import UpdateChildAccountStatus diff --git a/sib_api_v3_sdk/api/__init__.py b/sib_api_v3_sdk/api/__init__.py index ea5536c..8592b4e 100644 --- a/sib_api_v3_sdk/api/__init__.py +++ b/sib_api_v3_sdk/api/__init__.py @@ -5,6 +5,7 @@ # 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.contacts_api import ContactsApi from sib_api_v3_sdk.api.email_campaigns_api import EmailCampaignsApi from sib_api_v3_sdk.api.folders_api import FoldersApi diff --git a/sib_api_v3_sdk/api/contacts_api.py b/sib_api_v3_sdk/api/contacts_api.py index 7b34178..9a2511b 100644 --- a/sib_api_v3_sdk/api/contacts_api.py +++ b/sib_api_v3_sdk/api/contacts_api.py @@ -1233,8 +1233,8 @@ def get_contact_stats(self, identifier, **kwargs): # noqa: E501 :param async_req bool :param str identifier: Email (urlencoded) OR ID of the contact (required) - :param date 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 date 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. Maximum difference between startDate and endDate should not be greater than 90 days + :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. Maximum difference between startDate and endDate should not be greater than 90 days :return: GetContactCampaignStats If the method is called asynchronously, returns the request thread. @@ -1256,8 +1256,8 @@ def get_contact_stats_with_http_info(self, identifier, **kwargs): # noqa: E501 :param async_req bool :param str identifier: Email (urlencoded) OR ID of the contact (required) - :param date 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 date 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. Maximum difference between startDate and endDate should not be greater than 90 days + :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. Maximum difference between startDate and endDate should not be greater than 90 days :return: GetContactCampaignStats If the method is called asynchronously, returns the request thread. @@ -1339,7 +1339,7 @@ def get_contacts(self, **kwargs): # noqa: E501 :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page - :param datetime 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 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 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, @@ -1363,7 +1363,7 @@ def get_contacts_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param int limit: Number of documents per page :param int offset: Index of the first document of the page - :param datetime 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 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 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, @@ -1445,7 +1445,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 :param async_req bool :param int list_id: Id of the list (required) - :param datetime 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 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 int limit: Number of documents per page :param int offset: Index of the first document of 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 @@ -1470,7 +1470,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 :param async_req bool :param int list_id: Id of the list (required) - :param datetime 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 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 int limit: Number of documents per page :param int offset: Index of the first document of 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 @@ -2485,6 +2485,103 @@ def update_attribute_with_http_info(self, attribute_category, attribute_name, up _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def update_batch_contacts(self, update_batch_contacts, **kwargs): # noqa: E501 + """Update multiple contacts # 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_batch_contacts(update_batch_contacts, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UpdateBatchContacts update_batch_contacts: Values to update multiple contacts (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_batch_contacts_with_http_info(update_batch_contacts, **kwargs) # noqa: E501 + else: + (data) = self.update_batch_contacts_with_http_info(update_batch_contacts, **kwargs) # noqa: E501 + return data + + def update_batch_contacts_with_http_info(self, update_batch_contacts, **kwargs): # noqa: E501 + """Update multiple contacts # 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_batch_contacts_with_http_info(update_batch_contacts, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param UpdateBatchContacts update_batch_contacts: Values to update multiple contacts (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['update_batch_contacts'] # 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_batch_contacts" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'update_batch_contacts' is set + if ('update_batch_contacts' not in params or + params['update_batch_contacts'] is None): + raise ValueError("Missing the required parameter `update_batch_contacts` when calling `update_batch_contacts`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'update_batch_contacts' in params: + body_params = params['update_batch_contacts'] + # 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( + '/contacts/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 update_contact(self, identifier, update_contact, **kwargs): # noqa: E501 """Update a contact # noqa: E501 diff --git a/sib_api_v3_sdk/api/crm_api.py b/sib_api_v3_sdk/api/crm_api.py new file mode 100644 index 0000000..a0dc7ca --- /dev/null +++ b/sib_api_v3_sdk/api/crm_api.py @@ -0,0 +1,1308 @@ +# 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 CRMApi(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_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: 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_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: 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_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=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_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 list[str] deals_ids: Deal ids 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 list[str] deals_ids: Deal ids linked to a file + :return: FileData + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['file', 'deals_ids'] # 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 'deals_ids' in params: + form_params.append(('dealsIds', params['deals_ids'])) # noqa: E501 + collection_formats['dealsIds'] = 'csv' # 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) + + 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: 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_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: Note + 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='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_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: 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_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: Note + 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='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_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 Body1 body: Updated task details. (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_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 Body1 body: Updated task details. (required) + :return: Task + 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='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_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 Body body: Task name. (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_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 Body body: Task name. (required) + :return: Task + 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='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_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/email_campaigns_api.py b/sib_api_v3_sdk/api/email_campaigns_api.py index a35d020..b777f41 100644 --- a/sib_api_v3_sdk/api/email_campaigns_api.py +++ b/sib_api_v3_sdk/api/email_campaigns_api.py @@ -535,8 +535,8 @@ 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 datetime 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 datetime 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 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 @@ -562,8 +562,8 @@ 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 datetime 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 datetime 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 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 diff --git a/sib_api_v3_sdk/api/lists_api.py b/sib_api_v3_sdk/api/lists_api.py index 02079df..bb4718d 100644 --- a/sib_api_v3_sdk/api/lists_api.py +++ b/sib_api_v3_sdk/api/lists_api.py @@ -342,7 +342,7 @@ def get_contacts_from_list(self, list_id, **kwargs): # noqa: E501 :param async_req bool :param int list_id: Id of the list (required) - :param datetime 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 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 int limit: Number of documents per page :param int offset: Index of the first document of 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 @@ -367,7 +367,7 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): # noqa: E50 :param async_req bool :param int list_id: Id of the list (required) - :param datetime 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 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 int limit: Number of documents per page :param int offset: Index of the first document of 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 diff --git a/sib_api_v3_sdk/api/master_account_api.py b/sib_api_v3_sdk/api/master_account_api.py index 39d5a35..6abb47f 100644 --- a/sib_api_v3_sdk/api/master_account_api.py +++ b/sib_api_v3_sdk/api/master_account_api.py @@ -231,6 +231,103 @@ def corporate_sub_account_get_with_http_info(self, offset, limit, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def corporate_sub_account_id_delete(self, id, **kwargs): # noqa: E501 + """Delete 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_id_delete(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: Id of the sub-account organization to be deleted (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.corporate_sub_account_id_delete_with_http_info(id, **kwargs) # noqa: E501 + else: + (data) = self.corporate_sub_account_id_delete_with_http_info(id, **kwargs) # noqa: E501 + return data + + def corporate_sub_account_id_delete_with_http_info(self, id, **kwargs): # noqa: E501 + """Delete 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_id_delete_with_http_info(id, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: Id of the sub-account organization to be deleted (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 corporate_sub_account_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 `corporate_sub_account_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( + '/corporate/subAccount/{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 corporate_sub_account_id_get(self, id, **kwargs): # noqa: E501 """Get sub-account details # noqa: E501 @@ -330,6 +427,113 @@ def corporate_sub_account_id_get_with_http_info(self, id, **kwargs): # noqa: E5 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def corporate_sub_account_id_plan_put(self, id, update_plan_details, **kwargs): # noqa: E501 + """Update sub-account plan # noqa: E501 + + This endpoint will update the sub-account plan # 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_id_plan_put(id, update_plan_details, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: Id of the sub-account organization (required) + :param SubAccountUpdatePlanRequest update_plan_details: Values to update a sub-account plan (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.corporate_sub_account_id_plan_put_with_http_info(id, update_plan_details, **kwargs) # noqa: E501 + else: + (data) = self.corporate_sub_account_id_plan_put_with_http_info(id, update_plan_details, **kwargs) # noqa: E501 + return data + + def corporate_sub_account_id_plan_put_with_http_info(self, id, update_plan_details, **kwargs): # noqa: E501 + """Update sub-account plan # noqa: E501 + + This endpoint will update the sub-account plan # 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_id_plan_put_with_http_info(id, update_plan_details, async_req=True) + >>> result = thread.get() + + :param async_req bool + :param int id: Id of the sub-account organization (required) + :param SubAccountUpdatePlanRequest update_plan_details: Values to update a sub-account plan (required) + :return: None + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['id', 'update_plan_details'] # 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_id_plan_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 `corporate_sub_account_id_plan_put`") # noqa: E501 + # verify the required parameter 'update_plan_details' is set + if ('update_plan_details' not in params or + params['update_plan_details'] is None): + raise ValueError("Missing the required parameter `update_plan_details` when calling `corporate_sub_account_id_plan_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 'update_plan_details' in params: + body_params = params['update_plan_details'] + # 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/{id}/plan', '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) + def corporate_sub_account_post(self, sub_account_create, **kwargs): # noqa: E501 """Create a new sub-account under a master account. # noqa: E501 @@ -428,3 +632,102 @@ def corporate_sub_account_post_with_http_info(self, sub_account_create, **kwargs _preload_content=params.get('_preload_content', True), _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + + 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 with 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) + >>> result = thread.get() + + :param async_req bool + :param SsoTokenRequest sso_token_request: Values to generate SSO token for sub-account (required) + :return: GetSsoToken + 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_sso_token_post_with_http_info(sso_token_request, **kwargs) # noqa: E501 + else: + (data) = self.corporate_sub_account_sso_token_post_with_http_info(sso_token_request, **kwargs) # noqa: E501 + return data + + 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 with 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) + >>> result = thread.get() + + :param async_req bool + :param SsoTokenRequest sso_token_request: Values to generate SSO token for sub-account (required) + :return: GetSsoToken + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['sso_token_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_sso_token_post" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'sso_token_request' is set + if ('sso_token_request' not in params or + params['sso_token_request'] is None): + raise ValueError("Missing the required parameter `sso_token_request` when calling `corporate_sub_account_sso_token_post`") # noqa: E501 + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'sso_token_request' in params: + body_params = params['sso_token_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/ssoToken', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='GetSsoToken', # 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/sms_campaigns_api.py b/sib_api_v3_sdk/api/sms_campaigns_api.py index 72cd2ca..137208f 100644 --- a/sib_api_v3_sdk/api/sms_campaigns_api.py +++ b/sib_api_v3_sdk/api/sms_campaigns_api.py @@ -334,8 +334,8 @@ def get_sms_campaigns(self, **kwargs): # noqa: E501 :param async_req bool :param str status: Status of campaign. - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 sms 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 limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed @@ -360,8 +360,8 @@ def get_sms_campaigns_with_http_info(self, **kwargs): # noqa: E501 :param async_req bool :param str status: Status of campaign. - :param datetime start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 datetime end_date: Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 start_date: Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent sms 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 sms 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 limitation for the result returned :param int offset: Beginning point in the list to retrieve from. :param str sort: Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed diff --git a/sib_api_v3_sdk/api/transactional_emails_api.py b/sib_api_v3_sdk/api/transactional_emails_api.py index 3b9d0b2..eca00bc 100644 --- a/sib_api_v3_sdk/api/transactional_emails_api.py +++ b/sib_api_v3_sdk/api/transactional_emails_api.py @@ -1404,8 +1404,8 @@ def get_transac_emails_list(self, **kwargs): # noqa: E501 :param str email: Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. :param int template_id: Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. :param str message_id: Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. - :param date start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. - :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 start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. + :param str 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 int limit: Number of documents returned per page :param int offset: Index of the first document in the page @@ -1433,8 +1433,8 @@ def get_transac_emails_list_with_http_info(self, **kwargs): # noqa: E501 :param str email: Mandatory if templateId and messageId are not passed in query filters. Email address to which transactional email has been sent. :param int template_id: Mandatory if email and messageId are not passed in query filters. Id of the template that was used to compose transactional email. :param str message_id: Mandatory if templateId and email are not passed in query filters. Message ID of the transactional email sent. - :param date start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. - :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 start_date: Mandatory if endDate is used. Starting date (YYYY-MM-DD) from which you want to fetch the list. Maximum time period that can be selected is one month. + :param str 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 int limit: Number of documents returned per page :param int offset: Index of the first document in the page diff --git a/sib_api_v3_sdk/api_client.py b/sib_api_v3_sdk/api_client.py index dfe061b..793f765 100644 --- a/sib_api_v3_sdk/api_client.py +++ b/sib_api_v3_sdk/api_client.py @@ -75,10 +75,10 @@ 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.3.0/python' + self.user_agent = 'sendinblue_clientAPI/v7.4.0/python' self.cookie = cookie # Set default User-Agent. - # self.user_agent = 'Swagger-Codegen/7.3.0/python' + # 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 3ab4f32..9425a8f 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -25,6 +25,9 @@ from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits 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.contact import Contact 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_child import CreateChild @@ -52,6 +55,7 @@ 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.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 @@ -90,6 +94,7 @@ from sib_api_v3_sdk.models.get_extended_client_address import GetExtendedClientAddress from sib_api_v3_sdk.models.get_extended_contact_details_statistics import GetExtendedContactDetailsStatistics from sib_api_v3_sdk.models.get_extended_contact_details_statistics_clicked import GetExtendedContactDetailsStatisticsClicked +from sib_api_v3_sdk.models.get_extended_contact_details_statistics_delivered import GetExtendedContactDetailsStatisticsDelivered from sib_api_v3_sdk.models.get_extended_contact_details_statistics_links import GetExtendedContactDetailsStatisticsLinks from sib_api_v3_sdk.models.get_extended_contact_details_statistics_messages_sent import GetExtendedContactDetailsStatisticsMessagesSent from sib_api_v3_sdk.models.get_extended_contact_details_statistics_opened import GetExtendedContactDetailsStatisticsOpened @@ -150,6 +155,8 @@ from sib_api_v3_sdk.models.master_details_response_billing_info_name import MasterDetailsResponseBillingInfoName from sib_api_v3_sdk.models.master_details_response_plan_info import MasterDetailsResponsePlanInfo from sib_api_v3_sdk.models.master_details_response_plan_info_features import MasterDetailsResponsePlanInfoFeatures +from sib_api_v3_sdk.models.note import Note +from sib_api_v3_sdk.models.note_data import NoteData 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 @@ -180,6 +187,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.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 from sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits import SubAccountDetailsResponsePlanInfoCredits @@ -188,10 +196,19 @@ from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox import SubAccountDetailsResponsePlanInfoFeaturesInbox from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page import SubAccountDetailsResponsePlanInfoFeaturesLandingPage from sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users import SubAccountDetailsResponsePlanInfoFeaturesUsers +from sib_api_v3_sdk.models.sub_account_update_plan_request import SubAccountUpdatePlanRequest +from sib_api_v3_sdk.models.sub_account_update_plan_request_credits import SubAccountUpdatePlanRequestCredits +from sib_api_v3_sdk.models.sub_account_update_plan_request_features import SubAccountUpdatePlanRequestFeatures from sib_api_v3_sdk.models.sub_accounts_response import SubAccountsResponse from sib_api_v3_sdk.models.sub_accounts_response_sub_accounts import SubAccountsResponseSubAccounts +from sib_api_v3_sdk.models.task import Task +from sib_api_v3_sdk.models.task_reminder import TaskReminder +from sib_api_v3_sdk.models.task_types import TaskTypes from sib_api_v3_sdk.models.update_attribute import UpdateAttribute from sib_api_v3_sdk.models.update_attribute_enumeration import UpdateAttributeEnumeration +from sib_api_v3_sdk.models.update_batch_contacts import UpdateBatchContacts +from sib_api_v3_sdk.models.update_batch_contacts_contacts import UpdateBatchContactsContacts +from sib_api_v3_sdk.models.update_batch_contacts_model import UpdateBatchContactsModel from sib_api_v3_sdk.models.update_campaign_status import UpdateCampaignStatus from sib_api_v3_sdk.models.update_child import UpdateChild from sib_api_v3_sdk.models.update_child_account_status import UpdateChildAccountStatus diff --git a/sib_api_v3_sdk/models/body.py b/sib_api_v3_sdk/models/body.py new file mode 100644 index 0000000..31c2dfc --- /dev/null +++ b/sib_api_v3_sdk/models/body.py @@ -0,0 +1,398 @@ +# 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 Body(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 + """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.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 Body. # noqa: E501 + + Name of task # noqa: E501 + + :return: The name of this Body. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body. + + Name of task # noqa: E501 + + :param name: The name of this Body. # 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 Body. # noqa: E501 + + Duration of task # 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 # noqa: E501 + + :param duration: The duration of this Body. # noqa: E501 + :type: int + """ + + 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 date/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 date/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 self._contacts_ids + + @contacts_ids.setter + def contacts_ids(self, contacts_ids): + """Sets the contacts_ids of this Body. + + Contact ids for contacts linked to this task # noqa: E501 + + :param contacts_ids: The contacts_ids of this Body. # noqa: E501 + :type: list[int] + """ + + self._contacts_ids = contacts_ids + + @property + def deals_ids(self): + """Gets the deals_ids of this Body. # noqa: E501 + + Deal ids for deals a task is linked to # 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 self._reminder + + @reminder.setter + def reminder(self, reminder): + """Sets the reminder of this Body. + + + :param reminder: The reminder of this Body. # 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(Body, 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, Body): + 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/body1.py b/sib_api_v3_sdk/models/body1.py new file mode 100644 index 0000000..4705861 --- /dev/null +++ b/sib_api_v3_sdk/models/body1.py @@ -0,0 +1,398 @@ +# 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 Body1(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 + """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.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 Body1. # noqa: E501 + + Name of task # noqa: E501 + + :return: The name of this Body1. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Body1. + + Name of task # 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 + + Duration of task # 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 # 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 self._contacts_ids + + @contacts_ids.setter + def contacts_ids(self, contacts_ids): + """Sets the contacts_ids of this Body1. + + Contact ids for contacts linked to this task # noqa: E501 + + :param contacts_ids: The contacts_ids of this Body1. # noqa: E501 + :type: list[int] + """ + + self._contacts_ids = contacts_ids + + @property + def deals_ids(self): + """Gets the deals_ids of this Body1. # noqa: E501 + + Deal ids for deals a task is linked to # 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 self._reminder + + @reminder.setter + def reminder(self, reminder): + """Sets the reminder of this Body1. + + + :param reminder: The reminder of this Body1. # 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(Body1, 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, Body1): + 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/contact.py b/sib_api_v3_sdk/models/contact.py new file mode 100644 index 0000000..41d3e68 --- /dev/null +++ b/sib_api_v3_sdk/models/contact.py @@ -0,0 +1,315 @@ +# 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 Contact(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 = { + 'virtual_next_task': 'object', + 'email': 'str', + 'assign_to_id': 'str', + 'contacts_id': 'int', + 'crm_lists': 'object', + 'attributes': 'object', + 'created_at': 'datetime', + 'updated_at': 'datetime' + } + + attribute_map = { + 'virtual_next_task': 'virtualNextTask', + 'email': 'email', + 'assign_to_id': 'assignToId', + 'contacts_id': 'contactsId', + 'crm_lists': 'crmLists', + 'attributes': 'attributes', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' + } + + def __init__(self, virtual_next_task=None, email=None, assign_to_id=None, contacts_id=None, crm_lists=None, attributes=None, created_at=None, updated_at=None): # noqa: E501 + """Contact - a model defined in Swagger""" # noqa: E501 + + self._virtual_next_task = None + self._email = None + self._assign_to_id = None + self._contacts_id = None + self._crm_lists = None + self._attributes = None + self._created_at = None + self._updated_at = None + self.discriminator = None + + if virtual_next_task is not None: + self.virtual_next_task = virtual_next_task + self.email = email + if assign_to_id is not None: + self.assign_to_id = assign_to_id + if contacts_id is not None: + self.contacts_id = contacts_id + self.crm_lists = crm_lists + if attributes is not None: + self.attributes = attributes + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def virtual_next_task(self): + """Gets the virtual_next_task of this Contact. # noqa: E501 + + Next incomplete task of contact # noqa: E501 + + :return: The virtual_next_task of this Contact. # noqa: E501 + :rtype: object + """ + return self._virtual_next_task + + @virtual_next_task.setter + def virtual_next_task(self, virtual_next_task): + """Sets the virtual_next_task of this Contact. + + Next incomplete task of contact # noqa: E501 + + :param virtual_next_task: The virtual_next_task of this Contact. # noqa: E501 + :type: object + """ + + self._virtual_next_task = virtual_next_task + + @property + def email(self): + """Gets the email of this Contact. # noqa: E501 + + Contact email # noqa: E501 + + :return: The email of this Contact. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this Contact. + + Contact email # noqa: E501 + + :param email: The email of this Contact. # noqa: E501 + :type: str + """ + if email is None: + raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 + + self._email = email + + @property + def assign_to_id(self): + """Gets the assign_to_id of this Contact. # noqa: E501 + + User id to whom contact is assigned # noqa: E501 + + :return: The assign_to_id of this Contact. # 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 Contact. + + User id to whom contact is assigned # noqa: E501 + + :param assign_to_id: The assign_to_id of this Contact. # noqa: E501 + :type: str + """ + + self._assign_to_id = assign_to_id + + @property + def contacts_id(self): + """Gets the contacts_id of this Contact. # noqa: E501 + + Contact id # noqa: E501 + + :return: The contacts_id of this Contact. # noqa: E501 + :rtype: int + """ + return self._contacts_id + + @contacts_id.setter + def contacts_id(self, contacts_id): + """Sets the contacts_id of this Contact. + + Contact id # noqa: E501 + + :param contacts_id: The contacts_id of this Contact. # noqa: E501 + :type: int + """ + + self._contacts_id = contacts_id + + @property + def crm_lists(self): + """Gets the crm_lists of this Contact. # noqa: E501 + + CRM lists in which contact is added # noqa: E501 + + :return: The crm_lists of this Contact. # noqa: E501 + :rtype: object + """ + return self._crm_lists + + @crm_lists.setter + def crm_lists(self, crm_lists): + """Sets the crm_lists of this Contact. + + CRM lists in which contact is added # noqa: E501 + + :param crm_lists: The crm_lists of this Contact. # noqa: E501 + :type: object + """ + if crm_lists is None: + raise ValueError("Invalid value for `crm_lists`, must not be `None`") # noqa: E501 + + self._crm_lists = crm_lists + + @property + def attributes(self): + """Gets the attributes of this Contact. # noqa: E501 + + Contact attributes e.g firstname / lastname / SMS etc. # noqa: E501 + + :return: The attributes of this Contact. # noqa: E501 + :rtype: object + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this Contact. + + Contact attributes e.g firstname / lastname / SMS etc. # noqa: E501 + + :param attributes: The attributes of this Contact. # noqa: E501 + :type: object + """ + + self._attributes = attributes + + @property + def created_at(self): + """Gets the created_at of this Contact. # noqa: E501 + + Contact created date/time # noqa: E501 + + :return: The created_at of this Contact. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Contact. + + Contact created date/time # noqa: E501 + + :param created_at: The created_at of this Contact. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this Contact. # noqa: E501 + + Contact updated date/time # noqa: E501 + + :return: The updated_at of this Contact. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this Contact. + + Contact updated date/time # noqa: E501 + + :param updated_at: The updated_at of this Contact. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_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(Contact, 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, Contact): + 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_email_campaign.py b/sib_api_v3_sdk/models/create_email_campaign.py index 4b015e8..c00eb96 100644 --- a/sib_api_v3_sdk/models/create_email_campaign.py +++ b/sib_api_v3_sdk/models/create_email_campaign.py @@ -37,7 +37,7 @@ class CreateEmailCampaign(object): 'html_content': 'str', 'html_url': 'str', 'template_id': 'int', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', @@ -327,7 +327,7 @@ def scheduled_at(self): Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). # noqa: E501 :return: The scheduled_at of this CreateEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -338,7 +338,7 @@ def scheduled_at(self, scheduled_at): Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). # noqa: E501 :param scheduled_at: The scheduled_at of this CreateEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at diff --git a/sib_api_v3_sdk/models/create_sms_campaign.py b/sib_api_v3_sdk/models/create_sms_campaign.py index 6e46db1..f8d589e 100644 --- a/sib_api_v3_sdk/models/create_sms_campaign.py +++ b/sib_api_v3_sdk/models/create_sms_campaign.py @@ -35,7 +35,7 @@ class CreateSmsCampaign(object): 'sender': 'str', 'content': 'str', 'recipients': 'CreateSmsCampaignRecipients', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'unicode_enabled': 'bool' } @@ -48,7 +48,7 @@ class CreateSmsCampaign(object): 'unicode_enabled': 'unicodeEnabled' } - def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=None): # noqa: E501 + def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False): # noqa: E501 """CreateSmsCampaign - a model defined in Swagger""" # noqa: E501 self._name = None @@ -174,7 +174,7 @@ def scheduled_at(self): 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. # noqa: E501 :return: The scheduled_at of this CreateSmsCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -185,7 +185,7 @@ def scheduled_at(self, scheduled_at): 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. # noqa: E501 :param scheduled_at: The scheduled_at of this CreateSmsCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at diff --git a/sib_api_v3_sdk/models/create_sub_account.py b/sib_api_v3_sdk/models/create_sub_account.py index 2940ac6..ebdace3 100644 --- a/sib_api_v3_sdk/models/create_sub_account.py +++ b/sib_api_v3_sdk/models/create_sub_account.py @@ -32,25 +32,29 @@ class CreateSubAccount(object): """ swagger_types = { 'company_name': 'str', + 'email': 'str', 'language': 'str', 'timezone': 'str' } attribute_map = { 'company_name': 'companyName', + 'email': 'email', 'language': 'language', 'timezone': 'timezone' } - def __init__(self, company_name=None, language=None, timezone=None): # noqa: E501 + def __init__(self, company_name=None, email=None, language=None, timezone=None): # noqa: E501 """CreateSubAccount - a model defined in Swagger""" # noqa: E501 self._company_name = None + self._email = None self._language = None self._timezone = None self.discriminator = None self.company_name = company_name + self.email = email if language is not None: self.language = language if timezone is not None: @@ -81,6 +85,31 @@ def company_name(self, company_name): self._company_name = company_name + @property + def email(self): + """Gets the email of this CreateSubAccount. # noqa: E501 + + Email address for the organization # noqa: E501 + + :return: The email of this CreateSubAccount. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this CreateSubAccount. + + Email address for the organization # noqa: E501 + + :param email: The email of this CreateSubAccount. # noqa: E501 + :type: str + """ + if email is None: + raise ValueError("Invalid value for `email`, must not be `None`") # noqa: E501 + + self._email = email + @property def language(self): """Gets the language of this CreateSubAccount. # noqa: E501 diff --git a/sib_api_v3_sdk/models/file_data.py b/sib_api_v3_sdk/models/file_data.py new file mode 100644 index 0000000..ee9d535 --- /dev/null +++ b/sib_api_v3_sdk/models/file_data.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 FileData(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', + 'id': 'str', + 'name': 'str', + 'author_id': 'str', + 'author': 'object', + 'contact_id': 'int', + 'deal_ids': 'list[str]', + 'size': 'int', + 'created_at': 'datetime', + 'updated_at': 'datetime' + } + + attribute_map = { + 'url': 'url', + 'id': 'id', + 'name': 'name', + 'author_id': 'authorId', + 'author': 'author', + 'contact_id': 'contactId', + 'deal_ids': 'dealIds', + 'size': 'size', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' + } + + 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 + """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._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 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): + """Gets the name of this FileData. # noqa: E501 + + Name of uploaded file # noqa: E501 + + :return: The name of this FileData. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this FileData. + + Name of uploaded file # noqa: E501 + + :param name: The name of this FileData. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def author_id(self): + """Gets the author_id of this FileData. # noqa: E501 + + Account id of user which created the file # noqa: E501 + + :return: The author_id of this FileData. # noqa: E501 + :rtype: str + """ + return self._author_id + + @author_id.setter + def author_id(self, author_id): + """Sets the author_id of this FileData. + + Account id of user which created the file # noqa: E501 + + :param author_id: The author_id of this FileData. # noqa: E501 + :type: str + """ + + 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 + + Contact id of contact on which file is uploaded # noqa: E501 + + :return: The contact_id of this FileData. # noqa: E501 + :rtype: int + """ + return self._contact_id + + @contact_id.setter + def contact_id(self, contact_id): + """Sets the contact_id of this FileData. + + Contact id of contact on which file is uploaded # noqa: E501 + + :param contact_id: The contact_id of this FileData. # noqa: E501 + :type: int + """ + + self._contact_id = contact_id + + @property + def deal_ids(self): + """Gets the deal_ids of this FileData. # noqa: E501 + + Deal ids linked to a file # noqa: E501 + + :return: The deal_ids of this FileData. # noqa: E501 + :rtype: list[str] + """ + return self._deal_ids + + @deal_ids.setter + def deal_ids(self, deal_ids): + """Sets the deal_ids of this FileData. + + Deal ids linked to a file # noqa: E501 + + :param deal_ids: The deal_ids of this FileData. # noqa: E501 + :type: list[str] + """ + + self._deal_ids = deal_ids + + @property + def size(self): + """Gets the size of this FileData. # noqa: E501 + + Size of file uploaded # noqa: E501 + + :return: The size of this FileData. # noqa: E501 + :rtype: int + """ + return self._size + + @size.setter + def size(self, size): + """Sets the size of this FileData. + + Size of file uploaded # noqa: E501 + + :param size: The size of this FileData. # noqa: E501 + :type: int + """ + + self._size = size + + @property + def created_at(self): + """Gets the created_at of this FileData. # noqa: E501 + + File created date/time # noqa: E501 + + :return: The created_at of this FileData. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this FileData. + + File created date/time # noqa: E501 + + :param created_at: The created_at of this FileData. # noqa: E501 + :type: datetime + """ + + 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 = {} + + 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(FileData, 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, FileData): + 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_campaign_overview.py b/sib_api_v3_sdk/models/get_campaign_overview.py index c2ad190..998847d 100644 --- a/sib_api_v3_sdk/models/get_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_campaign_overview.py @@ -36,7 +36,7 @@ class GetCampaignOverview(object): 'subject': 'str', 'type': 'str', 'status': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'ab_testing': 'bool', 'subject_a': 'str', 'subject_b': 'str', @@ -245,7 +245,7 @@ def scheduled_at(self): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The scheduled_at of this GetCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -256,7 +256,7 @@ def scheduled_at(self, scheduled_at): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param scheduled_at: The scheduled_at of this GetCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at diff --git a/sib_api_v3_sdk/models/get_campaign_stats.py b/sib_api_v3_sdk/models/get_campaign_stats.py index 070fd17..1d53376 100644 --- a/sib_api_v3_sdk/models/get_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_campaign_stats.py @@ -40,6 +40,7 @@ class GetCampaignStats(object): 'soft_bounces': 'int', 'hard_bounces': 'int', 'unique_views': 'int', + 'trackable_views': 'int', 'unsubscriptions': 'int', 'viewed': 'int', 'deferred': 'int', @@ -56,13 +57,14 @@ class GetCampaignStats(object): 'soft_bounces': 'softBounces', 'hard_bounces': 'hardBounces', 'unique_views': 'uniqueViews', + 'trackable_views': 'trackableViews', 'unsubscriptions': 'unsubscriptions', 'viewed': 'viewed', 'deferred': 'deferred', 'return_bounce': 'returnBounce' } - def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=None, delivered=None, sent=None, soft_bounces=None, hard_bounces=None, unique_views=None, unsubscriptions=None, viewed=None, deferred=None, return_bounce=None): # noqa: E501 + def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=None, delivered=None, sent=None, soft_bounces=None, hard_bounces=None, unique_views=None, trackable_views=None, unsubscriptions=None, viewed=None, deferred=None, return_bounce=None): # noqa: E501 """GetCampaignStats - a model defined in Swagger""" # noqa: E501 self._list_id = None @@ -74,6 +76,7 @@ def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=N self._soft_bounces = None self._hard_bounces = None self._unique_views = None + self._trackable_views = None self._unsubscriptions = None self._viewed = None self._deferred = None @@ -90,6 +93,7 @@ def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=N self.soft_bounces = soft_bounces self.hard_bounces = hard_bounces self.unique_views = unique_views + self.trackable_views = trackable_views self.unsubscriptions = unsubscriptions self.viewed = viewed if deferred is not None: @@ -320,6 +324,31 @@ def unique_views(self, unique_views): self._unique_views = unique_views + @property + def trackable_views(self): + """Gets the trackable_views of this GetCampaignStats. # noqa: E501 + + Recipients without any privacy protection option enabled in their email client # noqa: E501 + + :return: The trackable_views of this GetCampaignStats. # noqa: E501 + :rtype: int + """ + return self._trackable_views + + @trackable_views.setter + def trackable_views(self, trackable_views): + """Sets the trackable_views of this GetCampaignStats. + + Recipients without any privacy protection option enabled in their email client # noqa: E501 + + :param trackable_views: The trackable_views of this GetCampaignStats. # noqa: E501 + :type: int + """ + if trackable_views is None: + raise ValueError("Invalid value for `trackable_views`, must not be `None`") # noqa: E501 + + self._trackable_views = trackable_views + @property def unsubscriptions(self): """Gets the unsubscriptions of this GetCampaignStats. # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats.py b/sib_api_v3_sdk/models/get_contact_campaign_stats.py index 4d0cdda..3cb461a 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats.py @@ -38,7 +38,8 @@ class GetContactCampaignStats(object): 'unsubscriptions': 'GetContactCampaignStatsUnsubscriptions', 'opened': 'list[GetContactCampaignStatsOpened]', 'clicked': 'list[GetContactCampaignStatsClicked]', - 'transac_attributes': 'list[GetContactCampaignStatsTransacAttributes]' + 'transac_attributes': 'list[GetContactCampaignStatsTransacAttributes]', + 'delivered': 'list[GetExtendedContactDetailsStatisticsMessagesSent]' } attribute_map = { @@ -49,10 +50,11 @@ class GetContactCampaignStats(object): 'unsubscriptions': 'unsubscriptions', 'opened': 'opened', 'clicked': 'clicked', - 'transac_attributes': 'transacAttributes' + 'transac_attributes': 'transacAttributes', + 'delivered': 'delivered' } - def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None): # noqa: E501 + def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None): # noqa: E501 """GetContactCampaignStats - a model defined in Swagger""" # noqa: E501 self._messages_sent = None @@ -63,6 +65,7 @@ def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, com self._opened = None self._clicked = None self._transac_attributes = None + self._delivered = None self.discriminator = None if messages_sent is not None: @@ -81,6 +84,8 @@ def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, com self.clicked = clicked if transac_attributes is not None: self.transac_attributes = transac_attributes + if delivered is not None: + self.delivered = delivered @property def messages_sent(self): @@ -250,6 +255,27 @@ def transac_attributes(self, transac_attributes): self._transac_attributes = transac_attributes + @property + def delivered(self): + """Gets the delivered of this GetContactCampaignStats. # noqa: E501 + + + :return: The delivered of this GetContactCampaignStats. # noqa: E501 + :rtype: list[GetExtendedContactDetailsStatisticsMessagesSent] + """ + return self._delivered + + @delivered.setter + def delivered(self, delivered): + """Sets the delivered of this GetContactCampaignStats. + + + :param delivered: The delivered of this GetContactCampaignStats. # noqa: E501 + :type: list[GetExtendedContactDetailsStatisticsMessagesSent] + """ + + self._delivered = delivered + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py b/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py index 64afa24..bb5ff0e 100644 --- a/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py +++ b/sib_api_v3_sdk/models/get_contact_campaign_stats_opened.py @@ -33,7 +33,7 @@ class GetContactCampaignStatsOpened(object): swagger_types = { 'campaign_id': 'int', 'count': 'int', - 'event_time': 'datetime', + 'event_time': 'str', 'ip': 'str' } @@ -115,7 +115,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetContactCampaignStatsOpened. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -126,7 +126,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetContactCampaignStatsOpened. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_contact_details.py b/sib_api_v3_sdk/models/get_contact_details.py index 2dfd721..8ea5414 100644 --- a/sib_api_v3_sdk/models/get_contact_details.py +++ b/sib_api_v3_sdk/models/get_contact_details.py @@ -35,8 +35,8 @@ class GetContactDetails(object): 'id': 'int', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'list_ids': 'list[int]', 'list_unsubscribed': 'list[int]', 'attributes': 'object' @@ -186,7 +186,7 @@ def created_at(self): Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetContactDetails. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -197,7 +197,7 @@ def created_at(self, created_at): Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetContactDetails. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -211,7 +211,7 @@ def modified_at(self): Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetContactDetails. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -222,7 +222,7 @@ def modified_at(self, modified_at): Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetContactDetails. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_email_campaign.py b/sib_api_v3_sdk/models/get_email_campaign.py index 641ce89..7f22276 100644 --- a/sib_api_v3_sdk/models/get_email_campaign.py +++ b/sib_api_v3_sdk/models/get_email_campaign.py @@ -36,7 +36,7 @@ class GetEmailCampaign(object): 'subject': 'str', 'type': 'str', 'status': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'ab_testing': 'bool', 'subject_a': 'str', 'subject_b': 'str', @@ -53,12 +53,12 @@ class GetEmailCampaign(object): 'html_content': 'str', 'share_link': 'str', 'tag': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'inline_image_activation': 'bool', 'mirror_active': 'bool', 'recurring': 'bool', - 'sent_date': 'datetime', + 'sent_date': 'str', 'return_bounce': 'int', 'recipients': 'object', 'statistics': 'object' @@ -325,7 +325,7 @@ def scheduled_at(self): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The scheduled_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -336,7 +336,7 @@ def scheduled_at(self, scheduled_at): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param scheduled_at: The scheduled_at of this GetEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at @@ -726,7 +726,7 @@ def created_at(self): Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -737,7 +737,7 @@ def created_at(self, created_at): Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -751,7 +751,7 @@ def modified_at(self): UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -762,7 +762,7 @@ def modified_at(self, modified_at): UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 @@ -845,7 +845,7 @@ def sent_date(self): Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 :return: The sent_date of this GetEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._sent_date @@ -856,7 +856,7 @@ def sent_date(self, sent_date): Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 :param sent_date: The sent_date of this GetEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ self._sent_date = sent_date diff --git a/sib_api_v3_sdk/models/get_email_event_report_events.py b/sib_api_v3_sdk/models/get_email_event_report_events.py index 6635201..5bf9f97 100644 --- a/sib_api_v3_sdk/models/get_email_event_report_events.py +++ b/sib_api_v3_sdk/models/get_email_event_report_events.py @@ -32,7 +32,7 @@ class GetEmailEventReportEvents(object): """ swagger_types = { 'email': 'str', - '_date': 'datetime', + '_date': 'str', 'subject': 'str', 'message_id': 'str', 'event': 'str', @@ -125,7 +125,7 @@ def _date(self): UTC date-time on which the event has been generated # noqa: E501 :return: The _date of this GetEmailEventReportEvents. # noqa: E501 - :rtype: datetime + :rtype: str """ return self.__date @@ -136,7 +136,7 @@ def _date(self, _date): UTC date-time on which the event has been generated # noqa: E501 :param _date: The _date of this GetEmailEventReportEvents. # noqa: E501 - :type: datetime + :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 @@ -213,7 +213,7 @@ def event(self, event): """ if event is None: raise ValueError("Invalid value for `event`, must not be `None`") # noqa: E501 - allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error"] # noqa: E501 + allowed_values = ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error", "loadedByProxy"] # 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_extended_campaign_overview.py b/sib_api_v3_sdk/models/get_extended_campaign_overview.py index fe35f7f..68e1ca9 100644 --- a/sib_api_v3_sdk/models/get_extended_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_extended_campaign_overview.py @@ -36,7 +36,7 @@ class GetExtendedCampaignOverview(object): 'subject': 'str', 'type': 'str', 'status': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'ab_testing': 'bool', 'subject_a': 'str', 'subject_b': 'str', @@ -53,12 +53,12 @@ class GetExtendedCampaignOverview(object): 'html_content': 'str', 'share_link': 'str', 'tag': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'inline_image_activation': 'bool', 'mirror_active': 'bool', 'recurring': 'bool', - 'sent_date': 'datetime', + 'sent_date': 'str', 'return_bounce': 'int' } @@ -317,7 +317,7 @@ def scheduled_at(self): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -328,7 +328,7 @@ def scheduled_at(self, scheduled_at): UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param scheduled_at: The scheduled_at of this GetExtendedCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at @@ -718,7 +718,7 @@ def created_at(self): Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -729,7 +729,7 @@ def created_at(self, created_at): Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetExtendedCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -743,7 +743,7 @@ def modified_at(self): UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -754,7 +754,7 @@ def modified_at(self, modified_at): UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetExtendedCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 @@ -837,7 +837,7 @@ def sent_date(self): Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 :return: The sent_date of this GetExtendedCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._sent_date @@ -848,7 +848,7 @@ def sent_date(self, sent_date): Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if 'status' of the campaign is 'sent' # noqa: E501 :param sent_date: The sent_date of this GetExtendedCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ self._sent_date = sent_date diff --git a/sib_api_v3_sdk/models/get_extended_contact_details.py b/sib_api_v3_sdk/models/get_extended_contact_details.py index 6890a88..7b8eaeb 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details.py @@ -35,8 +35,8 @@ class GetExtendedContactDetails(object): 'id': 'int', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'list_ids': 'list[int]', 'list_unsubscribed': 'list[int]', 'attributes': 'object', @@ -190,7 +190,7 @@ def created_at(self): Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetExtendedContactDetails. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -201,7 +201,7 @@ def created_at(self, created_at): Creation UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetExtendedContactDetails. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -215,7 +215,7 @@ def modified_at(self): Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetExtendedContactDetails. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -226,7 +226,7 @@ def modified_at(self, modified_at): Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetExtendedContactDetails. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py index 0e20782..86f0051 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics.py @@ -38,7 +38,8 @@ class GetExtendedContactDetailsStatistics(object): 'unsubscriptions': 'GetExtendedContactDetailsStatisticsUnsubscriptions', 'opened': 'list[GetExtendedContactDetailsStatisticsOpened]', 'clicked': 'list[GetExtendedContactDetailsStatisticsClicked]', - 'transac_attributes': 'list[object]' + 'transac_attributes': 'list[object]', + 'delivered': 'list[GetExtendedContactDetailsStatisticsDelivered]' } attribute_map = { @@ -49,10 +50,11 @@ class GetExtendedContactDetailsStatistics(object): 'unsubscriptions': 'unsubscriptions', 'opened': 'opened', 'clicked': 'clicked', - 'transac_attributes': 'transacAttributes' + 'transac_attributes': 'transacAttributes', + 'delivered': 'delivered' } - def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None): # noqa: E501 + def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, complaints=None, unsubscriptions=None, opened=None, clicked=None, transac_attributes=None, delivered=None): # noqa: E501 """GetExtendedContactDetailsStatistics - a model defined in Swagger""" # noqa: E501 self._messages_sent = None @@ -63,6 +65,7 @@ def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, com self._opened = None self._clicked = None self._transac_attributes = None + self._delivered = None self.discriminator = None if messages_sent is not None: @@ -81,6 +84,8 @@ def __init__(self, messages_sent=None, hard_bounces=None, soft_bounces=None, com self.clicked = clicked if transac_attributes is not None: self.transac_attributes = transac_attributes + if delivered is not None: + self.delivered = delivered @property def messages_sent(self): @@ -264,6 +269,29 @@ def transac_attributes(self, transac_attributes): self._transac_attributes = transac_attributes + @property + def delivered(self): + """Gets the delivered of this GetExtendedContactDetailsStatistics. # noqa: E501 + + Listing of the delivered campaign for the contact # noqa: E501 + + :return: The delivered of this GetExtendedContactDetailsStatistics. # noqa: E501 + :rtype: list[GetExtendedContactDetailsStatisticsDelivered] + """ + return self._delivered + + @delivered.setter + def delivered(self, delivered): + """Sets the delivered of this GetExtendedContactDetailsStatistics. + + Listing of the delivered campaign for the contact # noqa: E501 + + :param delivered: The delivered of this GetExtendedContactDetailsStatistics. # noqa: E501 + :type: list[GetExtendedContactDetailsStatisticsDelivered] + """ + + self._delivered = delivered + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_delivered.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_delivered.py new file mode 100644 index 0000000..70038bc --- /dev/null +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_delivered.py @@ -0,0 +1,147 @@ +# 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 GetExtendedContactDetailsStatisticsDelivered(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 = { + 'campaign_id': 'int', + 'event_time': 'str' + } + + attribute_map = { + 'campaign_id': 'campaignId', + 'event_time': 'eventTime' + } + + def __init__(self, campaign_id=None, event_time=None): # noqa: E501 + """GetExtendedContactDetailsStatisticsDelivered - a model defined in Swagger""" # noqa: E501 + + self._campaign_id = None + self._event_time = None + self.discriminator = None + + self.campaign_id = campaign_id + self.event_time = event_time + + @property + def campaign_id(self): + """Gets the campaign_id of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + + ID of the campaign which generated the event # noqa: E501 + + :return: The campaign_id of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + :rtype: int + """ + return self._campaign_id + + @campaign_id.setter + def campaign_id(self, campaign_id): + """Sets the campaign_id of this GetExtendedContactDetailsStatisticsDelivered. + + ID of the campaign which generated the event # noqa: E501 + + :param campaign_id: The campaign_id of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + :type: int + """ + if campaign_id is None: + raise ValueError("Invalid value for `campaign_id`, must not be `None`") # noqa: E501 + + self._campaign_id = campaign_id + + @property + def event_time(self): + """Gets the event_time of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + + UTC date-time of the event # noqa: E501 + + :return: The event_time of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + :rtype: str + """ + return self._event_time + + @event_time.setter + def event_time(self, event_time): + """Sets the event_time of this GetExtendedContactDetailsStatisticsDelivered. + + UTC date-time of the event # noqa: E501 + + :param event_time: The event_time of this GetExtendedContactDetailsStatisticsDelivered. # noqa: E501 + :type: str + """ + if event_time is None: + raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 + + self._event_time = event_time + + 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(GetExtendedContactDetailsStatisticsDelivered, 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, GetExtendedContactDetailsStatisticsDelivered): + 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_extended_contact_details_statistics_links.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py index 985c611..26bc434 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_links.py @@ -32,7 +32,7 @@ class GetExtendedContactDetailsStatisticsLinks(object): """ swagger_types = { 'count': 'int', - 'event_time': 'datetime', + 'event_time': 'str', 'ip': 'str', 'url': 'str' } @@ -90,7 +90,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -101,7 +101,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetExtendedContactDetailsStatisticsLinks. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py index 073df5f..71d2e9e 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_messages_sent.py @@ -32,7 +32,7 @@ class GetExtendedContactDetailsStatisticsMessagesSent(object): """ swagger_types = { 'campaign_id': 'int', - 'event_time': 'datetime' + 'event_time': 'str' } attribute_map = { @@ -82,7 +82,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -93,7 +93,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetExtendedContactDetailsStatisticsMessagesSent. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py index bbc3952..3229cca 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_opened.py @@ -33,7 +33,7 @@ class GetExtendedContactDetailsStatisticsOpened(object): swagger_types = { 'campaign_id': 'int', 'count': 'int', - 'event_time': 'datetime', + 'event_time': 'str', 'ip': 'str' } @@ -115,7 +115,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -126,7 +126,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetExtendedContactDetailsStatisticsOpened. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py index 76cbad6..1b06e94 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_admin_unsubscription.py @@ -31,7 +31,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription(obje and the value is json key in definition. """ swagger_types = { - 'event_time': 'datetime', + 'event_time': 'str', 'ip': 'str' } @@ -58,7 +58,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -69,7 +69,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsAdminUnsubscription. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py index c134373..60fe6b2 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details_statistics_unsubscriptions_user_unsubscription.py @@ -32,7 +32,7 @@ class GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription(objec """ swagger_types = { 'campaign_id': 'int', - 'event_time': 'datetime', + 'event_time': 'str', 'ip': 'str' } @@ -87,7 +87,7 @@ def event_time(self): UTC date-time of the event # noqa: E501 :return: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._event_time @@ -98,7 +98,7 @@ def event_time(self, event_time): UTC date-time of the event # noqa: E501 :param event_time: The event_time of this GetExtendedContactDetailsStatisticsUnsubscriptionsUserUnsubscription. # noqa: E501 - :type: datetime + :type: str """ if event_time is None: raise ValueError("Invalid value for `event_time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_extended_list.py b/sib_api_v3_sdk/models/get_extended_list.py index 4b3a6fa..620948b 100644 --- a/sib_api_v3_sdk/models/get_extended_list.py +++ b/sib_api_v3_sdk/models/get_extended_list.py @@ -37,7 +37,7 @@ class GetExtendedList(object): 'total_subscribers': 'int', 'unique_subscribers': 'int', 'folder_id': 'int', - 'created_at': 'datetime', + 'created_at': 'str', 'campaign_stats': 'list[GetExtendedListCampaignStats]', 'dynamic_list': 'bool' } @@ -237,7 +237,7 @@ def created_at(self): Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetExtendedList. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -248,7 +248,7 @@ def created_at(self, created_at): Creation UTC date-time of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetExtendedList. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_sms_campaign.py b/sib_api_v3_sdk/models/get_sms_campaign.py index f38663e..7c01634 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign.py +++ b/sib_api_v3_sdk/models/get_sms_campaign.py @@ -35,10 +35,10 @@ class GetSmsCampaign(object): 'name': 'str', 'status': 'str', 'content': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'sender': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'recipients': 'object', 'statistics': 'object' } @@ -196,7 +196,7 @@ def scheduled_at(self): UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :return: The scheduled_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -207,7 +207,7 @@ def scheduled_at(self, scheduled_at): UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :param scheduled_at: The scheduled_at of this GetSmsCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at @@ -244,7 +244,7 @@ def created_at(self): Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -255,7 +255,7 @@ def created_at(self, created_at): Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetSmsCampaign. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -269,7 +269,7 @@ def modified_at(self): UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetSmsCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -280,7 +280,7 @@ def modified_at(self, modified_at): 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 GetSmsCampaign. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_sms_campaign_overview.py b/sib_api_v3_sdk/models/get_sms_campaign_overview.py index 9bef5d1..6476523 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_overview.py @@ -35,10 +35,10 @@ class GetSmsCampaignOverview(object): 'name': 'str', 'status': 'str', 'content': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'sender': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime' + 'created_at': 'str', + 'modified_at': 'str' } attribute_map = { @@ -188,7 +188,7 @@ def scheduled_at(self): UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :return: The scheduled_at of this GetSmsCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -199,7 +199,7 @@ def scheduled_at(self, scheduled_at): UTC date-time on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format # noqa: E501 :param scheduled_at: The scheduled_at of this GetSmsCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at @@ -236,7 +236,7 @@ def created_at(self): Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetSmsCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -247,7 +247,7 @@ def created_at(self, created_at): Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetSmsCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -261,7 +261,7 @@ def modified_at(self): UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetSmsCampaignOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -272,7 +272,7 @@ def modified_at(self, modified_at): 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 GetSmsCampaignOverview. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 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 67d225c..03048ad 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 @@ -32,7 +32,7 @@ class GetSmsEventReportEvents(object): """ swagger_types = { 'phone_number': 'str', - '_date': 'datetime', + '_date': 'str', 'message_id': 'str', 'event': 'str', 'reason': 'str', @@ -107,7 +107,7 @@ def _date(self): UTC date-time on which the event has been generated # noqa: E501 :return: The _date of this GetSmsEventReportEvents. # noqa: E501 - :rtype: datetime + :rtype: str """ return self.__date @@ -118,7 +118,7 @@ def _date(self, _date): UTC date-time on which the event has been generated # noqa: E501 :param _date: The _date of this GetSmsEventReportEvents. # noqa: E501 - :type: datetime + :type: str """ self.__date = _date diff --git a/sib_api_v3_sdk/models/get_smtp_template_overview.py b/sib_api_v3_sdk/models/get_smtp_template_overview.py index 999ad03..78cd51c 100644 --- a/sib_api_v3_sdk/models/get_smtp_template_overview.py +++ b/sib_api_v3_sdk/models/get_smtp_template_overview.py @@ -41,8 +41,8 @@ class GetSmtpTemplateOverview(object): 'to_field': 'str', 'tag': 'str', 'html_content': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime', + 'created_at': 'str', + 'modified_at': 'str', 'doi_template': 'bool' } @@ -350,7 +350,7 @@ def created_at(self): Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetSmtpTemplateOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -361,7 +361,7 @@ def created_at(self, created_at): Creation UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetSmtpTemplateOverview. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -375,7 +375,7 @@ def modified_at(self): Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetSmtpTemplateOverview. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -386,7 +386,7 @@ def modified_at(self, modified_at): Last modification UTC date-time of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetSmtpTemplateOverview. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py b/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py index 0787b8e..dd3dca8 100644 --- a/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py +++ b/sib_api_v3_sdk/models/get_transac_blocked_contacts_contacts.py @@ -34,7 +34,7 @@ class GetTransacBlockedContactsContacts(object): 'email': 'str', 'sender_email': 'str', 'reason': 'GetTransacBlockedContactsReason', - 'blocked_at': 'datetime' + 'blocked_at': 'str' } attribute_map = { @@ -138,7 +138,7 @@ def blocked_at(self): Date when the contact was blocked or unsubscribed on # noqa: E501 :return: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._blocked_at @@ -149,7 +149,7 @@ def blocked_at(self, blocked_at): Date when the contact was blocked or unsubscribed on # noqa: E501 :param blocked_at: The blocked_at of this GetTransacBlockedContactsContacts. # noqa: E501 - :type: datetime + :type: str """ if blocked_at is None: raise ValueError("Invalid value for `blocked_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_transac_email_content.py b/sib_api_v3_sdk/models/get_transac_email_content.py index ff32348..0c78d72 100644 --- a/sib_api_v3_sdk/models/get_transac_email_content.py +++ b/sib_api_v3_sdk/models/get_transac_email_content.py @@ -34,7 +34,7 @@ class GetTransacEmailContent(object): 'email': 'str', 'subject': 'str', 'template_id': 'int', - '_date': 'datetime', + '_date': 'str', 'events': 'list[GetTransacEmailContentEvents]', 'body': 'str', 'attachment_count': 'int' @@ -151,7 +151,7 @@ def _date(self): Date on which transactional email was sent # noqa: E501 :return: The _date of this GetTransacEmailContent. # noqa: E501 - :rtype: datetime + :rtype: str """ return self.__date @@ -162,7 +162,7 @@ def _date(self, _date): Date on which transactional email was sent # noqa: E501 :param _date: The _date of this GetTransacEmailContent. # noqa: E501 - :type: datetime + :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_transac_email_content_events.py b/sib_api_v3_sdk/models/get_transac_email_content_events.py index 27ebcbd..a9ee09b 100644 --- a/sib_api_v3_sdk/models/get_transac_email_content_events.py +++ b/sib_api_v3_sdk/models/get_transac_email_content_events.py @@ -32,7 +32,7 @@ class GetTransacEmailContentEvents(object): """ swagger_types = { 'name': 'str', - 'time': 'datetime' + 'time': 'str' } attribute_map = { @@ -82,7 +82,7 @@ def time(self): Time at which the event occurred # noqa: E501 :return: The time of this GetTransacEmailContentEvents. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._time @@ -93,7 +93,7 @@ def time(self, time): Time at which the event occurred # noqa: E501 :param time: The time of this GetTransacEmailContentEvents. # noqa: E501 - :type: datetime + :type: str """ if time is None: raise ValueError("Invalid value for `time`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py b/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py index e4a0ccd..535b5e5 100644 --- a/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py +++ b/sib_api_v3_sdk/models/get_transac_emails_list_transactional_emails.py @@ -36,7 +36,7 @@ class GetTransacEmailsListTransactionalEmails(object): 'template_id': 'int', 'message_id': 'str', 'uuid': 'str', - '_date': 'datetime', + '_date': 'str', '_from': 'str', 'tags': 'list[str]' } @@ -207,7 +207,7 @@ def _date(self): Date on which transactional email was sent # noqa: E501 :return: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 - :rtype: datetime + :rtype: str """ return self.__date @@ -218,7 +218,7 @@ def _date(self, _date): Date on which transactional email was sent # noqa: E501 :param _date: The _date of this GetTransacEmailsListTransactionalEmails. # noqa: E501 - :type: datetime + :type: str """ if _date is None: raise ValueError("Invalid value for `_date`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_webhook.py b/sib_api_v3_sdk/models/get_webhook.py index 7ce2bbd..f34ab10 100644 --- a/sib_api_v3_sdk/models/get_webhook.py +++ b/sib_api_v3_sdk/models/get_webhook.py @@ -36,8 +36,8 @@ class GetWebhook(object): 'description': 'str', 'events': 'list[str]', 'type': 'str', - 'created_at': 'datetime', - 'modified_at': 'datetime' + 'created_at': 'str', + 'modified_at': 'str' } attribute_map = { @@ -206,7 +206,7 @@ def created_at(self): Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The created_at of this GetWebhook. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._created_at @@ -217,7 +217,7 @@ def created_at(self, created_at): Creation UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param created_at: The created_at of this GetWebhook. # noqa: E501 - :type: datetime + :type: str """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") # noqa: E501 @@ -231,7 +231,7 @@ def modified_at(self): Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :return: The modified_at of this GetWebhook. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._modified_at @@ -242,7 +242,7 @@ def modified_at(self, modified_at): Last modification UTC date-time of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) # noqa: E501 :param modified_at: The modified_at of this GetWebhook. # noqa: E501 - :type: datetime + :type: str """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") # noqa: E501 diff --git a/sib_api_v3_sdk/models/note.py b/sib_api_v3_sdk/models/note.py new file mode 100644 index 0000000..1387dff --- /dev/null +++ b/sib_api_v3_sdk/models/note.py @@ -0,0 +1,290 @@ +# 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 Note(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', + 'text': 'str', + 'contact_ids': 'list[int]', + 'deal_ids': 'list[str]', + 'author_id': 'object', + 'created_at': 'datetime', + 'updated_at': 'datetime' + } + + attribute_map = { + 'id': 'id', + 'text': 'text', + 'contact_ids': 'contactIds', + 'deal_ids': 'dealIds', + 'author_id': 'authorId', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt' + } + + def __init__(self, id=None, text=None, contact_ids=None, deal_ids=None, author_id=None, created_at=None, updated_at=None): # noqa: E501 + """Note - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._text = None + self._contact_ids = None + self._deal_ids = None + self._author_id = None + self._created_at = None + self._updated_at = None + self.discriminator = None + + if id is not None: + self.id = id + self.text = text + if contact_ids is not None: + self.contact_ids = contact_ids + if deal_ids is not None: + self.deal_ids = deal_ids + if author_id is not None: + self.author_id = author_id + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + + @property + def id(self): + """Gets the id of this Note. # noqa: E501 + + Unique note Id # noqa: E501 + + :return: The id of this Note. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Note. + + Unique note Id # noqa: E501 + + :param id: The id of this Note. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def text(self): + """Gets the text of this Note. # noqa: E501 + + Text content of a note # noqa: E501 + + :return: The text of this Note. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this Note. + + Text content of a note # noqa: E501 + + :param text: The text of this Note. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + if text is not None and len(text) > 3000: + raise ValueError("Invalid value for `text`, length must be less than or equal to `3000`") # noqa: E501 + if text is not None and len(text) < 1: + raise ValueError("Invalid value for `text`, length must be greater than or equal to `1`") # noqa: E501 + + self._text = text + + @property + def contact_ids(self): + """Gets the contact_ids of this Note. # noqa: E501 + + Contact ids linked to a note # noqa: E501 + + :return: The contact_ids of this Note. # noqa: E501 + :rtype: list[int] + """ + return self._contact_ids + + @contact_ids.setter + def contact_ids(self, contact_ids): + """Sets the contact_ids of this Note. + + Contact ids linked to a note # noqa: E501 + + :param contact_ids: The contact_ids of this Note. # noqa: E501 + :type: list[int] + """ + + self._contact_ids = contact_ids + + @property + def deal_ids(self): + """Gets the deal_ids of this Note. # noqa: E501 + + Deal ids linked to a note # noqa: E501 + + :return: The deal_ids of this Note. # noqa: E501 + :rtype: list[str] + """ + return self._deal_ids + + @deal_ids.setter + def deal_ids(self, deal_ids): + """Sets the deal_ids of this Note. + + Deal ids linked to a note # noqa: E501 + + :param deal_ids: The deal_ids of this Note. # noqa: E501 + :type: list[str] + """ + + self._deal_ids = deal_ids + + @property + def author_id(self): + """Gets the author_id of this Note. # noqa: E501 + + Account details of user which created the note # noqa: E501 + + :return: The author_id of this Note. # noqa: E501 + :rtype: object + """ + return self._author_id + + @author_id.setter + def author_id(self, author_id): + """Sets the author_id of this Note. + + Account details of user which created the note # noqa: E501 + + :param author_id: The author_id of this Note. # noqa: E501 + :type: object + """ + + self._author_id = author_id + + @property + def created_at(self): + """Gets the created_at of this Note. # noqa: E501 + + Note created date/time # noqa: E501 + + :return: The created_at of this Note. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Note. + + Note created date/time # noqa: E501 + + :param created_at: The created_at of this Note. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this Note. # noqa: E501 + + Note updated date/time # noqa: E501 + + :return: The updated_at of this Note. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this Note. + + Note updated date/time # noqa: E501 + + :param updated_at: The updated_at of this Note. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_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(Note, 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, Note): + 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 new file mode 100644 index 0000000..feff7fe --- /dev/null +++ b/sib_api_v3_sdk/models/note_data.py @@ -0,0 +1,178 @@ +# 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 NoteData(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', + 'contact_ids': 'list[int]', + 'deal_ids': 'list[str]' + } + + attribute_map = { + 'text': 'text', + 'contact_ids': 'contactIds', + 'deal_ids': 'dealIds' + } + + def __init__(self, text=None, contact_ids=None, deal_ids=None): # noqa: E501 + """NoteData - a model defined in Swagger""" # noqa: E501 + + self._text = None + self._contact_ids = None + self._deal_ids = None + self.discriminator = None + + self.text = text + if contact_ids is not None: + self.contact_ids = contact_ids + if deal_ids is not None: + self.deal_ids = deal_ids + + @property + def text(self): + """Gets the text of this NoteData. # noqa: E501 + + Text content of a note # noqa: E501 + + :return: The text of this NoteData. # noqa: E501 + :rtype: str + """ + return self._text + + @text.setter + def text(self, text): + """Sets the text of this NoteData. + + Text content of a note # noqa: E501 + + :param text: The text of this NoteData. # noqa: E501 + :type: str + """ + if text is None: + raise ValueError("Invalid value for `text`, must not be `None`") # noqa: E501 + if text is not None and len(text) > 3000: + raise ValueError("Invalid value for `text`, length must be less than or equal to `3000`") # noqa: E501 + if text is not None and len(text) < 1: + raise ValueError("Invalid value for `text`, length must be greater than or equal to `1`") # noqa: E501 + + self._text = text + + @property + def contact_ids(self): + """Gets the contact_ids of this NoteData. # noqa: E501 + + Contact Ids linked to a note # noqa: E501 + + :return: The contact_ids of this NoteData. # noqa: E501 + :rtype: list[int] + """ + return self._contact_ids + + @contact_ids.setter + def contact_ids(self, contact_ids): + """Sets the contact_ids of this NoteData. + + Contact Ids linked to a note # noqa: E501 + + :param contact_ids: The contact_ids of this NoteData. # noqa: E501 + :type: list[int] + """ + + self._contact_ids = contact_ids + + @property + def deal_ids(self): + """Gets the deal_ids of this NoteData. # noqa: E501 + + Deal Ids linked to a note # noqa: E501 + + :return: The deal_ids of this NoteData. # noqa: E501 + :rtype: list[str] + """ + return self._deal_ids + + @deal_ids.setter + def deal_ids(self, deal_ids): + """Sets the deal_ids of this NoteData. + + Deal Ids linked to a note # noqa: E501 + + :param deal_ids: The deal_ids of this NoteData. # noqa: E501 + :type: list[str] + """ + + self._deal_ids = deal_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(NoteData, 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, NoteData): + 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/request_contact_export.py b/sib_api_v3_sdk/models/request_contact_export.py index f5c4764..419a6b8 100644 --- a/sib_api_v3_sdk/models/request_contact_export.py +++ b/sib_api_v3_sdk/models/request_contact_export.py @@ -32,33 +32,27 @@ class RequestContactExport(object): """ swagger_types = { 'export_attributes': 'list[str]', - 'contact_filter': 'object', 'custom_contact_filter': 'RequestContactExportCustomContactFilter', 'notify_url': 'str' } attribute_map = { 'export_attributes': 'exportAttributes', - 'contact_filter': 'contactFilter', 'custom_contact_filter': 'customContactFilter', 'notify_url': 'notifyUrl' } - def __init__(self, export_attributes=None, contact_filter=None, custom_contact_filter=None, notify_url=None): # noqa: E501 + def __init__(self, export_attributes=None, custom_contact_filter=None, notify_url=None): # noqa: E501 """RequestContactExport - a model defined in Swagger""" # noqa: E501 self._export_attributes = None - self._contact_filter = None self._custom_contact_filter = None self._notify_url = None self.discriminator = None if export_attributes is not None: self.export_attributes = export_attributes - if contact_filter is not None: - self.contact_filter = contact_filter - if custom_contact_filter is not None: - self.custom_contact_filter = custom_contact_filter + self.custom_contact_filter = custom_contact_filter if notify_url is not None: self.notify_url = notify_url @@ -85,29 +79,6 @@ def export_attributes(self, export_attributes): self._export_attributes = export_attributes - @property - def contact_filter(self): - """Gets the contact_filter of this RequestContactExport. # noqa: E501 - - This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {\"blacklisted\":true} will export all the blacklisted contacts. # noqa: E501 - - :return: The contact_filter of this RequestContactExport. # noqa: E501 - :rtype: object - """ - return self._contact_filter - - @contact_filter.setter - def contact_filter(self, contact_filter): - """Sets the contact_filter of this RequestContactExport. - - This attribute has been deprecated and will be removed by January 1st, 2021. Only one of the two filter options (contactFilter or customContactFilter) can be passed in the request. Set the filter for the contacts to be exported. For example, {\"blacklisted\":true} will export all the blacklisted contacts. # noqa: E501 - - :param contact_filter: The contact_filter of this RequestContactExport. # noqa: E501 - :type: object - """ - - self._contact_filter = contact_filter - @property def custom_contact_filter(self): """Gets the custom_contact_filter of this RequestContactExport. # noqa: E501 @@ -126,6 +97,8 @@ def custom_contact_filter(self, custom_contact_filter): :param custom_contact_filter: The custom_contact_filter of this RequestContactExport. # noqa: E501 :type: RequestContactExportCustomContactFilter """ + if custom_contact_filter is None: + raise ValueError("Invalid value for `custom_contact_filter`, must not be `None`") # noqa: E501 self._custom_contact_filter = custom_contact_filter diff --git a/sib_api_v3_sdk/models/send_smtp_email.py b/sib_api_v3_sdk/models/send_smtp_email.py index 5bcd4e1..ab84e8c 100644 --- a/sib_api_v3_sdk/models/send_smtp_email.py +++ b/sib_api_v3_sdk/models/send_smtp_email.py @@ -296,7 +296,7 @@ def reply_to(self, reply_to): def attachment(self): """Gets the attachment of this SendSmtpEmail. # noqa: E501 - Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :return: The attachment of this SendSmtpEmail. # noqa: E501 :rtype: list[SendSmtpEmailAttachment] @@ -307,7 +307,7 @@ def attachment(self): def attachment(self, attachment): """Sets the attachment of this SendSmtpEmail. - Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) # noqa: E501 :param attachment: The attachment of this SendSmtpEmail. # noqa: E501 :type: list[SendSmtpEmailAttachment] @@ -342,7 +342,7 @@ def headers(self, headers): def template_id(self): """Gets the template_id of this SendSmtpEmail. # noqa: E501 - Id of the template. Mandatory if messageVersions are passed # noqa: E501 + Id of the template. # noqa: E501 :return: The template_id of this SendSmtpEmail. # noqa: E501 :rtype: int @@ -353,7 +353,7 @@ def template_id(self): def template_id(self, template_id): """Sets the template_id of this SendSmtpEmail. - Id of the template. Mandatory if messageVersions are passed # noqa: E501 + Id of the template. # noqa: E501 :param template_id: The template_id of this SendSmtpEmail. # noqa: E501 :type: int @@ -388,7 +388,7 @@ def params(self, params): def message_versions(self): """Gets the message_versions of this SendSmtpEmail. # noqa: E501 - You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails # noqa: E501 + You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails # noqa: E501 :return: The message_versions of this SendSmtpEmail. # noqa: E501 :rtype: list[SendSmtpEmailMessageVersions] @@ -399,7 +399,7 @@ def message_versions(self): def message_versions(self, message_versions): """Sets the message_versions of this SendSmtpEmail. - You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails # noqa: E501 + You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails # noqa: E501 :param message_versions: The message_versions of this SendSmtpEmail. # noqa: E501 :type: list[SendSmtpEmailMessageVersions] diff --git a/sib_api_v3_sdk/models/send_transac_sms.py b/sib_api_v3_sdk/models/send_transac_sms.py index 4f0fcc3..817b7d2 100644 --- a/sib_api_v3_sdk/models/send_transac_sms.py +++ b/sib_api_v3_sdk/models/send_transac_sms.py @@ -50,7 +50,7 @@ class SendTransacSms(object): 'unicode_enabled': 'unicodeEnabled' } - def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=None): # noqa: E501 + def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None, unicode_enabled=False): # noqa: E501 """SendTransacSms - a model defined in Swagger""" # noqa: E501 self._sender = None diff --git a/sib_api_v3_sdk/models/sso_token_request.py b/sib_api_v3_sdk/models/sso_token_request.py new file mode 100644 index 0000000..b47c0d3 --- /dev/null +++ b/sib_api_v3_sdk/models/sso_token_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 SsoTokenRequest(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', + 'email': 'str' + } + + attribute_map = { + 'id': 'id', + 'email': 'email' + } + + def __init__(self, id=None, email=None): # noqa: E501 + """SsoTokenRequest - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._email = None + self.discriminator = None + + self.id = id + if email is not None: + self.email = email + + @property + def id(self): + """Gets the id of this SsoTokenRequest. # noqa: E501 + + Id of the sub-account organization # noqa: E501 + + :return: The id of this SsoTokenRequest. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this SsoTokenRequest. + + Id of the sub-account organization # noqa: E501 + + :param id: The id of this SsoTokenRequest. # 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 email(self): + """Gets the email of this SsoTokenRequest. # noqa: E501 + + User email of sub-account organization # noqa: E501 + + :return: The email of this SsoTokenRequest. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this SsoTokenRequest. + + User email of sub-account organization # noqa: E501 + + :param email: The email of this SsoTokenRequest. # noqa: E501 + :type: str + """ + + self._email = email + + 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(SsoTokenRequest, 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, SsoTokenRequest): + 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/sub_account_update_plan_request.py b/sib_api_v3_sdk/models/sub_account_update_plan_request.py new file mode 100644 index 0000000..98825b7 --- /dev/null +++ b/sib_api_v3_sdk/models/sub_account_update_plan_request.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 SubAccountUpdatePlanRequest(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 = { + 'credits': 'SubAccountUpdatePlanRequestCredits', + 'features': 'SubAccountUpdatePlanRequestFeatures' + } + + attribute_map = { + 'credits': 'credits', + 'features': 'features' + } + + def __init__(self, credits=None, features=None): # noqa: E501 + """SubAccountUpdatePlanRequest - a model defined in Swagger""" # noqa: E501 + + self._credits = None + self._features = None + self.discriminator = None + + if credits is not None: + self.credits = credits + if features is not None: + self.features = features + + @property + def credits(self): + """Gets the credits of this SubAccountUpdatePlanRequest. # noqa: E501 + + + :return: The credits of this SubAccountUpdatePlanRequest. # noqa: E501 + :rtype: SubAccountUpdatePlanRequestCredits + """ + return self._credits + + @credits.setter + def credits(self, credits): + """Sets the credits of this SubAccountUpdatePlanRequest. + + + :param credits: The credits of this SubAccountUpdatePlanRequest. # noqa: E501 + :type: SubAccountUpdatePlanRequestCredits + """ + + self._credits = credits + + @property + def features(self): + """Gets the features of this SubAccountUpdatePlanRequest. # noqa: E501 + + + :return: The features of this SubAccountUpdatePlanRequest. # noqa: E501 + :rtype: SubAccountUpdatePlanRequestFeatures + """ + return self._features + + @features.setter + def features(self, features): + """Sets the features of this SubAccountUpdatePlanRequest. + + + :param features: The features of this SubAccountUpdatePlanRequest. # noqa: E501 + :type: SubAccountUpdatePlanRequestFeatures + """ + + self._features = features + + 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(SubAccountUpdatePlanRequest, 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, SubAccountUpdatePlanRequest): + 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/sub_account_update_plan_request_credits.py b/sib_api_v3_sdk/models/sub_account_update_plan_request_credits.py new file mode 100644 index 0000000..59ec0c7 --- /dev/null +++ b/sib_api_v3_sdk/models/sub_account_update_plan_request_credits.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 SubAccountUpdatePlanRequestCredits(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 = { + 'email': 'int' + } + + attribute_map = { + 'email': 'email' + } + + def __init__(self, email=None): # noqa: E501 + """SubAccountUpdatePlanRequestCredits - a model defined in Swagger""" # noqa: E501 + + self._email = None + self.discriminator = None + + if email is not None: + self.email = email + + @property + def email(self): + """Gets the email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 + + Number of email credits # noqa: E501 + + :return: The email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 + :rtype: int + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this SubAccountUpdatePlanRequestCredits. + + Number of email credits # noqa: E501 + + :param email: The email of this SubAccountUpdatePlanRequestCredits. # noqa: E501 + :type: int + """ + + self._email = email + + 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(SubAccountUpdatePlanRequestCredits, 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, SubAccountUpdatePlanRequestCredits): + 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/sub_account_update_plan_request_features.py b/sib_api_v3_sdk/models/sub_account_update_plan_request_features.py new file mode 100644 index 0000000..9f7e77f --- /dev/null +++ b/sib_api_v3_sdk/models/sub_account_update_plan_request_features.py @@ -0,0 +1,173 @@ +# 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 SubAccountUpdatePlanRequestFeatures(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 = { + 'users': 'int', + 'landing_page': 'int', + 'inbox': 'int' + } + + attribute_map = { + 'users': 'users', + 'landing_page': 'landingPage', + 'inbox': 'inbox' + } + + def __init__(self, users=None, landing_page=None, inbox=None): # noqa: E501 + """SubAccountUpdatePlanRequestFeatures - a model defined in Swagger""" # noqa: E501 + + self._users = None + self._landing_page = None + self._inbox = None + self.discriminator = None + + if users is not None: + self.users = users + if landing_page is not None: + self.landing_page = landing_page + if inbox is not None: + self.inbox = inbox + + @property + def users(self): + """Gets the users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + + Number of multi-users # noqa: E501 + + :return: The users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :rtype: int + """ + return self._users + + @users.setter + def users(self, users): + """Sets the users of this SubAccountUpdatePlanRequestFeatures. + + Number of multi-users # noqa: E501 + + :param users: The users of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :type: int + """ + + self._users = users + + @property + def landing_page(self): + """Gets the landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + + Number of landing pages # noqa: E501 + + :return: The landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :rtype: int + """ + return self._landing_page + + @landing_page.setter + def landing_page(self, landing_page): + """Sets the landing_page of this SubAccountUpdatePlanRequestFeatures. + + Number of landing pages # noqa: E501 + + :param landing_page: The landing_page of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :type: int + """ + + self._landing_page = landing_page + + @property + def inbox(self): + """Gets the inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + + Number of inboxes # noqa: E501 + + :return: The inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :rtype: int + """ + return self._inbox + + @inbox.setter + def inbox(self, inbox): + """Sets the inbox of this SubAccountUpdatePlanRequestFeatures. + + Number of inboxes # noqa: E501 + + :param inbox: The inbox of this SubAccountUpdatePlanRequestFeatures. # noqa: E501 + :type: int + """ + + self._inbox = inbox + + 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(SubAccountUpdatePlanRequestFeatures, 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, SubAccountUpdatePlanRequestFeatures): + 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/task.py b/sib_api_v3_sdk/models/task.py new file mode 100644 index 0000000..06caef0 --- /dev/null +++ b/sib_api_v3_sdk/models/task.py @@ -0,0 +1,564 @@ +# 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 Task(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 = { + 'first_contact': 'Contact', + 'id': 'str', + 'task_type_id': 'str', + 'name': 'str', + 'contacts_ids': 'list[int]', + 'contacts': 'list[Contact]', + 'deals_ids': 'list[str]', + 'companies_ids': 'list[str]', + 'assign_to_id': 'str', + '_date': 'datetime', + 'duration': 'int', + 'notes': 'str', + 'done': 'bool', + 'reminder': 'TaskReminder', + 'created_at': 'datetime', + 'updated_at': 'datetime', + 'refs': 'object' + } + + attribute_map = { + 'first_contact': 'firstContact', + 'id': 'id', + 'task_type_id': 'taskTypeId', + 'name': 'name', + 'contacts_ids': 'contactsIds', + 'contacts': 'contacts', + 'deals_ids': 'dealsIds', + 'companies_ids': 'companiesIds', + 'assign_to_id': 'assignToId', + '_date': 'date', + 'duration': 'duration', + 'notes': 'notes', + 'done': 'done', + 'reminder': 'reminder', + 'created_at': 'createdAt', + 'updated_at': 'updatedAt', + 'refs': 'refs' + } + + def __init__(self, first_contact=None, id=None, task_type_id=None, name=None, contacts_ids=None, contacts=None, deals_ids=None, companies_ids=None, assign_to_id=None, _date=None, duration=None, notes=None, done=None, reminder=None, created_at=None, updated_at=None, refs=None): # noqa: E501 + """Task - a model defined in Swagger""" # noqa: E501 + + self._first_contact = None + self._id = None + self._task_type_id = None + self._name = None + self._contacts_ids = None + self._contacts = None + self._deals_ids = None + self._companies_ids = None + self._assign_to_id = None + self.__date = None + self._duration = None + self._notes = None + self._done = None + self._reminder = None + self._created_at = None + self._updated_at = None + self._refs = None + self.discriminator = None + + if first_contact is not None: + self.first_contact = first_contact + if id is not None: + self.id = id + self.task_type_id = task_type_id + self.name = name + if contacts_ids is not None: + self.contacts_ids = contacts_ids + if contacts is not None: + self.contacts = contacts + if deals_ids is not None: + self.deals_ids = deals_ids + if companies_ids is not None: + self.companies_ids = companies_ids + if assign_to_id is not None: + self.assign_to_id = assign_to_id + self._date = _date + if duration is not None: + self.duration = duration + if notes is not None: + self.notes = notes + if done is not None: + self.done = done + if reminder is not None: + self.reminder = reminder + if created_at is not None: + self.created_at = created_at + if updated_at is not None: + self.updated_at = updated_at + if refs is not None: + self.refs = refs + + @property + def first_contact(self): + """Gets the first_contact of this Task. # noqa: E501 + + + :return: The first_contact of this Task. # noqa: E501 + :rtype: Contact + """ + return self._first_contact + + @first_contact.setter + def first_contact(self, first_contact): + """Sets the first_contact of this Task. + + + :param first_contact: The first_contact of this Task. # noqa: E501 + :type: Contact + """ + + self._first_contact = first_contact + + @property + def id(self): + """Gets the id of this Task. # noqa: E501 + + Unique task id # noqa: E501 + + :return: The id of this Task. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this Task. + + Unique task id # noqa: E501 + + :param id: The id of this Task. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def task_type_id(self): + """Gets the task_type_id of this Task. # noqa: E501 + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :return: The task_type_id of this Task. # 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 Task. + + Id for type of task e.g Call / Email / Meeting etc. # noqa: E501 + + :param task_type_id: The task_type_id of this Task. # 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 name(self): + """Gets the name of this Task. # noqa: E501 + + Name of task # noqa: E501 + + :return: The name of this Task. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this Task. + + Name of task # noqa: E501 + + :param name: The name of this Task. # 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 contacts_ids(self): + """Gets the contacts_ids of this Task. # noqa: E501 + + Contact ids for contacts linked to this task # noqa: E501 + + :return: The contacts_ids of this Task. # noqa: E501 + :rtype: list[int] + """ + return self._contacts_ids + + @contacts_ids.setter + def contacts_ids(self, contacts_ids): + """Sets the contacts_ids of this Task. + + Contact ids for contacts linked to this task # noqa: E501 + + :param contacts_ids: The contacts_ids of this Task. # noqa: E501 + :type: list[int] + """ + + self._contacts_ids = contacts_ids + + @property + def contacts(self): + """Gets the contacts of this Task. # noqa: E501 + + Contact details for contacts linked to this task # noqa: E501 + + :return: The contacts of this Task. # noqa: E501 + :rtype: list[Contact] + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this Task. + + Contact details for contacts linked to this task # noqa: E501 + + :param contacts: The contacts of this Task. # noqa: E501 + :type: list[Contact] + """ + + self._contacts = contacts + + @property + def deals_ids(self): + """Gets the deals_ids of this Task. # noqa: E501 + + Deal ids for deals a task is linked to # noqa: E501 + + :return: The deals_ids of this Task. # noqa: E501 + :rtype: list[str] + """ + return self._deals_ids + + @deals_ids.setter + def deals_ids(self, deals_ids): + """Sets the deals_ids of this Task. + + Deal ids for deals a task is linked to # noqa: E501 + + :param deals_ids: The deals_ids of this Task. # noqa: E501 + :type: list[str] + """ + + self._deals_ids = deals_ids + + @property + def companies_ids(self): + """Gets the companies_ids of this Task. # noqa: E501 + + Companies ids for companies a task is linked to # noqa: E501 + + :return: The companies_ids of this Task. # noqa: E501 + :rtype: list[str] + """ + return self._companies_ids + + @companies_ids.setter + def companies_ids(self, companies_ids): + """Sets the companies_ids of this Task. + + Companies ids for companies a task is linked to # noqa: E501 + + :param companies_ids: The companies_ids of this Task. # noqa: E501 + :type: list[str] + """ + + self._companies_ids = companies_ids + + @property + def assign_to_id(self): + """Gets the assign_to_id of this Task. # noqa: E501 + + User id to whom task is assigned # noqa: E501 + + :return: The assign_to_id of this Task. # 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 Task. + + User id to whom task is assigned # noqa: E501 + + :param assign_to_id: The assign_to_id of this Task. # noqa: E501 + :type: str + """ + + self._assign_to_id = assign_to_id + + @property + def _date(self): + """Gets the _date of this Task. # noqa: E501 + + Task date/time # noqa: E501 + + :return: The _date of this Task. # noqa: E501 + :rtype: datetime + """ + return self.__date + + @_date.setter + def _date(self, _date): + """Sets the _date of this Task. + + Task date/time # noqa: E501 + + :param _date: The _date of this Task. # 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 duration(self): + """Gets the duration of this Task. # noqa: E501 + + Duration of task # noqa: E501 + + :return: The duration of this Task. # noqa: E501 + :rtype: int + """ + return self._duration + + @duration.setter + def duration(self, duration): + """Sets the duration of this Task. + + Duration of task # noqa: E501 + + :param duration: The duration of this Task. # noqa: E501 + :type: int + """ + + self._duration = duration + + @property + def notes(self): + """Gets the notes of this Task. # noqa: E501 + + Notes added to a task # noqa: E501 + + :return: The notes of this Task. # noqa: E501 + :rtype: str + """ + return self._notes + + @notes.setter + def notes(self, notes): + """Sets the notes of this Task. + + Notes added to a task # noqa: E501 + + :param notes: The notes of this Task. # noqa: E501 + :type: str + """ + + self._notes = notes + + @property + def done(self): + """Gets the done of this Task. # noqa: E501 + + Task marked as done # noqa: E501 + + :return: The done of this Task. # noqa: E501 + :rtype: bool + """ + return self._done + + @done.setter + def done(self, done): + """Sets the done of this Task. + + Task marked as done # noqa: E501 + + :param done: The done of this Task. # noqa: E501 + :type: bool + """ + + self._done = done + + @property + def reminder(self): + """Gets the reminder of this Task. # noqa: E501 + + Task reminder date/time for a task # noqa: E501 + + :return: The reminder of this Task. # noqa: E501 + :rtype: TaskReminder + """ + return self._reminder + + @reminder.setter + def reminder(self, reminder): + """Sets the reminder of this Task. + + Task reminder date/time for a task # noqa: E501 + + :param reminder: The reminder of this Task. # noqa: E501 + :type: TaskReminder + """ + + self._reminder = reminder + + @property + def created_at(self): + """Gets the created_at of this Task. # noqa: E501 + + Task created date/time # noqa: E501 + + :return: The created_at of this Task. # noqa: E501 + :rtype: datetime + """ + return self._created_at + + @created_at.setter + def created_at(self, created_at): + """Sets the created_at of this Task. + + Task created date/time # noqa: E501 + + :param created_at: The created_at of this Task. # noqa: E501 + :type: datetime + """ + + self._created_at = created_at + + @property + def updated_at(self): + """Gets the updated_at of this Task. # noqa: E501 + + Task update date/time # noqa: E501 + + :return: The updated_at of this Task. # noqa: E501 + :rtype: datetime + """ + return self._updated_at + + @updated_at.setter + def updated_at(self, updated_at): + """Sets the updated_at of this Task. + + Task update date/time # noqa: E501 + + :param updated_at: The updated_at of this Task. # noqa: E501 + :type: datetime + """ + + self._updated_at = updated_at + + @property + def refs(self): + """Gets the refs of this Task. # noqa: E501 + + + :return: The refs of this Task. # noqa: E501 + :rtype: object + """ + return self._refs + + @refs.setter + def refs(self, refs): + """Sets the refs of this Task. + + + :param refs: The refs of this Task. # noqa: E501 + :type: object + """ + + self._refs = refs + + 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(Task, 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, Task): + 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/task_reminder.py b/sib_api_v3_sdk/models/task_reminder.py new file mode 100644 index 0000000..b8e08dd --- /dev/null +++ b/sib_api_v3_sdk/models/task_reminder.py @@ -0,0 +1,182 @@ +# 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 TaskReminder(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 = { + 'value': 'int', + 'unit': 'str', + 'types': 'list[str]' + } + + attribute_map = { + 'value': 'value', + 'unit': 'unit', + 'types': 'types' + } + + def __init__(self, value=None, unit=None, types=None): # noqa: E501 + """TaskReminder - a model defined in Swagger""" # noqa: E501 + + self._value = None + self._unit = None + self._types = None + self.discriminator = None + + self.value = value + self.unit = unit + self.types = types + + @property + def value(self): + """Gets the value of this TaskReminder. # noqa: E501 + + Value of time unit before reminder is to be sent # noqa: E501 + + :return: The value of this TaskReminder. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this TaskReminder. + + Value of time unit before reminder is to be sent # noqa: E501 + + :param value: The value of this TaskReminder. # noqa: E501 + :type: int + """ + if value is None: + raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501 + + self._value = value + + @property + def unit(self): + """Gets the unit of this TaskReminder. # noqa: E501 + + Unit of time before reminder is to be sent # noqa: E501 + + :return: The unit of this TaskReminder. # noqa: E501 + :rtype: str + """ + return self._unit + + @unit.setter + def unit(self, unit): + """Sets the unit of this TaskReminder. + + Unit of time before reminder is to be sent # noqa: E501 + + :param unit: The unit of this TaskReminder. # noqa: E501 + :type: str + """ + if unit is None: + raise ValueError("Invalid value for `unit`, must not be `None`") # noqa: E501 + allowed_values = ["minutes", "hours", "weeks", "days"] # noqa: E501 + if unit not in allowed_values: + raise ValueError( + "Invalid value for `unit` ({0}), must be one of {1}" # noqa: E501 + .format(unit, allowed_values) + ) + + self._unit = unit + + @property + def types(self): + """Gets the types of this TaskReminder. # noqa: E501 + + Type of task reminder # noqa: E501 + + :return: The types of this TaskReminder. # noqa: E501 + :rtype: list[str] + """ + return self._types + + @types.setter + def types(self, types): + """Sets the types of this TaskReminder. + + Type of task reminder # noqa: E501 + + :param types: The types of this TaskReminder. # noqa: E501 + :type: list[str] + """ + if types is None: + raise ValueError("Invalid value for `types`, must not be `None`") # noqa: E501 + + self._types = types + + 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(TaskReminder, 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, TaskReminder): + 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/task_types.py b/sib_api_v3_sdk/models/task_types.py new file mode 100644 index 0000000..816fbf5 --- /dev/null +++ b/sib_api_v3_sdk/models/task_types.py @@ -0,0 +1,173 @@ +# 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 TaskTypes(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', + 'icon': 'str', + 'title': 'str' + } + + attribute_map = { + 'id': 'id', + 'icon': 'icon', + 'title': 'title' + } + + def __init__(self, id=None, icon=None, title=None): # noqa: E501 + """TaskTypes - a model defined in Swagger""" # noqa: E501 + + self._id = None + self._icon = None + self._title = None + self.discriminator = None + + if id is not None: + self.id = id + if icon is not None: + self.icon = icon + if title is not None: + self.title = title + + @property + def id(self): + """Gets the id of this TaskTypes. # noqa: E501 + + Id of task type # noqa: E501 + + :return: The id of this TaskTypes. # noqa: E501 + :rtype: str + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this TaskTypes. + + Id of task type # noqa: E501 + + :param id: The id of this TaskTypes. # noqa: E501 + :type: str + """ + + self._id = id + + @property + def icon(self): + """Gets the icon of this TaskTypes. # noqa: E501 + + Icon of task type # noqa: E501 + + :return: The icon of this TaskTypes. # noqa: E501 + :rtype: str + """ + return self._icon + + @icon.setter + def icon(self, icon): + """Sets the icon of this TaskTypes. + + Icon of task type # noqa: E501 + + :param icon: The icon of this TaskTypes. # noqa: E501 + :type: str + """ + + self._icon = icon + + @property + def title(self): + """Gets the title of this TaskTypes. # noqa: E501 + + Title of task type # noqa: E501 + + :return: The title of this TaskTypes. # noqa: E501 + :rtype: str + """ + return self._title + + @title.setter + def title(self, title): + """Sets the title of this TaskTypes. + + Title of task type # noqa: E501 + + :param title: The title of this TaskTypes. # noqa: E501 + :type: str + """ + + self._title = title + + 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(TaskTypes, 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, TaskTypes): + 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_batch_contacts.py b/sib_api_v3_sdk/models/update_batch_contacts.py new file mode 100644 index 0000000..d8832bc --- /dev/null +++ b/sib_api_v3_sdk/models/update_batch_contacts.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 UpdateBatchContacts(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 = { + 'contacts': 'list[UpdateBatchContactsContacts]' + } + + attribute_map = { + 'contacts': 'contacts' + } + + def __init__(self, contacts=None): # noqa: E501 + """UpdateBatchContacts - a model defined in Swagger""" # noqa: E501 + + self._contacts = None + self.discriminator = None + + if contacts is not None: + self.contacts = contacts + + @property + def contacts(self): + """Gets the contacts of this UpdateBatchContacts. # noqa: E501 + + List of contacts to be updated # noqa: E501 + + :return: The contacts of this UpdateBatchContacts. # noqa: E501 + :rtype: list[UpdateBatchContactsContacts] + """ + return self._contacts + + @contacts.setter + def contacts(self, contacts): + """Sets the contacts of this UpdateBatchContacts. + + List of contacts to be updated # noqa: E501 + + :param contacts: The contacts of this UpdateBatchContacts. # noqa: E501 + :type: list[UpdateBatchContactsContacts] + """ + + self._contacts = contacts + + 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(UpdateBatchContacts, 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, UpdateBatchContacts): + 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_batch_contacts_contacts.py b/sib_api_v3_sdk/models/update_batch_contacts_contacts.py new file mode 100644 index 0000000..1108fc6 --- /dev/null +++ b/sib_api_v3_sdk/models/update_batch_contacts_contacts.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 +""" + + +import pprint +import re # noqa: F401 + +import six + + +class UpdateBatchContactsContacts(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 = { + 'email': 'str', + 'id': 'int', + 'sms': 'str', + 'attributes': 'dict(str, object)', + 'email_blacklisted': 'bool', + 'sms_blacklisted': 'bool', + 'list_ids': 'list[int]', + 'unlink_list_ids': 'list[int]', + 'smtp_blacklist_sender': 'list[str]' + } + + attribute_map = { + 'email': 'email', + 'id': 'id', + 'sms': 'sms', + 'attributes': 'attributes', + 'email_blacklisted': 'emailBlacklisted', + 'sms_blacklisted': 'smsBlacklisted', + 'list_ids': 'listIds', + 'unlink_list_ids': 'unlinkListIds', + '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 + """UpdateBatchContactsContacts - a model defined in Swagger""" # noqa: E501 + + self._email = None + self._id = None + self._sms = None + self._attributes = None + self._email_blacklisted = None + self._sms_blacklisted = None + self._list_ids = None + self._unlink_list_ids = None + self._smtp_blacklist_sender = None + self.discriminator = None + + if email is not None: + self.email = email + if id is not None: + self.id = id + if sms is not None: + self.sms = sms + if attributes is not None: + self.attributes = attributes + if email_blacklisted is not None: + self.email_blacklisted = email_blacklisted + if sms_blacklisted is not None: + self.sms_blacklisted = sms_blacklisted + if list_ids is not None: + self.list_ids = list_ids + if unlink_list_ids is not None: + self.unlink_list_ids = unlink_list_ids + if smtp_blacklist_sender is not None: + self.smtp_blacklist_sender = smtp_blacklist_sender + + @property + def email(self): + """Gets the email of this UpdateBatchContactsContacts. # noqa: E501 + + Email address of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :return: The email of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: str + """ + return self._email + + @email.setter + def email(self, email): + """Sets the email of this UpdateBatchContactsContacts. + + Email address of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :param email: The email of this UpdateBatchContactsContacts. # noqa: E501 + :type: str + """ + + self._email = email + + @property + def id(self): + """Gets the id of this UpdateBatchContactsContacts. # noqa: E501 + + id of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :return: The id of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this UpdateBatchContactsContacts. + + id of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :param id: The id of this UpdateBatchContactsContacts. # noqa: E501 + :type: int + """ + + self._id = id + + @property + def sms(self): + """Gets the sms of this UpdateBatchContactsContacts. # noqa: E501 + + SMS of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :return: The sms of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: str + """ + return self._sms + + @sms.setter + def sms(self, sms): + """Sets the sms of this UpdateBatchContactsContacts. + + SMS of the user to be updated (For each operation only pass one of the supported contact identifiers. Email, id or sms) # noqa: E501 + + :param sms: The sms of this UpdateBatchContactsContacts. # noqa: E501 + :type: str + """ + + self._sms = sms + + @property + def attributes(self): + """Gets the attributes of this UpdateBatchContactsContacts. # noqa: E501 + + 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\"}** # noqa: E501 + + :return: The attributes of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: dict(str, object) + """ + return self._attributes + + @attributes.setter + def attributes(self, attributes): + """Sets the attributes of this UpdateBatchContactsContacts. + + 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\"}** # noqa: E501 + + :param attributes: The attributes of this UpdateBatchContactsContacts. # noqa: E501 + :type: dict(str, object) + """ + + self._attributes = attributes + + @property + def email_blacklisted(self): + """Gets the email_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + + Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) # noqa: E501 + + :return: The email_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: bool + """ + return self._email_blacklisted + + @email_blacklisted.setter + def email_blacklisted(self, email_blacklisted): + """Sets the email_blacklisted of this UpdateBatchContactsContacts. + + Set/unset this field to blacklist/allow the contact for emails (emailBlacklisted = true) # noqa: E501 + + :param email_blacklisted: The email_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + :type: bool + """ + + self._email_blacklisted = email_blacklisted + + @property + def sms_blacklisted(self): + """Gets the sms_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + + Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) # noqa: E501 + + :return: The sms_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: bool + """ + return self._sms_blacklisted + + @sms_blacklisted.setter + def sms_blacklisted(self, sms_blacklisted): + """Sets the sms_blacklisted of this UpdateBatchContactsContacts. + + Set/unset this field to blacklist/allow the contact for SMS (smsBlacklisted = true) # noqa: E501 + + :param sms_blacklisted: The sms_blacklisted of this UpdateBatchContactsContacts. # noqa: E501 + :type: bool + """ + + self._sms_blacklisted = sms_blacklisted + + @property + def list_ids(self): + """Gets the list_ids of this UpdateBatchContactsContacts. # noqa: E501 + + Ids of the lists to add the contact to # noqa: E501 + + :return: The list_ids of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: list[int] + """ + return self._list_ids + + @list_ids.setter + def list_ids(self, list_ids): + """Sets the list_ids of this UpdateBatchContactsContacts. + + Ids of the lists to add the contact to # noqa: E501 + + :param list_ids: The list_ids of this UpdateBatchContactsContacts. # noqa: E501 + :type: list[int] + """ + + self._list_ids = list_ids + + @property + def unlink_list_ids(self): + """Gets the unlink_list_ids of this UpdateBatchContactsContacts. # noqa: E501 + + Ids of the lists to remove the contact from # noqa: E501 + + :return: The unlink_list_ids of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: list[int] + """ + return self._unlink_list_ids + + @unlink_list_ids.setter + def unlink_list_ids(self, unlink_list_ids): + """Sets the unlink_list_ids of this UpdateBatchContactsContacts. + + Ids of the lists to remove the contact from # noqa: E501 + + :param unlink_list_ids: The unlink_list_ids of this UpdateBatchContactsContacts. # noqa: E501 + :type: list[int] + """ + + self._unlink_list_ids = unlink_list_ids + + @property + def smtp_blacklist_sender(self): + """Gets the smtp_blacklist_sender of this UpdateBatchContactsContacts. # noqa: E501 + + transactional email forbidden sender for contact. Use only for email Contact # noqa: E501 + + :return: The smtp_blacklist_sender of this UpdateBatchContactsContacts. # noqa: E501 + :rtype: list[str] + """ + return self._smtp_blacklist_sender + + @smtp_blacklist_sender.setter + def smtp_blacklist_sender(self, smtp_blacklist_sender): + """Sets the smtp_blacklist_sender of this UpdateBatchContactsContacts. + + transactional email forbidden sender for contact. Use only for email Contact # noqa: E501 + + :param smtp_blacklist_sender: The smtp_blacklist_sender of this UpdateBatchContactsContacts. # noqa: E501 + :type: list[str] + """ + + self._smtp_blacklist_sender = smtp_blacklist_sender + + 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(UpdateBatchContactsContacts, 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, UpdateBatchContactsContacts): + 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_batch_contacts_model.py b/sib_api_v3_sdk/models/update_batch_contacts_model.py new file mode 100644 index 0000000..c0ea196 --- /dev/null +++ b/sib_api_v3_sdk/models/update_batch_contacts_model.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 UpdateBatchContactsModel(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 = { + 'success_ids': 'list[int]', + 'failure_ids': 'list[int]' + } + + attribute_map = { + 'success_ids': 'successIds', + 'failure_ids': 'failureIds' + } + + def __init__(self, success_ids=None, failure_ids=None): # noqa: E501 + """UpdateBatchContactsModel - a model defined in Swagger""" # noqa: E501 + + self._success_ids = None + self._failure_ids = None + self.discriminator = None + + if success_ids is not None: + self.success_ids = success_ids + if failure_ids is not None: + self.failure_ids = failure_ids + + @property + def success_ids(self): + """Gets the success_ids of this UpdateBatchContactsModel. # noqa: E501 + + + :return: The success_ids of this UpdateBatchContactsModel. # noqa: E501 + :rtype: list[int] + """ + return self._success_ids + + @success_ids.setter + def success_ids(self, success_ids): + """Sets the success_ids of this UpdateBatchContactsModel. + + + :param success_ids: The success_ids of this UpdateBatchContactsModel. # noqa: E501 + :type: list[int] + """ + + self._success_ids = success_ids + + @property + def failure_ids(self): + """Gets the failure_ids of this UpdateBatchContactsModel. # noqa: E501 + + + :return: The failure_ids of this UpdateBatchContactsModel. # noqa: E501 + :rtype: list[int] + """ + return self._failure_ids + + @failure_ids.setter + def failure_ids(self, failure_ids): + """Sets the failure_ids of this UpdateBatchContactsModel. + + + :param failure_ids: The failure_ids of this UpdateBatchContactsModel. # noqa: E501 + :type: list[int] + """ + + self._failure_ids = failure_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(UpdateBatchContactsModel, 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, UpdateBatchContactsModel): + 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_email_campaign.py b/sib_api_v3_sdk/models/update_email_campaign.py index 132f5db..d76b07d 100644 --- a/sib_api_v3_sdk/models/update_email_campaign.py +++ b/sib_api_v3_sdk/models/update_email_campaign.py @@ -36,7 +36,7 @@ class UpdateEmailCampaign(object): 'name': 'str', 'html_content': 'str', 'html_url': 'str', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', @@ -302,7 +302,7 @@ def scheduled_at(self): 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. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). # noqa: E501 :return: The scheduled_at of this UpdateEmailCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -313,7 +313,7 @@ def scheduled_at(self, scheduled_at): 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. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). # noqa: E501 :param scheduled_at: The scheduled_at of this UpdateEmailCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at diff --git a/sib_api_v3_sdk/models/update_sms_campaign.py b/sib_api_v3_sdk/models/update_sms_campaign.py index 8f8ce19..ca571be 100644 --- a/sib_api_v3_sdk/models/update_sms_campaign.py +++ b/sib_api_v3_sdk/models/update_sms_campaign.py @@ -35,7 +35,7 @@ class UpdateSmsCampaign(object): 'sender': 'str', 'content': 'str', 'recipients': 'CreateSmsCampaignRecipients', - 'scheduled_at': 'datetime', + 'scheduled_at': 'str', 'unicode_enabled': 'bool' } @@ -48,7 +48,7 @@ class UpdateSmsCampaign(object): 'unicode_enabled': 'unicodeEnabled' } - def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=None): # noqa: E501 + def __init__(self, name=None, sender=None, content=None, recipients=None, scheduled_at=None, unicode_enabled=False): # noqa: E501 """UpdateSmsCampaign - a model defined in Swagger""" # noqa: E501 self._name = None @@ -171,7 +171,7 @@ def scheduled_at(self): 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. # noqa: E501 :return: The scheduled_at of this UpdateSmsCampaign. # noqa: E501 - :rtype: datetime + :rtype: str """ return self._scheduled_at @@ -182,7 +182,7 @@ def scheduled_at(self, scheduled_at): 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. # noqa: E501 :param scheduled_at: The scheduled_at of this UpdateSmsCampaign. # noqa: E501 - :type: datetime + :type: str """ self._scheduled_at = scheduled_at diff --git a/test/test_body.py b/test/test_body.py new file mode 100644 index 0000000..3133897 --- /dev/null +++ b/test/test_body.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 import Body # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody(unittest.TestCase): + """Body unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody(self): + """Test Body""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body.Body() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_body1.py b/test/test_body1.py new file mode 100644 index 0000000..ce43071 --- /dev/null +++ b/test/test_body1.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.body1 import Body1 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestBody1(unittest.TestCase): + """Body1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testBody1(self): + """Test Body1""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.body1.Body1() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_contact.py b/test/test_contact.py new file mode 100644 index 0000000..6005fd6 --- /dev/null +++ b/test/test_contact.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.contact import Contact # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestContact(unittest.TestCase): + """Contact unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContact(self): + """Test Contact""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.contact.Contact() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_create_sub_account.py b/test/test_create_sub_account.py new file mode 100644 index 0000000..b21f8aa --- /dev/null +++ b/test/test_create_sub_account.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_sub_account import CreateSubAccount # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCreateSubAccount(unittest.TestCase): + """CreateSubAccount unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateSubAccount(self): + """Test CreateSubAccount""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.create_sub_account.CreateSubAccount() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_crm_api.py b/test/test_crm_api.py new file mode 100644 index 0000000..8d60fe7 --- /dev/null +++ b/test/test_crm_api.py @@ -0,0 +1,125 @@ +# 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.crm_api import CRMApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestCRMApi(unittest.TestCase): + """CRMApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.crm_api.CRMApi() # noqa: E501 + + def tearDown(self): + 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 + + 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 + + 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_file_data.py b/test/test_file_data.py new file mode 100644 index 0000000..9498a23 --- /dev/null +++ b/test/test_file_data.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_data import FileData # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestFileData(unittest.TestCase): + """FileData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testFileData(self): + """Test FileData""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.file_data.FileData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_extended_contact_details_statistics_delivered.py b/test/test_get_extended_contact_details_statistics_delivered.py new file mode 100644 index 0000000..902e07e --- /dev/null +++ b/test/test_get_extended_contact_details_statistics_delivered.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_extended_contact_details_statistics_delivered import GetExtendedContactDetailsStatisticsDelivered # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetExtendedContactDetailsStatisticsDelivered(unittest.TestCase): + """GetExtendedContactDetailsStatisticsDelivered unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetExtendedContactDetailsStatisticsDelivered(self): + """Test GetExtendedContactDetailsStatisticsDelivered""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_extended_contact_details_statistics_delivered.GetExtendedContactDetailsStatisticsDelivered() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_inbound_email_events.py b/test/test_get_inbound_email_events.py new file mode 100644 index 0000000..65853c3 --- /dev/null +++ b/test/test_get_inbound_email_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_inbound_email_events import GetInboundEmailEvents # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetInboundEmailEvents(unittest.TestCase): + """GetInboundEmailEvents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetInboundEmailEvents(self): + """Test GetInboundEmailEvents""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_inbound_email_events.GetInboundEmailEvents() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_inbound_email_events_by_uuid.py b/test/test_get_inbound_email_events_by_uuid.py new file mode 100644 index 0000000..450d848 --- /dev/null +++ b/test/test_get_inbound_email_events_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_inbound_email_events_by_uuid import GetInboundEmailEventsByUuid # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetInboundEmailEventsByUuid(unittest.TestCase): + """GetInboundEmailEventsByUuid unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetInboundEmailEventsByUuid(self): + """Test GetInboundEmailEventsByUuid""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_inbound_email_events_by_uuid.GetInboundEmailEventsByUuid() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_inbound_email_events_by_uuid_attachments.py b/test/test_get_inbound_email_events_by_uuid_attachments.py new file mode 100644 index 0000000..eb240d0 --- /dev/null +++ b/test/test_get_inbound_email_events_by_uuid_attachments.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_inbound_email_events_by_uuid_attachments import GetInboundEmailEventsByUuidAttachments # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetInboundEmailEventsByUuidAttachments(unittest.TestCase): + """GetInboundEmailEventsByUuidAttachments unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetInboundEmailEventsByUuidAttachments(self): + """Test GetInboundEmailEventsByUuidAttachments""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_inbound_email_events_by_uuid_attachments.GetInboundEmailEventsByUuidAttachments() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_inbound_email_events_by_uuid_logs.py b/test/test_get_inbound_email_events_by_uuid_logs.py new file mode 100644 index 0000000..ef6a833 --- /dev/null +++ b/test/test_get_inbound_email_events_by_uuid_logs.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_inbound_email_events_by_uuid_logs import GetInboundEmailEventsByUuidLogs # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetInboundEmailEventsByUuidLogs(unittest.TestCase): + """GetInboundEmailEventsByUuidLogs unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetInboundEmailEventsByUuidLogs(self): + """Test GetInboundEmailEventsByUuidLogs""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_inbound_email_events_by_uuid_logs.GetInboundEmailEventsByUuidLogs() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_inbound_email_events_events.py b/test/test_get_inbound_email_events_events.py new file mode 100644 index 0000000..b1a184e --- /dev/null +++ b/test/test_get_inbound_email_events_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_inbound_email_events_events import GetInboundEmailEventsEvents # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetInboundEmailEventsEvents(unittest.TestCase): + """GetInboundEmailEventsEvents unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetInboundEmailEventsEvents(self): + """Test GetInboundEmailEventsEvents""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_inbound_email_events_events.GetInboundEmailEventsEvents() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inbound_parsing_api.py b/test/test_inbound_parsing_api.py new file mode 100644 index 0000000..0fde30f --- /dev/null +++ b/test/test_inbound_parsing_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.inbound_parsing_api import InboundParsingApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestInboundParsingApi(unittest.TestCase): + """InboundParsingApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.inbound_parsing_api.InboundParsingApi() # noqa: E501 + + def tearDown(self): + pass + + def test_get_inbound_email_events(self): + """Test case for get_inbound_email_events + + Get the list of all the events for the received emails. # noqa: E501 + """ + pass + + def test_get_inbound_email_events_by_uuid(self): + """Test case for get_inbound_email_events_by_uuid + + Fetch all events history for one particular received email. # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_account_api.py b/test/test_master_account_api.py new file mode 100644 index 0000000..baab1dd --- /dev/null +++ b/test/test_master_account_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.master_account_api import MasterAccountApi # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterAccountApi(unittest.TestCase): + """MasterAccountApi unit test stubs""" + + def setUp(self): + self.api = sib_api_v3_sdk.api.master_account_api.MasterAccountApi() # noqa: E501 + + def tearDown(self): + pass + + def test_corporate_master_account_get(self): + """Test case for corporate_master_account_get + + Get the details of requested master account # noqa: E501 + """ + pass + + def test_corporate_sub_account_get(self): + """Test case for corporate_sub_account_get + + Get the list of all the sub-accounts of the master account. # noqa: E501 + """ + pass + + def test_corporate_sub_account_id_delete(self): + """Test case for corporate_sub_account_id_delete + + Delete a sub-account # noqa: E501 + """ + pass + + def test_corporate_sub_account_id_get(self): + """Test case for corporate_sub_account_id_get + + Get sub-account details # noqa: E501 + """ + pass + + def test_corporate_sub_account_id_plan_put(self): + """Test case for corporate_sub_account_id_plan_put + + Update sub-account plan # noqa: E501 + """ + pass + + def test_corporate_sub_account_post(self): + """Test case for corporate_sub_account_post + + Create a new sub-account under a master account. # noqa: E501 + """ + pass + + def test_corporate_sub_account_sso_token_post(self): + """Test case for corporate_sub_account_sso_token_post + + Generate SSO token to access Sendinblue # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response.py b/test/test_master_details_response.py new file mode 100644 index 0000000..c5bb517 --- /dev/null +++ b/test/test_master_details_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.master_details_response import MasterDetailsResponse # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponse(unittest.TestCase): + """MasterDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponse(self): + """Test MasterDetailsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response.MasterDetailsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response_billing_info.py b/test/test_master_details_response_billing_info.py new file mode 100644 index 0000000..38d67fd --- /dev/null +++ b/test/test_master_details_response_billing_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.master_details_response_billing_info import MasterDetailsResponseBillingInfo # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponseBillingInfo(unittest.TestCase): + """MasterDetailsResponseBillingInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponseBillingInfo(self): + """Test MasterDetailsResponseBillingInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response_billing_info.MasterDetailsResponseBillingInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response_billing_info_address.py b/test/test_master_details_response_billing_info_address.py new file mode 100644 index 0000000..5a5bbb4 --- /dev/null +++ b/test/test_master_details_response_billing_info_address.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.master_details_response_billing_info_address import MasterDetailsResponseBillingInfoAddress # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponseBillingInfoAddress(unittest.TestCase): + """MasterDetailsResponseBillingInfoAddress unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponseBillingInfoAddress(self): + """Test MasterDetailsResponseBillingInfoAddress""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response_billing_info_address.MasterDetailsResponseBillingInfoAddress() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response_billing_info_name.py b/test/test_master_details_response_billing_info_name.py new file mode 100644 index 0000000..40080a9 --- /dev/null +++ b/test/test_master_details_response_billing_info_name.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.master_details_response_billing_info_name import MasterDetailsResponseBillingInfoName # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponseBillingInfoName(unittest.TestCase): + """MasterDetailsResponseBillingInfoName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponseBillingInfoName(self): + """Test MasterDetailsResponseBillingInfoName""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response_billing_info_name.MasterDetailsResponseBillingInfoName() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response_plan_info.py b/test/test_master_details_response_plan_info.py new file mode 100644 index 0000000..dab9b99 --- /dev/null +++ b/test/test_master_details_response_plan_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.master_details_response_plan_info import MasterDetailsResponsePlanInfo # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponsePlanInfo(unittest.TestCase): + """MasterDetailsResponsePlanInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponsePlanInfo(self): + """Test MasterDetailsResponsePlanInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response_plan_info.MasterDetailsResponsePlanInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_master_details_response_plan_info_features.py b/test/test_master_details_response_plan_info_features.py new file mode 100644 index 0000000..1dc38bf --- /dev/null +++ b/test/test_master_details_response_plan_info_features.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.master_details_response_plan_info_features import MasterDetailsResponsePlanInfoFeatures # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestMasterDetailsResponsePlanInfoFeatures(unittest.TestCase): + """MasterDetailsResponsePlanInfoFeatures unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMasterDetailsResponsePlanInfoFeatures(self): + """Test MasterDetailsResponsePlanInfoFeatures""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.master_details_response_plan_info_features.MasterDetailsResponsePlanInfoFeatures() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_note.py b/test/test_note.py new file mode 100644 index 0000000..e84db2b --- /dev/null +++ b/test/test_note.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.note import Note # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestNote(unittest.TestCase): + """Note unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNote(self): + """Test Note""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.note.Note() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_note_data.py b/test/test_note_data.py new file mode 100644 index 0000000..a1bc169 --- /dev/null +++ b/test/test_note_data.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.note_data import NoteData # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestNoteData(unittest.TestCase): + """NoteData unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNoteData(self): + """Test NoteData""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.note_data.NoteData() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sso_token_request.py b/test/test_sso_token_request.py new file mode 100644 index 0000000..e3cf46b --- /dev/null +++ b/test/test_sso_token_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.sso_token_request import SsoTokenRequest # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSsoTokenRequest(unittest.TestCase): + """SsoTokenRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSsoTokenRequest(self): + """Test SsoTokenRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sso_token_request.SsoTokenRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response.py b/test/test_sub_account_details_response.py new file mode 100644 index 0000000..956ee4c --- /dev/null +++ b/test/test_sub_account_details_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.sub_account_details_response import SubAccountDetailsResponse # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponse(unittest.TestCase): + """SubAccountDetailsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponse(self): + """Test SubAccountDetailsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response.SubAccountDetailsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info.py b/test/test_sub_account_details_response_plan_info.py new file mode 100644 index 0000000..4e974ad --- /dev/null +++ b/test/test_sub_account_details_response_plan_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.sub_account_details_response_plan_info import SubAccountDetailsResponsePlanInfo # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfo(unittest.TestCase): + """SubAccountDetailsResponsePlanInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfo(self): + """Test SubAccountDetailsResponsePlanInfo""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info.SubAccountDetailsResponsePlanInfo() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_credits.py b/test/test_sub_account_details_response_plan_info_credits.py new file mode 100644 index 0000000..e4cd2be --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_credits.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.sub_account_details_response_plan_info_credits import SubAccountDetailsResponsePlanInfoCredits # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoCredits(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoCredits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoCredits(self): + """Test SubAccountDetailsResponsePlanInfoCredits""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits.SubAccountDetailsResponsePlanInfoCredits() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_credits_emails.py b/test/test_sub_account_details_response_plan_info_credits_emails.py new file mode 100644 index 0000000..6983d6b --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_credits_emails.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.sub_account_details_response_plan_info_credits_emails import SubAccountDetailsResponsePlanInfoCreditsEmails # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoCreditsEmails(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoCreditsEmails unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoCreditsEmails(self): + """Test SubAccountDetailsResponsePlanInfoCreditsEmails""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_credits_emails.SubAccountDetailsResponsePlanInfoCreditsEmails() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_features.py b/test/test_sub_account_details_response_plan_info_features.py new file mode 100644 index 0000000..e57a88c --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_features.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.sub_account_details_response_plan_info_features import SubAccountDetailsResponsePlanInfoFeatures # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoFeatures(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoFeatures unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoFeatures(self): + """Test SubAccountDetailsResponsePlanInfoFeatures""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_features.SubAccountDetailsResponsePlanInfoFeatures() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_features_inbox.py b/test/test_sub_account_details_response_plan_info_features_inbox.py new file mode 100644 index 0000000..9443912 --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_features_inbox.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.sub_account_details_response_plan_info_features_inbox import SubAccountDetailsResponsePlanInfoFeaturesInbox # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoFeaturesInbox(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoFeaturesInbox unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoFeaturesInbox(self): + """Test SubAccountDetailsResponsePlanInfoFeaturesInbox""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_inbox.SubAccountDetailsResponsePlanInfoFeaturesInbox() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_features_landing_page.py b/test/test_sub_account_details_response_plan_info_features_landing_page.py new file mode 100644 index 0000000..1712b55 --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_features_landing_page.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.sub_account_details_response_plan_info_features_landing_page import SubAccountDetailsResponsePlanInfoFeaturesLandingPage # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoFeaturesLandingPage(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoFeaturesLandingPage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoFeaturesLandingPage(self): + """Test SubAccountDetailsResponsePlanInfoFeaturesLandingPage""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_landing_page.SubAccountDetailsResponsePlanInfoFeaturesLandingPage() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_details_response_plan_info_features_users.py b/test/test_sub_account_details_response_plan_info_features_users.py new file mode 100644 index 0000000..467d429 --- /dev/null +++ b/test/test_sub_account_details_response_plan_info_features_users.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.sub_account_details_response_plan_info_features_users import SubAccountDetailsResponsePlanInfoFeaturesUsers # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountDetailsResponsePlanInfoFeaturesUsers(unittest.TestCase): + """SubAccountDetailsResponsePlanInfoFeaturesUsers unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountDetailsResponsePlanInfoFeaturesUsers(self): + """Test SubAccountDetailsResponsePlanInfoFeaturesUsers""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_details_response_plan_info_features_users.SubAccountDetailsResponsePlanInfoFeaturesUsers() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_update_plan_request.py b/test/test_sub_account_update_plan_request.py new file mode 100644 index 0000000..377b5c5 --- /dev/null +++ b/test/test_sub_account_update_plan_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.sub_account_update_plan_request import SubAccountUpdatePlanRequest # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountUpdatePlanRequest(unittest.TestCase): + """SubAccountUpdatePlanRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountUpdatePlanRequest(self): + """Test SubAccountUpdatePlanRequest""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_update_plan_request.SubAccountUpdatePlanRequest() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_update_plan_request_credits.py b/test/test_sub_account_update_plan_request_credits.py new file mode 100644 index 0000000..0d71135 --- /dev/null +++ b/test/test_sub_account_update_plan_request_credits.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.sub_account_update_plan_request_credits import SubAccountUpdatePlanRequestCredits # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountUpdatePlanRequestCredits(unittest.TestCase): + """SubAccountUpdatePlanRequestCredits unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountUpdatePlanRequestCredits(self): + """Test SubAccountUpdatePlanRequestCredits""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_update_plan_request_credits.SubAccountUpdatePlanRequestCredits() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_account_update_plan_request_features.py b/test/test_sub_account_update_plan_request_features.py new file mode 100644 index 0000000..1b37b09 --- /dev/null +++ b/test/test_sub_account_update_plan_request_features.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.sub_account_update_plan_request_features import SubAccountUpdatePlanRequestFeatures # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountUpdatePlanRequestFeatures(unittest.TestCase): + """SubAccountUpdatePlanRequestFeatures unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountUpdatePlanRequestFeatures(self): + """Test SubAccountUpdatePlanRequestFeatures""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_account_update_plan_request_features.SubAccountUpdatePlanRequestFeatures() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_accounts_response.py b/test/test_sub_accounts_response.py new file mode 100644 index 0000000..5498830 --- /dev/null +++ b/test/test_sub_accounts_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.sub_accounts_response import SubAccountsResponse # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountsResponse(unittest.TestCase): + """SubAccountsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountsResponse(self): + """Test SubAccountsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_accounts_response.SubAccountsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_sub_accounts_response_sub_accounts.py b/test/test_sub_accounts_response_sub_accounts.py new file mode 100644 index 0000000..bef51f1 --- /dev/null +++ b/test/test_sub_accounts_response_sub_accounts.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.sub_accounts_response_sub_accounts import SubAccountsResponseSubAccounts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestSubAccountsResponseSubAccounts(unittest.TestCase): + """SubAccountsResponseSubAccounts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testSubAccountsResponseSubAccounts(self): + """Test SubAccountsResponseSubAccounts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.sub_accounts_response_sub_accounts.SubAccountsResponseSubAccounts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task.py b/test/test_task.py new file mode 100644 index 0000000..d3265f4 --- /dev/null +++ b/test/test_task.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.task import Task # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestTask(unittest.TestCase): + """Task unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTask(self): + """Test Task""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.task.Task() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_reminder.py b/test/test_task_reminder.py new file mode 100644 index 0000000..54cf15f --- /dev/null +++ b/test/test_task_reminder.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.task_reminder import TaskReminder # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestTaskReminder(unittest.TestCase): + """TaskReminder unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskReminder(self): + """Test TaskReminder""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.task_reminder.TaskReminder() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_task_types.py b/test/test_task_types.py new file mode 100644 index 0000000..4274431 --- /dev/null +++ b/test/test_task_types.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.task_types import TaskTypes # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestTaskTypes(unittest.TestCase): + """TaskTypes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTaskTypes(self): + """Test TaskTypes""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.task_types.TaskTypes() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_batch_contacts.py b/test/test_update_batch_contacts.py new file mode 100644 index 0000000..4d1785c --- /dev/null +++ b/test/test_update_batch_contacts.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_batch_contacts import UpdateBatchContacts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestUpdateBatchContacts(unittest.TestCase): + """UpdateBatchContacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateBatchContacts(self): + """Test UpdateBatchContacts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.update_batch_contacts.UpdateBatchContacts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_batch_contacts_contacts.py b/test/test_update_batch_contacts_contacts.py new file mode 100644 index 0000000..e0fb2e3 --- /dev/null +++ b/test/test_update_batch_contacts_contacts.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_batch_contacts_contacts import UpdateBatchContactsContacts # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestUpdateBatchContactsContacts(unittest.TestCase): + """UpdateBatchContactsContacts unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateBatchContactsContacts(self): + """Test UpdateBatchContactsContacts""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.update_batch_contacts_contacts.UpdateBatchContactsContacts() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_update_batch_contacts_model.py b/test/test_update_batch_contacts_model.py new file mode 100644 index 0000000..ad35fc1 --- /dev/null +++ b/test/test_update_batch_contacts_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.update_batch_contacts_model import UpdateBatchContactsModel # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestUpdateBatchContactsModel(unittest.TestCase): + """UpdateBatchContactsModel unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateBatchContactsModel(self): + """Test UpdateBatchContactsModel""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.update_batch_contacts_model.UpdateBatchContactsModel() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main()