コード例 #1
0
 /**
  * Extract tax records from a gifting payload.
  *
  * @return EbayEnterprise_Tax_Model_Record[]
  */
 protected function _extractGiftingTaxRecords()
 {
     return $this->_taxFactory->createTaxRecordsForTaxContainer(EbayEnterprise_Tax_Model_Record::SOURCE_ADDRESS_GIFTING, $this->_quoteId, $this->_addressId, $this->_shipGroup->getGiftPricing());
 }
コード例 #2
0
 /**
  * Get the quote address the ship group is the destination for.
  *
  * @param ITaxedShipGroup
  * @return Mage_Sales_Model_Quote_Address|null
  */
 protected function _getQuoteAddressForShipGroup(ITaxedShipGroup $shipGroup)
 {
     // If the destination id can be guaranteed to match between request and
     // response, the id generated for the request could be captured with the
     // address to link the destination payload back up with the quote address.
     return $this->_quote->getAddressesCollection()->getItemByColumnValue('destination_id', $shipGroup->getDestination()->getId());
 }