[Api] Changed shipping method's id to code for revisiting steps

This commit is contained in:
Jan Goralski 2016-09-15 15:05:49 +02:00
parent 136156b5e7
commit 6edbda3092
No known key found for this signature in database
GPG key ID: 48749B194497003F
2 changed files with 5 additions and 5 deletions

View file

@ -137,7 +137,7 @@ EOT;
$orderId = $checkoutData['order1']->getId();
$this->addressOrder($orderId);
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
$this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId());
$data =

View file

@ -140,14 +140,14 @@ EOT;
$orderId = $checkoutData['order1']->getId();
$this->addressOrder($orderId);
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
$data =
<<<EOT
{
"shipments": [
{
"method": {$checkoutData['dhl']->getId()}
"method": "{$checkoutData['dhl']->getCode()}"
}
]
}
@ -170,7 +170,7 @@ EOT;
$orderId = $checkoutData['order1']->getId();
$this->addressOrder($orderId);
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getId());
$this->selectOrderShippingMethod($orderId, $checkoutData['ups']->getCode());
$this->selectOrderPaymentMethod($orderId, $checkoutData['cash_on_delivery']->getId());
$data =
@ -178,7 +178,7 @@ EOT;
{
"shipments": [
{
"method": {$checkoutData['dhl']->getId()}
"method": "{$checkoutData['dhl']->getCode()}"
}
]
}