nowpayments-api-typescript
Version:
Nowpayments typescript API wrapper
16 lines (15 loc) • 1.9 kB
TypeScript
import { ICreatePayment, IGetEstimatePrice, IGetPaymentStatus, IGetMinimumPaymentAmount, IGetListPayments, ICreateInvoice } from './interfaces';
export declare class NOWPaymentsApi {
readonly apiKey: string;
constructor({ apiKey }: {
apiKey: string;
});
getApiStatus(): Promise<import("./interfaces").IError | import("./services/api-status.service").StatusResponse>;
getCurrencies(): Promise<import("./interfaces").IError | import("./services/get-currencies.service").GetCurrenciesResponse>;
getEstimatePrice({ amount, currency_from, currency_to, }: IGetEstimatePrice): Promise<import("./interfaces").IError | import("./services/get-estimate-price.service").GetEstimatePriceResponse>;
createPayment({ price_amount, price_currency, pay_amount, pay_currency, ipn_callback_url, order_id, order_description, purchase_id, payout_address, payout_currency, payout_extra_id, fixed_rate, }: ICreatePayment): Promise<import("./interfaces").IError | import("./services/create-payment.service").CreatePaymentResponse>;
getPaymentStatus({ payment_id }: IGetPaymentStatus): Promise<import("./interfaces").IError | import("./services/get-payment-status.service").GetPaymentStatusResponse>;
getMinimumPaymentAmount({ currency_from, currency_to, }: IGetMinimumPaymentAmount): Promise<import("./interfaces").IError | import("./services/get-minimum-payment-amount.service").GetMinimumPaymentAmountResponse>;
getListPayments({ limit, page, sortBy, orderBy, dateFrom, dateTo, }?: IGetListPayments): Promise<import("./interfaces").IError | import("./services/get-list-payments.service").GetListPaymentsResponse>;
createInvoice({ price_amount, price_currency, pay_currency, ipn_callback_url, order_id, order_description, success_url, cancel_url, }: ICreateInvoice): Promise<import("./interfaces").IError | import("./services/create-invoice.service").InvoiceResponse>;
}