We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 0b0b5262 authored by Rik ter Beek's avatar Rik ter Beek

PW-328 houseNumberOrName can be empty

parent 2e87b22a
...@@ -66,15 +66,11 @@ class AddressDataBuilder implements BuilderInterface ...@@ -66,15 +66,11 @@ class AddressDataBuilder implements BuilderInterface
$requestBilling = ["street" => $billingAddress->getStreetLine1(), $requestBilling = ["street" => $billingAddress->getStreetLine1(),
"postalCode" => $billingAddress->getPostcode(), "postalCode" => $billingAddress->getPostcode(),
"city" => $billingAddress->getCity(), "city" => $billingAddress->getCity(),
"houseNumberOrName" => 'NA', "houseNumberOrName" => '',
"stateOrProvince" => $billingAddress->getRegionCode(), "stateOrProvince" => $billingAddress->getRegionCode(),
"country" => $billingAddress->getCountryId() "country" => $billingAddress->getCountryId()
]; ];
// houseNumberOrName is mandatory
if ($requestBilling['houseNumberOrName'] == "") {
$requestBilling['houseNumberOrName'] = "NA";
}
$result['billingAddress'] = $requestBilling; $result['billingAddress'] = $requestBilling;
} }
...@@ -86,15 +82,11 @@ class AddressDataBuilder implements BuilderInterface ...@@ -86,15 +82,11 @@ class AddressDataBuilder implements BuilderInterface
$requestDelivery = ["street" => $shippingAddress->getStreetLine1(), $requestDelivery = ["street" => $shippingAddress->getStreetLine1(),
"postalCode" => $shippingAddress->getPostcode(), "postalCode" => $shippingAddress->getPostcode(),
"city" => $shippingAddress->getCity(), "city" => $shippingAddress->getCity(),
"houseNumberOrName" => 'NA', "houseNumberOrName" => '',
"stateOrProvince" => $shippingAddress->getRegionCode(), "stateOrProvince" => $shippingAddress->getRegionCode(),
"country" => $shippingAddress->getCountryId() "country" => $shippingAddress->getCountryId()
]; ];
// houseNumberOrName is mandatory
if ($requestDelivery['houseNumberOrName'] == "") {
$requestDelivery['houseNumberOrName'] = "NA";
}
$result['deliveryAddress'] = $requestDelivery; $result['deliveryAddress'] = $requestDelivery;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment