Skip to content
This repository has been archived by the owner on Jun 13, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release-14.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
David T. Sadler committed Dec 15, 2017
2 parents 0928850 + 99158fa commit 927d0ee
Show file tree
Hide file tree
Showing 99 changed files with 1,191 additions and 1,546 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# CHANGELOG

## 14.0.0 - 2017-12-15

### Features

* Support Inventory API version 1.5.0.
* Support Fulfillment API version 1.3.0.
* Support Taxonomy API version v1_beta.1.0.
* Support Shopping API version 1027.
* Support Trading API version 1039.

## 13.1.0 - 2017-09-24

###
Expand Down
1 change: 1 addition & 0 deletions docs/guide/restful-services.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ User tokens
~~~~~~~~~~~

Generating a user token requires your application to redirect a user to eBay where they will grant permission. The redirect url can be created via the ``redirectUrlForUser`` method.
( If you retrieve your code direcly from the browser please make sure to use ``urldecode`` when passing the code. )

.. code-block:: php
Expand Down
7 changes: 7 additions & 0 deletions src/Fulfillment/Types/ShippingStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* @property string $shippingCarrierCode
* @property string $shippingServiceCode
* @property \DTS\eBaySDK\Fulfillment\Types\Contact $shipTo
* @property string $shipToReferenceId
*/
class ShippingStep extends \DTS\eBaySDK\Types\BaseType
{
Expand All @@ -39,6 +40,12 @@ class ShippingStep extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'shipTo'
],
'shipToReferenceId' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'shipToReferenceId'
]
];

Expand Down
25 changes: 25 additions & 0 deletions src/Inventory/Services/InventoryService.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,13 @@ class InventoryService extends \DTS\eBaySDK\Inventory\Services\InventoryBaseServ
'required' => true
]
]
],
'PublishOfferByInventoryItemGroup' => [
'method' => 'POST',
'resource' => 'offer/publish_by_inventory_item_group',
'responseClass' => '\DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestResponse',
'params' => [
]
]
];

Expand Down Expand Up @@ -810,4 +817,22 @@ public function getProductCompatibilityAsync(\DTS\eBaySDK\Inventory\Types\GetPro
{
return $this->callOperationAsync('GetProductCompatibility', $request);
}

/**
* @param \DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestRequest $request
* @return \DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestResponse
*/
public function publishOfferByInventoryItemGroup(\DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestRequest $request)
{
return $this->publishOfferByInventoryItemGroupAsync($request)->wait();
}

/**
* @param \DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestRequest $request
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function publishOfferByInventoryItemGroupAsync(\DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestRequest $request)
{
return $this->callOperationAsync('PublishOfferByInventoryItemGroup', $request);
}
}
7 changes: 7 additions & 0 deletions src/Inventory/Types/InventoryItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* @property \DTS\eBaySDK\Inventory\Types\PackageWeightAndSize $packageWeightAndSize
* @property \DTS\eBaySDK\Inventory\Types\Product $product
* @property string $sku
* @property string[] $groupIds
*/
class InventoryItem extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -60,6 +61,12 @@ class InventoryItem extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'sku'
],
'groupIds' => [
'type' => 'string',
'repeatable' => true,
'attribute' => false,
'elementName' => 'groupIds'
]
];

Expand Down
7 changes: 7 additions & 0 deletions src/Inventory/Types/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @property string $subtitle
* @property string $title
* @property string[] $upc
* @property string[] $epid
*/
class Product extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -88,6 +89,12 @@ class Product extends \DTS\eBaySDK\Types\BaseType
'repeatable' => true,
'attribute' => false,
'elementName' => 'upc'
],
'epid' => [
'type' => 'string',
'repeatable' => true,
'attribute' => false,
'elementName' => 'epid'
]
];

Expand Down
53 changes: 53 additions & 0 deletions src/Inventory/Types/PublishByInventoryItemGroupRequest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Inventory\Types;

/**
*
* @property string $inventoryItemGroupKey
* @property \DTS\eBaySDK\Inventory\Enums\MarketplaceEnum $marketplaceId
*/
class PublishByInventoryItemGroupRequest extends \DTS\eBaySDK\Types\BaseType
{
/**
* @var array Properties belonging to objects of this class.
*/
private static $propertyTypes = [
'inventoryItemGroupKey' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'inventoryItemGroupKey'
],
'marketplaceId' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'marketplaceId'
]
];

/**
* @param array $values Optional properties and values to assign to the object.
*/
public function __construct(array $values = [])
{
list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);

parent::__construct($parentValues);

if (!array_key_exists(__CLASS__, self::$properties)) {
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
}

$this->setValues(__CLASS__, $childValues);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Trading\Types;
namespace DTS\eBaySDK\Inventory\Types;

/**
*
*/
class ExternalProductIDType extends \DTS\eBaySDK\Types\BaseType
class PublishOfferByInventoryItemGroupRestRequest extends \DTS\eBaySDK\Inventory\Types\PublishByInventoryItemGroupRequest
{
/**
* @var array Properties belonging to objects of this class.
Expand All @@ -34,10 +34,6 @@ public function __construct(array $values = [])
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
}

if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) {
self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"';
}

$this->setValues(__CLASS__, $childValues);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Inventory\Types;

use DTS\eBaySDK\StatusCodeTrait;
use DTS\eBaySDK\HttpHeadersTrait;

/**
*
* @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $errors
* @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $warnings
*/
class PublishOfferByInventoryItemGroupRestResponse extends \DTS\eBaySDK\Inventory\Types\PublishResponse
{
use StatusCodeTrait;
use HttpHeadersTrait;

/**
* @var array Properties belonging to objects of this class.
*/
private static $propertyTypes = [
'errors' => [
'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3',
'repeatable' => true,
'attribute' => false,
'elementName' => 'errors'
],
'warnings' => [
'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3',
'repeatable' => true,
'attribute' => false,
'elementName' => 'warnings'
]
];

/**
* @param array $values Optional properties and values to assign to the object.
* @param int $statusCode Status code
* @param array $headers HTTP Response headers.
*/
public function __construct(array $values = [], $statusCode = 200, array $headers = [])
{
list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);

parent::__construct($parentValues);

if (!array_key_exists(__CLASS__, self::$properties)) {
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
}

$this->setValues(__CLASS__, $childValues);

$this->statusCode = (int)$statusCode;

$this->setHeaders($headers);
}
}
7 changes: 7 additions & 0 deletions src/Inventory/Types/WithdrawResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
/**
*
* @property string $listingId
* @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $warnings
*/
class WithdrawResponse extends \DTS\eBaySDK\Types\BaseType
{
Expand All @@ -25,6 +26,12 @@ class WithdrawResponse extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'listingId'
],
'warnings' => [
'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3',
'repeatable' => true,
'attribute' => false,
'elementName' => 'warnings'
]
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class ProductMetadataBaseService extends \DTS\eBaySDK\Services\BaseService
*/
public function __construct(array $config)
{
parent::__construct('https://svcs.ebay.com/services/marketplacecatalog/ProductMetadataService/v1', 'https://svcs.sandbox.ebay.com/services/marketplacecatalog/ProductService/v1', $config);
parent::__construct('https://svcs.ebay.com/services/marketplacecatalog/ProductMetadataService/v1', 'https://svcs.sandbox.ebay.com/services/marketplacecatalog/ProductMetadataService/v1', $config);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Sdk.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/
class Sdk
{
const VERSION = '13.1.0';
const VERSION = '14.0.0';

/**
* @var bool Controls if the SDK should enforce strict types
Expand Down
46 changes: 1 addition & 45 deletions src/Shopping/Services/ShoppingService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

class ShoppingService extends \DTS\eBaySDK\Shopping\Services\ShoppingBaseService
{
const API_VERSION = '1007';
const API_VERSION = '1027';

/**
* @param array $config Configuration option values.
Expand All @@ -22,28 +22,6 @@ public function __construct(array $config = [])
parent::__construct($config);
}

/**
* @param \DTS\eBaySDK\Shopping\Types\FindHalfProductsRequestType $request
* @return \DTS\eBaySDK\Shopping\Types\FindHalfProductsResponseType
*/
public function findHalfProducts(\DTS\eBaySDK\Shopping\Types\FindHalfProductsRequestType $request)
{
return $this->findHalfProductsAsync($request)->wait();
}

/**
* @param \DTS\eBaySDK\Shopping\Types\FindHalfProductsRequestType $request
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function findHalfProductsAsync(\DTS\eBaySDK\Shopping\Types\FindHalfProductsRequestType $request)
{
return $this->callOperationAsync(
'FindHalfProducts',
$request,
'\DTS\eBaySDK\Shopping\Types\FindHalfProductsResponseType'
);
}

/**
* @param \DTS\eBaySDK\Shopping\Types\FindProductsRequestType $request
* @return \DTS\eBaySDK\Shopping\Types\FindProductsResponseType
Expand All @@ -66,28 +44,6 @@ public function findProductsAsync(\DTS\eBaySDK\Shopping\Types\FindProductsReques
);
}

/**
* @param \DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesRequestType $request
* @return \DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesResponseType
*/
public function findReviewsAndGuides(\DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesRequestType $request)
{
return $this->findReviewsAndGuidesAsync($request)->wait();
}

/**
* @param \DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesRequestType $request
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function findReviewsAndGuidesAsync(\DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesRequestType $request)
{
return $this->callOperationAsync(
'FindReviewsAndGuides',
$request,
'\DTS\eBaySDK\Shopping\Types\FindReviewsAndGuidesResponseType'
);
}

/**
* @param \DTS\eBaySDK\Shopping\Types\GetCategoryInfoRequestType $request
* @return \DTS\eBaySDK\Shopping\Types\GetCategoryInfoResponseType
Expand Down
Loading

0 comments on commit 927d0ee

Please sign in to comment.