123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Sales\Api\Data;
- use Magento\Framework\Api\ExtensibleDataInterface;
- /**
- * Interface TotalInterface
- * @api
- * @since 100.0.4
- */
- interface TotalInterface extends ExtensibleDataInterface
- {
- /**#@+
- * Constants for keys of data array. Identical to the name of the getter in snake case.
- */
- /*
- * Base shipping amount.
- */
- const BASE_SHIPPING_AMOUNT = 'base_shipping_amount';
- /*
- * Base shipping canceled.
- */
- const BASE_SHIPPING_CANCELED = 'base_shipping_canceled';
- /*
- * Base shipping invoiced.
- */
- const BASE_SHIPPING_INVOICED = 'base_shipping_invoiced';
- /*
- * Base shipping refunded.
- */
- const BASE_SHIPPING_REFUNDED = 'base_shipping_refunded';
- /*
- * Base shipping tax amount.
- */
- const BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount';
- /*
- * Base shipping tax refunded.
- */
- const BASE_SHIPPING_TAX_REFUNDED = 'base_shipping_tax_refunded';
- /*
- * Shipping amount.
- */
- const SHIPPING_AMOUNT = 'shipping_amount';
- /*
- * Shipping canceled.
- */
- const SHIPPING_CANCELED = 'shipping_canceled';
- /*
- * Shipping invoiced.
- */
- const SHIPPING_INVOICED = 'shipping_invoiced';
- /*
- * Shipping refunded.
- */
- const SHIPPING_REFUNDED = 'shipping_refunded';
- /*
- * Shipping tax amount.
- */
- const SHIPPING_TAX_AMOUNT = 'shipping_tax_amount';
- /*
- * Shipping tax refunded.
- */
- const SHIPPING_TAX_REFUNDED = 'shipping_tax_refunded';
- /*
- * Base shipping discount amount.
- */
- const BASE_SHIPPING_DISCOUNT_AMOUNT = 'base_shipping_discount_amount';
- /*
- * Shipping discount amount.
- */
- const SHIPPING_DISCOUNT_AMOUNT = 'shipping_discount_amount';
- /*
- * Shipping discount tax compensation amount.
- */
- const SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount';
- /*
- * Base shipping discount tax compensation amount.
- */
- const BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt';
- /*
- * Shipping including tax.
- */
- const SHIPPING_INCL_TAX = 'shipping_incl_tax';
- /*
- * Base shipping including tax.
- */
- const BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax';
- /**#@-*/
- /**
- * Gets the base shipping amount.
- *
- * @return float|null Base shipping amount.
- * @since 100.0.4
- */
- public function getBaseShippingAmount();
- /**
- * Gets the base shipping canceled.
- *
- * @return float|null Base shipping canceled.
- * @since 100.0.4
- */
- public function getBaseShippingCanceled();
- /**
- * Gets the base shipping discount amount.
- *
- * @return float|null Base shipping discount amount.
- * @since 100.0.4
- */
- public function getBaseShippingDiscountAmount();
- /**
- * Gets the base shipping discount tax compensation amount.
- *
- * @return float|null Base shipping discount tax compensation amount.
- * @since 100.0.4
- */
- public function getBaseShippingDiscountTaxCompensationAmnt();
- /**
- * Gets the base shipping including tax.
- *
- * @return float|null Base shipping including tax.
- * @since 100.0.4
- */
- public function getBaseShippingInclTax();
- /**
- * Gets the base shipping invoiced amount.
- *
- * @return float|null Base shipping invoiced.
- * @since 100.0.4
- */
- public function getBaseShippingInvoiced();
- /**
- * Gets the base shipping refunded amount.
- *
- * @return float|null Base shipping refunded.
- * @since 100.0.4
- */
- public function getBaseShippingRefunded();
- /**
- * Gets the base shipping tax amount.
- *
- * @return float|null Base shipping tax amount.
- * @since 100.0.4
- */
- public function getBaseShippingTaxAmount();
- /**
- * Gets the base shipping tax refunded amount.
- *
- * @return float|null Base shipping tax refunded.
- * @since 100.0.4
- */
- public function getBaseShippingTaxRefunded();
- /**
- * Gets the shipping amount.
- *
- * @return float|null Shipping amount.
- * @since 100.0.4
- */
- public function getShippingAmount();
- /**
- * Gets the shipping canceled amount.
- *
- * @return float|null Shipping canceled amount.
- * @since 100.0.4
- */
- public function getShippingCanceled();
- /**
- * Gets the shipping discount amount.
- *
- * @return float|null Shipping discount amount.
- * @since 100.0.4
- */
- public function getShippingDiscountAmount();
- /**
- * Gets the shipping discount tax compensation amount.
- *
- * @return float|null Shipping discount tax compensation amount.
- * @since 100.0.4
- */
- public function getShippingDiscountTaxCompensationAmount();
- /**
- * Gets the shipping including tax amount.
- *
- * @return float|null Shipping including tax amount.
- * @since 100.0.4
- */
- public function getShippingInclTax();
- /**
- * Gets the shipping invoiced amount.
- *
- * @return float|null Shipping invoiced amount.
- * @since 100.0.4
- */
- public function getShippingInvoiced();
- /**
- * Gets the shipping refunded amount.
- *
- * @return float|null Shipping refunded amount.
- * @since 100.0.4
- */
- public function getShippingRefunded();
- /**
- * Gets the shipping tax amount.
- *
- * @return float|null Shipping tax amount.
- * @since 100.0.4
- */
- public function getShippingTaxAmount();
- /**
- * Gets the shipping tax refunded amount.
- *
- * @return float|null Shipping tax refunded amount.
- * @since 100.0.4
- */
- public function getShippingTaxRefunded();
- /**
- * Sets the base shipping amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingAmount($amount);
- /**
- * Sets the base shipping canceled.
- *
- * @param float $baseShippingCanceled
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingCanceled($baseShippingCanceled);
- /**
- * Sets the base shipping discount amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingDiscountAmount($amount);
- /**
- * Sets the base shipping discount tax compensation amount.
- *
- * @param float $amnt
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingDiscountTaxCompensationAmnt($amnt);
- /**
- * Sets the base shipping including tax.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingInclTax($amount);
- /**
- * Sets the base shipping invoiced amount.
- *
- * @param float $baseShippingInvoiced
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingInvoiced($baseShippingInvoiced);
- /**
- * Sets the base shipping refunded amount.
- *
- * @param float $baseShippingRefunded
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingRefunded($baseShippingRefunded);
- /**
- * Sets the base shipping tax amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingTaxAmount($amount);
- /**
- * Sets the base shipping tax refunded amount.
- *
- * @param float $baseShippingTaxRefunded
- * @return $this
- * @since 100.0.4
- */
- public function setBaseShippingTaxRefunded($baseShippingTaxRefunded);
- /**
- * Sets the shipping amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setShippingAmount($amount);
- /**
- * Sets the shipping canceled amount.
- *
- * @param float $shippingCanceled
- * @return $this
- * @since 100.0.4
- */
- public function setShippingCanceled($shippingCanceled);
- /**
- * Sets the shipping discount amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setShippingDiscountAmount($amount);
- /**
- * Sets the shipping discount tax compensation amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setShippingDiscountTaxCompensationAmount($amount);
- /**
- * Sets the shipping including tax amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setShippingInclTax($amount);
- /**
- * Sets the shipping invoiced amount.
- *
- * @param float $shippingInvoiced
- * @return $this
- * @since 100.0.4
- */
- public function setShippingInvoiced($shippingInvoiced);
- /**
- * Sets the shipping refunded amount.
- *
- * @param float $shippingRefunded
- * @return $this
- * @since 100.0.4
- */
- public function setShippingRefunded($shippingRefunded);
- /**
- * Sets the shipping tax amount.
- *
- * @param float $amount
- * @return $this
- * @since 100.0.4
- */
- public function setShippingTaxAmount($amount);
- /**
- * Sets the shipping tax refunded amount.
- *
- * @param float $shippingTaxRefunded
- * @return $this
- * @since 100.0.4
- */
- public function setShippingTaxRefunded($shippingTaxRefunded);
- /**
- * Retrieve existing extension attributes object or create a new one.
- *
- * @return \Magento\Sales\Api\Data\TotalExtensionInterface|null
- * @since 100.0.4
- */
- public function getExtensionAttributes();
- /**
- * Set an extension attributes object.
- *
- * @param \Magento\Sales\Api\Data\TotalExtensionInterface $extensionAttributes
- * @return $this
- * @since 100.0.4
- */
- public function setExtensionAttributes(
- \Magento\Sales\Api\Data\TotalExtensionInterface $extensionAttributes
- );
- }
|