mallgroup / mpapi-client-php

MPAPI client is a PHP tool created to help Internet Mall, a. s. partners easily manage article catalog, deliveries, orders, etc. using Mall Marketplace API.
Apache License 2.0
6 stars 19 forks source link

Orders->all() no longer return all orders #20

Closed Engazan closed 3 years ago

Engazan commented 3 years ago

hi,

function all() no longer return all orders, it always return MAX 9 orders from OLDEST from 2020.20.01 10:00

it seems like problem is in includeTestOrders(true)

$orders = new \MPAPI\Services\Orders($mpapiClient);
$ordersData = $orders->get()->includeTestOrders(true)->all();
michalsalon-mall commented 3 years ago

Hi,

when i try to call the endpoint directly on our data or using the client, it returns all test orders correctly. Could you please provide more info (amount of orders returned before etc.)? I need your partner id (not the client id!) to do some debugging. You can send it via PM or ideally by contacting your onboarding specialist, where you can provide required details (requests/responses etc.) without exposing them to the public.

Thank you.

Engazan commented 3 years ago

We got email from Mall Group about Technical problem in Orders, and they will fix it today

Thanks.

michalsalon-mall commented 3 years ago

Yes, there were some problems today, but none of them affected list of test orders AFAIK. So if it still does not work correctly, let us know.

Thank you.

Engazan commented 3 years ago

another update today we found another problem with includeTestOrders, looks like old filters not working at all :(

$allBlockedOrders = $orders->get()->includeTestOrders(true)->blocked();
michalsalon-mall commented 3 years ago

Hi,

yes we have received a bug ticket about this issue and it is already fixed, but was not deployed to production during weekend. It should be working correctly now.

Thank you and sorry about the issues.