UNPKG

paystackly

Version:

A Typescript/Javascript library written on top of paystack.

12 lines (11 loc) 628 B
import { BaseSubaccount, CreateSubaccountPayload, CreateSubaccountResponse, FetchSubAccountResponse, ListSubaccountQuery, ListSubaccountResponse, UpdateSubAccountPayload, UpdateSubAccountReponse } from "./type"; export declare class SubAccount extends BaseSubaccount { private endpoint; constructor(); create(payload: CreateSubaccountPayload): Promise<CreateSubaccountResponse>; list(query?: ListSubaccountQuery): Promise<ListSubaccountResponse>; fetch(payload: { id: string; }): Promise<FetchSubAccountResponse>; update(payload: UpdateSubAccountPayload): Promise<UpdateSubAccountReponse>; }