monzolib
Version:
Fully Featured JS/Node Monzo Library
64 lines (63 loc) • 1.8 kB
TypeScript
import { Json } from './helpers';
export declare class Merchant {
private readonly merchant;
constructor(merchant: MonzoMerchantResponse);
get address(): MonzoAddressResponse;
get category(): string;
get created(): string;
get emoji(): string;
get groupId(): string;
get id(): string;
get logo(): string;
get metadata(): MonzoMerchantMetadataResponse;
get name(): string;
equals(merchant: Merchant): boolean;
groupEquals(merchant: Merchant): boolean;
get json(): MonzoMerchantResponse;
get stringify(): string;
toString(): string;
}
export interface MonzoMerchantResponse extends Record<string, Json> {
address: MonzoAddressResponse;
atm: boolean;
category: string;
created: string;
disable_feedback: boolean;
emoji: string;
group_id: string;
id: string;
logo: string;
metadata: MonzoMerchantMetadataResponse;
name: string;
online: boolean;
}
export interface MonzoAddressResponse extends Record<string, Json> {
address: string;
approximate: boolean;
city: string;
country: string;
formatted: string;
latitude: number;
longitude: number;
postcode: string;
region: string;
short_formatted: string;
zoom_level: number;
}
export interface MonzoMerchantMetadataResponse extends Record<string, Json> {
created_for_merchant: string;
created_for_transaction: string;
foursquare_category: string;
foursquare_category_icon: string;
foursquare_id: string;
foursquare_website: string;
google_places_icon: string;
google_places_id: string;
google_places_name: string;
provider: string;
provider_id: string;
suggested_name: string;
suggested_tags: string;
twitter_id: string;
website: string;
}