@teja-app/api-client 2026.5.13 → 2026.5.17

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 (56) hide show
  1. package/dist/generated/index.d.ts +4 -4
  2. package/dist/generated/index.d.ts.map +1 -1
  3. package/dist/generated/index.js +4 -4
  4. package/dist/generated/index.js.map +1 -1
  5. package/dist/generated/services/AppointmentsService.d.ts +53 -0
  6. package/dist/generated/services/AppointmentsService.d.ts.map +1 -1
  7. package/dist/generated/services/AppointmentsService.js +30 -0
  8. package/dist/generated/services/AppointmentsService.js.map +1 -1
  9. package/dist/generated/services/BillingCodesService.d.ts +25 -0
  10. package/dist/generated/services/BillingCodesService.d.ts.map +1 -0
  11. package/dist/generated/services/BillingCodesService.js +20 -0
  12. package/dist/generated/services/BillingCodesService.js.map +1 -0
  13. package/dist/generated/services/ClientPortalAppointmentsService.d.ts +6 -0
  14. package/dist/generated/services/ClientPortalAppointmentsService.d.ts.map +1 -1
  15. package/dist/generated/services/ClientPortalAppointmentsService.js.map +1 -1
  16. package/dist/generated/services/ClientPortalService.d.ts +224 -0
  17. package/dist/generated/services/ClientPortalService.d.ts.map +1 -1
  18. package/dist/generated/services/ClientPortalService.js +50 -0
  19. package/dist/generated/services/ClientPortalService.js.map +1 -1
  20. package/dist/generated/services/ClientsService.d.ts +17 -0
  21. package/dist/generated/services/ClientsService.d.ts.map +1 -1
  22. package/dist/generated/services/ClientsService.js +15 -0
  23. package/dist/generated/services/ClientsService.js.map +1 -1
  24. package/dist/generated/services/InvoicesService.d.ts +635 -0
  25. package/dist/generated/services/InvoicesService.d.ts.map +1 -0
  26. package/dist/generated/services/InvoicesService.js +172 -0
  27. package/dist/generated/services/InvoicesService.js.map +1 -0
  28. package/dist/generated/services/ServicesService.d.ts +204 -0
  29. package/dist/generated/services/ServicesService.d.ts.map +1 -0
  30. package/dist/generated/services/ServicesService.js +109 -0
  31. package/dist/generated/services/ServicesService.js.map +1 -0
  32. package/dist/generated/services/SuperbillsService.d.ts +60 -357
  33. package/dist/generated/services/SuperbillsService.d.ts.map +1 -1
  34. package/dist/generated/services/SuperbillsService.js +8 -240
  35. package/dist/generated/services/SuperbillsService.js.map +1 -1
  36. package/dist/generated/services/TelehealthService.d.ts +30 -0
  37. package/dist/generated/services/TelehealthService.d.ts.map +1 -0
  38. package/dist/generated/services/TelehealthService.js +46 -0
  39. package/dist/generated/services/TelehealthService.js.map +1 -0
  40. package/package.json +1 -1
  41. package/dist/generated/services/BillingService.d.ts +0 -427
  42. package/dist/generated/services/BillingService.d.ts.map +0 -1
  43. package/dist/generated/services/BillingService.js +0 -280
  44. package/dist/generated/services/BillingService.js.map +0 -1
  45. package/dist/generated/services/ClientPortalSuperbillsService.d.ts +0 -13
  46. package/dist/generated/services/ClientPortalSuperbillsService.d.ts.map +0 -1
  47. package/dist/generated/services/ClientPortalSuperbillsService.js +0 -20
  48. package/dist/generated/services/ClientPortalSuperbillsService.js.map +0 -1
  49. package/dist/generated/services/CreditsService.d.ts +0 -82
  50. package/dist/generated/services/CreditsService.d.ts.map +0 -1
  51. package/dist/generated/services/CreditsService.js +0 -63
  52. package/dist/generated/services/CreditsService.js.map +0 -1
  53. package/dist/generated/services/SuperbillCodesService.d.ts +0 -84
  54. package/dist/generated/services/SuperbillCodesService.d.ts.map +0 -1
  55. package/dist/generated/services/SuperbillCodesService.js +0 -84
  56. package/dist/generated/services/SuperbillCodesService.js.map +0 -1
@@ -0,0 +1,635 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class InvoicesService {
3
+ /**
4
+ * List invoices
5
+ * List invoices for this tenant, optionally filtered by client and/or status.
6
+ * @returns any Response for status 200
7
+ * @throws ApiError
8
+ */
9
+ static getInvoices({ clientId, status, }: {
10
+ clientId?: string;
11
+ status?: 'draft' | 'ready' | 'sent' | 'submitted' | 'partial' | 'paid' | 'void' | 'refunded';
12
+ }): CancelablePromise<{
13
+ success: boolean;
14
+ data?: Array<{
15
+ id: string;
16
+ tenantId: string;
17
+ clientId: string;
18
+ therapistId: string;
19
+ dateRangeStart: string;
20
+ dateRangeEnd: string;
21
+ documentType: string;
22
+ status: string;
23
+ totalCharges: number;
24
+ adjustmentAmount: number;
25
+ amountPaid: number;
26
+ balanceDue: number;
27
+ invoiceNumber: (string | null) | null;
28
+ lineItems: Array<{
29
+ id: string;
30
+ sessionId: string;
31
+ codeType: string;
32
+ code: string;
33
+ description: string;
34
+ units: (string | number);
35
+ fee: number;
36
+ placeOfService: string;
37
+ diagnosisCodes: (Array<string> | null) | null;
38
+ }>;
39
+ payments: Array<{
40
+ id: string;
41
+ invoiceId: string;
42
+ amount: number;
43
+ paymentMethod: string;
44
+ paymentDate: string;
45
+ externalReference: (string | null) | null;
46
+ notes: (string | null) | null;
47
+ stripePaymentIntentId: (string | null) | null;
48
+ stripeChargeId: (string | null) | null;
49
+ stripeRefundId: (string | null) | null;
50
+ refundedAmount: number;
51
+ refundedAt: (string | null) | null;
52
+ recordedBy: (string | null) | null;
53
+ createdAt: string;
54
+ }>;
55
+ header: ({
56
+ practice: {
57
+ name: string;
58
+ address: ({
59
+ street: string;
60
+ city: string;
61
+ state: string;
62
+ zip: string;
63
+ } | null) | null;
64
+ phone: (string | null) | null;
65
+ taxId: (string | null) | null;
66
+ organizationNpi: (string | null) | null;
67
+ logoUrl: (string | null) | null;
68
+ };
69
+ provider: {
70
+ name: string;
71
+ credentials: (string | null) | null;
72
+ npi: (string | null) | null;
73
+ licenseNumber: (string | null) | null;
74
+ licenseState: (string | null) | null;
75
+ };
76
+ taxIdDisplay: string;
77
+ } | null) | null;
78
+ pdfUrl: (string | null) | null;
79
+ generatedAt: (string | null) | null;
80
+ sentAt: (string | null) | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ }>;
84
+ count?: number;
85
+ error?: string;
86
+ }>;
87
+ /**
88
+ * Aggregate billing metrics for the invoices list
89
+ * Tenant-scoped aggregates: totalOutstanding, collectedMonth, collectedYear, avgDaysToPay, outstandingByAge[].
90
+ * @returns any Response for status 200
91
+ * @throws ApiError
92
+ */
93
+ static getInvoicesMetrics(): CancelablePromise<{
94
+ success: boolean;
95
+ data?: {
96
+ totalOutstanding: number;
97
+ collectedMonth: number;
98
+ collectedYear: number;
99
+ avgDaysToPay: (number | null) | null;
100
+ outstandingByAge: Array<{
101
+ bucket: '0-30' | '31-60' | '61-90' | '90+';
102
+ amount: number;
103
+ }>;
104
+ };
105
+ error?: string;
106
+ }>;
107
+ /**
108
+ * Get an invoice with its line items
109
+ * @returns any Response for status 200
110
+ * @throws ApiError
111
+ */
112
+ static getInvoicesById({ id, }: {
113
+ id: string;
114
+ }): CancelablePromise<{
115
+ success: boolean;
116
+ data?: {
117
+ id: string;
118
+ tenantId: string;
119
+ clientId: string;
120
+ therapistId: string;
121
+ dateRangeStart: string;
122
+ dateRangeEnd: string;
123
+ documentType: string;
124
+ status: string;
125
+ totalCharges: number;
126
+ adjustmentAmount: number;
127
+ amountPaid: number;
128
+ balanceDue: number;
129
+ invoiceNumber: (string | null) | null;
130
+ lineItems: Array<{
131
+ id: string;
132
+ sessionId: string;
133
+ codeType: string;
134
+ code: string;
135
+ description: string;
136
+ units: (string | number);
137
+ fee: number;
138
+ placeOfService: string;
139
+ diagnosisCodes: (Array<string> | null) | null;
140
+ }>;
141
+ payments: Array<{
142
+ id: string;
143
+ invoiceId: string;
144
+ amount: number;
145
+ paymentMethod: string;
146
+ paymentDate: string;
147
+ externalReference: (string | null) | null;
148
+ notes: (string | null) | null;
149
+ stripePaymentIntentId: (string | null) | null;
150
+ stripeChargeId: (string | null) | null;
151
+ stripeRefundId: (string | null) | null;
152
+ refundedAmount: number;
153
+ refundedAt: (string | null) | null;
154
+ recordedBy: (string | null) | null;
155
+ createdAt: string;
156
+ }>;
157
+ header: ({
158
+ practice: {
159
+ name: string;
160
+ address: ({
161
+ street: string;
162
+ city: string;
163
+ state: string;
164
+ zip: string;
165
+ } | null) | null;
166
+ phone: (string | null) | null;
167
+ taxId: (string | null) | null;
168
+ organizationNpi: (string | null) | null;
169
+ logoUrl: (string | null) | null;
170
+ };
171
+ provider: {
172
+ name: string;
173
+ credentials: (string | null) | null;
174
+ npi: (string | null) | null;
175
+ licenseNumber: (string | null) | null;
176
+ licenseState: (string | null) | null;
177
+ };
178
+ taxIdDisplay: string;
179
+ } | null) | null;
180
+ pdfUrl: (string | null) | null;
181
+ generatedAt: (string | null) | null;
182
+ sentAt: (string | null) | null;
183
+ createdAt: string;
184
+ updatedAt: string;
185
+ };
186
+ error?: string;
187
+ }>;
188
+ /**
189
+ * Bulk-create an invoice from appointments
190
+ * Creates a draft invoice + one line item per appointment, snapshotting service info and attaching the client's active diagnoses by rank.
191
+ * @returns any Response for status 200
192
+ * @throws ApiError
193
+ */
194
+ static postInvoicesFromAppointments({ requestBody, }: {
195
+ requestBody: {
196
+ clientId: string;
197
+ appointmentIds: Array<string>;
198
+ documentType: 'bill' | 'invoice' | 'credit_memo';
199
+ };
200
+ }): CancelablePromise<{
201
+ success: boolean;
202
+ data?: {
203
+ id: string;
204
+ tenantId: string;
205
+ clientId: string;
206
+ therapistId: string;
207
+ dateRangeStart: string;
208
+ dateRangeEnd: string;
209
+ documentType: string;
210
+ status: string;
211
+ totalCharges: number;
212
+ adjustmentAmount: number;
213
+ amountPaid: number;
214
+ balanceDue: number;
215
+ invoiceNumber: (string | null) | null;
216
+ lineItems: Array<{
217
+ id: string;
218
+ sessionId: string;
219
+ codeType: string;
220
+ code: string;
221
+ description: string;
222
+ units: (string | number);
223
+ fee: number;
224
+ placeOfService: string;
225
+ diagnosisCodes: (Array<string> | null) | null;
226
+ }>;
227
+ payments: Array<{
228
+ id: string;
229
+ invoiceId: string;
230
+ amount: number;
231
+ paymentMethod: string;
232
+ paymentDate: string;
233
+ externalReference: (string | null) | null;
234
+ notes: (string | null) | null;
235
+ stripePaymentIntentId: (string | null) | null;
236
+ stripeChargeId: (string | null) | null;
237
+ stripeRefundId: (string | null) | null;
238
+ refundedAmount: number;
239
+ refundedAt: (string | null) | null;
240
+ recordedBy: (string | null) | null;
241
+ createdAt: string;
242
+ }>;
243
+ header: ({
244
+ practice: {
245
+ name: string;
246
+ address: ({
247
+ street: string;
248
+ city: string;
249
+ state: string;
250
+ zip: string;
251
+ } | null) | null;
252
+ phone: (string | null) | null;
253
+ taxId: (string | null) | null;
254
+ organizationNpi: (string | null) | null;
255
+ logoUrl: (string | null) | null;
256
+ };
257
+ provider: {
258
+ name: string;
259
+ credentials: (string | null) | null;
260
+ npi: (string | null) | null;
261
+ licenseNumber: (string | null) | null;
262
+ licenseState: (string | null) | null;
263
+ };
264
+ taxIdDisplay: string;
265
+ } | null) | null;
266
+ pdfUrl: (string | null) | null;
267
+ generatedAt: (string | null) | null;
268
+ sentAt: (string | null) | null;
269
+ createdAt: string;
270
+ updatedAt: string;
271
+ };
272
+ error?: string;
273
+ }>;
274
+ /**
275
+ * Finalize a draft invoice (draft → ready)
276
+ * Assigns the per-tenant invoice number and freezes the practice/provider/client/line-items snapshot. Idempotent on non-draft invoices.
277
+ * @returns any Response for status 200
278
+ * @throws ApiError
279
+ */
280
+ static postInvoicesByIdMarkReady({ id, }: {
281
+ id: string;
282
+ }): CancelablePromise<{
283
+ success: boolean;
284
+ data?: {
285
+ id: string;
286
+ tenantId: string;
287
+ clientId: string;
288
+ therapistId: string;
289
+ dateRangeStart: string;
290
+ dateRangeEnd: string;
291
+ documentType: string;
292
+ status: string;
293
+ totalCharges: number;
294
+ adjustmentAmount: number;
295
+ amountPaid: number;
296
+ balanceDue: number;
297
+ invoiceNumber: (string | null) | null;
298
+ lineItems: Array<{
299
+ id: string;
300
+ sessionId: string;
301
+ codeType: string;
302
+ code: string;
303
+ description: string;
304
+ units: (string | number);
305
+ fee: number;
306
+ placeOfService: string;
307
+ diagnosisCodes: (Array<string> | null) | null;
308
+ }>;
309
+ payments: Array<{
310
+ id: string;
311
+ invoiceId: string;
312
+ amount: number;
313
+ paymentMethod: string;
314
+ paymentDate: string;
315
+ externalReference: (string | null) | null;
316
+ notes: (string | null) | null;
317
+ stripePaymentIntentId: (string | null) | null;
318
+ stripeChargeId: (string | null) | null;
319
+ stripeRefundId: (string | null) | null;
320
+ refundedAmount: number;
321
+ refundedAt: (string | null) | null;
322
+ recordedBy: (string | null) | null;
323
+ createdAt: string;
324
+ }>;
325
+ header: ({
326
+ practice: {
327
+ name: string;
328
+ address: ({
329
+ street: string;
330
+ city: string;
331
+ state: string;
332
+ zip: string;
333
+ } | null) | null;
334
+ phone: (string | null) | null;
335
+ taxId: (string | null) | null;
336
+ organizationNpi: (string | null) | null;
337
+ logoUrl: (string | null) | null;
338
+ };
339
+ provider: {
340
+ name: string;
341
+ credentials: (string | null) | null;
342
+ npi: (string | null) | null;
343
+ licenseNumber: (string | null) | null;
344
+ licenseState: (string | null) | null;
345
+ };
346
+ taxIdDisplay: string;
347
+ } | null) | null;
348
+ pdfUrl: (string | null) | null;
349
+ generatedAt: (string | null) | null;
350
+ sentAt: (string | null) | null;
351
+ createdAt: string;
352
+ updatedAt: string;
353
+ };
354
+ error?: string;
355
+ }>;
356
+ /**
357
+ * Render a draft preview PDF without finalizing
358
+ * Returns the rendered PDF bytes inline (application/pdf). No invoice number is assigned, no snapshot is written, nothing is uploaded to S3. The output is watermarked DRAFT so it can't be confused with a final invoice. Safe to call repeatedly. Rejected for void invoices.
359
+ * @throws ApiError
360
+ */
361
+ static postInvoicesByIdPreviewPdf({ id, }: {
362
+ id: string;
363
+ }): CancelablePromise<void>;
364
+ /**
365
+ * Render the FINAL invoice PDF and return a signed URL
366
+ * Requires the invoice to already be in a non-draft status. Renders the PDF from the frozen snapshot, uploads to S3, returns a presigned download URL (default 1h expiry). Drafts must be finalized via POST /invoices/:id/mark-ready first; use POST /invoices/:id/preview-pdf for non-committal draft previews.
367
+ * @returns any Response for status 200
368
+ * @throws ApiError
369
+ */
370
+ static postInvoicesByIdGeneratePdf({ id, }: {
371
+ id: string;
372
+ }): CancelablePromise<{
373
+ success: boolean;
374
+ data?: {
375
+ pdfUrl: string;
376
+ expiresInSeconds: (string | number);
377
+ invoice: {
378
+ id: string;
379
+ tenantId: string;
380
+ clientId: string;
381
+ therapistId: string;
382
+ dateRangeStart: string;
383
+ dateRangeEnd: string;
384
+ documentType: string;
385
+ status: string;
386
+ totalCharges: number;
387
+ adjustmentAmount: number;
388
+ amountPaid: number;
389
+ balanceDue: number;
390
+ invoiceNumber: (string | null) | null;
391
+ lineItems: Array<{
392
+ id: string;
393
+ sessionId: string;
394
+ codeType: string;
395
+ code: string;
396
+ description: string;
397
+ units: (string | number);
398
+ fee: number;
399
+ placeOfService: string;
400
+ diagnosisCodes: (Array<string> | null) | null;
401
+ }>;
402
+ payments: Array<{
403
+ id: string;
404
+ invoiceId: string;
405
+ amount: number;
406
+ paymentMethod: string;
407
+ paymentDate: string;
408
+ externalReference: (string | null) | null;
409
+ notes: (string | null) | null;
410
+ stripePaymentIntentId: (string | null) | null;
411
+ stripeChargeId: (string | null) | null;
412
+ stripeRefundId: (string | null) | null;
413
+ refundedAmount: number;
414
+ refundedAt: (string | null) | null;
415
+ recordedBy: (string | null) | null;
416
+ createdAt: string;
417
+ }>;
418
+ header: ({
419
+ practice: {
420
+ name: string;
421
+ address: ({
422
+ street: string;
423
+ city: string;
424
+ state: string;
425
+ zip: string;
426
+ } | null) | null;
427
+ phone: (string | null) | null;
428
+ taxId: (string | null) | null;
429
+ organizationNpi: (string | null) | null;
430
+ logoUrl: (string | null) | null;
431
+ };
432
+ provider: {
433
+ name: string;
434
+ credentials: (string | null) | null;
435
+ npi: (string | null) | null;
436
+ licenseNumber: (string | null) | null;
437
+ licenseState: (string | null) | null;
438
+ };
439
+ taxIdDisplay: string;
440
+ } | null) | null;
441
+ pdfUrl: (string | null) | null;
442
+ generatedAt: (string | null) | null;
443
+ sentAt: (string | null) | null;
444
+ createdAt: string;
445
+ updatedAt: string;
446
+ };
447
+ };
448
+ error?: string;
449
+ }>;
450
+ /**
451
+ * Email the invoice PDF download link to the client
452
+ * Regenerates the PDF with a 24h presigned URL and emails the client (or override recipient). Transitions ready/draft → sent.
453
+ * @returns any Response for status 200
454
+ * @throws ApiError
455
+ */
456
+ static postInvoicesByIdSendEmail({ id, requestBody, }: {
457
+ id: string;
458
+ requestBody: {
459
+ recipientEmail?: string;
460
+ };
461
+ }): CancelablePromise<{
462
+ success: boolean;
463
+ data?: {
464
+ invoice: {
465
+ id: string;
466
+ tenantId: string;
467
+ clientId: string;
468
+ therapistId: string;
469
+ dateRangeStart: string;
470
+ dateRangeEnd: string;
471
+ documentType: string;
472
+ status: string;
473
+ totalCharges: number;
474
+ adjustmentAmount: number;
475
+ amountPaid: number;
476
+ balanceDue: number;
477
+ invoiceNumber: (string | null) | null;
478
+ lineItems: Array<{
479
+ id: string;
480
+ sessionId: string;
481
+ codeType: string;
482
+ code: string;
483
+ description: string;
484
+ units: (string | number);
485
+ fee: number;
486
+ placeOfService: string;
487
+ diagnosisCodes: (Array<string> | null) | null;
488
+ }>;
489
+ payments: Array<{
490
+ id: string;
491
+ invoiceId: string;
492
+ amount: number;
493
+ paymentMethod: string;
494
+ paymentDate: string;
495
+ externalReference: (string | null) | null;
496
+ notes: (string | null) | null;
497
+ stripePaymentIntentId: (string | null) | null;
498
+ stripeChargeId: (string | null) | null;
499
+ stripeRefundId: (string | null) | null;
500
+ refundedAmount: number;
501
+ refundedAt: (string | null) | null;
502
+ recordedBy: (string | null) | null;
503
+ createdAt: string;
504
+ }>;
505
+ header: ({
506
+ practice: {
507
+ name: string;
508
+ address: ({
509
+ street: string;
510
+ city: string;
511
+ state: string;
512
+ zip: string;
513
+ } | null) | null;
514
+ phone: (string | null) | null;
515
+ taxId: (string | null) | null;
516
+ organizationNpi: (string | null) | null;
517
+ logoUrl: (string | null) | null;
518
+ };
519
+ provider: {
520
+ name: string;
521
+ credentials: (string | null) | null;
522
+ npi: (string | null) | null;
523
+ licenseNumber: (string | null) | null;
524
+ licenseState: (string | null) | null;
525
+ };
526
+ taxIdDisplay: string;
527
+ } | null) | null;
528
+ pdfUrl: (string | null) | null;
529
+ generatedAt: (string | null) | null;
530
+ sentAt: (string | null) | null;
531
+ createdAt: string;
532
+ updatedAt: string;
533
+ };
534
+ sentTo: string;
535
+ };
536
+ error?: string;
537
+ }>;
538
+ /**
539
+ * Create a Stripe payment request from this invoice
540
+ * Generates a Stripe Checkout Session on the therapist's connected account for the invoice's outstanding balance. Idempotent — returns the existing open payment_request if one is already linked.
541
+ * @returns any Response for status 200
542
+ * @throws ApiError
543
+ */
544
+ static postInvoicesByIdPaymentRequest({ id, }: {
545
+ id: string;
546
+ }): CancelablePromise<{
547
+ success: boolean;
548
+ data?: {
549
+ id: string;
550
+ invoiceId: string;
551
+ amount: number;
552
+ currency: string;
553
+ status: string;
554
+ stripePaymentLinkUrl: (string | null) | null;
555
+ createdAt: string;
556
+ };
557
+ error?: string;
558
+ }>;
559
+ /**
560
+ * Record a non-Stripe payment against this invoice
561
+ * Cash, check, card_external, insurance, credit, or other. Stripe payments are recorded via webhook only and are rejected here.
562
+ * @returns any Response for status 200
563
+ * @throws ApiError
564
+ */
565
+ static postInvoicesByIdPayments({ id, requestBody, }: {
566
+ id: string;
567
+ requestBody: {
568
+ amount: number;
569
+ paymentMethod: 'cash' | 'check' | 'card_external' | 'insurance' | 'credit' | 'other' | 'stripe';
570
+ paymentDate: string;
571
+ externalReference?: string;
572
+ notes?: string;
573
+ };
574
+ }): CancelablePromise<{
575
+ success: boolean;
576
+ data?: {
577
+ payment: {
578
+ id: string;
579
+ invoiceId: string;
580
+ amount: number;
581
+ paymentMethod: string;
582
+ paymentDate: string;
583
+ externalReference: (string | null) | null;
584
+ notes: (string | null) | null;
585
+ stripePaymentIntentId: (string | null) | null;
586
+ stripeChargeId: (string | null) | null;
587
+ stripeRefundId: (string | null) | null;
588
+ refundedAmount: number;
589
+ refundedAt: (string | null) | null;
590
+ recordedBy: (string | null) | null;
591
+ createdAt: string;
592
+ };
593
+ invoice: {
594
+ id: string;
595
+ status: string;
596
+ amountPaid: number;
597
+ balanceDue: number;
598
+ };
599
+ };
600
+ error?: string;
601
+ }>;
602
+ /**
603
+ * Refund a manual payment on this invoice
604
+ * Stripe-method payments are refunded via the Stripe Dashboard / webhook — rejected here.
605
+ * @returns any Response for status 200
606
+ * @throws ApiError
607
+ */
608
+ static patchInvoicesByIdPaymentsByPaymentId({ id, paymentId, requestBody, }: {
609
+ id: string;
610
+ paymentId: string;
611
+ requestBody: {
612
+ refundAmount: number;
613
+ refundReason?: string;
614
+ };
615
+ }): CancelablePromise<{
616
+ success: boolean;
617
+ data?: {
618
+ payment: {
619
+ id: string;
620
+ invoiceId: string;
621
+ amount: number;
622
+ refundedAmount: number;
623
+ refundedAt: (string | null) | null;
624
+ };
625
+ invoice: {
626
+ id: string;
627
+ status: string;
628
+ amountPaid: number;
629
+ balanceDue: number;
630
+ };
631
+ };
632
+ error?: string;
633
+ }>;
634
+ }
635
+ //# sourceMappingURL=InvoicesService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvoicesService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/InvoicesService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,eAAe;IACxB;;;;;OAKG;WACW,WAAW,CAAC,EACtB,QAAQ,EACR,MAAM,GACT,EAAE;QACC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAChG,GAAG,iBAAiB,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,KAAK,CAAC;YACT,EAAE,EAAE,MAAM,CAAC;YACX,QAAQ,EAAE,MAAM,CAAC;YACjB,QAAQ,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,cAAc,EAAE,MA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