Closed noorani786 closed 6 years ago
@noorani786 Thanks for reporting, I fixed this.
Excellent! Thank you.
Hey... did you release this yet on 2.0?
Still breaks if you have more than one item with PrepDetailsList. See below:
InboundShipmentPlanRequestItems.member.141.PrepDetailsList.member.1.PrepInstruction=Labeling&InboundShipmentPlanRequestItems.member.141.PrepDetailsList.member.1.PrepOwner=AMAZON&InboundShipmentPlanRequestItems.member.141.Quantity=5&InboundShipmentPlanRequestItems.member.141.SellerSKU=SC2-33-JIMA5BRP&InboundShipmentPlanRequestItems.member.142.FulfillmentNetworkSKU=B00MWM8506&InboundShipmentPlanRequestItems.member.142.PrepDetailsList=%5B%7B%22PrepInstruction%22%3D%3E%22Labeling%22%2C%20%22PrepOwner%22%3D%3E%22AMAZON%22%7D%2C%20%7B%22PrepInstruction%22%3D%3E%22BubbleWrapping%22%2C%20%22PrepOwner%22%3D%3E%22AMAZON%22%7D%5D&InboundShipmentPlanRequestItems.member.142.Quantity=1&InboundShipmentPlanRequestItems.member.142.SellerSKU=SC2-33-JIMA6ID8&InboundShipmentPlanRequestItems.member.143.FulfillmentNetworkSKU=B01AZC3J3M&InboundShipmentPlanRequestItems.member.143.PrepDetailsList=%5B%7B%22PrepInstruction%22%3D%3E%22Labeling%22%2C%20%22PrepOwner%22%3D%3E%22AMAZON%22%7D%5D&InboundShipmentPlanRequestItems.member.143.Quantity=1&InboundShipmentPlanRequestItems.member.143.SellerSKU=0009-27395
@noorani786 I'm not sure, perhaps your request is set up incorrectly? The test ☝️ still passes with multiple items.
The following request_items
array will break the test, ie. passing multiple items with prep-instructions.
request_items = [
{
'SellerSKU' => 'SKU00001',
'Quantity' => '1',
'PrepDetailsList' => [
{ 'PrepInstruction' => 'Taping', 'PrepOwner' => 'AMAZON' },
{ 'PrepInstruction' => 'BubbleWrapping', 'PrepOwner' => 'AMAZON' }
]
}, {
'SellerSKU' => 'SKU000002',
'Quantity' => '2',
'PrepDetailsList' => [
{ 'PrepInstruction' => 'Taping', 'PrepOwner' => 'AMAZON' },
{ 'PrepInstruction' => 'BubbleWrapping', 'PrepOwner' => 'AMAZON' }
]
}
]
@noorani786 Thanks again for reporting, I just pushed a fix
This works now. All that is remaining now is to add
.structure!('PrepDetailsList', 'member')
to create_inbound_shipment
and update_inbound_shipment
:)
Thanks!
Thanks for the PR @noorani786. I also ended up fixing another issue ☝️
Hi, So what's the correct syntax to call the create_inbound_shipment?
Passing it as follows but not working:
But it doesn't seem to be working. Here is what peddler is generating:
Can you please help? Thanks!