QuoteDetailsInterface.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Api\Data;
  7. /**
  8. * Quote details interface.
  9. * @api
  10. * @since 100.0.2
  11. */
  12. interface QuoteDetailsInterface extends \Magento\Framework\Api\ExtensibleDataInterface
  13. {
  14. /**
  15. * Get customer billing address
  16. *
  17. * @return \Magento\Customer\Api\Data\AddressInterface|null
  18. */
  19. public function getBillingAddress();
  20. /**
  21. * Set customer billing address
  22. *
  23. * @param \Magento\Customer\Api\Data\AddressInterface $billingAddress
  24. * @return $this
  25. */
  26. public function setBillingAddress(\Magento\Customer\Api\Data\AddressInterface $billingAddress = null);
  27. /**
  28. * Get customer shipping address
  29. *
  30. * @return \Magento\Customer\Api\Data\AddressInterface|null
  31. */
  32. public function getShippingAddress();
  33. /**
  34. * Set customer shipping address
  35. *
  36. * @param \Magento\Customer\Api\Data\AddressInterface $shippingAddress
  37. * @return $this
  38. */
  39. public function setShippingAddress(\Magento\Customer\Api\Data\AddressInterface $shippingAddress = null);
  40. /**
  41. * Get customer tax class key
  42. *
  43. * @return \Magento\Tax\Api\Data\TaxClassKeyInterface|null
  44. */
  45. public function getCustomerTaxClassKey();
  46. /**
  47. * Set customer tax class key
  48. *
  49. * @param \Magento\Tax\Api\Data\TaxClassKeyInterface $customerTaxClassKey
  50. * @return $this
  51. */
  52. public function setCustomerTaxClassKey(\Magento\Tax\Api\Data\TaxClassKeyInterface $customerTaxClassKey = null);
  53. /**
  54. * Get customer id
  55. *
  56. * @return int|null
  57. */
  58. public function getCustomerId();
  59. /**
  60. * Set customer id
  61. *
  62. * @param int $customerId
  63. * @return $this
  64. */
  65. public function setCustomerId($customerId);
  66. /**
  67. * Get customer data
  68. *
  69. * @return \Magento\Tax\Api\Data\QuoteDetailsItemInterface[]|null
  70. */
  71. public function getItems();
  72. /**
  73. * Set customer data
  74. *
  75. * @param \Magento\Tax\Api\Data\QuoteDetailsItemInterface[] $items
  76. * @return $this
  77. */
  78. public function setItems(array $items = null);
  79. /**
  80. * Get customer tax class id
  81. *
  82. * @return int
  83. */
  84. public function getCustomerTaxClassId();
  85. /**
  86. * Set customer tax class id
  87. *
  88. * @param int $customerTaxClassId
  89. * @return $this
  90. */
  91. public function setCustomerTaxClassId($customerTaxClassId);
  92. /**
  93. * Retrieve existing extension attributes object or create a new one.
  94. *
  95. * @return \Magento\Tax\Api\Data\QuoteDetailsExtensionInterface|null
  96. */
  97. public function getExtensionAttributes();
  98. /**
  99. * Set an extension attributes object.
  100. *
  101. * @param \Magento\Tax\Api\Data\QuoteDetailsExtensionInterface $extensionAttributes
  102. * @return $this
  103. */
  104. public function setExtensionAttributes(\Magento\Tax\Api\Data\QuoteDetailsExtensionInterface $extensionAttributes);
  105. }