From 5f62d83a4ddab49a20ed29221c204dff5fe52b6d Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 1 Aug 2019 23:21:15 +0200 Subject: headless/android port, PoC for CLI / headless tests --- src/talerTypes.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src/talerTypes.ts') diff --git a/src/talerTypes.ts b/src/talerTypes.ts index e8bb2e510..9176daf77 100644 --- a/src/talerTypes.ts +++ b/src/talerTypes.ts @@ -905,3 +905,30 @@ export class Proposal { */ static checked: (obj: any) => Proposal; } + +/** + * Response from the internal merchant API. + */ +@Checkable.Class({extra: true}) +export class CheckPaymentResponse { + @Checkable.Boolean() + paid: boolean; + + @Checkable.Optional(Checkable.Boolean()) + refunded: boolean | undefined; + + @Checkable.Optional(Checkable.String()) + refunded_amount: string | undefined; + + @Checkable.Optional(Checkable.Value(() => ContractTerms)) + contract_terms: ContractTerms | undefined; + + @Checkable.Optional(Checkable.String()) + contract_url: string | undefined; + + /** + * Verify that a value matches the schema of this class and convert it into a + * member. + */ + static checked: (obj: any) => CheckPaymentResponse; +} \ No newline at end of file -- cgit v1.2.3