diff options
Diffstat (limited to 'packages/taler-util/src/payto.ts')
-rw-r--r-- | packages/taler-util/src/payto.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/taler-util/src/payto.ts b/packages/taler-util/src/payto.ts index 2b0af4cc2..60c4ba838 100644 --- a/packages/taler-util/src/payto.ts +++ b/packages/taler-util/src/payto.ts @@ -24,7 +24,7 @@ export type PaytoUri = | PaytoUriBitcoin; export interface PaytoUriGeneric { - targetType: string; + targetType: PaytoType | string; targetPath: string; params: { [name: string]: string }; } @@ -55,6 +55,8 @@ export interface PaytoUriBitcoin extends PaytoUriGeneric { const paytoPfx = "payto://"; +export type PaytoType = "iban" | "bitcoin" | "x-taler-bank" + export function buildPayto( type: "iban", iban: string, @@ -71,7 +73,7 @@ export function buildPayto( account: string, ): PaytoUriTalerBank; export function buildPayto( - type: "iban" | "bitcoin" | "x-taler-bank", + type: PaytoType, first: string, second?: string, ): PaytoUriGeneric { |