aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-core
diff options
context:
space:
mode:
Diffstat (limited to 'packages/anastasis-core')
-rw-r--r--packages/anastasis-core/src/index.ts4
-rw-r--r--packages/anastasis-core/src/reducer-types.ts7
2 files changed, 9 insertions, 2 deletions
diff --git a/packages/anastasis-core/src/index.ts b/packages/anastasis-core/src/index.ts
index 9bb4e347a..4323df9c2 100644
--- a/packages/anastasis-core/src/index.ts
+++ b/packages/anastasis-core/src/index.ts
@@ -570,7 +570,7 @@ async function uploadSecret(
if (resp.status !== 204) {
return {
code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED,
- hint: "could not upload policy",
+ hint: `could not upload truth (HTTP status ${resp.status})`,
};
}
@@ -631,7 +631,7 @@ async function uploadSecret(
if (resp.status !== 204) {
return {
code: TalerErrorCode.ANASTASIS_REDUCER_NETWORK_FAILED,
- hint: "could not upload policy",
+ hint: `could not upload policy (http status ${resp.status})`,
};
}
let policyVersion = 0;
diff --git a/packages/anastasis-core/src/reducer-types.ts b/packages/anastasis-core/src/reducer-types.ts
index 2f0d324ae..b415bdfc4 100644
--- a/packages/anastasis-core/src/reducer-types.ts
+++ b/packages/anastasis-core/src/reducer-types.ts
@@ -73,7 +73,14 @@ export interface ReducerStateBackup {
*/
policy_providers?: PolicyProvider[];
success_details?: SuccessDetails;
+
+ /**
+ * Currently requested payments.
+ *
+ * List of taler://pay URIs.
+ */
payments?: string[];
+
policy_payment_requests?: {
payto: string;
provider: string;