hakanensari/mws-orders

Questions about `GetOrder` parsing

rynkjm opened this issue · 2 comments

Hi!

Why does GetOrder parse return the first element?

https://github.com/hakanensari/mws-orders/blob/v0.5.1/lib/mws/orders/parser.rb#L36

I was expecting the next behavior.

response = client.get_order("XXX-XXXXXXX-XXXXXXX","XXX-XXXXXXX-YYYYYYY")
response.parse
#=> <MWS::Orders::Orders [#<MWS::Orders::Order XXX-XXXXXXX-XXXXXXX>, #<MWS::Orders::Order XXX-XXXXXXX-YYYYYYY>]>

But only the first element.

@rynkjm You're right, I'll fix this

@hakanensari thank you 👍