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

Commit

Permalink
9.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
David T. Sadler committed Mar 1, 2017
1 parent 3584f5f commit 81bf070
Show file tree
Hide file tree
Showing 34 changed files with 241 additions and 529 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# CHANGELOG

## 9.0.0 - 2017-03-01

### Breaking changes

* Correct production URL now used for Order service.
* Support Inventory API version 1.1.0.
* Support Order API version v1_beta.4.0
* Support Trading API version 991.
* Use correct string type for orderFulfillmentStatus and fulfillmentInstructionsType properties.

## 8.0.0 - 2017-01-26

### Breaking changes
Expand Down
19 changes: 19 additions & 0 deletions src/Fulfillment/Enums/FulfillmentInstructionsType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?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\Fulfillment\Enums;

class FulfillmentInstructionsType
{
const C_DIGITAL = 'DIGITAL';
const C_PREPARE_FOR_PICKUP = 'PREPARE_FOR_PICKUP';
const C_SELLER_DEFINED = 'SELLER_DEFINED';
const C_SHIP_TO = 'SHIP_TO';
}
18 changes: 18 additions & 0 deletions src/Fulfillment/Enums/OrderFulfillmentStatus.php
Original file line number Diff line number Diff line change
@@ -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\Fulfillment\Enums;

class OrderFulfillmentStatus
{
const C_FULFILLED = 'FULFILLED';
const C_IN_PROGRESS = 'IN_PROGRESS';
const C_NOT_STARTED = 'NOT_STARTED';
}
39 changes: 0 additions & 39 deletions src/Fulfillment/Types/FulfillmentInstructionsType.php

This file was deleted.

4 changes: 2 additions & 2 deletions src/Fulfillment/Types/FulfillmentStartInstruction.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @property boolean $ebaySupportedFulfillment
* @property \DTS\eBaySDK\Fulfillment\Types\Address $finalDestinationAddress
* @property \DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType $fulfillmentInstructionsType
* @property \DTS\eBaySDK\Fulfillment\Enums\FulfillmentInstructionsType $fulfillmentInstructionsType
* @property string $maxEstimatedDeliveryDate
* @property string $minEstimatedDeliveryDate
* @property \DTS\eBaySDK\Fulfillment\Types\ShippingStep $shippingStep
Expand All @@ -38,7 +38,7 @@ class FulfillmentStartInstruction extends \DTS\eBaySDK\Types\BaseType
'elementName' => 'finalDestinationAddress'
],
'fulfillmentInstructionsType' => [
'type' => 'DTS\eBaySDK\Fulfillment\Types\FulfillmentInstructionsType',
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'fulfillmentInstructionsType'
Expand Down
4 changes: 2 additions & 2 deletions src/Fulfillment/Types/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @property \DTS\eBaySDK\Fulfillment\Types\FulfillmentStartInstruction[] $fulfillmentStartInstructions
* @property string $lastModifiedDate
* @property \DTS\eBaySDK\Fulfillment\Types\LineItem[] $lineItems
* @property \DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus $orderFulfillmentStatus
* @property \DTS\eBaySDK\Fulfillment\Enums\OrderFulfillmentStatus $orderFulfillmentStatus
* @property string $orderId
* @property \DTS\eBaySDK\Fulfillment\Enums\OrderPaymentStatusEnum $orderPaymentStatus
* @property \DTS\eBaySDK\Fulfillment\Types\PaymentSummary $paymentSummary
Expand Down Expand Up @@ -82,7 +82,7 @@ class Order extends \DTS\eBaySDK\Types\BaseType
'elementName' => 'lineItems'
],
'orderFulfillmentStatus' => [
'type' => 'DTS\eBaySDK\Fulfillment\Types\OrderFulfillmentStatus',
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'orderFulfillmentStatus'
Expand Down
4 changes: 2 additions & 2 deletions src/Inventory/Types/InventoryLocationFull.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

/**
*
* @property \DTS\eBaySDK\Inventory\Types\Location $location
* @property \DTS\eBaySDK\Inventory\Types\LocationDetails $location
* @property string $locationAdditionalInformation
* @property string $locationInstructions
* @property \DTS\eBaySDK\Inventory\Enums\StoreTypeEnum[] $locationTypes
Expand All @@ -30,7 +30,7 @@ class InventoryLocationFull extends \DTS\eBaySDK\Types\BaseType
*/
private static $propertyTypes = [
'location' => [
'type' => 'DTS\eBaySDK\Inventory\Types\Location',
'type' => 'DTS\eBaySDK\Inventory\Types\LocationDetails',
'repeatable' => false,
'attribute' => false,
'elementName' => 'location'
Expand Down
7 changes: 7 additions & 0 deletions src/Inventory/Types/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
*
* @property \DTS\eBaySDK\Inventory\Types\Address $address
* @property \DTS\eBaySDK\Inventory\Types\GeoCoordinates $geoCoordinates
* @property string $locationId
*/
class Location extends \DTS\eBaySDK\Types\BaseType
{
Expand All @@ -32,6 +33,12 @@ class Location extends \DTS\eBaySDK\Types\BaseType
'repeatable' => false,
'attribute' => false,
'elementName' => 'geoCoordinates'
],
'locationId' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'locationId'
]
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@
* is updated. You've been warned!
*/

namespace DTS\eBaySDK\Order\Types;
namespace DTS\eBaySDK\Inventory\Types;

/**
*
* @property \DTS\eBaySDK\Order\Types\Amount_0 $amount
* @property string $label
* @property \DTS\eBaySDK\Inventory\Types\Address $address
* @property \DTS\eBaySDK\Inventory\Types\GeoCoordinates $geoCoordinates
*/
class Adjustment_0 extends \DTS\eBaySDK\Types\BaseType
class LocationDetails extends \DTS\eBaySDK\Types\BaseType
{
/**
* @var array Properties belonging to objects of this class.
*/
private static $propertyTypes = [
'amount' => [
'type' => 'DTS\eBaySDK\Order\Types\Amount_0',
'address' => [
'type' => 'DTS\eBaySDK\Inventory\Types\Address',
'repeatable' => false,
'attribute' => false,
'elementName' => 'amount'
'elementName' => 'address'
],
'label' => [
'type' => 'string',
'geoCoordinates' => [
'type' => 'DTS\eBaySDK\Inventory\Types\GeoCoordinates',
'repeatable' => false,
'attribute' => false,
'elementName' => 'label'
'elementName' => 'geoCoordinates'
]
];

Expand Down
2 changes: 1 addition & 1 deletion src/Order/Services/OrderBaseService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class OrderBaseService extends \DTS\eBaySDK\Services\BaseRestService
*/
protected static $endPoints = [
'sandbox' => 'https://api.sandbox.ebay.com/buy/order',
'production' => 'https://api.ebay.com/buy/order'
'production' => 'https://apix.ebay.com/buy/order'
];

/**
Expand Down
12 changes: 6 additions & 6 deletions src/Order/Types/GuestPurchaseOrder.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

/**
*
* @property \DTS\eBaySDK\Order\Types\LineItem_0[] $lineItems
* @property \DTS\eBaySDK\Order\Types\PricingSummary_0 $pricingSummary
* @property \DTS\eBaySDK\Order\Types\LineItem[] $lineItems
* @property \DTS\eBaySDK\Order\Types\PricingSummary $pricingSummary
* @property string $purchaseOrderCreationDate
* @property string $purchaseOrderId
* @property \DTS\eBaySDK\Order\Enums\PurchaseOrderPaymentStatusEnum $purchaseOrderPaymentStatus
* @property \DTS\eBaySDK\Order\Enums\PurchaseOrderStatusEnum $purchaseOrderStatus
* @property \DTS\eBaySDK\Order\Types\Amount_0 $refundedAmount
* @property \DTS\eBaySDK\Order\Types\Amount $refundedAmount
* @property \DTS\eBaySDK\Order\Types\ErrorDetailV3[] $warnings
*/
class GuestPurchaseOrder extends \DTS\eBaySDK\Types\BaseType
Expand All @@ -28,13 +28,13 @@ class GuestPurchaseOrder extends \DTS\eBaySDK\Types\BaseType
*/
private static $propertyTypes = [
'lineItems' => [
'type' => 'DTS\eBaySDK\Order\Types\LineItem_0',
'type' => 'DTS\eBaySDK\Order\Types\LineItem',
'repeatable' => true,
'attribute' => false,
'elementName' => 'lineItems'
],
'pricingSummary' => [
'type' => 'DTS\eBaySDK\Order\Types\PricingSummary_0',
'type' => 'DTS\eBaySDK\Order\Types\PricingSummary',
'repeatable' => false,
'attribute' => false,
'elementName' => 'pricingSummary'
Expand Down Expand Up @@ -64,7 +64,7 @@ class GuestPurchaseOrder extends \DTS\eBaySDK\Types\BaseType
'elementName' => 'purchaseOrderStatus'
],
'refundedAmount' => [
'type' => 'DTS\eBaySDK\Order\Types\Amount_0',
'type' => 'DTS\eBaySDK\Order\Types\Amount',
'repeatable' => false,
'attribute' => false,
'elementName' => 'refundedAmount'
Expand Down
43 changes: 18 additions & 25 deletions src/Order/Types/LineItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,15 @@

/**
*
* @property \DTS\eBaySDK\Order\Types\Amount $baseUnitPrice
* @property \DTS\eBaySDK\Order\Types\Image $image
* @property string $itemId
* @property string $lineItemId
* @property \DTS\eBaySDK\Order\Enums\LineItemPaymentStatusEnum $lineItemPaymentStatus
* @property \DTS\eBaySDK\Order\Enums\LineItemStatusEnum $lineItemStatus
* @property \DTS\eBaySDK\Order\Types\Amount $netPrice
* @property \DTS\eBaySDK\Order\Types\Promotion[] $promotions
* @property integer $quantity
* @property \DTS\eBaySDK\Order\Types\Seller $seller
* @property \DTS\eBaySDK\Order\Types\ShippingOption[] $shippingOptions
* @property string $shortDescription
* @property \DTS\eBaySDK\Order\Types\ShippingDetail $shippingDetail
* @property string $title
*/
class LineItem extends \DTS\eBaySDK\Types\BaseType
Expand All @@ -30,12 +29,6 @@ class LineItem extends \DTS\eBaySDK\Types\BaseType
* @var array Properties belonging to objects of this class.
*/
private static $propertyTypes = [
'baseUnitPrice' => [
'type' => 'DTS\eBaySDK\Order\Types\Amount',
'repeatable' => false,
'attribute' => false,
'elementName' => 'baseUnitPrice'
],
'image' => [
'type' => 'DTS\eBaySDK\Order\Types\Image',
'repeatable' => false,
Expand All @@ -54,18 +47,24 @@ class LineItem extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'lineItemId'
],
'lineItemPaymentStatus' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'lineItemPaymentStatus'
],
'lineItemStatus' => [
'type' => 'string',
'repeatable' => false,
'attribute' => false,
'elementName' => 'lineItemStatus'
],
'netPrice' => [
'type' => 'DTS\eBaySDK\Order\Types\Amount',
'repeatable' => false,
'attribute' => false,
'elementName' => 'netPrice'
],
'promotions' => [
'type' => 'DTS\eBaySDK\Order\Types\Promotion',
'repeatable' => true,
'attribute' => false,
'elementName' => 'promotions'
],
'quantity' => [
'type' => 'integer',
'repeatable' => false,
Expand All @@ -78,17 +77,11 @@ class LineItem extends \DTS\eBaySDK\Types\BaseType
'attribute' => false,
'elementName' => 'seller'
],
'shippingOptions' => [
'type' => 'DTS\eBaySDK\Order\Types\ShippingOption',
'repeatable' => true,
'attribute' => false,
'elementName' => 'shippingOptions'
],
'shortDescription' => [
'type' => 'string',
'shippingDetail' => [
'type' => 'DTS\eBaySDK\Order\Types\ShippingDetail',
'repeatable' => false,
'attribute' => false,
'elementName' => 'shortDescription'
'elementName' => 'shippingDetail'
],
'title' => [
'type' => 'string',
Expand Down
Loading

0 comments on commit 81bf070

Please sign in to comment.