Skip to content

Commit 5d08398

Browse files
Merge pull request #258 from sendinblue/WF-2702
WF-2702 : sdk updated to latest features
2 parents 2f163a3 + 879c26c commit 5d08398

File tree

82 files changed

+9217
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+9217
-144
lines changed

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ Class | Method | HTTP request | Description
158158
*DealsApi* | [**crmDealsLinkUnlinkIdPatch**](docs/Api/DealsApi.md#crmdealslinkunlinkidpatch) | **PATCH** /crm/deals/link-unlink/{id} | Link and Unlink a deal with contacts and companies
159159
*DealsApi* | [**crmDealsPost**](docs/Api/DealsApi.md#crmdealspost) | **POST** /crm/deals | Create a deal
160160
*DealsApi* | [**crmPipelineDetailsGet**](docs/Api/DealsApi.md#crmpipelinedetailsget) | **GET** /crm/pipeline/details | Get pipeline stages
161-
*EcommerceApi* | [**createBatchOrder**](docs/Api/EcommerceApi.md#createbatchorder) | **POST** /orders/status/batch | Maintains a batch of orders
162-
*EcommerceApi* | [**createOrder**](docs/Api/EcommerceApi.md#createorder) | **POST** /orders/status | Maintains every transactional status of the order
163-
*EcommerceApi* | [**createUpdateBatchCategory**](docs/Api/EcommerceApi.md#createupdatebatchcategory) | **POST** /categories/batch | Create the categories in a batch
164-
*EcommerceApi* | [**createUpdateBatchProducts**](docs/Api/EcommerceApi.md#createupdatebatchproducts) | **POST** /products/batch | Creates the products in a batch
161+
*EcommerceApi* | [**createBatchOrder**](docs/Api/EcommerceApi.md#createbatchorder) | **POST** /orders/status/batch | Create orders in batch
162+
*EcommerceApi* | [**createOrder**](docs/Api/EcommerceApi.md#createorder) | **POST** /orders/status | Managing the status of the order
163+
*EcommerceApi* | [**createUpdateBatchCategory**](docs/Api/EcommerceApi.md#createupdatebatchcategory) | **POST** /categories/batch | Create categories in batch
164+
*EcommerceApi* | [**createUpdateBatchProducts**](docs/Api/EcommerceApi.md#createupdatebatchproducts) | **POST** /products/batch | Create products in batch
165165
*EcommerceApi* | [**createUpdateCategory**](docs/Api/EcommerceApi.md#createupdatecategory) | **POST** /categories | Create/Update a category
166166
*EcommerceApi* | [**createUpdateProduct**](docs/Api/EcommerceApi.md#createupdateproduct) | **POST** /products | Create/Update a product
167-
*EcommerceApi* | [**ecommerceActivatePost**](docs/Api/EcommerceApi.md#ecommerceactivatepost) | **POST** /ecommerce/activate | **Fulfills the eCommerce pre-requisites**
167+
*EcommerceApi* | [**ecommerceActivatePost**](docs/Api/EcommerceApi.md#ecommerceactivatepost) | **POST** /ecommerce/activate | Activate the eCommerce app
168168
*EcommerceApi* | [**getCategories**](docs/Api/EcommerceApi.md#getcategories) | **GET** /categories | Return all your categories
169169
*EcommerceApi* | [**getCategoryInfo**](docs/Api/EcommerceApi.md#getcategoryinfo) | **GET** /categories/{id} | Get a category details
170170
*EcommerceApi* | [**getProductInfo**](docs/Api/EcommerceApi.md#getproductinfo) | **GET** /products/{id} | Get a product's details
@@ -210,6 +210,7 @@ Class | Method | HTTP request | Description
210210
*MasterAccountApi* | [**corporateSubAccountIdDelete**](docs/Api/MasterAccountApi.md#corporatesubaccountiddelete) | **DELETE** /corporate/subAccount/{id} | Delete a sub-account
211211
*MasterAccountApi* | [**corporateSubAccountIdGet**](docs/Api/MasterAccountApi.md#corporatesubaccountidget) | **GET** /corporate/subAccount/{id} | Get sub-account details
212212
*MasterAccountApi* | [**corporateSubAccountIdPlanPut**](docs/Api/MasterAccountApi.md#corporatesubaccountidplanput) | **PUT** /corporate/subAccount/{id}/plan | Update sub-account plan
213+
*MasterAccountApi* | [**corporateSubAccountKeyPost**](docs/Api/MasterAccountApi.md#corporatesubaccountkeypost) | **POST** /corporate/subAccount/key | Create an API key for a sub-account
213214
*MasterAccountApi* | [**corporateSubAccountPost**](docs/Api/MasterAccountApi.md#corporatesubaccountpost) | **POST** /corporate/subAccount | Create a new sub-account under a master account.
214215
*MasterAccountApi* | [**corporateSubAccountSsoTokenPost**](docs/Api/MasterAccountApi.md#corporatesubaccountssotokenpost) | **POST** /corporate/subAccount/ssoToken | Generate SSO token to access Sendinblue
215216
*NotesApi* | [**crmNotesGet**](docs/Api/NotesApi.md#crmnotesget) | **GET** /crm/notes | Get all notes
@@ -284,11 +285,15 @@ Class | Method | HTTP request | Description
284285
*TransactionalSMSApi* | [**getTransacAggregatedSmsReport**](docs/Api/TransactionalSMSApi.md#gettransacaggregatedsmsreport) | **GET** /transactionalSMS/statistics/aggregatedReport | Get your SMS activity aggregated over a period of time
285286
*TransactionalSMSApi* | [**getTransacSmsReport**](docs/Api/TransactionalSMSApi.md#gettransacsmsreport) | **GET** /transactionalSMS/statistics/reports | Get your SMS activity aggregated per day
286287
*TransactionalSMSApi* | [**sendTransacSms**](docs/Api/TransactionalSMSApi.md#sendtransacsms) | **POST** /transactionalSMS/sms | Send SMS message to a mobile number
288+
*TransactionalWhatsAppApi* | [**getWhatsappEventReport**](docs/Api/TransactionalWhatsAppApi.md#getwhatsappeventreport) | **GET** /whatsapp/statistics/events | Get all your WhatsApp activity (unaggregated events)
289+
*TransactionalWhatsAppApi* | [**sendWhatsappMessage**](docs/Api/TransactionalWhatsAppApi.md#sendwhatsappmessage) | **POST** /whatsapp/sendMessage | Send a WhatsApp message
287290
*WebhooksApi* | [**createWebhook**](docs/Api/WebhooksApi.md#createwebhook) | **POST** /webhooks | Create a webhook
288291
*WebhooksApi* | [**deleteWebhook**](docs/Api/WebhooksApi.md#deletewebhook) | **DELETE** /webhooks/{webhookId} | Delete a webhook
289292
*WebhooksApi* | [**getWebhook**](docs/Api/WebhooksApi.md#getwebhook) | **GET** /webhooks/{webhookId} | Get a webhook details
290293
*WebhooksApi* | [**getWebhooks**](docs/Api/WebhooksApi.md#getwebhooks) | **GET** /webhooks | Get all webhooks
291294
*WebhooksApi* | [**updateWebhook**](docs/Api/WebhooksApi.md#updatewebhook) | **PUT** /webhooks/{webhookId} | Update a webhook
295+
*WhatsappCampaignsApi* | [**deleteWhatsappCampaign**](docs/Api/WhatsappCampaignsApi.md#deletewhatsappcampaign) | **DELETE** /whatsappCampaigns/{campaignId} | Delete a whatsapp campaign
296+
*WhatsappCampaignsApi* | [**getWhatsappCampaign**](docs/Api/WhatsappCampaignsApi.md#getwhatsappcampaign) | **GET** /whatsappCampaigns/{campaignId} | Get a whatsapp campaign
292297

293298

294299
## Documentation For Models
@@ -316,13 +321,17 @@ Class | Method | HTTP request | Description
316321
- [Body7](docs/Model/Body7.md)
317322
- [Body8](docs/Model/Body8.md)
318323
- [Body9](docs/Model/Body9.md)
324+
- [BodyVariablesItems](docs/Model/BodyVariablesItems.md)
319325
- [CompaniesList](docs/Model/CompaniesList.md)
320326
- [Company](docs/Model/Company.md)
321327
- [CompanyAttributes](docs/Model/CompanyAttributes.md)
322328
- [CompanyAttributesInner](docs/Model/CompanyAttributesInner.md)
329+
- [ComponentItems](docs/Model/ComponentItems.md)
323330
- [ConversationsMessage](docs/Model/ConversationsMessage.md)
324331
- [ConversationsMessageFile](docs/Model/ConversationsMessageFile.md)
325332
- [ConversationsMessageFileImageInfo](docs/Model/ConversationsMessageFileImageInfo.md)
333+
- [CreateApiKeyRequest](docs/Model/CreateApiKeyRequest.md)
334+
- [CreateApiKeyResponse](docs/Model/CreateApiKeyResponse.md)
326335
- [CreateAttribute](docs/Model/CreateAttribute.md)
327336
- [CreateAttributeEnumeration](docs/Model/CreateAttributeEnumeration.md)
328337
- [CreateCategoryModel](docs/Model/CreateCategoryModel.md)
@@ -478,9 +487,13 @@ Class | Method | HTTP request | Description
478487
- [GetTransacSmsReportReports](docs/Model/GetTransacSmsReportReports.md)
479488
- [GetWebhook](docs/Model/GetWebhook.md)
480489
- [GetWebhooks](docs/Model/GetWebhooks.md)
490+
- [GetWhatsappCampaignOverview](docs/Model/GetWhatsappCampaignOverview.md)
491+
- [GetWhatsappEventReport](docs/Model/GetWhatsappEventReport.md)
492+
- [GetWhatsappEventReportEvents](docs/Model/GetWhatsappEventReportEvents.md)
481493
- [InlineResponse200](docs/Model/InlineResponse200.md)
482494
- [InlineResponse201](docs/Model/InlineResponse201.md)
483495
- [InlineResponse2011](docs/Model/InlineResponse2011.md)
496+
- [InlineResponse2012](docs/Model/InlineResponse2012.md)
484497
- [ManageIp](docs/Model/ManageIp.md)
485498
- [MasterDetailsResponse](docs/Model/MasterDetailsResponse.md)
486499
- [MasterDetailsResponseBillingInfo](docs/Model/MasterDetailsResponseBillingInfo.md)
@@ -529,6 +542,7 @@ Class | Method | HTTP request | Description
529542
- [SendTestEmail](docs/Model/SendTestEmail.md)
530543
- [SendTestSms](docs/Model/SendTestSms.md)
531544
- [SendTransacSms](docs/Model/SendTransacSms.md)
545+
- [SendWhatsappMessage](docs/Model/SendWhatsappMessage.md)
532546
- [SsoTokenRequest](docs/Model/SsoTokenRequest.md)
533547
- [SubAccountDetailsResponse](docs/Model/SubAccountDetailsResponse.md)
534548
- [SubAccountDetailsResponsePlanInfo](docs/Model/SubAccountDetailsResponsePlanInfo.md)
@@ -576,6 +590,9 @@ Class | Method | HTTP request | Description
576590
- [GetSmsCampaign](docs/Model/GetSmsCampaign.md)
577591
- [GetAccount](docs/Model/GetAccount.md)
578592
- [GetEmailCampaign](docs/Model/GetEmailCampaign.md)
593+
- [VariablesItems](docs/Model/VariablesItems.md)
594+
- [WhatsappCampStats](docs/Model/WhatsappCampStats.md)
595+
- [WhatsappCampTemplate](docs/Model/WhatsappCampTemplate.md)
579596

580597

581598
## Documentation For Authorization

docs/Api/ContactsApi.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,8 +687,8 @@ $apiInstance = new SendinBlue\Client\Api\ContactsApi(
687687
$config
688688
);
689689
$identifier = "identifier_example"; // string | Email (urlencoded) OR ID of the contact OR its SMS attribute value
690-
$startDate = new \stdClass; // object | **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
691-
$endDate = new \stdClass; // object | **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
690+
$startDate = "startDate_example"; // string | **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate
691+
$endDate = "endDate_example"; // string | **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate.
692692

693693
try {
694694
$result = $apiInstance->getContactInfo($identifier, $startDate, $endDate);
@@ -704,8 +704,8 @@ try {
704704
Name | Type | Description | Notes
705705
------------- | ------------- | ------------- | -------------
706706
**identifier** | **string**| Email (urlencoded) OR ID of the contact OR its SMS attribute value |
707-
**startDate** | [**object**](../Model/.md)| **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
708-
**endDate** | [**object**](../Model/.md)| **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | [optional]
707+
**startDate** | **string**| **Mandatory if endDate is used.** Starting date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be lower than equal to endDate | [optional]
708+
**endDate** | **string**| **Mandatory if startDate is used.** Ending date (YYYY-MM-DD) of the statistic events specific to campaigns. Must be greater than equal to startDate. | [optional]
709709

710710
### Return type
711711

docs/Api/EcommerceApi.md

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ All URIs are relative to *https://api.sendinblue.com/v3*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7-
[**createBatchOrder**](EcommerceApi.md#createBatchOrder) | **POST** /orders/status/batch | Maintains a batch of orders
8-
[**createOrder**](EcommerceApi.md#createOrder) | **POST** /orders/status | Maintains every transactional status of the order
9-
[**createUpdateBatchCategory**](EcommerceApi.md#createUpdateBatchCategory) | **POST** /categories/batch | Create the categories in a batch
10-
[**createUpdateBatchProducts**](EcommerceApi.md#createUpdateBatchProducts) | **POST** /products/batch | Creates the products in a batch
7+
[**createBatchOrder**](EcommerceApi.md#createBatchOrder) | **POST** /orders/status/batch | Create orders in batch
8+
[**createOrder**](EcommerceApi.md#createOrder) | **POST** /orders/status | Managing the status of the order
9+
[**createUpdateBatchCategory**](EcommerceApi.md#createUpdateBatchCategory) | **POST** /categories/batch | Create categories in batch
10+
[**createUpdateBatchProducts**](EcommerceApi.md#createUpdateBatchProducts) | **POST** /products/batch | Create products in batch
1111
[**createUpdateCategory**](EcommerceApi.md#createUpdateCategory) | **POST** /categories | Create/Update a category
1212
[**createUpdateProduct**](EcommerceApi.md#createUpdateProduct) | **POST** /products | Create/Update a product
13-
[**ecommerceActivatePost**](EcommerceApi.md#ecommerceActivatePost) | **POST** /ecommerce/activate | **Fulfills the eCommerce pre-requisites**
13+
[**ecommerceActivatePost**](EcommerceApi.md#ecommerceActivatePost) | **POST** /ecommerce/activate | Activate the eCommerce app
1414
[**getCategories**](EcommerceApi.md#getCategories) | **GET** /categories | Return all your categories
1515
[**getCategoryInfo**](EcommerceApi.md#getCategoryInfo) | **GET** /categories/{id} | Get a category details
1616
[**getProductInfo**](EcommerceApi.md#getProductInfo) | **GET** /products/{id} | Get a product's details
@@ -20,7 +20,9 @@ Method | HTTP request | Description
2020
# **createBatchOrder**
2121
> createBatchOrder($orderBatch)
2222
23-
Maintains a batch of orders
23+
Create orders in batch
24+
25+
Create multiple orders at one time instead of one order at a time
2426

2527
### Example
2628
```php
@@ -76,7 +78,9 @@ void (empty response body)
7678
# **createOrder**
7779
> createOrder($order)
7880
79-
Maintains every transactional status of the order
81+
Managing the status of the order
82+
83+
Manages the transactional status of the order
8084

8185
### Example
8286
```php
@@ -132,7 +136,7 @@ void (empty response body)
132136
# **createUpdateBatchCategory**
133137
> \SendinBlue\Client\Model\CreateUpdateBatchCategoryModel createUpdateBatchCategory($createUpdateBatchCategory)
134138
135-
Create the categories in a batch
139+
Create categories in batch
136140

137141
### Example
138142
```php
@@ -189,7 +193,7 @@ Name | Type | Description | Notes
189193
# **createUpdateBatchProducts**
190194
> \SendinBlue\Client\Model\CreateUpdateBatchProductsModel createUpdateBatchProducts($createUpdateBatchProducts)
191195
192-
Creates the products in a batch
196+
Create products in batch
193197

194198
### Example
195199
```php
@@ -360,7 +364,9 @@ Name | Type | Description | Notes
360364
# **ecommerceActivatePost**
361365
> ecommerceActivatePost()
362366
363-
**Fulfills the eCommerce pre-requisites**
367+
Activate the eCommerce app
368+
369+
Getting access to Sendinblue eCommerce.
364370

365371
### Example
366372
```php
@@ -410,7 +416,7 @@ void (empty response body)
410416
[[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)
411417

412418
# **getCategories**
413-
> \SendinBlue\Client\Model\GetCategories getCategories($limit, $offset, $sort, $ids)
419+
> \SendinBlue\Client\Model\GetCategories getCategories($limit, $offset, $sort, $ids, $name)
414420
415421
Return all your categories
416422

@@ -438,9 +444,10 @@ $limit = 50; // int | Number of documents per page
438444
$offset = 0; // int | Index of the first document in the page
439445
$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
440446
$ids = array("ids_example"); // string[] | Filter by category ids
447+
$name = "name_example"; // string | Filter by category name
441448

442449
try {
443-
$result = $apiInstance->getCategories($limit, $offset, $sort, $ids);
450+
$result = $apiInstance->getCategories($limit, $offset, $sort, $ids, $name);
444451
print_r($result);
445452
} catch (Exception $e) {
446453
echo 'Exception when calling EcommerceApi->getCategories: ', $e->getMessage(), PHP_EOL;
@@ -456,6 +463,7 @@ Name | Type | Description | Notes
456463
**offset** | **int**| Index of the first document in the page | [optional] [default to 0]
457464
**sort** | **string**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
458465
**ids** | [**string[]**](../Model/string.md)| Filter by category ids | [optional]
466+
**name** | **string**| Filter by category name | [optional]
459467

460468
### Return type
461469

@@ -587,7 +595,7 @@ Name | Type | Description | Notes
587595
[[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)
588596

589597
# **getProducts**
590-
> \SendinBlue\Client\Model\GetProducts getProducts($limit, $offset, $sort, $ids)
598+
> \SendinBlue\Client\Model\GetProducts getProducts($limit, $offset, $sort, $ids, $name, $price, $categories)
591599
592600
Return all your products
593601

@@ -615,9 +623,12 @@ $limit = 50; // int | Number of documents per page
615623
$offset = 0; // int | Index of the first document in the page
616624
$sort = "desc"; // string | Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed
617625
$ids = array("ids_example"); // string[] | Filter by product ids
626+
$name = "name_example"; // string | Filter by product name, minimum 3 characters should be present for search
627+
$price = array("price_example"); // string[] | Filter by product price, like price[lte]
628+
$categories = array("categories_example"); // string[] | Filter by category ids
618629

619630
try {
620-
$result = $apiInstance->getProducts($limit, $offset, $sort, $ids);
631+
$result = $apiInstance->getProducts($limit, $offset, $sort, $ids, $name, $price, $categories);
621632
print_r($result);
622633
} catch (Exception $e) {
623634
echo 'Exception when calling EcommerceApi->getProducts: ', $e->getMessage(), PHP_EOL;
@@ -633,6 +644,9 @@ Name | Type | Description | Notes
633644
**offset** | **int**| Index of the first document in the page | [optional] [default to 0]
634645
**sort** | **string**| Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed | [optional] [default to desc]
635646
**ids** | [**string[]**](../Model/string.md)| Filter by product ids | [optional]
647+
**name** | **string**| Filter by product name, minimum 3 characters should be present for search | [optional]
648+
**price** | [**string[]**](../Model/string.md)| Filter by product price, like price[lte] | [optional]
649+
**categories** | [**string[]**](../Model/string.md)| Filter by category ids | [optional]
636650

637651
### Return type
638652

0 commit comments

Comments
 (0)