From 5fc0cb7927e7a81a80129f6165b2027e72b89d33 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 11 Jan 2023 14:36:24 +0100 Subject: [PATCH] -more to rename --- packages/taler-util/src/wallet-types.ts | 10 +++++----- packages/taler-wallet-core/src/wallet-api-types.ts | 2 +- packages/taler-wallet-core/src/wallet.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 77c083e45..b33eac0df 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -1553,7 +1553,7 @@ export const codecForAcceptTipRequest = (): Codec => .property("walletTipId", codecForString()) .build("AcceptTipRequest"); -export interface AbortPayWithRefundRequest { +export interface AbortPayRequest { proposalId: string; /** @@ -1566,12 +1566,12 @@ export interface AbortPayWithRefundRequest { cancelImmediately?: boolean; } -export const codecForAbortPayWithRefundRequest = - (): Codec => - buildCodecForObject() +export const codecForAbortPayRequest = + (): Codec => + buildCodecForObject() .property("proposalId", codecForString()) .property("cancelImmediately", codecOptional(codecForBoolean())) - .build("AbortPayWithRefundRequest"); + .build("AbortPayRequest"); export interface GetFeeForDepositRequest { depositPaytoUri: string; diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts index ecabb9af0..3daa817e8 100644 --- a/packages/taler-wallet-core/src/wallet-api-types.ts +++ b/packages/taler-wallet-core/src/wallet-api-types.ts @@ -24,7 +24,7 @@ * Imports. */ import { - AbortPayWithRefundRequest as AbortPayRequest, + AbortPayRequest as AbortPayRequest, AcceptBankIntegratedWithdrawalRequest, AcceptExchangeTosRequest, AcceptManualWithdrawalRequest, diff --git a/packages/taler-wallet-core/src/wallet.ts b/packages/taler-wallet-core/src/wallet.ts index b29276a75..2b386f0a8 100644 --- a/packages/taler-wallet-core/src/wallet.ts +++ b/packages/taler-wallet-core/src/wallet.ts @@ -25,7 +25,7 @@ import { AbsoluteTime, Amounts, - codecForAbortPayWithRefundRequest, + codecForAbortPayRequest, codecForAcceptBankIntegratedWithdrawalRequest, codecForAcceptExchangeTosRequest, codecForAcceptManualWithdrawalRequet, @@ -1164,7 +1164,7 @@ async function dispatchRequestInternal( return await confirmPay(ws, req.proposalId, req.sessionId); } case WalletApiOperation.AbortPay: { - const req = codecForAbortPayWithRefundRequest().decode(payload); + const req = codecForAbortPayRequest().decode(payload); await abortFailedPayWithRefund(ws, req.proposalId); return {}; }