modem-pay
Version:
A TypeScript SDK for integrating with the Modem Pay payment gateway, enabling seamless payment processing and financial services in your applications.
16 lines (15 loc) • 782 B
TypeScript
import Core from "../interfaces/core";
import { List, ListOption } from "../types";
import { SubAccount, SubAccountParams, SubAccountUpdateParams } from "../types/sub-accounts";
import BaseResource from "./base";
export default class SubAccountsResource extends BaseResource implements Core<SubAccount> {
constructor(apiKey: string, maxRetries: number, timeout: number);
/** Creates a new sub-account. */
create(params: SubAccountParams): Promise<SubAccount>;
/** Retrieves a sub-account. */
retrieve(id: string): Promise<SubAccount>;
/** Returns a list of sub-accounts. */
list(options?: ListOption): Promise<List<SubAccount>>;
/** Updates the specified sub-account. */
update(id: string, params: SubAccountUpdateParams): Promise<SubAccount>;
}