TaxAddressManagerInterface.php 772 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Tax\Api;
  7. use Magento\Customer\Model\Address;
  8. /**
  9. * Interface to save data in customer session.
  10. */
  11. interface TaxAddressManagerInterface
  12. {
  13. /**
  14. * Set default Tax Billing and Shipping address into customer session after address save.
  15. *
  16. * @param Address $address
  17. * @return void
  18. */
  19. public function setDefaultAddressAfterSave(Address $address);
  20. /**
  21. * Set default Tax Shipping and Billing addresses into customer session after login.
  22. *
  23. * @param \Magento\Customer\Api\Data\AddressInterface[] $addresses
  24. * @return void
  25. */
  26. public function setDefaultAddressAfterLogIn(array $addresses);
  27. }