![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-vault/Api/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Vault\Api; use Magento\Sales\Api\Data\OrderPaymentInterface; use Magento\Vault\Api\Data\PaymentTokenInterface; /** * Gateway vault payment token repository interface. * * @api * @since 100.1.0 */ interface PaymentTokenManagementInterface { /** * Lists payment tokens that match specified search criteria. * * @param int $customerId Customer ID. * @return \Magento\Vault\Api\Data\PaymentTokenSearchResultsInterface[] Payment token search result interface. * @since 100.1.0 */ public function getListByCustomerId($customerId); /** * Get payment token by token Id. * * @param int $paymentId The gateway payment token ID. * @return \Magento\Vault\Api\Data\PaymentTokenInterface Payment token interface. * @since 100.1.0 */ public function getByPaymentId($paymentId); /** * Get payment token by gateway token. * * @param string $token The gateway token. * @param string $paymentMethodCode * @param int $customerId Customer ID. * @return PaymentTokenInterface|null Payment token interface. * @since 100.1.0 */ public function getByGatewayToken($token, $paymentMethodCode, $customerId); /** * Get payment token by public hash. * * @param string $hash Public hash. * @param int $customerId Customer ID. * @return PaymentTokenInterface|null Payment token interface. * @since 100.1.0 */ public function getByPublicHash($hash, $customerId); /** * Save token with payment link * * @param PaymentTokenInterface $token * @param OrderPaymentInterface $payment * @return bool * @since 100.1.0 */ public function saveTokenWithPaymentLink(PaymentTokenInterface $token, OrderPaymentInterface $payment); /** * Add link between payment token and order payment. * * @param int $paymentTokenId Payment token ID. * @param int $orderPaymentId Order payment ID. * @return bool * @since 100.1.0 */ public function addLinkToOrderPayment($paymentTokenId, $orderPaymentId); }