davidtsadler / ebay-sdk-php

An eBay SDK for PHP. Use the eBay API in your PHP projects.
Apache License 2.0
350 stars 343 forks source link

Post-Order:SearchCancellations - Unknown property exception #108

Closed kingsaj closed 7 years ago

kingsaj commented 7 years ago

And another one

DTS\eBaySDK\Exceptions\UnknownPropertyException with message 'Unknown property lineItems'

Response From Ebay

{
  "cancellations": [
    {
      "cancelId": "XXXXXXXXX",
      "marketplaceId": "EBAY_GB",
      "legacyOrderId": "XXXXXXXX-XXXXXXXXXXX",
      "requestorType": "SELLER",
      "cancelReason": "BUYER_CANCEL_OR_ADDRESS_ISSUE",
      "cancelState": "CONFIRM_REFUND_PENDING",
      "cancelStatus": "CANCEL_PENDING",
      "buyerResponseDueDate": {
        "value": "2017-06-11T22:00:00.000Z",
        "formattedValue": "2017-06-11T22:00:00.000Z"
      },
      "paymentStatus": "UNKNOWN",
      "requestRefundAmount": {
        "value": 4.99,
        "currency": "GBP"
      },
      "cancelRequestDate": {
        "value": "2017-06-01T15:13:07.000Z",
        "formattedValue": "2017-06-01T15:13:07.000Z"
      },
      "lineItems": [
        {
          "itemId": "XXXXXXXX",
          "transactionId": "XXXXXXXXX",
          "itemTitle": "XXXXXXXX",
          "cancelQuantity": 1
        }
      ]
    }
  ],
  "total": 1,
  "paginationOutput": {
    "offset": 1,
    "limit": 1,
    "totalPages": 1,
    "totalEntries": 1
  }
}
davidtsadler commented 7 years ago

The lineItems property has been added in the 36848db commit.

davidtsadler commented 7 years ago

The missing properties have been added in the 13.0.0 release.