Skip to content

Commit

Permalink
Regenerate under separate api client invoker_package_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Caffe1neAdd1ct committed Jul 30, 2021
1 parent 5ed39c8 commit be2f21c
Show file tree
Hide file tree
Showing 55 changed files with 334 additions and 341 deletions.
47 changes: 23 additions & 24 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.gitignore
.openapi-generator-ignore
.php_cs
.travis.yml
README.md
Expand Down Expand Up @@ -27,32 +26,32 @@ docs/Model/SalesTaxJurisdiction.md
docs/Model/SalesTaxJurisdictions.md
docs/Model/TimeDuration.md
git_push.sh
lib/Api/CountryApi.php
lib/Api/MarketplaceApi.php
lib/ApiException.php
lib/Configuration.php
lib/HeaderSelector.php
lib/Metadata/CountryApi.php
lib/Metadata/MarketplaceApi.php
lib/Metadata/Model/AutomotivePartsCompatibilityPolicy.php
lib/Metadata/Model/AutomotivePartsCompatibilityPolicyResponse.php
lib/Metadata/Model/Error.php
lib/Metadata/Model/ErrorParameter.php
lib/Metadata/Model/Exclusion.php
lib/Metadata/Model/ItemCondition.php
lib/Metadata/Model/ItemConditionPolicy.php
lib/Metadata/Model/ItemConditionPolicyResponse.php
lib/Metadata/Model/ListingStructurePolicy.php
lib/Metadata/Model/ListingStructurePolicyResponse.php
lib/Metadata/Model/ModelInterface.php
lib/Metadata/Model/NegotiatedPricePolicy.php
lib/Metadata/Model/NegotiatedPricePolicyResponse.php
lib/Metadata/Model/ProductAdoptionPolicy.php
lib/Metadata/Model/ProductAdoptionPolicyResponse.php
lib/Metadata/Model/ReturnPolicy.php
lib/Metadata/Model/ReturnPolicyDetails.php
lib/Metadata/Model/ReturnPolicyResponse.php
lib/Metadata/Model/SalesTaxJurisdiction.php
lib/Metadata/Model/SalesTaxJurisdictions.php
lib/Metadata/Model/TimeDuration.php
lib/Model/AutomotivePartsCompatibilityPolicy.php
lib/Model/AutomotivePartsCompatibilityPolicyResponse.php
lib/Model/Error.php
lib/Model/ErrorParameter.php
lib/Model/Exclusion.php
lib/Model/ItemCondition.php
lib/Model/ItemConditionPolicy.php
lib/Model/ItemConditionPolicyResponse.php
lib/Model/ListingStructurePolicy.php
lib/Model/ListingStructurePolicyResponse.php
lib/Model/ModelInterface.php
lib/Model/NegotiatedPricePolicy.php
lib/Model/NegotiatedPricePolicyResponse.php
lib/Model/ProductAdoptionPolicy.php
lib/Model/ProductAdoptionPolicyResponse.php
lib/Model/ReturnPolicy.php
lib/Model/ReturnPolicyDetails.php
lib/Model/ReturnPolicyResponse.php
lib/Model/SalesTaxJurisdiction.php
lib/Model/SalesTaxJurisdictions.php
lib/Model/TimeDuration.php
lib/ObjectSerializer.php
phpunit.xml.dist
test/Api/CountryApiTest.php
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\CountryApi(
$apiInstance = new Ebay\Sell\Metadata\Api\CountryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down
24 changes: 10 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "zvps\/ebay-sell-metadata-php-client",
"name": "zvps/ebay-sell-metadata-php-client",
"version": "5.0.0",
"description": "The Metadata API has operations that retrieve configuration details pertaining to the different eBay marketplaces. In addition to marketplace information, the API also has operations that get information that helps sellers list items on eBay.",
"keywords": [
Expand All @@ -11,33 +11,29 @@
"rest",
"api"
],
"homepage": "https:\/\/openapi-generator.tech",
"homepage": "https://openapi-generator.tech",
"license": "unlicense",
"authors": [
{
"name": "OpenAPI-Generator contributors",
"homepage": "https:\/\/openapi-generator.tech"
"homepage": "https://openapi-generator.tech"
}
],
"require": {
"php": ">=5.6",
"php": ">=7.2",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"guzzlehttp\/guzzle": "^6.2"
"guzzlehttp/guzzle": "^6.2"
},
"require-dev": {
"phpunit\/phpunit": "^8.0 || ^9.0",
"friendsofphp\/php-cs-fixer": "^2.12"
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^2.12"
},
"autoload": {
"psr-4": {
"Ebay\\Sell\\": "lib\/"
}
"psr-4": { "Ebay\\Sell\\Metadata\\" : "lib/" }
},
"autoload-dev": {
"psr-4": {
"Ebay\\Sell\\Test\\": "test\/"
}
"psr-4": { "Ebay\\Sell\\Metadata\\Test\\" : "test/" }
}
}
}
6 changes: 3 additions & 3 deletions docs/Api/CountryApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ebay\Sell\CountryApi
# Ebay\Sell\Metadata\CountryApi

All URIs are relative to https://api.ebay.com/sell/metadata/v1.

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


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\CountryApi(
$apiInstance = new Ebay\Sell\Metadata\Api\CountryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down
28 changes: 14 additions & 14 deletions docs/Api/MarketplaceApi.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ebay\Sell\MarketplaceApi
# Ebay\Sell\Metadata\MarketplaceApi

All URIs are relative to https://api.ebay.com/sell/metadata/v1.

Expand Down Expand Up @@ -30,10 +30,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down Expand Up @@ -92,13 +92,13 @@ require_once(__DIR__ . '/vendor/autoload.php');


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

// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down Expand Up @@ -157,10 +157,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down Expand Up @@ -219,10 +219,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down Expand Up @@ -281,10 +281,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down Expand Up @@ -343,10 +343,10 @@ require_once(__DIR__ . '/vendor/autoload.php');


// Configure OAuth2 access token for authorization: Client Credentials
$config = Ebay\Sell\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$config = Ebay\Sell\Metadata\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');


$apiInstance = new Ebay\Sell\Api\MarketplaceApi(
$apiInstance = new Ebay\Sell\Metadata\Api\MarketplaceApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
Expand Down
21 changes: 10 additions & 11 deletions lib/Metadata/CountryApi.php → lib/Api/CountryApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* PHP version 7.2
*
* @category Class
* @package Ebay\Sell
* @package Ebay\Sell\Metadata
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
Expand All @@ -25,24 +25,24 @@
* Do not edit the class manually.
*/

namespace Ebay\Sell\Metadata;
namespace Ebay\Sell\Metadata\Api;

use GuzzleHttp\Client;
use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\RequestException;
use GuzzleHttp\Psr7\MultipartStream;
use GuzzleHttp\Psr7\Request;
use GuzzleHttp\RequestOptions;
use Ebay\Sell\ApiException;
use Ebay\Sell\Configuration;
use Ebay\Sell\HeaderSelector;
use Ebay\Sell\ObjectSerializer;
use Ebay\Sell\Metadata\ApiException;
use Ebay\Sell\Metadata\Configuration;
use Ebay\Sell\Metadata\HeaderSelector;
use Ebay\Sell\Metadata\ObjectSerializer;

/**
* CountryApi Class Doc Comment
*
* @category Class
* @package Ebay\Sell
* @package Ebay\Sell\Metadata
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
Expand Down Expand Up @@ -90,9 +90,8 @@ public function __construct(
* Set the host index
*
* @param int $hostIndex Host index (required)
* @return void
*/
public function setHostIndex($hostIndex)
public function setHostIndex($hostIndex): void
{
$this->hostIndex = $hostIndex;
}
Expand Down Expand Up @@ -120,7 +119,7 @@ public function getConfig()
*
* @param string $country_code This path parameter specifies the two-letter ISO 3166 country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are CA and US. (required)
*
* @throws \Ebay\Sell\ApiException on non-2xx response
* @throws \Ebay\Sell\Metadata\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \Ebay\Sell\Metadata\Model\SalesTaxJurisdictions
*/
Expand All @@ -135,7 +134,7 @@ public function getSalesTaxJurisdictions($country_code)
*
* @param string $country_code This path parameter specifies the two-letter ISO 3166 country code for the country whose jurisdictions you want to retrieve. eBay provides sales tax jurisdiction information for Canada and the United States.Valid values for this path parameter are CA and US. (required)
*
* @throws \Ebay\Sell\ApiException on non-2xx response
* @throws \Ebay\Sell\Metadata\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \Ebay\Sell\Metadata\Model\SalesTaxJurisdictions, HTTP status code, HTTP response headers (array of strings)
*/
Expand Down
Loading

0 comments on commit be2f21c

Please sign in to comment.