From 9a84fabdca401162f60f52288f7dce70d50ffc68 Mon Sep 17 00:00:00 2001 From: LexXxurio Date: Sun, 26 Nov 2017 02:20:45 +0100 Subject: [PATCH 01/10] Hint for noobs Hi David, first of all thanks for your commitment to handle ebay apis. I was trying to get the user token as mentioned, but copied the code from the browser to test the function ``getUserToken``. I completly forgot to urldecode the code. Maybe a little hint for this procedure would help other guys too. --- docs/guide/restful-services.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/guide/restful-services.rst b/docs/guide/restful-services.rst index 0f2f840f7..3f6e075e1 100644 --- a/docs/guide/restful-services.rst +++ b/docs/guide/restful-services.rst @@ -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 From d27d75409dcdedbca8258054023539fe8945b3b8 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 14 Dec 2017 14:42:41 +0000 Subject: [PATCH 02/10] api: support inventory api version 1.5.0 --- CHANGELOG.md | 6 ++ src/Inventory/Services/InventoryService.php | 25 +++++++ src/Inventory/Types/InventoryItem.php | 7 ++ src/Inventory/Types/Product.php | 7 ++ .../PublishByInventoryItemGroupRequest.php | 53 +++++++++++++++ ...shOfferByInventoryItemGroupRestRequest.php | 39 +++++++++++ ...hOfferByInventoryItemGroupRestResponse.php | 65 +++++++++++++++++++ src/Inventory/Types/WithdrawResponse.php | 7 ++ ...PublishByInventoryItemGroupRequestTest.php | 33 ++++++++++ ...ferByInventoryItemGroupRestRequestTest.php | 33 ++++++++++ ...erByInventoryItemGroupRestResponseTest.php | 33 ++++++++++ 11 files changed, 308 insertions(+) create mode 100644 src/Inventory/Types/PublishByInventoryItemGroupRequest.php create mode 100644 src/Inventory/Types/PublishOfferByInventoryItemGroupRestRequest.php create mode 100644 src/Inventory/Types/PublishOfferByInventoryItemGroupRestResponse.php create mode 100644 test/Inventory/Types/PublishByInventoryItemGroupRequestTest.php create mode 100644 test/Inventory/Types/PublishOfferByInventoryItemGroupRestRequestTest.php create mode 100644 test/Inventory/Types/PublishOfferByInventoryItemGroupRestResponseTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index a9f8cac78..4476ea057 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # CHANGELOG +## Unreleased + +### Features + +* Support Inventory API version 1.5.0. + ## 13.1.0 - 2017-09-24 ### diff --git a/src/Inventory/Services/InventoryService.php b/src/Inventory/Services/InventoryService.php index 9d9983571..1e9d2d2df 100644 --- a/src/Inventory/Services/InventoryService.php +++ b/src/Inventory/Services/InventoryService.php @@ -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' => [ + ] ] ]; @@ -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); + } } diff --git a/src/Inventory/Types/InventoryItem.php b/src/Inventory/Types/InventoryItem.php index d2c91fae8..8aebe431a 100644 --- a/src/Inventory/Types/InventoryItem.php +++ b/src/Inventory/Types/InventoryItem.php @@ -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 { @@ -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' ] ]; diff --git a/src/Inventory/Types/Product.php b/src/Inventory/Types/Product.php index c21e4efcc..229c2e153 100644 --- a/src/Inventory/Types/Product.php +++ b/src/Inventory/Types/Product.php @@ -22,6 +22,7 @@ * @property string $subtitle * @property string $title * @property string[] $upc + * @property string[] $epid */ class Product extends \DTS\eBaySDK\Types\BaseType { @@ -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' ] ]; diff --git a/src/Inventory/Types/PublishByInventoryItemGroupRequest.php b/src/Inventory/Types/PublishByInventoryItemGroupRequest.php new file mode 100644 index 000000000..f22b05e7e --- /dev/null +++ b/src/Inventory/Types/PublishByInventoryItemGroupRequest.php @@ -0,0 +1,53 @@ + [ + '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); + } +} diff --git a/src/Inventory/Types/PublishOfferByInventoryItemGroupRestRequest.php b/src/Inventory/Types/PublishOfferByInventoryItemGroupRestRequest.php new file mode 100644 index 000000000..c75c5ccff --- /dev/null +++ b/src/Inventory/Types/PublishOfferByInventoryItemGroupRestRequest.php @@ -0,0 +1,39 @@ +setValues(__CLASS__, $childValues); + } +} diff --git a/src/Inventory/Types/PublishOfferByInventoryItemGroupRestResponse.php b/src/Inventory/Types/PublishOfferByInventoryItemGroupRestResponse.php new file mode 100644 index 000000000..d88944d4e --- /dev/null +++ b/src/Inventory/Types/PublishOfferByInventoryItemGroupRestResponse.php @@ -0,0 +1,65 @@ + [ + '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); + } +} diff --git a/src/Inventory/Types/WithdrawResponse.php b/src/Inventory/Types/WithdrawResponse.php index 15d6c2801..1edf83bee 100644 --- a/src/Inventory/Types/WithdrawResponse.php +++ b/src/Inventory/Types/WithdrawResponse.php @@ -13,6 +13,7 @@ /** * * @property string $listingId + * @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $warnings */ class WithdrawResponse extends \DTS\eBaySDK\Types\BaseType { @@ -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' ] ]; diff --git a/test/Inventory/Types/PublishByInventoryItemGroupRequestTest.php b/test/Inventory/Types/PublishByInventoryItemGroupRequestTest.php new file mode 100644 index 000000000..31176168a --- /dev/null +++ b/test/Inventory/Types/PublishByInventoryItemGroupRequestTest.php @@ -0,0 +1,33 @@ +obj = new PublishByInventoryItemGroupRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishByInventoryItemGroupRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferByInventoryItemGroupRestRequestTest.php b/test/Inventory/Types/PublishOfferByInventoryItemGroupRestRequestTest.php new file mode 100644 index 000000000..d7a919586 --- /dev/null +++ b/test/Inventory/Types/PublishOfferByInventoryItemGroupRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferByInventoryItemGroupRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestRequest', $this->obj); + } + + public function testExtendsPublishByInventoryItemGroupRequest() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishByInventoryItemGroupRequest', $this->obj); + } +} diff --git a/test/Inventory/Types/PublishOfferByInventoryItemGroupRestResponseTest.php b/test/Inventory/Types/PublishOfferByInventoryItemGroupRestResponseTest.php new file mode 100644 index 000000000..1c62acc5a --- /dev/null +++ b/test/Inventory/Types/PublishOfferByInventoryItemGroupRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new PublishOfferByInventoryItemGroupRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishOfferByInventoryItemGroupRestResponse', $this->obj); + } + + public function testExtendsPublishResponse() + { + $this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\PublishResponse', $this->obj); + } +} From 55153d5265cbf965f7d3c80b6b8011b026670b7c Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 14 Dec 2017 15:04:14 +0000 Subject: [PATCH 03/10] pi: support fulfillment api version 1.3.0 --- CHANGELOG.md | 1 + src/Fulfillment/Types/ShippingStep.php | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4476ea057..2ecd21032 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Features * Support Inventory API version 1.5.0. +* Support Fulfillment API version 1.3.0. ## 13.1.0 - 2017-09-24 diff --git a/src/Fulfillment/Types/ShippingStep.php b/src/Fulfillment/Types/ShippingStep.php index 46a748d43..0cd178fd4 100644 --- a/src/Fulfillment/Types/ShippingStep.php +++ b/src/Fulfillment/Types/ShippingStep.php @@ -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 { @@ -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' ] ]; From fd0f48b5f41825609bbb8d8b0c218d451ef25ab7 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 14 Dec 2017 16:17:21 +0000 Subject: [PATCH 04/10] api: support taxonomy api version v1_beta.1.0 --- CHANGELOG.md | 1 + src/Taxonomy/Enums/AspectDataTypeEnum.php | 19 +++++ src/Taxonomy/Enums/AspectModeEnum.php | 17 ++++ .../Enums/ItemToAspectCardinalityEnum.php | 17 ++++ src/Taxonomy/Services/TaxonomyService.php | 33 ++++++++ src/Taxonomy/Types/Aspect.php | 60 ++++++++++++++ src/Taxonomy/Types/AspectConstraint.php | 81 +++++++++++++++++++ src/Taxonomy/Types/AspectMetadata.php | 46 +++++++++++ src/Taxonomy/Types/AspectValue.php | 53 ++++++++++++ .../GetItemAspectsForCategoryRestRequest.php | 53 ++++++++++++ .../GetItemAspectsForCategoryRestResponse.php | 65 +++++++++++++++ src/Taxonomy/Types/ValueConstraint.php | 53 ++++++++++++ .../Taxonomy/Enums/AspectDataTypeEnumTest.php | 28 +++++++ test/Taxonomy/Enums/AspectModeEnumTest.php | 28 +++++++ .../Enums/ItemToAspectCardinalityEnumTest.php | 28 +++++++ test/Taxonomy/Types/AspectConstraintTest.php | 33 ++++++++ test/Taxonomy/Types/AspectMetadataTest.php | 33 ++++++++ test/Taxonomy/Types/AspectTest.php | 33 ++++++++ test/Taxonomy/Types/AspectValueTest.php | 33 ++++++++ ...tItemAspectsForCategoryRestRequestTest.php | 33 ++++++++ ...ItemAspectsForCategoryRestResponseTest.php | 33 ++++++++ test/Taxonomy/Types/ValueConstraintTest.php | 33 ++++++++ 22 files changed, 813 insertions(+) create mode 100644 src/Taxonomy/Enums/AspectDataTypeEnum.php create mode 100644 src/Taxonomy/Enums/AspectModeEnum.php create mode 100644 src/Taxonomy/Enums/ItemToAspectCardinalityEnum.php create mode 100644 src/Taxonomy/Types/Aspect.php create mode 100644 src/Taxonomy/Types/AspectConstraint.php create mode 100644 src/Taxonomy/Types/AspectMetadata.php create mode 100644 src/Taxonomy/Types/AspectValue.php create mode 100644 src/Taxonomy/Types/GetItemAspectsForCategoryRestRequest.php create mode 100644 src/Taxonomy/Types/GetItemAspectsForCategoryRestResponse.php create mode 100644 src/Taxonomy/Types/ValueConstraint.php create mode 100644 test/Taxonomy/Enums/AspectDataTypeEnumTest.php create mode 100644 test/Taxonomy/Enums/AspectModeEnumTest.php create mode 100644 test/Taxonomy/Enums/ItemToAspectCardinalityEnumTest.php create mode 100644 test/Taxonomy/Types/AspectConstraintTest.php create mode 100644 test/Taxonomy/Types/AspectMetadataTest.php create mode 100644 test/Taxonomy/Types/AspectTest.php create mode 100644 test/Taxonomy/Types/AspectValueTest.php create mode 100644 test/Taxonomy/Types/GetItemAspectsForCategoryRestRequestTest.php create mode 100644 test/Taxonomy/Types/GetItemAspectsForCategoryRestResponseTest.php create mode 100644 test/Taxonomy/Types/ValueConstraintTest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ecd21032..1791bf800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Support Inventory API version 1.5.0. * Support Fulfillment API version 1.3.0. +* Support Taxonomy API version v1_beta.1.0. ## 13.1.0 - 2017-09-24 diff --git a/src/Taxonomy/Enums/AspectDataTypeEnum.php b/src/Taxonomy/Enums/AspectDataTypeEnum.php new file mode 100644 index 000000000..02c59bfdb --- /dev/null +++ b/src/Taxonomy/Enums/AspectDataTypeEnum.php @@ -0,0 +1,19 @@ + true ] ] + ], + 'GetItemAspectsForCategory' => [ + 'method' => 'GET', + 'resource' => 'category_tree/{category_tree_id}/get_item_aspects_for_category', + 'responseClass' => '\DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestResponse', + 'params' => [ + 'category_id' => [ + 'valid' => ['string'], + 'required' => true + ], + 'category_tree_id' => [ + 'valid' => ['string'], + 'required' => true + ] + ] ] ]; @@ -151,4 +166,22 @@ public function getSuggestedCategoriesAsync(\DTS\eBaySDK\Taxonomy\Types\GetSugge { return $this->callOperationAsync('GetSuggestedCategories', $request); } + + /** + * @param \DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestRequest $request + * @return \DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestResponse + */ + public function getItemAspectsForCategory(\DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestRequest $request) + { + return $this->getItemAspectsForCategoryAsync($request)->wait(); + } + + /** + * @param \DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestRequest $request + * @return \GuzzleHttp\Promise\PromiseInterface + */ + public function getItemAspectsForCategoryAsync(\DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestRequest $request) + { + return $this->callOperationAsync('GetItemAspectsForCategory', $request); + } } diff --git a/src/Taxonomy/Types/Aspect.php b/src/Taxonomy/Types/Aspect.php new file mode 100644 index 000000000..ba63d5da8 --- /dev/null +++ b/src/Taxonomy/Types/Aspect.php @@ -0,0 +1,60 @@ + [ + 'type' => 'DTS\eBaySDK\Taxonomy\Types\AspectConstraint', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectConstraint' + ], + 'aspectValues' => [ + 'type' => 'DTS\eBaySDK\Taxonomy\Types\AspectValue', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'aspectValues' + ], + 'localizedAspectName' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localizedAspectName' + ] + ]; + + /** + * @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); + } +} diff --git a/src/Taxonomy/Types/AspectConstraint.php b/src/Taxonomy/Types/AspectConstraint.php new file mode 100644 index 000000000..8d4d81199 --- /dev/null +++ b/src/Taxonomy/Types/AspectConstraint.php @@ -0,0 +1,81 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectDataType' + ], + 'aspectEnabledForVariations' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectEnabledForVariations' + ], + 'aspectFormat' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectFormat' + ], + 'aspectMode' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectMode' + ], + 'aspectRequired' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'aspectRequired' + ], + 'itemToAspectCardinality' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'itemToAspectCardinality' + ] + ]; + + /** + * @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); + } +} diff --git a/src/Taxonomy/Types/AspectMetadata.php b/src/Taxonomy/Types/AspectMetadata.php new file mode 100644 index 000000000..ee134ab05 --- /dev/null +++ b/src/Taxonomy/Types/AspectMetadata.php @@ -0,0 +1,46 @@ + [ + 'type' => 'DTS\eBaySDK\Taxonomy\Types\Aspect', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'aspects' + ] + ]; + + /** + * @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); + } +} diff --git a/src/Taxonomy/Types/AspectValue.php b/src/Taxonomy/Types/AspectValue.php new file mode 100644 index 000000000..176f69d6b --- /dev/null +++ b/src/Taxonomy/Types/AspectValue.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'localizedValue' + ], + 'valueConstraints' => [ + 'type' => 'DTS\eBaySDK\Taxonomy\Types\ValueConstraint', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'valueConstraints' + ] + ]; + + /** + * @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); + } +} diff --git a/src/Taxonomy/Types/GetItemAspectsForCategoryRestRequest.php b/src/Taxonomy/Types/GetItemAspectsForCategoryRestRequest.php new file mode 100644 index 000000000..e7dfb905f --- /dev/null +++ b/src/Taxonomy/Types/GetItemAspectsForCategoryRestRequest.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category_id' + ], + 'category_tree_id' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'category_tree_id' + ] + ]; + + /** + * @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); + } +} diff --git a/src/Taxonomy/Types/GetItemAspectsForCategoryRestResponse.php b/src/Taxonomy/Types/GetItemAspectsForCategoryRestResponse.php new file mode 100644 index 000000000..c5d600f7d --- /dev/null +++ b/src/Taxonomy/Types/GetItemAspectsForCategoryRestResponse.php @@ -0,0 +1,65 @@ + [ + 'type' => 'DTS\eBaySDK\Taxonomy\Types\ErrorDetailV3', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'errors' + ], + 'warnings' => [ + 'type' => 'DTS\eBaySDK\Taxonomy\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); + } +} diff --git a/src/Taxonomy/Types/ValueConstraint.php b/src/Taxonomy/Types/ValueConstraint.php new file mode 100644 index 000000000..c1b509a09 --- /dev/null +++ b/src/Taxonomy/Types/ValueConstraint.php @@ -0,0 +1,53 @@ + [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'applicableForLocalizedAspectName' + ], + 'applicableForLocalizedAspectValues' => [ + 'type' => 'string', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'applicableForLocalizedAspectValues' + ] + ]; + + /** + * @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); + } +} diff --git a/test/Taxonomy/Enums/AspectDataTypeEnumTest.php b/test/Taxonomy/Enums/AspectDataTypeEnumTest.php new file mode 100644 index 000000000..70848d447 --- /dev/null +++ b/test/Taxonomy/Enums/AspectDataTypeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AspectDataTypeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Enums\AspectDataTypeEnum', $this->obj); + } +} diff --git a/test/Taxonomy/Enums/AspectModeEnumTest.php b/test/Taxonomy/Enums/AspectModeEnumTest.php new file mode 100644 index 000000000..a5bd07b7b --- /dev/null +++ b/test/Taxonomy/Enums/AspectModeEnumTest.php @@ -0,0 +1,28 @@ +obj = new AspectModeEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Enums\AspectModeEnum', $this->obj); + } +} diff --git a/test/Taxonomy/Enums/ItemToAspectCardinalityEnumTest.php b/test/Taxonomy/Enums/ItemToAspectCardinalityEnumTest.php new file mode 100644 index 000000000..e8da99891 --- /dev/null +++ b/test/Taxonomy/Enums/ItemToAspectCardinalityEnumTest.php @@ -0,0 +1,28 @@ +obj = new ItemToAspectCardinalityEnum(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Enums\ItemToAspectCardinalityEnum', $this->obj); + } +} diff --git a/test/Taxonomy/Types/AspectConstraintTest.php b/test/Taxonomy/Types/AspectConstraintTest.php new file mode 100644 index 000000000..fdeca8573 --- /dev/null +++ b/test/Taxonomy/Types/AspectConstraintTest.php @@ -0,0 +1,33 @@ +obj = new AspectConstraint(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\AspectConstraint', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Taxonomy/Types/AspectMetadataTest.php b/test/Taxonomy/Types/AspectMetadataTest.php new file mode 100644 index 000000000..07e2ced92 --- /dev/null +++ b/test/Taxonomy/Types/AspectMetadataTest.php @@ -0,0 +1,33 @@ +obj = new AspectMetadata(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\AspectMetadata', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Taxonomy/Types/AspectTest.php b/test/Taxonomy/Types/AspectTest.php new file mode 100644 index 000000000..0f485446e --- /dev/null +++ b/test/Taxonomy/Types/AspectTest.php @@ -0,0 +1,33 @@ +obj = new Aspect(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\Aspect', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Taxonomy/Types/AspectValueTest.php b/test/Taxonomy/Types/AspectValueTest.php new file mode 100644 index 000000000..06634dced --- /dev/null +++ b/test/Taxonomy/Types/AspectValueTest.php @@ -0,0 +1,33 @@ +obj = new AspectValue(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\AspectValue', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Taxonomy/Types/GetItemAspectsForCategoryRestRequestTest.php b/test/Taxonomy/Types/GetItemAspectsForCategoryRestRequestTest.php new file mode 100644 index 000000000..dcb56ffdc --- /dev/null +++ b/test/Taxonomy/Types/GetItemAspectsForCategoryRestRequestTest.php @@ -0,0 +1,33 @@ +obj = new GetItemAspectsForCategoryRestRequest(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestRequest', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Taxonomy/Types/GetItemAspectsForCategoryRestResponseTest.php b/test/Taxonomy/Types/GetItemAspectsForCategoryRestResponseTest.php new file mode 100644 index 000000000..0e3caf02b --- /dev/null +++ b/test/Taxonomy/Types/GetItemAspectsForCategoryRestResponseTest.php @@ -0,0 +1,33 @@ +obj = new GetItemAspectsForCategoryRestResponse(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\GetItemAspectsForCategoryRestResponse', $this->obj); + } + + public function testExtendsAspectMetadata() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\AspectMetadata', $this->obj); + } +} diff --git a/test/Taxonomy/Types/ValueConstraintTest.php b/test/Taxonomy/Types/ValueConstraintTest.php new file mode 100644 index 000000000..6d61d7030 --- /dev/null +++ b/test/Taxonomy/Types/ValueConstraintTest.php @@ -0,0 +1,33 @@ +obj = new ValueConstraint(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Taxonomy\Types\ValueConstraint', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} From 0ab6380d40d77a7de6f5168b62f4f1ceb32a1d3f Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 14 Dec 2017 16:58:24 +0000 Subject: [PATCH 05/10] api: support shopping api version 1027 --- CHANGELOG.md | 1 + src/Shopping/Services/ShoppingService.php | 46 +--------- src/Shopping/Types/BuyingGuideDetailsType.php | 14 ---- src/Shopping/Types/BuyingGuideType.php | 49 ----------- .../Types/FindHalfProductsRequestType.php | 74 ---------------- .../Types/FindHalfProductsResponseType.php | 49 ----------- .../Types/FindReviewsAndGuidesRequestType.php | 53 ------------ .../FindReviewsAndGuidesResponseType.php | 77 ----------------- src/Shopping/Types/HalfCatalogProductType.php | 84 ------------------- src/Shopping/Types/HalfProductsType.php | 7 -- src/Shopping/Types/ProductIDType.php | 7 -- src/Shopping/Types/ReviewDetailsType.php | 14 ---- src/Shopping/Types/ReviewType.php | 42 ---------- src/Shopping/Types/SimpleItemArrayType.php | 7 -- src/Shopping/Types/SimpleItemType.php | 7 -- 15 files changed, 2 insertions(+), 529 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1791bf800..8218499d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ * 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. ## 13.1.0 - 2017-09-24 diff --git a/src/Shopping/Services/ShoppingService.php b/src/Shopping/Services/ShoppingService.php index e12ab8f62..a6377593b 100644 --- a/src/Shopping/Services/ShoppingService.php +++ b/src/Shopping/Services/ShoppingService.php @@ -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. @@ -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 @@ -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 diff --git a/src/Shopping/Types/BuyingGuideDetailsType.php b/src/Shopping/Types/BuyingGuideDetailsType.php index d1f541e00..774658bf1 100644 --- a/src/Shopping/Types/BuyingGuideDetailsType.php +++ b/src/Shopping/Types/BuyingGuideDetailsType.php @@ -12,8 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Types\BuyingGuideType[] $BuyingGuide - * @property string $BuyingGuideHub */ class BuyingGuideDetailsType extends \DTS\eBaySDK\Types\BaseType { @@ -21,18 +19,6 @@ class BuyingGuideDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'BuyingGuide' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\BuyingGuideType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'BuyingGuide' - ], - 'BuyingGuideHub' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'BuyingGuideHub' - ] ]; /** diff --git a/src/Shopping/Types/BuyingGuideType.php b/src/Shopping/Types/BuyingGuideType.php index f0202ab0d..b4024dcbd 100644 --- a/src/Shopping/Types/BuyingGuideType.php +++ b/src/Shopping/Types/BuyingGuideType.php @@ -12,13 +12,6 @@ /** * - * @property string $Name - * @property string $URL - * @property string $CategoryID - * @property string $Title - * @property string $Text - * @property \DateTime $CreationTime - * @property string $UserID */ class BuyingGuideType extends \DTS\eBaySDK\Types\BaseType { @@ -26,48 +19,6 @@ class BuyingGuideType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Name' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Name' - ], - 'URL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'URL' - ], - 'CategoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CategoryID' - ], - 'Title' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Title' - ], - 'Text' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Text' - ], - 'CreationTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CreationTime' - ], - 'UserID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'UserID' - ] ]; /** diff --git a/src/Shopping/Types/FindHalfProductsRequestType.php b/src/Shopping/Types/FindHalfProductsRequestType.php index d0aa3b831..ef8098898 100644 --- a/src/Shopping/Types/FindHalfProductsRequestType.php +++ b/src/Shopping/Types/FindHalfProductsRequestType.php @@ -12,16 +12,6 @@ /** * - * @property string $IncludeSelector - * @property boolean $AvailableItemsOnly - * @property string[] $DomainName - * @property \DTS\eBaySDK\Shopping\Types\ProductIDType $ProductID - * @property string $QueryKeywords - * @property string $SellerID - * @property \DTS\eBaySDK\Shopping\Enums\ProductSortCodeType $ProductSort - * @property \DTS\eBaySDK\Shopping\Enums\SortOrderCodeType $SortOrder - * @property integer $MaxEntries - * @property integer $PageNumber */ class FindHalfProductsRequestType extends \DTS\eBaySDK\Shopping\Types\AbstractRequestType { @@ -29,66 +19,6 @@ class FindHalfProductsRequestType extends \DTS\eBaySDK\Shopping\Types\AbstractRe * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'IncludeSelector' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'IncludeSelector' - ], - 'AvailableItemsOnly' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'AvailableItemsOnly' - ], - 'DomainName' => [ - 'type' => 'string', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'DomainName' - ], - 'ProductID' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ProductIDType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ProductID' - ], - 'QueryKeywords' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'QueryKeywords' - ], - 'SellerID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerID' - ], - 'ProductSort' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ProductSort' - ], - 'SortOrder' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SortOrder' - ], - 'MaxEntries' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'MaxEntries' - ], - 'PageNumber' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PageNumber' - ] ]; /** @@ -108,10 +38,6 @@ public function __construct(array $values = []) self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; } - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'FindHalfProductsRequest'; - } - $this->setValues(__CLASS__, $childValues); } } diff --git a/src/Shopping/Types/FindHalfProductsResponseType.php b/src/Shopping/Types/FindHalfProductsResponseType.php index d58a2d715..e90659b6b 100644 --- a/src/Shopping/Types/FindHalfProductsResponseType.php +++ b/src/Shopping/Types/FindHalfProductsResponseType.php @@ -12,13 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Types\DomainHistogramType $DomainHistogram - * @property integer $PageNumber - * @property integer $ApproximatePages - * @property boolean $MoreResults - * @property integer $TotalProducts - * @property \DTS\eBaySDK\Shopping\Types\HalfProductsType[] $Products - * @property string $ProductSearchURL */ class FindHalfProductsResponseType extends \DTS\eBaySDK\Shopping\Types\AbstractResponseType { @@ -26,48 +19,6 @@ class FindHalfProductsResponseType extends \DTS\eBaySDK\Shopping\Types\AbstractR * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'DomainHistogram' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\DomainHistogramType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DomainHistogram' - ], - 'PageNumber' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PageNumber' - ], - 'ApproximatePages' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ApproximatePages' - ], - 'MoreResults' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'MoreResults' - ], - 'TotalProducts' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TotalProducts' - ], - 'Products' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\HalfProductsType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Products' - ], - 'ProductSearchURL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ProductSearchURL' - ] ]; /** diff --git a/src/Shopping/Types/FindReviewsAndGuidesRequestType.php b/src/Shopping/Types/FindReviewsAndGuidesRequestType.php index 3bb42f321..35c659b3a 100644 --- a/src/Shopping/Types/FindReviewsAndGuidesRequestType.php +++ b/src/Shopping/Types/FindReviewsAndGuidesRequestType.php @@ -12,13 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Types\ProductIDType $ProductID - * @property string $UserID - * @property string $CategoryID - * @property integer $MaxResultsPerPage - * @property integer $PageNumber - * @property \DTS\eBaySDK\Shopping\Enums\ReviewSortCodeType $ReviewSort - * @property \DTS\eBaySDK\Shopping\Enums\SortOrderCodeType $SortOrder */ class FindReviewsAndGuidesRequestType extends \DTS\eBaySDK\Shopping\Types\AbstractRequestType { @@ -26,48 +19,6 @@ class FindReviewsAndGuidesRequestType extends \DTS\eBaySDK\Shopping\Types\Abstra * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'ProductID' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ProductIDType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ProductID' - ], - 'UserID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'UserID' - ], - 'CategoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CategoryID' - ], - 'MaxResultsPerPage' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'MaxResultsPerPage' - ], - 'PageNumber' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PageNumber' - ], - 'ReviewSort' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewSort' - ], - 'SortOrder' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SortOrder' - ] ]; /** @@ -87,10 +38,6 @@ public function __construct(array $values = []) self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; } - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'FindReviewsAndGuidesRequest'; - } - $this->setValues(__CLASS__, $childValues); } } diff --git a/src/Shopping/Types/FindReviewsAndGuidesResponseType.php b/src/Shopping/Types/FindReviewsAndGuidesResponseType.php index 9abeba578..9e9adb1e6 100644 --- a/src/Shopping/Types/FindReviewsAndGuidesResponseType.php +++ b/src/Shopping/Types/FindReviewsAndGuidesResponseType.php @@ -12,17 +12,6 @@ /** * - * @property integer $ReviewCount - * @property integer $BuyingGuideCount - * @property integer $ReviewerRank - * @property integer $TotalHelpfulnessVotes - * @property \DTS\eBaySDK\Shopping\Types\ProductIDType $ProductID - * @property string $ReviewsAndGuidesURL - * @property integer $PageNumber - * @property integer $TotalPages - * @property \DTS\eBaySDK\Shopping\Types\BuyingGuideDetailsType $BuyingGuideDetails - * @property \DTS\eBaySDK\Shopping\Types\ReviewDetailsType $ReviewDetails - * @property integer $PositiveHelpfulnessVotes */ class FindReviewsAndGuidesResponseType extends \DTS\eBaySDK\Shopping\Types\AbstractResponseType { @@ -30,72 +19,6 @@ class FindReviewsAndGuidesResponseType extends \DTS\eBaySDK\Shopping\Types\Abstr * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'ReviewCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewCount' - ], - 'BuyingGuideCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'BuyingGuideCount' - ], - 'ReviewerRank' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewerRank' - ], - 'TotalHelpfulnessVotes' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TotalHelpfulnessVotes' - ], - 'ProductID' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ProductIDType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ProductID' - ], - 'ReviewsAndGuidesURL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewsAndGuidesURL' - ], - 'PageNumber' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PageNumber' - ], - 'TotalPages' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TotalPages' - ], - 'BuyingGuideDetails' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\BuyingGuideDetailsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'BuyingGuideDetails' - ], - 'ReviewDetails' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ReviewDetailsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewDetails' - ], - 'PositiveHelpfulnessVotes' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PositiveHelpfulnessVotes' - ] ]; /** diff --git a/src/Shopping/Types/HalfCatalogProductType.php b/src/Shopping/Types/HalfCatalogProductType.php index 420e3f927..e3ec8b3fb 100644 --- a/src/Shopping/Types/HalfCatalogProductType.php +++ b/src/Shopping/Types/HalfCatalogProductType.php @@ -12,18 +12,6 @@ /** * - * @property string $Title - * @property string $DetailsURL - * @property string $StockPhotoURL - * @property \DTS\eBaySDK\Shopping\Types\ShippingCostSummaryType $ShippingCostSummary - * @property boolean $DisplayStockPhotos - * @property integer $ItemCount - * @property \DTS\eBaySDK\Shopping\Types\ProductIDType[] $ProductID - * @property string $DomainName - * @property \DTS\eBaySDK\Shopping\Types\NameValueListArrayType $ItemSpecifics - * @property \DTS\eBaySDK\Shopping\Types\SimpleItemArrayType $ItemArray - * @property integer $ReviewCount - * @property \DTS\eBaySDK\Shopping\Types\AmountType $MinPrice */ class HalfCatalogProductType extends \DTS\eBaySDK\Types\BaseType { @@ -31,78 +19,6 @@ class HalfCatalogProductType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Title' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Title' - ], - 'DetailsURL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DetailsURL' - ], - 'StockPhotoURL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'StockPhotoURL' - ], - 'ShippingCostSummary' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ShippingCostSummaryType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ShippingCostSummary' - ], - 'DisplayStockPhotos' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DisplayStockPhotos' - ], - 'ItemCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemCount' - ], - 'ProductID' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ProductIDType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'ProductID' - ], - 'DomainName' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DomainName' - ], - 'ItemSpecifics' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\NameValueListArrayType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemSpecifics' - ], - 'ItemArray' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\SimpleItemArrayType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemArray' - ], - 'ReviewCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReviewCount' - ], - 'MinPrice' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'MinPrice' - ] ]; /** diff --git a/src/Shopping/Types/HalfProductsType.php b/src/Shopping/Types/HalfProductsType.php index 1d6575c55..f826f90ef 100644 --- a/src/Shopping/Types/HalfProductsType.php +++ b/src/Shopping/Types/HalfProductsType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Types\HalfCatalogProductType[] $Product */ class HalfProductsType extends \DTS\eBaySDK\Types\BaseType { @@ -20,12 +19,6 @@ class HalfProductsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Product' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\HalfCatalogProductType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Product' - ] ]; /** diff --git a/src/Shopping/Types/ProductIDType.php b/src/Shopping/Types/ProductIDType.php index 519dc91b1..cb5a68402 100644 --- a/src/Shopping/Types/ProductIDType.php +++ b/src/Shopping/Types/ProductIDType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Enums\ProductIDCodeType $type */ class ProductIDType extends \DTS\eBaySDK\Types\StringType { @@ -20,12 +19,6 @@ class ProductIDType extends \DTS\eBaySDK\Types\StringType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'type' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'type' - ] ]; /** diff --git a/src/Shopping/Types/ReviewDetailsType.php b/src/Shopping/Types/ReviewDetailsType.php index a3aacb12b..1e387fabd 100644 --- a/src/Shopping/Types/ReviewDetailsType.php +++ b/src/Shopping/Types/ReviewDetailsType.php @@ -12,8 +12,6 @@ /** * - * @property double $AverageRating - * @property \DTS\eBaySDK\Shopping\Types\ReviewType[] $Review */ class ReviewDetailsType extends \DTS\eBaySDK\Types\BaseType { @@ -21,18 +19,6 @@ class ReviewDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'AverageRating' => [ - 'type' => 'double', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'AverageRating' - ], - 'Review' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\ReviewType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Review' - ] ]; /** diff --git a/src/Shopping/Types/ReviewType.php b/src/Shopping/Types/ReviewType.php index 8bfa62e98..3baa4ce91 100644 --- a/src/Shopping/Types/ReviewType.php +++ b/src/Shopping/Types/ReviewType.php @@ -12,12 +12,6 @@ /** * - * @property string $URL - * @property string $Title - * @property integer $Rating - * @property string $Text - * @property string $UserID - * @property \DateTime $CreationTime */ class ReviewType extends \DTS\eBaySDK\Types\BaseType { @@ -25,42 +19,6 @@ class ReviewType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'URL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'URL' - ], - 'Title' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Title' - ], - 'Rating' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Rating' - ], - 'Text' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Text' - ], - 'UserID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'UserID' - ], - 'CreationTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CreationTime' - ] ]; /** diff --git a/src/Shopping/Types/SimpleItemArrayType.php b/src/Shopping/Types/SimpleItemArrayType.php index f731d4c81..2bd47e89b 100644 --- a/src/Shopping/Types/SimpleItemArrayType.php +++ b/src/Shopping/Types/SimpleItemArrayType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Shopping\Types\SimpleItemType[] $Item */ class SimpleItemArrayType extends \DTS\eBaySDK\Types\BaseType { @@ -20,12 +19,6 @@ class SimpleItemArrayType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Item' => [ - 'type' => 'DTS\eBaySDK\Shopping\Types\SimpleItemType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Item' - ] ]; /** diff --git a/src/Shopping/Types/SimpleItemType.php b/src/Shopping/Types/SimpleItemType.php index da1965722..0992fe7bf 100644 --- a/src/Shopping/Types/SimpleItemType.php +++ b/src/Shopping/Types/SimpleItemType.php @@ -82,7 +82,6 @@ * @property \DTS\eBaySDK\Shopping\Types\ItemCompatibilityListType $ItemCompatibilityList * @property integer $QuantitySoldByPickupInStore * @property string $SKU - * @property boolean $NewBestOffer * @property boolean $eBayNowEligible * @property boolean $eBayNowAvailable * @property boolean $IgnoreQuantity @@ -515,12 +514,6 @@ class SimpleItemType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'SKU' ], - 'NewBestOffer' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'NewBestOffer' - ], 'eBayNowEligible' => [ 'type' => 'boolean', 'repeatable' => false, From 15eca22b186030127ada9bcbd7e3e9d4fd3b0469 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Thu, 14 Dec 2017 17:01:58 +0000 Subject: [PATCH 06/10] api: support trading api version 1039 --- CHANGELOG.md | 1 + src/Trading/Enums/GiftServicesCodeType.php | 19 ---- src/Trading/Services/TradingService.php | 46 +-------- src/Trading/Types/AttributeArrayType.php | 7 -- src/Trading/Types/AttributeType.php | 21 ---- src/Trading/Types/BuyingGuideDetailsType.php | 14 --- src/Trading/Types/BuyingGuideType.php | 49 ---------- src/Trading/Types/CancelOfferArrayType.php | 7 -- src/Trading/Types/CancelOfferType.php | 14 --- src/Trading/Types/CharityInfoType.php | 7 ++ src/Trading/Types/CheckoutStatusType.php | 7 -- .../Types/CombinedPaymentPreferencesType.php | 21 ---- .../Types/EndItemRequestContainerType.php | 7 -- src/Trading/Types/EndItemRequestType.php | 7 -- .../Types/GetMyeBaySellingRequestType.php | 7 -- .../Types/GetSellerPaymentsRequestType.php | 75 --------------- .../Types/GetSellerPaymentsResponseType.php | 85 ---------------- ...etShippingDiscountProfilesResponseType.php | 14 --- .../Types/GetUserPreferencesResponseType.php | 7 -- .../Types/GeteBayDetailsResponseType.php | 7 ++ src/Trading/Types/InsuranceDetailsType.php | 14 --- src/Trading/Types/IssueRefundRequestType.php | 96 ------------------- src/Trading/Types/ItemType.php | 35 ++----- ...ponseType.php => MembershipDetailType.php} | 25 +++-- ...ctIDType.php => MembershipDetailsType.php} | 9 +- src/Trading/Types/MyMessagesSummaryType.php | 21 ---- src/Trading/Types/OfferType.php | 14 --- src/Trading/Types/OrderType.php | 7 -- .../Types/PaymentTransactionCodeType.php | 56 ----------- src/Trading/Types/PictureDetailsType.php | 7 -- src/Trading/Types/RefundArrayType.php | 7 -- src/Trading/Types/RefundType.php | 35 ------- .../Types/ReviseCheckoutStatusRequestType.php | 14 --- src/Trading/Types/SellerPaymentType.php | 91 ------------------ ...SetShippingDiscountProfilesRequestType.php | 14 --- .../Types/SetUserPreferencesRequestType.php | 7 -- src/Trading/Types/ShipmentType.php | 7 -- src/Trading/Types/ShippingDetailsType.php | 21 ---- src/Trading/Types/SiteDefaultsType.php | 7 -- src/Trading/Types/TransactionType.php | 28 ------ src/Trading/Types/UserDefinedListType.php | 7 -- src/Trading/Types/UserType.php | 14 +-- src/Trading/Types/ValType.php | 21 ---- .../Enums/GiftServicesCodeTypeTest.php | 28 ------ .../GetSellerPaymentsRequestTypeTest.php | 33 ------- .../GetSellerPaymentsResponseTypeTest.php | 33 ------- .../Types/IssueRefundRequestTypeTest.php | 33 ------- .../Types/IssueRefundResponseTypeTest.php | 33 ------- .../Types/MembershipDetailTypeTest.php | 33 +++++++ ...Test.php => MembershipDetailsTypeTest.php} | 8 +- 50 files changed, 91 insertions(+), 1089 deletions(-) delete mode 100644 src/Trading/Enums/GiftServicesCodeType.php delete mode 100644 src/Trading/Types/GetSellerPaymentsRequestType.php delete mode 100644 src/Trading/Types/GetSellerPaymentsResponseType.php delete mode 100644 src/Trading/Types/IssueRefundRequestType.php rename src/Trading/Types/{IssueRefundResponseType.php => MembershipDetailType.php} (69%) rename src/Trading/Types/{ExternalProductIDType.php => MembershipDetailsType.php} (76%) delete mode 100644 test/Trading/Enums/GiftServicesCodeTypeTest.php delete mode 100644 test/Trading/Types/GetSellerPaymentsRequestTypeTest.php delete mode 100644 test/Trading/Types/GetSellerPaymentsResponseTypeTest.php delete mode 100644 test/Trading/Types/IssueRefundRequestTypeTest.php delete mode 100644 test/Trading/Types/IssueRefundResponseTypeTest.php create mode 100644 test/Trading/Types/MembershipDetailTypeTest.php rename test/Trading/Types/{ExternalProductIDTypeTest.php => MembershipDetailsTypeTest.php} (65%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8218499d7..bce980930 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * 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 diff --git a/src/Trading/Enums/GiftServicesCodeType.php b/src/Trading/Enums/GiftServicesCodeType.php deleted file mode 100644 index 4fa040175..000000000 --- a/src/Trading/Enums/GiftServicesCodeType.php +++ /dev/null @@ -1,19 +0,0 @@ -getSellerPaymentsAsync($request)->wait(); - } - - /** - * @param \DTS\eBaySDK\Trading\Types\GetSellerPaymentsRequestType $request - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function getSellerPaymentsAsync(\DTS\eBaySDK\Trading\Types\GetSellerPaymentsRequestType $request) - { - return $this->callOperationAsync( - 'GetSellerPayments', - $request, - '\DTS\eBaySDK\Trading\Types\GetSellerPaymentsResponseType' - ); - } - /** * @param \DTS\eBaySDK\Trading\Types\GetSellerTransactionsRequestType $request * @return \DTS\eBaySDK\Trading\Types\GetSellerTransactionsResponseType @@ -2112,28 +2090,6 @@ public function geteBayOfficialTimeAsync(\DTS\eBaySDK\Trading\Types\GeteBayOffic ); } - /** - * @param \DTS\eBaySDK\Trading\Types\IssueRefundRequestType $request - * @return \DTS\eBaySDK\Trading\Types\IssueRefundResponseType - */ - public function issueRefund(\DTS\eBaySDK\Trading\Types\IssueRefundRequestType $request) - { - return $this->issueRefundAsync($request)->wait(); - } - - /** - * @param \DTS\eBaySDK\Trading\Types\IssueRefundRequestType $request - * @return \GuzzleHttp\Promise\PromiseInterface - */ - public function issueRefundAsync(\DTS\eBaySDK\Trading\Types\IssueRefundRequestType $request) - { - return $this->callOperationAsync( - 'IssueRefund', - $request, - '\DTS\eBaySDK\Trading\Types\IssueRefundResponseType' - ); - } - /** * @param \DTS\eBaySDK\Trading\Types\LeaveFeedbackRequestType $request * @return \DTS\eBaySDK\Trading\Types\LeaveFeedbackResponseType diff --git a/src/Trading/Types/AttributeArrayType.php b/src/Trading/Types/AttributeArrayType.php index ccb1e7113..1864e58e3 100644 --- a/src/Trading/Types/AttributeArrayType.php +++ b/src/Trading/Types/AttributeArrayType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\AttributeType[] $Attribute */ class AttributeArrayType extends \DTS\eBaySDK\Types\BaseType { @@ -20,12 +19,6 @@ class AttributeArrayType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Attribute' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AttributeType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Attribute' - ] ]; /** diff --git a/src/Trading/Types/AttributeType.php b/src/Trading/Types/AttributeType.php index b4731b766..8de8b3cdd 100644 --- a/src/Trading/Types/AttributeType.php +++ b/src/Trading/Types/AttributeType.php @@ -12,9 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\ValType[] $Value - * @property integer $attributeID - * @property string $attributeLabel */ class AttributeType extends \DTS\eBaySDK\Types\BaseType { @@ -22,24 +19,6 @@ class AttributeType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Value' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ValType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Value' - ], - 'attributeID' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'attributeID' - ], - 'attributeLabel' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => true, - 'attributeName' => 'attributeLabel' - ] ]; /** diff --git a/src/Trading/Types/BuyingGuideDetailsType.php b/src/Trading/Types/BuyingGuideDetailsType.php index fe46f715e..bbf4e91ae 100644 --- a/src/Trading/Types/BuyingGuideDetailsType.php +++ b/src/Trading/Types/BuyingGuideDetailsType.php @@ -12,8 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\BuyingGuideType[] $BuyingGuide - * @property string $BuyingGuideHub */ class BuyingGuideDetailsType extends \DTS\eBaySDK\Types\BaseType { @@ -21,18 +19,6 @@ class BuyingGuideDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'BuyingGuide' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\BuyingGuideType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'BuyingGuide' - ], - 'BuyingGuideHub' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'BuyingGuideHub' - ] ]; /** diff --git a/src/Trading/Types/BuyingGuideType.php b/src/Trading/Types/BuyingGuideType.php index b3c10dd48..f40f7a2bf 100644 --- a/src/Trading/Types/BuyingGuideType.php +++ b/src/Trading/Types/BuyingGuideType.php @@ -12,13 +12,6 @@ /** * - * @property string $Name - * @property string $URL - * @property string $CategoryID - * @property string $Title - * @property string $Text - * @property \DateTime $CreationTime - * @property string $UserID */ class BuyingGuideType extends \DTS\eBaySDK\Types\BaseType { @@ -26,48 +19,6 @@ class BuyingGuideType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Name' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Name' - ], - 'URL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'URL' - ], - 'CategoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CategoryID' - ], - 'Title' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Title' - ], - 'Text' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Text' - ], - 'CreationTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CreationTime' - ], - 'UserID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'UserID' - ] ]; /** diff --git a/src/Trading/Types/CancelOfferArrayType.php b/src/Trading/Types/CancelOfferArrayType.php index c5c2c0d81..b9c8f1df7 100644 --- a/src/Trading/Types/CancelOfferArrayType.php +++ b/src/Trading/Types/CancelOfferArrayType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\CancelOfferType[] $CancelOffer */ class CancelOfferArrayType extends \DTS\eBaySDK\Types\BaseType { @@ -20,12 +19,6 @@ class CancelOfferArrayType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'CancelOffer' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\CancelOfferType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'CancelOffer' - ] ]; /** diff --git a/src/Trading/Types/CancelOfferType.php b/src/Trading/Types/CancelOfferType.php index b05be1a86..7d0721198 100644 --- a/src/Trading/Types/CancelOfferType.php +++ b/src/Trading/Types/CancelOfferType.php @@ -12,8 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\OfferType $Offer - * @property string $Explanation */ class CancelOfferType extends \DTS\eBaySDK\Types\BaseType { @@ -21,18 +19,6 @@ class CancelOfferType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Offer' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\OfferType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Offer' - ], - 'Explanation' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Explanation' - ] ]; /** diff --git a/src/Trading/Types/CharityInfoType.php b/src/Trading/Types/CharityInfoType.php index 6dc40632f..f93069b26 100644 --- a/src/Trading/Types/CharityInfoType.php +++ b/src/Trading/Types/CharityInfoType.php @@ -21,6 +21,7 @@ * @property integer $CharityRegion * @property integer[] $CharityDomain * @property string $LogoURLSelling + * @property boolean $DisplayLogoSelling * @property string $Description * @property string $ExternalID * @property integer $PopularityIndex @@ -90,6 +91,12 @@ class CharityInfoType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'LogoURLSelling' ], + 'DisplayLogoSelling' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'DisplayLogoSelling' + ], 'Description' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/CheckoutStatusType.php b/src/Trading/Types/CheckoutStatusType.php index c0ad9d9e8..d474405f1 100644 --- a/src/Trading/Types/CheckoutStatusType.php +++ b/src/Trading/Types/CheckoutStatusType.php @@ -17,7 +17,6 @@ * @property \DTS\eBaySDK\Trading\Enums\BuyerPaymentMethodCodeType $PaymentMethod * @property \DTS\eBaySDK\Trading\Enums\CompleteStatusCodeType $Status * @property boolean $IntegratedMerchantCreditCardEnabled - * @property \DTS\eBaySDK\Trading\Types\EBayPaymentMismatchDetailsType $eBayPaymentMismatchDetails * @property \DTS\eBaySDK\Trading\Enums\BuyerPaymentInstrumentCodeType $PaymentInstrument */ class CheckoutStatusType extends \DTS\eBaySDK\Types\BaseType @@ -56,12 +55,6 @@ class CheckoutStatusType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'IntegratedMerchantCreditCardEnabled' ], - 'eBayPaymentMismatchDetails' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\EBayPaymentMismatchDetailsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'eBayPaymentMismatchDetails' - ], 'PaymentInstrument' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/CombinedPaymentPreferencesType.php b/src/Trading/Types/CombinedPaymentPreferencesType.php index fdb823f8e..5957c5ebc 100644 --- a/src/Trading/Types/CombinedPaymentPreferencesType.php +++ b/src/Trading/Types/CombinedPaymentPreferencesType.php @@ -12,10 +12,7 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\CalculatedShippingPreferencesType $CalculatedShippingPreferences * @property \DTS\eBaySDK\Trading\Enums\CombinedPaymentOptionCodeType $CombinedPaymentOption - * @property \DTS\eBaySDK\Trading\Enums\CombinedPaymentPeriodCodeType $CombinedPaymentPeriod - * @property \DTS\eBaySDK\Trading\Types\FlatShippingPreferencesType $FlatShippingPreferences */ class CombinedPaymentPreferencesType extends \DTS\eBaySDK\Types\BaseType { @@ -23,29 +20,11 @@ class CombinedPaymentPreferencesType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'CalculatedShippingPreferences' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\CalculatedShippingPreferencesType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CalculatedShippingPreferences' - ], 'CombinedPaymentOption' => [ 'type' => 'string', 'repeatable' => false, 'attribute' => false, 'elementName' => 'CombinedPaymentOption' - ], - 'CombinedPaymentPeriod' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CombinedPaymentPeriod' - ], - 'FlatShippingPreferences' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\FlatShippingPreferencesType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'FlatShippingPreferences' ] ]; diff --git a/src/Trading/Types/EndItemRequestContainerType.php b/src/Trading/Types/EndItemRequestContainerType.php index b93476388..541dcb999 100644 --- a/src/Trading/Types/EndItemRequestContainerType.php +++ b/src/Trading/Types/EndItemRequestContainerType.php @@ -15,7 +15,6 @@ * @property string $ItemID * @property \DTS\eBaySDK\Trading\Enums\EndReasonCodeType $EndingReason * @property string $MessageID - * @property string $SellerInventoryID */ class EndItemRequestContainerType extends \DTS\eBaySDK\Types\BaseType { @@ -40,12 +39,6 @@ class EndItemRequestContainerType extends \DTS\eBaySDK\Types\BaseType 'repeatable' => false, 'attribute' => false, 'elementName' => 'MessageID' - ], - 'SellerInventoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerInventoryID' ] ]; diff --git a/src/Trading/Types/EndItemRequestType.php b/src/Trading/Types/EndItemRequestType.php index d83137974..be275c4a9 100644 --- a/src/Trading/Types/EndItemRequestType.php +++ b/src/Trading/Types/EndItemRequestType.php @@ -14,7 +14,6 @@ * * @property string $ItemID * @property \DTS\eBaySDK\Trading\Enums\EndReasonCodeType $EndingReason - * @property string $SellerInventoryID */ class EndItemRequestType extends \DTS\eBaySDK\Trading\Types\AbstractRequestType { @@ -33,12 +32,6 @@ class EndItemRequestType extends \DTS\eBaySDK\Trading\Types\AbstractRequestType 'repeatable' => false, 'attribute' => false, 'elementName' => 'EndingReason' - ], - 'SellerInventoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerInventoryID' ] ]; diff --git a/src/Trading/Types/GetMyeBaySellingRequestType.php b/src/Trading/Types/GetMyeBaySellingRequestType.php index 4a3c88a52..6798bb237 100644 --- a/src/Trading/Types/GetMyeBaySellingRequestType.php +++ b/src/Trading/Types/GetMyeBaySellingRequestType.php @@ -16,7 +16,6 @@ * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $ActiveList * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $SoldList * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $UnsoldList - * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $BidList * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $DeletedFromSoldList * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $DeletedFromUnsoldList * @property \DTS\eBaySDK\Trading\Types\ItemListCustomizationType $SellingSummary @@ -52,12 +51,6 @@ class GetMyeBaySellingRequestType extends \DTS\eBaySDK\Trading\Types\AbstractReq 'attribute' => false, 'elementName' => 'UnsoldList' ], - 'BidList' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ItemListCustomizationType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'BidList' - ], 'DeletedFromSoldList' => [ 'type' => 'DTS\eBaySDK\Trading\Types\ItemListCustomizationType', 'repeatable' => false, diff --git a/src/Trading/Types/GetSellerPaymentsRequestType.php b/src/Trading/Types/GetSellerPaymentsRequestType.php deleted file mode 100644 index 9ffce4de9..000000000 --- a/src/Trading/Types/GetSellerPaymentsRequestType.php +++ /dev/null @@ -1,75 +0,0 @@ - [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentStatus' - ], - 'PaymentTimeFrom' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentTimeFrom' - ], - 'PaymentTimeTo' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentTimeTo' - ], - 'Pagination' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\PaginationType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Pagination' - ] - ]; - - /** - * @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); - } - - if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; - } - - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'GetSellerPaymentsRequest'; - } - - $this->setValues(__CLASS__, $childValues); - } -} diff --git a/src/Trading/Types/GetSellerPaymentsResponseType.php b/src/Trading/Types/GetSellerPaymentsResponseType.php deleted file mode 100644 index 53cdbc430..000000000 --- a/src/Trading/Types/GetSellerPaymentsResponseType.php +++ /dev/null @@ -1,85 +0,0 @@ - [ - 'type' => 'DTS\eBaySDK\Trading\Types\PaginationResultType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaginationResult' - ], - 'HasMorePayments' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'HasMorePayments' - ], - 'SellerPayment' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\SellerPaymentType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'SellerPayment' - ], - 'PaymentsPerPage' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentsPerPage' - ], - 'PageNumber' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PageNumber' - ], - 'ReturnedPaymentCountActual' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReturnedPaymentCountActual' - ] - ]; - - /** - * @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); - } - - if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; - } - - $this->setValues(__CLASS__, $childValues); - } -} diff --git a/src/Trading/Types/GetShippingDiscountProfilesResponseType.php b/src/Trading/Types/GetShippingDiscountProfilesResponseType.php index d0ecd695b..126308cfb 100644 --- a/src/Trading/Types/GetShippingDiscountProfilesResponseType.php +++ b/src/Trading/Types/GetShippingDiscountProfilesResponseType.php @@ -18,8 +18,6 @@ * @property boolean $PromotionalShippingDiscount * @property \DTS\eBaySDK\Trading\Types\CalculatedHandlingDiscountType $CalculatedHandlingDiscount * @property \DTS\eBaySDK\Trading\Types\PromotionalShippingDiscountDetailsType $PromotionalShippingDiscountDetails - * @property \DTS\eBaySDK\Trading\Types\ShippingInsuranceType $ShippingInsurance - * @property \DTS\eBaySDK\Trading\Types\ShippingInsuranceType $InternationalShippingInsurance * @property \DTS\eBaySDK\Trading\Enums\CombinedPaymentPeriodCodeType $CombinedDuration */ class GetShippingDiscountProfilesResponseType extends \DTS\eBaySDK\Trading\Types\AbstractResponseType @@ -64,18 +62,6 @@ class GetShippingDiscountProfilesResponseType extends \DTS\eBaySDK\Trading\Types 'attribute' => false, 'elementName' => 'PromotionalShippingDiscountDetails' ], - 'ShippingInsurance' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ShippingInsuranceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ShippingInsurance' - ], - 'InternationalShippingInsurance' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ShippingInsuranceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InternationalShippingInsurance' - ], 'CombinedDuration' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/GetUserPreferencesResponseType.php b/src/Trading/Types/GetUserPreferencesResponseType.php index 707397a0c..67efbe69a 100644 --- a/src/Trading/Types/GetUserPreferencesResponseType.php +++ b/src/Trading/Types/GetUserPreferencesResponseType.php @@ -22,7 +22,6 @@ * @property \DTS\eBaySDK\Trading\Types\UnpaidItemAssistancePreferencesType $UnpaidItemAssistancePreferences * @property \DTS\eBaySDK\Trading\Types\SellerExcludeShipToLocationPreferencesType $SellerExcludeShipToLocationPreferences * @property \DTS\eBaySDK\Trading\Types\PurchaseReminderEmailPreferencesType $PurchaseReminderEmailPreferences - * @property boolean $SellerThirdPartyCheckoutDisabled * @property \DTS\eBaySDK\Trading\Types\SellerProfilePreferencesType $SellerProfilePreferences * @property \DTS\eBaySDK\Trading\Types\SellerReturnPreferencesType $SellerReturnPreferences * @property boolean $OfferGlobalShippingProgramPreference @@ -99,12 +98,6 @@ class GetUserPreferencesResponseType extends \DTS\eBaySDK\Trading\Types\Abstract 'attribute' => false, 'elementName' => 'PurchaseReminderEmailPreferences' ], - 'SellerThirdPartyCheckoutDisabled' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerThirdPartyCheckoutDisabled' - ], 'SellerProfilePreferences' => [ 'type' => 'DTS\eBaySDK\Trading\Types\SellerProfilePreferencesType', 'repeatable' => false, diff --git a/src/Trading/Types/GeteBayDetailsResponseType.php b/src/Trading/Types/GeteBayDetailsResponseType.php index ce781b7ae..1ca2ae68b 100644 --- a/src/Trading/Types/GeteBayDetailsResponseType.php +++ b/src/Trading/Types/GeteBayDetailsResponseType.php @@ -15,6 +15,7 @@ * @property \DTS\eBaySDK\Trading\Types\CountryDetailsType[] $CountryDetails * @property \DTS\eBaySDK\Trading\Types\CurrencyDetailsType[] $CurrencyDetails * @property \DTS\eBaySDK\Trading\Types\DispatchTimeMaxDetailsType[] $DispatchTimeMaxDetails + * @property \DTS\eBaySDK\Trading\Types\PaymentOptionDetailsType[] $PaymentOptionDetails * @property \DTS\eBaySDK\Trading\Types\RegionDetailsType[] $RegionDetails * @property \DTS\eBaySDK\Trading\Types\ShippingLocationDetailsType[] $ShippingLocationDetails * @property \DTS\eBaySDK\Trading\Types\ShippingServiceDetailsType[] $ShippingServiceDetails @@ -61,6 +62,12 @@ class GeteBayDetailsResponseType extends \DTS\eBaySDK\Trading\Types\AbstractResp 'attribute' => false, 'elementName' => 'DispatchTimeMaxDetails' ], + 'PaymentOptionDetails' => [ + 'type' => 'DTS\eBaySDK\Trading\Types\PaymentOptionDetailsType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'PaymentOptionDetails' + ], 'RegionDetails' => [ 'type' => 'DTS\eBaySDK\Trading\Types\RegionDetailsType', 'repeatable' => true, diff --git a/src/Trading/Types/InsuranceDetailsType.php b/src/Trading/Types/InsuranceDetailsType.php index 1c3b0fa4c..56a2e1a3e 100644 --- a/src/Trading/Types/InsuranceDetailsType.php +++ b/src/Trading/Types/InsuranceDetailsType.php @@ -12,8 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\AmountType $InsuranceFee - * @property \DTS\eBaySDK\Trading\Enums\InsuranceOptionCodeType $InsuranceOption */ class InsuranceDetailsType extends \DTS\eBaySDK\Types\BaseType { @@ -21,18 +19,6 @@ class InsuranceDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'InsuranceFee' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InsuranceFee' - ], - 'InsuranceOption' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InsuranceOption' - ] ]; /** diff --git a/src/Trading/Types/IssueRefundRequestType.php b/src/Trading/Types/IssueRefundRequestType.php deleted file mode 100644 index 43d6e24bf..000000000 --- a/src/Trading/Types/IssueRefundRequestType.php +++ /dev/null @@ -1,96 +0,0 @@ - [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemID' - ], - 'TransactionID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TransactionID' - ], - 'RefundReason' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundReason' - ], - 'RefundType' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundType' - ], - 'RefundAmount' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundAmount' - ], - 'RefundMessage' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundMessage' - ], - 'OrderLineItemID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'OrderLineItemID' - ] - ]; - - /** - * @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); - } - - if (!array_key_exists(__CLASS__, self::$xmlNamespaces)) { - self::$xmlNamespaces[__CLASS__] = 'xmlns="urn:ebay:apis:eBLBaseComponents"'; - } - - if (!array_key_exists(__CLASS__, self::$requestXmlRootElementNames)) { - self::$requestXmlRootElementNames[__CLASS__] = 'IssueRefundRequest'; - } - - $this->setValues(__CLASS__, $childValues); - } -} diff --git a/src/Trading/Types/ItemType.php b/src/Trading/Types/ItemType.php index 0d11d7d3c..edff59836 100644 --- a/src/Trading/Types/ItemType.php +++ b/src/Trading/Types/ItemType.php @@ -13,7 +13,6 @@ /** * * @property string $ApplicationData - * @property \DTS\eBaySDK\Trading\Types\AttributeArrayType $AttributeArray * @property boolean $AutoPay * @property \DTS\eBaySDK\Trading\Types\PaymentDetailsType $PaymentDetails * @property \DTS\eBaySDK\Trading\Types\BiddingDetailsType $BiddingDetails @@ -26,8 +25,6 @@ * @property \DTS\eBaySDK\Trading\Enums\CurrencyCodeType $Currency * @property string $Description * @property \DTS\eBaySDK\Trading\Enums\DescriptionReviseModeCodeType $DescriptionReviseMode - * @property integer $GiftIcon - * @property \DTS\eBaySDK\Trading\Enums\GiftServicesCodeType[] $GiftServices * @property \DTS\eBaySDK\Trading\Enums\HitCounterCodeType $HitCounter * @property string $ItemID * @property \DTS\eBaySDK\Trading\Types\ListingDetailsType $ListingDetails @@ -78,7 +75,6 @@ * @property boolean $CategoryBasedAttributesPrefill * @property string $PostalCode * @property boolean $ShippingTermsInDescription - * @property string $SellerInventoryID * @property \DTS\eBaySDK\Trading\Types\PictureDetailsType $PictureDetails * @property integer $DispatchTimeMax * @property \DTS\eBaySDK\Trading\Types\AddressType $SellerContactDetails @@ -142,6 +138,7 @@ * @property boolean $eBayPlus * @property boolean $eBayPlusEligible * @property boolean $eMailDeliveryAvailable + * @property boolean $IsSecureDescription */ class ItemType extends \DTS\eBaySDK\Types\BaseType { @@ -155,12 +152,6 @@ class ItemType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ApplicationData' ], - 'AttributeArray' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AttributeArrayType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'AttributeArray' - ], 'AutoPay' => [ 'type' => 'boolean', 'repeatable' => false, @@ -233,18 +224,6 @@ class ItemType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'DescriptionReviseMode' ], - 'GiftIcon' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'GiftIcon' - ], - 'GiftServices' => [ - 'type' => 'string', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'GiftServices' - ], 'HitCounter' => [ 'type' => 'string', 'repeatable' => false, @@ -545,12 +524,6 @@ class ItemType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ShippingTermsInDescription' ], - 'SellerInventoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerInventoryID' - ], 'PictureDetails' => [ 'type' => 'DTS\eBaySDK\Trading\Types\PictureDetailsType', 'repeatable' => false, @@ -928,6 +901,12 @@ class ItemType extends \DTS\eBaySDK\Types\BaseType 'repeatable' => false, 'attribute' => false, 'elementName' => 'eMailDeliveryAvailable' + ], + 'IsSecureDescription' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'IsSecureDescription' ] ]; diff --git a/src/Trading/Types/IssueRefundResponseType.php b/src/Trading/Types/MembershipDetailType.php similarity index 69% rename from src/Trading/Types/IssueRefundResponseType.php rename to src/Trading/Types/MembershipDetailType.php index 3fe432ff0..8a4d98382 100644 --- a/src/Trading/Types/IssueRefundResponseType.php +++ b/src/Trading/Types/MembershipDetailType.php @@ -12,26 +12,33 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\AmountType $RefundFromSeller - * @property \DTS\eBaySDK\Trading\Types\AmountType $TotalRefundToBuyer + * @property string $ProgramName + * @property \DTS\eBaySDK\Trading\Enums\SiteCodeType $Site + * @property \DateTime $ExpiryDate */ -class IssueRefundResponseType extends \DTS\eBaySDK\Trading\Types\AbstractResponseType +class MembershipDetailType extends \DTS\eBaySDK\Types\BaseType { /** * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'RefundFromSeller' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', + 'ProgramName' => [ + 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'RefundFromSeller' + 'elementName' => 'ProgramName' ], - 'TotalRefundToBuyer' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', + 'Site' => [ + 'type' => 'string', 'repeatable' => false, 'attribute' => false, - 'elementName' => 'TotalRefundToBuyer' + 'elementName' => 'Site' + ], + 'ExpiryDate' => [ + 'type' => 'DateTime', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'ExpiryDate' ] ]; diff --git a/src/Trading/Types/ExternalProductIDType.php b/src/Trading/Types/MembershipDetailsType.php similarity index 76% rename from src/Trading/Types/ExternalProductIDType.php rename to src/Trading/Types/MembershipDetailsType.php index f9ca7c749..7bfde401e 100644 --- a/src/Trading/Types/ExternalProductIDType.php +++ b/src/Trading/Types/MembershipDetailsType.php @@ -12,13 +12,20 @@ /** * + * @property \DTS\eBaySDK\Trading\Types\MembershipDetailType[] $Program */ -class ExternalProductIDType extends \DTS\eBaySDK\Types\BaseType +class MembershipDetailsType extends \DTS\eBaySDK\Types\BaseType { /** * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ + 'Program' => [ + 'type' => 'DTS\eBaySDK\Trading\Types\MembershipDetailType', + 'repeatable' => true, + 'attribute' => false, + 'elementName' => 'Program' + ] ]; /** diff --git a/src/Trading/Types/MyMessagesSummaryType.php b/src/Trading/Types/MyMessagesSummaryType.php index 4e20d4bcc..0f3dea38d 100644 --- a/src/Trading/Types/MyMessagesSummaryType.php +++ b/src/Trading/Types/MyMessagesSummaryType.php @@ -13,11 +13,8 @@ /** * * @property \DTS\eBaySDK\Trading\Types\MyMessagesFolderSummaryType[] $FolderSummary - * @property integer $NewAlertCount * @property integer $NewMessageCount - * @property integer $UnresolvedAlertCount * @property integer $FlaggedMessageCount - * @property integer $TotalAlertCount * @property integer $TotalMessageCount * @property integer $NewHighPriorityCount * @property integer $TotalHighPriorityCount @@ -34,36 +31,18 @@ class MyMessagesSummaryType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'FolderSummary' ], - 'NewAlertCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'NewAlertCount' - ], 'NewMessageCount' => [ 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'NewMessageCount' ], - 'UnresolvedAlertCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'UnresolvedAlertCount' - ], 'FlaggedMessageCount' => [ 'type' => 'integer', 'repeatable' => false, 'attribute' => false, 'elementName' => 'FlaggedMessageCount' ], - 'TotalAlertCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TotalAlertCount' - ], 'TotalMessageCount' => [ 'type' => 'integer', 'repeatable' => false, diff --git a/src/Trading/Types/OfferType.php b/src/Trading/Types/OfferType.php index b85bf26f9..356e90721 100644 --- a/src/Trading/Types/OfferType.php +++ b/src/Trading/Types/OfferType.php @@ -14,7 +14,6 @@ * * @property \DTS\eBaySDK\Trading\Enums\BidActionCodeType $Action * @property \DTS\eBaySDK\Trading\Enums\CurrencyCodeType $Currency - * @property string $ItemID * @property \DTS\eBaySDK\Trading\Types\AmountType $MaxBid * @property integer $Quantity * @property boolean $SecondChanceEnabled @@ -22,7 +21,6 @@ * @property \DateTime $TimeBid * @property \DTS\eBaySDK\Trading\Types\AmountType $HighestBid * @property \DTS\eBaySDK\Trading\Types\AmountType $ConvertedPrice - * @property string $TransactionID * @property \DTS\eBaySDK\Trading\Types\UserType $User * @property boolean $UserConsent * @property string $Message @@ -47,12 +45,6 @@ class OfferType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'Currency' ], - 'ItemID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemID' - ], 'MaxBid' => [ 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', 'repeatable' => false, @@ -95,12 +87,6 @@ class OfferType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ConvertedPrice' ], - 'TransactionID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TransactionID' - ], 'User' => [ 'type' => 'DTS\eBaySDK\Trading\Types\UserType', 'repeatable' => false, diff --git a/src/Trading/Types/OrderType.php b/src/Trading/Types/OrderType.php index e5eb924d1..d27ecf253 100644 --- a/src/Trading/Types/OrderType.php +++ b/src/Trading/Types/OrderType.php @@ -39,7 +39,6 @@ * @property \DTS\eBaySDK\Trading\Types\PaymentHoldDetailType $PaymentHoldDetails * @property \DTS\eBaySDK\Trading\Types\AmountType $RefundAmount * @property string $RefundStatus - * @property \DTS\eBaySDK\Trading\Types\RefundArrayType $RefundArray * @property boolean $IsMultiLegShipping * @property \DTS\eBaySDK\Trading\Types\MultiLegShippingDetailsType $MultiLegShippingDetails * @property \DTS\eBaySDK\Trading\Types\PaymentsInformationType $MonetaryDetails @@ -226,12 +225,6 @@ class OrderType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'RefundStatus' ], - 'RefundArray' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\RefundArrayType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundArray' - ], 'IsMultiLegShipping' => [ 'type' => 'boolean', 'repeatable' => false, diff --git a/src/Trading/Types/PaymentTransactionCodeType.php b/src/Trading/Types/PaymentTransactionCodeType.php index d88c0b388..47209e478 100644 --- a/src/Trading/Types/PaymentTransactionCodeType.php +++ b/src/Trading/Types/PaymentTransactionCodeType.php @@ -12,14 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Enums\PaymentTransactionStatusCodeType $PaymentStatus - * @property \DTS\eBaySDK\Trading\Types\UserIdentityType $Payer - * @property \DTS\eBaySDK\Trading\Types\UserIdentityType $Payee - * @property \DateTime $PaymentTime - * @property \DTS\eBaySDK\Trading\Types\AmountType $PaymentAmount - * @property \DTS\eBaySDK\Trading\Types\TransactionReferenceType $ReferenceID - * @property \DTS\eBaySDK\Trading\Types\AmountType $FeeOrCreditAmount - * @property \DTS\eBaySDK\Trading\Types\TransactionReferenceType[] $PaymentReferenceID */ class PaymentTransactionCodeType extends \DTS\eBaySDK\Types\BaseType { @@ -27,54 +19,6 @@ class PaymentTransactionCodeType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'PaymentStatus' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentStatus' - ], - 'Payer' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\UserIdentityType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Payer' - ], - 'Payee' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\UserIdentityType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Payee' - ], - 'PaymentTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentTime' - ], - 'PaymentAmount' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentAmount' - ], - 'ReferenceID' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\TransactionReferenceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ReferenceID' - ], - 'FeeOrCreditAmount' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'FeeOrCreditAmount' - ], - 'PaymentReferenceID' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\TransactionReferenceType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'PaymentReferenceID' - ] ]; /** diff --git a/src/Trading/Types/PictureDetailsType.php b/src/Trading/Types/PictureDetailsType.php index 5164dc42c..706e873b5 100644 --- a/src/Trading/Types/PictureDetailsType.php +++ b/src/Trading/Types/PictureDetailsType.php @@ -12,7 +12,6 @@ /** * - * @property string $GalleryURL * @property \DTS\eBaySDK\Trading\Enums\GalleryTypeCodeType $GalleryType * @property \DTS\eBaySDK\Trading\Enums\PhotoDisplayCodeType $PhotoDisplay * @property string[] $PictureURL @@ -29,12 +28,6 @@ class PictureDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'GalleryURL' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'GalleryURL' - ], 'GalleryType' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/RefundArrayType.php b/src/Trading/Types/RefundArrayType.php index 87c081767..0a8566c61 100644 --- a/src/Trading/Types/RefundArrayType.php +++ b/src/Trading/Types/RefundArrayType.php @@ -12,7 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\RefundType[] $Refund */ class RefundArrayType extends \DTS\eBaySDK\Types\BaseType { @@ -20,12 +19,6 @@ class RefundArrayType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'Refund' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\RefundType', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'Refund' - ] ]; /** diff --git a/src/Trading/Types/RefundType.php b/src/Trading/Types/RefundType.php index ce1d11a0d..2c9dc36d4 100644 --- a/src/Trading/Types/RefundType.php +++ b/src/Trading/Types/RefundType.php @@ -12,11 +12,6 @@ /** * - * @property \DTS\eBaySDK\Trading\Types\AmountType $RefundFromSeller - * @property \DTS\eBaySDK\Trading\Types\AmountType $TotalRefundToBuyer - * @property \DateTime $RefundTime - * @property string $RefundID - * @property \DTS\eBaySDK\Trading\Types\AmountType $RefundAmount */ class RefundType extends \DTS\eBaySDK\Types\BaseType { @@ -24,36 +19,6 @@ class RefundType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'RefundFromSeller' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundFromSeller' - ], - 'TotalRefundToBuyer' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TotalRefundToBuyer' - ], - 'RefundTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundTime' - ], - 'RefundID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundID' - ], - 'RefundAmount' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundAmount' - ] ]; /** diff --git a/src/Trading/Types/ReviseCheckoutStatusRequestType.php b/src/Trading/Types/ReviseCheckoutStatusRequestType.php index 5ff287855..e229c9cc5 100644 --- a/src/Trading/Types/ReviseCheckoutStatusRequestType.php +++ b/src/Trading/Types/ReviseCheckoutStatusRequestType.php @@ -20,11 +20,9 @@ * @property \DTS\eBaySDK\Trading\Enums\CompleteStatusCodeType $CheckoutStatus * @property string $ShippingService * @property boolean $ShippingIncludedInTax - * @property \DTS\eBaySDK\Trading\Enums\InsuranceSelectedCodeType $InsuranceType * @property \DTS\eBaySDK\Trading\Enums\RCSPaymentStatusCodeType $PaymentStatus * @property \DTS\eBaySDK\Trading\Types\AmountType $AdjustmentAmount * @property string $BuyerID - * @property \DTS\eBaySDK\Trading\Types\AmountType $ShippingInsuranceCost * @property \DTS\eBaySDK\Trading\Types\AmountType $SalesTax * @property \DTS\eBaySDK\Trading\Types\AmountType $ShippingCost * @property string $EncryptedID @@ -87,12 +85,6 @@ class ReviseCheckoutStatusRequestType extends \DTS\eBaySDK\Trading\Types\Abstrac 'attribute' => false, 'elementName' => 'ShippingIncludedInTax' ], - 'InsuranceType' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InsuranceType' - ], 'PaymentStatus' => [ 'type' => 'string', 'repeatable' => false, @@ -111,12 +103,6 @@ class ReviseCheckoutStatusRequestType extends \DTS\eBaySDK\Trading\Types\Abstrac 'attribute' => false, 'elementName' => 'BuyerID' ], - 'ShippingInsuranceCost' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ShippingInsuranceCost' - ], 'SalesTax' => [ 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', 'repeatable' => false, diff --git a/src/Trading/Types/SellerPaymentType.php b/src/Trading/Types/SellerPaymentType.php index 3ae0eff63..8030a7f7f 100644 --- a/src/Trading/Types/SellerPaymentType.php +++ b/src/Trading/Types/SellerPaymentType.php @@ -12,19 +12,6 @@ /** * - * @property string $ItemID - * @property string $TransactionID - * @property string $OrderID - * @property string $SellerInventoryID - * @property string $PrivateNotes - * @property string $Title - * @property \DTS\eBaySDK\Trading\Enums\PaymentTypeCodeType $PaymentType - * @property \DTS\eBaySDK\Trading\Types\AmountType $TransactionPrice - * @property \DTS\eBaySDK\Trading\Types\AmountType $ShippingReimbursement - * @property \DTS\eBaySDK\Trading\Types\AmountType $Commission - * @property \DTS\eBaySDK\Trading\Types\AmountType $AmountPaid - * @property \DateTime $PaidTime - * @property string $OrderLineItemID */ class SellerPaymentType extends \DTS\eBaySDK\Types\BaseType { @@ -32,84 +19,6 @@ class SellerPaymentType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'ItemID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ItemID' - ], - 'TransactionID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TransactionID' - ], - 'OrderID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'OrderID' - ], - 'SellerInventoryID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerInventoryID' - ], - 'PrivateNotes' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PrivateNotes' - ], - 'Title' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Title' - ], - 'PaymentType' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaymentType' - ], - 'TransactionPrice' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'TransactionPrice' - ], - 'ShippingReimbursement' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ShippingReimbursement' - ], - 'Commission' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Commission' - ], - 'AmountPaid' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'AmountPaid' - ], - 'PaidTime' => [ - 'type' => 'DateTime', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'PaidTime' - ], - 'OrderLineItemID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'OrderLineItemID' - ] ]; /** diff --git a/src/Trading/Types/SetShippingDiscountProfilesRequestType.php b/src/Trading/Types/SetShippingDiscountProfilesRequestType.php index 73fae6ab0..f6a557711 100644 --- a/src/Trading/Types/SetShippingDiscountProfilesRequestType.php +++ b/src/Trading/Types/SetShippingDiscountProfilesRequestType.php @@ -19,8 +19,6 @@ * @property \DTS\eBaySDK\Trading\Types\CalculatedShippingDiscountType $CalculatedShippingDiscount * @property \DTS\eBaySDK\Trading\Types\CalculatedHandlingDiscountType $CalculatedHandlingDiscount * @property \DTS\eBaySDK\Trading\Types\PromotionalShippingDiscountDetailsType $PromotionalShippingDiscountDetails - * @property \DTS\eBaySDK\Trading\Types\ShippingInsuranceType $ShippingInsurance - * @property \DTS\eBaySDK\Trading\Types\ShippingInsuranceType $InternationalShippingInsurance */ class SetShippingDiscountProfilesRequestType extends \DTS\eBaySDK\Trading\Types\AbstractRequestType { @@ -69,18 +67,6 @@ class SetShippingDiscountProfilesRequestType extends \DTS\eBaySDK\Trading\Types\ 'repeatable' => false, 'attribute' => false, 'elementName' => 'PromotionalShippingDiscountDetails' - ], - 'ShippingInsurance' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ShippingInsuranceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ShippingInsurance' - ], - 'InternationalShippingInsurance' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ShippingInsuranceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InternationalShippingInsurance' ] ]; diff --git a/src/Trading/Types/SetUserPreferencesRequestType.php b/src/Trading/Types/SetUserPreferencesRequestType.php index 0e1d3493f..85338f8e8 100644 --- a/src/Trading/Types/SetUserPreferencesRequestType.php +++ b/src/Trading/Types/SetUserPreferencesRequestType.php @@ -21,7 +21,6 @@ * @property boolean $RequiredShipPhoneNumberPreference * @property \DTS\eBaySDK\Trading\Types\UnpaidItemAssistancePreferencesType $UnpaidItemAssistancePreferences * @property \DTS\eBaySDK\Trading\Types\PurchaseReminderEmailPreferencesType $PurchaseReminderEmailPreferences - * @property boolean $SellerThirdPartyCheckoutDisabled * @property \DTS\eBaySDK\Trading\Types\DispatchCutoffTimePreferencesType $DispatchCutoffTimePreference * @property boolean $GlobalShippingProgramListingPreference * @property boolean $OverrideGSPserviceWithIntlService @@ -87,12 +86,6 @@ class SetUserPreferencesRequestType extends \DTS\eBaySDK\Trading\Types\AbstractR 'attribute' => false, 'elementName' => 'PurchaseReminderEmailPreferences' ], - 'SellerThirdPartyCheckoutDisabled' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerThirdPartyCheckoutDisabled' - ], 'DispatchCutoffTimePreference' => [ 'type' => 'DTS\eBaySDK\Trading\Types\DispatchCutoffTimePreferencesType', 'repeatable' => false, diff --git a/src/Trading/Types/ShipmentType.php b/src/Trading/Types/ShipmentType.php index 00f3ca287..a6a46faf3 100644 --- a/src/Trading/Types/ShipmentType.php +++ b/src/Trading/Types/ShipmentType.php @@ -35,7 +35,6 @@ * @property \DateTime $RefundRequestedTime * @property \DTS\eBaySDK\Trading\Enums\ShipmentStatusCodeType $Status * @property \DateTime $ShippedTime - * @property string $Notes * @property \DTS\eBaySDK\Trading\Types\ShipmentTrackingDetailsType[] $ShipmentTrackingDetails * @property \DTS\eBaySDK\Trading\Types\ShipmentLineItemType $ShipmentLineItem */ @@ -183,12 +182,6 @@ class ShipmentType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ShippedTime' ], - 'Notes' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'Notes' - ], 'ShipmentTrackingDetails' => [ 'type' => 'DTS\eBaySDK\Trading\Types\ShipmentTrackingDetailsType', 'repeatable' => true, diff --git a/src/Trading/Types/ShippingDetailsType.php b/src/Trading/Types/ShippingDetailsType.php index 91c1d1053..9e64820ae 100644 --- a/src/Trading/Types/ShippingDetailsType.php +++ b/src/Trading/Types/ShippingDetailsType.php @@ -27,9 +27,6 @@ * @property integer $SellingManagerSalesRecordNumber * @property \DTS\eBaySDK\Trading\Types\TaxTableType $TaxTable * @property string $ShippingServiceUsed - * @property \DTS\eBaySDK\Trading\Types\AmountType $DefaultShippingCost - * @property \DTS\eBaySDK\Trading\Types\InsuranceDetailsType $InsuranceDetails - * @property \DTS\eBaySDK\Trading\Types\InsuranceDetailsType $InternationalInsuranceDetails * @property string $ShippingDiscountProfileID * @property \DTS\eBaySDK\Trading\Types\FlatShippingDiscountType $FlatShippingDiscount * @property \DTS\eBaySDK\Trading\Types\CalculatedShippingDiscountType $CalculatedShippingDiscount @@ -141,24 +138,6 @@ class ShippingDetailsType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ShippingServiceUsed' ], - 'DefaultShippingCost' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\AmountType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DefaultShippingCost' - ], - 'InsuranceDetails' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\InsuranceDetailsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InsuranceDetails' - ], - 'InternationalInsuranceDetails' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\InsuranceDetailsType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'InternationalInsuranceDetails' - ], 'ShippingDiscountProfileID' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/SiteDefaultsType.php b/src/Trading/Types/SiteDefaultsType.php index dec894aae..fe359341b 100644 --- a/src/Trading/Types/SiteDefaultsType.php +++ b/src/Trading/Types/SiteDefaultsType.php @@ -15,7 +15,6 @@ * @property \DTS\eBaySDK\Trading\Types\ListingDurationReferenceType[] $ListingDuration * @property boolean $ShippingTermsRequired * @property boolean $BestOfferEnabled - * @property boolean $DutchBINEnabled * @property boolean $UserConsentRequired * @property boolean $HomePageFeaturedEnabled * @property boolean $ProPackEnabled @@ -165,12 +164,6 @@ class SiteDefaultsType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'BestOfferEnabled' ], - 'DutchBINEnabled' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'DutchBINEnabled' - ], 'UserConsentRequired' => [ 'type' => 'boolean', 'repeatable' => false, diff --git a/src/Trading/Types/TransactionType.php b/src/Trading/Types/TransactionType.php index ceb58b946..671ab8009 100644 --- a/src/Trading/Types/TransactionType.php +++ b/src/Trading/Types/TransactionType.php @@ -40,12 +40,8 @@ * @property \DTS\eBaySDK\Trading\Types\FeedbackInfoType $FeedbackReceived * @property \DTS\eBaySDK\Trading\Types\OrderType $ContainingOrder * @property \DTS\eBaySDK\Trading\Types\AmountType $FinalValueFee - * @property \DTS\eBaySDK\Trading\Types\ListingCheckoutRedirectPreferenceType $ListingCheckoutRedirectPreference - * @property \DTS\eBaySDK\Trading\Types\RefundArrayType $RefundArray * @property \DTS\eBaySDK\Trading\Enums\SiteCodeType $TransactionSiteID * @property \DTS\eBaySDK\Trading\Enums\TransactionPlatformCodeType $Platform - * @property string $CartID - * @property boolean $SellerContactBuyerByEmail * @property string $PayPalEmailAddress * @property string $PaisaPayID * @property \DTS\eBaySDK\Trading\Types\AmountType $BuyerGuaranteePrice @@ -255,18 +251,6 @@ class TransactionType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'FinalValueFee' ], - 'ListingCheckoutRedirectPreference' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\ListingCheckoutRedirectPreferenceType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ListingCheckoutRedirectPreference' - ], - 'RefundArray' => [ - 'type' => 'DTS\eBaySDK\Trading\Types\RefundArrayType', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'RefundArray' - ], 'TransactionSiteID' => [ 'type' => 'string', 'repeatable' => false, @@ -279,18 +263,6 @@ class TransactionType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'Platform' ], - 'CartID' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'CartID' - ], - 'SellerContactBuyerByEmail' => [ - 'type' => 'boolean', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'SellerContactBuyerByEmail' - ], 'PayPalEmailAddress' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/UserDefinedListType.php b/src/Trading/Types/UserDefinedListType.php index b2f044e9c..14ed47a45 100644 --- a/src/Trading/Types/UserDefinedListType.php +++ b/src/Trading/Types/UserDefinedListType.php @@ -14,7 +14,6 @@ * * @property string $Name * @property integer $ItemCount - * @property integer $FavoriteSearcheCount * @property integer $FavoriteSellerCount * @property \DTS\eBaySDK\Trading\Types\ItemArrayType $ItemArray * @property \DTS\eBaySDK\Trading\Types\MyeBayFavoriteSearchListType $FavoriteSearches @@ -38,12 +37,6 @@ class UserDefinedListType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ItemCount' ], - 'FavoriteSearcheCount' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'FavoriteSearcheCount' - ], 'FavoriteSellerCount' => [ 'type' => 'integer', 'repeatable' => false, diff --git a/src/Trading/Types/UserType.php b/src/Trading/Types/UserType.php index cec4febfb..99c64d910 100644 --- a/src/Trading/Types/UserType.php +++ b/src/Trading/Types/UserType.php @@ -39,7 +39,6 @@ * @property \DTS\eBaySDK\Trading\Enums\PayPalAccountTypeCodeType $PayPalAccountType * @property \DTS\eBaySDK\Trading\Enums\PayPalAccountStatusCodeType $PayPalAccountStatus * @property \DTS\eBaySDK\Trading\Enums\EBaySubscriptionTypeCodeType[] $UserSubscription - * @property string[] $SkypeID * @property boolean $eBayWikiReadOnly * @property integer $TUVLevel * @property string $VATID @@ -52,6 +51,7 @@ * @property boolean $QualifiesForSelling * @property string $StaticAlias * @property \DTS\eBaySDK\Trading\Types\AddressType $ShippingAddress + * @property \DTS\eBaySDK\Trading\Types\MembershipDetailsType $Membership * @property string $UserFirstName * @property string $UserLastName */ @@ -223,12 +223,6 @@ class UserType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'UserSubscription' ], - 'SkypeID' => [ - 'type' => 'string', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'SkypeID' - ], 'eBayWikiReadOnly' => [ 'type' => 'boolean', 'repeatable' => false, @@ -301,6 +295,12 @@ class UserType extends \DTS\eBaySDK\Types\BaseType 'attribute' => false, 'elementName' => 'ShippingAddress' ], + 'Membership' => [ + 'type' => 'DTS\eBaySDK\Trading\Types\MembershipDetailsType', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'Membership' + ], 'UserFirstName' => [ 'type' => 'string', 'repeatable' => false, diff --git a/src/Trading/Types/ValType.php b/src/Trading/Types/ValType.php index 378804355..74a36ca87 100644 --- a/src/Trading/Types/ValType.php +++ b/src/Trading/Types/ValType.php @@ -12,9 +12,6 @@ /** * - * @property string $ValueLiteral - * @property string[] $SuggestedValueLiteral - * @property integer $ValueID */ class ValType extends \DTS\eBaySDK\Types\BaseType { @@ -22,24 +19,6 @@ class ValType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ - 'ValueLiteral' => [ - 'type' => 'string', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ValueLiteral' - ], - 'SuggestedValueLiteral' => [ - 'type' => 'string', - 'repeatable' => true, - 'attribute' => false, - 'elementName' => 'SuggestedValueLiteral' - ], - 'ValueID' => [ - 'type' => 'integer', - 'repeatable' => false, - 'attribute' => false, - 'elementName' => 'ValueID' - ] ]; /** diff --git a/test/Trading/Enums/GiftServicesCodeTypeTest.php b/test/Trading/Enums/GiftServicesCodeTypeTest.php deleted file mode 100644 index e9d09c8bd..000000000 --- a/test/Trading/Enums/GiftServicesCodeTypeTest.php +++ /dev/null @@ -1,28 +0,0 @@ -obj = new GiftServicesCodeType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Enums\GiftServicesCodeType', $this->obj); - } -} diff --git a/test/Trading/Types/GetSellerPaymentsRequestTypeTest.php b/test/Trading/Types/GetSellerPaymentsRequestTypeTest.php deleted file mode 100644 index eda0f6ef3..000000000 --- a/test/Trading/Types/GetSellerPaymentsRequestTypeTest.php +++ /dev/null @@ -1,33 +0,0 @@ -obj = new GetSellerPaymentsRequestType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\GetSellerPaymentsRequestType', $this->obj); - } - - public function testExtendsAbstractRequestType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\AbstractRequestType', $this->obj); - } -} diff --git a/test/Trading/Types/GetSellerPaymentsResponseTypeTest.php b/test/Trading/Types/GetSellerPaymentsResponseTypeTest.php deleted file mode 100644 index 512bcfb83..000000000 --- a/test/Trading/Types/GetSellerPaymentsResponseTypeTest.php +++ /dev/null @@ -1,33 +0,0 @@ -obj = new GetSellerPaymentsResponseType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\GetSellerPaymentsResponseType', $this->obj); - } - - public function testExtendsAbstractResponseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\AbstractResponseType', $this->obj); - } -} diff --git a/test/Trading/Types/IssueRefundRequestTypeTest.php b/test/Trading/Types/IssueRefundRequestTypeTest.php deleted file mode 100644 index 7d37ba849..000000000 --- a/test/Trading/Types/IssueRefundRequestTypeTest.php +++ /dev/null @@ -1,33 +0,0 @@ -obj = new IssueRefundRequestType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\IssueRefundRequestType', $this->obj); - } - - public function testExtendsAbstractRequestType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\AbstractRequestType', $this->obj); - } -} diff --git a/test/Trading/Types/IssueRefundResponseTypeTest.php b/test/Trading/Types/IssueRefundResponseTypeTest.php deleted file mode 100644 index 70cd6abee..000000000 --- a/test/Trading/Types/IssueRefundResponseTypeTest.php +++ /dev/null @@ -1,33 +0,0 @@ -obj = new IssueRefundResponseType(); - } - - public function testCanBeCreated() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\IssueRefundResponseType', $this->obj); - } - - public function testExtendsAbstractResponseType() - { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\AbstractResponseType', $this->obj); - } -} diff --git a/test/Trading/Types/MembershipDetailTypeTest.php b/test/Trading/Types/MembershipDetailTypeTest.php new file mode 100644 index 000000000..07a8f5d9c --- /dev/null +++ b/test/Trading/Types/MembershipDetailTypeTest.php @@ -0,0 +1,33 @@ +obj = new MembershipDetailType(); + } + + public function testCanBeCreated() + { + $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\MembershipDetailType', $this->obj); + } + + public function testExtendsBaseType() + { + $this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); + } +} diff --git a/test/Trading/Types/ExternalProductIDTypeTest.php b/test/Trading/Types/MembershipDetailsTypeTest.php similarity index 65% rename from test/Trading/Types/ExternalProductIDTypeTest.php rename to test/Trading/Types/MembershipDetailsTypeTest.php index 12651d073..61fa7c1ea 100644 --- a/test/Trading/Types/ExternalProductIDTypeTest.php +++ b/test/Trading/Types/MembershipDetailsTypeTest.php @@ -10,20 +10,20 @@ namespace DTS\eBaySDK\Test\Trading\Types; -use DTS\eBaySDK\Trading\Types\ExternalProductIDType; +use DTS\eBaySDK\Trading\Types\MembershipDetailsType; -class ExternalProductIDTypeTest extends \PHPUnit_Framework_TestCase +class MembershipDetailsTypeTest extends \PHPUnit_Framework_TestCase { private $obj; protected function setUp() { - $this->obj = new ExternalProductIDType(); + $this->obj = new MembershipDetailsType(); } public function testCanBeCreated() { - $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\ExternalProductIDType', $this->obj); + $this->assertInstanceOf('\DTS\eBaySDK\Trading\Types\MembershipDetailsType', $this->obj); } public function testExtendsBaseType() From 0a551833693f268832a12c5ddb7f93afddb5b3f8 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 15 Dec 2017 12:25:15 +0000 Subject: [PATCH 07/10] fix: add missing GalleryURL property --- src/Trading/Types/PictureDetailsType.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Trading/Types/PictureDetailsType.php b/src/Trading/Types/PictureDetailsType.php index 706e873b5..5164dc42c 100644 --- a/src/Trading/Types/PictureDetailsType.php +++ b/src/Trading/Types/PictureDetailsType.php @@ -12,6 +12,7 @@ /** * + * @property string $GalleryURL * @property \DTS\eBaySDK\Trading\Enums\GalleryTypeCodeType $GalleryType * @property \DTS\eBaySDK\Trading\Enums\PhotoDisplayCodeType $PhotoDisplay * @property string[] $PictureURL @@ -28,6 +29,12 @@ class PictureDetailsType extends \DTS\eBaySDK\Types\BaseType * @var array Properties belonging to objects of this class. */ private static $propertyTypes = [ + 'GalleryURL' => [ + 'type' => 'string', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'GalleryURL' + ], 'GalleryType' => [ 'type' => 'string', 'repeatable' => false, From 8bfe8d59ef1d7bc41ef4aaa73ee3684860c16495 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 15 Dec 2017 12:33:28 +0000 Subject: [PATCH 08/10] fix: use correct sandbox url for product metadata service --- src/ProductMetadata/Services/ProductMetadataBaseService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProductMetadata/Services/ProductMetadataBaseService.php b/src/ProductMetadata/Services/ProductMetadataBaseService.php index 14c986f57..3200d7326 100644 --- a/src/ProductMetadata/Services/ProductMetadataBaseService.php +++ b/src/ProductMetadata/Services/ProductMetadataBaseService.php @@ -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); } /** From ce53390b8b00d01628a6d9b521dd8af3cf96dbf0 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 15 Dec 2017 13:10:32 +0000 Subject: [PATCH 09/10] fix: add missing VerifyOnly property --- .../Types/ReviseFixedPriceItemRequestType.php | 7 +++++++ .../ReviseFixedPriceItemResponseType.php | 7 +++++++ test/property_fixes/PropertyFixesTest.php | 21 ++++++++++++++++++- 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/src/Trading/Types/ReviseFixedPriceItemRequestType.php b/src/Trading/Types/ReviseFixedPriceItemRequestType.php index 57a8098d5..0f78f2d8d 100644 --- a/src/Trading/Types/ReviseFixedPriceItemRequestType.php +++ b/src/Trading/Types/ReviseFixedPriceItemRequestType.php @@ -14,6 +14,7 @@ * * @property \DTS\eBaySDK\Trading\Types\ItemType $Item * @property string[] $DeletedField + * @property boolean $VerifyOnly */ class ReviseFixedPriceItemRequestType extends \DTS\eBaySDK\Trading\Types\AbstractRequestType { @@ -32,6 +33,12 @@ class ReviseFixedPriceItemRequestType extends \DTS\eBaySDK\Trading\Types\Abstrac 'repeatable' => true, 'attribute' => false, 'elementName' => 'DeletedField' + ], + 'VerifyOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'VerifyOnly' ] ]; diff --git a/src/Trading/Types/ReviseFixedPriceItemResponseType.php b/src/Trading/Types/ReviseFixedPriceItemResponseType.php index b857c7cc0..dcd259d87 100644 --- a/src/Trading/Types/ReviseFixedPriceItemResponseType.php +++ b/src/Trading/Types/ReviseFixedPriceItemResponseType.php @@ -22,6 +22,7 @@ * @property \DTS\eBaySDK\Trading\Enums\DiscountReasonCodeType[] $DiscountReason * @property \DTS\eBaySDK\Trading\Types\ProductSuggestionsType $ProductSuggestions * @property \DTS\eBaySDK\Trading\Types\ListingRecommendationsType $ListingRecommendations + * @property boolean $VerifyOnly */ class ReviseFixedPriceItemResponseType extends \DTS\eBaySDK\Trading\Types\AbstractResponseType { @@ -88,6 +89,12 @@ class ReviseFixedPriceItemResponseType extends \DTS\eBaySDK\Trading\Types\Abstra 'repeatable' => false, 'attribute' => false, 'elementName' => 'ListingRecommendations' + ], + 'VerifyOnly' => [ + 'type' => 'boolean', + 'repeatable' => false, + 'attribute' => false, + 'elementName' => 'VerifyOnly' ] ]; diff --git a/test/property_fixes/PropertyFixesTest.php b/test/property_fixes/PropertyFixesTest.php index b6055166c..54d28d184 100644 --- a/test/property_fixes/PropertyFixesTest.php +++ b/test/property_fixes/PropertyFixesTest.php @@ -155,7 +155,7 @@ public function testOrderCancelLineItem() * Even though the documentation says that GalleryURL is not a member of PictureDetailsType * it is been returned in the API for various calls. E.g GetItem and GetMyeBaySelling. */ - public function testGaleryURL() + public function testGalleryURL() { $obj = new Sdk\Trading\Types\PictureDetailsType(); @@ -176,4 +176,23 @@ public function testUploadFileRequest() $this->assertInternalType('string', $obj->data); } + + /** + * Even though the documentation does not say this exists + * someone did raise it as an issue and you can pass it via the explorer. + * + * https://github.com/davidtsadler/ebay-sdk-php/issues/154 + */ + public function testVerifyOnly() + { + $obj = new Sdk\Trading\Types\ReviseFixedPriceItemRequestType(); + + $obj->VerifyOnly = true; + $this->assertInternalType('boolean', $obj->VerifyOnly); + + $obj = new Sdk\Trading\Types\ReviseFixedPriceItemResponseType(); + + $obj->VerifyOnly = true; + $this->assertInternalType('boolean', $obj->VerifyOnly); + } } From 99158fa6137c148cafe0be41b0b658fea3fd1d94 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Fri, 15 Dec 2017 13:30:49 +0000 Subject: [PATCH 10/10] update: bump version to 14.0.0 close #154 close #157 close #158 close #159 close #160 --- CHANGELOG.md | 2 +- src/Sdk.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bce980930..40965376c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # CHANGELOG -## Unreleased +## 14.0.0 - 2017-12-15 ### Features diff --git a/src/Sdk.php b/src/Sdk.php index 51aa35418..ba8d36a11 100644 --- a/src/Sdk.php +++ b/src/Sdk.php @@ -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