-more to rename

This commit is contained in:
Florian Dold 2023-01-11 14:36:24 +01:00
parent c3fdbd291f
commit 5fc0cb7927
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 8 additions and 8 deletions

View File

@ -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;

View File

@ -24,7 +24,7 @@
* Imports.
*/
import {
AbortPayWithRefundRequest as AbortPayRequest,
AbortPayRequest as AbortPayRequest,
AcceptBankIntegratedWithdrawalRequest,
AcceptExchangeTosRequest,
AcceptManualWithdrawalRequest,

View File

@ -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 {};
}