fix: revert some changes

pull/6221/head
Gauthier LO 2023-07-06 16:34:35 +02:00
parent f1acfa3a3d
commit cfce37e758
1 changed files with 9 additions and 8 deletions

View File

@ -74,10 +74,10 @@ public class RetrieveOrderListJob implements Job {
// sent request for newly paid orders // sent request for newly paid orders
OrderListRequestBody body = new OrderListRequestBody(); OrderListRequestBody body = new OrderListRequestBody();
body.setDatetimeType(DateType.PAID); body.setDatetimeType(DateType.PAID)
body.setStartDate(begin); .setStartDate(begin)
body.setEndDate(end); .setEndDate(end)
body.setStatus(OrderStatus.AllUnshipped); .setStatus(OrderStatus.AllUnshipped);
OrderListRawStream rawStream = new OrderListRawStream(body); OrderListRawStream rawStream = new OrderListRawStream(body);
// get data in json array format // get data in json array format
List<OrderListResponse> rawStreamAll = rawStream.all(); List<OrderListResponse> rawStreamAll = rawStream.all();
@ -118,10 +118,11 @@ public class RetrieveOrderListJob implements Job {
// Query orders that updated in a certain duration of time in the past. // Query orders that updated in a certain duration of time in the past.
OrderListRequestBody updatedOrderBody = new OrderListRequestBody(); OrderListRequestBody updatedOrderBody = new OrderListRequestBody();
updatedOrderBody.setStartDate(begin); updatedOrderBody
updatedOrderBody.setEndDate(end); .setStartDate(begin)
updatedOrderBody.setDatetimeType(DateType.UPDATE); .setEndDate(end)
updatedOrderBody.setStatus(OrderStatus.Pending); .setDatetimeType(DateType.UPDATE)
.setStatus(OrderStatus.Pending);
OrderListRawStream rawStream = new OrderListRawStream(updatedOrderBody); OrderListRawStream rawStream = new OrderListRawStream(updatedOrderBody);
OrderListStream stream = new OrderListStream(rawStream); OrderListStream stream = new OrderListStream(rawStream);