Skip to content

Commit 867a869

Browse files
committed
Update php SDK [skip ci]
1 parent 1e61677 commit 867a869

14 files changed

+954
-23
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ docs/Model/ProductAddGroupPricesInner.md
293293
docs/Model/ProductAddLogisticInfoInner.md
294294
docs/Model/ProductAddManufacturerInfo.md
295295
docs/Model/ProductAddPackageDetails.md
296+
docs/Model/ProductAddPersonalizationDetails.md
296297
docs/Model/ProductAddSalesTax.md
297298
docs/Model/ProductAddSellerProfiles.md
298299
docs/Model/ProductAddShippingDetailsInner.md
@@ -750,6 +751,7 @@ lib/Model/ProductAddGroupPricesInner.php
750751
lib/Model/ProductAddLogisticInfoInner.php
751752
lib/Model/ProductAddManufacturerInfo.php
752753
lib/Model/ProductAddPackageDetails.php
754+
lib/Model/ProductAddPersonalizationDetails.php
753755
lib/Model/ProductAddSalesTax.php
754756
lib/Model/ProductAddSellerProfiles.php
755757
lib/Model/ProductAddShippingDetailsInner.php
@@ -1202,6 +1204,7 @@ test/Model/ProductAddGroupPricesInnerTest.php
12021204
test/Model/ProductAddLogisticInfoInnerTest.php
12031205
test/Model/ProductAddManufacturerInfoTest.php
12041206
test/Model/ProductAddPackageDetailsTest.php
1207+
test/Model/ProductAddPersonalizationDetailsTest.php
12051208
test/Model/ProductAddSalesTaxTest.php
12061209
test/Model/ProductAddSellerProfilesTest.php
12071210
test/Model/ProductAddShippingDetailsInnerTest.php

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ Class | Method | HTTP request | Description
531531
- [ProductAddLogisticInfoInner](docs/Model/ProductAddLogisticInfoInner.md)
532532
- [ProductAddManufacturerInfo](docs/Model/ProductAddManufacturerInfo.md)
533533
- [ProductAddPackageDetails](docs/Model/ProductAddPackageDetails.md)
534+
- [ProductAddPersonalizationDetails](docs/Model/ProductAddPersonalizationDetails.md)
534535
- [ProductAddSalesTax](docs/Model/ProductAddSalesTax.md)
535536
- [ProductAddSellerProfiles](docs/Model/ProductAddSellerProfiles.md)
536537
- [ProductAddShippingDetailsInner](docs/Model/ProductAddShippingDetailsInner.md)

docs/Api/SubscriberApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All URIs are relative to https://api.api2cart.com/v1.1, except if the operation
1010
## `subscriberList()`
1111

1212
```php
13-
subscriberList($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude): \OpenAPI\Client\Model\ModelResponseSubscriberList
13+
subscriberList($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude): \OpenAPI\Client\Model\ModelResponseSubscriberList
1414
```
1515

1616
subscriber.list
@@ -41,6 +41,7 @@ $apiInstance = new OpenAPI\Client\Api\SubscriberApi(
4141
new GuzzleHttp\Client(),
4242
$config
4343
);
44+
$ids = 24,25; // string | Retrieves subscribers specified by ids
4445
$start = 0; // int | This parameter sets the number from which you want to get entities
4546
$count = 20; // int | This parameter sets the entity amount that has to be retrieved. Max allowed count=250
4647
$page_cursor = ; // string | Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter)
@@ -56,7 +57,7 @@ $params = id,model,price,images; // string | Set this parameter in order to choo
5657
$exclude = false; // string | Set this parameter in order to choose which entity fields you want to ignore. Works only if parameter `params` equal force_all
5758

5859
try {
59-
$result = $apiInstance->subscriberList($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude);
60+
$result = $apiInstance->subscriberList($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude);
6061
print_r($result);
6162
} catch (Exception $e) {
6263
echo 'Exception when calling SubscriberApi->subscriberList: ', $e->getMessage(), PHP_EOL;
@@ -67,6 +68,7 @@ try {
6768

6869
| Name | Type | Description | Notes |
6970
| ------------- | ------------- | ------------- | ------------- |
71+
| **ids** | **string**| Retrieves subscribers specified by ids | [optional] |
7072
| **start** | **int**| This parameter sets the number from which you want to get entities | [optional] [default to 0] |
7173
| **count** | **int**| This parameter sets the entity amount that has to be retrieved. Max allowed count=250 | [optional] [default to 10] |
7274
| **page_cursor** | **string**| Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) | [optional] |

docs/Model/ProductAdd.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,8 @@ Name | Type | Description | Notes
116116
**clear_cache** | **bool** | Is cache clear required | [optional] [default to true]
117117
**viewed_count** | **int** | Specifies the number of product's reviews | [optional] [default to 0]
118118
**ordered_count** | **int** | Defines how many times the product was ordered | [optional] [default to 0]
119+
**shop_section_id** | **int** | Add Shop Section Id | [optional]
120+
**return_policy_id** | **int** | Add Return Policy Id | [optional]
121+
**personalization_details** | [**\OpenAPI\Client\Model\ProductAddPersonalizationDetails**](ProductAddPersonalizationDetails.md) | | [optional]
119122

120123
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# # ProductAddPersonalizationDetails
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**is_personalizable** | **bool** | |
8+
**personalization_is_required** | **bool** | | [optional]
9+
**personalization_char_count_max** | **int** | | [optional]
10+
**personalization_instructions** | **string** | | [optional]
11+
12+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

docs/Model/ProductUpdate.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,8 @@ Name | Type | Description | Notes
8686
**reindex** | **bool** | Is reindex required | [optional] [default to true]
8787
**clear_cache** | **bool** | Is cache clear required | [optional] [default to true]
8888
**check_process_status** | **bool** | Disable or enable check process status. Please note that the response will be slower due to additional requests to the store. | [optional] [default to false]
89+
**specifics** | [**\OpenAPI\Client\Model\ProductAddSpecificsInner[]**](ProductAddSpecificsInner.md) | An array of Item Specific Name/Value pairs used by the seller to provide descriptive details of an item in a structured manner. The list of possible specifications can be obtained using the category.info method (additional_fields->product_specifics). <b>The structure of the parameter is different for specific platforms.</b> | [optional]
90+
**shop_section_id** | **int** | Add Shop Section Id | [optional]
91+
**personalization_details** | [**\OpenAPI\Client\Model\ProductAddPersonalizationDetails**](ProductAddPersonalizationDetails.md) | | [optional]
8992

9093
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Api/SubscriberApi.php

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ public function getConfig()
128128
*
129129
* subscriber.list
130130
*
131+
* @param string|null $ids Retrieves subscribers specified by ids (optional)
131132
* @param int|null $start This parameter sets the number from which you want to get entities (optional, default to 0)
132133
* @param int|null $count This parameter sets the entity amount that has to be retrieved. Max allowed count=250 (optional, default to 10)
133134
* @param string|null $page_cursor Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) (optional)
@@ -147,9 +148,9 @@ public function getConfig()
147148
* @throws \InvalidArgumentException
148149
* @return \OpenAPI\Client\Model\ModelResponseSubscriberList
149150
*/
150-
public function subscriberList($start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
151+
public function subscriberList($ids = null, $start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
151152
{
152-
list($response) = $this->subscriberListWithHttpInfo($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
153+
list($response) = $this->subscriberListWithHttpInfo($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
153154
return $response;
154155
}
155156

@@ -158,6 +159,7 @@ public function subscriberList($start = 0, $count = 10, $page_cursor = null, $su
158159
*
159160
* subscriber.list
160161
*
162+
* @param string|null $ids Retrieves subscribers specified by ids (optional)
161163
* @param int|null $start This parameter sets the number from which you want to get entities (optional, default to 0)
162164
* @param int|null $count This parameter sets the entity amount that has to be retrieved. Max allowed count=250 (optional, default to 10)
163165
* @param string|null $page_cursor Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) (optional)
@@ -177,9 +179,9 @@ public function subscriberList($start = 0, $count = 10, $page_cursor = null, $su
177179
* @throws \InvalidArgumentException
178180
* @return array of \OpenAPI\Client\Model\ModelResponseSubscriberList, HTTP status code, HTTP response headers (array of strings)
179181
*/
180-
public function subscriberListWithHttpInfo($start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
182+
public function subscriberListWithHttpInfo($ids = null, $start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
181183
{
182-
$request = $this->subscriberListRequest($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
184+
$request = $this->subscriberListRequest($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
183185

184186
try {
185187
$options = $this->createHttpClientOption();
@@ -295,6 +297,7 @@ public function subscriberListWithHttpInfo($start = 0, $count = 10, $page_cursor
295297
*
296298
* subscriber.list
297299
*
300+
* @param string|null $ids Retrieves subscribers specified by ids (optional)
298301
* @param int|null $start This parameter sets the number from which you want to get entities (optional, default to 0)
299302
* @param int|null $count This parameter sets the entity amount that has to be retrieved. Max allowed count=250 (optional, default to 10)
300303
* @param string|null $page_cursor Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) (optional)
@@ -313,9 +316,9 @@ public function subscriberListWithHttpInfo($start = 0, $count = 10, $page_cursor
313316
* @throws \InvalidArgumentException
314317
* @return \GuzzleHttp\Promise\PromiseInterface
315318
*/
316-
public function subscriberListAsync($start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
319+
public function subscriberListAsync($ids = null, $start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
317320
{
318-
return $this->subscriberListAsyncWithHttpInfo($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType)
321+
return $this->subscriberListAsyncWithHttpInfo($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType)
319322
->then(
320323
function ($response) {
321324
return $response[0];
@@ -328,6 +331,7 @@ function ($response) {
328331
*
329332
* subscriber.list
330333
*
334+
* @param string|null $ids Retrieves subscribers specified by ids (optional)
331335
* @param int|null $start This parameter sets the number from which you want to get entities (optional, default to 0)
332336
* @param int|null $count This parameter sets the entity amount that has to be retrieved. Max allowed count=250 (optional, default to 10)
333337
* @param string|null $page_cursor Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) (optional)
@@ -346,10 +350,10 @@ function ($response) {
346350
* @throws \InvalidArgumentException
347351
* @return \GuzzleHttp\Promise\PromiseInterface
348352
*/
349-
public function subscriberListAsyncWithHttpInfo($start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
353+
public function subscriberListAsyncWithHttpInfo($ids = null, $start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
350354
{
351355
$returnType = '\OpenAPI\Client\Model\ModelResponseSubscriberList';
352-
$request = $this->subscriberListRequest($start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
356+
$request = $this->subscriberListRequest($ids, $start, $count, $page_cursor, $subscribed, $store_id, $email, $created_from, $created_to, $modified_from, $modified_to, $response_fields, $params, $exclude, $contentType);
353357

354358
return $this->client
355359
->sendAsync($request, $this->createHttpClientOption())
@@ -390,6 +394,7 @@ function ($exception) {
390394
/**
391395
* Create request for operation 'subscriberList'
392396
*
397+
* @param string|null $ids Retrieves subscribers specified by ids (optional)
393398
* @param int|null $start This parameter sets the number from which you want to get entities (optional, default to 0)
394399
* @param int|null $count This parameter sets the entity amount that has to be retrieved. Max allowed count=250 (optional, default to 10)
395400
* @param string|null $page_cursor Used to retrieve entities via cursor-based pagination (it can't be used with any other filtering parameter) (optional)
@@ -408,7 +413,7 @@ function ($exception) {
408413
* @throws \InvalidArgumentException
409414
* @return \GuzzleHttp\Psr7\Request
410415
*/
411-
public function subscriberListRequest($start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
416+
public function subscriberListRequest($ids = null, $start = 0, $count = 10, $page_cursor = null, $subscribed = null, $store_id = null, $email = null, $created_from = null, $created_to = null, $modified_from = null, $modified_to = null, $response_fields = null, $params = 'force_all', $exclude = null, string $contentType = self::contentTypes['subscriberList'][0])
412417
{
413418

414419

@@ -425,13 +430,23 @@ public function subscriberListRequest($start = 0, $count = 10, $page_cursor = nu
425430

426431

427432

433+
428434
$resourcePath = '/subscriber.list.json';
429435
$formParams = [];
430436
$queryParams = [];
431437
$headerParams = [];
432438
$httpBody = '';
433439
$multipart = false;
434440

441+
// query params
442+
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
443+
$ids,
444+
'ids', // param base name
445+
'string', // openApiType
446+
'form', // style
447+
true, // explode
448+
false // required
449+
) ?? []);
435450
// query params
436451
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
437452
$start,

0 commit comments

Comments
 (0)