aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-core/src/reducer-types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-11-05 07:29:26 +0100
committerFlorian Dold <florian@dold.me>2021-11-05 07:29:26 +0100
commite42c282e67d49a54aa7aab2e87f9e458e488ae8e (patch)
treeb2c6349ddeaa352dcc6bb17e2cc44e94dc44d301 /packages/anastasis-core/src/reducer-types.ts
parent34d2e4703d8a583c8e7c3c2ea398c1280acccd08 (diff)
downloadwallet-core-e42c282e67d49a54aa7aab2e87f9e458e488ae8e.tar.xz
anastasis-core: make truth/policy payments compatible with C reducer
Diffstat (limited to 'packages/anastasis-core/src/reducer-types.ts')
-rw-r--r--packages/anastasis-core/src/reducer-types.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts
index e5b0c47a4..1a560b885 100644
--- a/packages/anastasis-core/src/reducer-types.ts
+++ b/packages/anastasis-core/src/reducer-types.ts
@@ -87,10 +87,19 @@ export interface ReducerStateBackup {
* Currently requested payments.
*
* List of taler://pay URIs.
+ *
+ * FIXME: There should be more information in this,
+ * including the provider and amount.
*/
payments?: string[];
+ /**
+ * FIXME: Why is this not a map from provider to payto?
+ */
policy_payment_requests?: {
+ /**
+ * FIXME: This is not a payto URI, right?!
+ */
payto: string;
provider: string;
}[];
@@ -100,6 +109,10 @@ export interface ReducerStateBackup {
expiration?: Timestamp;
upload_fees?: { fee: AmountString }[];
+
+ // FIXME: The payment secrets and pay URIs should
+ // probably be consolidated into a single field.
+ truth_upload_payment_secrets?: Record<string, string>;
}
export interface AuthMethod {