@fayz-ai/plugin-financial 0.9.0 → 0.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (95) hide show
  1. package/README.md +3 -3
  2. package/dist/components/PersonStatementWidget.d.ts +1 -1
  3. package/dist/components/PersonStatementWidget.d.ts.map +1 -1
  4. package/dist/{FinancialContext.d.ts → context.d.ts} +4 -2
  5. package/dist/context.d.ts.map +1 -0
  6. package/dist/data/registries.d.ts.map +1 -0
  7. package/dist/index.d.ts +13 -4
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +1426 -1426
  10. package/dist/index.js.map +1 -1
  11. package/dist/integrations/stripe/connectorDef.d.ts +14 -0
  12. package/dist/integrations/stripe/connectorDef.d.ts.map +1 -0
  13. package/dist/integrations/stripe/data.d.ts +43 -0
  14. package/dist/integrations/stripe/data.d.ts.map +1 -0
  15. package/dist/lib/message-events.d.ts +12 -0
  16. package/dist/lib/message-events.d.ts.map +1 -0
  17. package/dist/{quick-add.d.ts → lib/quick-add.d.ts} +1 -1
  18. package/dist/lib/quick-add.d.ts.map +1 -0
  19. package/dist/locales/en.d.ts.map +1 -1
  20. package/dist/locales/pt-BR.d.ts.map +1 -1
  21. package/dist/{FinancialPage.d.ts → views/FinancialPage.d.ts} +3 -3
  22. package/dist/views/FinancialPage.d.ts.map +1 -0
  23. package/dist/views/InvoiceDetailView.d.ts.map +1 -1
  24. package/dist/views/InvoiceFormView.d.ts.map +1 -1
  25. package/dist/views/InvoiceListView.d.ts.map +1 -1
  26. package/dist/views/PayablesView.d.ts +1 -1
  27. package/dist/views/PayablesView.d.ts.map +1 -1
  28. package/dist/views/ReceivablesView.d.ts +1 -1
  29. package/dist/views/ReceivablesView.d.ts.map +1 -1
  30. package/dist/views/StatementsView.d.ts.map +1 -1
  31. package/dist/views/dashboardWidgets.d.ts +1 -1
  32. package/dist/views/dashboardWidgets.d.ts.map +1 -1
  33. package/package.json +12 -14
  34. package/dist/FinancialContext.d.ts.map +0 -1
  35. package/dist/FinancialPage.d.ts.map +0 -1
  36. package/dist/contract.test.d.ts +0 -2
  37. package/dist/contract.test.d.ts.map +0 -1
  38. package/dist/quick-add.d.ts.map +0 -1
  39. package/dist/registries.d.ts.map +0 -1
  40. package/src/FinancialContext.tsx +0 -59
  41. package/src/FinancialPage.tsx +0 -413
  42. package/src/README.md +0 -155
  43. package/src/components/FinancialGeneralSettings.tsx +0 -39
  44. package/src/components/FinancialOnboarding.tsx +0 -87
  45. package/src/components/FinancialSettings.tsx +0 -31
  46. package/src/components/PaymentModal.tsx +0 -369
  47. package/src/components/PersonStatementWidget.tsx +0 -133
  48. package/src/components/TransferModal.tsx +0 -150
  49. package/src/contract.test.ts +0 -58
  50. package/src/data/capability.test.ts +0 -135
  51. package/src/data/index.ts +0 -3
  52. package/src/data/mock.ts +0 -842
  53. package/src/data/supabase.ts +0 -968
  54. package/src/data/tables.ts +0 -13
  55. package/src/data/types.ts +0 -86
  56. package/src/index.ts +0 -487
  57. package/src/lib/tenant.ts +0 -3
  58. package/src/locales/en.ts +0 -493
  59. package/src/locales/index.ts +0 -7
  60. package/src/locales/pt-BR.ts +0 -493
  61. package/src/migrations/000_plg_rename.sql +0 -30
  62. package/src/migrations/001_financial_base.sql +0 -109
  63. package/src/migrations/002_chart_of_accounts.sql +0 -28
  64. package/src/migrations/003_card_brands.sql +0 -12
  65. package/src/migrations/004_order_to_cash.sql +0 -178
  66. package/src/migrations/005_seed_defaults.sql +0 -38
  67. package/src/migrations/006_rls_policies.sql +0 -37
  68. package/src/migrations/006b_extract_fee_amount.sql +0 -20
  69. package/src/migrations/007_reconciliation.sql +0 -32
  70. package/src/migrations/007b_movement_payment_method_type.sql +0 -6
  71. package/src/migrations/008_split_payment_movements.sql +0 -29
  72. package/src/migrations/009_agent_rpcs.sql +0 -165
  73. package/src/migrations/010_invoice_internal.sql +0 -133
  74. package/src/migrations/011_nfe.sql +0 -58
  75. package/src/migrations/index.ts +0 -923
  76. package/src/quick-add.ts +0 -58
  77. package/src/registries.ts +0 -308
  78. package/src/store.ts +0 -329
  79. package/src/types.ts +0 -592
  80. package/src/views/CardsView.tsx +0 -213
  81. package/src/views/CashRegistersView.tsx +0 -597
  82. package/src/views/CommissionsView.tsx +0 -18
  83. package/src/views/InvoiceDetailView.tsx +0 -616
  84. package/src/views/InvoiceFormView.tsx +0 -945
  85. package/src/views/InvoiceListView.tsx +0 -323
  86. package/src/views/NotasFiscaisView.tsx +0 -209
  87. package/src/views/PayablesView.tsx +0 -48
  88. package/src/views/QuickTransactionForm.tsx +0 -548
  89. package/src/views/ReceivablesView.tsx +0 -48
  90. package/src/views/ReconciliationView.tsx +0 -211
  91. package/src/views/StatementsView.tsx +0 -335
  92. package/src/views/SummaryView.tsx +0 -203
  93. package/src/views/dashboardWidgets.tsx +0 -437
  94. package/src/views/navReferrer.ts +0 -24
  95. /package/dist/{registries.d.ts → data/registries.d.ts} +0 -0
package/src/types.ts DELETED
@@ -1,592 +0,0 @@
1
- // ---------------------------------------------------------------------------
2
- // Financial Module — Pure TypeScript types
3
- // Zero dependencies. Maps to beautyplace DB schema but with English names.
4
- // ---------------------------------------------------------------------------
5
-
6
- // ============================================================
7
- // ENUMS / LITERALS
8
- // ============================================================
9
-
10
- /** Direction: debit (money going out / payable) or credit (money coming in / receivable) */
11
- export type TransactionDirection = 'debit' | 'credit'
12
-
13
- /** What kind of financial movement this is */
14
- export type MovementKind = 'bill' | 'payment' | 'transfer'
15
-
16
- /** Status of a financial movement */
17
- export type MovementStatus = 'pending' | 'paid' | 'partial' | 'overdue' | 'cancelled'
18
-
19
- /** Status of an invoice */
20
- export type InvoiceStatus = 'draft' | 'open' | 'partial' | 'paid' | 'cancelled' | 'overdue'
21
-
22
- /** Type of bank account */
23
- export type BankAccountType = 'bank_account' | 'cash_register' | 'credit_card' | 'digital_wallet'
24
-
25
- /** Cash session status */
26
- export type CashSessionStatus = 'open' | 'closed'
27
-
28
- /** Discount/interest application mode */
29
- export type AdjustmentMode = 'percentage' | 'fixed'
30
-
31
- /** Chart of accounts node type */
32
- export type AccountNodeType = 'group' | 'leaf'
33
-
34
- /** Item type on an invoice line — parametrizable per vertical */
35
- export type InvoiceItemKind = string
36
-
37
- // ============================================================
38
- // CORE ENTITIES
39
- // ============================================================
40
-
41
- export interface Invoice {
42
- id: string
43
- direction: TransactionDirection
44
- invoiceDate: string
45
- fiscalNumber?: string
46
- totalAmount: number
47
- paidAmount: number
48
- status: InvoiceStatus
49
- totalInstallments: number
50
- contactId?: string
51
- contactName?: string
52
- cashSessionId?: string
53
- unitId?: string
54
- observations?: string
55
- /** Denormalized summary of item descriptions for list display */
56
- itemsSummary?: string
57
- /** If this order has a scheduled time (booking), the start time */
58
- bookingStartsAt?: string
59
- metadata?: Record<string, unknown>
60
- tenantId: string
61
- createdAt: string
62
- updatedAt: string
63
- }
64
-
65
- export interface InvoiceItem {
66
- id: string
67
- invoiceId: string
68
- itemKind: InvoiceItemKind
69
- referenceId?: string
70
- description: string
71
- quantity: number
72
- unitPrice: number
73
- totalAmount: number
74
- discount: number
75
- surcharge: number
76
- accountId?: string
77
- costCenterId?: string
78
- // Service execution tracking (opt-in per vertical)
79
- isExecuted?: boolean
80
- executionDate?: string
81
- executedByProfessionalId?: string
82
- metadata?: Record<string, unknown>
83
- createdAt: string
84
- }
85
-
86
- export interface FinancialMovement {
87
- id: string
88
- invoiceId?: string
89
- direction: TransactionDirection
90
- movementKind: MovementKind
91
- amount: number
92
- paidAmount: number
93
- status: MovementStatus
94
- dueDate: string
95
- paymentDate?: string
96
- installmentNumber?: number
97
- paymentMethodId?: string
98
- paymentMethodTypeId?: string
99
- bankAccountId?: string
100
- cashSessionId?: string
101
- cardBrand?: string
102
- cardInstallments?: number
103
- /** Processing/MDR fee deducted at settlement (net cash = paidAmount - feeAmount for credits) */
104
- feeAmount?: number
105
- debitAccountId?: string
106
- creditAccountId?: string
107
- notes?: string
108
- metadata?: Record<string, unknown>
109
- // --- Reconciliation (conciliação) ---
110
- /** Provider of an imported bank-statement line (set on imported movements only) */
111
- externalSource?: string
112
- /** Provider-unique id of the imported bank line (idempotency key with externalSource) */
113
- externalId?: string
114
- /** When this movement was reconciled — matched or accepted (undefined = pending) */
115
- reconciledAt?: string
116
- /** For an imported bank line: the internal movement it was matched to */
117
- matchedMovementId?: string
118
- tenantId: string
119
- createdAt: string
120
- updatedAt: string
121
- }
122
-
123
- export interface BankAccount {
124
- id: string
125
- name: string
126
- accountType: BankAccountType
127
- bankName?: string
128
- accountNumber?: string
129
- agencyNumber?: string
130
- currentBalance: number
131
- initialBalance: number
132
- creditLimit?: number
133
- dueDay?: number
134
- closingDay?: number
135
- isActive: boolean
136
- unitId?: string
137
- tenantId: string
138
- createdAt: string
139
- updatedAt: string
140
- }
141
-
142
- export interface CashSession {
143
- id: string
144
- bankAccountId: string
145
- bankAccountName?: string
146
- status: CashSessionStatus
147
- openedAt: string
148
- openedByUserId?: string
149
- openedByName?: string
150
- openingBalance: number
151
- closedAt?: string
152
- closedByUserId?: string
153
- closedByName?: string
154
- closingBalance?: number
155
- expectedBalance?: number
156
- difference?: number
157
- notes?: string
158
- unitId?: string
159
- tenantId: string
160
- createdAt: string
161
- }
162
-
163
- export interface PaymentMethod {
164
- id: string
165
- name: string
166
- paymentMethodTypeId: string
167
- isActive: boolean
168
- discountMode?: AdjustmentMode
169
- discountValue?: number
170
- interestMode?: AdjustmentMode
171
- interestValue?: number
172
- minInstallments: number
173
- maxInstallments: number
174
- serviceFilterMode?: 'all' | 'include' | 'exclude'
175
- serviceFilterIds?: string[]
176
- tenantId: string
177
- createdAt: string
178
- updatedAt: string
179
- }
180
-
181
- export interface PaymentMethodType {
182
- id: string
183
- name: string
184
- transactionType?: string
185
- isActive: boolean
186
- allowedAccountTypes?: BankAccountType[]
187
- tenantId: string
188
- createdAt: string
189
- }
190
-
191
- export interface ChartOfAccountsNode {
192
- id: string
193
- code: string
194
- name: string
195
- nodeType: AccountNodeType
196
- parentId?: string
197
- isActive: boolean
198
- tenantId: string
199
- createdAt: string
200
- }
201
-
202
- export interface CostCenter {
203
- id: string
204
- code: string
205
- name: string
206
- isActive: boolean
207
- tenantId: string
208
- createdAt: string
209
- updatedAt: string
210
- }
211
-
212
- export interface CardTransaction {
213
- id: string
214
- movementId: string
215
- cardBrand: string
216
- totalAmount: number
217
- installmentCount: number
218
- currentInstallment: number
219
- installmentAmount: number
220
- expectedDate: string
221
- receivedDate?: string
222
- fee?: number
223
- netAmount?: number
224
- status: 'pending' | 'received' | 'cancelled'
225
- tenantId: string
226
- createdAt: string
227
- }
228
-
229
- // ============================================================
230
- // INPUT TYPES (create / mutate)
231
- // ============================================================
232
-
233
- export interface CreateInvoiceInput {
234
- direction: TransactionDirection
235
- invoiceDate: string
236
- fiscalNumber?: string
237
- contactId?: string
238
- contactName?: string
239
- cashSessionId?: string
240
- unitId?: string
241
- observations?: string
242
- metadata?: Record<string, unknown>
243
- items: CreateInvoiceItemInput[]
244
- installments: CreateMovementInput[]
245
- }
246
-
247
- export interface CreateInvoiceItemInput {
248
- itemKind: InvoiceItemKind
249
- referenceId?: string
250
- description: string
251
- quantity: number
252
- unitPrice: number
253
- discount?: number
254
- surcharge?: number
255
- accountId?: string
256
- costCenterId?: string
257
- metadata?: Record<string, unknown>
258
- }
259
-
260
- export interface CreateMovementInput {
261
- direction: TransactionDirection
262
- movementKind: MovementKind
263
- amount: number
264
- dueDate: string
265
- installmentNumber?: number
266
- paymentMethodId?: string
267
- bankAccountId?: string
268
- notes?: string
269
- metadata?: Record<string, unknown>
270
- }
271
-
272
- export interface PayMovementInput {
273
- movementId: string
274
- amount: number
275
- paymentDate: string
276
- paymentMethodId?: string
277
- paymentMethodTypeId?: string
278
- bankAccountId?: string
279
- cashSessionId?: string
280
- cardBrand?: string
281
- cardInstallments?: number
282
- /** Free-text payment description / memo shown in the extract */
283
- notes?: string
284
- }
285
-
286
- export interface OpenCashSessionInput {
287
- bankAccountId: string
288
- openingBalance: number
289
- openedByUserId?: string
290
- openedByName?: string
291
- unitId?: string
292
- notes?: string
293
- }
294
-
295
- export interface CloseCashSessionInput {
296
- sessionId: string
297
- closingBalance: number
298
- closedByUserId?: string
299
- closedByName?: string
300
- notes?: string
301
- }
302
-
303
- export interface CreateBankAccountInput {
304
- name: string
305
- accountType: BankAccountType
306
- bankName?: string
307
- accountNumber?: string
308
- agencyNumber?: string
309
- initialBalance?: number
310
- creditLimit?: number
311
- dueDay?: number
312
- closingDay?: number
313
- unitId?: string
314
- }
315
-
316
- // ============================================================
317
- // QUERY / FILTER TYPES
318
- // ============================================================
319
-
320
- export interface DateRange {
321
- from: string
322
- to: string
323
- }
324
-
325
- export interface InvoiceQuery {
326
- direction?: TransactionDirection
327
- status?: InvoiceStatus | InvoiceStatus[]
328
- contactId?: string
329
- accountId?: string
330
- costCenterId?: string
331
- dateRange?: DateRange
332
- search?: string
333
- page?: number
334
- pageSize?: number
335
- }
336
-
337
- export interface MovementQuery {
338
- direction?: TransactionDirection
339
- status?: MovementStatus | MovementStatus[]
340
- bankAccountId?: string
341
- cashSessionId?: string
342
- /** Scope to a single invoice's movements (bills + payments). */
343
- invoiceId?: string
344
- dateRange?: DateRange
345
- page?: number
346
- pageSize?: number
347
- }
348
-
349
- export interface StatementQuery {
350
- /** Omit (or pass undefined) for a consolidated "All accounts" statement */
351
- bankAccountId?: string
352
- dateRange: DateRange
353
- }
354
-
355
- export interface CreateTransferInput {
356
- fromAccountId: string
357
- toAccountId: string
358
- amount: number
359
- /** YYYY-MM-DD — becomes payment_date on both ledger legs */
360
- date: string
361
- notes?: string
362
- }
363
-
364
- /**
365
- * "Log money in a few taps" (FAY-1225). A single-transaction quick-add that the
366
- * store expands into the right provider calls: expense/income → createInvoice
367
- * (+ payMovement when marked paid); transfer → createTransfer. Keeps the
368
- * Mobills-style form dumb — it only collects fields, the store does the plumbing.
369
- */
370
- export type QuickTransactionType = 'expense' | 'income' | 'transfer'
371
-
372
- export interface QuickTransactionInput {
373
- type: QuickTransactionType
374
- /** Positive amount in the account currency */
375
- amount: number
376
- /** YYYY-MM-DD */
377
- date: string
378
- /** When true, the movement is settled immediately (creates a paid cash event). */
379
- paid: boolean
380
- description?: string
381
- /** Chart-of-accounts / cost-center id (category chip) */
382
- categoryId?: string
383
- /** expense/income: bank account or card. transfer: source account. */
384
- bankAccountId?: string
385
- /** transfer: destination account */
386
- toAccountId?: string
387
- /** Marks the transaction as recurring (stored in metadata; UI affordance). */
388
- recurring?: boolean
389
- /**
390
- * FAY-1226 "snap a receipt": a captured/attached receipt image as a data URL
391
- * (mock mode has no Supabase bucket). Persisted on the created invoice's
392
- * metadata so the transaction feed can show a 📎 indicator + preview.
393
- */
394
- receiptUrl?: string
395
- }
396
-
397
- export interface TransferResult {
398
- /** Shared correlation id stored in both legs' metadata */
399
- transferId: string
400
- debitMovementId: string
401
- creditMovementId: string
402
- }
403
-
404
- export interface PaginatedResult<T> {
405
- data: T[]
406
- total: number
407
- }
408
-
409
- // ============================================================
410
- // AGGREGATION TYPES
411
- // ============================================================
412
-
413
- export interface FinancialSummary {
414
- totalBalance: number
415
- totalReceivable: number
416
- totalPayable: number
417
- monthlyInflow: number
418
- monthlyOutflow: number
419
- overdueReceivableCount: number
420
- overdueReceivableAmount: number
421
- overduePayableCount: number
422
- overduePayableAmount: number
423
- }
424
-
425
- /** What a statement row represents — a normal movement or one leg of a transfer */
426
- export type StatementEntryKind = 'movement' | 'transfer-in' | 'transfer-out'
427
-
428
- export interface StatementEntry {
429
- movement: FinancialMovement
430
- invoice?: Invoice
431
- /** NET cash running balance after this row */
432
- runningBalance: number
433
- /** Amount that settled the receivable/payable (= paidAmount) */
434
- gross: number
435
- /** Processing/MDR fee deducted (>= 0) */
436
- fee: number
437
- /** Cash impact: gross - fee for credit; gross for debit */
438
- net: number
439
- entryKind: StatementEntryKind
440
- /** For transfers: the other side's account */
441
- counterAccountId?: string
442
- counterAccountName?: string
443
- /** When this row is a reconciled bank line, the internal movement it was matched to. */
444
- reconciledWith?: {
445
- movementId: string
446
- description?: string
447
- invoiceId?: string
448
- fiscalNumber?: string
449
- contactName?: string
450
- }
451
- }
452
-
453
- /** Full statement result with header context (opening/closing balance + period totals) */
454
- export interface StatementResult {
455
- entries: StatementEntry[]
456
- /** Balance as of start-of-day dateFrom (excludes in-range rows) */
457
- openingBalance: number
458
- /** openingBalance + net of all in-range rows */
459
- closingBalance: number
460
- /** Sum of NET credits in range */
461
- totalCredits: number
462
- /** Sum of NET debits (cash out) in range */
463
- totalDebits: number
464
- /** Sum of fees in range */
465
- totalFees: number
466
- /** totalCredits - totalDebits */
467
- net: number
468
- /** Echo of the queried account; undefined for consolidated */
469
- accountId?: string
470
- /** Ledger-computed current balance of the selected account (as of today) */
471
- accountCurrentBalance?: number
472
- }
473
-
474
- export interface CashSessionSummary {
475
- session: CashSession
476
- movementCount: number
477
- totalInflow: number
478
- totalOutflow: number
479
- }
480
-
481
- // ============================================================
482
- // RECONCILIATION (conciliação)
483
- // ============================================================
484
-
485
- /** A normalized bank-statement line, ready to import as a financial movement. */
486
- export interface BankStatementLine {
487
- /** Provider-unique transaction id (idempotency key with externalSource) */
488
- externalId: string
489
- /** Provider that produced the line (e.g. 'plugbank', 'inter') */
490
- externalSource: string
491
- /** credit = money in, debit = money out */
492
- direction: TransactionDirection
493
- amount: number
494
- /** YYYY-MM-DD settlement date */
495
- date: string
496
- description: string
497
- /** Account the line belongs to; falls back to the import's bankAccountId */
498
- bankAccountId?: string
499
- }
500
-
501
- export interface ImportBankTransactionsInput {
502
- /** Default account for lines that don't carry their own */
503
- bankAccountId?: string
504
- lines: BankStatementLine[]
505
- }
506
-
507
- export interface ImportBankTransactionsResult {
508
- imported: number
509
- /** Lines skipped because they were already imported (idempotency) */
510
- duplicates: number
511
- }
512
-
513
- export interface UnreconciledQuery {
514
- bankAccountId?: string
515
- dateRange?: DateRange
516
- }
517
-
518
- /** A candidate internal movement to reconcile an imported bank line against. */
519
- export interface ReconciliationCandidate {
520
- movement: FinancialMovement
521
- invoice?: Invoice
522
- /** 0..1 confidence from amount + date proximity */
523
- score: number
524
- }
525
-
526
- export interface ReconcileInput {
527
- /** The imported bank-line movement (externalSource set) */
528
- bankMovementId: string
529
- /** Internal movement to link; omit to accept the line standalone */
530
- matchedMovementId?: string
531
- }
532
-
533
- // ============================================================
534
- // NOTA FISCAL ELETRÔNICA (NF-e / NFC-e / NFS-e)
535
- // ------------------------------------------------------------
536
- // Structure + UI live here now; actual authorization (SEFAZ / prefeitura) is
537
- // delegated to an external emissor (Focus NFe, NFe.io, PlugNotas…) behind the
538
- // provider's `issueNota`. Until an emissor is wired, `issueNota` assigns a
539
- // number/série locally and marks the nota `issued` — enough to track fiscal
540
- // documents against orders without the emission integration.
541
- // ============================================================
542
-
543
- /** 55 = NF-e (mercadoria), 65 = NFC-e (consumidor), nfse = serviço (prefeitura). */
544
- export type NotaFiscalModel = 'nfe' | 'nfce' | 'nfse'
545
- export type NotaFiscalStatus = 'draft' | 'processing' | 'issued' | 'cancelled' | 'error'
546
-
547
- export interface NotaFiscal {
548
- id: string
549
- tenantId: string
550
- model: NotaFiscalModel
551
- status: NotaFiscalStatus
552
- /** Número da nota — null while draft (assigned on issue). */
553
- number: string | null
554
- series: string | null
555
- /** Order this nota documents (plg_shop_orders / orders id), if any. */
556
- orderId?: string
557
- contactId?: string
558
- contactName?: string
559
- totalAmount: number
560
- issuedAt?: string
561
- /** Chave de acesso (44 dígitos), when authorized. */
562
- accessKey?: string
563
- /** Links to the authorized XML and the DANFE/DANFCE PDF. */
564
- xmlUrl?: string
565
- danfeUrl?: string
566
- /** External emissor id (focusnfe | nfeio | plugnotas | manual). */
567
- emissor?: string
568
- errorMessage?: string
569
- observations?: string
570
- metadata?: Record<string, unknown>
571
- createdAt: string
572
- updatedAt: string
573
- }
574
-
575
- export interface CreateNotaFiscalInput {
576
- model?: NotaFiscalModel
577
- orderId?: string
578
- contactId?: string
579
- contactName?: string
580
- totalAmount: number
581
- series?: string
582
- observations?: string
583
- }
584
-
585
- export interface NotaFiscalQuery {
586
- status?: NotaFiscalStatus | NotaFiscalStatus[]
587
- model?: NotaFiscalModel
588
- orderId?: string
589
- search?: string
590
- page?: number
591
- pageSize?: number
592
- }