protected function setUp() { $contact = new InkRouter_Models_Contact(); $contact->setName('contactName')->setPhone('contactPhone')->setEmail('contactEmail'); $headerInfo = new InkRouter_Models_HeaderInfo(); $headerInfo->setFromDomain('myprintingdomain.com')->setFromIdentity('BRENT'); $shipType = new InkRouter_Models_ShipType(); $shipType->setMethod('UPS')->setServiceLevel('GROUND'); $shipAddress = new InkRouter_Models_ShipAddress(); $shipAddress->setCompanyName('Company Name')->setAttention('Attention')->setStreetAddress('742 Evergreen Terrace')->setCity('Springfield')->setState('CA')->setZip('92614')->setCountry('country'); $shipReturnAddress = new InkRouter_Models_ShipReturnAddress(); $shipReturnAddress->setCompanyName('Crymerik Industries')->setPersonName('Roger Heath')->setPhoneNumber('8005551234')->setStreetAddress('3911 Viewpark')->setCity('Irvine')->setState('CA')->setZip('92612')->setCountry('US'); $requester = new InkRouter_Models_Requester(); $requester->setName('Jaisor Prints')->setContract('STANDARD')->setPayTerm('FREE'); $poInfo = new InkRouter_Models_PoInfo(); $poInfo->setAgentId('agentId')->setCurrency('currency'); $printAsset = new InkRouter_Models_PrintAsset(); $printAsset->setPositionX(4.98)->setPositionY(3.1)->setRotation(-90)->setType('BARCODE')->setHeight(0.543)->setWidth(2.12); $side = new InkRouter_Models_Side(); $side->setPageNumber(10)->setFileUrl('http://server/images/business_cards/front/0.tif')->setFileHash('0a0825909aa15a98b00574661f23aee7')->setCoating('NONE')->setOrientation('Landscape')->setSpotUvFileUrl('http://server/images/business_cards/front/spot_uv.tif')->setSpotUvFileHash('120825909aa15s2b00574661f23aee7')->addPrintAsset($printAsset); $attributes = new InkRouter_Models_Attributes_ScalarBooleanAttribute(); $attributes->setType('LABELING'); $attributes->setValue(true); $orderItem = new InkRouter_Models_OrderItem(); $orderItem->setPrintGroupId('pg4f7969f8a4800')->setProductType('business cards')->setPaperType('14PT')->setQuantity(500)->setRegionSize('US')->setCost('cost')->addAttributes($attributes)->addSide($side); $order = new InkRouter_Models_Order(); $order->setPrintCustomerInvoice(44164524)->setTsCreated('2012-04-04T19:25:21+04:00')->setPriority(0)->setShippingFee(10)->setProductDiscounts(0)->setShippingDiscounts(0)->setVendorId('vendorId')->setContact($contact)->setShipType($shipType)->setRequester($requester)->setShipAddress($shipAddress)->setShipReturnAddress($shipReturnAddress)->addOrderItem($orderItem); $orderInfo = new InkRouter_Models_OrderInfo(); $orderInfo->setHeaderInfo($headerInfo)->setPrintCustomerId('BRENT')->setPoInfo($poInfo)->setOrder($order); $this->orderInfo = $orderInfo; }
protected function setUp() { $side = new InkRouter_Models_Side(); $side->setPageNumber(10)->setFileUrl('http://server/images/business_cards/front/0.tif')->setFileHash('0a0825909aa15a98b00574661f23aee7')->setCoating('NONE')->setOrientation('Landscape')->setSpotUvFileUrl('http://server/images/business_cards/front/spot_uv.tif')->setSpotUvFileHash('120825909aa15s2b00574661f23aee7'); $attributes = new InkRouter_Models_Attributes_ScalarBooleanAttribute(); $attributes->setType('LABELING'); $attributes->setValue(true); $this->orderItem = new InkRouter_Models_OrderItem(); $this->orderItem->setPrintGroupId('pg4f7969f8a4800')->setProductType('business cards')->setPaperType('14PT')->setQuantity(500)->setRegionSize('US')->setCost('cost')->addAttributes($attributes)->addSide($side)->setInspection('Inspect this item'); }