aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-29 18:27:50 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-29 18:27:50 +0200
commit94d111a94533c0c31231642e8ffe4fbd4ce30096 (patch)
tree79c9f8ec3754699f8a135630f1ab6ee9be8019e6 /src/types.ts
parentb5c90d12219ca3a0df173ddf085d2353831a8ef6 (diff)
downloadwallet-core-94d111a94533c0c31231642e8ffe4fbd4ce30096.tar.xz
lint for unused variables, fix query bug detected by this
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts30
1 files changed, 1 insertions, 29 deletions
diff --git a/src/types.ts b/src/types.ts
index aac429c76..c4b6c466a 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -900,39 +900,11 @@ export interface WalletBalanceEntry {
/**
- * Information about a merchant.
- */
-interface Merchant {
- /**
- * label for a location with the business address of the merchant
- */
- address: string;
-
- /**
- * the merchant's legal name of business
- */
- name: string;
-
- /**
- * label for a location that denotes the jurisdiction for disputes.
- * Some of the typical fields for a location (such as a street address) may be absent.
- */
- jurisdiction: string;
-
- /**
- * Instance of the merchant, in case one merchant
- * represents multiple receivers.
- */
- instance?: string;
-}
-
-
-/**
* Contract terms from a merchant.
*/
@Checkable.Class({validate: true})
export class Contract {
- private validate() {
+ validate() {
if (this.exchanges.length === 0) {
throw Error("no exchanges in contract");
}