UNPKG

@marceloclp/monzojs

Version:

Unofficial wrapper for the Monzo API written in TypeScript.

24 lines (23 loc) 872 B
import { Monzo, MonzoAPI } from '../types'; import { AuthedEndpoint } from '../types/endpoints'; /** * Returns a list of pots owned by the currently authorised user that are * associated with the specified account. * * @see https://docs.monzo.com/#list-pots */ export declare const getPots: AuthedEndpoint<MonzoAPI.Pots.GetPotsParams, Monzo.Pot[]>; /** * Move money from an account owned by the currently authorised user into one of * their pots. * * @see https://docs.monzo.com/#deposit-into-a-pot */ export declare const depositIntoPot: AuthedEndpoint<MonzoAPI.Pots.DepositIntoPotParams, Monzo.Pot>; /** * Move money from a pot owned by the currently authorised user into one of * their accounts. * * @see https://docs.monzo.com/#withdraw-from-a-pot */ export declare const withdrawFromPot: AuthedEndpoint<MonzoAPI.Pots.WithdrawFromPotParams, Monzo.Pot>;