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

Commit

Permalink
Merge branch 'release-16.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
David T. Sadler committed May 12, 2018
2 parents 2bc1b2f + 997818a commit 693b735
Show file tree
Hide file tree
Showing 25 changed files with 280 additions and 47 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
# CHANGELOG

## 16.0.0 - 2018-05-12

### Features

* Support Trading API version 1057.
* Add WatchCountDecreaseSort ENUM value for Finding API.

## 15.0.0 - 2018-03-05

### Fixes
Expand Down
2 changes: 1 addition & 1 deletion requirements_check.php
Expand Up @@ -97,7 +97,7 @@ public function check64Bit()
if (PHP_INT_MAX === 9223372036854775807) {
$this->pass('You are running a 64-bit version of PHP');
} else {
$this->fail('You are not running a 64-bit version of PHP. You may run into issues with integer values been to long for object properties.');
$this->fail('You are not running a 64-bit version of PHP. You may run into issues when handling object properties and assigning values to integers that are greater than the largest possible 32 bit integer value');
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Finding/Enums/SortOrderType.php
Expand Up @@ -23,4 +23,5 @@ class SortOrderType
const C_PRICE_PLUS_SHIPPING_HIGHEST = 'PricePlusShippingHighest';
const C_PRICE_PLUS_SHIPPING_LOWEST = 'PricePlusShippingLowest';
const C_START_TIME_NEWEST = 'StartTimeNewest';
const C_WATCH_COUNT_DECREASE_SORT = 'WatchCountDecreaseSort';
}
4 changes: 2 additions & 2 deletions src/OAuth/Services/OAuthService.php
Expand Up @@ -177,8 +177,8 @@ public function redirectUrlForUser(array $params)
}

$url = $this->getConfig('sandbox')
? 'https://signin.sandbox.ebay.com/authorize?'
: 'https://signin.ebay.com/authorize?';
? 'https://auth.sandbox.ebay.com/oauth2/authorize?'
: 'https://auth.ebay.com/oauth2/authorize?';

$urlParams = [
'client_id' => $this->getConfig('credentials')->getAppId(),
Expand Down
2 changes: 1 addition & 1 deletion src/Sdk.php
Expand Up @@ -30,7 +30,7 @@
*/
class Sdk
{
const VERSION = '15.0.0';
const VERSION = '16.0.0';

/**
* @var bool Controls if the SDK should enforce strict types
Expand Down
18 changes: 18 additions & 0 deletions src/Trading/Enums/AspectUsageCodeType.php
@@ -0,0 +1,18 @@
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Trading\Enums;

class AspectUsageCodeType
{
const C_CUSTOM_CODE = 'CustomCode';
const C_INSTANCE = 'Instance';
const C_PRODUCT = 'Product';
}
1 change: 1 addition & 0 deletions src/Trading/Enums/FeatureIDCodeType.php
Expand Up @@ -115,6 +115,7 @@ class FeatureIDCodeType
const C_PICKUP_DROP_OFF_ENABLED = 'PickupDropOffEnabled';
const C_PREMIUM_SUBSCRIPTION = 'PremiumSubscription';
const C_PRODUCT_CREATION_ENABLED = 'ProductCreationEnabled';
const C_PRODUCT_REQUIRED_ENABLED = 'ProductRequiredEnabled';
const C_PRO_PACK = 'ProPack';
const C_PRO_PACK_PLUS = 'ProPackPlus';
const C_REGULAR_SUBSCRIPTION = 'RegularSubscription';
Expand Down
18 changes: 18 additions & 0 deletions src/Trading/Enums/ProductRequiredCodeType.php
@@ -0,0 +1,18 @@
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Trading\Enums;

class ProductRequiredCodeType
{
const C_CUSTOM_CODE = 'CustomCode';
const C_DISABLED = 'Disabled';
const C_ENABLED = 'Enabled';
}
18 changes: 18 additions & 0 deletions src/Trading/Enums/ProductRequiredEnabledCodeType.php
@@ -0,0 +1,18 @@
<?php
/**
* DO NOT EDIT THIS FILE!
*
* This file was automatically generated from external sources.
*
* Any manual change here will be lost the next time the SDK
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Trading\Enums;

class ProductRequiredEnabledCodeType
{
const C_CUSTOM_CODE = 'CustomCode';
const C_DISABLED = 'Disabled';
const C_ENABLED = 'Enabled';
}
3 changes: 3 additions & 0 deletions src/Trading/Enums/URLTypeCodeType.php
Expand Up @@ -12,9 +12,12 @@

class URLTypeCodeType
{
const C_APPEAL_PRODUCT_URL = 'AppealProductUrl';
const C_CREATE_PRODUCT_URL = 'CreateProductUrl';
const C_CUSTOM_CODE = 'CustomCode';
const C_E_BAY_STOREURL = 'eBayStoreURL';
const C_LARGE_LOGOURL = 'LargeLogoURL';
const C_MANAGE_PRODUCT_URL = 'ManageProductUrl';
const C_MEDIUM_LOGOURL = 'MediumLogoURL';
const C_MYE_BAYURL = 'MyeBayURL';
const C_MYE_BAY_BIDDINGURL = 'MyeBayBiddingURL';
Expand Down
2 changes: 1 addition & 1 deletion src/Trading/Services/TradingService.php
Expand Up @@ -12,7 +12,7 @@

class TradingService extends \DTS\eBaySDK\Trading\Services\TradingBaseService
{
const API_VERSION = '1039';
const API_VERSION = '1057';

/**
* @param array $config Configuration option values.
Expand Down
21 changes: 7 additions & 14 deletions src/Trading/Types/CategoryFeatureType.php
Expand Up @@ -31,8 +31,6 @@
* @property double $MinimumReservePrice
* @property boolean $SellerContactDetailsEnabled
* @property boolean $TransactionConfirmationRequestEnabled
* @property boolean $SkypeMeTransactionalEnabled
* @property boolean $SkypeMeNonTransactionalEnabled
* @property \DTS\eBaySDK\Trading\Enums\ClassifiedAdPaymentMethodEnabledCodeType $ClassifiedAdPaymentMethodEnabled
* @property boolean $ClassifiedAdShippingMethodEnabled
* @property \DTS\eBaySDK\Trading\Enums\ClassifiedAdBestOfferEnabledCodeType $ClassifiedAdBestOfferEnabled
Expand Down Expand Up @@ -130,6 +128,7 @@
* @property boolean $DigitalGoodDeliveryEnabled
* @property boolean $EpidSupported
* @property boolean $KTypeSupported
* @property \DTS\eBaySDK\Trading\Enums\ProductRequiredEnabledCodeType $ProductRequiredEnabled
*/
class CategoryFeatureType extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -251,18 +250,6 @@ class CategoryFeatureType extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'TransactionConfirmationRequestEnabled'
],
'SkypeMeTransactionalEnabled' => [
'type' => 'boolean',
'repeatable' => false,
'attribute' => false,
'elementName' => 'SkypeMeTransactionalEnabled'
],
'SkypeMeNonTransactionalEnabled' => [
'type' => 'boolean',
'repeatable' => false,
'attribute' => false,
'elementName' => 'SkypeMeNonTransactionalEnabled'
],
'ClassifiedAdPaymentMethodEnabled' => [
'type' => 'string',
'repeatable' => false,
Expand Down Expand Up @@ -844,6 +831,12 @@ class CategoryFeatureType extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'KTypeSupported'
],
'ProductRequiredEnabled' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'ProductRequiredEnabled'
]
];

Expand Down
7 changes: 7 additions & 0 deletions src/Trading/Types/FeatureDefinitionsType.php
Expand Up @@ -132,6 +132,7 @@
* @property \DTS\eBaySDK\Trading\Types\DigitalGoodDeliveryEnabledDefinitionType $DigitalGoodDeliveryEnabled
* @property \DTS\eBaySDK\Trading\Types\EpidSupportedDefinitionType $EpidSupported
* @property \DTS\eBaySDK\Trading\Types\KTypeSupportedDefinitionType $KTypeSupported
* @property \DTS\eBaySDK\Trading\Types\ProductRequiredEnabledDefinitionType $ProductRequiredEnabled
*/
class FeatureDefinitionsType extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -858,6 +859,12 @@ class FeatureDefinitionsType extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'KTypeSupported'
],
'ProductRequiredEnabled' => [
'type' => 'DTS\eBaySDK\Trading\Types\ProductRequiredEnabledDefinitionType',
'repeatable' => false,
'attribute' => false,
'elementName' => 'ProductRequiredEnabled'
]
];

Expand Down
7 changes: 0 additions & 7 deletions src/Trading/Types/ItemType.php
Expand Up @@ -37,7 +37,6 @@
* @property \DTS\eBaySDK\Trading\Enums\BuyerPaymentMethodCodeType[] $PaymentMethods
* @property string $PayPalEmailAddress
* @property \DTS\eBaySDK\Trading\Types\CategoryType $PrimaryCategory
* @property boolean $PrivateListing
* @property \DTS\eBaySDK\Trading\Types\ProductListingDetailsType $ProductListingDetails
* @property integer $Quantity
* @property string $PrivateNotes
Expand Down Expand Up @@ -296,12 +295,6 @@ class ItemType extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'PrimaryCategory'
],
'PrivateListing' => [
'type' => 'boolean',
'repeatable' => false,
'attribute' => false,
'elementName' => 'PrivateListing'
],
'ProductListingDetails' => [
'type' => 'DTS\eBaySDK\Trading\Types\ProductListingDetailsType',
'repeatable' => false,
Expand Down
7 changes: 0 additions & 7 deletions src/Trading/Types/ProductListingDetailsType.php
Expand Up @@ -25,7 +25,6 @@
* @property \DTS\eBaySDK\Trading\Types\TicketListingDetailsType $TicketListingDetails
* @property boolean $UseFirstProduct
* @property boolean $IncludeeBayProductDetails
* @property \DTS\eBaySDK\Trading\Types\NameValueListType[] $NameValueList
*/
class ProductListingDetailsType extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -110,12 +109,6 @@ class ProductListingDetailsType extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'IncludeeBayProductDetails'
],
'NameValueList' => [
'type' => 'DTS\eBaySDK\Trading\Types\NameValueListType',
'repeatable' => true,
'attribute' => false,
'elementName' => 'NameValueList'
]
];

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

namespace DTS\eBaySDK\Trading\Types;

/**
*
*/
class ProductRequiredEnabledDefinitionType extends \DTS\eBaySDK\Types\BaseType
{
/**
* @var array Properties belonging to objects of this class.
*/
private static $propertyTypes = [
];

/**
* @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);
}
}
21 changes: 21 additions & 0 deletions src/Trading/Types/RecommendationValidationRulesType.php
Expand Up @@ -16,6 +16,9 @@
* @property integer $MinValues
* @property integer $MaxValues
* @property \DTS\eBaySDK\Trading\Enums\SelectionModeCodeType $SelectionMode
* @property \DTS\eBaySDK\Trading\Enums\AspectUsageCodeType $AspectUsage
* @property integer $MaxValueLength
* @property \DTS\eBaySDK\Trading\Enums\ProductRequiredCodeType $ProductRequired
* @property integer $Confidence
* @property \DTS\eBaySDK\Trading\Types\NameValueRelationshipType[] $Relationship
* @property \DTS\eBaySDK\Trading\Enums\VariationPictureRuleCodeType $VariationPicture
Expand Down Expand Up @@ -52,6 +55,24 @@ class RecommendationValidationRulesType extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'SelectionMode'
],
'AspectUsage' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'AspectUsage'
],
'MaxValueLength' => [
'type' => 'integer',
'repeatable' => false,
'attribute' => false,
'elementName' => 'MaxValueLength'
],
'ProductRequired' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'ProductRequired'
],
'Confidence' => [
'type' => 'integer',
'repeatable' => false,
Expand Down
7 changes: 0 additions & 7 deletions src/Trading/Types/RecommendationsType.php
Expand Up @@ -13,7 +13,6 @@
/**
*
* @property string $CategoryID
* @property \DTS\eBaySDK\Trading\Types\ProductIdentifiersType[] $ProductIdentifiers
* @property \DTS\eBaySDK\Trading\Types\NameRecommendationType[] $NameRecommendation
* @property boolean $Updated
*/
Expand All @@ -29,12 +28,6 @@ class RecommendationsType extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'CategoryID'
],
'ProductIdentifiers' => [
'type' => 'DTS\eBaySDK\Trading\Types\ProductIdentifiersType',
'repeatable' => true,
'attribute' => false,
'elementName' => 'ProductIdentifiers'
],
'NameRecommendation' => [
'type' => 'DTS\eBaySDK\Trading\Types\NameRecommendationType',
'repeatable' => true,
Expand Down
7 changes: 7 additions & 0 deletions src/Trading/Types/SiteDefaultsType.php
Expand Up @@ -139,6 +139,7 @@
* @property boolean $DigitalGoodDeliveryEnabled
* @property boolean $EpidSupported
* @property boolean $KTypeSupported
* @property \DTS\eBaySDK\Trading\Enums\ProductRequiredEnabledCodeType $ProductRequiredEnabled
*/
class SiteDefaultsType extends \DTS\eBaySDK\Types\BaseType
{
Expand Down Expand Up @@ -907,6 +908,12 @@ class SiteDefaultsType extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'KTypeSupported'
],
'ProductRequiredEnabled' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'ProductRequiredEnabled'
]
];

Expand Down
10 changes: 5 additions & 5 deletions src/Trading/Types/VariationProductListingDetailsType.php
Expand Up @@ -15,7 +15,7 @@
* @property string $ISBN
* @property string $UPC
* @property string $EAN
* @property \DTS\eBaySDK\Trading\Types\NameValueListType[] $NameValueList
* @property string $ProductReferenceID
*/
class VariationProductListingDetailsType extends \DTS\eBaySDK\Types\BaseType
{
Expand All @@ -41,11 +41,11 @@ class VariationProductListingDetailsType extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'EAN'
],
'NameValueList' => [
'type' => 'DTS\eBaySDK\Trading\Types\NameValueListType',
'repeatable' => true,
'ProductReferenceID' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'NameValueList'
'elementName' => 'ProductReferenceID'
]
];

Expand Down

0 comments on commit 693b735

Please sign in to comment.