InstantPurchaseInterface.php 691 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\InstantPurchase\Model;
  7. use Magento\Customer\Model\Customer;
  8. use Magento\Store\Model\Store;
  9. /**
  10. * Interface for detecting customer option to make instant purchase in a store.
  11. *
  12. * @api
  13. * @since 100.2.0
  14. */
  15. interface InstantPurchaseInterface
  16. {
  17. /**
  18. * Detects instant purchase options for a customer in a store.
  19. *
  20. * @param Store $store
  21. * @param Customer $customer
  22. * @return InstantPurchaseOption
  23. * @since 100.2.0
  24. */
  25. public function getOption(
  26. Store $store,
  27. Customer $customer
  28. ): InstantPurchaseOption;
  29. }