TokenUiComponentProviderInterface.php 653 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Vault\Model\Ui;
  7. use Magento\Vault\Api\Data\PaymentTokenInterface;
  8. /**
  9. * Interface TokenUiComponentProviderInterface
  10. * @package Magento\Vault\Model\Ui
  11. * @api
  12. * @since 100.1.0
  13. */
  14. interface TokenUiComponentProviderInterface
  15. {
  16. const COMPONENT_DETAILS = 'details';
  17. const COMPONENT_PUBLIC_HASH = 'publicHash';
  18. /**
  19. * @param PaymentTokenInterface $paymentToken
  20. * @return TokenUiComponentInterface
  21. * @since 100.1.0
  22. */
  23. public function getComponentForToken(PaymentTokenInterface $paymentToken);
  24. }