commit 1fb9f1eb55a9648614b66cdbac6e2052cf705223
parent 79809b22f0f395c6a2324e059e82e94a1b0e1955
Author: Florian Dold <florian@dold.me>
Date: Thu, 7 Dec 2023 11:59:37 +0100
wallet-core: deprecate peerPushCreditId field
Diffstat:
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
@@ -2501,17 +2501,22 @@ export interface PreparePeerPullDebitRequest {
export interface PreparePeerPushCreditResponse {
contractTerms: PeerContractTerms;
- /**
- * @deprecated
- */
- amount: AmountString;
amountRaw: AmountString;
amountEffective: AmountString;
- peerPushCreditId: string;
transactionId: string;
exchangeBaseUrl: string;
+
+ /**
+ * @deprecated use transaction ID instead.
+ */
+ peerPushCreditId: string;
+
+ /**
+ * @deprecated
+ */
+ amount: AmountString;
}
export interface PreparePeerPullDebitResponse {
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts
@@ -684,7 +684,7 @@ export async function runIntegrationTest2(
type: TalerUriAction.PayPush,
exchangeBaseUrl: peerPushInit.exchangeBaseUrl,
contractPriv: peerPushInit.contractPriv,
- })
+ });
const txDetails = await getTransactionById(ws, {
transactionId: peerPushInit.transactionId,
@@ -703,7 +703,7 @@ export async function runIntegrationTest2(
});
await confirmPeerPushCredit(ws, {
- peerPushCreditId: peerPushCredit.peerPushCreditId,
+ transactionId: peerPushCredit.transactionId,
});
const peerPullInit = await initiatePeerPullPayment(ws, {