aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-01-11 14:36:24 +0100
committerFlorian Dold <florian@dold.me>2023-01-11 14:36:29 +0100
commit5fc0cb7927e7a81a80129f6165b2027e72b89d33 (patch)
treeb526504c1dd50923ffe2ee68591d76c0c0848239
parentc3fdbd291f3d74d35f524f96ded6e3c6c85712e0 (diff)
-more to rename
-rw-r--r--packages/taler-util/src/wallet-types.ts10
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts2
-rw-r--r--packages/taler-wallet-core/src/wallet.ts4
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<AcceptTipRequest> =>
.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<AbortPayWithRefundRequest> =>
- buildCodecForObject<AbortPayWithRefundRequest>()
+export const codecForAbortPayRequest =
+ (): Codec<AbortPayRequest> =>
+ buildCodecForObject<AbortPayRequest>()
.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<Op extends WalletApiOperation>(
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 {};
}