| Current Path : /var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Api/Data/ |
| Current File : //var/www/www.indacotrentino.com/www/vendor/magento/module-sales/Api/Data/ShippingInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Sales\Api\Data;
/**
* Interface ShippingInterface
* @api
* @since 100.0.4
*/
interface ShippingInterface extends \Magento\Framework\Api\ExtensibleDataInterface
{
/**#@+
* Shipping object data keys
*/
const KEY_ADDRESS = 'address';
const KEY_METHOD = 'method';
const KEY_TOTAL = 'total';
/**#@-*/
/**
* Gets shipping address
*
* @return \Magento\Sales\Api\Data\OrderAddressInterface|null
* @since 100.0.4
*/
public function getAddress();
/**
* Gets shipping method
*
* @return string|null
* @since 100.0.4
*/
public function getMethod();
/**
* Gets object with shipping totals
*
* @return \Magento\Sales\Api\Data\TotalInterface|null
* @since 100.0.4
*/
public function getTotal();
/**
* Sets address to shipping
*
* @param \Magento\Sales\Api\Data\OrderAddressInterface $address
* @return $this
* @since 100.0.4
*/
public function setAddress(\Magento\Sales\Api\Data\OrderAddressInterface $address);
/**
* Sets method to shipping
*
* @param string $method
* @return $this
* @since 100.0.4
*/
public function setMethod($method);
/**
* Sets total object to shipping
*
* @param \Magento\Sales\Api\Data\TotalInterface $total
* @return $this
* @since 100.0.4
*/
public function setTotal(\Magento\Sales\Api\Data\TotalInterface $total);
/**
* Retrieve existing extension attributes object or create a new one.
*
* @return \Magento\Sales\Api\Data\ShippingExtensionInterface|null
* @since 100.0.4
*/
public function getExtensionAttributes();
/**
* Set an extension attributes object.
*
* @param \Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes
* @return $this
* @since 100.0.4
*/
public function setExtensionAttributes(
\Magento\Sales\Api\Data\ShippingExtensionInterface $extensionAttributes
);
}