UNPKG

monzolib

Version:

Fully Featured JS/Node Monzo Library

51 lines (50 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Merchant { constructor(merchant) { this.merchant = merchant; } get address() { return this.merchant.address; } get category() { return this.merchant.category; } get created() { return this.merchant.created; } get emoji() { return this.merchant.emoji; } get groupId() { return this.merchant.group_id; } get id() { return this.merchant.id; } get logo() { return this.merchant.logo; } get metadata() { return this.merchant.metadata; } get name() { return this.merchant.name; } equals(merchant) { return this.id === merchant.id; } groupEquals(merchant) { return this.groupId === merchant.groupId; } get json() { return this.merchant; } get stringify() { return JSON.stringify(this.json); } toString() { return this.name; } } exports.Merchant = Merchant;