From 7d65b2c17067ed6559235eb9b9951625a1556415 Mon Sep 17 00:00:00 2001 From: Aakanksha Sharma Date: Fri, 29 Sep 2017 16:58:18 +0530 Subject: [PATCH] fix: date validation changes of swagger synched --- README.md | 4 +- docs/AttributesApi.md | 4 +- docs/ContactsApi.md | 64 ++++---- docs/CreateEmailCampaign.md | 2 +- docs/CreateSmsCampaign.md | 2 +- ...aUpdateFolder.md => CreateUpdateFolder.md} | 2 +- docs/EmailCampaignsApi.md | 32 ++-- docs/FoldersApi.md | 32 ++-- docs/GetAccountPlan.md | 4 +- docs/GetCampaignOverview.md | 2 +- docs/GetCampaignStats.md | 2 +- docs/GetContactDetails.md | 2 +- docs/GetEmailCampaign.md | 8 +- docs/GetExtendedCampaignOverview.md | 8 +- docs/GetExtendedContactDetails.md | 2 +- docs/GetExtendedList.md | 2 +- docs/GetLists.md | 2 +- docs/GetListsFolder.md | 11 -- docs/GetListsLists.md | 10 -- docs/GetSmsCampaign.md | 6 +- docs/GetSmsCampaignOverview.md | 6 +- docs/GetSmtpTemplateOverview.md | 4 +- docs/GetWebhook.md | 4 +- docs/ListsApi.md | 32 ++-- docs/ProcessApi.md | 4 +- docs/ResellerApi.md | 14 +- docs/SMSCampaignsApi.md | 32 ++-- docs/SMTPApi.md | 20 +-- docs/SendTransacSms.md | 1 + docs/SendersApi.md | 12 +- docs/UpdateEmailCampaign.md | 2 +- docs/UpdateSmsCampaign.md | 2 +- docs/WebhooksApi.md | 12 +- sib_api_v3_sdk/__init__.py | 4 +- sib_api_v3_sdk/apis/attributes_api.py | 4 +- sib_api_v3_sdk/apis/contacts_api.py | 106 ++++++------ sib_api_v3_sdk/apis/email_campaigns_api.py | 32 ++-- sib_api_v3_sdk/apis/folders_api.py | 72 ++++---- sib_api_v3_sdk/apis/lists_api.py | 34 ++-- sib_api_v3_sdk/apis/process_api.py | 4 +- sib_api_v3_sdk/apis/senders_api.py | 12 +- sib_api_v3_sdk/apis/sms_campaigns_api.py | 32 ++-- sib_api_v3_sdk/apis/smtp_api.py | 20 +-- sib_api_v3_sdk/apis/webhooks_api.py | 12 +- sib_api_v3_sdk/models/__init__.py | 4 +- .../models/create_email_campaign.py | 12 +- sib_api_v3_sdk/models/create_sms_campaign.py | 12 +- ...date_folder.py => create_update_folder.py} | 14 +- sib_api_v3_sdk/models/get_account_plan.py | 66 +++++++- .../models/get_campaign_overview.py | 12 +- sib_api_v3_sdk/models/get_campaign_stats.py | 5 +- sib_api_v3_sdk/models/get_contact_details.py | 12 +- sib_api_v3_sdk/models/get_email_campaign.py | 41 ++--- .../models/get_extended_campaign_overview.py | 41 ++--- .../models/get_extended_contact_details.py | 12 +- sib_api_v3_sdk/models/get_extended_list.py | 12 +- sib_api_v3_sdk/models/get_lists.py | 64 ++++---- sib_api_v3_sdk/models/get_lists_folder.py | 155 ------------------ sib_api_v3_sdk/models/get_lists_lists.py | 123 -------------- sib_api_v3_sdk/models/get_sms_campaign.py | 36 ++-- .../models/get_sms_campaign_overview.py | 36 ++-- .../models/get_smtp_template_overview.py | 24 ++- sib_api_v3_sdk/models/get_webhook.py | 24 ++- sib_api_v3_sdk/models/send_transac_sms.py | 36 +++- .../models/update_email_campaign.py | 12 +- sib_api_v3_sdk/models/update_sms_campaign.py | 12 +- ...folder.py => test_create_update_folder.py} | 12 +- test/test_get_lists_folder.py | 44 ----- test/test_get_lists_lists.py | 44 ----- 69 files changed, 594 insertions(+), 949 deletions(-) rename docs/{CreaUpdateFolder.md => CreateUpdateFolder.md} (94%) delete mode 100644 docs/GetListsFolder.md delete mode 100644 docs/GetListsLists.md rename sib_api_v3_sdk/models/{crea_update_folder.py => create_update_folder.py} (90%) delete mode 100644 sib_api_v3_sdk/models/get_lists_folder.py delete mode 100644 sib_api_v3_sdk/models/get_lists_lists.py rename test/{test_crea_update_folder.py => test_create_update_folder.py} (81%) delete mode 100644 test/test_get_lists_folder.py delete mode 100644 test/test_get_lists_lists.py diff --git a/README.md b/README.md index 111f790..f4e34d2 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,6 @@ Class | Method | HTTP request | Description - [AddCredits](docs/AddCredits.md) - [AddRemoveContactToList](docs/AddRemoveContactToList.md) - - [CreaUpdateFolder](docs/CreaUpdateFolder.md) - [CreateAttribute](docs/CreateAttribute.md) - [CreateAttributeEnumemaration](docs/CreateAttributeEnumemaration.md) - [CreateChild](docs/CreateChild.md) @@ -203,6 +202,7 @@ Class | Method | HTTP request | Description - [CreateSmtpEmail](docs/CreateSmtpEmail.md) - [CreateSmtpTemplate](docs/CreateSmtpTemplate.md) - [CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md) + - [CreateUpdateFolder](docs/CreateUpdateFolder.md) - [CreateWebhook](docs/CreateWebhook.md) - [CreatedProcessId](docs/CreatedProcessId.md) - [DeleteHardbounces](docs/DeleteHardbounces.md) @@ -259,8 +259,6 @@ Class | Method | HTTP request | Description - [GetIpsFromSender](docs/GetIpsFromSender.md) - [GetList](docs/GetList.md) - [GetLists](docs/GetLists.md) - - [GetListsFolder](docs/GetListsFolder.md) - - [GetListsLists](docs/GetListsLists.md) - [GetProcess](docs/GetProcess.md) - [GetProcesses](docs/GetProcesses.md) - [GetReports](docs/GetReports.md) diff --git a/docs/AttributesApi.md b/docs/AttributesApi.md index 4fa360b..0fe12cf 100644 --- a/docs/AttributesApi.md +++ b/docs/AttributesApi.md @@ -80,7 +80,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.AttributesApi() -attribute_id = 'attribute_id_example' # str | id of the attribute +attribute_id = 789 # int | id of the attribute try: # Deletes an attribute @@ -93,7 +93,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_id** | **str**| id of the attribute | + **attribute_id** | **int**| id of the attribute | ### Return type diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index f805923..4dc161e 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -50,7 +50,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails addresses of the contacts try: @@ -65,7 +65,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type @@ -186,7 +186,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_folder** -> CreateModel create_folder(name) +> CreateModel create_folder(create_folder) Create a folder @@ -205,11 +205,11 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -name = sib_api_v3_sdk.CreaUpdateFolder() # CreaUpdateFolder | Name of the folder +create_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Create a folder - api_response = api_instance.create_folder(name) + api_response = api_instance.create_folder(create_folder) pprint(api_response) except ApiException as e: print("Exception when calling ContactsApi->create_folder: %s\n" % e) @@ -219,7 +219,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder | + **create_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -307,7 +307,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -attribute_id = 'attribute_id_example' # str | id of the attribute +attribute_id = 789 # int | id of the attribute try: # Deletes an attribute @@ -320,7 +320,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **attribute_id** | **str**| id of the attribute | + **attribute_id** | **int**| id of the attribute | ### Return type @@ -357,7 +357,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -folder_id = 'folder_id_example' # str | Id of the folder +folder_id = 789 # int | Id of the folder try: # Delete a folder (and all its lists) @@ -370,7 +370,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | + **folder_id** | **int**| Id of the folder | ### Return type @@ -407,7 +407,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list try: # Delete a list @@ -420,7 +420,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | ### Return type @@ -659,8 +659,8 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list -modified_since = 'modified_since_example' # str | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) +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 date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (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) @@ -676,8 +676,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | - **modified_since** | **str**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **list_id** | **int**| Id of the list | + **modified_since** | **datetime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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] @@ -716,7 +716,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -folder_id = 'folder_id_example' # str | id of the folder +folder_id = 789 # int | id of the folder try: # Returns folder details @@ -730,7 +730,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| id of the folder | + **folder_id** | **int**| id of the folder | ### Return type @@ -767,7 +767,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -folder_id = 'folder_id_example' # str | Id of the folder +folder_id = 789 # int | Id of the folder limit = 10 # int | Number of documents per page (optional) (default to 10) offset = 0 # int | Index of the first document of the page (optional) (default to 0) @@ -783,7 +783,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | + **folder_id** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -875,7 +875,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list try: # Get the details of a list @@ -889,7 +889,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | ### Return type @@ -1032,7 +1032,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails adresses of the contact try: @@ -1047,7 +1047,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type @@ -1171,7 +1171,7 @@ void (empty response body) [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_folder** -> update_folder(folder_id, name) +> update_folder(folder_id, update_folder) Update a contact folder @@ -1190,12 +1190,12 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -folder_id = 'folder_id_example' # str | Id of the folder -name = sib_api_v3_sdk.CreaUpdateFolder() # CreaUpdateFolder | Name of the folder +folder_id = 789 # int | Id of the folder +update_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Update a contact folder - api_instance.update_folder(folder_id, name) + api_instance.update_folder(folder_id, update_folder) except ApiException as e: print("Exception when calling ContactsApi->update_folder: %s\n" % e) ``` @@ -1204,8 +1204,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | - **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder | + **folder_id** | **int**| Id of the folder | + **update_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -1242,7 +1242,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list update_list = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list try: @@ -1256,7 +1256,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **update_list** | [**UpdateList**](UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/CreateEmailCampaign.md b/docs/CreateEmailCampaign.md index 48ea5e7..1cbad8c 100644 --- a/docs/CreateEmailCampaign.md +++ b/docs/CreateEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **name** | **str** | Name of the campaign | **html_content** | **str** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional] **html_url** | **str** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional] -**scheduled_at** | **str** | Sending date and time (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **subject** | **str** | Subject of the campaign | **reply_to** | **str** | Email on which the campaign recipients will be able to reply to | [optional] **to_field** | **str** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use [FNAME] [LNAME]. These attributes must already exist in your contact database | [optional] diff --git a/docs/CreateSmsCampaign.md b/docs/CreateSmsCampaign.md index f08915d..f27b335 100644 --- a/docs/CreateSmsCampaign.md +++ b/docs/CreateSmsCampaign.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **sender** | **str** | Name of the sender. The number of characters is limited to 11 | **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** | **str** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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/CreaUpdateFolder.md b/docs/CreateUpdateFolder.md similarity index 94% rename from docs/CreaUpdateFolder.md rename to docs/CreateUpdateFolder.md index ebc90fa..570adca 100644 --- a/docs/CreaUpdateFolder.md +++ b/docs/CreateUpdateFolder.md @@ -1,4 +1,4 @@ -# CreaUpdateFolder +# CreateUpdateFolder ## Properties Name | Type | Description | Notes diff --git a/docs/EmailCampaignsApi.md b/docs/EmailCampaignsApi.md index 5930d6f..b35ce23 100644 --- a/docs/EmailCampaignsApi.md +++ b/docs/EmailCampaignsApi.md @@ -87,7 +87,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the campaign +campaign_id = 789 # int | id of the campaign try: # Delete an email campaign @@ -100,7 +100,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the campaign | + **campaign_id** | **int**| id of the campaign | ### Return type @@ -137,7 +137,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign recipient_export = sib_api_v3_sdk.EmailExportRecipients() # EmailExportRecipients | Values to send for a recipient export request (optional) try: @@ -152,7 +152,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | **recipient_export** | [**EmailExportRecipients**](EmailExportRecipients.md)| Values to send for a recipient export request | [optional] ### Return type @@ -190,7 +190,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign try: # Get campaign informations @@ -204,7 +204,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | ### Return type @@ -298,7 +298,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign try: # Send an email campaign id of the campaign immediately @@ -311,7 +311,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | ### Return type @@ -350,7 +350,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign send_report = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report try: @@ -364,7 +364,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | **send_report** | [**SendReport**](SendReport.md)| Values for send a report | ### Return type @@ -402,7 +402,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign email_to = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | try: @@ -416,7 +416,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | **email_to** | [**SendTestEmail**](SendTestEmail.md)| | ### Return type @@ -454,7 +454,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign status = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign try: @@ -468,7 +468,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | **status** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign | ### Return type @@ -506,7 +506,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.EmailCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the campaign +campaign_id = 789 # int | Id of the campaign email_campaign = sib_api_v3_sdk.UpdateEmailCampaign() # UpdateEmailCampaign | Values to update a campaign try: @@ -520,7 +520,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the campaign | + **campaign_id** | **int**| Id of the campaign | **email_campaign** | [**UpdateEmailCampaign**](UpdateEmailCampaign.md)| Values to update a campaign | ### Return type diff --git a/docs/FoldersApi.md b/docs/FoldersApi.md index f70652f..0e6bb5f 100644 --- a/docs/FoldersApi.md +++ b/docs/FoldersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description # **create_folder** -> CreateModel create_folder(name) +> CreateModel create_folder(create_folder) Create a folder @@ -32,11 +32,11 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi() -name = sib_api_v3_sdk.CreaUpdateFolder() # CreaUpdateFolder | Name of the folder +create_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Create a folder - api_response = api_instance.create_folder(name) + api_response = api_instance.create_folder(create_folder) pprint(api_response) except ApiException as e: print("Exception when calling FoldersApi->create_folder: %s\n" % e) @@ -46,7 +46,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder | + **create_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type @@ -83,7 +83,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi() -folder_id = 'folder_id_example' # str | Id of the folder +folder_id = 789 # int | Id of the folder try: # Delete a folder (and all its lists) @@ -96,7 +96,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | + **folder_id** | **int**| Id of the folder | ### Return type @@ -133,7 +133,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi() -folder_id = 'folder_id_example' # str | id of the folder +folder_id = 789 # int | id of the folder try: # Returns folder details @@ -147,7 +147,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| id of the folder | + **folder_id** | **int**| id of the folder | ### Return type @@ -184,7 +184,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi() -folder_id = 'folder_id_example' # str | Id of the folder +folder_id = 789 # int | Id of the folder limit = 10 # int | Number of documents per page (optional) (default to 10) offset = 0 # int | Index of the first document of the page (optional) (default to 0) @@ -200,7 +200,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | + **folder_id** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -273,7 +273,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **update_folder** -> update_folder(folder_id, name) +> update_folder(folder_id, update_folder) Update a contact folder @@ -292,12 +292,12 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.FoldersApi() -folder_id = 'folder_id_example' # str | Id of the folder -name = sib_api_v3_sdk.CreaUpdateFolder() # CreaUpdateFolder | Name of the folder +folder_id = 789 # int | Id of the folder +update_folder = sib_api_v3_sdk.CreateUpdateFolder() # CreateUpdateFolder | Name of the folder try: # Update a contact folder - api_instance.update_folder(folder_id, name) + api_instance.update_folder(folder_id, update_folder) except ApiException as e: print("Exception when calling FoldersApi->update_folder: %s\n" % e) ``` @@ -306,8 +306,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | - **name** | [**CreaUpdateFolder**](CreaUpdateFolder.md)| Name of the folder | + **folder_id** | **int**| Id of the folder | + **update_folder** | [**CreateUpdateFolder**](CreateUpdateFolder.md)| Name of the folder | ### Return type diff --git a/docs/GetAccountPlan.md b/docs/GetAccountPlan.md index 3920b2b..0051a42 100644 --- a/docs/GetAccountPlan.md +++ b/docs/GetAccountPlan.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **type** | **str** | Displays the plan type of the user | **credits_type** | **str** | This is the type of the credit, \"User Limit\" or \"Send Limit\" are two possible types of credit of a user. \"User Limit\" implies the total number of subscribers you can add to your account, and \"Send Limit\" implies the total number of emails you can send to the subscribers in your account. | -**credits** | **int** | Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. | +**credits** | **float** | Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. | +**start_date** | **date** | Date of the period from which the plan will start (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) | [optional] +**end_date** | **date** | Date of the period from which the plan will end (only available for \"subscription\", \"unlimited\" and \"reseller\" plan 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/GetCampaignOverview.md b/docs/GetCampaignOverview.md index 576d0f0..a8b39d3 100644 --- a/docs/GetCampaignOverview.md +++ b/docs/GetCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign | **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **str** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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/GetCampaignStats.md b/docs/GetCampaignStats.md index b735579..ba3a583 100644 --- a/docs/GetCampaignStats.md +++ b/docs/GetCampaignStats.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_id** | **int** | List Id of email campaign (only in case of get email campaign(s)) | +**list_id** | **int** | List Id of email campaign (only in case of get email campaign(s)) | [optional] **unique_clicks** | **int** | Number of unique clicks for the campaign | **clickers** | **int** | Number of clicks for the campaign | **complaints** | **int** | Number of complaints (Spam reports) for the campaign | diff --git a/docs/GetContactDetails.md b/docs/GetContactDetails.md index a15381f..2ec2e48 100644 --- a/docs/GetContactDetails.md +++ b/docs/GetContactDetails.md @@ -7,7 +7,7 @@ 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) | -**modified_at** | **str** | Last modification date of the contact (YYYY-MM-DD HH:mm:ss) | +**modified_at** | **datetime** | Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **list_ids** | **list[int]** | | **list_unsubscribed** | **list[int]** | | [optional] **attributes** | **dict(str, str)** | | diff --git a/docs/GetEmailCampaign.md b/docs/GetEmailCampaign.md index d1e2f2a..b4140a9 100644 --- a/docs/GetEmailCampaign.md +++ b/docs/GetEmailCampaign.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign | **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **str** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **str** | Header of the campaign | **footer** | **str** | Footer of the campaign | @@ -16,10 +16,10 @@ Name | Type | Description | Notes **reply_to** | **str** | Email defined as the \"Reply to\" of the campaign | **to_field** | **str** | Customisation of the \"to\" field of the campaign | **html_content** | **str** | HTML content of the campaign | -**share_link** | **str** | Link to share the campaign on social medias | +**share_link** | **str** | Link to share the campaign on social medias | [optional] **tag** | **str** | Tag of the campaign | -**created_at** | **str** | Creation date of the campaign (YYYY-MM-DD HH:mm:ss) | -**modified_at** | **str** | Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) | +**created_at** | **datetime** | Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Date 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] diff --git a/docs/GetExtendedCampaignOverview.md b/docs/GetExtendedCampaignOverview.md index 67a7c55..dd5c53d 100644 --- a/docs/GetExtendedCampaignOverview.md +++ b/docs/GetExtendedCampaignOverview.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **subject** | **str** | Subject of the campaign | **type** | **str** | Type of campaign | **status** | **str** | Status of the campaign | -**scheduled_at** | **str** | Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional] **test_sent** | **bool** | Retrieved the status of test email sending. (true=Test email has been sent false=Test email has not been sent) | **header** | **str** | Header of the campaign | **footer** | **str** | Footer of the campaign | @@ -16,10 +16,10 @@ Name | Type | Description | Notes **reply_to** | **str** | Email defined as the \"Reply to\" of the campaign | **to_field** | **str** | Customisation of the \"to\" field of the campaign | **html_content** | **str** | HTML content of the campaign | -**share_link** | **str** | Link to share the campaign on social medias | +**share_link** | **str** | Link to share the campaign on social medias | [optional] **tag** | **str** | Tag of the campaign | -**created_at** | **str** | Creation date of the campaign (YYYY-MM-DD HH:mm:ss) | -**modified_at** | **str** | Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) | +**created_at** | **datetime** | Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Date 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] diff --git a/docs/GetExtendedContactDetails.md b/docs/GetExtendedContactDetails.md index 7c176aa..3ddf2cb 100644 --- a/docs/GetExtendedContactDetails.md +++ b/docs/GetExtendedContactDetails.md @@ -7,7 +7,7 @@ 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) | -**modified_at** | **str** | Last modification date of the contact (YYYY-MM-DD HH:mm:ss) | +**modified_at** | **datetime** | Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) | **list_ids** | **list[int]** | | **list_unsubscribed** | **list[int]** | | [optional] **attributes** | **dict(str, str)** | | diff --git a/docs/GetExtendedList.md b/docs/GetExtendedList.md index ee4dc95..5fad4f2 100644 --- a/docs/GetExtendedList.md +++ b/docs/GetExtendedList.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **total_blacklisted** | **int** | Number of blacklisted contacts in the list | **total_subscribers** | **int** | Number of contacts in the list | **folder_id** | **int** | ID of the folder | -**created_at** | **str** | Creation Date of the list (YYYY-MM-DD) | +**created_at** | **datetime** | Creation Date 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/GetLists.md b/docs/GetLists.md index 231605c..5e5f17c 100644 --- a/docs/GetLists.md +++ b/docs/GetLists.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**lists** | **list[object]** | Listing of all the lists available in your account | **count** | **int** | Number of lists in your account | -**lists** | [**list[GetListsLists]**](GetListsLists.md) | Listing of all the lists available in your account | [[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/GetListsFolder.md b/docs/GetListsFolder.md deleted file mode 100644 index 05ded5e..0000000 --- a/docs/GetListsFolder.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetListsFolder - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **int** | ID of the folder | -**name** | **str** | Name of the folder | - -[[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/GetListsLists.md b/docs/GetListsLists.md deleted file mode 100644 index 2bbac4c..0000000 --- a/docs/GetListsLists.md +++ /dev/null @@ -1,10 +0,0 @@ -# GetListsLists - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**folder** | [**GetListsFolder**](GetListsFolder.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/GetSmsCampaign.md b/docs/GetSmsCampaign.md index 1e252a6..14f15f5 100644 --- a/docs/GetSmsCampaign.md +++ b/docs/GetSmsCampaign.md @@ -7,11 +7,11 @@ 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** | **str** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format | +**scheduled_at** | **datetime** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | **test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **str** | Sender of the SMS Campaign | -**created_at** | **str** | Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) | -**modified_at** | **str** | Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) | +**created_at** | **datetime** | Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Date 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/GetSmsCampaignOverview.md b/docs/GetSmsCampaignOverview.md index 80e32be..167a242 100644 --- a/docs/GetSmsCampaignOverview.md +++ b/docs/GetSmsCampaignOverview.md @@ -7,11 +7,11 @@ 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** | **str** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format | +**scheduled_at** | **datetime** | Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format | **test_sent** | **bool** | Retrieved the status of test SMS sending. (true=Test SMS has been sent false=Test SMS has not been sent) | **sender** | **str** | Sender of the SMS Campaign | -**created_at** | **str** | Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) | -**modified_at** | **str** | Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) | +**created_at** | **datetime** | Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Date 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/GetSmtpTemplateOverview.md b/docs/GetSmtpTemplateOverview.md index 5f4f2ce..78ef401 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** | **str** | Creation date of the template (YYYY-MM-DD HH:mm:ss) | -**modified_at** | **str** | Last modification date of the template (YYYY-MM-DD HH:mm:ss) | +**created_at** | **datetime** | Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetWebhook.md b/docs/GetWebhook.md index 600a1f6..05d3677 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** | **str** | Creation date of the webhook (YYYY-MM-DD) | -**modified_at** | **str** | Last modification date of the webhook (YYYY-MM-DD) | +**created_at** | **datetime** | Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**modified_at** | **datetime** | Last modification date 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 af6e873..4c40f2c 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -35,7 +35,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails addresses of the contacts try: @@ -50,7 +50,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts | ### Return type @@ -139,7 +139,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list try: # Delete a list @@ -152,7 +152,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | ### Return type @@ -189,8 +189,8 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list -modified_since = 'modified_since_example' # str | Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) (optional) +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 date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) (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) @@ -206,8 +206,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | - **modified_since** | **str**| Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) | [optional] + **list_id** | **int**| Id of the list | + **modified_since** | **datetime**| Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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] @@ -246,7 +246,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -folder_id = 'folder_id_example' # str | Id of the folder +folder_id = 789 # int | Id of the folder limit = 10 # int | Number of documents per page (optional) (default to 10) offset = 0 # int | Index of the first document of the page (optional) (default to 0) @@ -262,7 +262,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **folder_id** | **str**| Id of the folder | + **folder_id** | **int**| Id of the folder | **limit** | **int**| Number of documents per page | [optional] [default to 10] **offset** | **int**| Index of the first document of the page | [optional] [default to 0] @@ -301,7 +301,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list try: # Get the details of a list @@ -315,7 +315,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | ### Return type @@ -405,7 +405,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails adresses of the contact try: @@ -420,7 +420,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact | ### Return type @@ -458,7 +458,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi() -list_id = 'list_id_example' # str | Id of the list +list_id = 789 # int | Id of the list update_list = sib_api_v3_sdk.UpdateList() # UpdateList | Values to update a list try: @@ -472,7 +472,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **list_id** | **str**| Id of the list | + **list_id** | **int**| Id of the list | **update_list** | [**UpdateList**](UpdateList.md)| Values to update a list | ### Return type diff --git a/docs/ProcessApi.md b/docs/ProcessApi.md index a9e91b3..ddd3118 100644 --- a/docs/ProcessApi.md +++ b/docs/ProcessApi.md @@ -28,7 +28,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ProcessApi() -process_id = 'process_id_example' # str | Id of the process +process_id = 789 # int | Id of the process try: # Return the informations for a process @@ -42,7 +42,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **process_id** | **str**| Id of the process | + **process_id** | **int**| Id of the process | ### Return type diff --git a/docs/ResellerApi.md b/docs/ResellerApi.md index ac3ce65..c133d62 100644 --- a/docs/ResellerApi.md +++ b/docs/ResellerApi.md @@ -35,7 +35,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child add_credits = sib_api_v3_sdk.AddCredits() # AddCredits | Values to post to add credit to a specific child account try: @@ -88,7 +88,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child ip_id = sib_api_v3_sdk.ManageIp() # ManageIp | IP's id try: @@ -191,7 +191,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child try: # Deletes a single reseller child based on the childId supplied @@ -241,7 +241,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child ip_id = sib_api_v3_sdk.ManageIp() # ManageIp | IP's id try: @@ -293,7 +293,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child try: # Gets the info about a specific child account @@ -391,7 +391,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child remove_credits = sib_api_v3_sdk.RemoveCredits() # RemoveCredits | Values to post to remove email or SMS credits from a specific child account try: @@ -444,7 +444,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi() -child_id = 56 # int | id of reseller's child +child_id = 789 # int | id of reseller's child reseller_child = sib_api_v3_sdk.UpdateChild() # UpdateChild | values to update in child profile try: diff --git a/docs/SMSCampaignsApi.md b/docs/SMSCampaignsApi.md index a3e2409..c829c6e 100644 --- a/docs/SMSCampaignsApi.md +++ b/docs/SMSCampaignsApi.md @@ -87,7 +87,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the SMS campaign +campaign_id = 789 # int | id of the SMS campaign try: # Delete the SMS campaign @@ -100,7 +100,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the SMS campaign | + **campaign_id** | **int**| id of the SMS campaign | ### Return type @@ -137,7 +137,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the SMS campaign +campaign_id = 789 # int | id of the SMS campaign get_sms_campaign = sib_api_v3_sdk.GetSmsCampaign() # GetSmsCampaign | Values to update an SMS Campaign try: @@ -152,7 +152,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the SMS campaign | + **campaign_id** | **int**| id of the SMS campaign | **get_sms_campaign** | [**GetSmsCampaign**](GetSmsCampaign.md)| Values to update an SMS Campaign | ### Return type @@ -247,7 +247,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the campaign +campaign_id = 789 # int | id of the campaign recipient_export = sib_api_v3_sdk.RequestSMSRecipientExport() # RequestSMSRecipientExport | Values to send for a recipient export request (optional) try: @@ -262,7 +262,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the campaign | + **campaign_id** | **int**| id of the campaign | **recipient_export** | [**RequestSMSRecipientExport**](RequestSMSRecipientExport.md)| Values to send for a recipient export request | [optional] ### Return type @@ -300,7 +300,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the campaign +campaign_id = 789 # int | id of the campaign try: # Send your SMS campaign immediately @@ -313,7 +313,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the campaign | + **campaign_id** | **int**| id of the campaign | ### Return type @@ -352,7 +352,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the campaign +campaign_id = 789 # int | id of the campaign send_report = sib_api_v3_sdk.SendReport() # SendReport | Values for send a report try: @@ -366,7 +366,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the campaign | + **campaign_id** | **int**| id of the campaign | **send_report** | [**SendReport**](SendReport.md)| Values for send a report | ### Return type @@ -404,7 +404,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | Id of the SMS campaign +campaign_id = 789 # int | Id of the SMS campaign send_test_sms = sib_api_v3_sdk.SendTestSms() # SendTestSms | Mobile number to which send the test try: @@ -418,7 +418,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| Id of the SMS campaign | + **campaign_id** | **int**| Id of the SMS campaign | **send_test_sms** | [**SendTestSms**](SendTestSms.md)| Mobile number to which send the test | ### Return type @@ -456,7 +456,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the SMS campaign +campaign_id = 789 # int | id of the SMS campaign update_sms_campaign = sib_api_v3_sdk.UpdateSmsCampaign() # UpdateSmsCampaign | Values to update an SMS Campaign try: @@ -470,7 +470,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the SMS campaign | + **campaign_id** | **int**| id of the SMS campaign | **update_sms_campaign** | [**UpdateSmsCampaign**](UpdateSmsCampaign.md)| Values to update an SMS Campaign | ### Return type @@ -508,7 +508,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMSCampaignsApi() -campaign_id = 'campaign_id_example' # str | id of the campaign +campaign_id = 789 # int | id of the campaign status = sib_api_v3_sdk.UpdateCampaignStatus() # UpdateCampaignStatus | Status of the campaign. try: @@ -522,7 +522,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **campaign_id** | **str**| id of the campaign | + **campaign_id** | **int**| id of the campaign | **status** | [**UpdateCampaignStatus**](UpdateCampaignStatus.md)| Status of the campaign. | ### Return type diff --git a/docs/SMTPApi.md b/docs/SMTPApi.md index f8c0ba4..45033fa 100644 --- a/docs/SMTPApi.md +++ b/docs/SMTPApi.md @@ -206,7 +206,7 @@ email = 'email_example' # str | Filter the report for a specific email addresses event = 'event_example' # str | Filter the report for a specific event type (optional) tags = 'tags_example' # str | Filter the report for tags (serialized and urlencoded array) (optional) message_id = 'message_id_example' # str | Filter on a specific message id (optional) -template_id = 'template_id_example' # str | Filter on a specific template id (optional) +template_id = 789 # int | Filter on a specific template id (optional) try: # Get all your SMTP activity (unaggregated events) @@ -229,7 +229,7 @@ Name | Type | Description | Notes **event** | **str**| Filter the report for a specific event type | [optional] **tags** | **str**| Filter the report for tags (serialized and urlencoded array) | [optional] **message_id** | **str**| Filter on a specific message id | [optional] - **template_id** | **str**| Filter on a specific template id | [optional] + **template_id** | **int**| Filter on a specific template id | [optional] ### Return type @@ -327,7 +327,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi() -template_id = 'template_id_example' # str | id of the template +template_id = 789 # int | id of the template try: # Returns the template informations @@ -341,7 +341,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **str**| id of the template | + **template_id** | **int**| id of the template | ### Return type @@ -433,7 +433,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi() -template_id = 'template_id_example' # str | Id of the template +template_id = 789 # int | Id of the template send_email = sib_api_v3_sdk.SendEmail() # SendEmail | try: @@ -448,7 +448,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **str**| Id of the template | + **template_id** | **int**| Id of the template | **send_email** | [**SendEmail**](SendEmail.md)| | ### Return type @@ -486,7 +486,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi() -template_id = 'template_id_example' # str | Id of the template +template_id = 789 # int | Id of the template send_test_email = sib_api_v3_sdk.SendTestEmail() # SendTestEmail | try: @@ -500,7 +500,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **str**| Id of the template | + **template_id** | **int**| Id of the template | **send_test_email** | [**SendTestEmail**](SendTestEmail.md)| | ### Return type @@ -589,7 +589,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SMTPApi() -template_id = 'template_id_example' # str | id of the template +template_id = 789 # int | id of the template smtp_template = sib_api_v3_sdk.UpdateSmtpTemplate() # UpdateSmtpTemplate | values to update in smtp template try: @@ -603,7 +603,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **template_id** | **str**| id of the template | + **template_id** | **int**| id of the template | **smtp_template** | [**UpdateSmtpTemplate**](UpdateSmtpTemplate.md)| values to update in smtp template | ### Return type diff --git a/docs/SendTransacSms.md b/docs/SendTransacSms.md index a337844..15aee37 100644 --- a/docs/SendTransacSms.md +++ b/docs/SendTransacSms.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **sender** | **str** | Name of the sender. Only alphanumeric characters. No more than 11 characters | **recipient** | **str** | Mobile number to send SMS with the country code | **content** | **str** | Content of the message. If more than 160 characters long, multiple text messages will be sent | +**type** | **str** | Type of the SMS | [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] diff --git a/docs/SendersApi.md b/docs/SendersApi.md index e16cbc8..c409aa6 100644 --- a/docs/SendersApi.md +++ b/docs/SendersApi.md @@ -83,7 +83,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi() -sender_id = 'sender_id_example' # str | Id of the sender +sender_id = 789 # int | Id of the sender try: # Delete a sender @@ -96,7 +96,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **str**| Id of the sender | + **sender_id** | **int**| Id of the sender | ### Return type @@ -180,7 +180,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi() -sender_id = 'sender_id_example' # str | Id of the sender +sender_id = 789 # int | Id of the sender try: # Return all the dedicated IPs for a sender @@ -194,7 +194,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **str**| Id of the sender | + **sender_id** | **int**| Id of the sender | ### Return type @@ -284,7 +284,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.SendersApi() -sender_id = 'sender_id_example' # str | Id of the sender +sender_id = 789 # int | Id of the sender sender = sib_api_v3_sdk.UpdateSender() # UpdateSender | sender's name (optional) try: @@ -298,7 +298,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **sender_id** | **str**| Id of the sender | + **sender_id** | **int**| Id of the sender | **sender** | [**UpdateSender**](UpdateSender.md)| sender's name | [optional] ### Return type diff --git a/docs/UpdateEmailCampaign.md b/docs/UpdateEmailCampaign.md index 17ee040..1b5a2ae 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** | **str** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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** | This is to personalize the «To» Field. If you want to include the first name and last name of your recipient, add [FNAME] [LNAME]. To use the contact attributes here, these must already exist in SendinBlue account | [optional] diff --git a/docs/UpdateSmsCampaign.md b/docs/UpdateSmsCampaign.md index 2911c3a..02583de 100644 --- a/docs/UpdateSmsCampaign.md +++ b/docs/UpdateSmsCampaign.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **sender** | **str** | Name of the sender. The number of characters is limited to 11 | [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** | **str** | Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) | [optional] +**scheduled_at** | **datetime** | Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) | [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/WebhooksApi.md b/docs/WebhooksApi.md index 4e5126b..026fe05 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -82,7 +82,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi() -webhook_id = 'webhook_id_example' # str | Id of the webhook +webhook_id = 789 # int | Id of the webhook try: # Delete a webhook @@ -95,7 +95,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **str**| Id of the webhook | + **webhook_id** | **int**| Id of the webhook | ### Return type @@ -132,7 +132,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi() -webhook_id = 'webhook_id_example' # str | Id of the webhook +webhook_id = 789 # int | Id of the webhook try: # Get a webhook details @@ -146,7 +146,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **str**| Id of the webhook | + **webhook_id** | **int**| Id of the webhook | ### Return type @@ -234,7 +234,7 @@ sib_api_v3_sdk.configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.WebhooksApi() -webhook_id = 'webhook_id_example' # str | Id of the webhook +webhook_id = 789 # int | Id of the webhook update_webhook = sib_api_v3_sdk.UpdateWebhook() # UpdateWebhook | Values to update a webhook try: @@ -248,7 +248,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **webhook_id** | **str**| Id of the webhook | + **webhook_id** | **int**| Id of the webhook | **update_webhook** | [**UpdateWebhook**](UpdateWebhook.md)| Values to update a webhook | ### Return type diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index 927a3c5..425aa74 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -16,7 +16,6 @@ # import models into sdk package from .models.add_credits import AddCredits from .models.add_remove_contact_to_list import AddRemoveContactToList -from .models.crea_update_folder import CreaUpdateFolder from .models.create_attribute import CreateAttribute from .models.create_attribute_enumemaration import CreateAttributeEnumemaration from .models.create_child import CreateChild @@ -34,6 +33,7 @@ from .models.create_smtp_email import CreateSmtpEmail from .models.create_smtp_template import CreateSmtpTemplate from .models.create_smtp_template_sender import CreateSmtpTemplateSender +from .models.create_update_folder import CreateUpdateFolder from .models.create_webhook import CreateWebhook from .models.created_process_id import CreatedProcessId from .models.delete_hardbounces import DeleteHardbounces @@ -90,8 +90,6 @@ from .models.get_ips_from_sender import GetIpsFromSender from .models.get_list import GetList from .models.get_lists import GetLists -from .models.get_lists_folder import GetListsFolder -from .models.get_lists_lists import GetListsLists from .models.get_process import GetProcess from .models.get_processes import GetProcesses from .models.get_reports import GetReports diff --git a/sib_api_v3_sdk/apis/attributes_api.py b/sib_api_v3_sdk/apis/attributes_api.py index abb0a52..40423d5 100644 --- a/sib_api_v3_sdk/apis/attributes_api.py +++ b/sib_api_v3_sdk/apis/attributes_api.py @@ -157,7 +157,7 @@ def delete_attribute(self, attribute_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str attribute_id: id of the attribute (required) + :param int attribute_id: id of the attribute (required) :return: None If the method is called asynchronously, returns the request thread. @@ -182,7 +182,7 @@ def delete_attribute_with_http_info(self, attribute_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str attribute_id: id of the attribute (required) + :param int attribute_id: id of the attribute (required) :return: None If the method is called asynchronously, returns the request thread. diff --git a/sib_api_v3_sdk/apis/contacts_api.py b/sib_api_v3_sdk/apis/contacts_api.py index 2e88392..863e150 100644 --- a/sib_api_v3_sdk/apis/contacts_api.py +++ b/sib_api_v3_sdk/apis/contacts_api.py @@ -53,7 +53,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, @@ -79,7 +79,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, @@ -359,7 +359,7 @@ def create_contact_with_http_info(self, create_contact, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def create_folder(self, name, **kwargs): + def create_folder(self, create_folder, **kwargs): """ Create a folder This method makes a synchronous HTTP request by default. To make an @@ -368,23 +368,23 @@ def create_folder(self, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_folder(name, callback=callback_function) + >>> thread = api.create_folder(create_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CreaUpdateFolder name: Name of the folder (required) + :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_folder_with_http_info(name, **kwargs) + return self.create_folder_with_http_info(create_folder, **kwargs) else: - (data) = self.create_folder_with_http_info(name, **kwargs) + (data) = self.create_folder_with_http_info(create_folder, **kwargs) return data - def create_folder_with_http_info(self, name, **kwargs): + def create_folder_with_http_info(self, create_folder, **kwargs): """ Create a folder This method makes a synchronous HTTP request by default. To make an @@ -393,17 +393,17 @@ def create_folder_with_http_info(self, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_folder_with_http_info(name, callback=callback_function) + >>> thread = api.create_folder_with_http_info(create_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CreaUpdateFolder name: Name of the folder (required) + :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['name'] + all_params = ['create_folder'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -418,9 +418,9 @@ def create_folder_with_http_info(self, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_folder`") + # verify the required parameter 'create_folder' is set + if ('create_folder' not in params) or (params['create_folder'] is None): + raise ValueError("Missing the required parameter `create_folder` when calling `create_folder`") collection_formats = {} @@ -435,8 +435,8 @@ def create_folder_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'name' in params: - body_params = params['name'] + if 'create_folder' in params: + body_params = params['create_folder'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) @@ -580,7 +580,7 @@ def delete_attribute(self, attribute_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str attribute_id: id of the attribute (required) + :param int attribute_id: id of the attribute (required) :return: None If the method is called asynchronously, returns the request thread. @@ -605,7 +605,7 @@ def delete_attribute_with_http_info(self, attribute_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str attribute_id: id of the attribute (required) + :param int attribute_id: id of the attribute (required) :return: None If the method is called asynchronously, returns the request thread. @@ -684,7 +684,7 @@ def delete_folder(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. @@ -709,7 +709,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. @@ -788,7 +788,7 @@ def delete_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. @@ -813,7 +813,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. @@ -1303,8 +1303,8 @@ def get_contacts_from_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) - :param str modified_since: Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) + :param int list_id: Id of the list (required) + :param datetime modified_since: Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -1331,8 +1331,8 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) - :param str modified_since: Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) + :param int list_id: Id of the list (required) + :param datetime modified_since: Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -1359,8 +1359,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): if ('list_id' not in params) or (params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `get_contacts_from_list`") - if 'modified_since' in params and not re.search('YYYY-MM-DD HH:mm:ss', params['modified_since']): - raise ValueError("Invalid value for parameter `modified_since` when calling `get_contacts_from_list`, must conform to the pattern `/YYYY-MM-DD HH:mm:ss/`") if 'limit' in params and params['limit'] > 500: raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value less than or equal to `500`") @@ -1423,7 +1421,7 @@ def get_folder(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: id of the folder (required) + :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. @@ -1448,7 +1446,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: id of the folder (required) + :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. @@ -1527,7 +1525,7 @@ def get_folder_lists(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -1554,7 +1552,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -1754,7 +1752,7 @@ def get_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. @@ -1779,7 +1777,7 @@ def get_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. @@ -2071,7 +2069,7 @@ def remove_contact_to_list(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, @@ -2097,7 +2095,7 @@ def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, @@ -2386,7 +2384,7 @@ def update_contact_with_http_info(self, email, update_contact, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_folder(self, folder_id, name, **kwargs): + def update_folder(self, folder_id, update_folder, **kwargs): """ Update a contact folder This method makes a synchronous HTTP request by default. To make an @@ -2395,24 +2393,24 @@ def update_folder(self, folder_id, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_folder(folder_id, name, callback=callback_function) + >>> thread = api.update_folder(folder_id, update_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) - :param CreaUpdateFolder name: Name of the folder (required) + :param int folder_id: Id of the folder (required) + :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.update_folder_with_http_info(folder_id, name, **kwargs) + return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) else: - (data) = self.update_folder_with_http_info(folder_id, name, **kwargs) + (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) return data - def update_folder_with_http_info(self, folder_id, name, **kwargs): + def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): """ Update a contact folder This method makes a synchronous HTTP request by default. To make an @@ -2421,18 +2419,18 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_folder_with_http_info(folder_id, name, callback=callback_function) + >>> thread = api.update_folder_with_http_info(folder_id, update_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) - :param CreaUpdateFolder name: Name of the folder (required) + :param int folder_id: Id of the folder (required) + :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['folder_id', 'name'] + all_params = ['folder_id', 'update_folder'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2450,9 +2448,9 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): # verify the required parameter 'folder_id' is set if ('folder_id' not in params) or (params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `update_folder`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `update_folder`") + # verify the required parameter 'update_folder' is set + if ('update_folder' not in params) or (params['update_folder'] is None): + raise ValueError("Missing the required parameter `update_folder` when calling `update_folder`") collection_formats = {} @@ -2469,8 +2467,8 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): local_var_files = {} body_params = None - if 'name' in params: - body_params = params['name'] + if 'update_folder' in params: + body_params = params['update_folder'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) @@ -2510,7 +2508,7 @@ def update_list(self, list_id, update_list, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, @@ -2536,7 +2534,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/email_campaigns_api.py b/sib_api_v3_sdk/apis/email_campaigns_api.py index 7e2dd80..a959152 100644 --- a/sib_api_v3_sdk/apis/email_campaigns_api.py +++ b/sib_api_v3_sdk/apis/email_campaigns_api.py @@ -157,7 +157,7 @@ def delete_email_campaigns(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -182,7 +182,7 @@ def delete_email_campaigns_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -261,7 +261,7 @@ def email_export_recipients(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param EmailExportRecipients recipient_export: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, @@ -287,7 +287,7 @@ def email_export_recipients_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param EmailExportRecipients recipient_export: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, @@ -369,7 +369,7 @@ def get_email_campaign(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. @@ -394,7 +394,7 @@ def get_email_campaign_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :return: GetEmailCampaign If the method is called asynchronously, returns the request thread. @@ -588,7 +588,7 @@ def send_email_campaign_now(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -613,7 +613,7 @@ def send_email_campaign_now_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -693,7 +693,7 @@ def send_report(self, campaign_id, send_report, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, @@ -720,7 +720,7 @@ def send_report_with_http_info(self, campaign_id, send_report, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, @@ -805,7 +805,7 @@ def send_test_email(self, campaign_id, email_to, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param SendTestEmail email_to: (required) :return: None If the method is called asynchronously, @@ -831,7 +831,7 @@ def send_test_email_with_http_info(self, campaign_id, email_to, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param SendTestEmail email_to: (required) :return: None If the method is called asynchronously, @@ -916,7 +916,7 @@ def update_campaign_status(self, campaign_id, status, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign (required) :return: None If the method is called asynchronously, @@ -942,7 +942,7 @@ def update_campaign_status_with_http_info(self, campaign_id, status, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign (required) :return: None If the method is called asynchronously, @@ -1027,7 +1027,7 @@ def update_email_campaigns(self, campaign_id, email_campaign, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None If the method is called asynchronously, @@ -1053,7 +1053,7 @@ def update_email_campaigns_with_http_info(self, campaign_id, email_campaign, **k :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the campaign (required) + :param int campaign_id: Id of the campaign (required) :param UpdateEmailCampaign email_campaign: Values to update a campaign (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/folders_api.py b/sib_api_v3_sdk/apis/folders_api.py index 474ce80..809d4ec 100644 --- a/sib_api_v3_sdk/apis/folders_api.py +++ b/sib_api_v3_sdk/apis/folders_api.py @@ -40,7 +40,7 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def create_folder(self, name, **kwargs): + def create_folder(self, create_folder, **kwargs): """ Create a folder This method makes a synchronous HTTP request by default. To make an @@ -49,23 +49,23 @@ def create_folder(self, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_folder(name, callback=callback_function) + >>> thread = api.create_folder(create_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CreaUpdateFolder name: Name of the folder (required) + :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.create_folder_with_http_info(name, **kwargs) + return self.create_folder_with_http_info(create_folder, **kwargs) else: - (data) = self.create_folder_with_http_info(name, **kwargs) + (data) = self.create_folder_with_http_info(create_folder, **kwargs) return data - def create_folder_with_http_info(self, name, **kwargs): + def create_folder_with_http_info(self, create_folder, **kwargs): """ Create a folder This method makes a synchronous HTTP request by default. To make an @@ -74,17 +74,17 @@ def create_folder_with_http_info(self, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.create_folder_with_http_info(name, callback=callback_function) + >>> thread = api.create_folder_with_http_info(create_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param CreaUpdateFolder name: Name of the folder (required) + :param CreateUpdateFolder create_folder: Name of the folder (required) :return: CreateModel If the method is called asynchronously, returns the request thread. """ - all_params = ['name'] + all_params = ['create_folder'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -99,9 +99,9 @@ def create_folder_with_http_info(self, name, **kwargs): ) params[key] = val del params['kwargs'] - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `create_folder`") + # verify the required parameter 'create_folder' is set + if ('create_folder' not in params) or (params['create_folder'] is None): + raise ValueError("Missing the required parameter `create_folder` when calling `create_folder`") collection_formats = {} @@ -116,8 +116,8 @@ def create_folder_with_http_info(self, name, **kwargs): local_var_files = {} body_params = None - if 'name' in params: - body_params = params['name'] + if 'create_folder' in params: + body_params = params['create_folder'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) @@ -157,7 +157,7 @@ def delete_folder(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. @@ -182,7 +182,7 @@ def delete_folder_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :return: None If the method is called asynchronously, returns the request thread. @@ -261,7 +261,7 @@ def get_folder(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: id of the folder (required) + :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. @@ -286,7 +286,7 @@ def get_folder_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: id of the folder (required) + :param int folder_id: id of the folder (required) :return: GetFolder If the method is called asynchronously, returns the request thread. @@ -365,7 +365,7 @@ def get_folder_lists(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -392,7 +392,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -579,7 +579,7 @@ def get_folders_with_http_info(self, limit, offset, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_folder(self, folder_id, name, **kwargs): + def update_folder(self, folder_id, update_folder, **kwargs): """ Update a contact folder This method makes a synchronous HTTP request by default. To make an @@ -588,24 +588,24 @@ def update_folder(self, folder_id, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_folder(folder_id, name, callback=callback_function) + >>> thread = api.update_folder(folder_id, update_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) - :param CreaUpdateFolder name: Name of the folder (required) + :param int folder_id: Id of the folder (required) + :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.update_folder_with_http_info(folder_id, name, **kwargs) + return self.update_folder_with_http_info(folder_id, update_folder, **kwargs) else: - (data) = self.update_folder_with_http_info(folder_id, name, **kwargs) + (data) = self.update_folder_with_http_info(folder_id, update_folder, **kwargs) return data - def update_folder_with_http_info(self, folder_id, name, **kwargs): + def update_folder_with_http_info(self, folder_id, update_folder, **kwargs): """ Update a contact folder This method makes a synchronous HTTP request by default. To make an @@ -614,18 +614,18 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.update_folder_with_http_info(folder_id, name, callback=callback_function) + >>> thread = api.update_folder_with_http_info(folder_id, update_folder, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) - :param CreaUpdateFolder name: Name of the folder (required) + :param int folder_id: Id of the folder (required) + :param CreateUpdateFolder update_folder: Name of the folder (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['folder_id', 'name'] + all_params = ['folder_id', 'update_folder'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -643,9 +643,9 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): # verify the required parameter 'folder_id' is set if ('folder_id' not in params) or (params['folder_id'] is None): raise ValueError("Missing the required parameter `folder_id` when calling `update_folder`") - # verify the required parameter 'name' is set - if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `update_folder`") + # verify the required parameter 'update_folder' is set + if ('update_folder' not in params) or (params['update_folder'] is None): + raise ValueError("Missing the required parameter `update_folder` when calling `update_folder`") collection_formats = {} @@ -662,8 +662,8 @@ def update_folder_with_http_info(self, folder_id, name, **kwargs): local_var_files = {} body_params = None - if 'name' in params: - body_params = params['name'] + if 'update_folder' in params: + body_params = params['update_folder'] # HTTP header `Accept` header_params['Accept'] = self.api_client.\ select_header_accept(['application/json']) diff --git a/sib_api_v3_sdk/apis/lists_api.py b/sib_api_v3_sdk/apis/lists_api.py index 892e28b..ad5bce7 100644 --- a/sib_api_v3_sdk/apis/lists_api.py +++ b/sib_api_v3_sdk/apis/lists_api.py @@ -53,7 +53,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, @@ -79,7 +79,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, @@ -268,7 +268,7 @@ def delete_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. @@ -293,7 +293,7 @@ def delete_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: None If the method is called asynchronously, returns the request thread. @@ -372,8 +372,8 @@ def get_contacts_from_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) - :param str modified_since: Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) + :param int list_id: Id of the list (required) + :param datetime modified_since: Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -400,8 +400,8 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) - :param str modified_since: Filter the contacts modified after a given date (YYYY-MM-DD HH:mm:ss) + :param int list_id: Id of the list (required) + :param datetime modified_since: Filter (urlencoded) the contacts modified after a given date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetContacts @@ -428,8 +428,6 @@ def get_contacts_from_list_with_http_info(self, list_id, **kwargs): if ('list_id' not in params) or (params['list_id'] is None): raise ValueError("Missing the required parameter `list_id` when calling `get_contacts_from_list`") - if 'modified_since' in params and not re.search('YYYY-MM-DD HH:mm:ss', params['modified_since']): - raise ValueError("Invalid value for parameter `modified_since` when calling `get_contacts_from_list`, must conform to the pattern `/YYYY-MM-DD HH:mm:ss/`") if 'limit' in params and params['limit'] > 500: raise ValueError("Invalid value for parameter `limit` when calling `get_contacts_from_list`, must be a value less than or equal to `500`") @@ -492,7 +490,7 @@ def get_folder_lists(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -519,7 +517,7 @@ def get_folder_lists_with_http_info(self, folder_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str folder_id: Id of the folder (required) + :param int folder_id: Id of the folder (required) :param int limit: Number of documents per page :param int offset: Index of the first document of the page :return: GetFolderLists @@ -606,7 +604,7 @@ def get_list(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. @@ -631,7 +629,7 @@ def get_list_with_http_info(self, list_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :return: GetExtendedList If the method is called asynchronously, returns the request thread. @@ -817,7 +815,7 @@ def remove_contact_to_list(self, list_id, contact_emails, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, @@ -843,7 +841,7 @@ def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, @@ -928,7 +926,7 @@ def update_list(self, list_id, update_list, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, @@ -954,7 +952,7 @@ def update_list_with_http_info(self, list_id, update_list, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str list_id: Id of the list (required) + :param int list_id: Id of the list (required) :param UpdateList update_list: Values to update a list (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/process_api.py b/sib_api_v3_sdk/apis/process_api.py index 85dd4e0..544536f 100644 --- a/sib_api_v3_sdk/apis/process_api.py +++ b/sib_api_v3_sdk/apis/process_api.py @@ -53,7 +53,7 @@ def get_process(self, process_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str process_id: Id of the process (required) + :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, returns the request thread. @@ -78,7 +78,7 @@ def get_process_with_http_info(self, process_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str process_id: Id of the process (required) + :param int process_id: Id of the process (required) :return: GetProcess If the method is called asynchronously, returns the request thread. diff --git a/sib_api_v3_sdk/apis/senders_api.py b/sib_api_v3_sdk/apis/senders_api.py index d430fce..3253e5b 100644 --- a/sib_api_v3_sdk/apis/senders_api.py +++ b/sib_api_v3_sdk/apis/senders_api.py @@ -154,7 +154,7 @@ def delete_sender(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. @@ -179,7 +179,7 @@ def delete_sender_with_http_info(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :return: None If the method is called asynchronously, returns the request thread. @@ -354,7 +354,7 @@ def get_ips_from_sender(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. @@ -379,7 +379,7 @@ def get_ips_from_sender_with_http_info(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :return: GetIpsFromSender If the method is called asynchronously, returns the request thread. @@ -563,7 +563,7 @@ def update_sender(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, @@ -589,7 +589,7 @@ def update_sender_with_http_info(self, sender_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str sender_id: Id of the sender (required) + :param int sender_id: Id of the sender (required) :param UpdateSender sender: sender's name :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/sms_campaigns_api.py b/sib_api_v3_sdk/apis/sms_campaigns_api.py index 6dda42d..d6d94f0 100644 --- a/sib_api_v3_sdk/apis/sms_campaigns_api.py +++ b/sib_api_v3_sdk/apis/sms_campaigns_api.py @@ -157,7 +157,7 @@ def delete_sms_campaigns(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -182,7 +182,7 @@ def delete_sms_campaigns_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -261,7 +261,7 @@ def get_sms_campaign(self, campaign_id, get_sms_campaign, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :param GetSmsCampaign get_sms_campaign: Values to update an SMS Campaign (required) :return: GetSmsCampaign If the method is called asynchronously, @@ -287,7 +287,7 @@ def get_sms_campaign_with_http_info(self, campaign_id, get_sms_campaign, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :param GetSmsCampaign get_sms_campaign: Values to update an SMS Campaign (required) :return: GetSmsCampaign If the method is called asynchronously, @@ -484,7 +484,7 @@ def request_sms_recipient_export(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param RequestSMSRecipientExport recipient_export: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, @@ -511,7 +511,7 @@ def request_sms_recipient_export_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param RequestSMSRecipientExport recipient_export: Values to send for a recipient export request :return: CreatedProcessId If the method is called asynchronously, @@ -593,7 +593,7 @@ def send_sms_campaign_now(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -618,7 +618,7 @@ def send_sms_campaign_now_with_http_info(self, campaign_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :return: None If the method is called asynchronously, returns the request thread. @@ -698,7 +698,7 @@ def send_sms_report(self, campaign_id, send_report, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, @@ -725,7 +725,7 @@ def send_sms_report_with_http_info(self, campaign_id, send_report, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param SendReport send_report: Values for send a report (required) :return: None If the method is called asynchronously, @@ -810,7 +810,7 @@ def send_test_sms(self, campaign_id, send_test_sms, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the SMS campaign (required) + :param int campaign_id: Id of the SMS campaign (required) :param SendTestSms send_test_sms: Mobile number to which send the test (required) :return: None If the method is called asynchronously, @@ -836,7 +836,7 @@ def send_test_sms_with_http_info(self, campaign_id, send_test_sms, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: Id of the SMS campaign (required) + :param int campaign_id: Id of the SMS campaign (required) :param SendTestSms send_test_sms: Mobile number to which send the test (required) :return: None If the method is called asynchronously, @@ -921,7 +921,7 @@ def update_sms_campaign(self, campaign_id, update_sms_campaign, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None If the method is called asynchronously, @@ -947,7 +947,7 @@ def update_sms_campaign_with_http_info(self, campaign_id, update_sms_campaign, * :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the SMS campaign (required) + :param int campaign_id: id of the SMS campaign (required) :param UpdateSmsCampaign update_sms_campaign: Values to update an SMS Campaign (required) :return: None If the method is called asynchronously, @@ -1032,7 +1032,7 @@ def update_sms_campaign_status(self, campaign_id, status, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None If the method is called asynchronously, @@ -1058,7 +1058,7 @@ def update_sms_campaign_status_with_http_info(self, campaign_id, status, **kwarg :param callback function: The callback function for asynchronous request. (optional) - :param str campaign_id: id of the campaign (required) + :param int campaign_id: id of the campaign (required) :param UpdateCampaignStatus status: Status of the campaign. (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/smtp_api.py b/sib_api_v3_sdk/apis/smtp_api.py index 460cc7b..f160f43 100644 --- a/sib_api_v3_sdk/apis/smtp_api.py +++ b/sib_api_v3_sdk/apis/smtp_api.py @@ -382,7 +382,7 @@ def get_email_event_report(self, **kwargs): :param str event: Filter the report for a specific event type :param str tags: Filter the report for tags (serialized and urlencoded array) :param str message_id: Filter on a specific message id - :param str template_id: Filter on a specific template id + :param int template_id: Filter on a specific template id :return: GetEmailEventReport If the method is called asynchronously, returns the request thread. @@ -416,7 +416,7 @@ def get_email_event_report_with_http_info(self, **kwargs): :param str event: Filter the report for a specific event type :param str tags: Filter the report for tags (serialized and urlencoded array) :param str message_id: Filter on a specific message id - :param str template_id: Filter on a specific template id + :param int template_id: Filter on a specific template id :return: GetEmailEventReport If the method is called asynchronously, returns the request thread. @@ -635,7 +635,7 @@ def get_smtp_template(self, template_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: id of the template (required) + :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, returns the request thread. @@ -660,7 +660,7 @@ def get_smtp_template_with_http_info(self, template_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: id of the template (required) + :param int template_id: id of the template (required) :return: GetSmtpTemplateOverview If the method is called asynchronously, returns the request thread. @@ -850,7 +850,7 @@ def send_template(self, template_id, send_email, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: Id of the template (required) + :param int template_id: Id of the template (required) :param SendEmail send_email: (required) :return: SendTemplateEmail If the method is called asynchronously, @@ -876,7 +876,7 @@ def send_template_with_http_info(self, template_id, send_email, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: Id of the template (required) + :param int template_id: Id of the template (required) :param SendEmail send_email: (required) :return: SendTemplateEmail If the method is called asynchronously, @@ -961,7 +961,7 @@ def send_test_template(self, template_id, send_test_email, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: Id of the template (required) + :param int template_id: Id of the template (required) :param SendTestEmail send_test_email: (required) :return: None If the method is called asynchronously, @@ -987,7 +987,7 @@ def send_test_template_with_http_info(self, template_id, send_test_email, **kwar :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: Id of the template (required) + :param int template_id: Id of the template (required) :param SendTestEmail send_test_email: (required) :return: None If the method is called asynchronously, @@ -1176,7 +1176,7 @@ def update_smtp_template(self, template_id, smtp_template, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: id of the template (required) + :param int template_id: id of the template (required) :param UpdateSmtpTemplate smtp_template: values to update in smtp template (required) :return: None If the method is called asynchronously, @@ -1202,7 +1202,7 @@ def update_smtp_template_with_http_info(self, template_id, smtp_template, **kwar :param callback function: The callback function for asynchronous request. (optional) - :param str template_id: id of the template (required) + :param int template_id: id of the template (required) :param UpdateSmtpTemplate smtp_template: values to update in smtp template (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/apis/webhooks_api.py b/sib_api_v3_sdk/apis/webhooks_api.py index 945fa68..6d3956d 100644 --- a/sib_api_v3_sdk/apis/webhooks_api.py +++ b/sib_api_v3_sdk/apis/webhooks_api.py @@ -157,7 +157,7 @@ def delete_webhook(self, webhook_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, returns the request thread. @@ -182,7 +182,7 @@ def delete_webhook_with_http_info(self, webhook_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :return: None If the method is called asynchronously, returns the request thread. @@ -261,7 +261,7 @@ def get_webhook(self, webhook_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, returns the request thread. @@ -286,7 +286,7 @@ def get_webhook_with_http_info(self, webhook_id, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :return: GetWebhook If the method is called asynchronously, returns the request thread. @@ -466,7 +466,7 @@ def update_webhook(self, webhook_id, update_webhook, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None If the method is called asynchronously, @@ -492,7 +492,7 @@ def update_webhook_with_http_info(self, webhook_id, update_webhook, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param str webhook_id: Id of the webhook (required) + :param int webhook_id: Id of the webhook (required) :param UpdateWebhook update_webhook: Values to update a webhook (required) :return: None If the method is called asynchronously, diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index 205f795..26e0330 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -16,7 +16,6 @@ # import models into model package from .add_credits import AddCredits from .add_remove_contact_to_list import AddRemoveContactToList -from .crea_update_folder import CreaUpdateFolder from .create_attribute import CreateAttribute from .create_attribute_enumemaration import CreateAttributeEnumemaration from .create_child import CreateChild @@ -34,6 +33,7 @@ from .create_smtp_email import CreateSmtpEmail from .create_smtp_template import CreateSmtpTemplate from .create_smtp_template_sender import CreateSmtpTemplateSender +from .create_update_folder import CreateUpdateFolder from .create_webhook import CreateWebhook from .created_process_id import CreatedProcessId from .delete_hardbounces import DeleteHardbounces @@ -90,8 +90,6 @@ from .get_ips_from_sender import GetIpsFromSender from .get_list import GetList from .get_lists import GetLists -from .get_lists_folder import GetListsFolder -from .get_lists_lists import GetListsLists from .get_process import GetProcess from .get_processes import GetProcesses from .get_reports import GetReports diff --git a/sib_api_v3_sdk/models/create_email_campaign.py b/sib_api_v3_sdk/models/create_email_campaign.py index 7d8c872..fc13964 100644 --- a/sib_api_v3_sdk/models/create_email_campaign.py +++ b/sib_api_v3_sdk/models/create_email_campaign.py @@ -36,7 +36,7 @@ class CreateEmailCampaign(object): 'name': 'str', 'html_content': 'str', 'html_url': 'str', - 'scheduled_at': 'str', + 'scheduled_at': 'datetime', 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', @@ -249,10 +249,10 @@ def html_url(self, html_url): def scheduled_at(self): """ Gets the scheduled_at of this CreateEmailCampaign. - Sending date and time (YYYY-MM-DD HH:mm:ss) + Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this CreateEmailCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -260,13 +260,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this CreateEmailCampaign. - Sending date and time (YYYY-MM-DD HH:mm:ss) + Sending date and time (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this CreateEmailCampaign. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") 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 33a2279..4437d8b 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': 'str' + 'scheduled_at': 'datetime' } attribute_map = { @@ -166,10 +166,10 @@ def recipients(self, recipients): def scheduled_at(self): """ Gets the scheduled_at of this CreateSmsCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this CreateSmsCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -177,13 +177,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this CreateSmsCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this CreateSmsCampaign. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at diff --git a/sib_api_v3_sdk/models/crea_update_folder.py b/sib_api_v3_sdk/models/create_update_folder.py similarity index 90% rename from sib_api_v3_sdk/models/crea_update_folder.py rename to sib_api_v3_sdk/models/create_update_folder.py index a90d830..b7965c7 100644 --- a/sib_api_v3_sdk/models/crea_update_folder.py +++ b/sib_api_v3_sdk/models/create_update_folder.py @@ -16,7 +16,7 @@ import re -class CreaUpdateFolder(object): +class CreateUpdateFolder(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -40,7 +40,7 @@ class CreaUpdateFolder(object): def __init__(self, name=None): """ - CreaUpdateFolder - a model defined in Swagger + CreateUpdateFolder - a model defined in Swagger """ self._name = None @@ -51,10 +51,10 @@ def __init__(self, name=None): @property def name(self): """ - Gets the name of this CreaUpdateFolder. + Gets the name of this CreateUpdateFolder. Name of the folder - :return: The name of this CreaUpdateFolder. + :return: The name of this CreateUpdateFolder. :rtype: str """ return self._name @@ -62,10 +62,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this CreaUpdateFolder. + Sets the name of this CreateUpdateFolder. Name of the folder - :param name: The name of this CreaUpdateFolder. + :param name: The name of this CreateUpdateFolder. :type: str """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, CreaUpdateFolder): + if not isinstance(other, CreateUpdateFolder): return False return self.__dict__ == other.__dict__ diff --git a/sib_api_v3_sdk/models/get_account_plan.py b/sib_api_v3_sdk/models/get_account_plan.py index 8141ccb..33ed271 100644 --- a/sib_api_v3_sdk/models/get_account_plan.py +++ b/sib_api_v3_sdk/models/get_account_plan.py @@ -33,16 +33,20 @@ class GetAccountPlan(object): swagger_types = { 'type': 'str', 'credits_type': 'str', - 'credits': 'int' + 'credits': 'float', + 'start_date': 'date', + 'end_date': 'date' } attribute_map = { 'type': 'type', 'credits_type': 'creditsType', - 'credits': 'credits' + 'credits': 'credits', + 'start_date': 'startDate', + 'end_date': 'endDate' } - def __init__(self, type=None, credits_type=None, credits=None): + def __init__(self, type=None, credits_type=None, credits=None, start_date=None, end_date=None): """ GetAccountPlan - a model defined in Swagger """ @@ -50,10 +54,16 @@ def __init__(self, type=None, credits_type=None, credits=None): self._type = None self._credits_type = None self._credits = None + self._start_date = None + self._end_date = None self.type = type self.credits_type = credits_type self.credits = credits + if start_date is not None: + self.start_date = start_date + if end_date is not None: + self.end_date = end_date @property def type(self): @@ -124,7 +134,7 @@ def credits(self): Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. :return: The credits of this GetAccountPlan. - :rtype: int + :rtype: float """ return self._credits @@ -135,13 +145,59 @@ def credits(self, credits): Remaining credits of the user. This can either be \"User Limit\" or \"Send Limit\" depending on the plan. :param credits: The credits of this GetAccountPlan. - :type: int + :type: float """ if credits is None: raise ValueError("Invalid value for `credits`, must not be `None`") self._credits = credits + @property + def start_date(self): + """ + Gets the start_date of this GetAccountPlan. + Date of the period from which the plan will start (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + + :return: The start_date of this GetAccountPlan. + :rtype: date + """ + return self._start_date + + @start_date.setter + def start_date(self, start_date): + """ + Sets the start_date of this GetAccountPlan. + Date of the period from which the plan will start (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + + :param start_date: The start_date of this GetAccountPlan. + :type: date + """ + + self._start_date = start_date + + @property + def end_date(self): + """ + Gets the end_date of this GetAccountPlan. + Date of the period from which the plan will end (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + + :return: The end_date of this GetAccountPlan. + :rtype: date + """ + return self._end_date + + @end_date.setter + def end_date(self, end_date): + """ + Sets the end_date of this GetAccountPlan. + Date of the period from which the plan will end (only available for \"subscription\", \"unlimited\" and \"reseller\" plan type) + + :param end_date: The end_date of this GetAccountPlan. + :type: date + """ + + self._end_date = end_date + def to_dict(self): """ Returns the model properties as a dict diff --git a/sib_api_v3_sdk/models/get_campaign_overview.py b/sib_api_v3_sdk/models/get_campaign_overview.py index e765e6c..88a2911 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': 'str' + 'scheduled_at': 'datetime' } attribute_map = { @@ -209,10 +209,10 @@ def status(self, status): def scheduled_at(self): """ Gets the scheduled_at of this GetCampaignOverview. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this GetCampaignOverview. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -220,13 +220,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this GetCampaignOverview. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this GetCampaignOverview. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") 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 c4c629b..e7af3a9 100644 --- a/sib_api_v3_sdk/models/get_campaign_stats.py +++ b/sib_api_v3_sdk/models/get_campaign_stats.py @@ -78,7 +78,8 @@ def __init__(self, list_id=None, unique_clicks=None, clickers=None, complaints=N self._viewed = None self._deferred = None - self.list_id = list_id + if list_id is not None: + self.list_id = list_id self.unique_clicks = unique_clicks self.clickers = clickers self.complaints = complaints @@ -111,8 +112,6 @@ def list_id(self, list_id): :param list_id: The list_id of this GetCampaignStats. :type: int """ - if list_id is None: - raise ValueError("Invalid value for `list_id`, must not be `None`") self._list_id = list_id diff --git a/sib_api_v3_sdk/models/get_contact_details.py b/sib_api_v3_sdk/models/get_contact_details.py index 2f128de..52c36da 100644 --- a/sib_api_v3_sdk/models/get_contact_details.py +++ b/sib_api_v3_sdk/models/get_contact_details.py @@ -35,7 +35,7 @@ class GetContactDetails(object): 'id': 'int', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', - 'modified_at': 'str', + 'modified_at': 'datetime', 'list_ids': 'list[int]', 'list_unsubscribed': 'list[int]', 'attributes': 'dict(str, str)' @@ -180,10 +180,10 @@ def sms_blacklisted(self, sms_blacklisted): def modified_at(self): """ Gets the modified_at of this GetContactDetails. - Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetContactDetails. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -191,15 +191,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetContactDetails. - Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetContactDetails. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at diff --git a/sib_api_v3_sdk/models/get_email_campaign.py b/sib_api_v3_sdk/models/get_email_campaign.py index 97b3174..4e48d69 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': 'str', + 'scheduled_at': 'datetime', 'test_sent': 'bool', 'header': 'str', 'footer': 'str', @@ -46,8 +46,8 @@ class GetEmailCampaign(object): 'html_content': 'str', 'share_link': 'str', 'tag': 'str', - 'created_at': 'str', - 'modified_at': 'str', + 'created_at': 'datetime', + 'modified_at': 'datetime', 'inline_image_activation': 'bool', 'mirror_active': 'bool', 'recurring': 'bool' @@ -117,7 +117,8 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self.reply_to = reply_to self.to_field = to_field self.html_content = html_content - self.share_link = share_link + if share_link is not None: + self.share_link = share_link self.tag = tag self.created_at = created_at self.modified_at = modified_at @@ -269,10 +270,10 @@ def status(self, status): def scheduled_at(self): """ Gets the scheduled_at of this GetEmailCampaign. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this GetEmailCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -280,13 +281,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this GetEmailCampaign. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this GetEmailCampaign. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at @@ -481,8 +480,6 @@ def share_link(self, share_link): :param share_link: The share_link of this GetEmailCampaign. :type: str """ - if share_link is None: - raise ValueError("Invalid value for `share_link`, must not be `None`") self._share_link = share_link @@ -515,10 +512,10 @@ def tag(self, tag): def created_at(self): """ Gets the created_at of this GetEmailCampaign. - Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetEmailCampaign. - :rtype: str + :rtype: datetime """ return self._created_at @@ -526,15 +523,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetEmailCampaign. - Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetEmailCampaign. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._created_at = created_at @@ -542,10 +537,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetEmailCampaign. - Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetEmailCampaign. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -553,15 +548,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetEmailCampaign. - Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetEmailCampaign. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at 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 807315c..5aaebc8 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': 'str', + 'scheduled_at': 'datetime', 'test_sent': 'bool', 'header': 'str', 'footer': 'str', @@ -46,8 +46,8 @@ class GetExtendedCampaignOverview(object): 'html_content': 'str', 'share_link': 'str', 'tag': 'str', - 'created_at': 'str', - 'modified_at': 'str', + 'created_at': 'datetime', + 'modified_at': 'datetime', 'inline_image_activation': 'bool', 'mirror_active': 'bool', 'recurring': 'bool' @@ -117,7 +117,8 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self.reply_to = reply_to self.to_field = to_field self.html_content = html_content - self.share_link = share_link + if share_link is not None: + self.share_link = share_link self.tag = tag self.created_at = created_at self.modified_at = modified_at @@ -269,10 +270,10 @@ def status(self, status): def scheduled_at(self): """ Gets the scheduled_at of this GetExtendedCampaignOverview. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this GetExtendedCampaignOverview. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -280,13 +281,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this GetExtendedCampaignOverview. - Date on which campaign is scheduled (YYYY-MM-DD HH:mm:ss) + Date on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this GetExtendedCampaignOverview. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at @@ -481,8 +480,6 @@ def share_link(self, share_link): :param share_link: The share_link of this GetExtendedCampaignOverview. :type: str """ - if share_link is None: - raise ValueError("Invalid value for `share_link`, must not be `None`") self._share_link = share_link @@ -515,10 +512,10 @@ def tag(self, tag): def created_at(self): """ Gets the created_at of this GetExtendedCampaignOverview. - Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetExtendedCampaignOverview. - :rtype: str + :rtype: datetime """ return self._created_at @@ -526,15 +523,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetExtendedCampaignOverview. - Creation date of the campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetExtendedCampaignOverview. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._created_at = created_at @@ -542,10 +537,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetExtendedCampaignOverview. - Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetExtendedCampaignOverview. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -553,15 +548,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetExtendedCampaignOverview. - Date of last modification of the campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetExtendedCampaignOverview. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at 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 989be1f..8557563 100644 --- a/sib_api_v3_sdk/models/get_extended_contact_details.py +++ b/sib_api_v3_sdk/models/get_extended_contact_details.py @@ -35,7 +35,7 @@ class GetExtendedContactDetails(object): 'id': 'int', 'email_blacklisted': 'bool', 'sms_blacklisted': 'bool', - 'modified_at': 'str', + 'modified_at': 'datetime', 'list_ids': 'list[int]', 'list_unsubscribed': 'list[int]', 'attributes': 'dict(str, str)', @@ -185,10 +185,10 @@ def sms_blacklisted(self, sms_blacklisted): def modified_at(self): """ Gets the modified_at of this GetExtendedContactDetails. - Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetExtendedContactDetails. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -196,15 +196,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetExtendedContactDetails. - Last modification date of the contact (YYYY-MM-DD HH:mm:ss) + Last modification date of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetExtendedContactDetails. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at diff --git a/sib_api_v3_sdk/models/get_extended_list.py b/sib_api_v3_sdk/models/get_extended_list.py index 2185aa4..6b7e067 100644 --- a/sib_api_v3_sdk/models/get_extended_list.py +++ b/sib_api_v3_sdk/models/get_extended_list.py @@ -36,7 +36,7 @@ class GetExtendedList(object): 'total_blacklisted': 'int', 'total_subscribers': 'int', 'folder_id': 'int', - 'created_at': 'str', + 'created_at': 'datetime', 'campaign_stats': 'list[GetExtendedListCampaignStats]', 'dynamic_list': 'bool' } @@ -206,10 +206,10 @@ def folder_id(self, folder_id): def created_at(self): """ Gets the created_at of this GetExtendedList. - Creation Date of the list (YYYY-MM-DD) + Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetExtendedList. - :rtype: str + :rtype: datetime """ return self._created_at @@ -217,15 +217,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetExtendedList. - Creation Date of the list (YYYY-MM-DD) + Creation Date of the list (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetExtendedList. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2})?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2})?$/`") self._created_at = created_at diff --git a/sib_api_v3_sdk/models/get_lists.py b/sib_api_v3_sdk/models/get_lists.py index ce9eb95..0c4ce9a 100644 --- a/sib_api_v3_sdk/models/get_lists.py +++ b/sib_api_v3_sdk/models/get_lists.py @@ -31,25 +31,50 @@ class GetLists(object): and the value is json key in definition. """ swagger_types = { - 'count': 'int', - 'lists': 'list[GetListsLists]' + 'lists': 'list[object]', + 'count': 'int' } attribute_map = { - 'count': 'count', - 'lists': 'lists' + 'lists': 'lists', + 'count': 'count' } - def __init__(self, count=None, lists=None): + def __init__(self, lists=None, count=None): """ GetLists - a model defined in Swagger """ - self._count = None self._lists = None + self._count = None - self.count = count self.lists = lists + self.count = count + + @property + def lists(self): + """ + Gets the lists of this GetLists. + Listing of all the lists available in your account + + :return: The lists of this GetLists. + :rtype: list[object] + """ + return self._lists + + @lists.setter + def lists(self, lists): + """ + Sets the lists of this GetLists. + Listing of all the lists available in your account + + :param lists: The lists of this GetLists. + :type: list[object] + """ + if lists is None: + raise ValueError("Invalid value for `lists`, must not be `None`") + + self._lists = lists @property def count(self): @@ -76,31 +101,6 @@ def count(self, count): self._count = count - @property - def lists(self): - """ - Gets the lists of this GetLists. - Listing of all the lists available in your account - - :return: The lists of this GetLists. - :rtype: list[GetListsLists] - """ - return self._lists - - @lists.setter - def lists(self, lists): - """ - Sets the lists of this GetLists. - Listing of all the lists available in your account - - :param lists: The lists of this GetLists. - :type: list[GetListsLists] - """ - if lists is None: - raise ValueError("Invalid value for `lists`, must not be `None`") - - self._lists = lists - def to_dict(self): """ Returns the model properties as a dict diff --git a/sib_api_v3_sdk/models/get_lists_folder.py b/sib_api_v3_sdk/models/get_lists_folder.py deleted file mode 100644 index b61c972..0000000 --- a/sib_api_v3_sdk/models/get_lists_folder.py +++ /dev/null @@ -1,155 +0,0 @@ -# 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 | - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class GetListsFolder(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'id': 'int', - 'name': 'str' - } - - attribute_map = { - 'id': 'id', - 'name': 'name' - } - - def __init__(self, id=None, name=None): - """ - GetListsFolder - a model defined in Swagger - """ - - self._id = None - self._name = None - - self.id = id - self.name = name - - @property - def id(self): - """ - Gets the id of this GetListsFolder. - ID of the folder - - :return: The id of this GetListsFolder. - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """ - Sets the id of this GetListsFolder. - ID of the folder - - :param id: The id of this GetListsFolder. - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") - - self._id = id - - @property - def name(self): - """ - Gets the name of this GetListsFolder. - Name of the folder - - :return: The name of this GetListsFolder. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this GetListsFolder. - Name of the folder - - :param name: The name of this GetListsFolder. - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") - - self._name = name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in 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 - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return 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, GetListsFolder): - 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_lists_lists.py b/sib_api_v3_sdk/models/get_lists_lists.py deleted file mode 100644 index cb4fed3..0000000 --- a/sib_api_v3_sdk/models/get_lists_lists.py +++ /dev/null @@ -1,123 +0,0 @@ -# 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 | - - OpenAPI spec version: 3.0.0 - Contact: contact@sendinblue.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class GetListsLists(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 = { - 'folder': 'GetListsFolder' - } - - attribute_map = { - 'folder': 'folder' - } - - def __init__(self, folder=None): - """ - GetListsLists - a model defined in Swagger - """ - - self._folder = None - - if folder is not None: - self.folder = folder - - @property - def folder(self): - """ - Gets the folder of this GetListsLists. - - :return: The folder of this GetListsLists. - :rtype: GetListsFolder - """ - return self._folder - - @folder.setter - def folder(self, folder): - """ - Sets the folder of this GetListsLists. - - :param folder: The folder of this GetListsLists. - :type: GetListsFolder - """ - - self._folder = folder - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in 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 - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return 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, GetListsLists): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/sib_api_v3_sdk/models/get_sms_campaign.py b/sib_api_v3_sdk/models/get_sms_campaign.py index 09d92d4..5613f8e 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign.py +++ b/sib_api_v3_sdk/models/get_sms_campaign.py @@ -35,11 +35,11 @@ class GetSmsCampaign(object): 'name': 'str', 'status': 'str', 'content': 'str', - 'scheduled_at': 'str', + 'scheduled_at': 'datetime', 'test_sent': 'bool', 'sender': 'str', - 'created_at': 'str', - 'modified_at': 'str' + 'created_at': 'datetime', + 'modified_at': 'datetime' } attribute_map = { @@ -189,10 +189,10 @@ def content(self, content): def scheduled_at(self): """ Gets the scheduled_at of this GetSmsCampaign. - Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format :return: The scheduled_at of this GetSmsCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -200,15 +200,13 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this GetSmsCampaign. - Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format :param scheduled_at: The scheduled_at of this GetSmsCampaign. - :type: str + :type: datetime """ if scheduled_at is None: raise ValueError("Invalid value for `scheduled_at`, must not be `None`") - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at @@ -266,10 +264,10 @@ def sender(self, sender): def created_at(self): """ Gets the created_at of this GetSmsCampaign. - Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetSmsCampaign. - :rtype: str + :rtype: datetime """ return self._created_at @@ -277,15 +275,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetSmsCampaign. - Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetSmsCampaign. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._created_at = created_at @@ -293,10 +289,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetSmsCampaign. - Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetSmsCampaign. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -304,15 +300,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetSmsCampaign. - Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetSmsCampaign. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at 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 9ea9ee1..5c2af0b 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign_overview.py +++ b/sib_api_v3_sdk/models/get_sms_campaign_overview.py @@ -35,11 +35,11 @@ class GetSmsCampaignOverview(object): 'name': 'str', 'status': 'str', 'content': 'str', - 'scheduled_at': 'str', + 'scheduled_at': 'datetime', 'test_sent': 'bool', 'sender': 'str', - 'created_at': 'str', - 'modified_at': 'str' + 'created_at': 'datetime', + 'modified_at': 'datetime' } attribute_map = { @@ -189,10 +189,10 @@ def content(self, content): def scheduled_at(self): """ Gets the scheduled_at of this GetSmsCampaignOverview. - Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format :return: The scheduled_at of this GetSmsCampaignOverview. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -200,15 +200,13 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this GetSmsCampaignOverview. - Date on which SMS campaign is scheduled. Should be in YYYY-MM-DD HH:mm:ss format + Date on which SMS campaign is scheduled. Should be in YYYY-MM-DDTHH:mm:ss.SSSZ format :param scheduled_at: The scheduled_at of this GetSmsCampaignOverview. - :type: str + :type: datetime """ if scheduled_at is None: raise ValueError("Invalid value for `scheduled_at`, must not be `None`") - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at @@ -266,10 +264,10 @@ def sender(self, sender): def created_at(self): """ Gets the created_at of this GetSmsCampaignOverview. - Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetSmsCampaignOverview. - :rtype: str + :rtype: datetime """ return self._created_at @@ -277,15 +275,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetSmsCampaignOverview. - Creation date of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Creation date of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetSmsCampaignOverview. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._created_at = created_at @@ -293,10 +289,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetSmsCampaignOverview. - Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetSmsCampaignOverview. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -304,15 +300,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetSmsCampaignOverview. - Date of last modification of the SMS campaign (YYYY-MM-DD HH:mm:ss) + Date of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetSmsCampaignOverview. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at 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 284f498..4de3321 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': 'str', - 'modified_at': 'str' + 'created_at': 'datetime', + 'modified_at': 'datetime' } attribute_map = { @@ -342,10 +342,10 @@ def html_content(self, html_content): def created_at(self): """ Gets the created_at of this GetSmtpTemplateOverview. - Creation date of the template (YYYY-MM-DD HH:mm:ss) + Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetSmtpTemplateOverview. - :rtype: str + :rtype: datetime """ return self._created_at @@ -353,15 +353,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetSmtpTemplateOverview. - Creation date of the template (YYYY-MM-DD HH:mm:ss) + Creation date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetSmtpTemplateOverview. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._created_at = created_at @@ -369,10 +367,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetSmtpTemplateOverview. - Last modification date of the template (YYYY-MM-DD HH:mm:ss) + Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetSmtpTemplateOverview. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -380,15 +378,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetSmtpTemplateOverview. - Last modification date of the template (YYYY-MM-DD HH:mm:ss) + Last modification date of the template (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetSmtpTemplateOverview. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._modified_at = modified_at diff --git a/sib_api_v3_sdk/models/get_webhook.py b/sib_api_v3_sdk/models/get_webhook.py index d2dbd41..e57dec4 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': 'str', - 'modified_at': 'str' + 'created_at': 'datetime', + 'modified_at': 'datetime' } attribute_map = { @@ -204,10 +204,10 @@ def type(self, type): def created_at(self): """ Gets the created_at of this GetWebhook. - Creation date of the webhook (YYYY-MM-DD) + Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The created_at of this GetWebhook. - :rtype: str + :rtype: datetime """ return self._created_at @@ -215,15 +215,13 @@ def created_at(self): def created_at(self, created_at): """ Sets the created_at of this GetWebhook. - Creation date of the webhook (YYYY-MM-DD) + Creation date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) :param created_at: The created_at of this GetWebhook. - :type: str + :type: datetime """ if created_at is None: raise ValueError("Invalid value for `created_at`, must not be `None`") - if created_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2})?$', created_at): - raise ValueError("Invalid value for `created_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2})?$/`") self._created_at = created_at @@ -231,10 +229,10 @@ def created_at(self, created_at): def modified_at(self): """ Gets the modified_at of this GetWebhook. - Last modification date of the webhook (YYYY-MM-DD) + Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The modified_at of this GetWebhook. - :rtype: str + :rtype: datetime """ return self._modified_at @@ -242,15 +240,13 @@ def modified_at(self): def modified_at(self, modified_at): """ Sets the modified_at of this GetWebhook. - Last modification date of the webhook (YYYY-MM-DD) + Last modification date of the webhook (YYYY-MM-DDTHH:mm:ss.SSSZ) :param modified_at: The modified_at of this GetWebhook. - :type: str + :type: datetime """ if modified_at is None: raise ValueError("Invalid value for `modified_at`, must not be `None`") - if modified_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2})?$', modified_at): - raise ValueError("Invalid value for `modified_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2})?$/`") self._modified_at = modified_at diff --git a/sib_api_v3_sdk/models/send_transac_sms.py b/sib_api_v3_sdk/models/send_transac_sms.py index df178c5..f03438a 100644 --- a/sib_api_v3_sdk/models/send_transac_sms.py +++ b/sib_api_v3_sdk/models/send_transac_sms.py @@ -34,6 +34,7 @@ class SendTransacSms(object): 'sender': 'str', 'recipient': 'str', 'content': 'str', + 'type': 'str', 'tag': 'str', 'web_url': 'str' } @@ -42,11 +43,12 @@ class SendTransacSms(object): 'sender': 'sender', 'recipient': 'recipient', 'content': 'content', + 'type': 'type', 'tag': 'tag', 'web_url': 'webUrl' } - def __init__(self, sender=None, recipient=None, content=None, tag=None, web_url=None): + def __init__(self, sender=None, recipient=None, content=None, type='transactional', tag=None, web_url=None): """ SendTransacSms - a model defined in Swagger """ @@ -54,12 +56,15 @@ def __init__(self, sender=None, recipient=None, content=None, tag=None, web_url= self._sender = None self._recipient = None self._content = None + self._type = None self._tag = None self._web_url = None self.sender = sender self.recipient = recipient self.content = content + if type is not None: + self.type = type if tag is not None: self.tag = tag if web_url is not None: @@ -144,6 +149,35 @@ def content(self, content): self._content = content + @property + def type(self): + """ + Gets the type of this SendTransacSms. + Type of the SMS + + :return: The type of this SendTransacSms. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this SendTransacSms. + Type of the SMS + + :param type: The type of this SendTransacSms. + :type: str + """ + allowed_values = ["transactional", "marketing"] + if type not in allowed_values: + raise ValueError( + "Invalid value for `type` ({0}), must be one of {1}" + .format(type, allowed_values) + ) + + self._type = type + @property def tag(self): """ diff --git a/sib_api_v3_sdk/models/update_email_campaign.py b/sib_api_v3_sdk/models/update_email_campaign.py index 67fe134..a700cd8 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': 'str', + 'scheduled_at': 'datetime', 'subject': 'str', 'reply_to': 'str', 'to_field': 'str', @@ -245,10 +245,10 @@ def html_url(self, html_url): def scheduled_at(self): """ Gets the scheduled_at of this UpdateEmailCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this UpdateEmailCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -256,13 +256,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this UpdateEmailCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this UpdateEmailCampaign. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") 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 0062c87..fe2c6ca 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': 'str' + 'scheduled_at': 'datetime' } attribute_map = { @@ -164,10 +164,10 @@ def recipients(self, recipients): def scheduled_at(self): """ Gets the scheduled_at of this UpdateSmsCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :return: The scheduled_at of this UpdateSmsCampaign. - :rtype: str + :rtype: datetime """ return self._scheduled_at @@ -175,13 +175,11 @@ def scheduled_at(self): def scheduled_at(self, scheduled_at): """ Sets the scheduled_at of this UpdateSmsCampaign. - Date and time on which the campaign has to run (YYYY-MM-DD HH:mm:ss) + Date and time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ) :param scheduled_at: The scheduled_at of this UpdateSmsCampaign. - :type: str + :type: datetime """ - if scheduled_at is not None and not re.search('^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$', scheduled_at): - raise ValueError("Invalid value for `scheduled_at`, must be a follow pattern or equal to `/^([1-9]\\d{3}-\\d{2}-\\d{2} [0-2]\\d:[0-5]\\d:[0-5]\\d)?$/`") self._scheduled_at = scheduled_at diff --git a/test/test_crea_update_folder.py b/test/test_create_update_folder.py similarity index 81% rename from test/test_crea_update_folder.py rename to test/test_create_update_folder.py index 8e53518..384a714 100644 --- a/test/test_crea_update_folder.py +++ b/test/test_create_update_folder.py @@ -19,11 +19,11 @@ import sib_api_v3_sdk from sib_api_v3_sdk.rest import ApiException -from sib_api_v3_sdk.models.crea_update_folder import CreaUpdateFolder +from sib_api_v3_sdk.models.create_update_folder import CreateUpdateFolder -class TestCreaUpdateFolder(unittest.TestCase): - """ CreaUpdateFolder unit test stubs """ +class TestCreateUpdateFolder(unittest.TestCase): + """ CreateUpdateFolder unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testCreaUpdateFolder(self): + def testCreateUpdateFolder(self): """ - Test CreaUpdateFolder + Test CreateUpdateFolder """ # FIXME: construct object with mandatory attributes with example values - #model = sib_api_v3_sdk.models.crea_update_folder.CreaUpdateFolder() + #model = sib_api_v3_sdk.models.create_update_folder.CreateUpdateFolder() pass diff --git a/test/test_get_lists_folder.py b/test/test_get_lists_folder.py deleted file mode 100644 index 4766470..0000000 --- a/test/test_get_lists_folder.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 | - - 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 os -import sys -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.rest import ApiException -from sib_api_v3_sdk.models.get_lists_folder import GetListsFolder - - -class TestGetListsFolder(unittest.TestCase): - """ GetListsFolder unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetListsFolder(self): - """ - Test GetListsFolder - """ - # FIXME: construct object with mandatory attributes with example values - #model = sib_api_v3_sdk.models.get_lists_folder.GetListsFolder() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_get_lists_lists.py b/test/test_get_lists_lists.py deleted file mode 100644 index f5680b6..0000000 --- a/test/test_get_lists_lists.py +++ /dev/null @@ -1,44 +0,0 @@ -# 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 | - - 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 os -import sys -import unittest - -import sib_api_v3_sdk -from sib_api_v3_sdk.rest import ApiException -from sib_api_v3_sdk.models.get_lists_lists import GetListsLists - - -class TestGetListsLists(unittest.TestCase): - """ GetListsLists unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testGetListsLists(self): - """ - Test GetListsLists - """ - # FIXME: construct object with mandatory attributes with example values - #model = sib_api_v3_sdk.models.get_lists_lists.GetListsLists() - pass - - -if __name__ == '__main__': - unittest.main()