@teja-app/api-client 2026.4.20 → 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 (63) 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/PaymentsService.d.ts +17 -17
  29. package/dist/generated/services/PaymentsService.d.ts.map +1 -1
  30. package/dist/generated/services/PaymentsService.js +24 -24
  31. package/dist/generated/services/PaymentsService.js.map +1 -1
  32. package/dist/generated/services/ServicesService.d.ts +204 -0
  33. package/dist/generated/services/ServicesService.d.ts.map +1 -0
  34. package/dist/generated/services/ServicesService.js +109 -0
  35. package/dist/generated/services/ServicesService.js.map +1 -0
  36. package/dist/generated/services/SuperbillsService.d.ts +60 -263
  37. package/dist/generated/services/SuperbillsService.d.ts.map +1 -1
  38. package/dist/generated/services/SuperbillsService.js +8 -240
  39. package/dist/generated/services/SuperbillsService.js.map +1 -1
  40. package/dist/generated/services/TelehealthService.d.ts +30 -0
  41. package/dist/generated/services/TelehealthService.d.ts.map +1 -0
  42. package/dist/generated/services/TelehealthService.js +46 -0
  43. package/dist/generated/services/TelehealthService.js.map +1 -0
  44. package/dist/generated/services/TenantsService.d.ts +6 -0
  45. package/dist/generated/services/TenantsService.d.ts.map +1 -1
  46. package/dist/generated/services/TenantsService.js.map +1 -1
  47. package/package.json +1 -1
  48. package/dist/generated/services/BillingService.d.ts +0 -254
  49. package/dist/generated/services/BillingService.d.ts.map +0 -1
  50. package/dist/generated/services/BillingService.js +0 -191
  51. package/dist/generated/services/BillingService.js.map +0 -1
  52. package/dist/generated/services/ClientPortalSuperbillsService.d.ts +0 -13
  53. package/dist/generated/services/ClientPortalSuperbillsService.d.ts.map +0 -1
  54. package/dist/generated/services/ClientPortalSuperbillsService.js +0 -20
  55. package/dist/generated/services/ClientPortalSuperbillsService.js.map +0 -1
  56. package/dist/generated/services/CreditsService.d.ts +0 -82
  57. package/dist/generated/services/CreditsService.d.ts.map +0 -1
  58. package/dist/generated/services/CreditsService.js +0 -63
  59. package/dist/generated/services/CreditsService.js.map +0 -1
  60. package/dist/generated/services/SuperbillCodesService.d.ts +0 -84
  61. package/dist/generated/services/SuperbillCodesService.d.ts.map +0 -1
  62. package/dist/generated/services/SuperbillCodesService.js +0 -84
  63. package/dist/generated/services/SuperbillCodesService.js.map +0 -1
@@ -1,305 +1,102 @@
1
1
  import type { CancelablePromise } from '../core/CancelablePromise';
2
2
  export declare class SuperbillsService {
3
3
  /**
4
- * Get superbill
5
- * Get superbill by ID
4
+ * List insurance superbills (US-only)
6
5
  * @returns any Response for status 200
7
6
  * @throws ApiError
8
7
  */
9
- static getSuperbillsById({ id, }: {
10
- id: string;
11
- }): CancelablePromise<{
12
- success: boolean;
13
- data?: any;
14
- error?: string;
15
- }>;
16
- /**
17
- * Delete superbill
18
- * Delete a superbill
19
- * @returns any Response for status 200
20
- * @throws ApiError
21
- */
22
- static deleteSuperbillsById({ id, }: {
23
- id: string;
24
- }): CancelablePromise<{
25
- success: boolean;
26
- message: string;
27
- }>;
28
- /**
29
- * List superbills
30
- * List superbills with filters
31
- * @returns any Response for status 200
32
- * @throws ApiError
33
- */
34
- static getSuperbills({ clientId, status, dateRangeStart, dateRangeEnd, limit, offset, }: {
8
+ static getSuperbills({ clientId, }: {
35
9
  clientId?: string;
36
- status?: 'draft' | 'ready' | 'sent' | 'submitted' | 'partial' | 'paid' | 'void' | 'refunded';
37
- dateRangeStart?: string;
38
- dateRangeEnd?: string;
39
- limit?: string;
40
- offset?: string;
41
10
  }): CancelablePromise<{
42
11
  success: boolean;
43
- data?: any;
44
- error?: string;
45
- total?: number;
46
- }>;
47
- /**
48
- * Create superbill
49
- * Create a new superbill for a client
50
- * @returns any Response for status 200
51
- * @throws ApiError
52
- */
53
- static postSuperbills({ requestBody, }: {
54
- requestBody: {
12
+ data?: Array<{
13
+ id: string;
14
+ tenantId: string;
55
15
  clientId: string;
16
+ therapistId: string;
17
+ invoiceIds: Array<string>;
56
18
  dateRangeStart: string;
57
19
  dateRangeEnd: string;
58
- };
59
- }): CancelablePromise<{
60
- success: boolean;
61
- data?: any;
62
- error?: string;
63
- }>;
64
- /**
65
- * Get AI code suggestions
66
- * Get AI-powered code suggestions for a session
67
- * @returns any Response for status 200
68
- * @throws ApiError
69
- */
70
- static getSuperbillsAiSuggestCodes({ sessionId, }: {
71
- sessionId: string;
72
- }): CancelablePromise<{
73
- success: boolean;
74
- data?: any;
75
- error?: string;
76
- }>;
77
- /**
78
- * List superbill payments
79
- * List all payment records for a superbill
80
- * @returns any Response for status 200
81
- * @throws ApiError
82
- */
83
- static getSuperbillsByIdPayments({ id, }: {
84
- id: string;
85
- }): CancelablePromise<{
86
- success: boolean;
87
- data?: {
88
- payments: Array<{
89
- id: string;
90
- superbillId: string;
91
- amount: number;
92
- paymentMethod: 'stripe' | 'cash' | 'check' | 'card_external' | 'insurance' | 'credit' | 'other';
93
- referenceNumber: (string | null);
94
- paymentDate: string;
95
- notes: (string | null);
96
- refundedAmount: (number | null);
97
- refundedAt: (string | null);
98
- refundReason: (string | null);
99
- recordedBy: string;
100
- createdAt: string;
20
+ status: string;
21
+ superbillNumber: (string | null) | null;
22
+ diagnosesList: Array<{
23
+ ordinal: (string | number);
24
+ code: string;
25
+ description: string;
101
26
  }>;
102
- };
103
- error?: string;
104
- }>;
105
- /**
106
- * Record payment
107
- * Record a manual payment on a superbill
108
- * @returns any Response for status 200
109
- * @throws ApiError
110
- */
111
- static postSuperbillsByIdPayments({ id, requestBody, }: {
112
- id: string;
113
- requestBody: {
114
- amount: number;
115
- paymentMethod: 'stripe' | 'cash' | 'check' | 'card_external' | 'insurance' | 'credit' | 'other';
116
- referenceNumber?: string;
117
- paymentDate: string;
118
- notes?: string;
119
- };
120
- }): CancelablePromise<{
121
- success: boolean;
122
- data?: {
123
- paymentId: string;
124
- superbillStatus: string;
125
- balanceDue: number;
126
- };
127
- error?: string;
128
- }>;
129
- /**
130
- * Add billing entry
131
- * Add a billing entry to a superbill
132
- * @returns any Response for status 200
133
- * @throws ApiError
134
- */
135
- static postSuperbillsByIdBillingEntries({ id, requestBody, }: {
136
- id: string;
137
- requestBody: {
138
- sessionId: string;
139
- codeType: 'CPT4' | 'ICD10' | 'HCPCS';
140
- code: string;
141
- description: string;
142
- modifier?: string;
143
- units?: (string | number);
144
- fee?: number;
145
- diagnosisCodes?: Array<string>;
146
- };
147
- }): CancelablePromise<{
148
- success: boolean;
149
- data?: any;
150
- error?: string;
151
- }>;
152
- /**
153
- * Update billing entry
154
- * Update an existing billing entry
155
- * @returns any Response for status 200
156
- * @throws ApiError
157
- */
158
- static patchSuperbillsByIdBillingEntriesByEntryId({ id, entryId, requestBody, }: {
159
- id: string;
160
- entryId: string;
161
- requestBody: {
162
- fee?: number;
163
- units?: (string | number);
164
- diagnosisCodes?: Array<string>;
165
- modifier?: string;
166
- };
167
- }): CancelablePromise<{
168
- success: boolean;
169
- data?: any;
27
+ pdfUrl: (string | null) | null;
28
+ createdAt: string;
29
+ updatedAt: string;
30
+ readyAt: (string | null) | null;
31
+ sentAt: (string | null) | null;
32
+ }>;
33
+ count?: number;
170
34
  error?: string;
171
35
  }>;
172
36
  /**
173
- * Remove billing entry
174
- * Remove a billing entry from a superbill
175
- * @returns any Response for status 200
176
- * @throws ApiError
177
- */
178
- static deleteSuperbillsByIdBillingEntriesByEntryId({ id, entryId, }: {
179
- id: string;
180
- entryId: string;
181
- }): CancelablePromise<{
182
- success: boolean;
183
- message: string;
184
- }>;
185
- /**
186
- * Generate HTML superbill
187
- * Generate HTML version of superbill
188
- * @returns any Response for status 200
189
- * @throws ApiError
190
- */
191
- static postSuperbillsByIdGenerateHtml({ id, }: {
192
- id: string;
193
- }): CancelablePromise<{
194
- success: boolean;
195
- data: {
196
- html: string;
197
- };
198
- }>;
199
- /**
200
- * Generate PDF superbill
201
- * Generate PDF version of superbill (BASIC tier)
202
- * @returns any Response for status 200
203
- * @throws ApiError
204
- */
205
- static postSuperbillsByIdGeneratePdf({ id, }: {
206
- id: string;
207
- }): CancelablePromise<{
208
- success: boolean;
209
- data: {
210
- pdfUrl: string;
211
- };
212
- }>;
213
- /**
214
- * Send superbill email
215
- * Send superbill to client via email
216
- * @returns any Response for status 200
217
- * @throws ApiError
218
- */
219
- static postSuperbillsByIdSendEmail({ id, }: {
220
- id: string;
221
- }): CancelablePromise<{
222
- success: boolean;
223
- message: string;
224
- }>;
225
- /**
226
- * Mark superbill ready
227
- * Mark a draft superbill as ready for billing
37
+ * Get a superbill
228
38
  * @returns any Response for status 200
229
39
  * @throws ApiError
230
40
  */
231
- static postSuperbillsByIdReady({ id, }: {
41
+ static getSuperbillsById({ id, }: {
232
42
  id: string;
233
43
  }): CancelablePromise<{
234
44
  success: boolean;
235
45
  data?: {
236
46
  id: string;
47
+ tenantId: string;
48
+ clientId: string;
49
+ therapistId: string;
50
+ invoiceIds: Array<string>;
51
+ dateRangeStart: string;
52
+ dateRangeEnd: string;
237
53
  status: string;
54
+ superbillNumber: (string | null) | null;
55
+ diagnosesList: Array<{
56
+ ordinal: (string | number);
57
+ code: string;
58
+ description: string;
59
+ }>;
60
+ pdfUrl: (string | null) | null;
61
+ createdAt: string;
62
+ updatedAt: string;
63
+ readyAt: (string | null) | null;
64
+ sentAt: (string | null) | null;
238
65
  };
239
66
  error?: string;
240
67
  }>;
241
68
  /**
242
- * Void superbill
243
- * Void a superbill with a reason
69
+ * Create an insurance superbill from invoices (US-only)
244
70
  * @returns any Response for status 200
245
71
  * @throws ApiError
246
72
  */
247
- static postSuperbillsByIdVoid({ id, requestBody, }: {
248
- id: string;
73
+ static postSuperbillsFromInvoices({ requestBody, }: {
249
74
  requestBody: {
250
- reason: string;
75
+ clientId: string;
76
+ invoiceIds: Array<string>;
251
77
  };
252
78
  }): CancelablePromise<{
253
79
  success: boolean;
254
80
  data?: {
255
81
  id: string;
82
+ tenantId: string;
83
+ clientId: string;
84
+ therapistId: string;
85
+ invoiceIds: Array<string>;
86
+ dateRangeStart: string;
87
+ dateRangeEnd: string;
256
88
  status: string;
257
- voidedAt: string;
258
- voidReason: string;
259
- };
260
- error?: string;
261
- }>;
262
- /**
263
- * Process refund
264
- * Process a refund on a superbill payment
265
- * @returns any Response for status 200
266
- * @throws ApiError
267
- */
268
- static postSuperbillsByIdRefund({ id, requestBody, }: {
269
- id: string;
270
- requestBody: {
271
- amount: number;
272
- refundTo: 'original' | 'credit';
273
- reason: string;
274
- paymentId?: string;
275
- };
276
- }): CancelablePromise<{
277
- success: boolean;
278
- data?: {
279
- refundedAmount: number;
280
- superbillStatus: string;
281
- };
282
- error?: string;
283
- }>;
284
- /**
285
- * Set adjustment
286
- * Set an adjustment amount and reason on a superbill
287
- * @returns any Response for status 200
288
- * @throws ApiError
289
- */
290
- static postSuperbillsByIdAdjustment({ id, requestBody, }: {
291
- id: string;
292
- requestBody: {
293
- amount: number;
294
- reason: 'sliding_scale' | 'insurance_write_off' | 'courtesy_discount' | 'error_correction' | 'other';
295
- };
296
- }): CancelablePromise<{
297
- success: boolean;
298
- data?: {
299
- id: string;
300
- adjustmentAmount: number;
301
- adjustmentReason: string;
302
- balanceDue: number;
89
+ superbillNumber: (string | null) | null;
90
+ diagnosesList: Array<{
91
+ ordinal: (string | number);
92
+ code: string;
93
+ description: string;
94
+ }>;
95
+ pdfUrl: (string | null) | null;
96
+ createdAt: string;
97
+ updatedAt: string;
98
+ readyAt: (string | null) | null;
99
+ sentAt: (string | null) | null;
303
100
  };
304
101
  error?: string;
305
102
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"SuperbillsService.d.ts","sourceRoot":"","sources":["../../../src/generated/services/SuperbillsService.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAGnE,qBAAa,iBAAiB;IAC1B;;;;;OAKG;WACW,iBAAiB,CAAC,EAC5B,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IASF;;;;;OAKG;WACW,oBAAoB,CAAC,EAC/B,EAAE,GACL,EAAE;QACC,EAAE,EAAE,MAAM,CAAC;KACd,GAAG,iBAAiB,CAAC;QAClB,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,MAAM,CAAC;KACnB,CAAC;IASF;;;;;OAKG;WACW,aAAa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,EAAE,MAAM,CAAC;YACjB,WAAW,EAAE,MAAM,CAAC;YACpB,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAC1B,cAAc,EAAE,MAAM,CAAC;YACvB,YAAY,EAAE,MAAM,CAAC;YACrB,MAAM,EAAE,MAAM,CAAC;YACf,eAAe,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;YACxC,aAAa,EAAE,KAAK,CAAC;gBACjB,OAAO,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;gBAC3B,IAAI,EAAE,MAAM,CAAC;gBACb,WAAW,EAAE,MAAM,CAAC;aACvB,CAAC,CAAC;YACH,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;YAC/B,SAAS,EAAE,MAAM,CAAC;YAClB,SAAS,EAAE,MAAM,CAAC;YAClB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;YAChC,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC;SAClC,CAAC;QACF,KAAK,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;CAQL"}
@@ -2,274 +2,42 @@ import { OpenAPI } from '../core/OpenAPI';
2
2
  import { request as __request } from '../core/request';
3
3
  export class SuperbillsService {
4
4
  /**
5
- * Get superbill
6
- * Get superbill by ID
5
+ * List insurance superbills (US-only)
7
6
  * @returns any Response for status 200
8
7
  * @throws ApiError
9
8
  */
10
- static getSuperbillsById({ id, }) {
11
- return __request(OpenAPI, {
12
- method: 'GET',
13
- url: '/superbills/{id}',
14
- path: {
15
- 'id': id,
16
- },
17
- });
18
- }
19
- /**
20
- * Delete superbill
21
- * Delete a superbill
22
- * @returns any Response for status 200
23
- * @throws ApiError
24
- */
25
- static deleteSuperbillsById({ id, }) {
26
- return __request(OpenAPI, {
27
- method: 'DELETE',
28
- url: '/superbills/{id}',
29
- path: {
30
- 'id': id,
31
- },
32
- });
33
- }
34
- /**
35
- * List superbills
36
- * List superbills with filters
37
- * @returns any Response for status 200
38
- * @throws ApiError
39
- */
40
- static getSuperbills({ clientId, status, dateRangeStart, dateRangeEnd, limit, offset, }) {
9
+ static getSuperbills({ clientId, }) {
41
10
  return __request(OpenAPI, {
42
11
  method: 'GET',
43
12
  url: '/superbills',
44
13
  query: {
45
14
  'clientId': clientId,
46
- 'status': status,
47
- 'dateRangeStart': dateRangeStart,
48
- 'dateRangeEnd': dateRangeEnd,
49
- 'limit': limit,
50
- 'offset': offset,
51
- },
52
- });
53
- }
54
- /**
55
- * Create superbill
56
- * Create a new superbill for a client
57
- * @returns any Response for status 200
58
- * @throws ApiError
59
- */
60
- static postSuperbills({ requestBody, }) {
61
- return __request(OpenAPI, {
62
- method: 'POST',
63
- url: '/superbills',
64
- body: requestBody,
65
- mediaType: 'application/json',
66
- });
67
- }
68
- /**
69
- * Get AI code suggestions
70
- * Get AI-powered code suggestions for a session
71
- * @returns any Response for status 200
72
- * @throws ApiError
73
- */
74
- static getSuperbillsAiSuggestCodes({ sessionId, }) {
75
- return __request(OpenAPI, {
76
- method: 'GET',
77
- url: '/superbills/ai/suggest-codes',
78
- query: {
79
- 'sessionId': sessionId,
80
15
  },
81
16
  });
82
17
  }
83
18
  /**
84
- * List superbill payments
85
- * List all payment records for a superbill
19
+ * Get a superbill
86
20
  * @returns any Response for status 200
87
21
  * @throws ApiError
88
22
  */
89
- static getSuperbillsByIdPayments({ id, }) {
23
+ static getSuperbillsById({ id, }) {
90
24
  return __request(OpenAPI, {
91
25
  method: 'GET',
92
- url: '/superbills/{id}/payments',
93
- path: {
94
- 'id': id,
95
- },
96
- });
97
- }
98
- /**
99
- * Record payment
100
- * Record a manual payment on a superbill
101
- * @returns any Response for status 200
102
- * @throws ApiError
103
- */
104
- static postSuperbillsByIdPayments({ id, requestBody, }) {
105
- return __request(OpenAPI, {
106
- method: 'POST',
107
- url: '/superbills/{id}/payments',
108
- path: {
109
- 'id': id,
110
- },
111
- body: requestBody,
112
- mediaType: 'application/json',
113
- });
114
- }
115
- /**
116
- * Add billing entry
117
- * Add a billing entry to a superbill
118
- * @returns any Response for status 200
119
- * @throws ApiError
120
- */
121
- static postSuperbillsByIdBillingEntries({ id, requestBody, }) {
122
- return __request(OpenAPI, {
123
- method: 'POST',
124
- url: '/superbills/{id}/billing-entries',
125
- path: {
126
- 'id': id,
127
- },
128
- body: requestBody,
129
- mediaType: 'application/json',
130
- });
131
- }
132
- /**
133
- * Update billing entry
134
- * Update an existing billing entry
135
- * @returns any Response for status 200
136
- * @throws ApiError
137
- */
138
- static patchSuperbillsByIdBillingEntriesByEntryId({ id, entryId, requestBody, }) {
139
- return __request(OpenAPI, {
140
- method: 'PATCH',
141
- url: '/superbills/{id}/billing-entries/{entryId}',
142
- path: {
143
- 'id': id,
144
- 'entryId': entryId,
145
- },
146
- body: requestBody,
147
- mediaType: 'application/json',
148
- });
149
- }
150
- /**
151
- * Remove billing entry
152
- * Remove a billing entry from a superbill
153
- * @returns any Response for status 200
154
- * @throws ApiError
155
- */
156
- static deleteSuperbillsByIdBillingEntriesByEntryId({ id, entryId, }) {
157
- return __request(OpenAPI, {
158
- method: 'DELETE',
159
- url: '/superbills/{id}/billing-entries/{entryId}',
160
- path: {
161
- 'id': id,
162
- 'entryId': entryId,
163
- },
164
- });
165
- }
166
- /**
167
- * Generate HTML superbill
168
- * Generate HTML version of superbill
169
- * @returns any Response for status 200
170
- * @throws ApiError
171
- */
172
- static postSuperbillsByIdGenerateHtml({ id, }) {
173
- return __request(OpenAPI, {
174
- method: 'POST',
175
- url: '/superbills/{id}/generate/html',
176
- path: {
177
- 'id': id,
178
- },
179
- });
180
- }
181
- /**
182
- * Generate PDF superbill
183
- * Generate PDF version of superbill (BASIC tier)
184
- * @returns any Response for status 200
185
- * @throws ApiError
186
- */
187
- static postSuperbillsByIdGeneratePdf({ id, }) {
188
- return __request(OpenAPI, {
189
- method: 'POST',
190
- url: '/superbills/{id}/generate/pdf',
191
- path: {
192
- 'id': id,
193
- },
194
- });
195
- }
196
- /**
197
- * Send superbill email
198
- * Send superbill to client via email
199
- * @returns any Response for status 200
200
- * @throws ApiError
201
- */
202
- static postSuperbillsByIdSendEmail({ id, }) {
203
- return __request(OpenAPI, {
204
- method: 'POST',
205
- url: '/superbills/{id}/send-email',
206
- path: {
207
- 'id': id,
208
- },
209
- });
210
- }
211
- /**
212
- * Mark superbill ready
213
- * Mark a draft superbill as ready for billing
214
- * @returns any Response for status 200
215
- * @throws ApiError
216
- */
217
- static postSuperbillsByIdReady({ id, }) {
218
- return __request(OpenAPI, {
219
- method: 'POST',
220
- url: '/superbills/{id}/ready',
221
- path: {
222
- 'id': id,
223
- },
224
- });
225
- }
226
- /**
227
- * Void superbill
228
- * Void a superbill with a reason
229
- * @returns any Response for status 200
230
- * @throws ApiError
231
- */
232
- static postSuperbillsByIdVoid({ id, requestBody, }) {
233
- return __request(OpenAPI, {
234
- method: 'POST',
235
- url: '/superbills/{id}/void',
236
- path: {
237
- 'id': id,
238
- },
239
- body: requestBody,
240
- mediaType: 'application/json',
241
- });
242
- }
243
- /**
244
- * Process refund
245
- * Process a refund on a superbill payment
246
- * @returns any Response for status 200
247
- * @throws ApiError
248
- */
249
- static postSuperbillsByIdRefund({ id, requestBody, }) {
250
- return __request(OpenAPI, {
251
- method: 'POST',
252
- url: '/superbills/{id}/refund',
26
+ url: '/superbills/{id}',
253
27
  path: {
254
28
  'id': id,
255
29
  },
256
- body: requestBody,
257
- mediaType: 'application/json',
258
30
  });
259
31
  }
260
32
  /**
261
- * Set adjustment
262
- * Set an adjustment amount and reason on a superbill
33
+ * Create an insurance superbill from invoices (US-only)
263
34
  * @returns any Response for status 200
264
35
  * @throws ApiError
265
36
  */
266
- static postSuperbillsByIdAdjustment({ id, requestBody, }) {
37
+ static postSuperbillsFromInvoices({ requestBody, }) {
267
38
  return __request(OpenAPI, {
268
39
  method: 'POST',
269
- url: '/superbills/{id}/adjustment',
270
- path: {
271
- 'id': id,
272
- },
40
+ url: '/superbills/from-invoices',
273
41
  body: requestBody,
274
42
  mediaType: 'application/json',
275
43
  });