Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
+ minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocacciola committed Jun 3, 2019
1 parent 9d25143 commit 7974bca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,6 @@ public function ship($purchaseOrderId, $order)

$schema = [
'/orderShipment' => [
'namespace' => 'ns3',
'childNamespace' => 'ns3',
],
'/orderShipment/orderLines' => [
'sendItemsAs' => 'orderLine',
Expand All @@ -310,10 +308,11 @@ public function ship($purchaseOrderId, $order)
'sendItemsAs' => 'orderLineStatus',
],
'@namespaces' => [
'ns3' => 'http://walmart.com/mp/v3/orders'
'ns2' => 'http://walmart.com/mp/v3/orders',
'ns3' => 'http://walmart.com'
],
];

$a2x = new A2X($order, $schema);
$xml = $a2x->asXml();

Expand Down

0 comments on commit 7974bca

Please sign in to comment.