diff options
author | Florian Dold <florian@dold.me> | 2023-02-20 01:54:33 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-02-20 01:54:33 +0100 |
commit | c8b93a37ba78ffe24d9cc0548a1f8a0b3f1fb7de (patch) | |
tree | 399b9c692c402b10958d69ac77b30badcb0348a4 | |
parent | dcbdddc32e2f3ffdebce69b03fcf678a27ef8a34 (diff) |
-rename
3 files changed, 8 insertions, 11 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts index 8459d5ca2..5ffc78ece 100644 --- a/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts +++ b/packages/taler-wallet-webextension/src/cta/InvoicePay/state.ts @@ -40,7 +40,7 @@ export function useComponentState({ const { i18n } = useTranslationContext(); const { pushAlertOnError } = useAlertContext(); const hook = useAsyncAsHook(async () => { - const p2p = await api.wallet.call(WalletApiOperation.CheckPeerPullPayment, { + const p2p = await api.wallet.call(WalletApiOperation.PreparePeerPullDebit, { talerUri: talerPayPullUri, }); const balance = await api.wallet.call(WalletApiOperation.GetBalances, {}); @@ -144,7 +144,7 @@ export function useComponentState({ async function accept(): Promise<void> { const resp = await api.wallet.call( - WalletApiOperation.AcceptPeerPullPayment, + WalletApiOperation.ConfirmPeerPullDebit, { peerPullPaymentIncomingId, }, diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts index 24eead099..c45e495d9 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/state.ts @@ -38,12 +38,9 @@ export function useComponentState({ const [timestamp, setTimestamp] = useState<string | undefined>(); const hook = useAsyncAsHook(async () => { - const resp = await api.wallet.call( - WalletApiOperation.PreparePeerPushPayment, - { - amount: amountStr, - }, - ); + const resp = await api.wallet.call(WalletApiOperation.CheckPeerPushDebit, { + amount: amountStr, + }); return resp; }); @@ -98,7 +95,7 @@ export function useComponentState({ async function accept(): Promise<void> { if (!subject || !purse_expiration) return; const resp = await api.wallet.call( - WalletApiOperation.InitiatePeerPushPayment, + WalletApiOperation.InitiatePeerPushDebit, { partialContractTerms: { summary: subject, diff --git a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts index 3c7b6cd4c..0a781746f 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts +++ b/packages/taler-wallet-webextension/src/cta/TransferPickup/state.ts @@ -35,7 +35,7 @@ export function useComponentState({ const { pushAlertOnError } = useAlertContext(); const { i18n } = useTranslationContext(); const hook = useAsyncAsHook(async () => { - return await api.wallet.call(WalletApiOperation.CheckPeerPushPayment, { + return await api.wallet.call(WalletApiOperation.PreparePeerPushCredit, { talerUri: talerPayPushUri, }); }, []); @@ -71,7 +71,7 @@ export function useComponentState({ async function accept(): Promise<void> { const resp = await api.wallet.call( - WalletApiOperation.AcceptPeerPushPayment, + WalletApiOperation.ConfirmPeerPushCredit, { peerPushPaymentIncomingId, }, |