aboutsummaryrefslogtreecommitdiff
path: root/src/talerTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-01 23:21:15 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-01 23:21:15 +0200
commit5f62d83a4ddab49a20ed29221c204dff5fe52b6d (patch)
tree8883706456b268f3a42ac64c21d987e3e908e13e /src/talerTypes.ts
parent92b04858a3dcc98b8d252e69a06c8ee2f1745394 (diff)
downloadwallet-core-5f62d83a4ddab49a20ed29221c204dff5fe52b6d.tar.xz
headless/android port, PoC for CLI / headless tests
Diffstat (limited to 'src/talerTypes.ts')
-rw-r--r--src/talerTypes.ts27
1 files changed, 27 insertions, 0 deletions
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