From 09097a79f1ec274adf42e05714941452e8b63ca7 Mon Sep 17 00:00:00 2001 From: aakanksha-sib Date: Thu, 22 Mar 2018 17:02:49 +0530 Subject: [PATCH] Type object fix in get sms/email camapaigns call --- README.md | 25 +- ...veContactToList.md => AddContactToList.md} | 4 +- docs/AddCredits.md | 4 +- docs/ContactsApi.md | 18 +- .../{GetChildInfoIps.md => CreateReseller.md} | 5 +- docs/GetChildInfo.md | 4 +- docs/GetChildInfoApiKeys.md | 5 +- docs/GetChildInfoApiKeysV2.md | 11 + docs/GetChildInfoApiKeysV3.md | 11 + docs/GetEmailCampaign.md | 2 + docs/GetSmsCampaign.md | 2 + docs/ListsApi.md | 18 +- docs/ManageIp.md | 2 +- docs/RemoveContactFromList.md | 11 + docs/RemoveCredits.md | 4 +- docs/ResellerApi.md | 90 +++--- docs/SendSmtpEmail.md | 12 +- docs/UpdateChild.md | 1 - setup.py | 2 +- sib_api_v3_sdk/__init__.py | 7 +- sib_api_v3_sdk/api/contacts_api.py | 26 +- sib_api_v3_sdk/api/lists_api.py | 26 +- sib_api_v3_sdk/api/reseller_api.py | 270 +++++++++--------- sib_api_v3_sdk/models/__init__.py | 7 +- ...tact_to_list.py => add_contact_to_list.py} | 18 +- sib_api_v3_sdk/models/add_credits.py | 8 +- ...t_child_info_ips.py => create_reseller.py} | 71 ++--- sib_api_v3_sdk/models/error_model.py | 2 +- sib_api_v3_sdk/models/get_child_info.py | 15 +- .../models/get_child_info_api_keys.py | 104 +++---- .../models/get_child_info_api_keys_v2.py | 144 ++++++++++ .../models/get_child_info_api_keys_v3.py | 144 ++++++++++ sib_api_v3_sdk/models/get_email_campaign.py | 60 +++- sib_api_v3_sdk/models/get_sms_campaign.py | 60 +++- sib_api_v3_sdk/models/manage_ip.py | 38 +-- .../models/remove_contact_from_list.py | 142 +++++++++ sib_api_v3_sdk/models/remove_credits.py | 8 +- sib_api_v3_sdk/models/send_smtp_email.py | 91 ++++-- sib_api_v3_sdk/models/update_child.py | 32 +-- ...to_list.py => test_add_contact_to_list.py} | 12 +- test/test_contacts_api.py | 4 +- ...ld_info_ips.py => test_create_reseller.py} | 12 +- test/test_get_child_info_api_keys_v2.py | 40 +++ test/test_get_child_info_api_keys_v3.py | 40 +++ test/test_lists_api.py | 4 +- test/test_remove_contact_from_list.py | 40 +++ test/test_reseller_api.py | 4 +- 47 files changed, 1163 insertions(+), 497 deletions(-) rename docs/{AddRemoveContactToList.md => AddContactToList.md} (72%) rename docs/{GetChildInfoIps.md => CreateReseller.md} (70%) create mode 100644 docs/GetChildInfoApiKeysV2.md create mode 100644 docs/GetChildInfoApiKeysV3.md create mode 100644 docs/RemoveContactFromList.md rename sib_api_v3_sdk/models/{add_remove_contact_to_list.py => add_contact_to_list.py} (85%) rename sib_api_v3_sdk/models/{get_child_info_ips.py => create_reseller.py} (65%) create mode 100644 sib_api_v3_sdk/models/get_child_info_api_keys_v2.py create mode 100644 sib_api_v3_sdk/models/get_child_info_api_keys_v3.py create mode 100644 sib_api_v3_sdk/models/remove_contact_from_list.py rename test/{test_add_remove_contact_to_list.py => test_add_contact_to_list.py} (77%) rename test/{test_get_child_info_ips.py => test_create_reseller.py} (80%) create mode 100644 test/test_get_child_info_api_keys_v2.py create mode 100644 test/test_get_child_info_api_keys_v3.py create mode 100644 test/test_remove_contact_from_list.py diff --git a/README.md b/README.md index 3282d7c..84a8e4e 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ Class | Method | HTTP request | Description *ContactsApi* | [**get_list**](docs/ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list *ContactsApi* | [**get_lists**](docs/ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists *ContactsApi* | [**import_contacts**](docs/ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts -*ContactsApi* | [**remove_contact_to_list**](docs/ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list +*ContactsApi* | [**remove_contact_from_list**](docs/ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list *ContactsApi* | [**request_contact_export**](docs/ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts *ContactsApi* | [**update_attribute**](docs/ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute *ContactsApi* | [**update_contact**](docs/ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact @@ -132,19 +132,19 @@ Class | Method | HTTP request | Description *ListsApi* | [**get_folder_lists**](docs/ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder *ListsApi* | [**get_list**](docs/ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list *ListsApi* | [**get_lists**](docs/ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists -*ListsApi* | [**remove_contact_to_list**](docs/ListsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list +*ListsApi* | [**remove_contact_from_list**](docs/ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list *ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list *ProcessApi* | [**get_process**](docs/ProcessApi.md#get_process) | **GET** /processes/{processId} | Return the informations for a process *ProcessApi* | [**get_processes**](docs/ProcessApi.md#get_processes) | **GET** /processes | Return all the processes for your account -*ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account -*ResellerApi* | [**associate_ip_to_child**](docs/ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child +*ResellerApi* | [**add_credits**](docs/ResellerApi.md#add_credits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account +*ResellerApi* | [**associate_ip_to_child**](docs/ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child *ResellerApi* | [**create_reseller_child**](docs/ResellerApi.md#create_reseller_child) | **POST** /reseller/children | Creates a reseller child -*ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied -*ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child -*ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childId} | Gets the info about a specific child account +*ResellerApi* | [**delete_reseller_child**](docs/ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied +*ResellerApi* | [**dissociate_ip_from_child**](docs/ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child +*ResellerApi* | [**get_child_info**](docs/ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account *ResellerApi* | [**get_reseller_childs**](docs/ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts -*ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account -*ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied +*ResellerApi* | [**remove_credits**](docs/ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account +*ResellerApi* | [**update_reseller_child**](docs/ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied *SMSCampaignsApi* | [**create_sms_campaign**](docs/SMSCampaignsApi.md#create_sms_campaign) | **POST** /smsCampaigns | Creates an SMS campaign *SMSCampaignsApi* | [**delete_sms_campaign**](docs/SMSCampaignsApi.md#delete_sms_campaign) | **DELETE** /smsCampaigns/{campaignId} | Delete the SMS campaign *SMSCampaignsApi* | [**get_sms_campaign**](docs/SMSCampaignsApi.md#get_sms_campaign) | **GET** /smsCampaigns/{campaignId} | Get an SMS campaign @@ -186,8 +186,8 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AddContactToList](docs/AddContactToList.md) - [AddCredits](docs/AddCredits.md) - - [AddRemoveContactToList](docs/AddRemoveContactToList.md) - [CreateAttribute](docs/CreateAttribute.md) - [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md) - [CreateChild](docs/CreateChild.md) @@ -197,6 +197,7 @@ Class | Method | HTTP request | Description - [CreateEmailCampaignSender](docs/CreateEmailCampaignSender.md) - [CreateList](docs/CreateList.md) - [CreateModel](docs/CreateModel.md) + - [CreateReseller](docs/CreateReseller.md) - [CreateSender](docs/CreateSender.md) - [CreateSenderIps](docs/CreateSenderIps.md) - [CreateSenderModel](docs/CreateSenderModel.md) @@ -223,8 +224,9 @@ Class | Method | HTTP request | Description - [GetCampaignRecipients](docs/GetCampaignRecipients.md) - [GetCampaignStats](docs/GetCampaignStats.md) - [GetChildInfoApiKeys](docs/GetChildInfoApiKeys.md) + - [GetChildInfoApiKeysV2](docs/GetChildInfoApiKeysV2.md) + - [GetChildInfoApiKeysV3](docs/GetChildInfoApiKeysV3.md) - [GetChildInfoCredits](docs/GetChildInfoCredits.md) - - [GetChildInfoIps](docs/GetChildInfoIps.md) - [GetChildInfoStatistics](docs/GetChildInfoStatistics.md) - [GetChildrenList](docs/GetChildrenList.md) - [GetClient](docs/GetClient.md) @@ -289,6 +291,7 @@ Class | Method | HTTP request | Description - [RemainingCreditModel](docs/RemainingCreditModel.md) - [RemainingCreditModelChild](docs/RemainingCreditModelChild.md) - [RemainingCreditModelReseller](docs/RemainingCreditModelReseller.md) + - [RemoveContactFromList](docs/RemoveContactFromList.md) - [RemoveCredits](docs/RemoveCredits.md) - [RequestContactExport](docs/RequestContactExport.md) - [RequestContactImport](docs/RequestContactImport.md) diff --git a/docs/AddRemoveContactToList.md b/docs/AddContactToList.md similarity index 72% rename from docs/AddRemoveContactToList.md rename to docs/AddContactToList.md index 39b0aed..cd4dd84 100644 --- a/docs/AddRemoveContactToList.md +++ b/docs/AddContactToList.md @@ -1,9 +1,9 @@ -# AddRemoveContactToList +# AddContactToList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**emails** | **list[str]** | Emails to add or remove from a list | [optional] +**emails** | **list[str]** | Emails to add to a list | [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/AddCredits.md b/docs/AddCredits.md index 49b09f5..5fc7b9d 100644 --- a/docs/AddCredits.md +++ b/docs/AddCredits.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sms** | **int** | SMS credits to be added to the child account | [optional] -**email** | **int** | Email credits to be added to the child account | [optional] +**sms** | **int** | Required if email credits are empty. SMS credits to be added to the child account | [optional] +**email** | **int** | Required if sms credits are empty. Email credits to be added to the child account | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ContactsApi.md b/docs/ContactsApi.md index fcbdad2..e485b8f 100644 --- a/docs/ContactsApi.md +++ b/docs/ContactsApi.md @@ -23,7 +23,7 @@ Method | HTTP request | Description [**get_list**](ContactsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list [**get_lists**](ContactsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists [**import_contacts**](ContactsApi.md#import_contacts) | **POST** /contacts/import | Import contacts -[**remove_contact_to_list**](ContactsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list +[**remove_contact_from_list**](ContactsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list [**request_contact_export**](ContactsApi.md#request_contact_export) | **POST** /contacts/export | Export contacts [**update_attribute**](ContactsApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute [**update_contact**](ContactsApi.md#update_contact) | **PUT** /contacts/{email} | Updates a contact @@ -53,7 +53,7 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails addresses of the contacts +contact_emails = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts try: # Add existing contacts to a list @@ -68,7 +68,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts | + **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | ### Return type @@ -1039,8 +1039,8 @@ 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) -# **remove_contact_to_list** -> PostContactInfo remove_contact_to_list(list_id, contact_emails) +# **remove_contact_from_list** +> PostContactInfo remove_contact_from_list(list_id, contact_emails) Remove existing contacts from a list @@ -1061,14 +1061,14 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ContactsApi(sib_api_v3_sdk.ApiClient(configuration)) list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails adresses of the contact +contact_emails = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact try: # Remove existing contacts from a list - api_response = api_instance.remove_contact_to_list(list_id, contact_emails) + api_response = api_instance.remove_contact_from_list(list_id, contact_emails) pprint(api_response) except ApiException as e: - print("Exception when calling ContactsApi->remove_contact_to_list: %s\n" % e) + print("Exception when calling ContactsApi->remove_contact_from_list: %s\n" % e) ``` ### Parameters @@ -1076,7 +1076,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact | + **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | ### Return type diff --git a/docs/GetChildInfoIps.md b/docs/CreateReseller.md similarity index 70% rename from docs/GetChildInfoIps.md rename to docs/CreateReseller.md index ac761d2..49e0120 100644 --- a/docs/GetChildInfoIps.md +++ b/docs/CreateReseller.md @@ -1,10 +1,9 @@ -# GetChildInfoIps +# CreateReseller ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **int** | ID of the IP | -**ip** | **str** | IP associated to the child account user | +**auth_key** | **str** | AuthKey of Reseller child created | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetChildInfo.md b/docs/GetChildInfo.md index 760453b..14f230c 100644 --- a/docs/GetChildInfo.md +++ b/docs/GetChildInfo.md @@ -10,8 +10,8 @@ Name | Type | Description | Notes **credits** | [**GetChildInfoCredits**](GetChildInfoCredits.md) | | [optional] **statistics** | [**GetChildInfoStatistics**](GetChildInfoStatistics.md) | | [optional] **password** | **str** | The encrypted password of child account | -**ips** | [**list[GetChildInfoIps]**](GetChildInfoIps.md) | IP(s) associated to a child account user | [optional] -**api_keys** | [**list[GetChildInfoApiKeys]**](GetChildInfoApiKeys.md) | API Keys associated to child account | [optional] +**ips** | **list[str]** | IP(s) associated to a child account user | [optional] +**api_keys** | [**GetChildInfoApiKeys**](GetChildInfoApiKeys.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/GetChildInfoApiKeys.md b/docs/GetChildInfoApiKeys.md index 4044960..a6fd816 100644 --- a/docs/GetChildInfoApiKeys.md +++ b/docs/GetChildInfoApiKeys.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | Name of the key | -**key** | **str** | API Key | -**secret** | **str** | Secret Key associated to the API Key (in case v1 Key is used only) | [optional] +**v2** | [**list[GetChildInfoApiKeysV2]**](GetChildInfoApiKeysV2.md) | | +**v3** | [**list[GetChildInfoApiKeysV3]**](GetChildInfoApiKeysV3.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/GetChildInfoApiKeysV2.md b/docs/GetChildInfoApiKeysV2.md new file mode 100644 index 0000000..fc75e18 --- /dev/null +++ b/docs/GetChildInfoApiKeysV2.md @@ -0,0 +1,11 @@ +# GetChildInfoApiKeysV2 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the key for version 2 | +**key** | **str** | API Key for version 2 | + +[[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/GetChildInfoApiKeysV3.md b/docs/GetChildInfoApiKeysV3.md new file mode 100644 index 0000000..3730c8c --- /dev/null +++ b/docs/GetChildInfoApiKeysV3.md @@ -0,0 +1,11 @@ +# GetChildInfoApiKeysV3 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the key for version 3 | +**key** | **str** | API Key for version 3 | + +[[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/GetEmailCampaign.md b/docs/GetEmailCampaign.md index 03f1bd1..d08aec3 100644 --- a/docs/GetEmailCampaign.md +++ b/docs/GetEmailCampaign.md @@ -23,6 +23,8 @@ Name | Type | Description | Notes **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] +**recipients** | **object** | | +**statistics** | **object** | | [[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 e26ae7b..c259346 100644 --- a/docs/GetSmsCampaign.md +++ b/docs/GetSmsCampaign.md @@ -12,6 +12,8 @@ Name | Type | Description | Notes **sender** | **str** | Sender of the SMS Campaign | **created_at** | **datetime** | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | **modified_at** | **datetime** | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) | +**recipients** | **object** | | +**statistics** | **object** | | [[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 95f2d66..670b56f 100644 --- a/docs/ListsApi.md +++ b/docs/ListsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description [**get_folder_lists**](ListsApi.md#get_folder_lists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder [**get_list**](ListsApi.md#get_list) | **GET** /contacts/lists/{listId} | Get the details of a list [**get_lists**](ListsApi.md#get_lists) | **GET** /contacts/lists | Get all the lists -[**remove_contact_to_list**](ListsApi.md#remove_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list +[**remove_contact_from_list**](ListsApi.md#remove_contact_from_list) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list [**update_list**](ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list @@ -37,7 +37,7 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails addresses of the contacts +contact_emails = sib_api_v3_sdk.AddContactToList() # AddContactToList | Emails addresses of the contacts try: # Add existing contacts to a list @@ -52,7 +52,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts | + **contact_emails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts | ### Return type @@ -392,8 +392,8 @@ 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) -# **remove_contact_to_list** -> PostContactInfo remove_contact_to_list(list_id, contact_emails) +# **remove_contact_from_list** +> PostContactInfo remove_contact_from_list(list_id, contact_emails) Remove existing contacts from a list @@ -414,14 +414,14 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ListsApi(sib_api_v3_sdk.ApiClient(configuration)) list_id = 789 # int | Id of the list -contact_emails = sib_api_v3_sdk.AddRemoveContactToList() # AddRemoveContactToList | Emails adresses of the contact +contact_emails = sib_api_v3_sdk.RemoveContactFromList() # RemoveContactFromList | Emails adresses of the contact try: # Remove existing contacts from a list - api_response = api_instance.remove_contact_to_list(list_id, contact_emails) + api_response = api_instance.remove_contact_from_list(list_id, contact_emails) pprint(api_response) except ApiException as e: - print("Exception when calling ListsApi->remove_contact_to_list: %s\n" % e) + print("Exception when calling ListsApi->remove_contact_from_list: %s\n" % e) ``` ### Parameters @@ -429,7 +429,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **list_id** | **int**| Id of the list | - **contact_emails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact | + **contact_emails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact | ### Return type diff --git a/docs/ManageIp.md b/docs/ManageIp.md index 1134407..e6048a2 100644 --- a/docs/ManageIp.md +++ b/docs/ManageIp.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip_id** | **int** | ID of the IP | [optional] +**ip** | **str** | Dedicated ID | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RemoveContactFromList.md b/docs/RemoveContactFromList.md new file mode 100644 index 0000000..14500d3 --- /dev/null +++ b/docs/RemoveContactFromList.md @@ -0,0 +1,11 @@ +# RemoveContactFromList + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**emails** | **list[str]** | Required if 'all' is false. Emails to remove from a list | [optional] +**all** | **bool** | Required if 'emails' is empty. Remove all existing contacts from a list | [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/RemoveCredits.md b/docs/RemoveCredits.md index 54f75ac..3d2de94 100644 --- a/docs/RemoveCredits.md +++ b/docs/RemoveCredits.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sms** | **int** | SMS credits to be removed from the child account | [optional] -**email** | **int** | Email credits to be removed from the child account | [optional] +**sms** | **int** | Required if email credits are empty. SMS credits to be removed from the child account | [optional] +**email** | **int** | Required if sms credits are empty. Email credits to be removed from the child account | [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/ResellerApi.md b/docs/ResellerApi.md index 1d7bc63..13cb29f 100644 --- a/docs/ResellerApi.md +++ b/docs/ResellerApi.md @@ -4,19 +4,19 @@ All URIs are relative to *https://api.sendinblue.com/v3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**add_credits**](ResellerApi.md#add_credits) | **POST** /reseller/children/{childId}/credits/add | Add Email and/or SMS credits to a specific child account -[**associate_ip_to_child**](ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childId}/ips/associate | Associate a dedicated IP to the child +[**add_credits**](ResellerApi.md#add_credits) | **POST** /reseller/children/{childAuthKey}/credits/add | Add Email and/or SMS credits to a specific child account +[**associate_ip_to_child**](ResellerApi.md#associate_ip_to_child) | **POST** /reseller/children/{childAuthKey}/ips/associate | Associate a dedicated IP to the child [**create_reseller_child**](ResellerApi.md#create_reseller_child) | **POST** /reseller/children | Creates a reseller child -[**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childId} | Deletes a single reseller child based on the childId supplied -[**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childId}/ips/dissociate | Dissociate a dedicated IP to the child -[**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childId} | Gets the info about a specific child account +[**delete_reseller_child**](ResellerApi.md#delete_reseller_child) | **DELETE** /reseller/children/{childAuthKey} | Deletes a single reseller child based on the childAuthKey supplied +[**dissociate_ip_from_child**](ResellerApi.md#dissociate_ip_from_child) | **POST** /reseller/children/{childAuthKey}/ips/dissociate | Dissociate a dedicated IP to the child +[**get_child_info**](ResellerApi.md#get_child_info) | **GET** /reseller/children/{childAuthKey} | Gets the info about a specific child account [**get_reseller_childs**](ResellerApi.md#get_reseller_childs) | **GET** /reseller/children | Gets the list of all reseller's children accounts -[**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childId}/credits/remove | Remove Email and/or SMS credits from a specific child account -[**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childId} | Updates infos of reseller's child based on the childId supplied +[**remove_credits**](ResellerApi.md#remove_credits) | **POST** /reseller/children/{childAuthKey}/credits/remove | Remove Email and/or SMS credits from a specific child account +[**update_reseller_child**](ResellerApi.md#update_reseller_child) | **PUT** /reseller/children/{childAuthKey} | Updates infos of reseller's child based on the childAuthKey supplied # **add_credits** -> RemainingCreditModel add_credits(child_id, add_credits) +> RemainingCreditModel add_credits(child_auth_key, add_credits) Add Email and/or SMS credits to a specific child account @@ -36,12 +36,12 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child add_credits = sib_api_v3_sdk.AddCredits() # AddCredits | Values to post to add credit to a specific child account try: # Add Email and/or SMS credits to a specific child account - api_response = api_instance.add_credits(child_id, add_credits) + api_response = api_instance.add_credits(child_auth_key, add_credits) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->add_credits: %s\n" % e) @@ -51,7 +51,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **child_auth_key** | **str**| auth key of reseller's child | **add_credits** | [**AddCredits**](AddCredits.md)| Values to post to add credit to a specific child account | ### Return type @@ -70,7 +70,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) # **associate_ip_to_child** -> associate_ip_to_child(child_id, ip_id) +> associate_ip_to_child(child_auth_key, ip) Associate a dedicated IP to the child @@ -90,12 +90,12 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child -ip_id = sib_api_v3_sdk.ManageIp() # ManageIp | IP's id +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child +ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to associate try: # Associate a dedicated IP to the child - api_instance.associate_ip_to_child(child_id, ip_id) + api_instance.associate_ip_to_child(child_auth_key, ip) except ApiException as e: print("Exception when calling ResellerApi->associate_ip_to_child: %s\n" % e) ``` @@ -104,8 +104,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **ip_id** | [**ManageIp**](ManageIp.md)| IP's id | + **child_auth_key** | **str**| auth key of reseller's child | + **ip** | [**ManageIp**](ManageIp.md)| IP to associate | ### Return type @@ -123,7 +123,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) # **create_reseller_child** -> CreateModel create_reseller_child(reseller_child=reseller_child) +> CreateReseller create_reseller_child(reseller_child=reseller_child) Creates a reseller child @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**CreateModel**](CreateModel.md) +[**CreateReseller**](CreateReseller.md) ### Authorization @@ -175,9 +175,9 @@ 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) # **delete_reseller_child** -> delete_reseller_child(child_id) +> delete_reseller_child(child_auth_key) -Deletes a single reseller child based on the childId supplied +Deletes a single reseller child based on the childAuthKey supplied ### Example ```python @@ -195,11 +195,11 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child try: - # Deletes a single reseller child based on the childId supplied - api_instance.delete_reseller_child(child_id) + # Deletes a single reseller child based on the childAuthKey supplied + api_instance.delete_reseller_child(child_auth_key) except ApiException as e: print("Exception when calling ResellerApi->delete_reseller_child: %s\n" % e) ``` @@ -208,7 +208,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **child_auth_key** | **str**| auth key of reseller's child | ### Return type @@ -226,7 +226,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) # **dissociate_ip_from_child** -> dissociate_ip_from_child(child_id, ip_id) +> dissociate_ip_from_child(child_auth_key, ip) Dissociate a dedicated IP to the child @@ -246,12 +246,12 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child -ip_id = sib_api_v3_sdk.ManageIp() # ManageIp | IP's id +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child +ip = sib_api_v3_sdk.ManageIp() # ManageIp | IP to dissociate try: # Dissociate a dedicated IP to the child - api_instance.dissociate_ip_from_child(child_id, ip_id) + api_instance.dissociate_ip_from_child(child_auth_key, ip) except ApiException as e: print("Exception when calling ResellerApi->dissociate_ip_from_child: %s\n" % e) ``` @@ -260,8 +260,8 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | - **ip_id** | [**ManageIp**](ManageIp.md)| IP's id | + **child_auth_key** | **str**| auth key of reseller's child | + **ip** | [**ManageIp**](ManageIp.md)| IP to dissociate | ### Return type @@ -279,7 +279,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) # **get_child_info** -> GetChildInfo get_child_info(child_id) +> GetChildInfo get_child_info(child_auth_key) Gets the info about a specific child account @@ -299,11 +299,11 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child try: # Gets the info about a specific child account - api_response = api_instance.get_child_info(child_id) + api_response = api_instance.get_child_info(child_auth_key) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->get_child_info: %s\n" % e) @@ -313,7 +313,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **child_auth_key** | **str**| auth key of reseller's child | ### Return type @@ -379,7 +379,7 @@ This endpoint does not need any parameter. [[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) # **remove_credits** -> RemainingCreditModel remove_credits(child_id, remove_credits) +> RemainingCreditModel remove_credits(child_auth_key, remove_credits) Remove Email and/or SMS credits from a specific child account @@ -399,12 +399,12 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child +child_auth_key = 'child_auth_key_example' # str | auth key 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: # Remove Email and/or SMS credits from a specific child account - api_response = api_instance.remove_credits(child_id, remove_credits) + api_response = api_instance.remove_credits(child_auth_key, remove_credits) pprint(api_response) except ApiException as e: print("Exception when calling ResellerApi->remove_credits: %s\n" % e) @@ -414,7 +414,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **child_auth_key** | **str**| auth key of reseller's child | **remove_credits** | [**RemoveCredits**](RemoveCredits.md)| Values to post to remove email or SMS credits from a specific child account | ### Return type @@ -433,9 +433,9 @@ 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_reseller_child** -> update_reseller_child(child_id, reseller_child) +> update_reseller_child(child_auth_key, reseller_child) -Updates infos of reseller's child based on the childId supplied +Updates infos of reseller's child based on the childAuthKey supplied ### Example ```python @@ -453,12 +453,12 @@ configuration.api_key['api-key'] = 'YOUR_API_KEY' # create an instance of the API class api_instance = sib_api_v3_sdk.ResellerApi(sib_api_v3_sdk.ApiClient(configuration)) -child_id = 789 # int | id of reseller's child +child_auth_key = 'child_auth_key_example' # str | auth key of reseller's child reseller_child = sib_api_v3_sdk.UpdateChild() # UpdateChild | values to update in child profile try: - # Updates infos of reseller's child based on the childId supplied - api_instance.update_reseller_child(child_id, reseller_child) + # Updates infos of reseller's child based on the childAuthKey supplied + api_instance.update_reseller_child(child_auth_key, reseller_child) except ApiException as e: print("Exception when calling ResellerApi->update_reseller_child: %s\n" % e) ``` @@ -467,7 +467,7 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **child_id** | **int**| id of reseller's child | + **child_auth_key** | **str**| auth key of reseller's child | **reseller_child** | [**UpdateChild**](UpdateChild.md)| values to update in child profile | ### Return type diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index 78470e7..afbcc16 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -3,16 +3,18 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**sender** | [**SendSmtpEmailSender**](SendSmtpEmailSender.md) | | +**sender** | [**SendSmtpEmailSender**](SendSmtpEmailSender.md) | | [optional] **to** | [**list[SendSmtpEmailTo]**](SendSmtpEmailTo.md) | Email addresses and names of the recipients | **bcc** | [**list[SendSmtpEmailBcc]**](SendSmtpEmailBcc.md) | Email addresses and names of the recipients in bcc | [optional] **cc** | [**list[SendSmtpEmailCc]**](SendSmtpEmailCc.md) | Email addresses and names of the recipients in cc | [optional] -**html_content** | **str** | HTML body of the message | -**text_content** | **str** | Plain Text body of the message | [optional] -**subject** | **str** | Subject of the message | +**html_content** | **str** | HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed ) | [optional] +**text_content** | **str** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] +**subject** | **str** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] -**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional] +**attachment** | [**list[SendSmtpEmailAttachment]**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed ) | [optional] **headers** | **dict(str, str)** | | [optional] +**template_id** | **int** | Id of the template | [optional] +**params** | **dict(str, str)** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UpdateChild.md b/docs/UpdateChild.md index 8163b53..eaabe86 100644 --- a/docs/UpdateChild.md +++ b/docs/UpdateChild.md @@ -8,7 +8,6 @@ Name | Type | Description | Notes **last_name** | **str** | New Last name to use to update the child account | [optional] **company_name** | **str** | New Company name to use to update the child account | [optional] **password** | **str** | New password for the child account to login | [optional] -**ips** | **list[int]** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/setup.py b/setup.py index 3680e3b..1e727ec 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "sib-api-v3-sdk" -VERSION = "2.0.1" +VERSION = "3.0.0" # To install the library, run the following # # python setup.py install diff --git a/sib_api_v3_sdk/__init__.py b/sib_api_v3_sdk/__init__.py index e817264..c642b9e 100644 --- a/sib_api_v3_sdk/__init__.py +++ b/sib_api_v3_sdk/__init__.py @@ -34,8 +34,8 @@ from sib_api_v3_sdk.api_client import ApiClient from sib_api_v3_sdk.configuration import Configuration # import models into sdk package +from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits -from sib_api_v3_sdk.models.add_remove_contact_to_list import AddRemoveContactToList from sib_api_v3_sdk.models.create_attribute import CreateAttribute from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration from sib_api_v3_sdk.models.create_child import CreateChild @@ -45,6 +45,7 @@ from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel +from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps from sib_api_v3_sdk.models.create_sender_model import CreateSenderModel @@ -71,8 +72,9 @@ from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys +from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 +from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits -from sib_api_v3_sdk.models.get_child_info_ips import GetChildInfoIps from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics from sib_api_v3_sdk.models.get_children_list import GetChildrenList from sib_api_v3_sdk.models.get_client import GetClient @@ -137,6 +139,7 @@ from sib_api_v3_sdk.models.remaining_credit_model import RemainingCreditModel from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller +from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport from sib_api_v3_sdk.models.request_contact_import import RequestContactImport diff --git a/sib_api_v3_sdk/api/contacts_api.py b/sib_api_v3_sdk/api/contacts_api.py index ed3d5da..3468ce8 100644 --- a/sib_api_v3_sdk/api/contacts_api.py +++ b/sib_api_v3_sdk/api/contacts_api.py @@ -43,7 +43,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) + :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -65,7 +65,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) + :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -1944,39 +1944,39 @@ def import_contacts_with_http_info(self, request_contact_import, **kwargs): # n _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_to_list(list_id, contact_emails, async=True) + >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) >>> result = thread.get() :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) + :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.remove_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: - (data) = self.remove_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 return data - def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_to_list_with_http_info(list_id, contact_emails, async=True) + >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) >>> result = thread.get() :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) + :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -1993,18 +1993,18 @@ def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method remove_contact_to_list" % key + " to method remove_contact_from_list" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): - raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_to_list`") # noqa: E501 + raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_from_list`") # noqa: E501 # verify the required parameter 'contact_emails' is set if ('contact_emails' not in params or params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_to_list`") # noqa: E501 + raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_from_list`") # noqa: E501 collection_formats = {} diff --git a/sib_api_v3_sdk/api/lists_api.py b/sib_api_v3_sdk/api/lists_api.py index 685023b..6d22d54 100644 --- a/sib_api_v3_sdk/api/lists_api.py +++ b/sib_api_v3_sdk/api/lists_api.py @@ -43,7 +43,7 @@ def add_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) + :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -65,7 +65,7 @@ def add_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails addresses of the contacts (required) + :param AddContactToList contact_emails: Emails addresses of the contacts (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -746,39 +746,39 @@ def get_lists_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_contact_to_list(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list(self, list_id, contact_emails, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_to_list(list_id, contact_emails, async=True) + >>> thread = api.remove_contact_from_list(list_id, contact_emails, async=True) >>> result = thread.get() :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) + :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.remove_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + return self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 else: - (data) = self.remove_contact_to_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 + (data) = self.remove_contact_from_list_with_http_info(list_id, contact_emails, **kwargs) # noqa: E501 return data - def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 + def remove_contact_from_list_with_http_info(self, list_id, contact_emails, **kwargs): # noqa: E501 """Remove existing contacts from a list # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_contact_to_list_with_http_info(list_id, contact_emails, async=True) + >>> thread = api.remove_contact_from_list_with_http_info(list_id, contact_emails, async=True) >>> result = thread.get() :param async bool :param int list_id: Id of the list (required) - :param AddRemoveContactToList contact_emails: Emails adresses of the contact (required) + :param RemoveContactFromList contact_emails: Emails adresses of the contact (required) :return: PostContactInfo If the method is called asynchronously, returns the request thread. @@ -795,18 +795,18 @@ def remove_contact_to_list_with_http_info(self, list_id, contact_emails, **kwarg if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method remove_contact_to_list" % key + " to method remove_contact_from_list" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'list_id' is set if ('list_id' not in params or params['list_id'] is None): - raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_to_list`") # noqa: E501 + raise ValueError("Missing the required parameter `list_id` when calling `remove_contact_from_list`") # noqa: E501 # verify the required parameter 'contact_emails' is set if ('contact_emails' not in params or params['contact_emails'] is None): - raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_to_list`") # noqa: E501 + raise ValueError("Missing the required parameter `contact_emails` when calling `remove_contact_from_list`") # noqa: E501 collection_formats = {} diff --git a/sib_api_v3_sdk/api/reseller_api.py b/sib_api_v3_sdk/api/reseller_api.py index c20381b..cccd415 100644 --- a/sib_api_v3_sdk/api/reseller_api.py +++ b/sib_api_v3_sdk/api/reseller_api.py @@ -33,16 +33,16 @@ def __init__(self, api_client=None): api_client = ApiClient() self.api_client = api_client - def add_credits(self, child_id, add_credits, **kwargs): # noqa: E501 + def add_credits(self, child_auth_key, add_credits, **kwargs): # noqa: E501 """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits(child_id, add_credits, async=True) + >>> thread = api.add_credits(child_auth_key, add_credits, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, @@ -50,28 +50,28 @@ def add_credits(self, child_id, add_credits, **kwargs): # noqa: E501 """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.add_credits_with_http_info(child_id, add_credits, **kwargs) # noqa: E501 + return self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 else: - (data) = self.add_credits_with_http_info(child_id, add_credits, **kwargs) # noqa: E501 + (data) = self.add_credits_with_http_info(child_auth_key, add_credits, **kwargs) # noqa: E501 return data - def add_credits_with_http_info(self, child_id, add_credits, **kwargs): # noqa: E501 + def add_credits_with_http_info(self, child_auth_key, add_credits, **kwargs): # noqa: E501 """Add Email and/or SMS credits to a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.add_credits_with_http_info(child_id, add_credits, async=True) + >>> thread = api.add_credits_with_http_info(child_auth_key, add_credits, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param AddCredits add_credits: Values to post to add credit to a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id', 'add_credits'] # noqa: E501 + all_params = ['child_auth_key', 'add_credits'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -86,10 +86,10 @@ def add_credits_with_http_info(self, child_id, add_credits, **kwargs): # noqa: ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `add_credits`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `add_credits`") # noqa: E501 # verify the required parameter 'add_credits' is set if ('add_credits' not in params or params['add_credits'] is None): @@ -98,8 +98,8 @@ def add_credits_with_http_info(self, child_id, add_credits, **kwargs): # noqa: collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -123,7 +123,7 @@ def add_credits_with_http_info(self, child_id, add_credits, **kwargs): # noqa: auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}/credits/add', 'POST', + '/reseller/children/{childAuthKey}/credits/add', 'POST', path_params, query_params, header_params, @@ -138,45 +138,45 @@ def add_credits_with_http_info(self, child_id, add_credits, **kwargs): # noqa: _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def associate_ip_to_child(self, child_id, ip_id, **kwargs): # noqa: E501 + def associate_ip_to_child(self, child_auth_key, ip, **kwargs): # noqa: E501 """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child(child_id, ip_id, async=True) + >>> thread = api.associate_ip_to_child(child_auth_key, ip, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) - :param ManageIp ip_id: IP's id (required) + :param str child_auth_key: auth key of reseller's child (required) + :param ManageIp ip: IP to associate (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.associate_ip_to_child_with_http_info(child_id, ip_id, **kwargs) # noqa: E501 + return self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 else: - (data) = self.associate_ip_to_child_with_http_info(child_id, ip_id, **kwargs) # noqa: E501 + (data) = self.associate_ip_to_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 return data - def associate_ip_to_child_with_http_info(self, child_id, ip_id, **kwargs): # noqa: E501 + def associate_ip_to_child_with_http_info(self, child_auth_key, ip, **kwargs): # noqa: E501 """Associate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.associate_ip_to_child_with_http_info(child_id, ip_id, async=True) + >>> thread = api.associate_ip_to_child_with_http_info(child_auth_key, ip, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) - :param ManageIp ip_id: IP's id (required) + :param str child_auth_key: auth key of reseller's child (required) + :param ManageIp ip: IP to associate (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id', 'ip_id'] # noqa: E501 + all_params = ['child_auth_key', 'ip'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -191,20 +191,20 @@ def associate_ip_to_child_with_http_info(self, child_id, ip_id, **kwargs): # no ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `associate_ip_to_child`") # noqa: E501 - # verify the required parameter 'ip_id' is set - if ('ip_id' not in params or - params['ip_id'] is None): - raise ValueError("Missing the required parameter `ip_id` when calling `associate_ip_to_child`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `associate_ip_to_child`") # noqa: E501 + # verify the required parameter 'ip' is set + if ('ip' not in params or + params['ip'] is None): + raise ValueError("Missing the required parameter `ip` when calling `associate_ip_to_child`") # noqa: E501 collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -214,8 +214,8 @@ def associate_ip_to_child_with_http_info(self, child_id, ip_id, **kwargs): # no local_var_files = {} body_params = None - if 'ip_id' in params: - body_params = params['ip_id'] + if 'ip' in params: + body_params = params['ip'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -228,7 +228,7 @@ def associate_ip_to_child_with_http_info(self, child_id, ip_id, **kwargs): # no auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}/ips/associate', 'POST', + '/reseller/children/{childAuthKey}/ips/associate', 'POST', path_params, query_params, header_params, @@ -253,7 +253,7 @@ def create_reseller_child(self, **kwargs): # noqa: E501 :param async bool :param CreateChild reseller_child: reseller child to add - :return: CreateModel + :return: CreateReseller If the method is called asynchronously, returns the request thread. """ @@ -274,7 +274,7 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 :param async bool :param CreateChild reseller_child: reseller child to add - :return: CreateModel + :return: CreateReseller If the method is called asynchronously, returns the request thread. """ @@ -328,7 +328,7 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 body=body_params, post_params=form_params, files=local_var_files, - response_type='CreateModel', # noqa: E501 + response_type='CreateReseller', # noqa: E501 auth_settings=auth_settings, async=params.get('async'), _return_http_data_only=params.get('_return_http_data_only'), @@ -336,43 +336,43 @@ def create_reseller_child_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_reseller_child(self, child_id, **kwargs): # noqa: E501 - """Deletes a single reseller child based on the childId supplied # noqa: E501 + def delete_reseller_child(self, child_auth_key, **kwargs): # noqa: E501 + """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child(child_id, async=True) + >>> thread = api.delete_reseller_child(child_auth_key, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.delete_reseller_child_with_http_info(child_id, **kwargs) # noqa: E501 + return self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.delete_reseller_child_with_http_info(child_id, **kwargs) # noqa: E501 + (data) = self.delete_reseller_child_with_http_info(child_auth_key, **kwargs) # noqa: E501 return data - def delete_reseller_child_with_http_info(self, child_id, **kwargs): # noqa: E501 - """Deletes a single reseller child based on the childId supplied # noqa: E501 + def delete_reseller_child_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 + """Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.delete_reseller_child_with_http_info(child_id, async=True) + >>> thread = api.delete_reseller_child_with_http_info(child_auth_key, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id'] # noqa: E501 + all_params = ['child_auth_key'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -387,16 +387,16 @@ def delete_reseller_child_with_http_info(self, child_id, **kwargs): # noqa: E50 ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `delete_reseller_child`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `delete_reseller_child`") # noqa: E501 collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -418,7 +418,7 @@ def delete_reseller_child_with_http_info(self, child_id, **kwargs): # noqa: E50 auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}', 'DELETE', + '/reseller/children/{childAuthKey}', 'DELETE', path_params, query_params, header_params, @@ -433,45 +433,45 @@ def delete_reseller_child_with_http_info(self, child_id, **kwargs): # noqa: E50 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def dissociate_ip_from_child(self, child_id, ip_id, **kwargs): # noqa: E501 + def dissociate_ip_from_child(self, child_auth_key, ip, **kwargs): # noqa: E501 """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child(child_id, ip_id, async=True) + >>> thread = api.dissociate_ip_from_child(child_auth_key, ip, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) - :param ManageIp ip_id: IP's id (required) + :param str child_auth_key: auth key of reseller's child (required) + :param ManageIp ip: IP to dissociate (required) :return: None If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.dissociate_ip_from_child_with_http_info(child_id, ip_id, **kwargs) # noqa: E501 + return self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 else: - (data) = self.dissociate_ip_from_child_with_http_info(child_id, ip_id, **kwargs) # noqa: E501 + (data) = self.dissociate_ip_from_child_with_http_info(child_auth_key, ip, **kwargs) # noqa: E501 return data - def dissociate_ip_from_child_with_http_info(self, child_id, ip_id, **kwargs): # noqa: E501 + def dissociate_ip_from_child_with_http_info(self, child_auth_key, ip, **kwargs): # noqa: E501 """Dissociate a dedicated IP to the child # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.dissociate_ip_from_child_with_http_info(child_id, ip_id, async=True) + >>> thread = api.dissociate_ip_from_child_with_http_info(child_auth_key, ip, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) - :param ManageIp ip_id: IP's id (required) + :param str child_auth_key: auth key of reseller's child (required) + :param ManageIp ip: IP to dissociate (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id', 'ip_id'] # noqa: E501 + all_params = ['child_auth_key', 'ip'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -486,20 +486,20 @@ def dissociate_ip_from_child_with_http_info(self, child_id, ip_id, **kwargs): # ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `dissociate_ip_from_child`") # noqa: E501 - # verify the required parameter 'ip_id' is set - if ('ip_id' not in params or - params['ip_id'] is None): - raise ValueError("Missing the required parameter `ip_id` when calling `dissociate_ip_from_child`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `dissociate_ip_from_child`") # noqa: E501 + # verify the required parameter 'ip' is set + if ('ip' not in params or + params['ip'] is None): + raise ValueError("Missing the required parameter `ip` when calling `dissociate_ip_from_child`") # noqa: E501 collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -509,8 +509,8 @@ def dissociate_ip_from_child_with_http_info(self, child_id, ip_id, **kwargs): # local_var_files = {} body_params = None - if 'ip_id' in params: - body_params = params['ip_id'] + if 'ip' in params: + body_params = params['ip'] # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 @@ -523,7 +523,7 @@ def dissociate_ip_from_child_with_http_info(self, child_id, ip_id, **kwargs): # auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}/ips/dissociate', 'POST', + '/reseller/children/{childAuthKey}/ips/dissociate', 'POST', path_params, query_params, header_params, @@ -538,43 +538,43 @@ def dissociate_ip_from_child_with_http_info(self, child_id, ip_id, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_child_info(self, child_id, **kwargs): # noqa: E501 + def get_child_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info(child_id, async=True) + >>> thread = api.get_child_info(child_auth_key, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.get_child_info_with_http_info(child_id, **kwargs) # noqa: E501 + return self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 else: - (data) = self.get_child_info_with_http_info(child_id, **kwargs) # noqa: E501 + (data) = self.get_child_info_with_http_info(child_auth_key, **kwargs) # noqa: E501 return data - def get_child_info_with_http_info(self, child_id, **kwargs): # noqa: E501 + def get_child_info_with_http_info(self, child_auth_key, **kwargs): # noqa: E501 """Gets the info about a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.get_child_info_with_http_info(child_id, async=True) + >>> thread = api.get_child_info_with_http_info(child_auth_key, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :return: GetChildInfo If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id'] # noqa: E501 + all_params = ['child_auth_key'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -589,16 +589,16 @@ def get_child_info_with_http_info(self, child_id, **kwargs): # noqa: E501 ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `get_child_info`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `get_child_info`") # noqa: E501 collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -620,7 +620,7 @@ def get_child_info_with_http_info(self, child_id, **kwargs): # noqa: E501 auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}', 'GET', + '/reseller/children/{childAuthKey}', 'GET', path_params, query_params, header_params, @@ -724,16 +724,16 @@ def get_reseller_childs_with_http_info(self, **kwargs): # noqa: E501 _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def remove_credits(self, child_id, remove_credits, **kwargs): # noqa: E501 + def remove_credits(self, child_auth_key, remove_credits, **kwargs): # noqa: E501 """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits(child_id, remove_credits, async=True) + >>> thread = api.remove_credits(child_auth_key, remove_credits, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, @@ -741,28 +741,28 @@ def remove_credits(self, child_id, remove_credits, **kwargs): # noqa: E501 """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.remove_credits_with_http_info(child_id, remove_credits, **kwargs) # noqa: E501 + return self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 else: - (data) = self.remove_credits_with_http_info(child_id, remove_credits, **kwargs) # noqa: E501 + (data) = self.remove_credits_with_http_info(child_auth_key, remove_credits, **kwargs) # noqa: E501 return data - def remove_credits_with_http_info(self, child_id, remove_credits, **kwargs): # noqa: E501 + def remove_credits_with_http_info(self, child_auth_key, remove_credits, **kwargs): # noqa: E501 """Remove Email and/or SMS credits from a specific child account # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.remove_credits_with_http_info(child_id, remove_credits, async=True) + >>> thread = api.remove_credits_with_http_info(child_auth_key, remove_credits, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param RemoveCredits remove_credits: Values to post to remove email or SMS credits from a specific child account (required) :return: RemainingCreditModel If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id', 'remove_credits'] # noqa: E501 + all_params = ['child_auth_key', 'remove_credits'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -777,10 +777,10 @@ def remove_credits_with_http_info(self, child_id, remove_credits, **kwargs): # ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `remove_credits`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `remove_credits`") # noqa: E501 # verify the required parameter 'remove_credits' is set if ('remove_credits' not in params or params['remove_credits'] is None): @@ -789,8 +789,8 @@ def remove_credits_with_http_info(self, child_id, remove_credits, **kwargs): # collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -814,7 +814,7 @@ def remove_credits_with_http_info(self, child_id, remove_credits, **kwargs): # auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}/credits/remove', 'POST', + '/reseller/children/{childAuthKey}/credits/remove', 'POST', path_params, query_params, header_params, @@ -829,16 +829,16 @@ def remove_credits_with_http_info(self, child_id, remove_credits, **kwargs): # _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def update_reseller_child(self, child_id, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childId supplied # noqa: E501 + def update_reseller_child(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child(child_id, reseller_child, async=True) + >>> thread = api.update_reseller_child(child_auth_key, reseller_child, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param UpdateChild reseller_child: values to update in child profile (required) :return: None If the method is called asynchronously, @@ -846,28 +846,28 @@ def update_reseller_child(self, child_id, reseller_child, **kwargs): # noqa: E5 """ kwargs['_return_http_data_only'] = True if kwargs.get('async'): - return self.update_reseller_child_with_http_info(child_id, reseller_child, **kwargs) # noqa: E501 + return self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 else: - (data) = self.update_reseller_child_with_http_info(child_id, reseller_child, **kwargs) # noqa: E501 + (data) = self.update_reseller_child_with_http_info(child_auth_key, reseller_child, **kwargs) # noqa: E501 return data - def update_reseller_child_with_http_info(self, child_id, reseller_child, **kwargs): # noqa: E501 - """Updates infos of reseller's child based on the childId supplied # noqa: E501 + def update_reseller_child_with_http_info(self, child_auth_key, reseller_child, **kwargs): # noqa: E501 + """Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async=True - >>> thread = api.update_reseller_child_with_http_info(child_id, reseller_child, async=True) + >>> thread = api.update_reseller_child_with_http_info(child_auth_key, reseller_child, async=True) >>> result = thread.get() :param async bool - :param int child_id: id of reseller's child (required) + :param str child_auth_key: auth key of reseller's child (required) :param UpdateChild reseller_child: values to update in child profile (required) :return: None If the method is called asynchronously, returns the request thread. """ - all_params = ['child_id', 'reseller_child'] # noqa: E501 + all_params = ['child_auth_key', 'reseller_child'] # noqa: E501 all_params.append('async') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -882,10 +882,10 @@ def update_reseller_child_with_http_info(self, child_id, reseller_child, **kwarg ) params[key] = val del params['kwargs'] - # verify the required parameter 'child_id' is set - if ('child_id' not in params or - params['child_id'] is None): - raise ValueError("Missing the required parameter `child_id` when calling `update_reseller_child`") # noqa: E501 + # verify the required parameter 'child_auth_key' is set + if ('child_auth_key' not in params or + params['child_auth_key'] is None): + raise ValueError("Missing the required parameter `child_auth_key` when calling `update_reseller_child`") # noqa: E501 # verify the required parameter 'reseller_child' is set if ('reseller_child' not in params or params['reseller_child'] is None): @@ -894,8 +894,8 @@ def update_reseller_child_with_http_info(self, child_id, reseller_child, **kwarg collection_formats = {} path_params = {} - if 'child_id' in params: - path_params['childId'] = params['child_id'] # noqa: E501 + if 'child_auth_key' in params: + path_params['childAuthKey'] = params['child_auth_key'] # noqa: E501 query_params = [] @@ -919,7 +919,7 @@ def update_reseller_child_with_http_info(self, child_id, reseller_child, **kwarg auth_settings = ['api-key'] # noqa: E501 return self.api_client.call_api( - '/reseller/children/{childId}', 'PUT', + '/reseller/children/{childAuthKey}', 'PUT', path_params, query_params, header_params, diff --git a/sib_api_v3_sdk/models/__init__.py b/sib_api_v3_sdk/models/__init__.py index 9dc074b..d7da0a6 100644 --- a/sib_api_v3_sdk/models/__init__.py +++ b/sib_api_v3_sdk/models/__init__.py @@ -15,8 +15,8 @@ from __future__ import absolute_import # import models into model package +from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList from sib_api_v3_sdk.models.add_credits import AddCredits -from sib_api_v3_sdk.models.add_remove_contact_to_list import AddRemoveContactToList from sib_api_v3_sdk.models.create_attribute import CreateAttribute from sib_api_v3_sdk.models.create_attribute_enumeration import CreateAttributeEnumeration from sib_api_v3_sdk.models.create_child import CreateChild @@ -26,6 +26,7 @@ from sib_api_v3_sdk.models.create_email_campaign_sender import CreateEmailCampaignSender from sib_api_v3_sdk.models.create_list import CreateList from sib_api_v3_sdk.models.create_model import CreateModel +from sib_api_v3_sdk.models.create_reseller import CreateReseller from sib_api_v3_sdk.models.create_sender import CreateSender from sib_api_v3_sdk.models.create_sender_ips import CreateSenderIps from sib_api_v3_sdk.models.create_sender_model import CreateSenderModel @@ -52,8 +53,9 @@ from sib_api_v3_sdk.models.get_campaign_recipients import GetCampaignRecipients from sib_api_v3_sdk.models.get_campaign_stats import GetCampaignStats from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys +from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 +from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits -from sib_api_v3_sdk.models.get_child_info_ips import GetChildInfoIps from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics from sib_api_v3_sdk.models.get_children_list import GetChildrenList from sib_api_v3_sdk.models.get_client import GetClient @@ -118,6 +120,7 @@ from sib_api_v3_sdk.models.remaining_credit_model import RemainingCreditModel from sib_api_v3_sdk.models.remaining_credit_model_child import RemainingCreditModelChild from sib_api_v3_sdk.models.remaining_credit_model_reseller import RemainingCreditModelReseller +from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList from sib_api_v3_sdk.models.remove_credits import RemoveCredits from sib_api_v3_sdk.models.request_contact_export import RequestContactExport from sib_api_v3_sdk.models.request_contact_import import RequestContactImport diff --git a/sib_api_v3_sdk/models/add_remove_contact_to_list.py b/sib_api_v3_sdk/models/add_contact_to_list.py similarity index 85% rename from sib_api_v3_sdk/models/add_remove_contact_to_list.py rename to sib_api_v3_sdk/models/add_contact_to_list.py index b2f73d3..fcde152 100644 --- a/sib_api_v3_sdk/models/add_remove_contact_to_list.py +++ b/sib_api_v3_sdk/models/add_contact_to_list.py @@ -17,7 +17,7 @@ import six -class AddRemoveContactToList(object): +class AddContactToList(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -39,7 +39,7 @@ class AddRemoveContactToList(object): } def __init__(self, emails=None): # noqa: E501 - """AddRemoveContactToList - a model defined in Swagger""" # noqa: E501 + """AddContactToList - a model defined in Swagger""" # noqa: E501 self._emails = None self.discriminator = None @@ -49,22 +49,22 @@ def __init__(self, emails=None): # noqa: E501 @property def emails(self): - """Gets the emails of this AddRemoveContactToList. # noqa: E501 + """Gets the emails of this AddContactToList. # noqa: E501 - Emails to add or remove from a list # noqa: E501 + Emails to add to a list # noqa: E501 - :return: The emails of this AddRemoveContactToList. # noqa: E501 + :return: The emails of this AddContactToList. # noqa: E501 :rtype: list[str] """ return self._emails @emails.setter def emails(self, emails): - """Sets the emails of this AddRemoveContactToList. + """Sets the emails of this AddContactToList. - Emails to add or remove from a list # noqa: E501 + Emails to add to a list # noqa: E501 - :param emails: The emails of this AddRemoveContactToList. # noqa: E501 + :param emails: The emails of this AddContactToList. # noqa: E501 :type: list[str] """ @@ -104,7 +104,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, AddRemoveContactToList): + if not isinstance(other, AddContactToList): return False return self.__dict__ == other.__dict__ diff --git a/sib_api_v3_sdk/models/add_credits.py b/sib_api_v3_sdk/models/add_credits.py index 49ae11f..ed8edf7 100644 --- a/sib_api_v3_sdk/models/add_credits.py +++ b/sib_api_v3_sdk/models/add_credits.py @@ -56,7 +56,7 @@ def __init__(self, sms=None, email=None): # noqa: E501 def sms(self): """Gets the sms of this AddCredits. # noqa: E501 - SMS credits to be added to the child account # noqa: E501 + Required if email credits are empty. SMS credits to be added to the child account # noqa: E501 :return: The sms of this AddCredits. # noqa: E501 :rtype: int @@ -67,7 +67,7 @@ def sms(self): def sms(self, sms): """Sets the sms of this AddCredits. - SMS credits to be added to the child account # noqa: E501 + Required if email credits are empty. SMS credits to be added to the child account # noqa: E501 :param sms: The sms of this AddCredits. # noqa: E501 :type: int @@ -79,7 +79,7 @@ def sms(self, sms): def email(self): """Gets the email of this AddCredits. # noqa: E501 - Email credits to be added to the child account # noqa: E501 + Required if sms credits are empty. Email credits to be added to the child account # noqa: E501 :return: The email of this AddCredits. # noqa: E501 :rtype: int @@ -90,7 +90,7 @@ def email(self): def email(self, email): """Sets the email of this AddCredits. - Email credits to be added to the child account # noqa: E501 + Required if sms credits are empty. Email credits to be added to the child account # noqa: E501 :param email: The email of this AddCredits. # noqa: E501 :type: int diff --git a/sib_api_v3_sdk/models/get_child_info_ips.py b/sib_api_v3_sdk/models/create_reseller.py similarity index 65% rename from sib_api_v3_sdk/models/get_child_info_ips.py rename to sib_api_v3_sdk/models/create_reseller.py index e64a711..750685d 100644 --- a/sib_api_v3_sdk/models/get_child_info_ips.py +++ b/sib_api_v3_sdk/models/create_reseller.py @@ -17,7 +17,7 @@ import six -class GetChildInfoIps(object): +class CreateReseller(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,74 +31,45 @@ class GetChildInfoIps(object): and the value is json key in definition. """ swagger_types = { - 'id': 'int', - 'ip': 'str' + 'auth_key': 'str' } attribute_map = { - 'id': 'id', - 'ip': 'ip' + 'auth_key': 'authKey' } - def __init__(self, id=None, ip=None): # noqa: E501 - """GetChildInfoIps - a model defined in Swagger""" # noqa: E501 + def __init__(self, auth_key=None): # noqa: E501 + """CreateReseller - a model defined in Swagger""" # noqa: E501 - self._id = None - self._ip = None + self._auth_key = None self.discriminator = None - self.id = id - self.ip = ip + self.auth_key = auth_key @property - def id(self): - """Gets the id of this GetChildInfoIps. # noqa: E501 + def auth_key(self): + """Gets the auth_key of this CreateReseller. # noqa: E501 - ID of the IP # noqa: E501 + AuthKey of Reseller child created # noqa: E501 - :return: The id of this GetChildInfoIps. # noqa: E501 - :rtype: int - """ - return self._id - - @id.setter - def id(self, id): - """Sets the id of this GetChildInfoIps. - - ID of the IP # noqa: E501 - - :param id: The id of this GetChildInfoIps. # noqa: E501 - :type: int - """ - if id is None: - raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 - - self._id = id - - @property - def ip(self): - """Gets the ip of this GetChildInfoIps. # noqa: E501 - - IP associated to the child account user # noqa: E501 - - :return: The ip of this GetChildInfoIps. # noqa: E501 + :return: The auth_key of this CreateReseller. # noqa: E501 :rtype: str """ - return self._ip + return self._auth_key - @ip.setter - def ip(self, ip): - """Sets the ip of this GetChildInfoIps. + @auth_key.setter + def auth_key(self, auth_key): + """Sets the auth_key of this CreateReseller. - IP associated to the child account user # noqa: E501 + AuthKey of Reseller child created # noqa: E501 - :param ip: The ip of this GetChildInfoIps. # noqa: E501 + :param auth_key: The auth_key of this CreateReseller. # noqa: E501 :type: str """ - if ip is None: - raise ValueError("Invalid value for `ip`, must not be `None`") # noqa: E501 + if auth_key is None: + raise ValueError("Invalid value for `auth_key`, must not be `None`") # noqa: E501 - self._ip = ip + self._auth_key = auth_key def to_dict(self): """Returns the model properties as a dict""" @@ -134,7 +105,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, GetChildInfoIps): + if not isinstance(other, CreateReseller): return False return self.__dict__ == other.__dict__ diff --git a/sib_api_v3_sdk/models/error_model.py b/sib_api_v3_sdk/models/error_model.py index 9a5fcdc..09ac29f 100644 --- a/sib_api_v3_sdk/models/error_model.py +++ b/sib_api_v3_sdk/models/error_model.py @@ -72,7 +72,7 @@ def code(self, code): """ if code is None: raise ValueError("Invalid value for `code`, must not be `None`") # noqa: E501 - allowed_values = ["invalid_parameter", "missing_parameter", "out_of_range", "campaign_processing", "campaign_sent", "document_not_found", "reseller_permission", "not_enough_credits", "permission_denied", "duplicate_parameter", "duplicate_request", "method_not_allowed", "unauthorized", "account_under_validation", "not_acceptable"] # noqa: E501 + allowed_values = ["invalid_parameter", "missing_parameter", "out_of_range", "campaign_processing", "campaign_sent", "document_not_found", "reseller_permission_denied", "not_enough_credits", "permission_denied", "duplicate_parameter", "duplicate_request", "method_not_allowed", "unauthorized", "account_under_validation", "not_acceptable"] # noqa: E501 if code not in allowed_values: raise ValueError( "Invalid value for `code` ({0}), must be one of {1}" # noqa: E501 diff --git a/sib_api_v3_sdk/models/get_child_info.py b/sib_api_v3_sdk/models/get_child_info.py index 7bac461..cb3de83 100644 --- a/sib_api_v3_sdk/models/get_child_info.py +++ b/sib_api_v3_sdk/models/get_child_info.py @@ -18,7 +18,6 @@ from sib_api_v3_sdk.models.get_child_info_api_keys import GetChildInfoApiKeys # noqa: F401,E501 from sib_api_v3_sdk.models.get_child_info_credits import GetChildInfoCredits # noqa: F401,E501 -from sib_api_v3_sdk.models.get_child_info_ips import GetChildInfoIps # noqa: F401,E501 from sib_api_v3_sdk.models.get_child_info_statistics import GetChildInfoStatistics # noqa: F401,E501 from sib_api_v3_sdk.models.get_client import GetClient # noqa: F401,E501 @@ -44,8 +43,8 @@ class GetChildInfo(object): 'credits': 'GetChildInfoCredits', 'statistics': 'GetChildInfoStatistics', 'password': 'str', - 'ips': 'list[GetChildInfoIps]', - 'api_keys': 'list[GetChildInfoApiKeys]' + 'ips': 'list[str]', + 'api_keys': 'GetChildInfoApiKeys' } attribute_map = { @@ -262,7 +261,7 @@ def ips(self): IP(s) associated to a child account user # noqa: E501 :return: The ips of this GetChildInfo. # noqa: E501 - :rtype: list[GetChildInfoIps] + :rtype: list[str] """ return self._ips @@ -273,7 +272,7 @@ def ips(self, ips): IP(s) associated to a child account user # noqa: E501 :param ips: The ips of this GetChildInfo. # noqa: E501 - :type: list[GetChildInfoIps] + :type: list[str] """ self._ips = ips @@ -282,10 +281,9 @@ def ips(self, ips): def api_keys(self): """Gets the api_keys of this GetChildInfo. # noqa: E501 - API Keys associated to child account # noqa: E501 :return: The api_keys of this GetChildInfo. # noqa: E501 - :rtype: list[GetChildInfoApiKeys] + :rtype: GetChildInfoApiKeys """ return self._api_keys @@ -293,10 +291,9 @@ def api_keys(self): def api_keys(self, api_keys): """Sets the api_keys of this GetChildInfo. - API Keys associated to child account # noqa: E501 :param api_keys: The api_keys of this GetChildInfo. # noqa: E501 - :type: list[GetChildInfoApiKeys] + :type: GetChildInfoApiKeys """ self._api_keys = api_keys diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys.py b/sib_api_v3_sdk/models/get_child_info_api_keys.py index d549d3d..6c61219 100644 --- a/sib_api_v3_sdk/models/get_child_info_api_keys.py +++ b/sib_api_v3_sdk/models/get_child_info_api_keys.py @@ -16,6 +16,9 @@ import six +from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 # noqa: F401,E501 +from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 # noqa: F401,E501 + class GetChildInfoApiKeys(object): """NOTE: This class is auto generated by the swagger code generator program. @@ -31,102 +34,69 @@ class GetChildInfoApiKeys(object): and the value is json key in definition. """ swagger_types = { - 'name': 'str', - 'key': 'str', - 'secret': 'str' + 'v2': 'list[GetChildInfoApiKeysV2]', + 'v3': 'list[GetChildInfoApiKeysV3]' } attribute_map = { - 'name': 'name', - 'key': 'key', - 'secret': 'secret' + 'v2': 'v2', + 'v3': 'v3' } - def __init__(self, name=None, key=None, secret=None): # noqa: E501 + def __init__(self, v2=None, v3=None): # noqa: E501 """GetChildInfoApiKeys - a model defined in Swagger""" # noqa: E501 - self._name = None - self._key = None - self._secret = None + self._v2 = None + self._v3 = None self.discriminator = None - self.name = name - self.key = key - if secret is not None: - self.secret = secret - - @property - def name(self): - """Gets the name of this GetChildInfoApiKeys. # noqa: E501 - - Name of the key # noqa: E501 - - :return: The name of this GetChildInfoApiKeys. # noqa: E501 - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """Sets the name of this GetChildInfoApiKeys. - - Name of the key # noqa: E501 - - :param name: The name of this GetChildInfoApiKeys. # noqa: E501 - :type: str - """ - if name is None: - raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 - - self._name = name + self.v2 = v2 + if v3 is not None: + self.v3 = v3 @property - def key(self): - """Gets the key of this GetChildInfoApiKeys. # noqa: E501 + def v2(self): + """Gets the v2 of this GetChildInfoApiKeys. # noqa: E501 - API Key # noqa: E501 - :return: The key of this GetChildInfoApiKeys. # noqa: E501 - :rtype: str + :return: The v2 of this GetChildInfoApiKeys. # noqa: E501 + :rtype: list[GetChildInfoApiKeysV2] """ - return self._key + return self._v2 - @key.setter - def key(self, key): - """Sets the key of this GetChildInfoApiKeys. + @v2.setter + def v2(self, v2): + """Sets the v2 of this GetChildInfoApiKeys. - API Key # noqa: E501 - :param key: The key of this GetChildInfoApiKeys. # noqa: E501 - :type: str + :param v2: The v2 of this GetChildInfoApiKeys. # noqa: E501 + :type: list[GetChildInfoApiKeysV2] """ - if key is None: - raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + if v2 is None: + raise ValueError("Invalid value for `v2`, must not be `None`") # noqa: E501 - self._key = key + self._v2 = v2 @property - def secret(self): - """Gets the secret of this GetChildInfoApiKeys. # noqa: E501 + def v3(self): + """Gets the v3 of this GetChildInfoApiKeys. # noqa: E501 - Secret Key associated to the API Key (in case v1 Key is used only) # noqa: E501 - :return: The secret of this GetChildInfoApiKeys. # noqa: E501 - :rtype: str + :return: The v3 of this GetChildInfoApiKeys. # noqa: E501 + :rtype: list[GetChildInfoApiKeysV3] """ - return self._secret + return self._v3 - @secret.setter - def secret(self, secret): - """Sets the secret of this GetChildInfoApiKeys. + @v3.setter + def v3(self, v3): + """Sets the v3 of this GetChildInfoApiKeys. - Secret Key associated to the API Key (in case v1 Key is used only) # noqa: E501 - :param secret: The secret of this GetChildInfoApiKeys. # noqa: E501 - :type: str + :param v3: The v3 of this GetChildInfoApiKeys. # noqa: E501 + :type: list[GetChildInfoApiKeysV3] """ - self._secret = secret + self._v3 = v3 def to_dict(self): """Returns the model properties as a dict""" diff --git a/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py new file mode 100644 index 0000000..f3f9b22 --- /dev/null +++ b/sib_api_v3_sdk/models/get_child_info_api_keys_v2.py @@ -0,0 +1,144 @@ +# 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetChildInfoApiKeysV2(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'key': 'str' + } + + attribute_map = { + 'name': 'name', + 'key': 'key' + } + + def __init__(self, name=None, key=None): # noqa: E501 + """GetChildInfoApiKeysV2 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._key = None + self.discriminator = None + + self.name = name + self.key = key + + @property + def name(self): + """Gets the name of this GetChildInfoApiKeysV2. # noqa: E501 + + Name of the key for version 2 # noqa: E501 + + :return: The name of this GetChildInfoApiKeysV2. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetChildInfoApiKeysV2. + + Name of the key for version 2 # noqa: E501 + + :param name: The name of this GetChildInfoApiKeysV2. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def key(self): + """Gets the key of this GetChildInfoApiKeysV2. # noqa: E501 + + API Key for version 2 # noqa: E501 + + :return: The key of this GetChildInfoApiKeysV2. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this GetChildInfoApiKeysV2. + + API Key for version 2 # noqa: E501 + + :param key: The key of this GetChildInfoApiKeysV2. # noqa: E501 + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetChildInfoApiKeysV2): + 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_child_info_api_keys_v3.py b/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py new file mode 100644 index 0000000..7ca683b --- /dev/null +++ b/sib_api_v3_sdk/models/get_child_info_api_keys_v3.py @@ -0,0 +1,144 @@ +# 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GetChildInfoApiKeysV3(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'key': 'str' + } + + attribute_map = { + 'name': 'name', + 'key': 'key' + } + + def __init__(self, name=None, key=None): # noqa: E501 + """GetChildInfoApiKeysV3 - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._key = None + self.discriminator = None + + self.name = name + self.key = key + + @property + def name(self): + """Gets the name of this GetChildInfoApiKeysV3. # noqa: E501 + + Name of the key for version 3 # noqa: E501 + + :return: The name of this GetChildInfoApiKeysV3. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this GetChildInfoApiKeysV3. + + Name of the key for version 3 # noqa: E501 + + :param name: The name of this GetChildInfoApiKeysV3. # noqa: E501 + :type: str + """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501 + + self._name = name + + @property + def key(self): + """Gets the key of this GetChildInfoApiKeysV3. # noqa: E501 + + API Key for version 3 # noqa: E501 + + :return: The key of this GetChildInfoApiKeysV3. # noqa: E501 + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """Sets the key of this GetChildInfoApiKeysV3. + + API Key for version 3 # noqa: E501 + + :param key: The key of this GetChildInfoApiKeysV3. # noqa: E501 + :type: str + """ + if key is None: + raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501 + + self._key = key + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, GetChildInfoApiKeysV3): + 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_email_campaign.py b/sib_api_v3_sdk/models/get_email_campaign.py index b659164..dff76a7 100644 --- a/sib_api_v3_sdk/models/get_email_campaign.py +++ b/sib_api_v3_sdk/models/get_email_campaign.py @@ -53,7 +53,9 @@ class GetEmailCampaign(object): 'modified_at': 'datetime', 'inline_image_activation': 'bool', 'mirror_active': 'bool', - 'recurring': 'bool' + 'recurring': 'bool', + 'recipients': 'object', + 'statistics': 'object' } attribute_map = { @@ -76,10 +78,12 @@ class GetEmailCampaign(object): 'modified_at': 'modifiedAt', 'inline_image_activation': 'inlineImageActivation', 'mirror_active': 'mirrorActive', - 'recurring': 'recurring' + 'recurring': 'recurring', + 'recipients': 'recipients', + 'statistics': 'statistics' } - def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None): # noqa: E501 + def __init__(self, id=None, name=None, subject=None, type=None, status=None, scheduled_at=None, test_sent=None, header=None, footer=None, sender=None, reply_to=None, to_field=None, html_content=None, share_link=None, tag=None, created_at=None, modified_at=None, inline_image_activation=None, mirror_active=None, recurring=None, recipients=None, statistics=None): # noqa: E501 """GetEmailCampaign - a model defined in Swagger""" # noqa: E501 self._id = None @@ -102,6 +106,8 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self._inline_image_activation = None self._mirror_active = None self._recurring = None + self._recipients = None + self._statistics = None self.discriminator = None self.id = id @@ -129,6 +135,8 @@ def __init__(self, id=None, name=None, subject=None, type=None, status=None, sch self.mirror_active = mirror_active if recurring is not None: self.recurring = recurring + self.recipients = recipients + self.statistics = statistics @property def id(self): @@ -630,6 +638,52 @@ def recurring(self, recurring): self._recurring = recurring + @property + def recipients(self): + """Gets the recipients of this GetEmailCampaign. # noqa: E501 + + + :return: The recipients of this GetEmailCampaign. # noqa: E501 + :rtype: object + """ + return self._recipients + + @recipients.setter + def recipients(self, recipients): + """Sets the recipients of this GetEmailCampaign. + + + :param recipients: The recipients of this GetEmailCampaign. # noqa: E501 + :type: object + """ + if recipients is None: + raise ValueError("Invalid value for `recipients`, must not be `None`") # noqa: E501 + + self._recipients = recipients + + @property + def statistics(self): + """Gets the statistics of this GetEmailCampaign. # noqa: E501 + + + :return: The statistics of this GetEmailCampaign. # noqa: E501 + :rtype: object + """ + return self._statistics + + @statistics.setter + def statistics(self, statistics): + """Sets the statistics of this GetEmailCampaign. + + + :param statistics: The statistics of this GetEmailCampaign. # noqa: E501 + :type: object + """ + if statistics is None: + raise ValueError("Invalid value for `statistics`, must not be `None`") # noqa: E501 + + self._statistics = statistics + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/get_sms_campaign.py b/sib_api_v3_sdk/models/get_sms_campaign.py index 764afbe..8b3aceb 100644 --- a/sib_api_v3_sdk/models/get_sms_campaign.py +++ b/sib_api_v3_sdk/models/get_sms_campaign.py @@ -41,7 +41,9 @@ class GetSmsCampaign(object): 'test_sent': 'bool', 'sender': 'str', 'created_at': 'datetime', - 'modified_at': 'datetime' + 'modified_at': 'datetime', + 'recipients': 'object', + 'statistics': 'object' } attribute_map = { @@ -53,10 +55,12 @@ class GetSmsCampaign(object): 'test_sent': 'testSent', 'sender': 'sender', 'created_at': 'createdAt', - 'modified_at': 'modifiedAt' + 'modified_at': 'modifiedAt', + 'recipients': 'recipients', + 'statistics': 'statistics' } - def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, test_sent=None, sender=None, created_at=None, modified_at=None): # noqa: E501 + def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=None, test_sent=None, sender=None, created_at=None, modified_at=None, recipients=None, statistics=None): # noqa: E501 """GetSmsCampaign - a model defined in Swagger""" # noqa: E501 self._id = None @@ -68,6 +72,8 @@ def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=N self._sender = None self._created_at = None self._modified_at = None + self._recipients = None + self._statistics = None self.discriminator = None self.id = id @@ -79,6 +85,8 @@ def __init__(self, id=None, name=None, status=None, content=None, scheduled_at=N self.sender = sender self.created_at = created_at self.modified_at = modified_at + self.recipients = recipients + self.statistics = statistics @property def id(self): @@ -311,6 +319,52 @@ def modified_at(self, modified_at): self._modified_at = modified_at + @property + def recipients(self): + """Gets the recipients of this GetSmsCampaign. # noqa: E501 + + + :return: The recipients of this GetSmsCampaign. # noqa: E501 + :rtype: object + """ + return self._recipients + + @recipients.setter + def recipients(self, recipients): + """Sets the recipients of this GetSmsCampaign. + + + :param recipients: The recipients of this GetSmsCampaign. # noqa: E501 + :type: object + """ + if recipients is None: + raise ValueError("Invalid value for `recipients`, must not be `None`") # noqa: E501 + + self._recipients = recipients + + @property + def statistics(self): + """Gets the statistics of this GetSmsCampaign. # noqa: E501 + + + :return: The statistics of this GetSmsCampaign. # noqa: E501 + :rtype: object + """ + return self._statistics + + @statistics.setter + def statistics(self, statistics): + """Sets the statistics of this GetSmsCampaign. + + + :param statistics: The statistics of this GetSmsCampaign. # noqa: E501 + :type: object + """ + if statistics is None: + raise ValueError("Invalid value for `statistics`, must not be `None`") # noqa: E501 + + self._statistics = statistics + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/manage_ip.py b/sib_api_v3_sdk/models/manage_ip.py index 932f61a..beb3d9d 100644 --- a/sib_api_v3_sdk/models/manage_ip.py +++ b/sib_api_v3_sdk/models/manage_ip.py @@ -31,44 +31,44 @@ class ManageIp(object): and the value is json key in definition. """ swagger_types = { - 'ip_id': 'int' + 'ip': 'str' } attribute_map = { - 'ip_id': 'ipId' + 'ip': 'ip' } - def __init__(self, ip_id=None): # noqa: E501 + def __init__(self, ip=None): # noqa: E501 """ManageIp - a model defined in Swagger""" # noqa: E501 - self._ip_id = None + self._ip = None self.discriminator = None - if ip_id is not None: - self.ip_id = ip_id + if ip is not None: + self.ip = ip @property - def ip_id(self): - """Gets the ip_id of this ManageIp. # noqa: E501 + def ip(self): + """Gets the ip of this ManageIp. # noqa: E501 - ID of the IP # noqa: E501 + Dedicated ID # noqa: E501 - :return: The ip_id of this ManageIp. # noqa: E501 - :rtype: int + :return: The ip of this ManageIp. # noqa: E501 + :rtype: str """ - return self._ip_id + return self._ip - @ip_id.setter - def ip_id(self, ip_id): - """Sets the ip_id of this ManageIp. + @ip.setter + def ip(self, ip): + """Sets the ip of this ManageIp. - ID of the IP # noqa: E501 + Dedicated ID # noqa: E501 - :param ip_id: The ip_id of this ManageIp. # noqa: E501 - :type: int + :param ip: The ip of this ManageIp. # noqa: E501 + :type: str """ - self._ip_id = ip_id + self._ip = ip def to_dict(self): """Returns the model properties as a dict""" diff --git a/sib_api_v3_sdk/models/remove_contact_from_list.py b/sib_api_v3_sdk/models/remove_contact_from_list.py new file mode 100644 index 0000000..8d8fd7a --- /dev/null +++ b/sib_api_v3_sdk/models/remove_contact_from_list.py @@ -0,0 +1,142 @@ +# 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 | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class RemoveContactFromList(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 = { + 'emails': 'list[str]', + 'all': 'bool' + } + + attribute_map = { + 'emails': 'emails', + 'all': 'all' + } + + def __init__(self, emails=None, all=None): # noqa: E501 + """RemoveContactFromList - a model defined in Swagger""" # noqa: E501 + + self._emails = None + self._all = None + self.discriminator = None + + if emails is not None: + self.emails = emails + if all is not None: + self.all = all + + @property + def emails(self): + """Gets the emails of this RemoveContactFromList. # noqa: E501 + + Required if 'all' is false. Emails to remove from a list # noqa: E501 + + :return: The emails of this RemoveContactFromList. # noqa: E501 + :rtype: list[str] + """ + return self._emails + + @emails.setter + def emails(self, emails): + """Sets the emails of this RemoveContactFromList. + + Required if 'all' is false. Emails to remove from a list # noqa: E501 + + :param emails: The emails of this RemoveContactFromList. # noqa: E501 + :type: list[str] + """ + + self._emails = emails + + @property + def all(self): + """Gets the all of this RemoveContactFromList. # noqa: E501 + + Required if 'emails' is empty. Remove all existing contacts from a list # noqa: E501 + + :return: The all of this RemoveContactFromList. # noqa: E501 + :rtype: bool + """ + return self._all + + @all.setter + def all(self, all): + """Sets the all of this RemoveContactFromList. + + Required if 'emails' is empty. Remove all existing contacts from a list # noqa: E501 + + :param all: The all of this RemoveContactFromList. # noqa: E501 + :type: bool + """ + + self._all = all + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, RemoveContactFromList): + 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/remove_credits.py b/sib_api_v3_sdk/models/remove_credits.py index 46f0ace..6266065 100644 --- a/sib_api_v3_sdk/models/remove_credits.py +++ b/sib_api_v3_sdk/models/remove_credits.py @@ -56,7 +56,7 @@ def __init__(self, sms=None, email=None): # noqa: E501 def sms(self): """Gets the sms of this RemoveCredits. # noqa: E501 - SMS credits to be removed from the child account # noqa: E501 + Required if email credits are empty. SMS credits to be removed from the child account # noqa: E501 :return: The sms of this RemoveCredits. # noqa: E501 :rtype: int @@ -67,7 +67,7 @@ def sms(self): def sms(self, sms): """Sets the sms of this RemoveCredits. - SMS credits to be removed from the child account # noqa: E501 + Required if email credits are empty. SMS credits to be removed from the child account # noqa: E501 :param sms: The sms of this RemoveCredits. # noqa: E501 :type: int @@ -79,7 +79,7 @@ def sms(self, sms): def email(self): """Gets the email of this RemoveCredits. # noqa: E501 - Email credits to be removed from the child account # noqa: E501 + Required if sms credits are empty. Email credits to be removed from the child account # noqa: E501 :return: The email of this RemoveCredits. # noqa: E501 :rtype: int @@ -90,7 +90,7 @@ def email(self): def email(self, email): """Sets the email of this RemoveCredits. - Email credits to be removed from the child account # noqa: E501 + Required if sms credits are empty. Email credits to be removed from the child account # noqa: E501 :param email: The email of this RemoveCredits. # noqa: E501 :type: int diff --git a/sib_api_v3_sdk/models/send_smtp_email.py b/sib_api_v3_sdk/models/send_smtp_email.py index 6d59362..b45fc80 100644 --- a/sib_api_v3_sdk/models/send_smtp_email.py +++ b/sib_api_v3_sdk/models/send_smtp_email.py @@ -47,7 +47,9 @@ class SendSmtpEmail(object): 'subject': 'str', 'reply_to': 'SendSmtpEmailReplyTo', 'attachment': 'list[SendSmtpEmailAttachment]', - 'headers': 'dict(str, str)' + 'headers': 'dict(str, str)', + 'template_id': 'int', + 'params': 'dict(str, str)' } attribute_map = { @@ -60,10 +62,12 @@ class SendSmtpEmail(object): 'subject': 'subject', 'reply_to': 'replyTo', 'attachment': 'attachment', - 'headers': 'headers' + 'headers': 'headers', + 'template_id': 'templateId', + 'params': 'params' } - def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, text_content=None, subject=None, reply_to=None, attachment=None, headers=None): # noqa: E501 + def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, text_content=None, subject=None, reply_to=None, attachment=None, headers=None, template_id=None, params=None): # noqa: E501 """SendSmtpEmail - a model defined in Swagger""" # noqa: E501 self._sender = None @@ -76,24 +80,33 @@ def __init__(self, sender=None, to=None, bcc=None, cc=None, html_content=None, t self._reply_to = None self._attachment = None self._headers = None + self._template_id = None + self._params = None self.discriminator = None - self.sender = sender + if sender is not None: + self.sender = sender self.to = to if bcc is not None: self.bcc = bcc if cc is not None: self.cc = cc - self.html_content = html_content + if html_content is not None: + self.html_content = html_content if text_content is not None: self.text_content = text_content - self.subject = subject + if subject is not None: + self.subject = subject if reply_to is not None: self.reply_to = reply_to if attachment is not None: self.attachment = attachment if headers is not None: self.headers = headers + if template_id is not None: + self.template_id = template_id + if params is not None: + self.params = params @property def sender(self): @@ -113,8 +126,6 @@ def sender(self, sender): :param sender: The sender of this SendSmtpEmail. # noqa: E501 :type: SendSmtpEmailSender """ - if sender is None: - raise ValueError("Invalid value for `sender`, must not be `None`") # noqa: E501 self._sender = sender @@ -193,7 +204,7 @@ def cc(self, cc): def html_content(self): """Gets the html_content of this SendSmtpEmail. # noqa: E501 - HTML body of the message # noqa: E501 + HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed ) # noqa: E501 :return: The html_content of this SendSmtpEmail. # noqa: E501 :rtype: str @@ -204,13 +215,11 @@ def html_content(self): def html_content(self, html_content): """Sets the html_content of this SendSmtpEmail. - HTML body of the message # noqa: E501 + HTML body of the message ( Mandatory if 'templateId' is not passed, ignored if 'templateId' is passed ) # noqa: E501 :param html_content: The html_content of this SendSmtpEmail. # noqa: E501 :type: str """ - if html_content is None: - raise ValueError("Invalid value for `html_content`, must not be `None`") # noqa: E501 self._html_content = html_content @@ -218,7 +227,7 @@ def html_content(self, html_content): def text_content(self): """Gets the text_content of this SendSmtpEmail. # noqa: E501 - Plain Text body of the message # noqa: E501 + Plain Text body of the message ( Ignored if 'templateId' is passed ) # noqa: E501 :return: The text_content of this SendSmtpEmail. # noqa: E501 :rtype: str @@ -229,7 +238,7 @@ def text_content(self): def text_content(self, text_content): """Sets the text_content of this SendSmtpEmail. - Plain Text body of the message # noqa: E501 + Plain Text body of the message ( Ignored if 'templateId' is passed ) # noqa: E501 :param text_content: The text_content of this SendSmtpEmail. # noqa: E501 :type: str @@ -241,7 +250,7 @@ def text_content(self, text_content): def subject(self): """Gets the subject of this SendSmtpEmail. # noqa: E501 - Subject of the message # noqa: E501 + Subject of the message. Mandatory if 'templateId' is not passed # noqa: E501 :return: The subject of this SendSmtpEmail. # noqa: E501 :rtype: str @@ -252,13 +261,11 @@ def subject(self): def subject(self, subject): """Sets the subject of this SendSmtpEmail. - Subject of the message # noqa: E501 + Subject of the message. Mandatory if 'templateId' is not passed # noqa: E501 :param subject: The subject of this SendSmtpEmail. # noqa: E501 :type: str """ - if subject is None: - raise ValueError("Invalid value for `subject`, must not be `None`") # noqa: E501 self._subject = subject @@ -287,7 +294,7 @@ def reply_to(self, reply_to): def attachment(self): """Gets the attachment of this SendSmtpEmail. # noqa: E501 - Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed ) # noqa: E501 :return: The attachment of this SendSmtpEmail. # noqa: E501 :rtype: list[SendSmtpEmailAttachment] @@ -298,7 +305,7 @@ def attachment(self): def attachment(self, attachment): """Sets the attachment of this SendSmtpEmail. - Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps # noqa: E501 + Pass the absolute URL (no local file) or the base64 content of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if 'templateId' is passed ) # noqa: E501 :param attachment: The attachment of this SendSmtpEmail. # noqa: E501 :type: list[SendSmtpEmailAttachment] @@ -327,6 +334,50 @@ def headers(self, headers): self._headers = headers + @property + def template_id(self): + """Gets the template_id of this SendSmtpEmail. # noqa: E501 + + Id of the template # noqa: E501 + + :return: The template_id of this SendSmtpEmail. # noqa: E501 + :rtype: int + """ + return self._template_id + + @template_id.setter + def template_id(self, template_id): + """Sets the template_id of this SendSmtpEmail. + + Id of the template # noqa: E501 + + :param template_id: The template_id of this SendSmtpEmail. # noqa: E501 + :type: int + """ + + self._template_id = template_id + + @property + def params(self): + """Gets the params of this SendSmtpEmail. # noqa: E501 + + + :return: The params of this SendSmtpEmail. # noqa: E501 + :rtype: dict(str, str) + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this SendSmtpEmail. + + + :param params: The params of this SendSmtpEmail. # noqa: E501 + :type: dict(str, str) + """ + + self._params = params + def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/sib_api_v3_sdk/models/update_child.py b/sib_api_v3_sdk/models/update_child.py index 972300e..6cbe3bb 100644 --- a/sib_api_v3_sdk/models/update_child.py +++ b/sib_api_v3_sdk/models/update_child.py @@ -35,8 +35,7 @@ class UpdateChild(object): 'first_name': 'str', 'last_name': 'str', 'company_name': 'str', - 'password': 'str', - 'ips': 'list[int]' + 'password': 'str' } attribute_map = { @@ -44,11 +43,10 @@ class UpdateChild(object): 'first_name': 'firstName', 'last_name': 'lastName', 'company_name': 'companyName', - 'password': 'password', - 'ips': 'ips' + 'password': 'password' } - def __init__(self, email=None, first_name=None, last_name=None, company_name=None, password=None, ips=None): # noqa: E501 + def __init__(self, email=None, first_name=None, last_name=None, company_name=None, password=None): # noqa: E501 """UpdateChild - a model defined in Swagger""" # noqa: E501 self._email = None @@ -56,7 +54,6 @@ def __init__(self, email=None, first_name=None, last_name=None, company_name=Non self._last_name = None self._company_name = None self._password = None - self._ips = None self.discriminator = None if email is not None: @@ -69,8 +66,6 @@ def __init__(self, email=None, first_name=None, last_name=None, company_name=Non self.company_name = company_name if password is not None: self.password = password - if ips is not None: - self.ips = ips @property def email(self): @@ -187,27 +182,6 @@ def password(self, password): self._password = password - @property - def ips(self): - """Gets the ips of this UpdateChild. # noqa: E501 - - - :return: The ips of this UpdateChild. # noqa: E501 - :rtype: list[int] - """ - return self._ips - - @ips.setter - def ips(self, ips): - """Sets the ips of this UpdateChild. - - - :param ips: The ips of this UpdateChild. # noqa: E501 - :type: list[int] - """ - - self._ips = ips - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/test/test_add_remove_contact_to_list.py b/test/test_add_contact_to_list.py similarity index 77% rename from test/test_add_remove_contact_to_list.py rename to test/test_add_contact_to_list.py index 210f719..5f0c4c2 100644 --- a/test/test_add_remove_contact_to_list.py +++ b/test/test_add_contact_to_list.py @@ -16,12 +16,12 @@ import unittest import sib_api_v3_sdk -from sib_api_v3_sdk.models.add_remove_contact_to_list import AddRemoveContactToList # noqa: E501 +from sib_api_v3_sdk.models.add_contact_to_list import AddContactToList # noqa: E501 from sib_api_v3_sdk.rest import ApiException -class TestAddRemoveContactToList(unittest.TestCase): - """AddRemoveContactToList unit test stubs""" +class TestAddContactToList(unittest.TestCase): + """AddContactToList unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testAddRemoveContactToList(self): - """Test AddRemoveContactToList""" + def testAddContactToList(self): + """Test AddContactToList""" # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.add_remove_contact_to_list.AddRemoveContactToList() # noqa: E501 + # model = sib_api_v3_sdk.models.add_contact_to_list.AddContactToList() # noqa: E501 pass diff --git a/test/test_contacts_api.py b/test/test_contacts_api.py index d52615e..654d228 100644 --- a/test/test_contacts_api.py +++ b/test/test_contacts_api.py @@ -162,8 +162,8 @@ def test_import_contacts(self): """ pass - def test_remove_contact_to_list(self): - """Test case for remove_contact_to_list + def test_remove_contact_from_list(self): + """Test case for remove_contact_from_list Remove existing contacts from a list # noqa: E501 """ diff --git a/test/test_get_child_info_ips.py b/test/test_create_reseller.py similarity index 80% rename from test/test_get_child_info_ips.py rename to test/test_create_reseller.py index b5fc3bf..7aa350e 100644 --- a/test/test_get_child_info_ips.py +++ b/test/test_create_reseller.py @@ -16,12 +16,12 @@ import unittest import sib_api_v3_sdk -from sib_api_v3_sdk.models.get_child_info_ips import GetChildInfoIps # noqa: E501 +from sib_api_v3_sdk.models.create_reseller import CreateReseller # noqa: E501 from sib_api_v3_sdk.rest import ApiException -class TestGetChildInfoIps(unittest.TestCase): - """GetChildInfoIps unit test stubs""" +class TestCreateReseller(unittest.TestCase): + """CreateReseller unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testGetChildInfoIps(self): - """Test GetChildInfoIps""" + def testCreateReseller(self): + """Test CreateReseller""" # FIXME: construct object with mandatory attributes with example values - # model = sib_api_v3_sdk.models.get_child_info_ips.GetChildInfoIps() # noqa: E501 + # model = sib_api_v3_sdk.models.create_reseller.CreateReseller() # noqa: E501 pass diff --git a/test/test_get_child_info_api_keys_v2.py b/test/test_get_child_info_api_keys_v2.py new file mode 100644 index 0000000..43eddab --- /dev/null +++ b/test/test_get_child_info_api_keys_v2.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_child_info_api_keys_v2 import GetChildInfoApiKeysV2 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetChildInfoApiKeysV2(unittest.TestCase): + """GetChildInfoApiKeysV2 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetChildInfoApiKeysV2(self): + """Test GetChildInfoApiKeysV2""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_child_info_api_keys_v2.GetChildInfoApiKeysV2() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_get_child_info_api_keys_v3.py b/test/test_get_child_info_api_keys_v3.py new file mode 100644 index 0000000..1710e11 --- /dev/null +++ b/test/test_get_child_info_api_keys_v3.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.get_child_info_api_keys_v3 import GetChildInfoApiKeysV3 # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestGetChildInfoApiKeysV3(unittest.TestCase): + """GetChildInfoApiKeysV3 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGetChildInfoApiKeysV3(self): + """Test GetChildInfoApiKeysV3""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.get_child_info_api_keys_v3.GetChildInfoApiKeysV3() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_lists_api.py b/test/test_lists_api.py index ef8365f..d058b66 100644 --- a/test/test_lists_api.py +++ b/test/test_lists_api.py @@ -78,8 +78,8 @@ def test_get_lists(self): """ pass - def test_remove_contact_to_list(self): - """Test case for remove_contact_to_list + def test_remove_contact_from_list(self): + """Test case for remove_contact_from_list Remove existing contacts from a list # noqa: E501 """ diff --git a/test/test_remove_contact_from_list.py b/test/test_remove_contact_from_list.py new file mode 100644 index 0000000..637c10a --- /dev/null +++ b/test/test_remove_contact_from_list.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + SendinBlue API + + SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | # noqa: E501 + + OpenAPI spec version: 3.0.0 + Contact: contact@sendinblue.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import sib_api_v3_sdk +from sib_api_v3_sdk.models.remove_contact_from_list import RemoveContactFromList # noqa: E501 +from sib_api_v3_sdk.rest import ApiException + + +class TestRemoveContactFromList(unittest.TestCase): + """RemoveContactFromList unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testRemoveContactFromList(self): + """Test RemoveContactFromList""" + # FIXME: construct object with mandatory attributes with example values + # model = sib_api_v3_sdk.models.remove_contact_from_list.RemoveContactFromList() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_reseller_api.py b/test/test_reseller_api.py index 15a5b16..15f1d04 100644 --- a/test/test_reseller_api.py +++ b/test/test_reseller_api.py @@ -53,7 +53,7 @@ def test_create_reseller_child(self): def test_delete_reseller_child(self): """Test case for delete_reseller_child - Deletes a single reseller child based on the childId supplied # noqa: E501 + Deletes a single reseller child based on the childAuthKey supplied # noqa: E501 """ pass @@ -88,7 +88,7 @@ def test_remove_credits(self): def test_update_reseller_child(self): """Test case for update_reseller_child - Updates infos of reseller's child based on the childId supplied # noqa: E501 + Updates infos of reseller's child based on the childAuthKey supplied # noqa: E501 """ pass