Skip to content
Snippets Groups Projects
Commit e975e957 authored by Andy Summers's avatar Andy Summers
Browse files

Add CBS values for shipping methods

parent 6381e916
No related branches found
No related tags found
1 merge request!60Add CBS values for shipping methods
...@@ -36,4 +36,15 @@ abstract class MagentoOrder ...@@ -36,4 +36,15 @@ abstract class MagentoOrder
/** @var string 'Sales Rep' who sold this order (online, so Magento) */ /** @var string 'Sales Rep' who sold this order (online, so Magento) */
const SALES_REP = 'Magento'; const SALES_REP = 'Magento';
/** @var string CBS value for UPS shipping method */
const UPS_SHIPPING = 'DAYTON DELIVERY';
/** @var string CBS value for Tech Store Pickup shipping method */
const TS_PICKUP = 'TECHSTORE PICKUP';
/** @var string CBS value for HSLC Pickup shipping method */
const HSLC_PICKUP = 'HSLC PICKUP';
/** @var string CBS value for ECM Pickup shipping method */
const ECM_PICKUP = 'ECM PICKUP';
} }
...@@ -42,7 +42,7 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase ...@@ -42,7 +42,7 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase
$itemNumber = mt_rand(0, 99999); $itemNumber = mt_rand(0, 99999);
$cost = mt_rand(1, 10000); $cost = mt_rand(1, 10000);
return (new Product()) return (new Product())
->setSku($itemNumber) ->setSku('63569')
->setName('ADI IA Test Product') ->setName('ADI IA Test Product')
->setCbsItemTemplate(1390) ->setCbsItemTemplate(1390)
->setCategory('ADI IA Test Category') ->setCategory('ADI IA Test Category')
...@@ -78,9 +78,9 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase ...@@ -78,9 +78,9 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase
->setOrderNumber($orderNumber) ->setOrderNumber($orderNumber)
->setOrigSystemDocumentRef(MagentoOrder::ORIG_SYS_PREFIX . $orderNumber) ->setOrigSystemDocumentRef(MagentoOrder::ORIG_SYS_PREFIX . $orderNumber)
->setCustomerType(MagentoOrder::PERSONAL) ->setCustomerType(MagentoOrder::PERSONAL)
->setCustomerIdentifier('UW123A456') ->setCustomerIdentifier('UW027S180')
->setCustomerIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE) ->setCustomerIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE)
->setPurchaserIdentifier('UW123A456') ->setPurchaserIdentifier('UW027S180')
->setPurchaserIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE) ->setPurchaserIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE)
->setCustomerReferenceField('TBD') ->setCustomerReferenceField('TBD')
->setInterfaceTypeFlag('TBD') ->setInterfaceTypeFlag('TBD')
...@@ -104,8 +104,8 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase ...@@ -104,8 +104,8 @@ class IntegrationTestCase extends \PHPUnit_Framework_TestCase
->setItemNumber($product->getSku()) ->setItemNumber($product->getSku())
->setQuantity(1) ->setQuantity(1)
->setUnitPrice(Money::USD(1000)) ->setUnitPrice(Money::USD(1000))
->setDeliveryMethod('CARRIER_PIGEON') ->setDeliveryMethod(MagentoOrder::UPS_SHIPPING)
->setShipToIdentifier('UW123A456') ->setShipToIdentifier('UW027S180')
->setShipToIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE) ->setShipToIdentifierType(MagentoOrder::PERSONAL_IDENTIFIER_TYPE)
->setShipToAddress1('123 N. South St. Madison, WI 53703') ->setShipToAddress1('123 N. South St. Madison, WI 53703')
->setShipToCity('Madison') ->setShipToCity('Madison')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment