From 7974bca087ce84a0351d8ec45545b05cdd3d2802 Mon Sep 17 00:00:00 2001 From: Matteo Cacciola Date: Mon, 3 Jun 2019 21:53:33 +0200 Subject: [PATCH] + minor changes --- src/Order.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/Order.php b/src/Order.php index d316f2c..78585d3 100644 --- a/src/Order.php +++ b/src/Order.php @@ -300,8 +300,6 @@ public function ship($purchaseOrderId, $order) $schema = [ '/orderShipment' => [ - 'namespace' => 'ns3', - 'childNamespace' => 'ns3', ], '/orderShipment/orderLines' => [ 'sendItemsAs' => 'orderLine', @@ -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();