walmart-api-php
walmart-api-php copied to clipboard
Order OrderLines are incorrectly RefundLineType
The JSON uses RefundLineType rather than OrderLineType for the OrderLlines returned from the "getAllOrders", which means that none of the data in the order lines are available.
I've tried to rebuild the project, but I'm getting OpenAPI Generator errors that I don't know how to resolve.
I think the following in the replacements.json should solve the issue.
"orders": {
"schemas": {
"Order": {
"properties": {
"orderLines": {
"$refs": "#\/components\/schemas\/OrderLinesType"
}
}
}
}
}
following!
@dpash can you provide an example on how to make this work? Thanks
https://github.com/dpash/walmart-api-php/tree/fix-getallorders should resolve this issue.
It currently depends on #21 being merged. I can cherry-pick the commits into a new branch without the build fixes if you'd prefer not to include those. It's also three commits. Let me know if you'd prefer me to squash them into a single commit.