aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2023-06-24 17:49:53 +0200
committerFlorian Dold <florian@dold.me>2023-06-24 17:49:53 +0200
commit1f31ebc3cc4b116f4d762f974e803c7ef85ab51f (patch)
tree4f67a83803c21bec53fe1728cb5733c03bc43e8a /packages/taler-util
parent4f30506dcacc587586381b1a8fa20c5442784e41 (diff)
downloadwallet-core-1f31ebc3cc4b116f4d762f974e803c7ef85ab51f.tar.xz
wallet-core: allow confirming peer-push-credit via txid
Diffstat (limited to 'packages/taler-util')
-rw-r--r--packages/taler-util/src/wallet-types.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts
index cff7637c6..233c95047 100644
--- a/packages/taler-util/src/wallet-types.ts
+++ b/packages/taler-util/src/wallet-types.ts
@@ -2409,8 +2409,12 @@ export const codecForCheckPeerPullPaymentRequest =
export interface ConfirmPeerPushCreditRequest {
/**
* Transparent identifier of the incoming peer push payment.
+ *
+ * @deprecated specify transactionId instead!
*/
- peerPushPaymentIncomingId: string;
+ peerPushPaymentIncomingId?: string;
+
+ transactionId?: string;
}
export interface AcceptPeerPushPaymentResponse {
transactionId: TransactionIdStr;
@@ -2424,6 +2428,7 @@ export const codecForConfirmPeerPushPaymentRequest =
(): Codec<ConfirmPeerPushCreditRequest> =>
buildCodecForObject<ConfirmPeerPushCreditRequest>()
.property("peerPushPaymentIncomingId", codecForString())
+ .property("transactionId", codecForString())
.build("ConfirmPeerPushCreditRequest");
export interface ConfirmPeerPullDebitRequest {