summaryrefslogtreecommitdiff
path: root/packages/frontend/src/declaration.d.ts
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2021-06-07 09:42:16 -0300
committerSebastian <sebasjm@gmail.com>2021-06-07 09:42:32 -0300
commit0eacc9ad11caa53efe5c71add7028251d058b753 (patch)
tree5a22f69dff3f3d6359439c79a95440a7eb8d50b7 /packages/frontend/src/declaration.d.ts
parenta3d5b4882aa76bd56b8ac70f5b2a927bd7ba5b5d (diff)
downloadmerchant-backoffice-0eacc9ad11caa53efe5c71add7028251d058b753.tar.gz
merchant-backoffice-0eacc9ad11caa53efe5c71add7028251d058b753.tar.bz2
merchant-backoffice-0eacc9ad11caa53efe5c71add7028251d058b753.zip
add more information about reserve
Diffstat (limited to 'packages/frontend/src/declaration.d.ts')
-rw-r--r--packages/frontend/src/declaration.d.ts38
1 files changed, 24 insertions, 14 deletions
diff --git a/packages/frontend/src/declaration.d.ts b/packages/frontend/src/declaration.d.ts
index 6717566..21199f4 100644
--- a/packages/frontend/src/declaration.d.ts
+++ b/packages/frontend/src/declaration.d.ts
@@ -56,45 +56,45 @@ export namespace ExchangeBackend {
// Master public key of the exchange, must match the key returned in /keys.
master_public_key: EddsaPublicKey;
-
+
// Array of wire accounts operated by the exchange for
// incoming wire transfers.
accounts: WireAccount[];
-
+
// Object mapping names of wire methods (i.e. "sepa" or "x-taler-bank")
// to wire fees.
- fees: { method : AggregateTransferFee };
- }
- interface WireAccount {
+ fees: { method: AggregateTransferFee };
+ }
+ interface WireAccount {
// payto:// URI identifying the account and wire method
payto_uri: string;
-
+
// Signature using the exchange's offline key
// with purpose TALER_SIGNATURE_MASTER_WIRE_DETAILS.
master_sig: EddsaSignature;
- }
- interface AggregateTransferFee {
+ }
+ interface AggregateTransferFee {
// Per transfer wire transfer fee.
wire_fee: Amount;
-
+
// Per transfer closing fee.
closing_fee: Amount;
-
+
// What date (inclusive) does this fee go into effect?
// The different fees must cover the full time period in which
// any of the denomination keys are valid without overlap.
start_date: Timestamp;
-
+
// What date (exclusive) does this fee stop going into effect?
// The different fees must cover the full time period in which
// any of the denomination keys are valid without overlap.
end_date: Timestamp;
-
+
// Signature of TALER_MasterWireFeePS with
// purpose TALER_SIGNATURE_MASTER_WIRE_FEES.
sig: EddsaSignature;
- }
-
+ }
+
}
export namespace MerchantBackend {
interface ErrorDetail {
@@ -1000,7 +1000,17 @@ export namespace MerchantBackend {
// Is this reserve active (false if it was deleted but not purged)?
active: boolean;
+
+ // URI to use to fill the reserve, can be NULL
+ // if the reserve is inactive or was already filled
+ payto_uri: string;
+
+ // URL of the exchange hosting the reserve,
+ // NULL if the reserve is inactive
+ exchange_url: string;
+
}
+
interface TipStatusEntry {
// Unique identifier for the tip.