CreditmemoCreationArgumentsInterface.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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. * Interface CreditmemoCreationArgumentsInterface
  9. *
  10. * @api
  11. * @since 100.1.3
  12. */
  13. interface CreditmemoCreationArgumentsInterface
  14. {
  15. /**
  16. * Gets the credit memo shipping amount.
  17. *
  18. * @return float|null Credit memo shipping amount.
  19. * @since 100.1.3
  20. */
  21. public function getShippingAmount();
  22. /**
  23. * Gets the credit memo positive adjustment.
  24. *
  25. * @return float|null Credit memo positive adjustment.
  26. * @since 100.1.3
  27. */
  28. public function getAdjustmentPositive();
  29. /**
  30. * Gets the credit memo negative adjustment.
  31. *
  32. * @return float|null Credit memo negative adjustment.
  33. * @since 100.1.3
  34. */
  35. public function getAdjustmentNegative();
  36. /**
  37. * Sets the credit memo shipping amount.
  38. *
  39. * @param float $amount
  40. * @return $this
  41. * @since 100.1.3
  42. */
  43. public function setShippingAmount($amount);
  44. /**
  45. * Sets the credit memo positive adjustment.
  46. *
  47. * @param float $amount
  48. * @return $this
  49. * @since 100.1.3
  50. */
  51. public function setAdjustmentPositive($amount);
  52. /**
  53. * Sets the credit memo negative adjustment.
  54. *
  55. * @param float $amount
  56. * @return $this
  57. * @since 100.1.3
  58. */
  59. public function setAdjustmentNegative($amount);
  60. /**
  61. * Gets existing extension attributes.
  62. *
  63. * @return \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface|null
  64. * @since 100.1.3
  65. */
  66. public function getExtensionAttributes();
  67. /**
  68. * Sets extension attributes.
  69. *
  70. * @param \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
  71. *
  72. * @return $this
  73. * @since 100.1.3
  74. */
  75. public function setExtensionAttributes(
  76. \Magento\Sales\Api\Data\CreditmemoCreationArgumentsExtensionInterface $extensionAttributes
  77. );
  78. }