CreditmemoInterface.php 23 KB

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