diff options
author | Florian Dold <florian@dold.me> | 2023-01-10 17:31:01 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-01-10 17:31:36 +0100 |
commit | a82d8fab696d3fca24c2f1c48a1646107e38cef8 (patch) | |
tree | cb493f6072ec4a761df214db920d709629a1eee1 /packages/taler-util/src | |
parent | 688518ec7311ea0dc68e1cce6d363a00609ef9f8 (diff) | |
download | wallet-core-a82d8fab696d3fca24c2f1c48a1646107e38cef8.tar.xz |
wallet-core: KYC mvp
Only hard withdrawal KYC is supporte so far, and no long-polling is done
yet.
Diffstat (limited to 'packages/taler-util/src')
-rw-r--r-- | packages/taler-util/src/taler-types.ts | 15 |
1 files changed, 15 insertions, 0 deletions
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<WalletKycUuid> => + buildCodecForObject<WalletKycUuid>() + .property("requirement_row", codecForNumber()) + .property("h_payto", codecForString()) + .build("WalletKycUuid"); |