Skip to content

Commit 4ad60d2

Browse files
Regenerate under separate api client invoker_package_name
1 parent 94823ee commit 4ad60d2

26 files changed

+138
-144
lines changed

.openapi-generator/FILES

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.openapi-generator-ignore
32
.php_cs
43
.travis.yml
54
README.md
@@ -13,18 +12,18 @@ docs/Model/ItemDraftResponse.md
1312
docs/Model/PricingSummary.md
1413
docs/Model/Product.md
1514
git_push.sh
15+
lib/Api/ItemDraftApi.php
1616
lib/ApiException.php
1717
lib/Configuration.php
1818
lib/HeaderSelector.php
19-
lib/Listing/ItemDraftApi.php
20-
lib/Listing/Model/Amount.php
21-
lib/Listing/Model/Aspect.php
22-
lib/Listing/Model/Charity.php
23-
lib/Listing/Model/ItemDraft.php
24-
lib/Listing/Model/ItemDraftResponse.php
25-
lib/Listing/Model/ModelInterface.php
26-
lib/Listing/Model/PricingSummary.php
27-
lib/Listing/Model/Product.php
19+
lib/Model/Amount.php
20+
lib/Model/Aspect.php
21+
lib/Model/Charity.php
22+
lib/Model/ItemDraft.php
23+
lib/Model/ItemDraftResponse.php
24+
lib/Model/ModelInterface.php
25+
lib/Model/PricingSummary.php
26+
lib/Model/Product.php
2827
lib/ObjectSerializer.php
2928
phpunit.xml.dist
3029
test/Api/ItemDraftApiTest.php

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
4949

5050

5151
// Configure OAuth2 access token for authorization: Authorization Code
52-
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
52+
$config = Ebay\Sell\Listing\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
5353

5454

55-
$apiInstance = new Ebay\Sell\Api\ItemDraftApi(
55+
$apiInstance = new Ebay\Sell\Listing\Api\ItemDraftApi(
5656
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
5757
// This is optional, `GuzzleHttp\Client` will be used as default.
5858
new GuzzleHttp\Client(),

composer.json

+10-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "zvps\/ebay-sell-listing-php-client",
2+
"name": "zvps/ebay-sell-listing-php-client",
33
"version": "5.0.0",
44
"description": "Note: This is a (Limited Release) API available only to select developers approved by business units. Enables a seller adding an ad or item on a Partner's site to automatically create an eBay listing draft using the item details from the Partner's site.",
55
"keywords": [
@@ -11,33 +11,29 @@
1111
"rest",
1212
"api"
1313
],
14-
"homepage": "https:\/\/openapi-generator.tech",
14+
"homepage": "https://openapi-generator.tech",
1515
"license": "unlicense",
1616
"authors": [
1717
{
1818
"name": "OpenAPI-Generator contributors",
19-
"homepage": "https:\/\/openapi-generator.tech"
19+
"homepage": "https://openapi-generator.tech"
2020
}
2121
],
2222
"require": {
23-
"php": ">=5.6",
23+
"php": ">=7.2",
2424
"ext-curl": "*",
2525
"ext-json": "*",
2626
"ext-mbstring": "*",
27-
"guzzlehttp\/guzzle": "^6.2"
27+
"guzzlehttp/guzzle": "^6.2"
2828
},
2929
"require-dev": {
30-
"phpunit\/phpunit": "^8.0 || ^9.0",
31-
"friendsofphp\/php-cs-fixer": "^2.12"
30+
"phpunit/phpunit": "^8.0 || ^9.0",
31+
"friendsofphp/php-cs-fixer": "^2.12"
3232
},
3333
"autoload": {
34-
"psr-4": {
35-
"Ebay\\Sell\\": "lib\/"
36-
}
34+
"psr-4": { "Ebay\\Sell\\Listing\\" : "lib/" }
3735
},
3836
"autoload-dev": {
39-
"psr-4": {
40-
"Ebay\\Sell\\Test\\": "test\/"
41-
}
37+
"psr-4": { "Ebay\\Sell\\Listing\\Test\\" : "test/" }
4238
}
43-
}
39+
}

docs/Api/ItemDraftApi.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Ebay\Sell\ItemDraftApi
1+
# Ebay\Sell\Listing\ItemDraftApi
22

33
All URIs are relative to https://api.ebay.com/sell/listing/v1_beta.
44

@@ -25,10 +25,10 @@ require_once(__DIR__ . '/vendor/autoload.php');
2525

2626

2727
// Configure OAuth2 access token for authorization: Authorization Code
28-
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
28+
$config = Ebay\Sell\Listing\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
2929

3030

31-
$apiInstance = new Ebay\Sell\Api\ItemDraftApi(
31+
$apiInstance = new Ebay\Sell\Listing\Api\ItemDraftApi(
3232
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3333
// This is optional, `GuzzleHttp\Client` will be used as default.
3434
new GuzzleHttp\Client(),

lib/Listing/ItemDraftApi.php lib/Api/ItemDraftApi.php

+10-11
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* PHP version 7.2
55
*
66
* @category Class
7-
* @package Ebay\Sell
7+
* @package Ebay\Sell\Listing
88
* @author OpenAPI Generator team
99
* @link https://openapi-generator.tech
1010
*/
@@ -25,24 +25,24 @@
2525
* Do not edit the class manually.
2626
*/
2727

28-
namespace Ebay\Sell\Listing;
28+
namespace Ebay\Sell\Listing\Api;
2929

3030
use GuzzleHttp\Client;
3131
use GuzzleHttp\ClientInterface;
3232
use GuzzleHttp\Exception\RequestException;
3333
use GuzzleHttp\Psr7\MultipartStream;
3434
use GuzzleHttp\Psr7\Request;
3535
use GuzzleHttp\RequestOptions;
36-
use Ebay\Sell\ApiException;
37-
use Ebay\Sell\Configuration;
38-
use Ebay\Sell\HeaderSelector;
39-
use Ebay\Sell\ObjectSerializer;
36+
use Ebay\Sell\Listing\ApiException;
37+
use Ebay\Sell\Listing\Configuration;
38+
use Ebay\Sell\Listing\HeaderSelector;
39+
use Ebay\Sell\Listing\ObjectSerializer;
4040

4141
/**
4242
* ItemDraftApi Class Doc Comment
4343
*
4444
* @category Class
45-
* @package Ebay\Sell
45+
* @package Ebay\Sell\Listing
4646
* @author OpenAPI Generator team
4747
* @link https://openapi-generator.tech
4848
*/
@@ -90,9 +90,8 @@ public function __construct(
9090
* Set the host index
9191
*
9292
* @param int $hostIndex Host index (required)
93-
* @return void
9493
*/
95-
public function setHostIndex($hostIndex)
94+
public function setHostIndex($hostIndex): void
9695
{
9796
$this->hostIndex = $hostIndex;
9897
}
@@ -122,7 +121,7 @@ public function getConfig()
122121
* @param string $content_language Use this header to specify the natural language of the seller. For details, see Content-Language in HTTP request headers. Required: For EBAY_CA in French. (Content-Language = fr-CA) (optional)
123122
* @param \Ebay\Sell\Listing\Model\ItemDraft $body body (optional)
124123
*
125-
* @throws \Ebay\Sell\ApiException on non-2xx response
124+
* @throws \Ebay\Sell\Listing\ApiException on non-2xx response
126125
* @throws \InvalidArgumentException
127126
* @return \Ebay\Sell\Listing\Model\ItemDraftResponse
128127
*/
@@ -139,7 +138,7 @@ public function createItemDraft($x_ebay_c_marketplace_id, $content_language = nu
139138
* @param string $content_language Use this header to specify the natural language of the seller. For details, see Content-Language in HTTP request headers. Required: For EBAY_CA in French. (Content-Language = fr-CA) (optional)
140139
* @param \Ebay\Sell\Listing\Model\ItemDraft $body (optional)
141140
*
142-
* @throws \Ebay\Sell\ApiException on non-2xx response
141+
* @throws \Ebay\Sell\Listing\ApiException on non-2xx response
143142
* @throws \InvalidArgumentException
144143
* @return array of \Ebay\Sell\Listing\Model\ItemDraftResponse, HTTP status code, HTTP response headers (array of strings)
145144
*/

lib/ApiException.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* PHP version 7.2
55
*
66
* @category Class
7-
* @package Ebay\Sell
7+
* @package Ebay\Sell\Listing
88
* @author OpenAPI Generator team
99
* @link https://openapi-generator.tech
1010
*/
@@ -25,15 +25,15 @@
2525
* Do not edit the class manually.
2626
*/
2727

28-
namespace Ebay\Sell;
28+
namespace Ebay\Sell\Listing;
2929

3030
use \Exception;
3131

3232
/**
3333
* ApiException Class Doc Comment
3434
*
3535
* @category Class
36-
* @package Ebay\Sell
36+
* @package Ebay\Sell\Listing
3737
* @author OpenAPI Generator team
3838
* @link https://openapi-generator.tech
3939
*/

lib/Listing/Configuration.php lib/Configuration.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* PHP version 7.2
55
*
66
* @category Class
7-
* @package Ebay\Sell
7+
* @package Ebay\Sell\Listing
88
* @author OpenAPI Generator team
99
* @link https://openapi-generator.tech
1010
*/
@@ -32,7 +32,7 @@
3232
* PHP version 7.2
3333
*
3434
* @category Class
35-
* @package Ebay\Sell
35+
* @package Ebay\Sell\Listing
3636
* @author OpenAPI Generator team
3737
* @link https://openapi-generator.tech
3838
*/
@@ -383,7 +383,7 @@ public static function getDefaultConfiguration()
383383
*
384384
* @return void
385385
*/
386-
public static function setDefaultConfiguration($config)
386+
public static function setDefaultConfiguration(Configuration $config)
387387
{
388388
self::$defaultConfiguration = $config;
389389
}
@@ -395,7 +395,7 @@ public static function setDefaultConfiguration($config)
395395
*/
396396
public static function toDebugReport()
397397
{
398-
$report = 'PHP SDK (Ebay\Sell) Debug Report:' . PHP_EOL;
398+
$report = 'PHP SDK (Ebay\Sell\Listing) Debug Report:' . PHP_EOL;
399399
$report .= ' OS: ' . php_uname() . PHP_EOL;
400400
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
401401
$report .= ' The version of the OpenAPI document: v1_beta.3.0' . PHP_EOL;
@@ -469,7 +469,7 @@ public function getHostFromSettings($index, $variables = null)
469469
$url = $host["url"];
470470

471471
// go through variable and assign a value
472-
foreach (isset($host["variables"]) ? $host["variables"] : [] as $name => $variable) {
472+
foreach ($host["variables"] ?? [] as $name => $variable) {
473473
if (array_key_exists($name, $variables)) { // check to see if it's in the variables provided by the user
474474
if (in_array($variables[$name], $variable["enum_values"], true)) { // check to see if the value is in the enum
475475
$url = str_replace("{".$name."}", $variables[$name], $url);

lib/HeaderSelector.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* PHP version 7.2
55
*
66
* @category Class
7-
* @package Ebay\Sell
7+
* @package Ebay\Sell\Listing
88
* @author OpenAPI Generator team
99
* @link https://openapi-generator.tech
1010
*/
@@ -25,15 +25,15 @@
2525
* Do not edit the class manually.
2626
*/
2727

28-
namespace Ebay\Sell;
28+
namespace Ebay\Sell\Listing;
2929

3030
use \Exception;
3131

3232
/**
3333
* ApiException Class Doc Comment
3434
*
3535
* @category Class
36-
* @package Ebay\Sell
36+
* @package Ebay\Sell\Listing
3737
* @author OpenAPI Generator team
3838
* @link https://openapi-generator.tech
3939
*/

lib/Listing/Model/Amount.php lib/Model/Amount.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* PHP version 7.2
66
*
77
* @category Class
8-
* @package Ebay\Sell
8+
* @package Ebay\Sell\Listing
99
* @author OpenAPI Generator team
1010
* @link https://openapi-generator.tech
1111
*/
@@ -29,14 +29,14 @@
2929
namespace Ebay\Sell\Listing\Model;
3030

3131
use \ArrayAccess;
32-
use \Ebay\Sell\ObjectSerializer;
32+
use \Ebay\Sell\Listing\ObjectSerializer;
3333

3434
/**
3535
* Amount Class Doc Comment
3636
*
3737
* @category Class
3838
* @description The type that defines the fields for the currency and a monetary amount.
39-
* @package Ebay\Sell
39+
* @package Ebay\Sell\Listing
4040
* @author OpenAPI Generator team
4141
* @link https://openapi-generator.tech
4242
* @implements \ArrayAccess<TKey, TValue>
@@ -45,7 +45,7 @@
4545
*/
4646
class Amount implements ModelInterface, ArrayAccess, \JsonSerializable
4747
{
48-
const DISCRIMINATOR = null;
48+
public const DISCRIMINATOR = null;
4949

5050
/**
5151
* The original name of the model.
@@ -184,8 +184,8 @@ public function getModelName()
184184
*/
185185
public function __construct(array $data = null)
186186
{
187-
$this->container['currency'] = isset($data['currency']) ? $data['currency'] : null;
188-
$this->container['value'] = isset($data['value']) ? $data['value'] : null;
187+
$this->container['currency'] = $data['currency'] ?? null;
188+
$this->container['value'] = $data['value'] ?? null;
189189
}
190190

191191
/**
@@ -280,7 +280,7 @@ public function offsetExists($offset)
280280
*/
281281
public function offsetGet($offset)
282282
{
283-
return isset($this->container[$offset]) ? $this->container[$offset] : null;
283+
return $this->container[$offset] ?? null;
284284
}
285285

286286
/**

lib/Listing/Model/Aspect.php lib/Model/Aspect.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* PHP version 7.2
66
*
77
* @category Class
8-
* @package Ebay\Sell
8+
* @package Ebay\Sell\Listing
99
* @author OpenAPI Generator team
1010
* @link https://openapi-generator.tech
1111
*/
@@ -29,14 +29,14 @@
2929
namespace Ebay\Sell\Listing\Model;
3030

3131
use \ArrayAccess;
32-
use \Ebay\Sell\ObjectSerializer;
32+
use \Ebay\Sell\Listing\ObjectSerializer;
3333

3434
/**
3535
* Aspect Class Doc Comment
3636
*
3737
* @category Class
3838
* @description The type that defines the fields for the item aspects.
39-
* @package Ebay\Sell
39+
* @package Ebay\Sell\Listing
4040
* @author OpenAPI Generator team
4141
* @link https://openapi-generator.tech
4242
* @implements \ArrayAccess<TKey, TValue>
@@ -45,7 +45,7 @@
4545
*/
4646
class Aspect implements ModelInterface, ArrayAccess, \JsonSerializable
4747
{
48-
const DISCRIMINATOR = null;
48+
public const DISCRIMINATOR = null;
4949

5050
/**
5151
* The original name of the model.
@@ -184,8 +184,8 @@ public function getModelName()
184184
*/
185185
public function __construct(array $data = null)
186186
{
187-
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
188-
$this->container['values'] = isset($data['values']) ? $data['values'] : null;
187+
$this->container['name'] = $data['name'] ?? null;
188+
$this->container['values'] = $data['values'] ?? null;
189189
}
190190

191191
/**
@@ -280,7 +280,7 @@ public function offsetExists($offset)
280280
*/
281281
public function offsetGet($offset)
282282
{
283-
return isset($this->container[$offset]) ? $this->container[$offset] : null;
283+
return $this->container[$offset] ?? null;
284284
}
285285

286286
/**

0 commit comments

Comments
 (0)