asaas
Version:
Unofficial Asaas Payment Gateway SDK
19 lines (18 loc) • 1.36 kB
TypeScript
import { AxiosInstance } from 'axios';
import { APIOptions, IAsaasDeleteResponse, IAsaasPayment, IAsaasPaymentBoletoResponse, IAsaasPaymentLimitResponse, IAsaasPaymentPixQrCodeResponse, IAsaasPaymentReceivedInCash, IAsaasPaymentRefund, IAsaasPaymentResponse, IListAsaasPaymentsResponse, IListPaymentsParams } from '../types/AsaasTypes';
import { BaseAPI } from './BaseAPI';
export declare class PaymentsAPI extends BaseAPI {
constructor(apiClient: AxiosInstance, options?: APIOptions);
new(paymentData: IAsaasPayment): Promise<IAsaasPaymentResponse>;
list(params?: IListPaymentsParams): Promise<IListAsaasPaymentsResponse>;
getById(id: string): Promise<IAsaasPaymentResponse>;
delete(id: string): Promise<IAsaasDeleteResponse>;
restore(id: string): Promise<IAsaasPaymentResponse>;
updateById(id: string, paymentData: IAsaasPayment): Promise<IAsaasPaymentResponse>;
refund(id: string, refundData: IAsaasPaymentRefund): Promise<IAsaasPaymentResponse>;
getIdentificationField(id: string): Promise<IAsaasPaymentBoletoResponse>;
getPixQrCode(id: string): Promise<IAsaasPaymentPixQrCodeResponse>;
receiveInCash(id: string, paymentData: IAsaasPaymentReceivedInCash): Promise<IAsaasPaymentResponse>;
undoReceivedInCash(id: string): Promise<IAsaasPaymentResponse>;
limits(): Promise<IAsaasPaymentLimitResponse>;
}