summaryrefslogtreecommitdiff
path: root/packages/frontend/src/declaration.d.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-04-08 09:34:25 -0300
committerSebastian <sebasjm@gmail.com>2021-04-08 09:55:22 -0300
commitf2dfda17f27d5a842eaa77711e411313ddfc6039 (patch)
treeff70953a10ff6309a80a728e29715146c1eb1fe3 /packages/frontend/src/declaration.d.ts
parent234a34b4235d9736cab2bb8723c29008e837fd60 (diff)
downloadmerchant-backoffice-f2dfda17f27d5a842eaa77711e411313ddfc6039.tar.gz
merchant-backoffice-f2dfda17f27d5a842eaa77711e411313ddfc6039.tar.bz2
merchant-backoffice-f2dfda17f27d5a842eaa77711e411313ddfc6039.zip
new order (WIP)
Diffstat (limited to 'packages/frontend/src/declaration.d.ts')
-rw-r--r--packages/frontend/src/declaration.d.ts30
1 files changed, 17 insertions, 13 deletions
diff --git a/packages/frontend/src/declaration.d.ts b/packages/frontend/src/declaration.d.ts
index 6f258c4..fdecfe3 100644
--- a/packages/frontend/src/declaration.d.ts
+++ b/packages/frontend/src/declaration.d.ts
@@ -27,6 +27,10 @@ type WireTransferIdentifierRawP = string;
type RelativeTime = Duration;
type ImageDataUrl = string;
+export interface WithId {
+ id: string
+}
+
interface Timestamp {
// Milliseconds since epoch, or the special
// value "forever" to represent an event that will
@@ -39,7 +43,7 @@ interface Duration {
d_ms: number | "forever";
}
-interface WidthId {
+interface WithId {
id: string;
}
@@ -53,39 +57,39 @@ export namespace MerchantBackend {
// Numeric error code unique to the condition.
// The other arguments are specific to the error value reported here.
code: number;
-
+
// Human-readable description of the error, i.e. "missing parameter", "commitment violation", ...
// Should give a human-readable hint about the error's nature. Optional, may change without notice!
hint?: string;
-
+
// Optional detail about the specific input value that failed. May change without notice!
detail?: string;
-
+
// Name of the parameter that was bogus (if applicable).
parameter?: string;
-
+
// Path to the argument that was bogus (if applicable).
path?: string;
-
+
// Offset of the argument that was bogus (if applicable).
offset?: string;
-
+
// Index of the argument that was bogus (if applicable).
index?: string;
-
+
// Name of the object that was bogus (if applicable).
object?: string;
-
+
// Name of the currency than was problematic (if applicable).
currency?: string;
-
+
// Expected type (if applicable).
type_expected?: string;
-
+
// Type that was provided instead (if applicable).
type_actual?: string;
- }
-
+ }
+
// Delivery location, loosely modeled as a subset of
// ISO20022's PostalAddress25.