aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-20 19:43:39 +0200
committerFlorian Dold <florian@dold.me>2023-06-20 19:43:39 +0200
commit77849fdf5d7e924b6a000b4b655a07c1fd1f1c4e (patch)
tree1ce7d9d178bc7c3ef7555e3ba7211aa4fc7cb303
parent98a351aa4c8acfc310316ebb5d7d6fd986a44ba8 (diff)
downloadwallet-core-77849fdf5d7e924b6a000b4b655a07c1fd1f1c4e.tar.gz
wallet-core-77849fdf5d7e924b6a000b4b655a07c1fd1f1c4e.tar.bz2
wallet-core-77849fdf5d7e924b6a000b4b655a07c1fd1f1c4e.zip
-minor rename
-rw-r--r--packages/taler-util/src/wallet-types.ts6
-rw-r--r--packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts4
-rw-r--r--packages/taler-wallet-core/src/wallet-api-types.ts4
3 files changed, 7 insertions, 7 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index 20e80f815..cff7637c6 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -2358,7 +2358,7 @@ export const codecForInitiatePeerPushDebitRequest =
.property("partialContractTerms", codecForPeerContractTerms())
.build("InitiatePeerPushDebitRequest");
-export interface PreparePeerPushCredit {
+export interface PreparePeerPushCreditRequest {
talerUri: string;
}
@@ -2395,8 +2395,8 @@ export interface PreparePeerPullDebitResponse {
}
export const codecForPreparePeerPushCreditRequest =
- (): Codec<PreparePeerPushCredit> =>
- buildCodecForObject<PreparePeerPushCredit>()
+ (): Codec<PreparePeerPushCreditRequest> =>
+ buildCodecForObject<PreparePeerPushCreditRequest>()
.property("talerUri", codecForString())
.build("CheckPeerPushPaymentRequest");
diff --git a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
index cf698d512..53a569a92 100644
--- a/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
+++ b/packages/taler-wallet-core/src/operations/pay-peer-push-credit.ts
@@ -23,7 +23,7 @@ import {
HttpStatusCode,
Logger,
PeerContractTerms,
- PreparePeerPushCredit,
+ PreparePeerPushCreditRequest,
PreparePeerPushCreditResponse,
TalerErrorCode,
TalerPreciseTimestamp,
@@ -83,7 +83,7 @@ const logger = new Logger("pay-peer-push-credit.ts");
export async function preparePeerPushCredit(
ws: InternalWalletState,
- req: PreparePeerPushCredit,
+ req: PreparePeerPushCreditRequest,
): Promise<PreparePeerPushCreditResponse> {
const uri = parsePayPushUri(req.talerUri);
diff --git a/packages/taler-wallet-core/src/wallet-api-types.ts b/packages/taler-wallet-core/src/wallet-api-types.ts
index fdda4c4c2..6bcee0299 100644
--- a/packages/taler-wallet-core/src/wallet-api-types.ts
+++ b/packages/taler-wallet-core/src/wallet-api-types.ts
@@ -82,7 +82,7 @@ import {
PreparePayTemplateRequest,
PreparePeerPullDebitRequest,
PreparePeerPullDebitResponse,
- PreparePeerPushCredit,
+ PreparePeerPushCreditRequest,
PreparePeerPushCreditResponse,
PrepareRefundRequest,
PrepareTipRequest,
@@ -729,7 +729,7 @@ export type InitiatePeerPushDebitOp = {
*/
export type PreparePeerPushCreditOp = {
op: WalletApiOperation.PreparePeerPushCredit;
- request: PreparePeerPushCredit;
+ request: PreparePeerPushCreditRequest;
response: PreparePeerPushCreditResponse;
};