From a82d8fab696d3fca24c2f1c48a1646107e38cef8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 10 Jan 2023 17:31:01 +0100 Subject: wallet-core: KYC mvp Only hard withdrawal KYC is supporte so far, and no long-polling is done yet. --- packages/taler-util/src/taler-types.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'packages/taler-util') diff --git a/packages/taler-util/src/taler-types.ts b/packages/taler-util/src/taler-types.ts index 292ace94b..9251868e6 100644 --- a/packages/taler-util/src/taler-types.ts +++ b/packages/taler-util/src/taler-types.ts @@ -2027,3 +2027,18 @@ export interface ExchangeDepositRequest { h_age_commitment?: string; } + +export interface WalletKycUuid { + // UUID that the wallet should use when initiating + // the KYC check. + requirement_row: number; + + // Hash of the payto:// account URI for the wallet. + h_payto: string; +} + +export const codecForWalletKycUuid = (): Codec => + buildCodecForObject() + .property("requirement_row", codecForNumber()) + .property("h_payto", codecForString()) + .build("WalletKycUuid"); -- cgit v1.2.3