summaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
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");
}