export interface AsaasCredentials { apiKey: string; environment: 'production' | 'sandbox'; } export interface CustomerData { name: string; cpfCnpj: string; email: string; phone?: string; mobilePhone?: string; address?: string; addressNumber?: string; complement?: string; province?: string; postalCode?: string; externalReference?: string; notificationDisabled?: boolean; additionalEmails?: string; municipalInscription?: string; stateInscription?: string; observations?: string; groupName?: string; company?: string; foreignCustomer?: boolean; } export interface PaymentData { customer: string; billingType: 'BOLETO' | 'CREDIT_CARD' | 'PIX' | 'UNDEFINED'; value: number; dueDate: string; description?: string; externalReference?: string; instructions?: string; notificationDisabled?: boolean; additionalEmails?: string; observations?: string; creditCardNumber?: string; creditCardHolderName?: string; creditCardExpiryMonth?: string; creditCardExpiryYear?: string; creditCardCcv?: string; } export interface SubscriptionData { customer: string; billingType: 'BOLETO' | 'CREDIT_CARD' | 'PIX' | 'UNDEFINED'; value: number; nextDueDate: string; cycle: 'WEEKLY' | 'BIWEEKLY' | 'MONTHLY' | 'BIMONTHLY' | 'QUARTERLY' | 'SEMIANNUALLY' | 'YEARLY'; description?: string; externalReference?: string; instructions?: string; notificationDisabled?: boolean; additionalEmails?: string; observations?: string; endDate?: string; maxPayments?: number; } export interface InstallmentData { customer: string; billingType: 'BOLETO' | 'CREDIT_CARD' | 'PIX' | 'UNDEFINED'; value: number; dueDate: string; installmentCount: number; installmentValue: number; description?: string; externalReference?: string; instructions?: string; notificationDisabled?: boolean; additionalEmails?: string; observations?: string; } export interface NotificationData { email?: boolean; sms?: boolean; whatsapp?: boolean; } export interface AsaasApiResponse { object: string; data?: T; hasMore?: boolean; totalCount?: number; error?: string; message?: string; } export interface AsaasError { code: string; message: string; details?: any; } export type ResourceType = 'customer' | 'payment' | 'subscription' | 'installment' | 'notification'; export type OperationType = 'create' | 'get' | 'getAll' | 'update' | 'delete' | 'restore' | 'createWithCreditCard' | 'refund' | 'getBoletoLine' | 'getPixQrCode' | 'getStatus' | 'tokenizeCreditCard' | 'getNotifications' | 'generatePaymentBook' | 'getPayments' | 'updateSplits' | 'updateCreditCard' | 'updateInvoiceSettings' | 'getInvoices' | 'updateBatch';