candidhealth 0.40.4 → 0.41.1

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 (184) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  5. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  6. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  7. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  8. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  9. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  10. package/{serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +37 -29
  11. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  12. package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  13. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  14. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  20. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  23. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  24. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  25. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  26. package/api/resources/diagnoses/client/Client.js +3 -3
  27. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  28. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  29. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  30. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  31. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  32. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  33. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  35. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  36. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  37. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  38. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  39. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  40. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  41. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  42. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  43. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  44. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  45. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  46. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  47. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  48. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  49. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  50. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  51. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  52. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  53. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  54. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  55. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  56. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  57. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  58. package/api/resources/serviceFacility/client/Client.js +1 -1
  59. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  60. package/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  61. package/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  62. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  63. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  64. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  65. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  66. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  67. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  68. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  69. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  70. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  71. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +5 -0
  72. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  73. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  74. package/{serialization/resources/chargeCaptureBundles/resources/v1/client/get.js → dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +37 -29
  75. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  76. package/dist/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  77. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +5 -0
  78. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  79. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  80. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  81. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  82. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  86. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  87. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  88. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  89. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  90. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  91. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  92. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  93. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  94. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  95. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  96. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  97. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  98. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  99. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  100. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  101. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  102. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  103. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  104. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  105. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  106. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  107. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  108. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  109. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  110. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  111. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  112. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  113. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  114. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  115. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  116. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  117. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  118. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  119. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  120. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  122. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  123. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  124. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  125. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  126. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  127. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  128. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  129. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  130. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  131. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  132. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  133. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  134. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  135. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  136. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/client/get.js → chargeCapture/resources/v1/client/updatePostBilledChange.js} +11 -5
  137. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +4 -0
  138. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +4 -0
  139. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  140. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  141. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  142. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  143. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  144. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  145. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  146. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  147. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  148. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  149. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  150. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +61 -0
  155. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  156. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  157. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  158. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  159. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  160. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  161. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  162. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js} +11 -5
  163. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +4 -0
  164. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +4 -0
  165. package/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  166. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  167. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  168. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  169. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  170. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  171. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  172. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  173. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  174. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  175. package/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  176. package/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  177. package/version.d.ts +1 -1
  178. package/version.js +1 -1
  179. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  180. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  181. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  182. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  183. /package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js} +0 -0
  184. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +0 -0
@@ -92,7 +92,7 @@ class V2 {
92
92
  const _response = yield core.fetcher({
93
93
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/token"),
94
94
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -74,7 +74,7 @@ class V2 {
74
74
  const _response = yield core.fetcher({
75
75
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/billing_notes/v2"),
76
76
  method: "POST",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class V2 {
114
114
  const _response = yield core.fetcher({
115
115
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
116
116
  method: "DELETE",
117
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
118
  contentType: "application/json",
119
119
  requestType: "json",
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -165,7 +165,7 @@ class V2 {
165
165
  const _response = yield core.fetcher({
166
166
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
167
167
  method: "PATCH",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
@@ -91,5 +91,16 @@ export declare class V1 {
91
91
  * })
92
92
  */
93
93
  getAll(request?: CandidApi.chargeCapture.v1.GetAllChargeCapturesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapturePage, CandidApi.chargeCapture.v1.getAll.Error>>;
94
+ /**
95
+ * @param {CandidApi.ChargeCapturePostBilledChangeId} chargeCaptureChangeId
96
+ * @param {CandidApi.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate} request
97
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
98
+ *
99
+ * @example
100
+ * await client.chargeCapture.v1.updatePostBilledChange(CandidApi.ChargeCapturePostBilledChangeId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
101
+ * resolved: true
102
+ * })
103
+ */
104
+ updatePostBilledChange(chargeCaptureChangeId: CandidApi.ChargeCapturePostBilledChangeId, request: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange, CandidApi.chargeCapture.v1.updatePostBilledChange.Error>>;
94
105
  protected _getAuthorizationHeader(): Promise<string | undefined>;
95
106
  }
@@ -78,7 +78,7 @@ class V1 {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
80
80
  method: "POST",
81
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
@@ -136,7 +136,7 @@ class V1 {
136
136
  const _response = yield core.fetcher({
137
137
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
138
138
  method: "DELETE",
139
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
139
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
140
140
  contentType: "application/json",
141
141
  requestType: "json",
142
142
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -191,7 +191,7 @@ class V1 {
191
191
  const _response = yield core.fetcher({
192
192
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
193
193
  method: "PATCH",
194
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
194
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
@@ -249,7 +249,7 @@ class V1 {
249
249
  const _response = yield core.fetcher({
250
250
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
251
251
  method: "GET",
252
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
252
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
253
  contentType: "application/json",
254
254
  requestType: "json",
255
255
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -335,7 +335,7 @@ class V1 {
335
335
  const _response = yield core.fetcher({
336
336
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_captures/v1"),
337
337
  method: "GET",
338
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
338
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
339
  contentType: "application/json",
340
340
  queryParameters: _queryParams,
341
341
  requestType: "json",
@@ -360,6 +360,64 @@ class V1 {
360
360
  };
361
361
  });
362
362
  }
363
+ /**
364
+ * @param {CandidApi.ChargeCapturePostBilledChangeId} chargeCaptureChangeId
365
+ * @param {CandidApi.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate} request
366
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
367
+ *
368
+ * @example
369
+ * await client.chargeCapture.v1.updatePostBilledChange(CandidApi.ChargeCapturePostBilledChangeId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
370
+ * resolved: true
371
+ * })
372
+ */
373
+ updatePostBilledChange(chargeCaptureChangeId, request, requestOptions) {
374
+ return __awaiter(this, void 0, void 0, function* () {
375
+ var _a, _b, _c;
376
+ const _response = yield core.fetcher({
377
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_captures/v1/changes/${encodeURIComponent(serializers.ChargeCapturePostBilledChangeId.jsonOrThrow(chargeCaptureChangeId))}`),
378
+ method: "PATCH",
379
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
+ contentType: "application/json",
381
+ requestType: "json",
382
+ body: serializers.chargeCapture.v1.ChargeCapturePostBilledChangeUpdate.jsonOrThrow(request, {
383
+ unrecognizedObjectKeys: "strip",
384
+ }),
385
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
386
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
387
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
388
+ });
389
+ if (_response.ok) {
390
+ return {
391
+ ok: true,
392
+ body: serializers.chargeCapture.v1.ChargeCapturePostBilledChange.parseOrThrow(_response.body, {
393
+ unrecognizedObjectKeys: "passthrough",
394
+ allowUnrecognizedUnionMembers: true,
395
+ allowUnrecognizedEnumValues: true,
396
+ breadcrumbsPrefix: ["response"],
397
+ }),
398
+ };
399
+ }
400
+ if (_response.error.reason === "status-code") {
401
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
402
+ case "EntityNotFoundError":
403
+ case "UnauthorizedError":
404
+ return {
405
+ ok: false,
406
+ error: serializers.chargeCapture.v1.updatePostBilledChange.Error.parseOrThrow(_response.error.body, {
407
+ unrecognizedObjectKeys: "passthrough",
408
+ allowUnrecognizedUnionMembers: true,
409
+ allowUnrecognizedEnumValues: true,
410
+ breadcrumbsPrefix: ["response"],
411
+ }),
412
+ };
413
+ }
414
+ }
415
+ return {
416
+ ok: false,
417
+ error: CandidApi.chargeCapture.v1.updatePostBilledChange.Error._unknown(_response.error),
418
+ };
419
+ });
420
+ }
363
421
  _getAuthorizationHeader() {
364
422
  return __awaiter(this, void 0, void 0, function* () {
365
423
  const bearer = yield core.Supplier.get(this._options.token);
@@ -4,3 +4,4 @@ export * as delete from "./delete";
4
4
  export * as update from "./update";
5
5
  export * as get from "./get";
6
6
  export * as getAll from "./getAll";
7
+ export * as updatePostBilledChange from "./updatePostBilledChange";
@@ -36,10 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getAll = exports.get = exports.update = exports.delete = exports.create = void 0;
39
+ exports.updatePostBilledChange = exports.getAll = exports.get = exports.update = exports.delete = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
42
  exports.delete = __importStar(require("./delete"));
43
43
  exports.update = __importStar(require("./update"));
44
44
  exports.get = __importStar(require("./get"));
45
45
  exports.getAll = __importStar(require("./getAll"));
46
+ exports.updatePostBilledChange = __importStar(require("./updatePostBilledChange"));
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * resolved: true
8
+ * }
9
+ */
10
+ export interface ChargeCapturePostBilledChangeUpdate {
11
+ /**
12
+ * Whether the change has been resolved. If true, the change will be marked as resolved.
13
+ * If false, the change will be marked as unresolved.
14
+ *
15
+ */
16
+ resolved: boolean;
17
+ }
@@ -1,3 +1,4 @@
1
1
  export { type CreateChargeCaptureRequest } from "./CreateChargeCaptureRequest";
2
2
  export { type ChargeCaptureUpdate } from "./ChargeCaptureUpdate";
3
3
  export { type GetAllChargeCapturesRequest } from "./GetAllChargeCapturesRequest";
4
+ export { type ChargeCapturePostBilledChangeUpdate } from "./ChargeCapturePostBilledChangeUpdate";
@@ -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 type Error = CandidApi.chargeCapture.v1.updatePostBilledChange.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.updatePostBilledChange.Error.UnauthorizedError | CandidApi.chargeCapture.v1.updatePostBilledChange.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.chargeCapture.v1.updatePostBilledChange.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.chargeCapture.v1.updatePostBilledChange.Error.EntityNotFoundError;
31
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.chargeCapture.v1.updatePostBilledChange.Error.UnauthorizedError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.updatePostBilledChange.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.updatePostBilledChange.Error, visitor: CandidApi.chargeCapture.v1.updatePostBilledChange.Error._Visitor<_Result>) => _Result;
34
+ };
@@ -35,37 +35,45 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  return result;
36
36
  };
37
37
  })();
38
- var __rest = (this && this.__rest) || function (s, e) {
39
- var t = {};
40
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
41
- t[p] = s[p];
42
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
43
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
44
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
45
- t[p[i]] = s[p[i]];
46
- }
47
- return t;
48
- };
49
38
  Object.defineProperty(exports, "__esModule", { value: true });
50
39
  exports.Error = void 0;
51
- const CandidApi = __importStar(require("../../../../../../api/index"));
52
- const core = __importStar(require("../../../../../../core"));
53
- const NotImplementedErrorMessage_1 = require("../../../../commons/types/NotImplementedErrorMessage");
54
- exports.Error = core.serialization
55
- .union("errorName", {
56
- NotImplementedError: core.serialization.object({
57
- content: NotImplementedErrorMessage_1.NotImplementedErrorMessage,
58
- }),
59
- })
60
- .transform({
61
- transform: (value) => {
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ entityNotFoundError: (value) => {
43
+ return {
44
+ content: value,
45
+ errorName: "EntityNotFoundError",
46
+ _visit: function (visitor) {
47
+ return CandidApi.chargeCapture.v1.updatePostBilledChange.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ unauthorizedError: (value) => {
52
+ return {
53
+ content: value,
54
+ errorName: "UnauthorizedError",
55
+ _visit: function (visitor) {
56
+ return CandidApi.chargeCapture.v1.updatePostBilledChange.Error._visit(this, visitor);
57
+ },
58
+ };
59
+ },
60
+ _unknown: (fetcherError) => {
61
+ return {
62
+ errorName: undefined,
63
+ content: fetcherError,
64
+ _visit: function (visitor) {
65
+ return CandidApi.chargeCapture.v1.updatePostBilledChange.Error._visit(this, visitor);
66
+ },
67
+ };
68
+ },
69
+ _visit: (value, visitor) => {
62
70
  switch (value.errorName) {
63
- case "NotImplementedError":
64
- return CandidApi.chargeCaptureBundles.v1.getAll.Error.notImplementedError(value.content);
71
+ case "EntityNotFoundError":
72
+ return visitor.entityNotFoundError(value.content);
73
+ case "UnauthorizedError":
74
+ return visitor.unauthorizedError(value.content);
75
+ default:
76
+ return visitor._other(value);
65
77
  }
66
78
  },
67
- untransform: (_a) => {
68
- var { _visit } = _a, value = __rest(_a, ["_visit"]);
69
- return value;
70
- },
71
- });
79
+ };
@@ -14,5 +14,7 @@ export interface ChargeCapture {
14
14
  * This date must be the local date in the timezone where the service occurred.
15
15
  */
16
16
  dateOfService?: string;
17
+ error?: CandidApi.chargeCapture.v1.ChargeCaptureError;
17
18
  updates: CandidApi.chargeCapture.v1.ChargeCapturePostBilledChange[];
19
+ bundleId?: CandidApi.ChargeCaptureBundleId;
18
20
  }
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
- export interface ChargeBundleError {
5
+ export interface ChargeCaptureError {
6
6
  id: string;
7
7
  /**
8
8
  * The underlying Charge Capture that this error object references.
@@ -1,6 +1,7 @@
1
1
  export * from "./ChargeCapturePage";
2
2
  export * from "./ChargeCapture";
3
3
  export * from "./ChargeCaptureData";
4
+ export * from "./ChargeCaptureError";
4
5
  export * from "./ChargeCaptureSortField";
5
6
  export * from "./ChargeCaptureStatus";
6
7
  export * from "./ChargeCapturePostBilledChange";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ChargeCapturePage"), exports);
18
18
  __exportStar(require("./ChargeCapture"), exports);
19
19
  __exportStar(require("./ChargeCaptureData"), exports);
20
+ __exportStar(require("./ChargeCaptureError"), exports);
20
21
  __exportStar(require("./ChargeCaptureSortField"), exports);
21
22
  __exportStar(require("./ChargeCaptureStatus"), exports);
22
23
  __exportStar(require("./ChargeCapturePostBilledChange"), exports);
@@ -67,11 +67,11 @@ class V1 {
67
67
  */
68
68
  get(chargeCaptureBundleId, requestOptions) {
69
69
  return __awaiter(this, void 0, void 0, function* () {
70
- var _a, _b, _c;
70
+ var _a, _b;
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -89,20 +89,6 @@ class V1 {
89
89
  }),
90
90
  };
91
91
  }
92
- if (_response.error.reason === "status-code") {
93
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
94
- case "NotImplementedError":
95
- return {
96
- ok: false,
97
- error: serializers.chargeCaptureBundles.v1.get.Error.parseOrThrow(_response.error.body, {
98
- unrecognizedObjectKeys: "passthrough",
99
- allowUnrecognizedUnionMembers: true,
100
- allowUnrecognizedEnumValues: true,
101
- breadcrumbsPrefix: ["response"],
102
- }),
103
- };
104
- }
105
- }
106
92
  return {
107
93
  ok: false,
108
94
  error: CandidApi.chargeCaptureBundles.v1.get.Error._unknown(_response.error),
@@ -119,9 +105,9 @@ class V1 {
119
105
  return __awaiter(this, void 0, void 0, function* () {
120
106
  var _a, _b;
121
107
  const _response = yield core.fetcher({
122
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_capture_bundle/v1/summary"),
108
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_capture_bundle/v1/all/summary"),
123
109
  method: "GET",
124
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
125
111
  contentType: "application/json",
126
112
  requestType: "json",
127
113
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -158,7 +144,7 @@ class V1 {
158
144
  const _response = yield core.fetcher({
159
145
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
160
146
  method: "POST",
161
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
147
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
148
  contentType: "application/json",
163
149
  requestType: "json",
164
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +202,7 @@ class V1 {
216
202
  */
217
203
  getAll() {
218
204
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
219
- var _a, _b, _c;
205
+ var _a, _b;
220
206
  const { limit, sort, sortDirection, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService, hasChargeCaptureUpdates, } = request;
221
207
  const _queryParams = {};
222
208
  if (limit != null) {
@@ -258,7 +244,7 @@ class V1 {
258
244
  const _response = yield core.fetcher({
259
245
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/charge_capture_bundle/v1"),
260
246
  method: "GET",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
247
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.1", "User-Agent": "candidhealth/0.41.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
248
  contentType: "application/json",
263
249
  queryParameters: _queryParams,
264
250
  requestType: "json",
@@ -277,20 +263,6 @@ class V1 {
277
263
  }),
278
264
  };
279
265
  }
280
- if (_response.error.reason === "status-code") {
281
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
282
- case "NotImplementedError":
283
- return {
284
- ok: false,
285
- error: serializers.chargeCaptureBundles.v1.getAll.Error.parseOrThrow(_response.error.body, {
286
- unrecognizedObjectKeys: "passthrough",
287
- allowUnrecognizedUnionMembers: true,
288
- allowUnrecognizedEnumValues: true,
289
- breadcrumbsPrefix: ["response"],
290
- }),
291
- };
292
- }
293
- }
294
266
  return {
295
267
  ok: false,
296
268
  error: CandidApi.chargeCaptureBundles.v1.getAll.Error._unknown(_response.error),
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
6
+ export type Error = CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
7
7
  export declare namespace Error {
8
- interface NotImplementedError extends _Utils {
9
- errorName: "NotImplementedError";
10
- content: CandidApi.NotImplementedErrorMessage;
11
- }
12
8
  interface _Unknown extends _Utils {
13
9
  errorName: void;
14
10
  content: core.Fetcher.Error;
@@ -17,12 +13,10 @@ export declare namespace Error {
17
13
  _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
18
14
  }
19
15
  interface _Visitor<_Result> {
20
- notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
16
  _other: (value: core.Fetcher.Error) => _Result;
22
17
  }
23
18
  }
24
19
  export declare const Error: {
25
- readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError;
26
20
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
27
21
  readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.get.Error, visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
28
22
  };
@@ -39,15 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Error = void 0;
40
40
  const CandidApi = __importStar(require("../../../../../index"));
41
41
  exports.Error = {
42
- notImplementedError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "NotImplementedError",
46
- _visit: function (visitor) {
47
- return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
42
  _unknown: (fetcherError) => {
52
43
  return {
53
44
  errorName: undefined,
@@ -59,8 +50,6 @@ exports.Error = {
59
50
  },
60
51
  _visit: (value, visitor) => {
61
52
  switch (value.errorName) {
62
- case "NotImplementedError":
63
- return visitor.notImplementedError(value.content);
64
53
  default:
65
54
  return visitor._other(value);
66
55
  }
@@ -3,12 +3,8 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
5
  import * as core from "../../../../../../core";
6
- export type Error = CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
6
+ export type Error = CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
7
7
  export declare namespace Error {
8
- interface NotImplementedError extends _Utils {
9
- errorName: "NotImplementedError";
10
- content: CandidApi.NotImplementedErrorMessage;
11
- }
12
8
  interface _Unknown extends _Utils {
13
9
  errorName: void;
14
10
  content: core.Fetcher.Error;
@@ -17,12 +13,10 @@ export declare namespace Error {
17
13
  _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
18
14
  }
19
15
  interface _Visitor<_Result> {
20
- notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
16
  _other: (value: core.Fetcher.Error) => _Result;
22
17
  }
23
18
  }
24
19
  export declare const Error: {
25
- readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError;
26
20
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
27
21
  readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.getAll.Error, visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
28
22
  };
@@ -39,15 +39,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.Error = void 0;
40
40
  const CandidApi = __importStar(require("../../../../../index"));
41
41
  exports.Error = {
42
- notImplementedError: (value) => {
43
- return {
44
- content: value,
45
- errorName: "NotImplementedError",
46
- _visit: function (visitor) {
47
- return CandidApi.chargeCaptureBundles.v1.getAll.Error._visit(this, visitor);
48
- },
49
- };
50
- },
51
42
  _unknown: (fetcherError) => {
52
43
  return {
53
44
  errorName: undefined,
@@ -59,8 +50,6 @@ exports.Error = {
59
50
  },
60
51
  _visit: (value, visitor) => {
61
52
  switch (value.errorName) {
62
- case "NotImplementedError":
63
- return visitor.notImplementedError(value.content);
64
53
  default:
65
54
  return visitor._other(value);
66
55
  }
@@ -13,5 +13,5 @@ export interface ChargeCaptureBundle {
13
13
  * All errors that were found when the bundle was attempted to be created.
14
14
  * Errors can correspond to the Bundle as a whole or specific underlying Charge Captures.
15
15
  */
16
- errors: CandidApi.chargeCaptureBundles.v1.ChargeBundleError[];
16
+ errors: CandidApi.chargeCapture.v1.ChargeCaptureError[];
17
17
  }
@@ -1,6 +1,5 @@
1
1
  export * from "./ChargeCaptureBundlePage";
2
2
  export * from "./ChargeCaptureBundle";
3
3
  export * from "./ChargeCaptureBundleSummary";
4
- export * from "./ChargeBundleError";
5
4
  export * from "./ChargeCaptureBundleStatus";
6
5
  export * from "./ChargeCaptureBundleSortField";
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ChargeCaptureBundlePage"), exports);
18
18
  __exportStar(require("./ChargeCaptureBundle"), exports);
19
19
  __exportStar(require("./ChargeCaptureBundleSummary"), exports);
20
- __exportStar(require("./ChargeBundleError"), exports);
21
20
  __exportStar(require("./ChargeCaptureBundleStatus"), exports);
22
21
  __exportStar(require("./ChargeCaptureBundleSortField"), exports);