This repository has been archived by the owner on Jun 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
292 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* DO NOT EDIT THIS FILE! | ||
* | ||
* This file was automatically generated from external sources. | ||
* | ||
* Any manual change here will be lost the next time the SDK | ||
* is updated. You've been warned! | ||
*/ | ||
|
||
namespace DTS\eBaySDK\Inventory\Types; | ||
|
||
/** | ||
* | ||
* @property string $offerId | ||
*/ | ||
class WithdrawOfferRestRequest extends \DTS\eBaySDK\Types\BaseType | ||
{ | ||
/** | ||
* @var array Properties belonging to objects of this class. | ||
*/ | ||
private static $propertyTypes = [ | ||
'offerId' => [ | ||
'type' => 'string', | ||
'repeatable' => false, | ||
'attribute' => false, | ||
'elementName' => 'offerId' | ||
] | ||
]; | ||
|
||
/** | ||
* @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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
/** | ||
* DO NOT EDIT THIS FILE! | ||
* | ||
* This file was automatically generated from external sources. | ||
* | ||
* Any manual change here will be lost the next time the SDK | ||
* is updated. You've been warned! | ||
*/ | ||
|
||
namespace DTS\eBaySDK\Inventory\Types; | ||
|
||
use DTS\eBaySDK\StatusCodeTrait; | ||
use DTS\eBaySDK\HttpHeadersTrait; | ||
|
||
/** | ||
* | ||
* @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $errors | ||
* @property \DTS\eBaySDK\Inventory\Types\ErrorDetailV3[] $warnings | ||
*/ | ||
class WithdrawOfferRestResponse extends \DTS\eBaySDK\Inventory\Types\WithdrawResponse | ||
{ | ||
use StatusCodeTrait; | ||
use HttpHeadersTrait; | ||
|
||
/** | ||
* @var array Properties belonging to objects of this class. | ||
*/ | ||
private static $propertyTypes = [ | ||
'errors' => [ | ||
'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', | ||
'repeatable' => true, | ||
'attribute' => false, | ||
'elementName' => 'errors' | ||
], | ||
'warnings' => [ | ||
'type' => 'DTS\eBaySDK\Inventory\Types\ErrorDetailV3', | ||
'repeatable' => true, | ||
'attribute' => false, | ||
'elementName' => 'warnings' | ||
] | ||
]; | ||
|
||
/** | ||
* @param array $values Optional properties and values to assign to the object. | ||
* @param int $statusCode Status code | ||
* @param array $headers HTTP Response headers. | ||
*/ | ||
public function __construct(array $values = [], $statusCode = 200, array $headers = []) | ||
{ | ||
list($parentValues, $childValues) = self::getParentValues(self::$propertyTypes, $values); | ||
|
||
parent::__construct($parentValues); | ||
|
||
if (!array_key_exists(__CLASS__, self::$properties)) { | ||
self::$properties[__CLASS__] = array_merge(self::$properties[get_parent_class()], self::$propertyTypes); | ||
} | ||
|
||
$this->setValues(__CLASS__, $childValues); | ||
|
||
$this->statusCode = (int)$statusCode; | ||
|
||
$this->setHeaders($headers); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
/** | ||
* DO NOT EDIT THIS FILE! | ||
* | ||
* This file was automatically generated from external sources. | ||
* | ||
* Any manual change here will be lost the next time the SDK | ||
* is updated. You've been warned! | ||
*/ | ||
|
||
namespace DTS\eBaySDK\Inventory\Types; | ||
|
||
/** | ||
* | ||
* @property string $listingId | ||
*/ | ||
class WithdrawResponse extends \DTS\eBaySDK\Types\BaseType | ||
{ | ||
/** | ||
* @var array Properties belonging to objects of this class. | ||
*/ | ||
private static $propertyTypes = [ | ||
'listingId' => [ | ||
'type' => 'string', | ||
'repeatable' => false, | ||
'attribute' => false, | ||
'elementName' => 'listingId' | ||
] | ||
]; | ||
|
||
/** | ||
* @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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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\Test\Inventory\Types; | ||
|
||
use DTS\eBaySDK\Inventory\Types\WithdrawOfferRestRequest; | ||
|
||
class WithdrawOfferRestRequestTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
private $obj; | ||
|
||
protected function setUp() | ||
{ | ||
$this->obj = new WithdrawOfferRestRequest(); | ||
} | ||
|
||
public function testCanBeCreated() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\WithdrawOfferRestRequest', $this->obj); | ||
} | ||
|
||
public function testExtendsBaseType() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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\Test\Inventory\Types; | ||
|
||
use DTS\eBaySDK\Inventory\Types\WithdrawOfferRestResponse; | ||
|
||
class WithdrawOfferRestResponseTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
private $obj; | ||
|
||
protected function setUp() | ||
{ | ||
$this->obj = new WithdrawOfferRestResponse(); | ||
} | ||
|
||
public function testCanBeCreated() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\WithdrawOfferRestResponse', $this->obj); | ||
} | ||
|
||
public function testExtendsWithdrawResponse() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\WithdrawResponse', $this->obj); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?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\Test\Inventory\Types; | ||
|
||
use DTS\eBaySDK\Inventory\Types\WithdrawResponse; | ||
|
||
class WithdrawResponseTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
private $obj; | ||
|
||
protected function setUp() | ||
{ | ||
$this->obj = new WithdrawResponse(); | ||
} | ||
|
||
public function testCanBeCreated() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Inventory\Types\WithdrawResponse', $this->obj); | ||
} | ||
|
||
public function testExtendsBaseType() | ||
{ | ||
$this->assertInstanceOf('\DTS\eBaySDK\Types\BaseType', $this->obj); | ||
} | ||
} |