Skip to content

Commit b4930f7

Browse files
committed
Auto-generate wrapper from updated spec
1 parent 6fbdb3a commit b4930f7

2 files changed

Lines changed: 28 additions & 11 deletions

File tree

docs/Api/ResourcesCreatorApi.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ try {
7878
## `getV2ResourcesCreatorLicenses()`
7979

8080
```php
81-
getV2ResourcesCreatorLicenses($resource_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response
81+
getV2ResourcesCreatorLicenses($resource_ids, $buyer_ids): \OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response
8282
```
8383

8484
Fetch a list of your resources' licenses
@@ -103,9 +103,10 @@ $apiInstance = new OpenAPI\Client\Api\ResourcesCreatorApi(
103103
$config
104104
);
105105
$resource_ids = NULL; // array | A comma-separated list of resource IDs to filter on. No filter is applied if empty.
106+
$buyer_ids = NULL; // array | A comma-separated list of buyer IDs to filter on. No filter is applied if empty.
106107

107108
try {
108-
$result = $apiInstance->getV2ResourcesCreatorLicenses($resource_ids);
109+
$result = $apiInstance->getV2ResourcesCreatorLicenses($resource_ids, $buyer_ids);
109110
print_r($result);
110111
} catch (Exception $e) {
111112
echo 'Exception when calling ResourcesCreatorApi->getV2ResourcesCreatorLicenses: ', $e->getMessage(), PHP_EOL;
@@ -117,6 +118,7 @@ try {
117118
| Name | Type | Description | Notes |
118119
| ------------- | ------------- | ------------- | ------------- |
119120
| **resource_ids** | [**array**](../Model/.md)| A comma-separated list of resource IDs to filter on. No filter is applied if empty. | [optional] |
121+
| **buyer_ids** | [**array**](../Model/.md)| A comma-separated list of buyer IDs to filter on. No filter is applied if empty. | [optional] |
120122

121123
### Return type
122124

lib/Api/ResourcesCreatorApi.php

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -459,15 +459,16 @@ public function getV2ResourcesCreatorAddonsRequest($resource_ids = null, string
459459
* Fetch a list of your resources' licenses
460460
*
461461
* @param array $resource_ids A comma-separated list of resource IDs to filter on. No filter is applied if empty. (optional)
462+
* @param array $buyer_ids A comma-separated list of buyer IDs to filter on. No filter is applied if empty. (optional)
462463
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getV2ResourcesCreatorLicenses'] to see the possible values for this operation
463464
*
464465
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
465466
* @throws \InvalidArgumentException
466467
* @return \OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response
467468
*/
468-
public function getV2ResourcesCreatorLicenses($resource_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
469+
public function getV2ResourcesCreatorLicenses($resource_ids = null, $buyer_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
469470
{
470-
list($response) = $this->getV2ResourcesCreatorLicensesWithHttpInfo($resource_ids, $contentType);
471+
list($response) = $this->getV2ResourcesCreatorLicensesWithHttpInfo($resource_ids, $buyer_ids, $contentType);
471472
return $response;
472473
}
473474

@@ -477,15 +478,16 @@ public function getV2ResourcesCreatorLicenses($resource_ids = null, string $cont
477478
* Fetch a list of your resources' licenses
478479
*
479480
* @param array $resource_ids A comma-separated list of resource IDs to filter on. No filter is applied if empty. (optional)
481+
* @param array $buyer_ids A comma-separated list of buyer IDs to filter on. No filter is applied if empty. (optional)
480482
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getV2ResourcesCreatorLicenses'] to see the possible values for this operation
481483
*
482484
* @throws \OpenAPI\Client\ApiException on non-2xx response or if the response body is not in the expected format
483485
* @throws \InvalidArgumentException
484486
* @return array of \OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response, HTTP status code, HTTP response headers (array of strings)
485487
*/
486-
public function getV2ResourcesCreatorLicensesWithHttpInfo($resource_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
488+
public function getV2ResourcesCreatorLicensesWithHttpInfo($resource_ids = null, $buyer_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
487489
{
488-
$request = $this->getV2ResourcesCreatorLicensesRequest($resource_ids, $contentType);
490+
$request = $this->getV2ResourcesCreatorLicensesRequest($resource_ids, $buyer_ids, $contentType);
489491

490492
try {
491493
$options = $this->createHttpClientOption();
@@ -601,14 +603,15 @@ public function getV2ResourcesCreatorLicensesWithHttpInfo($resource_ids = null,
601603
* Fetch a list of your resources' licenses
602604
*
603605
* @param array $resource_ids A comma-separated list of resource IDs to filter on. No filter is applied if empty. (optional)
606+
* @param array $buyer_ids A comma-separated list of buyer IDs to filter on. No filter is applied if empty. (optional)
604607
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getV2ResourcesCreatorLicenses'] to see the possible values for this operation
605608
*
606609
* @throws \InvalidArgumentException
607610
* @return \GuzzleHttp\Promise\PromiseInterface
608611
*/
609-
public function getV2ResourcesCreatorLicensesAsync($resource_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
612+
public function getV2ResourcesCreatorLicensesAsync($resource_ids = null, $buyer_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
610613
{
611-
return $this->getV2ResourcesCreatorLicensesAsyncWithHttpInfo($resource_ids, $contentType)
614+
return $this->getV2ResourcesCreatorLicensesAsyncWithHttpInfo($resource_ids, $buyer_ids, $contentType)
612615
->then(
613616
function ($response) {
614617
return $response[0];
@@ -622,15 +625,16 @@ function ($response) {
622625
* Fetch a list of your resources' licenses
623626
*
624627
* @param array $resource_ids A comma-separated list of resource IDs to filter on. No filter is applied if empty. (optional)
628+
* @param array $buyer_ids A comma-separated list of buyer IDs to filter on. No filter is applied if empty. (optional)
625629
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getV2ResourcesCreatorLicenses'] to see the possible values for this operation
626630
*
627631
* @throws \InvalidArgumentException
628632
* @return \GuzzleHttp\Promise\PromiseInterface
629633
*/
630-
public function getV2ResourcesCreatorLicensesAsyncWithHttpInfo($resource_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
634+
public function getV2ResourcesCreatorLicensesAsyncWithHttpInfo($resource_ids = null, $buyer_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
631635
{
632636
$returnType = '\OpenAPI\Client\Model\GetV2ResourcesCreatorLicenses200Response';
633-
$request = $this->getV2ResourcesCreatorLicensesRequest($resource_ids, $contentType);
637+
$request = $this->getV2ResourcesCreatorLicensesRequest($resource_ids, $buyer_ids, $contentType);
634638

635639
return $this->client
636640
->sendAsync($request, $this->createHttpClientOption())
@@ -672,16 +676,18 @@ function ($exception) {
672676
* Create request for operation 'getV2ResourcesCreatorLicenses'
673677
*
674678
* @param array $resource_ids A comma-separated list of resource IDs to filter on. No filter is applied if empty. (optional)
679+
* @param array $buyer_ids A comma-separated list of buyer IDs to filter on. No filter is applied if empty. (optional)
675680
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getV2ResourcesCreatorLicenses'] to see the possible values for this operation
676681
*
677682
* @throws \InvalidArgumentException
678683
* @return \GuzzleHttp\Psr7\Request
679684
*/
680-
public function getV2ResourcesCreatorLicensesRequest($resource_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
685+
public function getV2ResourcesCreatorLicensesRequest($resource_ids = null, $buyer_ids = null, string $contentType = self::contentTypes['getV2ResourcesCreatorLicenses'][0])
681686
{
682687

683688

684689

690+
685691
$resourcePath = '/v2/resources/creator/licenses';
686692
$formParams = [];
687693
$queryParams = [];
@@ -698,6 +704,15 @@ public function getV2ResourcesCreatorLicensesRequest($resource_ids = null, strin
698704
true, // explode
699705
false // required
700706
) ?? []);
707+
// query params
708+
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
709+
$buyer_ids,
710+
'buyer_ids', // param base name
711+
'array', // openApiType
712+
'form', // style
713+
true, // explode
714+
false // required
715+
) ?? []);
701716

702717

703718

0 commit comments

Comments
 (0)