asaas
Version:
Unofficial Asaas Payment Gateway SDK
13 lines (12 loc) • 769 B
TypeScript
import { AxiosInstance } from 'axios';
import { APIOptions, IAsaasCustomer, IAsaasCustomerResponse, IAsaasDeleteResponse, IListAsaasCustomerResponse, IListCustomersParams } from '../types/AsaasTypes';
import { BaseAPI } from './BaseAPI';
export declare class CustomersAPI extends BaseAPI {
constructor(apiClient: AxiosInstance, options?: APIOptions);
new(customerData: IAsaasCustomer): Promise<IAsaasCustomerResponse>;
list(params?: IListCustomersParams): Promise<IListAsaasCustomerResponse>;
getById(id: string): Promise<IAsaasCustomerResponse>;
delete(id: string): Promise<IAsaasDeleteResponse>;
restore(id: string): Promise<IAsaasCustomerResponse>;
updateById(id: string, customerData: IAsaasCustomer): Promise<IAsaasCustomerResponse>;
}