diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-03 12:13:13 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-03 12:13:13 -0300 |
commit | 543795f7fcc310343f9b113837ba4750c740a1fe (patch) | |
tree | 01f1d18b3ec8e6b68ccc179338fa69a1eb5e9063 /packages/taler-util | |
parent | defdfd769749354ec3aba9436a3bcb5cd39bdd83 (diff) | |
download | wallet-core-543795f7fcc310343f9b113837ba4750c740a1fe.tar.xz |
save posConfirmation after payment
Diffstat (limited to 'packages/taler-util')
-rw-r--r-- | packages/taler-util/src/backup-types.ts | 5 | ||||
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 2 | ||||
-rw-r--r-- | packages/taler-util/src/transactions-types.ts | 5 | ||||
-rw-r--r-- | packages/taler-util/src/wallet-types.ts | 8 |
4 files changed, 16 insertions, 4 deletions
diff --git a/packages/taler-util/src/backup-types.ts b/packages/taler-util/src/backup-types.ts index 0a355b65f..f7bf5ef30 100644 --- a/packages/taler-util/src/backup-types.ts +++ b/packages/taler-util/src/backup-types.ts @@ -947,6 +947,11 @@ export interface BackupPurchase { */ merchant_pay_sig: string | undefined; + /** + * Text to be shown to the point-of-sale staff as a proof of payment. + */ + pos_confirmation: string | undefined; + timestamp_proposed: TalerProtocolTimestamp; /** diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index 6e7df2c04..48eb49d22 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -961,6 +961,7 @@ export class ExchangeWithdrawBatchResponse { export interface MerchantPayResponse { sig: string; + pos_confirmation?: string; } export interface ExchangeMeltRequest { @@ -1490,6 +1491,7 @@ export const codecForWithdrawBatchResponse = export const codecForMerchantPayResponse = (): Codec<MerchantPayResponse> => buildCodecForObject<MerchantPayResponse>() .property("sig", codecForString()) + .property("pos_confirmation", codecOptional(codecForString())) .build("MerchantPayResponse"); export const codecForExchangeMeltResponse = (): Codec<ExchangeMeltResponse> => diff --git a/packages/taler-util/src/transactions-types.ts b/packages/taler-util/src/transactions-types.ts index d3b68b114..eec173de6 100644 --- a/packages/taler-util/src/transactions-types.ts +++ b/packages/taler-util/src/transactions-types.ts @@ -406,6 +406,11 @@ export interface TransactionPayment extends TransactionCommon { * Is the wallet currently checking for a refund? */ refundQueryActive: boolean; + + /** + * Does this purchase has an pos validation + */ + posConfirmation: string | undefined; } export interface OrderShortInfo { diff --git a/packages/taler-util/src/wallet-types.ts b/packages/taler-util/src/wallet-types.ts index de84677ac..940251366 100644 --- a/packages/taler-util/src/wallet-types.ts +++ b/packages/taler-util/src/wallet-types.ts @@ -51,15 +51,15 @@ import { AmountString, AuditorDenomSig, codecForMerchantContractTerms, + codecForPeerContractTerms, CoinEnvelope, - MerchantContractTerms, - PeerContractTerms, DenominationPubKey, DenomKeyType, ExchangeAuditor, - UnblindedSignature, - codecForPeerContractTerms, + MerchantContractTerms, + PeerContractTerms, TrackTransaction, + UnblindedSignature, } from "./taler-types.js"; import { AbsoluteTime, |