-more to rename
This commit is contained in:
parent
c3fdbd291f
commit
5fc0cb7927
@ -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;
|
||||
|
@ -24,7 +24,7 @@
|
||||
* Imports.
|
||||
*/
|
||||
import {
|
||||
AbortPayWithRefundRequest as AbortPayRequest,
|
||||
AbortPayRequest as AbortPayRequest,
|
||||
AcceptBankIntegratedWithdrawalRequest,
|
||||
AcceptExchangeTosRequest,
|
||||
AcceptManualWithdrawalRequest,
|
||||
|
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user