monzolib
Version:
Fully Featured JS/Node Monzo Library
33 lines (32 loc) • 923 B
TypeScript
import { MonzoRequest } from './api';
import { Json } from './helpers';
export declare class Attachment {
private readonly att;
constructor(att: MonzoAttachmentResponse);
get created(): string;
get txId(): string;
get id(): string;
get type(): string;
get url(): string;
get userId(): string;
selfDeregisterRequest(): MonzoRequest;
get json(): MonzoAttachmentResponse;
get stringify(): string;
}
export interface MonzoAttachmentResponse extends Record<string, Json> {
created: string;
external_id: string;
file_type: string;
file_url: string;
id: string;
type: string;
url: string;
user_id: string;
}
export interface MonzoAttachmentOuterResponse extends Record<string, Json> {
attachment: MonzoAttachmentResponse;
}
export interface MonzoAttachmentUploadResponse extends Record<string, Json> {
file_url: string;
upload_url: string;
}