Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Returns: Key 'returnReason' is missing in data array or is not a string #14

Closed
DangerLifter opened this issue Oct 25, 2019 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@DangerLifter
Copy link

DangerLifter commented Oct 25, 2019

In ReducedReturnItem.php line 195:

[InvalidArgumentException]
Key 'returnReason' is missing in data array or is not a string

Exception trace:
() at app/vendor/bol-com/retailer-api/src/Model/Rma/ReducedReturnItem.php:195
BolCom\RetailerApi\Model\Rma\ReducedReturnItem::fromArray() at app/vendor/bol-com/retailer-api/src/Model/Rma/ReturnItemList.php:53
BolCom\RetailerApi\Model\Rma\ReturnItemList::fromArray() at app/vendor/bol-com/retailer-api/src/Handler/Rma/GetAllReturnsHandler.php:59
BolCom\RetailerApi\Handler\Rma\GetAllReturnsHandler->__invoke() at app/vendor/bol-com/retailer-api/src/Infrastructure/MessageBus.php:111

Data from API:
Array
(
[rmaId] => XXX
[orderId] => XXX
[ean] => XXX
[quantity] => 0
[registrationDateTime] => 2019-10-22T09:54:14+02:00
[fulfilmentMethod] => FBB
[handled] => 1
[handlingResult] => RETURN_RECEIVED
[processingResult] => ACCEPTED
[processingDateTime] => 2019-10-22T09:54:20+02:00
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants