@criapix/saas-assinaturas-client
Version:
SDK JavaScript/TypeScript para o AssinaturasService - Sistema de gestão de assinaturas SaaS com processamento de pagamentos de faturas (cartão, PIX, débito), gerenciamento de métodos de pagamento, pagamentos recorrentes e análise de falhas de pagamento
35 lines (31 loc) • 701 B
text/typescript
import { SubscriptionStatus } from '../enums';
/**
* Response with subscription access information
*/
export interface SubscriptionAccessResponse {
hasAccess: boolean;
status: SubscriptionStatus;
statusDescription: string;
isDelinquent: boolean;
totalDue: number;
}
/**
* Request DTO for batch access checking
*/
export interface CheckAccessBatchRequest {
/**
* List of customer IDs to check (max 100)
*/
customerIds: string[];
}
/**
* Response item for batch access checking
*/
export interface CustomerAccessBatchItem {
customerId: string;
hasAccess: boolean;
status: SubscriptionStatus;
statusDescription: string;
isDelinquent: boolean;
totalDue: number;
}