diff options
author | Florian Dold <florian@dold.me> | 2023-06-26 12:53:32 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-26 12:53:32 +0200 |
commit | eae357160760fba990f705b092e30a0eec6f7b29 (patch) | |
tree | aebd7a303b3c530546353fa7943a386738781d78 /packages/taler-util | |
parent | fca893038dc61267c9861186041e129c88b46da8 (diff) | |
download | wallet-core-eae357160760fba990f705b092e30a0eec6f7b29.tar.xz |
wallet-core: allow confirmPeerPullDebit via txId
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index 2e26b79ef..52ce87725 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -2409,7 +2409,7 @@ export const codecForCheckPeerPullPaymentRequest = export interface ConfirmPeerPushCreditRequest { /** * Transparent identifier of the incoming peer push payment. - * + * * @deprecated specify transactionId instead! */ peerPushPaymentIncomingId?: string; @@ -2434,8 +2434,12 @@ export const codecForConfirmPeerPushPaymentRequest = export interface ConfirmPeerPullDebitRequest { /** * Transparent identifier of the incoming peer pull payment. + * + * @deprecated use transactionId instead */ - peerPullPaymentIncomingId: string; + peerPullPaymentIncomingId?: string; + + transactionId?: string; } export interface ApplyDevExperimentRequest { @@ -2451,7 +2455,8 @@ export const codecForApplyDevExperiment = export const codecForAcceptPeerPullPaymentRequest = (): Codec<ConfirmPeerPullDebitRequest> => buildCodecForObject<ConfirmPeerPullDebitRequest>() - .property("peerPullPaymentIncomingId", codecForString()) + .property("peerPullPaymentIncomingId", codecOptional(codecForString())) + .property("transactionId", codecOptional(codecForString())) .build("ConfirmPeerPullDebitRequest"); export interface CheckPeerPullCreditRequest { |