diff options
author | Florian Dold <florian@dold.me> | 2023-12-07 11:59:37 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-12-07 11:59:37 +0100 |
commit | 1fb9f1eb55a9648614b66cdbac6e2052cf705223 (patch) | |
tree | 66af569ba84c46cf258bf631b03a037537143885 | |
parent | 79809b22f0f395c6a2324e059e82e94a1b0e1955 (diff) | |
download | wallet-core-1fb9f1eb55a9648614b66cdbac6e2052cf705223.tar.xz |
wallet-core: deprecate peerPushCreditId field
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 15 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/operations/testing.ts | 4 |
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 index e900d76cb..bca8a92a8 100644 --- 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 index 1981519f1..b30c5f80b 100644 --- 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, { |