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

Commit 828c48e

Browse files
author
David T. Sadler
committed
13.0.0 release
2 parents a352473 + d608310 commit 828c48e

File tree

338 files changed

+12932
-530
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+12932
-530
lines changed

.travis.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,23 @@ php:
44
- 5.5
55
- 5.6
66
- 7.0
7+
- 7.1
78
- hhvm
89

9-
install:
10-
- if test "$TRAVIS_PHP_VERSION" == "7.0"; then echo "xdebug.overload_var_dump = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi
10+
sudo: false
11+
12+
env:
13+
- COMPOSER_OPTS=""
14+
- COMPOSER_OPTS="--prefer-lowest"
1115

12-
before_script:
13-
- travis_retry composer self-update
14-
- travis_retry composer install --no-interaction --prefer-source
16+
matrix:
17+
allow_failures:
18+
- php: hhvm
19+
fast_finish: true
20+
21+
install:
22+
- 'if [ $(phpenv version-name) != "hhvm" ]; then echo "xdebug.overload_var_dump = 0" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini; fi'
23+
- travis_retry composer update $COMPOSER_OPTS --no-interaction --prefer-source
1524

1625
script:
1726
- make test
18-

CHANGELOG.md

Lines changed: 50 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,55 @@
11
# CHANGELOG
22

3+
## 13.0.0 - 2017-06-23
4+
5+
### Features
6+
7+
* Support Feed API version v1_beta.0.0
8+
* Support Taxonomy API version v1_beta.0.0.
9+
* Added compressResponse configuration option.
10+
* Added affiliateCampaignId, affiliateReferenceId and contextualLocation configuration options.
11+
* Added Bulk Migrate Listings operation to the Inventory service.
12+
* Support Metadata API version 1.1.0.
13+
* Added Get Shipping Rate Tables operation to the Account service. Note that eBay have not officaly released this
14+
operation so it may be subject to change.
15+
* Link to forum at https://forum.devbay.net/c/php-sdk
16+
* Add GalleryURL to Trading\Types\PictureDetailsType.
17+
GalleryURL was removed from the Trading API version 997. However it has been seen in the API response. If your project
18+
makes use of GalleryURL be aware that eBay may stop returning this information!
19+
20+
### Breaking changes
21+
22+
* Support Marketing API version 1.3.0.
23+
* Support Marketing API version 1.2.0.
24+
* Support Order API version v1_beta.6.0.
25+
* Support Trading API version 1019.
26+
* Support Trading API version 1007.
27+
* Support Shopping API version 1007.
28+
* Support Browse API version v1_beta.7.0.
29+
* Support Browse API version v1_beta.6.0.
30+
* Property subDomain changed to subdomain for the Metadata\Types\ErrorDetailV3 class.
31+
* Properties inputRefIds and outputRefIds are repeatable for the Metadata\Types\ErrorDetailV3 class.
32+
33+
### Fixes
34+
35+
* Added missing shippingServiceCode property to Fulfillment\Types\ShippingFulfillment.
36+
* Added missing paymentMode property to Fulfillment\Types\Payment.
37+
* Added missing lineItemFulfillmentInstructions property to Fulfillment\Types\LineItem.
38+
* Added missing refunds property to Fulfillment\Types\LineItem.
39+
* Added missing enums to Fulfillment\Enums\OrderPaymentStatusEnum.
40+
* Added missing enums to Fulfillment\Enums\PaymentMethodTypeEnum.
41+
* Added missing priceDiscount property to Fulfillment\Types\Pricingsummary.
42+
* Added missing enums to PostOrder\Enums\CancelReasonEnum.
43+
* Added missing properties to PostOrder\Types\Error.
44+
* Added missing properties to PostOrder\Types\CancelDetail.
45+
* Added missing properties to PostOrder\Types\CancelActivityHistory.
46+
* Added missing property lineItems to PostOrder\Types\CancelSummary.
47+
* Added missing properties itemTitle, cancelQuantity to PostOrder\Types\OrderCancelLineItem.
48+
* Added missing enum to Order\Enums\LineItemPaymentStatusEnum.
49+
350
## 12.0.1 - 2017-06-15
451

5-
## Fixes
52+
### Fixes
653

754
* SDK now ignores properties in the JSON response that would normally trigger an DTS\eBaySDK\Exceptions\UnknownPropertyException exception.
855

@@ -30,7 +77,7 @@
3077

3178
* Support Trading API version 997.
3279

33-
## Features
80+
### Features
3481

3582
* Can now use SDK to handle generation of OAUTH tokens for the RESTFul services.
3683

@@ -104,7 +151,7 @@
104151

105152
## 5.0.0 - 2016-06-04
106153

107-
## Doc
154+
### Doc
108155

109156
* Fixed issue with JMS seriallizer. Documentation was incorrectly using @returns instead of @return.
110157

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ sync_bus:
9999
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/src/BusinessPoliciesManagement/ src/BusinessPoliciesManagement/
100100
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/BusinessPoliciesManagement/test/BusinessPoliciesManagement/ test/BusinessPoliciesManagement/
101101

102+
sync_feed:
103+
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Feed/src/Feed/ src/Feed/
104+
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Feed/test/Feed/ test/Feed/
105+
102106
sync_feedback:
103107
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Feedback/src/Feedback/ src/Feedback/
104108
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Feedback/test/Feedback/ test/Feedback/
@@ -145,6 +149,10 @@ sync_order:
145149
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Order/src/Order/ src/Order/
146150
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Order/test/Order/ test/Order/
147151

152+
sync_taxonomy:
153+
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/Taxonomy/src/Taxonomy/ src/Taxonomy/
154+
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/Taxonomy/test/Taxonomy/ test/Taxonomy/
155+
148156
sync_post:
149157
rsync -rtvu --delete --exclude *BaseService.php ../ebay-api-sdk-php/dist/PostOrder/src/PostOrder/ src/PostOrder/
150158
rsync -rtvu --delete --exclude /Mocks/ --exclude /Services/ ../ebay-api-sdk-php/dist/PostOrder/test/PostOrder/ test/PostOrder/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This is a personal project that has been developed by me, [David T. Sadler](http
1616

1717
- [User Guides](http://devbay.net/sdk/guides/) - Getting started guide and in-depth information.
1818
- [Examples](https://github.com/davidtsadler/ebay-sdk-examples) - Several examples of using the SDK.
19-
- [Google Group](https://groups.google.com/forum/#!forum/ebay-sdk-php) - Join for support with the SDK.
19+
- [Forum](https://forum.devbay.net/c/php-sdk) - Join for support with the SDK.
2020
- [@devbaydotnet](https://twitter.com/devbaydotnet) - Follow on Twitter for announcements of releases, important changes and so on.
2121

2222
## Requirements

docs/_templates/social.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h2>Community</h2>
1414
<a href="https://twitter.com/devbaydotnet" class="twitter-follow-button" data-show-count="false" data-lang="en">Follow @devbaydotnet</a>
1515
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
1616
<br/>
17-
<a href="https://groups.google.com/forum/#!forum/ebay-sdk-php">Google Group</a> - Join for support with the SDK.
17+
<a href="https://forum.devbay.net/c/php-sdk">Forum</a> - Join for support with the SDK.
1818
<br/>
1919
<a title="Recent Posts (RSS)" href="http://devbay.net/blog/rss.xml">Recent Blog Posts</a>
2020
</div>

docs/guide/configuration.rst

Lines changed: 43 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@ Refer to the :doc:`basic usage guide </getting-started/basic-usage>` for informa
2424

2525
Some configuration options are only applicable to certain services. Where this is the case the services will be noted in the documentation for the configuration option.
2626

27+
affiliateCampaignId
28+
~~~~~~~~~~~~~~~~~~~
29+
30+
:Type: ``string``
31+
:Services: ``Browse``
32+
33+
Affiliate parameter for applications that have registered on the `eBay Partner Network <https://www.ebaypartnernetwork.com/>`_.
34+
35+
affiliateReferenceId
36+
~~~~~~~~~~~~~~~~~~~~
37+
38+
:Type: ``string``
39+
:Services: ``Browse``
40+
41+
Affiliate parameter for applications that have registered on the `eBay Partner Network <https://www.ebaypartnernetwork.com/>`_.
42+
2743
affiliateUserId
2844
~~~~~~~~~~~~~~~
2945

@@ -77,7 +93,7 @@ authorization
7793
~~~~~~~~~~~~~
7894

7995
:Type: ``string``
80-
:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Trading``
96+
:Services: ``Account``, ``Analytics``, ``Browse``, ``Feed``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Trading``, ``Taxonomy``
8197
:Required: true, except for the Trading service.
8298

8399
All eBay RESTful services use OAuth 2.0 access tokens for application authentication and user authorization. The token passed via ``authorization`` can be either an User or Application token. You must ensure that the token has the require scope for the operation that you are calling.
@@ -114,6 +130,29 @@ The Trading service is different to other services in that the Auth'n'auth toke
114130
$request->RequesterCredentials = new Types\CustomSecurityHeaderType();
115131
$request->RequesterCredentials->eBayAuthToken = '<AUTH TOKEN>';
116132
133+
compressResponse
134+
~~~~~~~~~~~~~~~~
135+
136+
:Type: ``bool``
137+
138+
Some API responses can return a very large payload. Pass ``true`` to submit all requests with the HTTP header ``Accept-Encoding: application/gzip``. Note that not all API operations will return a gzip response.
139+
140+
contextualLocation
141+
~~~~~~~~~~~~~~~~~~
142+
143+
:Type: ``string``
144+
:Services: ``Browse``
145+
146+
Required by some operations in the Browse service. Increases the accuracy of the estimated delivery window information and is needed for the calculated shipping information. When using this header, you must include the country code and you also include the zip code if zip codes are used in that country.
147+
148+
.. code-block:: php
149+
150+
use DTS\eBaySDK\Browse\Services\BrowseService;
151+
152+
$service = new BrowseService([
153+
'contextualLocation' => 'country=US,zip=19406'
154+
]);
155+
117156
credentials
118157
~~~~~~~~~~~
119158

@@ -402,7 +441,7 @@ marketplaceId
402441
~~~~~~~~~~~~~
403442

404443
:Type: ``string``
405-
:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``
444+
:Services: ``Account``, ``Analytics``, ``Browse``, ``Feed``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Taxonomy``
406445

407446
The string identifier for the eBay site your API requests are to be sent to. For example, you would pass the value ``EBAY-UK`` to specify the eBay UK site.
408447

@@ -428,15 +467,15 @@ requestLanguage
428467
~~~~~~~~~~~~~~~
429468

430469
:Type: ``string``
431-
:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``
470+
:Services: ``Account``, ``Analytics``, ``Browse``, ``Feed``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Taxonomy``
432471

433472
This configuration option will set the ``Content-Language`` HTTP header for the request.
434473

435474
responseLanguage
436475
~~~~~~~~~~~~~~~~
437476

438477
:Type: ``string``
439-
:Services: ``Account``, ``Analytics``, ``Browse``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``
478+
:Services: ``Account``, ``Analytics``, ``Browse``, ``Feed``, ``Fulfillment``, ``Inventory``, ``Marketing``, ``Metadata``, ``Order``, ``Taxonomy``
440479

441480
This configuration option will set the ``Accept-Language`` HTTP header for the request.
442481

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The `eBay SDK for PHP <https://github.com/davidtsadler/ebay-sdk-php>`_ enables P
1313
External links: `API Docs <http://devbay.net/sdk/guides/api>`_
1414
| `GitHub <https://github.com/davidtsadler/ebay-sdk-php>`_
1515
| `Twitter <https://twitter.com/devbaydotnet>`_
16-
| `Support Group <https://groups.google.com/forum/#!forum/ebay-sdk-php>`_
16+
| `Forum <https://forum.devbay.net/c/php-sdk>`_
1717
| `Packagist <https://packagist.org/packages/dts/ebay-sdk-php>`_
1818
1919

src/Account/Services/AccountService.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,16 @@ class AccountService extends \DTS\eBaySDK\Account\Services\AccountBaseService
178178
'params' => [
179179
]
180180
],
181+
'GetShippingRateTables' => [
182+
'method' => 'POST',
183+
'resource' => 'rate_table',
184+
'responseClass' => '\DTS\eBaySDK\Account\Types\GetShippingRateTablesRestResponse',
185+
'params' => [
186+
'country_code' => [
187+
'valid' => ['string']
188+
]
189+
]
190+
],
181191
'CreateAReturnPolicy' => [
182192
'method' => 'POST',
183193
'resource' => 'return_policy',
@@ -594,6 +604,24 @@ public function optOutOfProgramAsync(\DTS\eBaySDK\Account\Types\OptOutOfProgramR
594604
return $this->callOperationAsync('OptOutOfProgram', $request);
595605
}
596606

607+
/**
608+
* @param \DTS\eBaySDK\Account\Types\GetShippingRateTablesRestRequest $request
609+
* @return \DTS\eBaySDK\Account\Types\GetShippingRateTablesRestResponse
610+
*/
611+
public function getShippingRateTables(\DTS\eBaySDK\Account\Types\GetShippingRateTablesRestRequest $request)
612+
{
613+
return $this->getShippingRateTablesAsync($request)->wait();
614+
}
615+
616+
/**
617+
* @param \DTS\eBaySDK\Account\Types\GetShippingRateTablesRestRequest $request
618+
* @return \GuzzleHttp\Promise\PromiseInterface
619+
*/
620+
public function getShippingRateTablesAsync(\DTS\eBaySDK\Account\Types\GetShippingRateTablesRestRequest $request)
621+
{
622+
return $this->callOperationAsync('GetShippingRateTables', $request);
623+
}
624+
597625
/**
598626
* @param \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestRequest $request
599627
* @return \DTS\eBaySDK\Account\Types\CreateAReturnPolicyRestResponse
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* DO NOT EDIT THIS FILE!
4+
*
5+
* This file was automatically generated from external sources.
6+
*
7+
* Any manual change here will be lost the next time the SDK
8+
* is updated. You've been warned!
9+
*/
10+
11+
namespace DTS\eBaySDK\Account\Types;
12+
13+
/**
14+
*
15+
* @property string $country_code
16+
*/
17+
class GetShippingRateTablesRestRequest extends \DTS\eBaySDK\Types\BaseType
18+
{
19+
/**
20+
* @var array Properties belonging to objects of this class.
21+
*/
22+
private static $propertyTypes = [
23+
'country_code' => [
24+
'type' => 'string',
25+
'repeatable' => false,
26+
'attribute' => false,
27+
'elementName' => 'country_code'
28+
]
29+
];
30+
31+
/**
32+
* @param array $values Optional properties and values to assign to the object.
33+
*/
34+
public function __construct(array $values = [])
35+
{
36+
list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);
37+
38+
parent::__construct($parentValues);
39+
40+
if (!array_key_exists(__CLASS__, self::$properties)) {
41+
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
42+
}
43+
44+
$this->setValues(__CLASS__, $childValues);
45+
}
46+
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?php
2+
/**
3+
* DO NOT EDIT THIS FILE!
4+
*
5+
* This file was automatically generated from external sources.
6+
*
7+
* Any manual change here will be lost the next time the SDK
8+
* is updated. You've been warned!
9+
*/
10+
11+
namespace DTS\eBaySDK\Account\Types;
12+
13+
use DTS\eBaySDK\StatusCodeTrait;
14+
use DTS\eBaySDK\HttpHeadersTrait;
15+
16+
/**
17+
*
18+
* @property \DTS\eBaySDK\Account\Types\ErrorDetailV3[] $errors
19+
* @property \DTS\eBaySDK\Account\Types\ErrorDetailV3[] $warnings
20+
*/
21+
class GetShippingRateTablesRestResponse extends \DTS\eBaySDK\Account\Types\RateTableResponse
22+
{
23+
use StatusCodeTrait;
24+
use HttpHeadersTrait;
25+
26+
/**
27+
* @var array Properties belonging to objects of this class.
28+
*/
29+
private static $propertyTypes = [
30+
'errors' => [
31+
'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3',
32+
'repeatable' => true,
33+
'attribute' => false,
34+
'elementName' => 'errors'
35+
],
36+
'warnings' => [
37+
'type' => 'DTS\eBaySDK\Account\Types\ErrorDetailV3',
38+
'repeatable' => true,
39+
'attribute' => false,
40+
'elementName' => 'warnings'
41+
]
42+
];
43+
44+
/**
45+
* @param array $values Optional properties and values to assign to the object.
46+
* @param int $statusCode Status code
47+
* @param array $headers HTTP Response headers.
48+
*/
49+
public function __construct(array $values = [], $statusCode = 200, array $headers = [])
50+
{
51+
list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values);
52+
53+
parent::__construct($parentValues);
54+
55+
if (!array_key_exists(__CLASS__, self::$properties)) {
56+
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes);
57+
}
58+
59+
$this->setValues(__CLASS__, $childValues);
60+
61+
$this->statusCode = (int)$statusCode;
62+
63+
$this->setHeaders($headers);
64+
}
65+
}

0 commit comments

Comments
 (0)