candidhealth 0.26.0 → 0.27.0

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 (92) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  5. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  6. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  7. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  8. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  9. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  10. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  11. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  12. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  13. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  14. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  15. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  16. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  17. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  18. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  19. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  20. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  21. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  22. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  23. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  24. package/api/resources/serviceFacility/client/Client.js +1 -1
  25. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  26. package/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  27. package/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  28. package/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  29. package/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  30. package/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  31. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  32. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  33. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  34. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  35. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  36. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  37. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  38. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  39. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  40. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  41. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  42. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  43. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  44. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  45. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  46. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  47. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  48. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  49. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  50. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  51. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  52. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  53. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  54. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  55. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  56. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  57. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  58. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  59. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +6 -6
  60. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +7 -7
  61. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  62. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +8 -18
  63. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +57 -20
  64. package/dist/api/resources/serviceLines/resources/v2/client/delete.d.ts +34 -0
  65. package/dist/api/resources/serviceLines/resources/v2/client/delete.js +69 -0
  66. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  67. package/dist/api/resources/serviceLines/resources/v2/client/index.js +2 -1
  68. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -9
  69. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -9
  70. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  71. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +5 -5
  72. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +5 -5
  73. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +6 -6
  74. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  75. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  76. package/dist/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  77. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  78. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  79. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  80. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  81. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  82. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
  83. package/package.json +1 -1
  84. package/reference.md +48 -18
  85. package/serialization/resources/serviceLines/resources/v2/client/delete.d.ts +20 -0
  86. package/serialization/resources/serviceLines/resources/v2/client/delete.js +67 -0
  87. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +1 -0
  88. package/serialization/resources/serviceLines/resources/v2/client/index.js +2 -1
  89. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +0 -10
  90. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +0 -10
  91. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +0 -10
  92. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +0 -10
@@ -121,7 +121,7 @@ class V1 {
121
121
  Authorization: yield this._getAuthorizationHeader(),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "candidhealth",
124
- "X-Fern-SDK-Version": "0.26.0",
124
+ "X-Fern-SDK-Version": "0.27.0",
125
125
  "X-Fern-Runtime": core.RUNTIME.type,
126
126
  "X-Fern-Runtime-Version": core.RUNTIME.version,
127
127
  },
@@ -184,7 +184,7 @@ class V1 {
184
184
  Authorization: yield this._getAuthorizationHeader(),
185
185
  "X-Fern-Language": "JavaScript",
186
186
  "X-Fern-SDK-Name": "candidhealth",
187
- "X-Fern-SDK-Version": "0.26.0",
187
+ "X-Fern-SDK-Version": "0.27.0",
188
188
  "X-Fern-Runtime": core.RUNTIME.type,
189
189
  "X-Fern-Runtime-Version": core.RUNTIME.version,
190
190
  },
@@ -262,7 +262,7 @@ class V1 {
262
262
  Authorization: yield this._getAuthorizationHeader(),
263
263
  "X-Fern-Language": "JavaScript",
264
264
  "X-Fern-SDK-Name": "candidhealth",
265
- "X-Fern-SDK-Version": "0.26.0",
265
+ "X-Fern-SDK-Version": "0.27.0",
266
266
  "X-Fern-Runtime": core.RUNTIME.type,
267
267
  "X-Fern-Runtime-Version": core.RUNTIME.version,
268
268
  },
@@ -343,7 +343,7 @@ class V1 {
343
343
  Authorization: yield this._getAuthorizationHeader(),
344
344
  "X-Fern-Language": "JavaScript",
345
345
  "X-Fern-SDK-Name": "candidhealth",
346
- "X-Fern-SDK-Version": "0.26.0",
346
+ "X-Fern-SDK-Version": "0.27.0",
347
347
  "X-Fern-Runtime": core.RUNTIME.type,
348
348
  "X-Fern-Runtime-Version": core.RUNTIME.version,
349
349
  },
@@ -409,7 +409,7 @@ class V1 {
409
409
  Authorization: yield this._getAuthorizationHeader(),
410
410
  "X-Fern-Language": "JavaScript",
411
411
  "X-Fern-SDK-Name": "candidhealth",
412
- "X-Fern-SDK-Version": "0.26.0",
412
+ "X-Fern-SDK-Version": "0.27.0",
413
413
  "X-Fern-Runtime": core.RUNTIME.type,
414
414
  "X-Fern-Runtime-Version": core.RUNTIME.version,
415
415
  },
@@ -66,7 +66,7 @@ class V3 {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.26.0",
69
+ "X-Fern-SDK-Version": "0.27.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -126,7 +126,7 @@ class V3 {
126
126
  Authorization: yield this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.26.0",
129
+ "X-Fern-SDK-Version": "0.27.0",
130
130
  "X-Fern-Runtime": core.RUNTIME.type,
131
131
  "X-Fern-Runtime-Version": core.RUNTIME.version,
132
132
  },
@@ -89,7 +89,7 @@ class V1 {
89
89
  Authorization: yield this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.26.0",
92
+ "X-Fern-SDK-Version": "0.27.0",
93
93
  "X-Fern-Runtime": core.RUNTIME.type,
94
94
  "X-Fern-Runtime-Version": core.RUNTIME.version,
95
95
  },
@@ -162,7 +162,7 @@ class V1 {
162
162
  Authorization: yield this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.26.0",
165
+ "X-Fern-SDK-Version": "0.27.0",
166
166
  "X-Fern-Runtime": core.RUNTIME.type,
167
167
  "X-Fern-Runtime-Version": core.RUNTIME.version,
168
168
  },
@@ -227,7 +227,7 @@ class V1 {
227
227
  Authorization: yield this._getAuthorizationHeader(),
228
228
  "X-Fern-Language": "JavaScript",
229
229
  "X-Fern-SDK-Name": "candidhealth",
230
- "X-Fern-SDK-Version": "0.26.0",
230
+ "X-Fern-SDK-Version": "0.27.0",
231
231
  "X-Fern-Runtime": core.RUNTIME.type,
232
232
  "X-Fern-Runtime-Version": core.RUNTIME.version,
233
233
  },
@@ -274,7 +274,7 @@ class V1 {
274
274
  Authorization: yield this._getAuthorizationHeader(),
275
275
  "X-Fern-Language": "JavaScript",
276
276
  "X-Fern-SDK-Name": "candidhealth",
277
- "X-Fern-SDK-Version": "0.26.0",
277
+ "X-Fern-SDK-Version": "0.27.0",
278
278
  "X-Fern-Runtime": core.RUNTIME.type,
279
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
280
280
  },
@@ -342,7 +342,7 @@ class V1 {
342
342
  Authorization: yield this._getAuthorizationHeader(),
343
343
  "X-Fern-Language": "JavaScript",
344
344
  "X-Fern-SDK-Name": "candidhealth",
345
- "X-Fern-SDK-Version": "0.26.0",
345
+ "X-Fern-SDK-Version": "0.27.0",
346
346
  "X-Fern-Runtime": core.RUNTIME.type,
347
347
  "X-Fern-Runtime-Version": core.RUNTIME.version,
348
348
  },
@@ -395,7 +395,7 @@ class V1 {
395
395
  Authorization: yield this._getAuthorizationHeader(),
396
396
  "X-Fern-Language": "JavaScript",
397
397
  "X-Fern-SDK-Name": "candidhealth",
398
- "X-Fern-SDK-Version": "0.26.0",
398
+ "X-Fern-SDK-Version": "0.27.0",
399
399
  "X-Fern-Runtime": core.RUNTIME.type,
400
400
  "X-Fern-Runtime-Version": core.RUNTIME.version,
401
401
  },
@@ -105,7 +105,7 @@ class V1 {
105
105
  Authorization: yield this._getAuthorizationHeader(),
106
106
  "X-Fern-Language": "JavaScript",
107
107
  "X-Fern-SDK-Name": "candidhealth",
108
- "X-Fern-SDK-Version": "0.26.0",
108
+ "X-Fern-SDK-Version": "0.27.0",
109
109
  "X-Fern-Runtime": core.RUNTIME.type,
110
110
  "X-Fern-Runtime-Version": core.RUNTIME.version,
111
111
  },
@@ -169,7 +169,7 @@ class V1 {
169
169
  Authorization: yield this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.26.0",
172
+ "X-Fern-SDK-Version": "0.27.0",
173
173
  "X-Fern-Runtime": core.RUNTIME.type,
174
174
  "X-Fern-Runtime-Version": core.RUNTIME.version,
175
175
  },
@@ -230,7 +230,7 @@ class V1 {
230
230
  Authorization: yield this._getAuthorizationHeader(),
231
231
  "X-Fern-Language": "JavaScript",
232
232
  "X-Fern-SDK-Name": "candidhealth",
233
- "X-Fern-SDK-Version": "0.26.0",
233
+ "X-Fern-SDK-Version": "0.27.0",
234
234
  "X-Fern-Runtime": core.RUNTIME.type,
235
235
  "X-Fern-Runtime-Version": core.RUNTIME.version,
236
236
  },
@@ -330,7 +330,7 @@ class V1 {
330
330
  Authorization: yield this._getAuthorizationHeader(),
331
331
  "X-Fern-Language": "JavaScript",
332
332
  "X-Fern-SDK-Name": "candidhealth",
333
- "X-Fern-SDK-Version": "0.26.0",
333
+ "X-Fern-SDK-Version": "0.27.0",
334
334
  "X-Fern-Runtime": core.RUNTIME.type,
335
335
  "X-Fern-Runtime-Version": core.RUNTIME.version,
336
336
  },
@@ -396,7 +396,7 @@ class V1 {
396
396
  Authorization: yield this._getAuthorizationHeader(),
397
397
  "X-Fern-Language": "JavaScript",
398
398
  "X-Fern-SDK-Name": "candidhealth",
399
- "X-Fern-SDK-Version": "0.26.0",
399
+ "X-Fern-SDK-Version": "0.27.0",
400
400
  "X-Fern-Runtime": core.RUNTIME.type,
401
401
  "X-Fern-Runtime-Version": core.RUNTIME.version,
402
402
  },
@@ -460,7 +460,7 @@ class V1 {
460
460
  Authorization: yield this._getAuthorizationHeader(),
461
461
  "X-Fern-Language": "JavaScript",
462
462
  "X-Fern-SDK-Name": "candidhealth",
463
- "X-Fern-SDK-Version": "0.26.0",
463
+ "X-Fern-SDK-Version": "0.27.0",
464
464
  "X-Fern-Runtime": core.RUNTIME.type,
465
465
  "X-Fern-Runtime-Version": core.RUNTIME.version,
466
466
  },
@@ -513,7 +513,7 @@ class V1 {
513
513
  Authorization: yield this._getAuthorizationHeader(),
514
514
  "X-Fern-Language": "JavaScript",
515
515
  "X-Fern-SDK-Name": "candidhealth",
516
- "X-Fern-SDK-Version": "0.26.0",
516
+ "X-Fern-SDK-Version": "0.27.0",
517
517
  "X-Fern-Runtime": core.RUNTIME.type,
518
518
  "X-Fern-Runtime-Version": core.RUNTIME.version,
519
519
  },
@@ -78,7 +78,7 @@ class ServiceFacility {
78
78
  Authorization: yield this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "candidhealth",
81
- "X-Fern-SDK-Version": "0.26.0",
81
+ "X-Fern-SDK-Version": "0.27.0",
82
82
  "X-Fern-Runtime": core.RUNTIME.type,
83
83
  "X-Fern-Runtime-Version": core.RUNTIME.version,
84
84
  },
@@ -29,21 +29,12 @@ export declare class V2 {
29
29
  * await client.serviceLines.v2.create({
30
30
  * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
31
31
  * chargeAmountCents: 1,
32
- * allowedAmountCents: 1,
33
- * insuranceBalanceCents: 1,
34
- * patientBalanceCents: 1,
35
- * primaryPaidAmountCents: 1,
36
- * secondaryPaidAmountCents: 1,
37
- * tertiaryPaidAmountCents: 1,
38
- * patientResponsibilityCents: 1,
39
32
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
40
33
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
41
34
  * diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
42
35
  * diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
43
- * serviceLineManualAdjustments: [{}],
44
36
  * denialReason: {},
45
37
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
46
- * placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
47
38
  * procedureCode: "string",
48
39
  * quantity: CandidApi.Decimal("string"),
49
40
  * units: CandidApi.ServiceLineUnits.Mj,
@@ -64,21 +55,12 @@ export declare class V2 {
64
55
  * editReason: "string",
65
56
  * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
66
57
  * chargeAmountCents: 1,
67
- * allowedAmountCents: 1,
68
- * insuranceBalanceCents: 1,
69
- * patientBalanceCents: 1,
70
- * primaryPaidAmountCents: 1,
71
- * secondaryPaidAmountCents: 1,
72
- * tertiaryPaidAmountCents: 1,
73
- * patientResponsibilityCents: 1,
74
58
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
75
59
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
76
60
  * diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
77
61
  * diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
78
- * serviceLineManualAdjustments: [{}],
79
62
  * denialReason: {},
80
63
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
81
- * placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
82
64
  * units: CandidApi.ServiceLineUnits.Mj,
83
65
  * procedureCode: "string",
84
66
  * quantity: CandidApi.Decimal("string"),
@@ -88,5 +70,13 @@ export declare class V2 {
88
70
  * })
89
71
  */
90
72
  update(serviceLineId: CandidApi.ServiceLineId, request: CandidApi.serviceLines.v2.ServiceLineUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.serviceLines.v2.ServiceLine, CandidApi.serviceLines.v2.update.Error>>;
73
+ /**
74
+ * @param {CandidApi.ServiceLineId} serviceLineId
75
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @example
78
+ * await client.serviceLines.v2.delete(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
79
+ */
80
+ delete(serviceLineId: CandidApi.ServiceLineId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.serviceLines.v2.delete.Error>>;
91
81
  protected _getAuthorizationHeader(): Promise<string | undefined>;
92
82
  }
@@ -56,21 +56,12 @@ class V2 {
56
56
  * await client.serviceLines.v2.create({
57
57
  * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
58
58
  * chargeAmountCents: 1,
59
- * allowedAmountCents: 1,
60
- * insuranceBalanceCents: 1,
61
- * patientBalanceCents: 1,
62
- * primaryPaidAmountCents: 1,
63
- * secondaryPaidAmountCents: 1,
64
- * tertiaryPaidAmountCents: 1,
65
- * patientResponsibilityCents: 1,
66
59
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
67
60
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
68
61
  * diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
69
62
  * diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
70
- * serviceLineManualAdjustments: [{}],
71
63
  * denialReason: {},
72
64
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
73
- * placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
74
65
  * procedureCode: "string",
75
66
  * quantity: CandidApi.Decimal("string"),
76
67
  * units: CandidApi.ServiceLineUnits.Mj,
@@ -91,7 +82,7 @@ class V2 {
91
82
  Authorization: yield this._getAuthorizationHeader(),
92
83
  "X-Fern-Language": "JavaScript",
93
84
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "0.26.0",
85
+ "X-Fern-SDK-Version": "0.27.0",
95
86
  "X-Fern-Runtime": core.RUNTIME.type,
96
87
  "X-Fern-Runtime-Version": core.RUNTIME.version,
97
88
  },
@@ -145,21 +136,12 @@ class V2 {
145
136
  * editReason: "string",
146
137
  * modifiers: [CandidApi.ProcedureModifier.TwentyTwo],
147
138
  * chargeAmountCents: 1,
148
- * allowedAmountCents: 1,
149
- * insuranceBalanceCents: 1,
150
- * patientBalanceCents: 1,
151
- * primaryPaidAmountCents: 1,
152
- * secondaryPaidAmountCents: 1,
153
- * tertiaryPaidAmountCents: 1,
154
- * patientResponsibilityCents: 1,
155
139
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
156
140
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
157
141
  * diagnosisIdTwo: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
158
142
  * diagnosisIdThree: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
159
- * serviceLineManualAdjustments: [{}],
160
143
  * denialReason: {},
161
144
  * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
162
- * placeOfServiceCodeAsSubmitted: CandidApi.FacilityTypeCode.Pharmacy,
163
145
  * units: CandidApi.ServiceLineUnits.Mj,
164
146
  * procedureCode: "string",
165
147
  * quantity: CandidApi.Decimal("string"),
@@ -179,7 +161,7 @@ class V2 {
179
161
  Authorization: yield this._getAuthorizationHeader(),
180
162
  "X-Fern-Language": "JavaScript",
181
163
  "X-Fern-SDK-Name": "candidhealth",
182
- "X-Fern-SDK-Version": "0.26.0",
164
+ "X-Fern-SDK-Version": "0.27.0",
183
165
  "X-Fern-Runtime": core.RUNTIME.type,
184
166
  "X-Fern-Runtime-Version": core.RUNTIME.version,
185
167
  },
@@ -225,6 +207,61 @@ class V2 {
225
207
  };
226
208
  });
227
209
  }
210
+ /**
211
+ * @param {CandidApi.ServiceLineId} serviceLineId
212
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
213
+ *
214
+ * @example
215
+ * await client.serviceLines.v2.delete(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
216
+ */
217
+ delete(serviceLineId, requestOptions) {
218
+ var _a, _b;
219
+ return __awaiter(this, void 0, void 0, function* () {
220
+ const _response = yield core.fetcher({
221
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
222
+ .candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
223
+ method: "DELETE",
224
+ headers: {
225
+ Authorization: yield this._getAuthorizationHeader(),
226
+ "X-Fern-Language": "JavaScript",
227
+ "X-Fern-SDK-Name": "candidhealth",
228
+ "X-Fern-SDK-Version": "0.27.0",
229
+ "X-Fern-Runtime": core.RUNTIME.type,
230
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
231
+ },
232
+ contentType: "application/json",
233
+ requestType: "json",
234
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
235
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
236
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
237
+ });
238
+ if (_response.ok) {
239
+ return {
240
+ ok: true,
241
+ body: undefined,
242
+ };
243
+ }
244
+ if (_response.error.reason === "status-code") {
245
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
246
+ case "EntityNotFoundError":
247
+ case "UnauthorizedError":
248
+ return {
249
+ ok: false,
250
+ error: serializers.serviceLines.v2.delete.Error.parseOrThrow(_response.error.body, {
251
+ unrecognizedObjectKeys: "passthrough",
252
+ allowUnrecognizedUnionMembers: true,
253
+ allowUnrecognizedEnumValues: true,
254
+ breadcrumbsPrefix: ["response"],
255
+ }),
256
+ };
257
+ }
258
+ }
259
+ return {
260
+ ok: false,
261
+ error: CandidApi.serviceLines.v2.delete.Error._unknown(_response.error),
262
+ };
263
+ });
264
+ }
228
265
  _getAuthorizationHeader() {
229
266
  return __awaiter(this, void 0, void 0, function* () {
230
267
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.serviceLines.v2.delete.Error.EntityNotFoundError | CandidApi.serviceLines.v2.delete.Error.UnauthorizedError | CandidApi.serviceLines.v2.delete.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.serviceLines.v2.delete.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.serviceLines.v2.delete.Error.EntityNotFoundError;
31
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.serviceLines.v2.delete.Error.UnauthorizedError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.serviceLines.v2.delete.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.serviceLines.v2.delete.Error, visitor: CandidApi.serviceLines.v2.delete.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../index"));
31
+ exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.serviceLines.v2.delete.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ unauthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "UnauthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.serviceLines.v2.delete.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _unknown: (fetcherError) => {
51
+ return {
52
+ errorName: undefined,
53
+ content: fetcherError,
54
+ _visit: function (visitor) {
55
+ return CandidApi.serviceLines.v2.delete.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ _visit: (value, visitor) => {
60
+ switch (value.errorName) {
61
+ case "EntityNotFoundError":
62
+ return visitor.entityNotFoundError(value.content);
63
+ case "UnauthorizedError":
64
+ return visitor.unauthorizedError(value.content);
65
+ default:
66
+ return visitor._other(value);
67
+ }
68
+ },
69
+ };
@@ -1,2 +1,3 @@
1
1
  export * as create from "./create";
2
2
  export * as update from "./update";
3
+ export * as delete from "./delete";
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.update = exports.create = void 0;
26
+ exports.delete = exports.update = exports.create = void 0;
27
27
  exports.create = __importStar(require("./create"));
28
28
  exports.update = __importStar(require("./update"));
29
+ exports.delete = __importStar(require("./delete"));
@@ -5,21 +5,12 @@ import * as CandidApi from "../../../../../index";
5
5
  export interface ServiceLineCreateStandalone {
6
6
  modifiers?: CandidApi.ProcedureModifier[];
7
7
  chargeAmountCents?: number;
8
- allowedAmountCents?: number;
9
- insuranceBalanceCents?: number;
10
- patientBalanceCents?: number;
11
- primaryPaidAmountCents?: number;
12
- secondaryPaidAmountCents?: number;
13
- tertiaryPaidAmountCents?: number;
14
- patientResponsibilityCents?: number;
15
8
  diagnosisIdZero?: CandidApi.DiagnosisId;
16
9
  diagnosisIdOne?: CandidApi.DiagnosisId;
17
10
  diagnosisIdTwo?: CandidApi.DiagnosisId;
18
11
  diagnosisIdThree?: CandidApi.DiagnosisId;
19
- serviceLineManualAdjustments?: CandidApi.serviceLines.v2.ServiceLineAdjustment[];
20
12
  denialReason?: CandidApi.serviceLines.v2.ServiceLineDenialReason;
21
13
  placeOfServiceCode?: CandidApi.FacilityTypeCode;
22
- placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
23
14
  procedureCode: string;
24
15
  /**
25
16
  * String representation of a Decimal that can be parsed by most libraries.
@@ -6,21 +6,12 @@ export interface ServiceLineUpdate {
6
6
  editReason?: string;
7
7
  modifiers?: CandidApi.ProcedureModifier[];
8
8
  chargeAmountCents?: number;
9
- allowedAmountCents?: number;
10
- insuranceBalanceCents?: number;
11
- patientBalanceCents?: number;
12
- primaryPaidAmountCents?: number;
13
- secondaryPaidAmountCents?: number;
14
- tertiaryPaidAmountCents?: number;
15
- patientResponsibilityCents?: number;
16
9
  diagnosisIdZero?: CandidApi.DiagnosisId;
17
10
  diagnosisIdOne?: CandidApi.DiagnosisId;
18
11
  diagnosisIdTwo?: CandidApi.DiagnosisId;
19
12
  diagnosisIdThree?: CandidApi.DiagnosisId;
20
- serviceLineManualAdjustments?: CandidApi.serviceLines.v2.ServiceLineAdjustment[];
21
13
  denialReason?: CandidApi.serviceLines.v2.ServiceLineDenialReason;
22
14
  placeOfServiceCode?: CandidApi.FacilityTypeCode;
23
- placeOfServiceCodeAsSubmitted?: CandidApi.FacilityTypeCode;
24
15
  units?: CandidApi.ServiceLineUnits;
25
16
  procedureCode?: string;
26
17
  /**
@@ -66,7 +66,7 @@ class V3 {
66
66
  Authorization: yield this._getAuthorizationHeader(),
67
67
  "X-Fern-Language": "JavaScript",
68
68
  "X-Fern-SDK-Name": "candidhealth",
69
- "X-Fern-SDK-Version": "0.26.0",
69
+ "X-Fern-SDK-Version": "0.27.0",
70
70
  "X-Fern-Runtime": core.RUNTIME.type,
71
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
72
72
  },
@@ -166,7 +166,7 @@ class V3 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.26.0",
169
+ "X-Fern-SDK-Version": "0.27.0",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -226,7 +226,7 @@ class V3 {
226
226
  Authorization: yield this._getAuthorizationHeader(),
227
227
  "X-Fern-Language": "JavaScript",
228
228
  "X-Fern-SDK-Name": "candidhealth",
229
- "X-Fern-SDK-Version": "0.26.0",
229
+ "X-Fern-SDK-Version": "0.27.0",
230
230
  "X-Fern-Runtime": core.RUNTIME.type,
231
231
  "X-Fern-Runtime-Version": core.RUNTIME.version,
232
232
  },
@@ -294,7 +294,7 @@ class V3 {
294
294
  Authorization: yield this._getAuthorizationHeader(),
295
295
  "X-Fern-Language": "JavaScript",
296
296
  "X-Fern-SDK-Name": "candidhealth",
297
- "X-Fern-SDK-Version": "0.26.0",
297
+ "X-Fern-SDK-Version": "0.27.0",
298
298
  "X-Fern-Runtime": core.RUNTIME.type,
299
299
  "X-Fern-Runtime-Version": core.RUNTIME.version,
300
300
  },
@@ -345,7 +345,7 @@ class V3 {
345
345
  Authorization: yield this._getAuthorizationHeader(),
346
346
  "X-Fern-Language": "JavaScript",
347
347
  "X-Fern-SDK-Name": "candidhealth",
348
- "X-Fern-SDK-Version": "0.26.0",
348
+ "X-Fern-SDK-Version": "0.27.0",
349
349
  "X-Fern-Runtime": core.RUNTIME.type,
350
350
  "X-Fern-Runtime-Version": core.RUNTIME.version,
351
351
  },
@@ -104,7 +104,7 @@ class V1 {
104
104
  Authorization: yield this._getAuthorizationHeader(),
105
105
  "X-Fern-Language": "JavaScript",
106
106
  "X-Fern-SDK-Name": "candidhealth",
107
- "X-Fern-SDK-Version": "0.26.0",
107
+ "X-Fern-SDK-Version": "0.27.0",
108
108
  "X-Fern-Runtime": core.RUNTIME.type,
109
109
  "X-Fern-Runtime-Version": core.RUNTIME.version,
110
110
  },
@@ -166,7 +166,7 @@ class V1 {
166
166
  Authorization: yield this._getAuthorizationHeader(),
167
167
  "X-Fern-Language": "JavaScript",
168
168
  "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.26.0",
169
+ "X-Fern-SDK-Version": "0.27.0",
170
170
  "X-Fern-Runtime": core.RUNTIME.type,
171
171
  "X-Fern-Runtime-Version": core.RUNTIME.version,
172
172
  },
@@ -233,7 +233,7 @@ class V1 {
233
233
  Authorization: yield this._getAuthorizationHeader(),
234
234
  "X-Fern-Language": "JavaScript",
235
235
  "X-Fern-SDK-Name": "candidhealth",
236
- "X-Fern-SDK-Version": "0.26.0",
236
+ "X-Fern-SDK-Version": "0.27.0",
237
237
  "X-Fern-Runtime": core.RUNTIME.type,
238
238
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
239
  },
@@ -307,7 +307,7 @@ class V1 {
307
307
  Authorization: yield this._getAuthorizationHeader(),
308
308
  "X-Fern-Language": "JavaScript",
309
309
  "X-Fern-SDK-Name": "candidhealth",
310
- "X-Fern-SDK-Version": "0.26.0",
310
+ "X-Fern-SDK-Version": "0.27.0",
311
311
  "X-Fern-Runtime": core.RUNTIME.type,
312
312
  "X-Fern-Runtime-Version": core.RUNTIME.version,
313
313
  },
@@ -372,7 +372,7 @@ class V1 {
372
372
  Authorization: yield this._getAuthorizationHeader(),
373
373
  "X-Fern-Language": "JavaScript",
374
374
  "X-Fern-SDK-Name": "candidhealth",
375
- "X-Fern-SDK-Version": "0.26.0",
375
+ "X-Fern-SDK-Version": "0.27.0",
376
376
  "X-Fern-Runtime": core.RUNTIME.type,
377
377
  "X-Fern-Runtime-Version": core.RUNTIME.version,
378
378
  },