OrderAddressRepositoryInterface.php 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api;
  7. /**
  8. * Order address repository interface.
  9. *
  10. * An order is a document that a web store issues to a customer. Magento generates a sales order that lists the product
  11. * items, billing and shipping addresses, and shipping and payment methods. A corresponding external document, known as
  12. * a purchase order, is emailed to the customer.
  13. * @api
  14. * @since 100.0.2
  15. */
  16. interface OrderAddressRepositoryInterface
  17. {
  18. /**
  19. * Lists order addresses that match specified search criteria.
  20. *
  21. * @param \Magento\Framework\Api\SearchCriteriaInterface $searchCriteria The search criteria.
  22. * @return \Magento\Sales\Api\Data\OrderAddressSearchResultInterface Order address search result interface.
  23. */
  24. public function getList(\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria);
  25. /**
  26. * Loads a specified order address.
  27. *
  28. * @param int $id The order address ID.
  29. * @return \Magento\Sales\Api\Data\OrderAddressInterface Order address interface.
  30. */
  31. public function get($id);
  32. /**
  33. * Deletes a specified order address.
  34. *
  35. * @param \Magento\Sales\Api\Data\OrderAddressInterface $entity The order address.
  36. * @return bool
  37. */
  38. public function delete(\Magento\Sales\Api\Data\OrderAddressInterface $entity);
  39. /**
  40. * Performs persist operations for a specified order address.
  41. *
  42. * @param \Magento\Sales\Api\Data\OrderAddressInterface $entity The order address.
  43. * @return \Magento\Sales\Api\Data\OrderAddressInterface Order address interface.
  44. */
  45. public function save(\Magento\Sales\Api\Data\OrderAddressInterface $entity);
  46. }