InvoiceInterface.php 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api\Data;
  7. /**
  8. * Invoice interface.
  9. *
  10. * An invoice is a record of the receipt of payment for an order.
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface InvoiceInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  15. {
  16. /**#@+
  17. * Constants for keys of data array. Identical to the name of the getter in snake case
  18. */
  19. /*
  20. * Entity ID.
  21. */
  22. const ENTITY_ID = 'entity_id';
  23. /*
  24. * Store ID.
  25. */
  26. const STORE_ID = 'store_id';
  27. /*
  28. * Base grand total.
  29. */
  30. const BASE_GRAND_TOTAL = 'base_grand_total';
  31. /*
  32. * Shipping tax amount.
  33. */
  34. const SHIPPING_TAX_AMOUNT = 'shipping_tax_amount';
  35. /*
  36. * Tax amount.
  37. */
  38. const TAX_AMOUNT = 'tax_amount';
  39. /*
  40. * Base tax amount.
  41. */
  42. const BASE_TAX_AMOUNT = 'base_tax_amount';
  43. /*
  44. * Store-to-order rate.
  45. */
  46. const STORE_TO_ORDER_RATE = 'store_to_order_rate';
  47. /*
  48. * Base shipping tax amount.
  49. */
  50. const BASE_SHIPPING_TAX_AMOUNT = 'base_shipping_tax_amount';
  51. /*
  52. * Base discount amount.
  53. */
  54. const BASE_DISCOUNT_AMOUNT = 'base_discount_amount';
  55. /*
  56. * Base-to-order rate.
  57. */
  58. const BASE_TO_ORDER_RATE = 'base_to_order_rate';
  59. /*
  60. * Grand total.
  61. */
  62. const GRAND_TOTAL = 'grand_total';
  63. /*
  64. * Shipping amount.
  65. */
  66. const SHIPPING_AMOUNT = 'shipping_amount';
  67. /*
  68. * Subtotal including tax.
  69. */
  70. const SUBTOTAL_INCL_TAX = 'subtotal_incl_tax';
  71. /*
  72. * Base subtotal including tax.
  73. */
  74. const BASE_SUBTOTAL_INCL_TAX = 'base_subtotal_incl_tax';
  75. /*
  76. * Store-to-base rate.
  77. */
  78. const STORE_TO_BASE_RATE = 'store_to_base_rate';
  79. /*
  80. * Base shipping amount.
  81. */
  82. const BASE_SHIPPING_AMOUNT = 'base_shipping_amount';
  83. /*
  84. * Total quantity.
  85. */
  86. const TOTAL_QTY = 'total_qty';
  87. /*
  88. * Base-to-global rate.
  89. */
  90. const BASE_TO_GLOBAL_RATE = 'base_to_global_rate';
  91. /*
  92. * Subtotal.
  93. */
  94. const SUBTOTAL = 'subtotal';
  95. /*
  96. * Base subtotal.
  97. */
  98. const BASE_SUBTOTAL = 'base_subtotal';
  99. /*
  100. * Discount amount.
  101. */
  102. const DISCOUNT_AMOUNT = 'discount_amount';
  103. /*
  104. * Billing address ID.
  105. */
  106. const BILLING_ADDRESS_ID = 'billing_address_id';
  107. /*
  108. * Is used for refund.
  109. */
  110. const IS_USED_FOR_REFUND = 'is_used_for_refund';
  111. /*
  112. * Order ID.
  113. */
  114. const ORDER_ID = 'order_id';
  115. /*
  116. * Email sent flag.
  117. */
  118. const EMAIL_SENT = 'email_sent';
  119. /*
  120. * Can void flag.
  121. */
  122. const CAN_VOID_FLAG = 'can_void_flag';
  123. /*
  124. * State.
  125. */
  126. const STATE = 'state';
  127. /*
  128. * Shipping address ID.
  129. */
  130. const SHIPPING_ADDRESS_ID = 'shipping_address_id';
  131. /*
  132. * Store currency code.
  133. */
  134. const STORE_CURRENCY_CODE = 'store_currency_code';
  135. /*
  136. * Transaction ID.
  137. */
  138. const TRANSACTION_ID = 'transaction_id';
  139. /*
  140. * Order currency code.
  141. */
  142. const ORDER_CURRENCY_CODE = 'order_currency_code';
  143. /*
  144. * Base currency code.
  145. */
  146. const BASE_CURRENCY_CODE = 'base_currency_code';
  147. /*
  148. * Global currency code.
  149. */
  150. const GLOBAL_CURRENCY_CODE = 'global_currency_code';
  151. /*
  152. * Increment ID.
  153. */
  154. const INCREMENT_ID = 'increment_id';
  155. /*
  156. * Created-at timestamp.
  157. */
  158. const CREATED_AT = 'created_at';
  159. /*
  160. * Updated-at timestamp.
  161. */
  162. const UPDATED_AT = 'updated_at';
  163. /*
  164. * Discount tax compensation amount.
  165. */
  166. const DISCOUNT_TAX_COMPENSATION_AMOUNT = 'discount_tax_compensation_amount';
  167. /*
  168. * Base discount tax compensation amount.
  169. */
  170. const BASE_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'base_discount_tax_compensation_amount';
  171. /*
  172. * Shipping discount tax compensation amount.
  173. */
  174. const SHIPPING_DISCOUNT_TAX_COMPENSATION_AMOUNT = 'shipping_discount_tax_compensation_amount';
  175. /*
  176. * Base shipping discount tax compensation amount.
  177. */
  178. const BASE_SHIPPING_DISCOUNT_TAX_COMPENSATION_AMNT = 'base_shipping_discount_tax_compensation_amnt';
  179. /*
  180. * Shipping including tax.
  181. */
  182. const SHIPPING_INCL_TAX = 'shipping_incl_tax';
  183. /*
  184. * Base shipping including tax.
  185. */
  186. const BASE_SHIPPING_INCL_TAX = 'base_shipping_incl_tax';
  187. /*
  188. * Base total refunded.
  189. */
  190. const BASE_TOTAL_REFUNDED = 'base_total_refunded';
  191. /*
  192. * Discount description.
  193. */
  194. const DISCOUNT_DESCRIPTION = 'discount_description';
  195. /*
  196. * Items.
  197. */
  198. const ITEMS = 'items';
  199. /*
  200. * Comments.
  201. */
  202. const COMMENTS = 'comments';
  203. /**
  204. * Gets the base currency code for the invoice.
  205. *
  206. * @return string|null Base currency code.
  207. */
  208. public function getBaseCurrencyCode();
  209. /**
  210. * Gets the base discount amount for the invoice.
  211. *
  212. * @return float|null Base discount amount.
  213. */
  214. public function getBaseDiscountAmount();
  215. /**
  216. * Gets the base grand total for the invoice.
  217. *
  218. * @return float|null Base grand total.
  219. */
  220. public function getBaseGrandTotal();
  221. /**
  222. * Gets the base discount tax compensation amount for the invoice.
  223. *
  224. * @return float|null Base discount tax compensation amount.
  225. */
  226. public function getBaseDiscountTaxCompensationAmount();
  227. /**
  228. * Gets the base shipping amount for the invoice.
  229. *
  230. * @return float|null Base shipping amount.
  231. */
  232. public function getBaseShippingAmount();
  233. /**
  234. * Gets the base shipping discount tax compensation amount for the invoice.
  235. *
  236. * @return float|null Base shipping discount tax compensation amount.
  237. */
  238. public function getBaseShippingDiscountTaxCompensationAmnt();
  239. /**
  240. * Gets the base shipping including tax for the invoice.
  241. *
  242. * @return float|null Base shipping including tax.
  243. */
  244. public function getBaseShippingInclTax();
  245. /**
  246. * Gets the base shipping tax amount for the invoice.
  247. *
  248. * @return float|null Base shipping tax amount.
  249. */
  250. public function getBaseShippingTaxAmount();
  251. /**
  252. * Gets the base subtotal for the invoice.
  253. *
  254. * @return float|null Base subtotal.
  255. */
  256. public function getBaseSubtotal();
  257. /**
  258. * Gets the base subtotal including tax for the invoice.
  259. *
  260. * @return float|null Base subtotal including tax.
  261. */
  262. public function getBaseSubtotalInclTax();
  263. /**
  264. * Gets the base tax amount for the invoice.
  265. *
  266. * @return float|null Base tax amount.
  267. */
  268. public function getBaseTaxAmount();
  269. /**
  270. * Gets the base total refunded for the invoice.
  271. *
  272. * @return float|null Base total refunded.
  273. */
  274. public function getBaseTotalRefunded();
  275. /**
  276. * Gets the base-to-global rate for the invoice.
  277. *
  278. * @return float|null Base-to-global rate.
  279. */
  280. public function getBaseToGlobalRate();
  281. /**
  282. * Gets the base-to-order rate for the invoice.
  283. *
  284. * @return float|null Base-to-order rate.
  285. */
  286. public function getBaseToOrderRate();
  287. /**
  288. * Gets the billing address ID for the invoice.
  289. *
  290. * @return int|null Billing address ID.
  291. */
  292. public function getBillingAddressId();
  293. /**
  294. * Gets the can void flag value for the invoice.
  295. *
  296. * @return int|null Can void flag value.
  297. */
  298. public function getCanVoidFlag();
  299. /**
  300. * Gets the created-at timestamp for the invoice.
  301. *
  302. * @return string|null Created-at timestamp.
  303. */
  304. public function getCreatedAt();
  305. /**
  306. * Sets the created-at timestamp for the invoice.
  307. *
  308. * @param string $createdAt timestamp
  309. * @return $this
  310. */
  311. public function setCreatedAt($createdAt);
  312. /**
  313. * Gets the discount amount for the invoice.
  314. *
  315. * @return float|null Discount amount.
  316. */
  317. public function getDiscountAmount();
  318. /**
  319. * Gets the discount description for the invoice.
  320. *
  321. * @return string|null Discount description.
  322. */
  323. public function getDiscountDescription();
  324. /**
  325. * Gets the email-sent flag value for the invoice.
  326. *
  327. * @return int|null Email-sent flag value.
  328. */
  329. public function getEmailSent();
  330. /**
  331. * Gets the ID for the invoice.
  332. *
  333. * @return int|null Invoice ID.
  334. */
  335. public function getEntityId();
  336. /**
  337. * Sets entity ID.
  338. *
  339. * @param int $entityId
  340. * @return $this
  341. */
  342. public function setEntityId($entityId);
  343. /**
  344. * Gets the global currency code for the invoice.
  345. *
  346. * @return string|null Global currency code.
  347. */
  348. public function getGlobalCurrencyCode();
  349. /**
  350. * Gets the grand total for the invoice.
  351. *
  352. * @return float|null Grand total.
  353. */
  354. public function getGrandTotal();
  355. /**
  356. * Gets the discount tax compensation amount for the invoice.
  357. *
  358. * @return float|null Discount tax compensation amount.
  359. */
  360. public function getDiscountTaxCompensationAmount();
  361. /**
  362. * Gets the increment ID for the invoice.
  363. *
  364. * @return string|null Increment ID.
  365. */
  366. public function getIncrementId();
  367. /**
  368. * Gets the is-used-for-refund flag value for the invoice.
  369. *
  370. * @return int|null Is-used-for-refund flag value.
  371. */
  372. public function getIsUsedForRefund();
  373. /**
  374. * Gets the order currency code for the invoice.
  375. *
  376. * @return string|null Order currency code.
  377. */
  378. public function getOrderCurrencyCode();
  379. /**
  380. * Gets the order ID for the invoice.
  381. *
  382. * @return int Order ID.
  383. */
  384. public function getOrderId();
  385. /**
  386. * Gets the shipping address ID for the invoice.
  387. *
  388. * @return int|null Shipping address ID.
  389. */
  390. public function getShippingAddressId();
  391. /**
  392. * Gets the shipping amount for the invoice.
  393. *
  394. * @return float|null Shipping amount.
  395. */
  396. public function getShippingAmount();
  397. /**
  398. * Gets the shipping discount tax compensation amount for the invoice.
  399. *
  400. * @return float|null Shipping discount tax compensation amount.
  401. */
  402. public function getShippingDiscountTaxCompensationAmount();
  403. /**
  404. * Gets the shipping including tax for the invoice.
  405. *
  406. * @return float|null Shipping including tax.
  407. */
  408. public function getShippingInclTax();
  409. /**
  410. * Gets the shipping tax amount for the invoice.
  411. *
  412. * @return float|null Shipping tax amount.
  413. */
  414. public function getShippingTaxAmount();
  415. /**
  416. * Gets the state for the invoice.
  417. *
  418. * @return int|null State.
  419. */
  420. public function getState();
  421. /**
  422. * Gets the store currency code for the invoice.
  423. *
  424. * @return string|null Store currency code.
  425. */
  426. public function getStoreCurrencyCode();
  427. /**
  428. * Gets the store ID for the invoice.
  429. *
  430. * @return int|null Store ID.
  431. */
  432. public function getStoreId();
  433. /**
  434. * Gets the store-to-base rate for the invoice.
  435. *
  436. * @return float|null Store-to-base rate.
  437. */
  438. public function getStoreToBaseRate();
  439. /**
  440. * Gets the store-to-order rate for the invoice.
  441. *
  442. * @return float|null Store-to-order rate.
  443. */
  444. public function getStoreToOrderRate();
  445. /**
  446. * Gets the subtotal for the invoice.
  447. *
  448. * @return float|null Subtotal.
  449. */
  450. public function getSubtotal();
  451. /**
  452. * Gets the subtotal including tax for the invoice.
  453. *
  454. * @return float|null Subtotal including tax.
  455. */
  456. public function getSubtotalInclTax();
  457. /**
  458. * Gets the tax amount for the invoice.
  459. *
  460. * @return float|null Tax amount.
  461. */
  462. public function getTaxAmount();
  463. /**
  464. * Gets the total quantity for the invoice.
  465. *
  466. * @return float Total quantity.
  467. */
  468. public function getTotalQty();
  469. /**
  470. * Gets the transaction ID for the invoice.
  471. *
  472. * @return string|null Transaction ID.
  473. */
  474. public function getTransactionId();
  475. /**
  476. * Sets the transaction ID for the invoice.
  477. *
  478. * @param string $transactionId
  479. * @return $this
  480. */
  481. public function setTransactionId($transactionId);
  482. /**
  483. * Gets the updated-at timestamp for the invoice.
  484. *
  485. * @return string|null Updated-at timestamp.
  486. */
  487. public function getUpdatedAt();
  488. /**
  489. * Gets the items in the invoice.
  490. *
  491. * @return \Magento\Sales\Api\Data\InvoiceItemInterface[] Array of invoice items.
  492. */
  493. public function getItems();
  494. /**
  495. * Sets the items in the invoice.
  496. *
  497. * @param \Magento\Sales\Api\Data\InvoiceItemInterface[] $items
  498. * @return $this
  499. */
  500. public function setItems($items);
  501. /**
  502. * Gets the comments, if any, for the invoice.
  503. *
  504. * @return \Magento\Sales\Api\Data\InvoiceCommentInterface[]|null Array of any invoice comments. Otherwise, null.
  505. */
  506. public function getComments();
  507. /**
  508. * Sets the comments, if any, for the invoice.
  509. *
  510. * @param \Magento\Sales\Api\Data\InvoiceCommentInterface[] $comments
  511. * @return $this
  512. */
  513. public function setComments($comments);
  514. /**
  515. * Sets the updated-at timestamp for the invoice.
  516. *
  517. * @param string $timestamp
  518. * @return $this
  519. */
  520. public function setUpdatedAt($timestamp);
  521. /**
  522. * Sets the store ID for the invoice.
  523. *
  524. * @param int $id
  525. * @return $this
  526. */
  527. public function setStoreId($id);
  528. /**
  529. * Sets the base grand total for the invoice.
  530. *
  531. * @param float $amount
  532. * @return $this
  533. */
  534. public function setBaseGrandTotal($amount);
  535. /**
  536. * Sets the shipping tax amount for the invoice.
  537. *
  538. * @param float $amount
  539. * @return $this
  540. */
  541. public function setShippingTaxAmount($amount);
  542. /**
  543. * Sets the tax amount for the invoice.
  544. *
  545. * @param float $amount
  546. * @return $this
  547. */
  548. public function setTaxAmount($amount);
  549. /**
  550. * Sets the base tax amount for the invoice.
  551. *
  552. * @param float $amount
  553. * @return $this
  554. */
  555. public function setBaseTaxAmount($amount);
  556. /**
  557. * Sets the store-to-order rate for the invoice.
  558. *
  559. * @param float $rate
  560. * @return $this
  561. */
  562. public function setStoreToOrderRate($rate);
  563. /**
  564. * Sets the base shipping tax amount for the invoice.
  565. *
  566. * @param float $amount
  567. * @return $this
  568. */
  569. public function setBaseShippingTaxAmount($amount);
  570. /**
  571. * Sets the base discount amount for the invoice.
  572. *
  573. * @param float $amount
  574. * @return $this
  575. */
  576. public function setBaseDiscountAmount($amount);
  577. /**
  578. * Sets the base-to-order rate for the invoice.
  579. *
  580. * @param float $rate
  581. * @return $this
  582. */
  583. public function setBaseToOrderRate($rate);
  584. /**
  585. * Sets the grand total for the invoice.
  586. *
  587. * @param float $amount
  588. * @return $this
  589. */
  590. public function setGrandTotal($amount);
  591. /**
  592. * Sets the shipping amount for the invoice.
  593. *
  594. * @param float $amount
  595. * @return $this
  596. */
  597. public function setShippingAmount($amount);
  598. /**
  599. * Sets the subtotal including tax for the invoice.
  600. *
  601. * @param float $amount
  602. * @return $this
  603. */
  604. public function setSubtotalInclTax($amount);
  605. /**
  606. * Sets the base subtotal including tax for the invoice.
  607. *
  608. * @param float $amount
  609. * @return $this
  610. */
  611. public function setBaseSubtotalInclTax($amount);
  612. /**
  613. * Sets the store-to-base rate for the invoice.
  614. *
  615. * @param float $rate
  616. * @return $this
  617. */
  618. public function setStoreToBaseRate($rate);
  619. /**
  620. * Sets the base shipping amount for the invoice.
  621. *
  622. * @param float $amount
  623. * @return $this
  624. */
  625. public function setBaseShippingAmount($amount);
  626. /**
  627. * Sets the total quantity for the invoice.
  628. *
  629. * @param float $qty
  630. * @return $this
  631. */
  632. public function setTotalQty($qty);
  633. /**
  634. * Sets the base-to-global rate for the invoice.
  635. *
  636. * @param float $rate
  637. * @return $this
  638. */
  639. public function setBaseToGlobalRate($rate);
  640. /**
  641. * Sets the subtotal for the invoice.
  642. *
  643. * @param float $amount
  644. * @return $this
  645. */
  646. public function setSubtotal($amount);
  647. /**
  648. * Sets the base subtotal for the invoice.
  649. *
  650. * @param float $amount
  651. * @return $this
  652. */
  653. public function setBaseSubtotal($amount);
  654. /**
  655. * Sets the discount amount for the invoice.
  656. *
  657. * @param float $amount
  658. * @return $this
  659. */
  660. public function setDiscountAmount($amount);
  661. /**
  662. * Sets the billing address ID for the invoice.
  663. *
  664. * @param int $id
  665. * @return $this
  666. */
  667. public function setBillingAddressId($id);
  668. /**
  669. * Sets the is-used-for-refund flag value for the invoice.
  670. *
  671. * @param int $isUsedForRefund
  672. * @return $this
  673. */
  674. public function setIsUsedForRefund($isUsedForRefund);
  675. /**
  676. * Sets the order ID for the invoice.
  677. *
  678. * @param int $id
  679. * @return $this
  680. */
  681. public function setOrderId($id);
  682. /**
  683. * Sets the email-sent flag value for the invoice.
  684. *
  685. * @param int $emailSent
  686. * @return $this
  687. */
  688. public function setEmailSent($emailSent);
  689. /**
  690. * Sets the can void flag value for the invoice.
  691. *
  692. * @param int $canVoidFlag
  693. * @return $this
  694. */
  695. public function setCanVoidFlag($canVoidFlag);
  696. /**
  697. * Sets the state for the invoice.
  698. *
  699. * @param int $state
  700. * @return $this
  701. */
  702. public function setState($state);
  703. /**
  704. * Sets the shipping address ID for the invoice.
  705. *
  706. * @param int $id
  707. * @return $this
  708. */
  709. public function setShippingAddressId($id);
  710. /**
  711. * Sets the store currency code for the invoice.
  712. *
  713. * @param string $code
  714. * @return $this
  715. */
  716. public function setStoreCurrencyCode($code);
  717. /**
  718. * Sets the order currency code for the invoice.
  719. *
  720. * @param string $code
  721. * @return $this
  722. */
  723. public function setOrderCurrencyCode($code);
  724. /**
  725. * Sets the base currency code for the invoice.
  726. *
  727. * @param string $code
  728. * @return $this
  729. */
  730. public function setBaseCurrencyCode($code);
  731. /**
  732. * Sets the global currency code for the invoice.
  733. *
  734. * @param string $code
  735. * @return $this
  736. */
  737. public function setGlobalCurrencyCode($code);
  738. /**
  739. * Sets the increment ID for the invoice.
  740. *
  741. * @param string $id
  742. * @return $this
  743. */
  744. public function setIncrementId($id);
  745. /**
  746. * Sets the discount tax compensation amount for the invoice.
  747. *
  748. * @param float $amount
  749. * @return $this
  750. */
  751. public function setDiscountTaxCompensationAmount($amount);
  752. /**
  753. * Sets the base discount tax compensation amount for the invoice.
  754. *
  755. * @param float $amount
  756. * @return $this
  757. */
  758. public function setBaseDiscountTaxCompensationAmount($amount);
  759. /**
  760. * Sets the shipping discount tax compensation amount for the invoice.
  761. *
  762. * @param float $amount
  763. * @return $this
  764. */
  765. public function setShippingDiscountTaxCompensationAmount($amount);
  766. /**
  767. * Sets the base shipping discount tax compensation amount for the invoice.
  768. *
  769. * @param float $amnt
  770. * @return $this
  771. */
  772. public function setBaseShippingDiscountTaxCompensationAmnt($amnt);
  773. /**
  774. * Sets the shipping including tax for the invoice.
  775. *
  776. * @param float $amount
  777. * @return $this
  778. */
  779. public function setShippingInclTax($amount);
  780. /**
  781. * Sets the base shipping including tax for the invoice.
  782. *
  783. * @param float $amount
  784. * @return $this
  785. */
  786. public function setBaseShippingInclTax($amount);
  787. /**
  788. * Sets the base total refunded for the invoice.
  789. *
  790. * @param float $amount
  791. * @return $this
  792. */
  793. public function setBaseTotalRefunded($amount);
  794. /**
  795. * Sets the discount description for the invoice.
  796. *
  797. * @param string $description
  798. * @return $this
  799. */
  800. public function setDiscountDescription($description);
  801. /**
  802. * Retrieve existing extension attributes object or create a new one.
  803. *
  804. * @return \Magento\Sales\Api\Data\InvoiceExtensionInterface|null
  805. */
  806. public function getExtensionAttributes();
  807. /**
  808. * Set an extension attributes object.
  809. *
  810. * @param \Magento\Sales\Api\Data\InvoiceExtensionInterface $extensionAttributes
  811. * @return $this
  812. */
  813. public function setExtensionAttributes(\Magento\Sales\Api\Data\InvoiceExtensionInterface $extensionAttributes);
  814. }