UNPKG

monzolib

Version:

Fully Featured JS/Node Monzo Library

42 lines (41 loc) 835 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class Attachment { constructor(att) { this.att = att; } get created() { return this.att.created; } get txId() { return this.att.external_id; } get id() { return this.att.id; } get type() { return this.att.file_type; } get url() { return this.att.url; } get userId() { return this.att.user_id; } selfDeregisterRequest() { return { path: '/attachment/deregister', body: { id: this.id }, method: 'POST' }; } get json() { return this.att; } get stringify() { return JSON.stringify(this.json); } } exports.Attachment = Attachment;