pluggy-sdk
Version:
Official Node.js/TypeScript SDK for the Pluggy API.
28 lines (27 loc) • 940 B
TypeScript
import { PageFilters, PageResponse } from '../common';
export declare const AUTOMATIC_PIX_PAYMENT_STATUSES: readonly ["SCHEDULED", "CREATED", "COMPLETED", "CANCELED", "ERROR"];
export type AutomaticPixPaymentStatus = typeof AUTOMATIC_PIX_PAYMENT_STATUSES[number];
export type AutomaticPixPaymentErrorDetail = {
code: string;
description: string;
detail?: string;
};
export type AutomaticPixPayment = {
id: string;
status: AutomaticPixPaymentStatus;
amount: number;
description?: string;
date: string;
endToEndId?: string;
errorDetail?: AutomaticPixPaymentErrorDetail | null;
};
export type ScheduleAutomaticPixPaymentRequest = {
amount: number;
description?: string;
date: string;
};
export type RetryAutomaticPixPaymentRequest = {
date: string;
};
export type AutomaticPixPaymentListResponse = PageResponse<AutomaticPixPayment>;
export type PaymentPixAutomaticFilters = PageFilters;