- /**
- * Collect totals process.
- *
- * @param \Magento\Quote\Model\Quote $quote
- * @param \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment
- * @param \Magento\Quote\Model\Quote\Address\Total $total
- * @return $this
- */
- public function collect(
- \Magento\Quote\Model\Quote $quote,
- \Magento\Quote\Api\Data\ShippingAssignmentInterface $shippingAssignment,
- \Magento\Quote\Model\Quote\Address\Total $total
- ) {
- $this->_setAddress($shippingAssignment->getShipping()->getAddress());
- $this->_setTotal($total);
- /**
- * Reset amounts
- */
- $this->_setAmount(0);
- $this->_setBaseAmount(0);
- return $this;