UNPKG

zips-typescript-sdk

Version:

TypeScript SDK for ZIPS Payment Gateway - Complete payment solution for server-side applications

16 lines 659 B
import { Root } from "../root"; import { AllOption, Customer, CustomerParams } from "../types"; import BaseModule from "./base"; export default class CustomersModule extends BaseModule implements Root<Customer> { /** Creates new customer */ create(params: CustomerParams): Promise<Customer>; /** Retrieves a customer */ single(id: string): Promise<Customer>; /** List all customers */ all(options?: AllOption): Promise<Customer[]>; /** Update a customer */ update(id: string, data: CustomerParams): Promise<Customer>; /** Deletes a customer */ delete(id: string): Promise<void>; } //# sourceMappingURL=customer.d.ts.map