From 0e82c2c8e388fc6dfef3b5609f5e1429a4da7caf Mon Sep 17 00:00:00 2001 From: nagendraSIB Date: Wed, 2 Mar 2022 12:45:34 +0530 Subject: [PATCH 1/4] AP-2022 ruby latest update --- Gemfile | 2 +- README.md | 25 ++- docs/CRMApi.md | 118 +++++++--- docs/CreateSubAccount.md | 1 + docs/MasterAccountApi.md | 57 +++++ docs/RequestContactImport.md | 5 +- docs/SendSmtpEmail.md | 6 +- docs/TaskTypes.md | 10 + lib/sib-api-v3-sdk.rb | 1 + lib/sib-api-v3-sdk/api/crm_api.rb | 90 ++++++-- lib/sib-api-v3-sdk/api/master_account_api.rb | 51 +++++ .../api/transactional_emails_api.rb | 4 +- .../models/create_sub_account.rb | 17 +- .../models/get_email_event_report_events.rb | 4 +- .../models/request_contact_import.rb | 18 +- lib/sib-api-v3-sdk/models/send_smtp_email.rb | 6 +- lib/sib-api-v3-sdk/models/task_types.rb | 206 ++++++++++++++++++ lib/sib-api-v3-sdk/version.rb | 2 +- spec/api/crm_api_spec.rb | 32 ++- spec/api/master_account_api_spec.rb | 11 + spec/models/create_sub_account_spec.rb | 6 + .../get_email_event_report_events_spec.rb | 2 +- spec/models/request_contact_import_spec.rb | 6 + spec/models/task_types_spec.rb | 53 +++++ 24 files changed, 637 insertions(+), 96 deletions(-) create mode 100644 docs/TaskTypes.md create mode 100644 lib/sib-api-v3-sdk/models/task_types.rb create mode 100644 spec/models/task_types_spec.rb diff --git a/Gemfile b/Gemfile index dc92356..f58bec0 100644 --- a/Gemfile +++ b/Gemfile @@ -3,5 +3,5 @@ source 'https://rubygems.org' gemspec group :development, :test do - gem 'rake', '>= 12.3.3' + gem 'rake', '~> 12.3.3' end diff --git a/README.md b/README.md index 6e5822d..1e9e074 100644 --- a/README.md +++ b/README.md @@ -89,18 +89,19 @@ Class | Method | HTTP request | Description *SibApiV3Sdk::AttributesApi* | [**delete_attribute**](docs/AttributesApi.md#delete_attribute) | **DELETE** /contacts/attributes/{attributeCategory}/{attributeName} | Delete an attribute *SibApiV3Sdk::AttributesApi* | [**get_attributes**](docs/AttributesApi.md#get_attributes) | **GET** /contacts/attributes | List all attributes *SibApiV3Sdk::AttributesApi* | [**update_attribute**](docs/AttributesApi.md#update_attribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Update contact attribute -*SibApiV3Sdk::CRMApi* | [**crm_files_id_data_get**](docs/CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file data by id. -*SibApiV3Sdk::CRMApi* | [**crm_files_id_delete**](docs/CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete file. -*SibApiV3Sdk::CRMApi* | [**crm_files_id_get**](docs/CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download file by id. -*SibApiV3Sdk::CRMApi* | [**crm_files_post**](docs/CRMApi.md#crm_files_post) | **POST** /crm/files | Upload and create file. -*SibApiV3Sdk::CRMApi* | [**crm_notes_id_delete**](docs/CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete Note by ID -*SibApiV3Sdk::CRMApi* | [**crm_notes_id_get**](docs/CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get one Note by ID +*SibApiV3Sdk::CRMApi* | [**crm_files_id_data_get**](docs/CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +*SibApiV3Sdk::CRMApi* | [**crm_files_id_delete**](docs/CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +*SibApiV3Sdk::CRMApi* | [**crm_files_id_get**](docs/CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +*SibApiV3Sdk::CRMApi* | [**crm_files_post**](docs/CRMApi.md#crm_files_post) | **POST** /crm/files | Upload a file +*SibApiV3Sdk::CRMApi* | [**crm_notes_id_delete**](docs/CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note +*SibApiV3Sdk::CRMApi* | [**crm_notes_id_get**](docs/CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note *SibApiV3Sdk::CRMApi* | [**crm_notes_id_patch**](docs/CRMApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note -*SibApiV3Sdk::CRMApi* | [**crm_notes_post**](docs/CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a new Note -*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_delete**](docs/CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete Task by id -*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_get**](docs/CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get one Task by ID -*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_patch**](docs/CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update partial existing task -*SibApiV3Sdk::CRMApi* | [**crm_tasks_post**](docs/CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a new Task +*SibApiV3Sdk::CRMApi* | [**crm_notes_post**](docs/CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a note +*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_delete**](docs/CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task +*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_get**](docs/CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task +*SibApiV3Sdk::CRMApi* | [**crm_tasks_id_patch**](docs/CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task +*SibApiV3Sdk::CRMApi* | [**crm_tasks_post**](docs/CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task +*SibApiV3Sdk::CRMApi* | [**crm_tasktypes_get**](docs/CRMApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types *SibApiV3Sdk::ContactsApi* | [**add_contact_to_list**](docs/ContactsApi.md#add_contact_to_list) | **POST** /contacts/lists/{listId}/contacts/add | Add existing contacts to a list *SibApiV3Sdk::ContactsApi* | [**create_attribute**](docs/ContactsApi.md#create_attribute) | **POST** /contacts/attributes/{attributeCategory}/{attributeName} | Create contact attribute *SibApiV3Sdk::ContactsApi* | [**create_contact**](docs/ContactsApi.md#create_contact) | **POST** /contacts | Create a contact @@ -161,6 +162,7 @@ Class | Method | HTTP request | Description *SibApiV3Sdk::ListsApi* | [**update_list**](docs/ListsApi.md#update_list) | **PUT** /contacts/lists/{listId} | Update a list *SibApiV3Sdk::MasterAccountApi* | [**corporate_master_account_get**](docs/MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account *SibApiV3Sdk::MasterAccountApi* | [**corporate_sub_account_get**](docs/MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account. +*SibApiV3Sdk::MasterAccountApi* | [**corporate_sub_account_id_delete**](docs/MasterAccountApi.md#corporate_sub_account_id_delete) | **DELETE** /corporate/subAccount/{id} | Delete a sub-account *SibApiV3Sdk::MasterAccountApi* | [**corporate_sub_account_id_get**](docs/MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details *SibApiV3Sdk::MasterAccountApi* | [**corporate_sub_account_id_plan_put**](docs/MasterAccountApi.md#corporate_sub_account_id_plan_put) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan *SibApiV3Sdk::MasterAccountApi* | [**corporate_sub_account_post**](docs/MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account. @@ -429,6 +431,7 @@ Class | Method | HTTP request | Description - [SibApiV3Sdk::SubAccountsResponseSubAccounts](docs/SubAccountsResponseSubAccounts.md) - [SibApiV3Sdk::Task](docs/Task.md) - [SibApiV3Sdk::TaskReminder](docs/TaskReminder.md) + - [SibApiV3Sdk::TaskTypes](docs/TaskTypes.md) - [SibApiV3Sdk::UpdateAttribute](docs/UpdateAttribute.md) - [SibApiV3Sdk::UpdateAttributeEnumeration](docs/UpdateAttributeEnumeration.md) - [SibApiV3Sdk::UpdateBatchContacts](docs/UpdateBatchContacts.md) diff --git a/docs/CRMApi.md b/docs/CRMApi.md index 6cbbcde..30243b6 100644 --- a/docs/CRMApi.md +++ b/docs/CRMApi.md @@ -4,24 +4,25 @@ All URIs are relative to *https://api.sendinblue.com/v3* Method | HTTP request | Description ------------- | ------------- | ------------- -[**crm_files_id_data_get**](CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file data by id. -[**crm_files_id_delete**](CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete file. -[**crm_files_id_get**](CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download file by id. -[**crm_files_post**](CRMApi.md#crm_files_post) | **POST** /crm/files | Upload and create file. -[**crm_notes_id_delete**](CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete Note by ID -[**crm_notes_id_get**](CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get one Note by ID +[**crm_files_id_data_get**](CRMApi.md#crm_files_id_data_get) | **GET** /crm/files/{id}/data | Get file details +[**crm_files_id_delete**](CRMApi.md#crm_files_id_delete) | **DELETE** /crm/files/{id} | Delete a file +[**crm_files_id_get**](CRMApi.md#crm_files_id_get) | **GET** /crm/files/{id} | Download a file +[**crm_files_post**](CRMApi.md#crm_files_post) | **POST** /crm/files | Upload a file +[**crm_notes_id_delete**](CRMApi.md#crm_notes_id_delete) | **DELETE** /crm/notes/{id} | Delete a note +[**crm_notes_id_get**](CRMApi.md#crm_notes_id_get) | **GET** /crm/notes/{id} | Get a note [**crm_notes_id_patch**](CRMApi.md#crm_notes_id_patch) | **PATCH** /crm/notes/{id} | Update a note -[**crm_notes_post**](CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a new Note -[**crm_tasks_id_delete**](CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete Task by id -[**crm_tasks_id_get**](CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get one Task by ID -[**crm_tasks_id_patch**](CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update partial existing task -[**crm_tasks_post**](CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a new Task +[**crm_notes_post**](CRMApi.md#crm_notes_post) | **POST** /crm/notes | Create a note +[**crm_tasks_id_delete**](CRMApi.md#crm_tasks_id_delete) | **DELETE** /crm/tasks/{id} | Delete a task +[**crm_tasks_id_get**](CRMApi.md#crm_tasks_id_get) | **GET** /crm/tasks/{id} | Get a task +[**crm_tasks_id_patch**](CRMApi.md#crm_tasks_id_patch) | **PATCH** /crm/tasks/{id} | Update a task +[**crm_tasks_post**](CRMApi.md#crm_tasks_post) | **POST** /crm/tasks | Create a task +[**crm_tasktypes_get**](CRMApi.md#crm_tasktypes_get) | **GET** /crm/tasktypes | Get all task types # **crm_files_id_data_get** > FileData crm_files_id_data_get(id) -Get file data by id. +Get file details ### Example ```ruby @@ -46,7 +47,7 @@ id = 'id_example' # String | File id to get file data. begin - #Get file data by id. + #Get file details result = api_instance.crm_files_id_data_get(id) p result rescue SibApiV3Sdk::ApiError => e @@ -78,7 +79,7 @@ Name | Type | Description | Notes # **crm_files_id_delete** > crm_files_id_delete(id) -Delete file. +Delete a file ### Example ```ruby @@ -103,7 +104,7 @@ id = 'id_example' # String | File id to delete. begin - #Delete file. + #Delete a file api_instance.crm_files_id_delete(id) rescue SibApiV3Sdk::ApiError => e puts "Exception when calling CRMApi->crm_files_id_delete: #{e}" @@ -134,7 +135,7 @@ nil (empty response body) # **crm_files_id_get** > crm_files_id_get(id) -Download file by id. +Download a file ### Example ```ruby @@ -159,7 +160,7 @@ id = 'id_example' # String | File id to download. begin - #Download file by id. + #Download a file api_instance.crm_files_id_get(id) rescue SibApiV3Sdk::ApiError => e puts "Exception when calling CRMApi->crm_files_id_get: #{e}" @@ -190,7 +191,7 @@ nil (empty response body) # **crm_files_post** > FileData crm_files_post(file, opts) -Upload and create file. +Upload a file ### Example ```ruby @@ -218,7 +219,7 @@ opts = { } begin - #Upload and create file. + #Upload a file result = api_instance.crm_files_post(file, opts) p result rescue SibApiV3Sdk::ApiError => e @@ -251,7 +252,7 @@ Name | Type | Description | Notes # **crm_notes_id_delete** > crm_notes_id_delete(id) -Delete Note by ID +Delete a note ### Example ```ruby @@ -276,7 +277,7 @@ id = 'id_example' # String | Note ID to delete begin - #Delete Note by ID + #Delete a note api_instance.crm_notes_id_delete(id) rescue SibApiV3Sdk::ApiError => e puts "Exception when calling CRMApi->crm_notes_id_delete: #{e}" @@ -307,7 +308,7 @@ nil (empty response body) # **crm_notes_id_get** > Note crm_notes_id_get(id) -Get one Note by ID +Get a note ### Example ```ruby @@ -332,7 +333,7 @@ id = 'id_example' # String | Note ID to get begin - #Get one Note by ID + #Get a note result = api_instance.crm_notes_id_get(id) p result rescue SibApiV3Sdk::ApiError => e @@ -424,7 +425,7 @@ Name | Type | Description | Notes # **crm_notes_post** > Note crm_notes_post(body) -Create a new Note +Create a note ### Example ```ruby @@ -449,7 +450,7 @@ body = SibApiV3Sdk::NoteData.new # NoteData | Note data to create a note. begin - #Create a new Note + #Create a note result = api_instance.crm_notes_post(body) p result rescue SibApiV3Sdk::ApiError => e @@ -481,7 +482,7 @@ Name | Type | Description | Notes # **crm_tasks_id_delete** > crm_tasks_id_delete(id) -Delete Task by id +Delete a task ### Example ```ruby @@ -506,7 +507,7 @@ id = 'id_example' # String | begin - #Delete Task by id + #Delete a task api_instance.crm_tasks_id_delete(id) rescue SibApiV3Sdk::ApiError => e puts "Exception when calling CRMApi->crm_tasks_id_delete: #{e}" @@ -537,7 +538,7 @@ nil (empty response body) # **crm_tasks_id_get** > Task crm_tasks_id_get(id) -Get one Task by ID +Get a task ### Example ```ruby @@ -562,7 +563,7 @@ id = 'id_example' # String | begin - #Get one Task by ID + #Get a task result = api_instance.crm_tasks_id_get(id) p result rescue SibApiV3Sdk::ApiError => e @@ -594,7 +595,7 @@ Name | Type | Description | Notes # **crm_tasks_id_patch** > Task crm_tasks_id_patch(id, body) -Update partial existing task +Update a task ### Example ```ruby @@ -621,7 +622,7 @@ body = SibApiV3Sdk::Body1.new # Body1 | Updated task details. begin - #Update partial existing task + #Update a task result = api_instance.crm_tasks_id_patch(id, body) p result rescue SibApiV3Sdk::ApiError => e @@ -654,7 +655,7 @@ Name | Type | Description | Notes # **crm_tasks_post** > Task crm_tasks_post(body) -Create a new Task +Create a task ### Example ```ruby @@ -679,7 +680,7 @@ body = SibApiV3Sdk::Body.new # Body | Task name. begin - #Create a new Task + #Create a task result = api_instance.crm_tasks_post(body) p result rescue SibApiV3Sdk::ApiError => e @@ -708,3 +709,54 @@ Name | Type | Description | Notes +# **crm_tasktypes_get** +> TaskTypes crm_tasktypes_get + +Get all task types + +### Example +```ruby +# load the gem +require 'sib-api-v3-sdk' +# setup authorization +SibApiV3Sdk.configure do |config| + # Configure API key authorization: api-key + config.api_key['api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['api-key'] = 'Bearer' + + # Configure API key authorization: partner-key + config.api_key['partner-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['partner-key'] = 'Bearer' +end + +api_instance = SibApiV3Sdk::CRMApi.new + +begin + #Get all task types + result = api_instance.crm_tasktypes_get + p result +rescue SibApiV3Sdk::ApiError => e + puts "Exception when calling CRMApi->crm_tasktypes_get: #{e}" +end +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**TaskTypes**](TaskTypes.md) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + diff --git a/docs/CreateSubAccount.md b/docs/CreateSubAccount.md index 2013c1d..23d8971 100644 --- a/docs/CreateSubAccount.md +++ b/docs/CreateSubAccount.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **company_name** | **String** | Name of the organization | +**email** | **String** | Email address for the organization | **language** | **String** | Language for identifying localization information | [optional] **timezone** | **String** | Request timezone of the client | [optional] diff --git a/docs/MasterAccountApi.md b/docs/MasterAccountApi.md index 8414287..42f34f9 100644 --- a/docs/MasterAccountApi.md +++ b/docs/MasterAccountApi.md @@ -6,6 +6,7 @@ Method | HTTP request | Description ------------- | ------------- | ------------- [**corporate_master_account_get**](MasterAccountApi.md#corporate_master_account_get) | **GET** /corporate/masterAccount | Get the details of requested master account [**corporate_sub_account_get**](MasterAccountApi.md#corporate_sub_account_get) | **GET** /corporate/subAccount | Get the list of all the sub-accounts of the master account. +[**corporate_sub_account_id_delete**](MasterAccountApi.md#corporate_sub_account_id_delete) | **DELETE** /corporate/subAccount/{id} | Delete a sub-account [**corporate_sub_account_id_get**](MasterAccountApi.md#corporate_sub_account_id_get) | **GET** /corporate/subAccount/{id} | Get sub-account details [**corporate_sub_account_id_plan_put**](MasterAccountApi.md#corporate_sub_account_id_plan_put) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan [**corporate_sub_account_post**](MasterAccountApi.md#corporate_sub_account_post) | **POST** /corporate/subAccount | Create a new sub-account under a master account. @@ -127,6 +128,62 @@ Name | Type | Description | Notes +# **corporate_sub_account_id_delete** +> corporate_sub_account_id_delete(id) + +Delete a sub-account + +### Example +```ruby +# load the gem +require 'sib-api-v3-sdk' +# setup authorization +SibApiV3Sdk.configure do |config| + # Configure API key authorization: api-key + config.api_key['api-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['api-key'] = 'Bearer' + + # Configure API key authorization: partner-key + config.api_key['partner-key'] = 'YOUR API KEY' + # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil) + #config.api_key_prefix['partner-key'] = 'Bearer' +end + +api_instance = SibApiV3Sdk::MasterAccountApi.new + +id = 789 # Integer | Id of the sub-account organization to be deleted + + +begin + #Delete a sub-account + api_instance.corporate_sub_account_id_delete(id) +rescue SibApiV3Sdk::ApiError => e + puts "Exception when calling MasterAccountApi->corporate_sub_account_id_delete: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **Integer**| Id of the sub-account organization to be deleted | + +### Return type + +nil (empty response body) + +### Authorization + +[api-key](../README.md#api-key), [partner-key](../README.md#partner-key) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + + + # **corporate_sub_account_id_get** > SubAccountDetailsResponse corporate_sub_account_id_get(id) diff --git a/docs/RequestContactImport.md b/docs/RequestContactImport.md index a3ea879..3e0db47 100644 --- a/docs/RequestContactImport.md +++ b/docs/RequestContactImport.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**file_url** | **String** | Mandatory if fileBody is not defined. URL of the file to be imported (no local file). Possible file formats: .txt, .csv | [optional] -**file_body** | **String** | Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes. Maximum allowed file body size is 10MB . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files. | [optional] +**file_url** | **String** | Mandatory if fileBody or jsonBody is not defined. URL of the file to be imported (no local file). Possible file formats: .txt, .csv, .json | [optional] +**file_body** | **String** | Mandatory if fileUrl and jsonBody is not defined. CSV content to be imported. Use semicolon to separate multiple attributes. Maximum allowed file body size is 10MB . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files. | [optional] +**json_body** | **Array<Hash<String, Object>>** | **Mandatory if fileUrl and fileBody is not defined.** JSON content to be imported. **Maximum allowed json body size is 10MB** . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of json body size while parsing. Please use fileUrl instead to import bigger files. | [optional] **list_ids** | **Array<Integer>** | Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7]. | [optional] **notify_url** | **String** | URL that will be called once the import process is finished. For reference, https://help.sendinblue.com/hc/en-us/articles/360007666479 | [optional] **new_list** | [**RequestContactImportNewList**](RequestContactImportNewList.md) | | [optional] diff --git a/docs/SendSmtpEmail.md b/docs/SendSmtpEmail.md index 997fe4c..1947609 100644 --- a/docs/SendSmtpEmail.md +++ b/docs/SendSmtpEmail.md @@ -11,11 +11,11 @@ Name | Type | Description | Notes **text_content** | **String** | Plain Text body of the message ( Ignored if 'templateId' is passed ) | [optional] **subject** | **String** | Subject of the message. Mandatory if 'templateId' is not passed | [optional] **reply_to** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional] -**attachment** | [**Array<SendSmtpEmailAttachment>**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] +**attachment** | [**Array<SendSmtpEmailAttachment>**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) | [optional] **headers** | **Object** | Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\", \"idempotencyKey\":\"abc-123\"}`. | [optional] -**template_id** | **Integer** | Id of the template. Mandatory if messageVersions are passed | [optional] +**template_id** | **Integer** | Id of the template. | [optional] **params** | **Object** | Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. | [optional] -**message_versions** | [**Array<SendSmtpEmailMessageVersions>**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional] +**message_versions** | [**Array<SendSmtpEmailMessageVersions>**](SendSmtpEmailMessageVersions.md) | You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails | [optional] **tags** | **Array<String>** | Tag your emails to find them more easily | [optional] diff --git a/docs/TaskTypes.md b/docs/TaskTypes.md new file mode 100644 index 0000000..d4903da --- /dev/null +++ b/docs/TaskTypes.md @@ -0,0 +1,10 @@ +# SibApiV3Sdk::TaskTypes + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | Id of task type | [optional] +**icon** | **String** | Icon of task type | [optional] +**title** | **String** | Title of task type | [optional] + + diff --git a/lib/sib-api-v3-sdk.rb b/lib/sib-api-v3-sdk.rb index 9f3d185..862ba0b 100644 --- a/lib/sib-api-v3-sdk.rb +++ b/lib/sib-api-v3-sdk.rb @@ -215,6 +215,7 @@ require 'sib-api-v3-sdk/models/sub_accounts_response_sub_accounts' require 'sib-api-v3-sdk/models/task' require 'sib-api-v3-sdk/models/task_reminder' +require 'sib-api-v3-sdk/models/task_types' require 'sib-api-v3-sdk/models/update_attribute' require 'sib-api-v3-sdk/models/update_attribute_enumeration' require 'sib-api-v3-sdk/models/update_batch_contacts' diff --git a/lib/sib-api-v3-sdk/api/crm_api.rb b/lib/sib-api-v3-sdk/api/crm_api.rb index 4c9b95b..b729ee1 100644 --- a/lib/sib-api-v3-sdk/api/crm_api.rb +++ b/lib/sib-api-v3-sdk/api/crm_api.rb @@ -30,7 +30,7 @@ def setUserAgent(user_agent) end - # Get file data by id. + # Get file details. # @param id File id to get file data. # @param [Hash] opts the optional parameters # @return [FileData] @@ -39,7 +39,7 @@ def crm_files_id_data_get(id, opts = {}) data end - # Get file data by id. + # Get file details # @param id File id to get file data. # @param [Hash] opts the optional parameters # @return [Array<(FileData, Fixnum, Hash)>] FileData data, response status code and response headers @@ -82,7 +82,7 @@ def crm_files_id_data_get_with_http_info(id, opts = {}) end return data, status_code, headers end - # Delete file. + # Delete a file # @param id File id to delete. # @param [Hash] opts the optional parameters # @return [nil] @@ -91,7 +91,7 @@ def crm_files_id_delete(id, opts = {}) nil end - # Delete file. + # Delete a file # @param id File id to delete. # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers @@ -133,7 +133,7 @@ def crm_files_id_delete_with_http_info(id, opts = {}) end return data, status_code, headers end - # Download file by id. + # Download a file # @param id File id to download. # @param [Hash] opts the optional parameters # @return [nil] @@ -142,7 +142,7 @@ def crm_files_id_get(id, opts = {}) nil end - # Download file by id. + # Download a file # @param id File id to download. # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers @@ -184,7 +184,7 @@ def crm_files_id_get_with_http_info(id, opts = {}) end return data, status_code, headers end - # Upload and create file. + # Upload a file # @param file File data to create a file. # @param [Hash] opts the optional parameters # @option opts [Array] :deals_ids Deal ids linked to a file @@ -194,7 +194,7 @@ def crm_files_post(file, opts = {}) data end - # Upload and create file. + # Upload a file # @param file File data to create a file. # @param [Hash] opts the optional parameters # @option opts [Array] :deals_ids Deal ids linked to a file @@ -240,7 +240,7 @@ def crm_files_post_with_http_info(file, opts = {}) end return data, status_code, headers end - # Delete Note by ID + # Delete a note # @param id Note ID to delete # @param [Hash] opts the optional parameters # @return [nil] @@ -249,7 +249,7 @@ def crm_notes_id_delete(id, opts = {}) nil end - # Delete Note by ID + # Delete a note # @param id Note ID to delete # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers @@ -291,7 +291,7 @@ def crm_notes_id_delete_with_http_info(id, opts = {}) end return data, status_code, headers end - # Get one Note by ID + # Get a note # @param id Note ID to get # @param [Hash] opts the optional parameters # @return [Note] @@ -300,7 +300,7 @@ def crm_notes_id_get(id, opts = {}) data end - # Get one Note by ID + # Get a note # @param id Note ID to get # @param [Hash] opts the optional parameters # @return [Array<(Note, Fixnum, Hash)>] Note data, response status code and response headers @@ -401,7 +401,7 @@ def crm_notes_id_patch_with_http_info(id, body, opts = {}) end return data, status_code, headers end - # Create a new Note + # Create a note # @param body Note data to create a note. # @param [Hash] opts the optional parameters # @return [Note] @@ -410,7 +410,7 @@ def crm_notes_post(body, opts = {}) data end - # Create a new Note + # Create a note # @param body Note data to create a note. # @param [Hash] opts the optional parameters # @return [Array<(Note, Fixnum, Hash)>] Note data, response status code and response headers @@ -453,7 +453,7 @@ def crm_notes_post_with_http_info(body, opts = {}) end return data, status_code, headers end - # Delete Task by id + # Delete a task # @param id # @param [Hash] opts the optional parameters # @return [nil] @@ -462,7 +462,7 @@ def crm_tasks_id_delete(id, opts = {}) nil end - # Delete Task by id + # Delete a task # @param id # @param [Hash] opts the optional parameters # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers @@ -504,7 +504,7 @@ def crm_tasks_id_delete_with_http_info(id, opts = {}) end return data, status_code, headers end - # Get one Task by ID + # Get a task # @param id # @param [Hash] opts the optional parameters # @return [Task] @@ -513,7 +513,7 @@ def crm_tasks_id_get(id, opts = {}) data end - # Get one Task by ID + # Get a task # @param id # @param [Hash] opts the optional parameters # @return [Array<(Task, Fixnum, Hash)>] Task data, response status code and response headers @@ -556,7 +556,7 @@ def crm_tasks_id_get_with_http_info(id, opts = {}) end return data, status_code, headers end - # Update partial existing task + # Update a task # @param id # @param body Updated task details. # @param [Hash] opts the optional parameters @@ -566,7 +566,7 @@ def crm_tasks_id_patch(id, body, opts = {}) data end - # Update partial existing task + # Update a task # @param id # @param body Updated task details. # @param [Hash] opts the optional parameters @@ -614,7 +614,7 @@ def crm_tasks_id_patch_with_http_info(id, body, opts = {}) end return data, status_code, headers end - # Create a new Task + # Create a task # @param body Task name. # @param [Hash] opts the optional parameters # @return [Task] @@ -623,7 +623,7 @@ def crm_tasks_post(body, opts = {}) data end - # Create a new Task + # Create a task # @param body Task name. # @param [Hash] opts the optional parameters # @return [Array<(Task, Fixnum, Hash)>] Task data, response status code and response headers @@ -666,5 +666,51 @@ def crm_tasks_post_with_http_info(body, opts = {}) end return data, status_code, headers end + # Get all task types + # @param [Hash] opts the optional parameters + # @return [TaskTypes] + def crm_tasktypes_get(opts = {}) + data, _status_code, _headers = crm_tasktypes_get_with_http_info(opts) + data + end + + # Get all task types + # @param [Hash] opts the optional parameters + # @return [Array<(TaskTypes, Fixnum, Hash)>] TaskTypes data, response status code and response headers + def crm_tasktypes_get_with_http_info(opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: CRMApi.crm_tasktypes_get ...' + end + # resource path + local_var_path = '/crm/tasktypes' + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['api-key', 'partner-key'] + data, status_code, headers = @api_client.call_api(:GET, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'TaskTypes') + if @api_client.config.debugging + @api_client.config.logger.debug "API called: CRMApi#crm_tasktypes_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end end end diff --git a/lib/sib-api-v3-sdk/api/master_account_api.rb b/lib/sib-api-v3-sdk/api/master_account_api.rb index 1f95120..343c60a 100644 --- a/lib/sib-api-v3-sdk/api/master_account_api.rb +++ b/lib/sib-api-v3-sdk/api/master_account_api.rb @@ -140,6 +140,57 @@ def corporate_sub_account_get_with_http_info(offset, limit, opts = {}) end return data, status_code, headers end + # Delete a sub-account + # @param id Id of the sub-account organization to be deleted + # @param [Hash] opts the optional parameters + # @return [nil] + def corporate_sub_account_id_delete(id, opts = {}) + corporate_sub_account_id_delete_with_http_info(id, opts) + nil + end + + # Delete a sub-account + # @param id Id of the sub-account organization to be deleted + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def corporate_sub_account_id_delete_with_http_info(id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: MasterAccountApi.corporate_sub_account_id_delete ...' + end + # verify the required parameter 'id' is set + if @api_client.config.client_side_validation && id.nil? + fail ArgumentError, "Missing the required parameter 'id' when calling MasterAccountApi.corporate_sub_account_id_delete" + end + # resource path + local_var_path = '/corporate/subAccount/{id}'.sub('{' + 'id' + '}', id.to_s) + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) + + # form parameters + form_params = {} + + # http body (model) + post_body = nil + auth_names = ['api-key', 'partner-key'] + data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: MasterAccountApi#corporate_sub_account_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end # Get sub-account details # This endpoint will provide the details of specified sub-account organization # @param id Id of the sub-account organization diff --git a/lib/sib-api-v3-sdk/api/transactional_emails_api.rb b/lib/sib-api-v3-sdk/api/transactional_emails_api.rb index c4e64ce..879daf1 100644 --- a/lib/sib-api-v3-sdk/api/transactional_emails_api.rb +++ b/lib/sib-api-v3-sdk/api/transactional_emails_api.rb @@ -438,8 +438,8 @@ def get_email_event_report_with_http_info(opts = {}) fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling TransactionalEmailsApi.get_email_event_report, must be smaller than or equal to 100.' end - if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error'].include?(opts[:'event']) - fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed, error' + if @api_client.config.client_side_validation && opts[:'event'] && !['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error', 'loadedByProxy'].include?(opts[:'event']) + fail ArgumentError, 'invalid value for "event", must be one of bounces, hardBounces, softBounces, delivered, spam, requests, opened, clicks, invalid, deferred, blocked, unsubscribed, error, loadedByProxy' end if @api_client.config.client_side_validation && opts[:'sort'] && !['asc', 'desc'].include?(opts[:'sort']) fail ArgumentError, 'invalid value for "sort", must be one of asc, desc' diff --git a/lib/sib-api-v3-sdk/models/create_sub_account.rb b/lib/sib-api-v3-sdk/models/create_sub_account.rb index f51f2cb..287fd51 100644 --- a/lib/sib-api-v3-sdk/models/create_sub_account.rb +++ b/lib/sib-api-v3-sdk/models/create_sub_account.rb @@ -17,6 +17,9 @@ class CreateSubAccount # Name of the organization attr_accessor :company_name + # Email address for the organization + attr_accessor :email + # Language for identifying localization information attr_accessor :language @@ -49,6 +52,7 @@ def valid?(value) def self.attribute_map { :'company_name' => :'companyName', + :'email' => :'email', :'language' => :'language', :'timezone' => :'timezone' } @@ -58,6 +62,7 @@ def self.attribute_map def self.swagger_types { :'company_name' => :'String', + :'email' => :'String', :'language' => :'String', :'timezone' => :'String' } @@ -75,6 +80,10 @@ def initialize(attributes = {}) self.company_name = attributes[:'companyName'] end + if attributes.has_key?(:'email') + self.email = attributes[:'email'] + end + if attributes.has_key?(:'language') self.language = attributes[:'language'] end @@ -92,6 +101,10 @@ def list_invalid_properties invalid_properties.push('invalid value for "company_name", company_name cannot be nil.') end + if @email.nil? + invalid_properties.push('invalid value for "email", email cannot be nil.') + end + invalid_properties end @@ -99,6 +112,7 @@ def list_invalid_properties # @return true if the model is valid def valid? return false if @company_name.nil? + return false if @email.nil? language_validator = EnumAttributeValidator.new('String', ['en', 'fr', 'it', 'es', 'pt', 'de']) return false unless language_validator.valid?(@language) true @@ -120,6 +134,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && company_name == o.company_name && + email == o.email && language == o.language && timezone == o.timezone end @@ -133,7 +148,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [company_name, language, timezone].hash + [company_name, email, language, timezone].hash end # Builds the object from hash diff --git a/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb b/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb index 3f55de4..47c614a 100644 --- a/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb +++ b/lib/sib-api-v3-sdk/models/get_email_event_report_events.rb @@ -186,7 +186,7 @@ def valid? return false if @date.nil? return false if @message_id.nil? return false if @event.nil? - event_validator = EnumAttributeValidator.new('String', ['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error']) + event_validator = EnumAttributeValidator.new('String', ['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error', 'loadedByProxy']) return false unless event_validator.valid?(@event) true end @@ -194,7 +194,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] event Object to be assigned def event=(event) - validator = EnumAttributeValidator.new('String', ['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error']) + validator = EnumAttributeValidator.new('String', ['bounces', 'hardBounces', 'softBounces', 'delivered', 'spam', 'requests', 'opened', 'clicks', 'invalid', 'deferred', 'blocked', 'unsubscribed', 'error', 'loadedByProxy']) unless validator.valid?(event) fail ArgumentError, 'invalid value for "event", must be one of #{validator.allowable_values}.' end diff --git a/lib/sib-api-v3-sdk/models/request_contact_import.rb b/lib/sib-api-v3-sdk/models/request_contact_import.rb index ac3d031..82a269e 100644 --- a/lib/sib-api-v3-sdk/models/request_contact_import.rb +++ b/lib/sib-api-v3-sdk/models/request_contact_import.rb @@ -14,12 +14,15 @@ module SibApiV3Sdk class RequestContactImport - # Mandatory if fileBody is not defined. URL of the file to be imported (no local file). Possible file formats: .txt, .csv + # Mandatory if fileBody or jsonBody is not defined. URL of the file to be imported (no local file). Possible file formats: .txt, .csv, .json attr_accessor :file_url - # Mandatory if fileUrl is not defined. CSV content to be imported. Use semicolon to separate multiple attributes. Maximum allowed file body size is 10MB . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files. + # Mandatory if fileUrl and jsonBody is not defined. CSV content to be imported. Use semicolon to separate multiple attributes. Maximum allowed file body size is 10MB . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of file body size while parsing. Please use fileUrl instead to import bigger files. attr_accessor :file_body + # **Mandatory if fileUrl and fileBody is not defined.** JSON content to be imported. **Maximum allowed json body size is 10MB** . However we recommend a safe limit of around 8 MB to avoid the issues caused due to increase of json body size while parsing. Please use fileUrl instead to import bigger files. + attr_accessor :json_body + # Mandatory if newList is not defined. Ids of the lists in which the contacts shall be imported. For example, [2, 4, 7]. attr_accessor :list_ids @@ -45,6 +48,7 @@ def self.attribute_map { :'file_url' => :'fileUrl', :'file_body' => :'fileBody', + :'json_body' => :'jsonBody', :'list_ids' => :'listIds', :'notify_url' => :'notifyUrl', :'new_list' => :'newList', @@ -60,6 +64,7 @@ def self.swagger_types { :'file_url' => :'String', :'file_body' => :'String', + :'json_body' => :'Array>', :'list_ids' => :'Array', :'notify_url' => :'String', :'new_list' => :'RequestContactImportNewList', @@ -86,6 +91,12 @@ def initialize(attributes = {}) self.file_body = attributes[:'fileBody'] end + if attributes.has_key?(:'jsonBody') + if (value = attributes[:'jsonBody']).is_a?(Array) + self.json_body = value + end + end + if attributes.has_key?(:'listIds') if (value = attributes[:'listIds']).is_a?(Array) self.list_ids = value @@ -145,6 +156,7 @@ def ==(o) self.class == o.class && file_url == o.file_url && file_body == o.file_body && + json_body == o.json_body && list_ids == o.list_ids && notify_url == o.notify_url && new_list == o.new_list && @@ -163,7 +175,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [file_url, file_body, list_ids, notify_url, new_list, email_blacklist, sms_blacklist, update_existing_contacts, empty_contacts_attributes].hash + [file_url, file_body, json_body, list_ids, notify_url, new_list, email_blacklist, sms_blacklist, update_existing_contacts, empty_contacts_attributes].hash end # Builds the object from hash diff --git a/lib/sib-api-v3-sdk/models/send_smtp_email.rb b/lib/sib-api-v3-sdk/models/send_smtp_email.rb index dc4279e..84fda9d 100644 --- a/lib/sib-api-v3-sdk/models/send_smtp_email.rb +++ b/lib/sib-api-v3-sdk/models/send_smtp_email.rb @@ -36,19 +36,19 @@ class SendSmtpEmail attr_accessor :reply_to - # Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv and pkpass ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) + # Pass the absolute URL (no local file) or the base64 content of the attachment along with the attachment name (Mandatory if attachment content is passed). For example, `[{\"url\":\"https://attachment.domain.com/myAttachmentFromUrl.jpg\", \"name\":\"myAttachmentFromUrl.jpg\"}, {\"content\":\"base64 example content\", \"name\":\"myAttachmentFromBase64.jpg\"}]`. Allowed extensions for attachment file: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub, eps, odt, mp3, m4a, m4v, wma, ogg, flac, wav, aif, aifc, aiff, mp4, mov, avi, mkv, mpeg, mpg, wmv, pkpass and xlsm ( If 'templateId' is passed and is in New Template Language format then both attachment url and content are accepted. If template is in Old template Language format, then 'attachment' is ignored ) attr_accessor :attachment # Pass the set of custom headers (not the standard headers) that shall be sent along the mail headers in the original email. 'sender.ip' header can be set (only for dedicated ip users) to mention the IP to be used for sending transactional emails. Headers are allowed in `This-Case-Only` (i.e. words separated by hyphen with first letter of each word in capital letter), they will be converted to such case styling if not in this format in the request payload. For example, `{\"sender.ip\":\"1.2.3.4\", \"X-Mailin-custom\":\"some_custom_header\", \"idempotencyKey\":\"abc-123\"}`. attr_accessor :headers - # Id of the template. Mandatory if messageVersions are passed + # Id of the template. attr_accessor :template_id # Pass the set of attributes to customize the template. For example, {\"FNAME\":\"Joe\", \"LNAME\":\"Doe\"}. It's considered only if template is in New Template Language format. attr_accessor :params - # You can customize and send out multiple versions of a templateId. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 200. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. This feature is currently in its beta version. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails + # You can customize and send out multiple versions of a mail. templateId can be customized only if global parameter contains templateId. htmlContent and textContent can be customized only if any of the two, htmlContent or textContent, is present in global parameters. Some global parameters such as **to(mandatory), bcc, cc, replyTo, subject** can also be customized specific to each version. Total number of recipients in one API request must not exceed 2000. However, you can still pass upto 99 recipients maximum in one message version. The size of individual params in all the messageVersions shall not exceed 100 KB limit and that of cumulative params shall not exceed 1000 KB. You can follow this **step-by-step guide** on how to use **messageVersions** to batch send emails - https://developers.sendinblue.com/docs/batch-send-transactional-emails attr_accessor :message_versions # Tag your emails to find them more easily diff --git a/lib/sib-api-v3-sdk/models/task_types.rb b/lib/sib-api-v3-sdk/models/task_types.rb new file mode 100644 index 0000000..86b0004 --- /dev/null +++ b/lib/sib-api-v3-sdk/models/task_types.rb @@ -0,0 +1,206 @@ +=begin +#SendinBlue API + +#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | + +OpenAPI spec version: 3.0.0 +Contact: contact@sendinblue.com +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.19 + +=end + +require 'date' + +module SibApiV3Sdk + # Task types details + class TaskTypes + # Id of task type + attr_accessor :id + + # Icon of task type + attr_accessor :icon + + # Title of task type + attr_accessor :title + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'id' => :'id', + :'icon' => :'icon', + :'title' => :'title' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'id' => :'String', + :'icon' => :'String', + :'title' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'id') + self.id = attributes[:'id'] + end + + if attributes.has_key?(:'icon') + self.icon = attributes[:'icon'] + end + + if attributes.has_key?(:'title') + self.title = attributes[:'title'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + id == o.id && + icon == o.icon && + title == o.title + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [id, icon, title].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = SibApiV3Sdk.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end +end diff --git a/lib/sib-api-v3-sdk/version.rb b/lib/sib-api-v3-sdk/version.rb index 161dc64..bfe3688 100644 --- a/lib/sib-api-v3-sdk/version.rb +++ b/lib/sib-api-v3-sdk/version.rb @@ -11,5 +11,5 @@ =end module SibApiV3Sdk - VERSION = "8.0.0" + VERSION = "8.5.0" end diff --git a/spec/api/crm_api_spec.rb b/spec/api/crm_api_spec.rb index a0d0467..a80bb8c 100644 --- a/spec/api/crm_api_spec.rb +++ b/spec/api/crm_api_spec.rb @@ -33,7 +33,7 @@ end # unit tests for crm_files_id_data_get - # Get file data by id. + # Get file details # @param id File id to get file data. # @param [Hash] opts the optional parameters # @return [FileData] @@ -44,7 +44,7 @@ end # unit tests for crm_files_id_delete - # Delete file. + # Delete a file # @param id File id to delete. # @param [Hash] opts the optional parameters # @return [nil] @@ -55,7 +55,7 @@ end # unit tests for crm_files_id_get - # Download file by id. + # Download a file # @param id File id to download. # @param [Hash] opts the optional parameters # @return [nil] @@ -66,7 +66,7 @@ end # unit tests for crm_files_post - # Upload and create file. + # Upload a file # @param file File data to create a file. # @param [Hash] opts the optional parameters # @option opts [Array] :deals_ids Deal ids linked to a file @@ -78,7 +78,7 @@ end # unit tests for crm_notes_id_delete - # Delete Note by ID + # Delete a note # @param id Note ID to delete # @param [Hash] opts the optional parameters # @return [nil] @@ -89,7 +89,7 @@ end # unit tests for crm_notes_id_get - # Get one Note by ID + # Get a note # @param id Note ID to get # @param [Hash] opts the optional parameters # @return [Note] @@ -112,7 +112,7 @@ end # unit tests for crm_notes_post - # Create a new Note + # Create a note # @param body Note data to create a note. # @param [Hash] opts the optional parameters # @return [Note] @@ -123,7 +123,7 @@ end # unit tests for crm_tasks_id_delete - # Delete Task by id + # Delete a task # @param id # @param [Hash] opts the optional parameters # @return [nil] @@ -134,7 +134,7 @@ end # unit tests for crm_tasks_id_get - # Get one Task by ID + # Get a task # @param id # @param [Hash] opts the optional parameters # @return [Task] @@ -145,7 +145,7 @@ end # unit tests for crm_tasks_id_patch - # Update partial existing task + # Update a task # @param id # @param body Updated task details. # @param [Hash] opts the optional parameters @@ -157,7 +157,7 @@ end # unit tests for crm_tasks_post - # Create a new Task + # Create a task # @param body Task name. # @param [Hash] opts the optional parameters # @return [Task] @@ -167,4 +167,14 @@ end end + # unit tests for crm_tasktypes_get + # Get all task types + # @param [Hash] opts the optional parameters + # @return [TaskTypes] + describe 'crm_tasktypes_get test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/api/master_account_api_spec.rb b/spec/api/master_account_api_spec.rb index 3b63b37..f3be164 100644 --- a/spec/api/master_account_api_spec.rb +++ b/spec/api/master_account_api_spec.rb @@ -56,6 +56,17 @@ end end + # unit tests for corporate_sub_account_id_delete + # Delete a sub-account + # @param id Id of the sub-account organization to be deleted + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'corporate_sub_account_id_delete test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for corporate_sub_account_id_get # Get sub-account details # This endpoint will provide the details of specified sub-account organization diff --git a/spec/models/create_sub_account_spec.rb b/spec/models/create_sub_account_spec.rb index ea25789..03268d5 100644 --- a/spec/models/create_sub_account_spec.rb +++ b/spec/models/create_sub_account_spec.rb @@ -38,6 +38,12 @@ end end + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "language"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/get_email_event_report_events_spec.rb b/spec/models/get_email_event_report_events_spec.rb index 416adbf..96762ab 100644 --- a/spec/models/get_email_event_report_events_spec.rb +++ b/spec/models/get_email_event_report_events_spec.rb @@ -59,7 +59,7 @@ describe 'test attribute "event"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["bounces", "hardBounces", "softBounces", "delivered", "spam", "requests", "opened", "clicks", "invalid", "deferred", "blocked", "unsubscribed", "error", "loadedByProxy"]) # validator.allowable_values.each do |value| # expect { @instance.event = value }.not_to raise_error # end diff --git a/spec/models/request_contact_import_spec.rb b/spec/models/request_contact_import_spec.rb index d0984a1..9808742 100644 --- a/spec/models/request_contact_import_spec.rb +++ b/spec/models/request_contact_import_spec.rb @@ -44,6 +44,12 @@ end end + describe 'test attribute "json_body"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "list_ids"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/task_types_spec.rb b/spec/models/task_types_spec.rb new file mode 100644 index 0000000..c273dd0 --- /dev/null +++ b/spec/models/task_types_spec.rb @@ -0,0 +1,53 @@ +=begin +#SendinBlue API + +#SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable | + +OpenAPI spec version: 3.0.0 +Contact: contact@sendinblue.com +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.19 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for SibApiV3Sdk::TaskTypes +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'TaskTypes' do + before do + # run before each test + @instance = SibApiV3Sdk::TaskTypes.new + end + + after do + # run after each test + end + + describe 'test an instance of TaskTypes' do + it 'should create an instance of TaskTypes' do + expect(@instance).to be_instance_of(SibApiV3Sdk::TaskTypes) + end + end + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "icon"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "title"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end From 9fa9d7236a3cd7657c65cabcb54bc2559231a5e2 Mon Sep 17 00:00:00 2001 From: nagendraSIB Date: Wed, 2 Mar 2022 13:22:35 +0530 Subject: [PATCH 2/4] update ruby wrapper --- git_push.sh | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 git_push.sh diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..89eb49e --- /dev/null +++ b/git_push.sh @@ -0,0 +1,55 @@ +#!/bin/sh +# +# Generated by: https://github.com/swagger-api/swagger-codegen.git +# +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + From 2b18b417d387c2540f518b7e9e1e02bd970e3aeb Mon Sep 17 00:00:00 2001 From: nagendraSIB Date: Wed, 2 Mar 2022 17:38:50 +0530 Subject: [PATCH 3/4] delete unwanted file --- git_push.sh | 55 ----------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 git_push.sh diff --git a/git_push.sh b/git_push.sh deleted file mode 100644 index 89eb49e..0000000 --- a/git_push.sh +++ /dev/null @@ -1,55 +0,0 @@ -#!/bin/sh -# -# Generated by: https://github.com/swagger-api/swagger-codegen.git -# -# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ -# -# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" - -git_user_id=$1 -git_repo_id=$2 -release_note=$3 - -if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" - echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" -fi - -if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" - echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" -fi - -if [ "$release_note" = "" ]; then - release_note="Minor update" - echo "[INFO] No command line input provided. Set \$release_note to $release_note" -fi - -# Initialize the local directory as a Git repository -git init - -# Adds the files in the local repository and stages them for commit. -git add . - -# Commits the tracked changes and prepares them to be pushed to a remote repository. -git commit -m "$release_note" - -# Sets the new remote -git_remote=`git remote` -if [ "$git_remote" = "" ]; then # git remote not defined - - if [ "$GIT_TOKEN" = "" ]; then - echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git - else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git - fi - -fi - -git pull origin master - -# Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" -git push origin master 2>&1 | grep -v 'To https' - From c7cb2c285dc7f4f894bab287ad6dc2f2d5bf0430 Mon Sep 17 00:00:00 2001 From: nagendraSIB Date: Wed, 2 Mar 2022 18:05:48 +0530 Subject: [PATCH 4/4] version update --- lib/sib-api-v3-sdk/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sib-api-v3-sdk/version.rb b/lib/sib-api-v3-sdk/version.rb index bfe3688..b9235be 100644 --- a/lib/sib-api-v3-sdk/version.rb +++ b/lib/sib-api-v3-sdk/version.rb @@ -11,5 +11,5 @@ =end module SibApiV3Sdk - VERSION = "8.5.0" + VERSION = "8.1.0" end