candidhealth 0.40.3 → 0.41.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 (334) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +19 -14
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  7. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  8. package/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  10. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  11. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  12. package/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +79 -0
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  14. package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  15. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  16. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  21. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  25. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  26. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  27. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  28. package/api/resources/diagnoses/client/Client.js +3 -3
  29. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  30. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  31. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  32. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  33. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  34. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  35. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  36. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  37. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  38. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  39. package/api/resources/index.d.ts +1 -0
  40. package/api/resources/index.js +3 -1
  41. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  42. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  43. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  44. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  45. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  46. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  48. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  49. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  50. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  51. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  52. package/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  53. package/api/resources/payerPlanGroups/client/Client.js +17 -0
  54. package/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  55. package/api/resources/payerPlanGroups/client/index.js +2 -0
  56. package/api/resources/payerPlanGroups/index.d.ts +2 -0
  57. package/api/resources/payerPlanGroups/index.js +18 -0
  58. package/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  59. package/api/resources/payerPlanGroups/resources/index.js +37 -0
  60. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  61. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  62. package/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  63. package/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  64. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  65. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  66. package/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  67. package/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  68. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  69. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  70. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  71. package/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  72. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  73. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  74. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  75. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  76. package/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  77. package/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  78. package/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  79. package/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  80. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  81. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  82. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  83. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  84. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  85. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  86. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  87. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  88. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  89. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  90. package/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  91. package/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  92. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  93. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  94. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  95. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  96. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  97. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  98. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  99. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  100. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  101. package/api/resources/serviceFacility/client/Client.js +1 -1
  102. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  103. package/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  104. package/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  105. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  106. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  107. package/dist/Client.d.ts +3 -0
  108. package/dist/Client.js +19 -14
  109. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  110. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  111. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +11 -0
  112. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +63 -5
  113. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  114. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  115. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +17 -0
  116. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +5 -0
  117. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  118. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +34 -0
  119. package/dist/api/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +79 -0
  120. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  121. package/dist/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +1 -1
  122. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +5 -0
  123. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  124. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -0
  125. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +7 -35
  126. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +1 -7
  127. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +0 -11
  128. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +1 -7
  129. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +0 -11
  130. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +1 -1
  131. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  132. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  133. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  134. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  135. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  137. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  138. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  139. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  140. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  141. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  142. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  143. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  144. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  145. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  146. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  147. package/dist/api/resources/index.d.ts +1 -0
  148. package/dist/api/resources/index.js +3 -1
  149. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  150. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  151. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  152. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  153. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  154. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  155. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  156. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  157. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  158. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  159. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  160. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  161. package/dist/api/resources/payerPlanGroups/client/Client.js +17 -0
  162. package/dist/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  163. package/dist/api/resources/payerPlanGroups/client/index.js +2 -0
  164. package/dist/api/resources/payerPlanGroups/index.d.ts +2 -0
  165. package/dist/api/resources/payerPlanGroups/index.js +18 -0
  166. package/dist/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  167. package/dist/api/resources/payerPlanGroups/resources/index.js +37 -0
  168. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  169. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  170. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  171. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  172. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  173. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.js +79 -0
  174. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  175. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  176. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  177. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  178. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  179. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  180. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  181. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  182. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  183. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  184. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  185. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.js +90 -0
  186. package/dist/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  187. package/dist/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  188. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  189. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  190. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  191. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  192. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  193. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  194. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  195. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  196. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  197. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  198. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  199. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  200. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  201. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  202. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  203. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  204. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  205. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  206. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  207. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  208. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  209. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  210. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  211. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.d.ts +2 -1
  212. package/dist/api/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  213. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  214. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  215. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  216. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  217. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  218. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  219. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  220. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  221. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  222. package/dist/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +77 -0
  223. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  224. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  225. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  226. package/{serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  227. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  228. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  229. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  230. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  231. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  232. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  233. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  234. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  235. package/dist/serialization/resources/index.d.ts +1 -0
  236. package/dist/serialization/resources/index.js +3 -1
  237. package/dist/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  238. package/dist/serialization/resources/payerPlanGroups/index.js +17 -0
  239. package/dist/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  240. package/dist/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  241. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  242. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  243. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  244. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  245. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  246. package/{serialization/resources/chargeCaptureBundles → dist/serialization/resources/payerPlanGroups}/resources/v1/client/get.js +11 -5
  247. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  248. package/dist/serialization/resources/{chargeCaptureBundles/resources/v1/client/get.js → payerPlanGroups/resources/v1/client/getMulti.js} +5 -5
  249. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  250. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  251. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  252. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  253. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  254. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  255. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  256. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  257. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  258. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  259. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  260. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  261. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  262. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  263. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  264. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  265. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  266. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  267. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  268. package/dist/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  269. package/dist/version.d.ts +1 -1
  270. package/dist/version.js +1 -1
  271. package/package.json +1 -1
  272. package/reference.md +406 -0
  273. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  274. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  275. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +12 -0
  276. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js +43 -0
  277. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  278. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  279. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.d.ts +20 -0
  280. package/serialization/resources/chargeCapture/resources/v1/client/updatePostBilledChange.js +77 -0
  281. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  282. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  283. package/serialization/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts → chargeCapture/resources/v1/types/ChargeCaptureError.d.ts} +2 -2
  284. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +2 -2
  285. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -0
  286. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -0
  287. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +0 -2
  288. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +1 -3
  289. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +2 -2
  290. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +2 -2
  291. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +0 -1
  292. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +0 -1
  293. package/serialization/resources/index.d.ts +1 -0
  294. package/serialization/resources/index.js +3 -1
  295. package/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  296. package/serialization/resources/payerPlanGroups/index.js +17 -0
  297. package/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  298. package/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  299. package/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  300. package/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  301. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +20 -0
  302. package/serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js +77 -0
  303. package/serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts +20 -0
  304. package/serialization/resources/{chargeCaptureBundles/resources/v1/client/getAll.js → payerPlanGroups/resources/v1/client/get.js} +11 -5
  305. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  306. package/{dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js → serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js} +5 -5
  307. package/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  308. package/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  309. package/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  310. package/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  311. package/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  312. package/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  313. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  314. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  315. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  316. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  317. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  318. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +45 -0
  319. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  320. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  321. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  322. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  323. package/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  324. package/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  325. package/serialization/resources/tasks/resources/commons/types/TaskCategory.d.ts +1 -1
  326. package/serialization/resources/tasks/resources/commons/types/TaskCategory.js +1 -0
  327. package/version.d.ts +1 -1
  328. package/version.js +1 -1
  329. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  330. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  331. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +0 -15
  332. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +0 -15
  333. /package/api/resources/{chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.js} +0 -0
  334. /package/{dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js → api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js} +0 -0
@@ -71,7 +71,7 @@ class V3 {
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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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,
@@ -169,7 +169,7 @@ class V3 {
169
169
  const _response = yield core.fetcher({
170
170
  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/tasks/v3"),
171
171
  method: "GET",
172
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
175
175
  requestType: "json",
@@ -221,7 +221,7 @@ class V3 {
221
221
  const _response = yield core.fetcher({
222
222
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
223
223
  method: "GET",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class V3 {
281
281
  const _response = yield core.fetcher({
282
282
  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/tasks/v3"),
283
283
  method: "POST",
284
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class V3 {
324
324
  const _response = yield core.fetcher({
325
325
  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/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
326
326
  method: "PATCH",
327
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -127,7 +127,7 @@ class V1 {
127
127
  const _response = yield core.fetcher({
128
128
  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/write-offs/v1"),
129
129
  method: "GET",
130
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
130
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
131
  contentType: "application/json",
132
132
  queryParameters: _queryParams,
133
133
  requestType: "json",
@@ -167,7 +167,7 @@ class V1 {
167
167
  const _response = yield core.fetcher({
168
168
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}`),
169
169
  method: "GET",
170
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
170
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -216,7 +216,7 @@ class V1 {
216
216
  const _response = yield core.fetcher({
217
217
  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/write-offs/v1"),
218
218
  method: "POST",
219
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
219
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
220
  contentType: "application/json",
221
221
  requestType: "json",
222
222
  body: serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -258,7 +258,7 @@ class V1 {
258
258
  const _response = yield core.fetcher({
259
259
  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/write-offs/v1/${encodeURIComponent(serializers.writeOffs.v1.WriteOffId.jsonOrThrow(writeOffId))}/revert`),
260
260
  method: "POST",
261
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
261
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
262
  contentType: "application/json",
263
263
  requestType: "json",
264
264
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -297,7 +297,7 @@ class V1 {
297
297
  const _response = yield core.fetcher({
298
298
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert`),
299
299
  method: "POST",
300
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
301
301
  contentType: "application/json",
302
302
  requestType: "json",
303
303
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -336,7 +336,7 @@ class V1 {
336
336
  const _response = yield core.fetcher({
337
337
  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/write-offs/v1/${encodeURIComponent(serializers.AdjustmentId.jsonOrThrow(adjustmentId))}/revert-era-originated`),
338
338
  method: "POST",
339
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
339
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.41.0", "User-Agent": "candidhealth/0.41.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
340
  contentType: "application/json",
341
341
  requestType: "json",
342
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
package/dist/Client.d.ts CHANGED
@@ -30,6 +30,7 @@ import { OrganizationServiceFacilities } from "./api/resources/organizationServi
30
30
  import { OrganizationProviders } from "./api/resources/organizationProviders/client/Client";
31
31
  import { PatientPayments } from "./api/resources/patientPayments/client/Client";
32
32
  import { PatientRefunds } from "./api/resources/patientRefunds/client/Client";
33
+ import { PayerPlanGroups } from "./api/resources/payerPlanGroups/client/Client";
33
34
  import { Payers } from "./api/resources/payers/client/Client";
34
35
  import { ServiceLines } from "./api/resources/serviceLines/client/Client";
35
36
  import { Tasks } from "./api/resources/tasks/client/Client";
@@ -86,6 +87,7 @@ export declare class CandidApiClient {
86
87
  protected _organizationProviders: OrganizationProviders | undefined;
87
88
  protected _patientPayments: PatientPayments | undefined;
88
89
  protected _patientRefunds: PatientRefunds | undefined;
90
+ protected _payerPlanGroups: PayerPlanGroups | undefined;
89
91
  protected _payers: Payers | undefined;
90
92
  protected _serviceLines: ServiceLines | undefined;
91
93
  protected _tasks: Tasks | undefined;
@@ -121,6 +123,7 @@ export declare class CandidApiClient {
121
123
  get organizationProviders(): OrganizationProviders;
122
124
  get patientPayments(): PatientPayments;
123
125
  get patientRefunds(): PatientRefunds;
126
+ get payerPlanGroups(): PayerPlanGroups;
124
127
  get payers(): Payers;
125
128
  get serviceLines(): ServiceLines;
126
129
  get tasks(): Tasks;
package/dist/Client.js CHANGED
@@ -75,13 +75,14 @@ const Client_25 = require("./api/resources/organizationServiceFacilities/client/
75
75
  const Client_26 = require("./api/resources/organizationProviders/client/Client");
76
76
  const Client_27 = require("./api/resources/patientPayments/client/Client");
77
77
  const Client_28 = require("./api/resources/patientRefunds/client/Client");
78
- const Client_29 = require("./api/resources/payers/client/Client");
79
- const Client_30 = require("./api/resources/serviceLines/client/Client");
80
- const Client_31 = require("./api/resources/tasks/client/Client");
81
- const Client_32 = require("./api/resources/writeOffs/client/Client");
82
- const Client_33 = require("./api/resources/preEncounter/client/Client");
83
- const Client_34 = require("./api/resources/diagnoses/client/Client");
84
- const Client_35 = require("./api/resources/serviceFacility/client/Client");
78
+ const Client_29 = require("./api/resources/payerPlanGroups/client/Client");
79
+ const Client_30 = require("./api/resources/payers/client/Client");
80
+ const Client_31 = require("./api/resources/serviceLines/client/Client");
81
+ const Client_32 = require("./api/resources/tasks/client/Client");
82
+ const Client_33 = require("./api/resources/writeOffs/client/Client");
83
+ const Client_34 = require("./api/resources/preEncounter/client/Client");
84
+ const Client_35 = require("./api/resources/diagnoses/client/Client");
85
+ const Client_36 = require("./api/resources/serviceFacility/client/Client");
85
86
  class CandidApiClient {
86
87
  constructor(_options) {
87
88
  this._options = _options;
@@ -201,33 +202,37 @@ class CandidApiClient {
201
202
  var _a;
202
203
  return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_28.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
203
204
  }
205
+ get payerPlanGroups() {
206
+ var _a;
207
+ return ((_a = this._payerPlanGroups) !== null && _a !== void 0 ? _a : (this._payerPlanGroups = new Client_29.PayerPlanGroups(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
208
+ }
204
209
  get payers() {
205
210
  var _a;
206
- return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_29.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
211
+ return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_30.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
207
212
  }
208
213
  get serviceLines() {
209
214
  var _a;
210
- return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_30.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
215
+ return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_31.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
211
216
  }
212
217
  get tasks() {
213
218
  var _a;
214
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_31.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
219
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_32.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
215
220
  }
216
221
  get writeOffs() {
217
222
  var _a;
218
- return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_32.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
223
+ return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_33.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
219
224
  }
220
225
  get preEncounter() {
221
226
  var _a;
222
- return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_33.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
227
+ return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_34.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
223
228
  }
224
229
  get diagnoses() {
225
230
  var _a;
226
- return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_34.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
231
+ return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_35.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
227
232
  }
228
233
  get serviceFacility() {
229
234
  var _a;
230
- return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_35.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
235
+ return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_36.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
231
236
  }
232
237
  }
233
238
  exports.CandidApiClient = CandidApiClient;
@@ -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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.3", "User-Agent": "candidhealth/0.40.3", "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.0", "User-Agent": "candidhealth/0.41.0", "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.0", "User-Agent": "candidhealth/0.41.0", "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
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ };
@@ -0,0 +1,79 @@
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 () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
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) => {
70
+ switch (value.errorName) {
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);
77
+ }
78
+ },
79
+ };
@@ -14,5 +14,6 @@ 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[];
18
19
  }
@@ -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.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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);