walmart-api-php icon indicating copy to clipboard operation
walmart-api-php copied to clipboard

Order OrderLines are incorrectly RefundLineType

Open dpash opened this issue 2 years ago • 3 comments

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"
                      }
                  }
              }
          }
      }

dpash avatar Sep 28 '23 10:09 dpash

following!

arons-3c avatar Jan 26 '24 05:01 arons-3c

@dpash can you provide an example on how to make this work? Thanks

arons-3c avatar Jan 26 '24 22:01 arons-3c

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.

dpash avatar Feb 19 '24 17:02 dpash