the load capabilities request don't work when we send a timestamp on doGetPickupCapabilities.
Closed this issue · 1 comments
jmgirao commented
Expected behavior
When we send a timestamp on doGetPickupCapabilities
, the blackout-core should convert to date.
Actual behavior
When we send a timestamp the request sends an error and the pickupDay
is not a query parameter.
The request is sending an error:
404
No HTTP resource was found that matches the request URI
‘https://preview-moonboot.blackandwhite-ff.com/api/returns/26497096/pickupcapabilities’.
Steps to reproduce
Requirements: Create an order for returns.
- Create a return with items;
- Update a return with address;
- Make the capabilities request with timestamp;
Context/environment
we can verify here: https://preview-moonboot.blackandwhite-ff.com
Additional information
Diff: 178b913#diff-3608eda52dbec7a3930afbf7672eef48e58be71699eecb6a473d46e8edd5e1deL43
Possible fix
Keep the old logic when we have a timestamp or type of number. we need to parse to date format. (see the diff)
andreecosta commented
Issue closed. The issue will be created in the portal.