candidhealth 0.40.1 → 0.40.3

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 (282) 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 +3 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  7. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  8. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  9. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  10. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  11. package/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  19. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  25. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  26. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  27. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  28. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  29. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  30. package/api/resources/commons/types/index.d.ts +1 -0
  31. package/api/resources/commons/types/index.js +1 -0
  32. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  33. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  34. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  35. package/api/resources/diagnoses/client/Client.js +3 -3
  36. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  37. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  38. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  39. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  40. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  41. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  42. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  43. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  44. package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  45. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  46. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  47. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  48. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  49. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  50. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  51. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  52. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  53. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  54. package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  55. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  56. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  57. package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  58. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  59. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  60. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  61. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  62. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  63. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  64. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  66. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  67. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  68. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  69. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  70. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  71. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  72. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  73. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  74. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  75. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  76. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  77. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  78. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  79. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  80. package/api/resources/serviceFacility/client/Client.js +1 -1
  81. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  82. package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  83. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  84. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  85. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  86. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  87. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  88. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  89. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +3 -0
  90. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  91. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  92. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  93. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  94. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  95. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  96. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  98. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  99. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  100. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  101. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  102. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  103. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  104. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  106. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  107. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  108. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  109. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  110. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  111. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  112. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  113. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  114. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  115. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  116. package/dist/api/resources/commons/types/index.d.ts +1 -0
  117. package/dist/api/resources/commons/types/index.js +1 -0
  118. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  119. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  120. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  122. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  123. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  124. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  125. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  127. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  128. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  129. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  130. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  131. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  132. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  133. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  134. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  135. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  138. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  139. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  140. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  141. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  142. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  143. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  144. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  145. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  146. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  147. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  148. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  150. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  151. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  152. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  153. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  154. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  155. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  156. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  157. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  158. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  159. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  160. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  161. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  162. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  163. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  164. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  165. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  167. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  168. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  169. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  170. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  171. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  172. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  173. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  174. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  175. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  176. package/dist/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +7 -6
  177. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  178. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  179. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  180. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  181. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  182. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  183. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  184. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  185. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  186. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  187. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  188. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  189. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  190. package/{serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js} +6 -6
  191. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  192. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  193. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  194. package/dist/serialization/resources/commons/types/index.js +1 -0
  195. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  196. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  197. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  198. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  199. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  200. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  201. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  202. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  203. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  204. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  205. package/dist/version.d.ts +1 -1
  206. package/dist/version.js +1 -1
  207. package/package.json +1 -1
  208. package/reference.md +53 -231
  209. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  210. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  211. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  212. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +6 -9
  213. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  214. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  215. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  216. package/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  217. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  218. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  219. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  220. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  221. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  222. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +45 -0
  223. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  224. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  225. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  226. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  227. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  228. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  229. package/serialization/resources/commons/types/index.d.ts +1 -0
  230. package/serialization/resources/commons/types/index.js +1 -0
  231. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  232. package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  233. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  234. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  235. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  236. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  237. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  238. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  239. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  240. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
  243. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  244. package/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  245. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  246. package/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  247. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  248. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  249. package/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  250. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  251. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  252. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  253. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  254. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  255. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  256. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  257. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  258. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  259. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  260. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  261. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  262. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  263. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  264. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  265. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  266. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  267. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  268. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  269. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  270. package/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  271. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  272. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  273. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  274. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  275. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  276. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  277. package/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  278. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  279. /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  280. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
  281. /package/dist/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  282. /package/dist/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
@@ -73,7 +73,7 @@ class V3 {
73
73
  const _response = yield core.fetcher({
74
74
  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/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ 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
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -128,7 +128,7 @@ class V3 {
128
128
  const _response = yield core.fetcher({
129
129
  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/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
130
130
  method: "GET",
131
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
+ 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),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -187,7 +187,7 @@ class V3 {
187
187
  * networkTypes: "12",
188
188
  * payerPlanGroupIds: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
189
189
  * cptCode: "string",
190
- * modifiers: "22"
190
+ * modifiers: "AV"
191
191
  * })
192
192
  */
193
193
  getMulti() {
@@ -280,7 +280,7 @@ class V3 {
280
280
  const _response = yield core.fetcher({
281
281
  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/fee-schedules/v3"),
282
282
  method: "GET",
283
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
+ 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
284
  contentType: "application/json",
285
285
  queryParameters: _queryParams,
286
286
  requestType: "json",
@@ -325,7 +325,7 @@ class V3 {
325
325
  * networkTypes: "12",
326
326
  * payerPlanGroupIds: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
327
327
  * cptCode: "string",
328
- * modifiers: "22"
328
+ * modifiers: "AV"
329
329
  * })
330
330
  */
331
331
  getUniqueValuesForDimension(request, requestOptions) {
@@ -418,7 +418,7 @@ class V3 {
418
418
  const _response = yield core.fetcher({
419
419
  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/fee-schedules/v3/unique-dimension-values"),
420
420
  method: "GET",
421
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
421
+ 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),
422
422
  contentType: "application/json",
423
423
  queryParameters: _queryParams,
424
424
  requestType: "json",
@@ -458,7 +458,7 @@ class V3 {
458
458
  const _response = yield core.fetcher({
459
459
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
460
460
  method: "GET",
461
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
461
+ 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),
462
462
  contentType: "application/json",
463
463
  requestType: "json",
464
464
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -517,7 +517,7 @@ class V3 {
517
517
  * networkTypes: new Set(["12"]),
518
518
  * payerPlanGroupIds: new Set([CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
519
519
  * cptCode: "string",
520
- * modifiers: new Set(["22"])
520
+ * modifiers: new Set(["AV"])
521
521
  * },
522
522
  * entries: [{
523
523
  * startDate: "2024-04-11",
@@ -533,7 +533,7 @@ class V3 {
533
533
  const _response = yield core.fetcher({
534
534
  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/fee-schedules/v3"),
535
535
  method: "POST",
536
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
536
+ 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),
537
537
  contentType: "application/json",
538
538
  requestType: "json",
539
539
  body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
@@ -590,7 +590,7 @@ class V3 {
590
590
  const _response = yield core.fetcher({
591
591
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
592
592
  method: "DELETE",
593
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
593
+ 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),
594
594
  contentType: "application/json",
595
595
  requestType: "json",
596
596
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -638,7 +638,7 @@ class V3 {
638
638
  const _response = yield core.fetcher({
639
639
  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/fee-schedules/v3/payer-threshold/default"),
640
640
  method: "GET",
641
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
641
+ 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),
642
642
  contentType: "application/json",
643
643
  requestType: "json",
644
644
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -687,7 +687,7 @@ class V3 {
687
687
  const _response = yield core.fetcher({
688
688
  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/fee-schedules/v3/payer-threshold"),
689
689
  method: "GET",
690
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
690
+ 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),
691
691
  contentType: "application/json",
692
692
  queryParameters: _queryParams,
693
693
  requestType: "json",
@@ -732,7 +732,7 @@ class V3 {
732
732
  const _response = yield core.fetcher({
733
733
  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/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
734
734
  method: "PUT",
735
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
735
+ 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),
736
736
  contentType: "application/json",
737
737
  requestType: "json",
738
738
  body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -18,7 +18,7 @@ import * as CandidApi from "../../../../../../index";
18
18
  * networkTypes: new Set(["12"]),
19
19
  * payerPlanGroupIds: new Set([CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")]),
20
20
  * cptCode: "string",
21
- * modifiers: new Set(["22"])
21
+ * modifiers: new Set(["AV"])
22
22
  * },
23
23
  * entries: [{
24
24
  * startDate: "2024-04-11",
@@ -17,7 +17,7 @@ import * as CandidApi from "../../../../../../index";
17
17
  * networkTypes: "12",
18
18
  * payerPlanGroupIds: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
19
19
  * cptCode: "string",
20
- * modifiers: "22"
20
+ * modifiers: "AV"
21
21
  * }
22
22
  */
23
23
  export interface GetMultiRequest {
@@ -17,7 +17,7 @@ import * as CandidApi from "../../../../../../index";
17
17
  * networkTypes: "12",
18
18
  * payerPlanGroupIds: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
19
19
  * cptCode: "string",
20
- * modifiers: "22"
20
+ * modifiers: "AV"
21
21
  * }
22
22
  */
23
23
  export interface GetUniqueDimensionValuesRequest {
@@ -94,7 +94,7 @@ class V1 {
94
94
  const _response = yield core.fetcher({
95
95
  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/guarantors/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
96
96
  method: "POST",
97
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
97
+ 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),
98
98
  contentType: "application/json",
99
99
  requestType: "json",
100
100
  body: serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -149,7 +149,7 @@ class V1 {
149
149
  const _response = yield core.fetcher({
150
150
  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/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
151
151
  method: "GET",
152
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
152
+ 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),
153
153
  contentType: "application/json",
154
154
  requestType: "json",
155
155
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -209,7 +209,7 @@ class V1 {
209
209
  const _response = yield core.fetcher({
210
210
  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/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
211
211
  method: "PATCH",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ 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),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -89,7 +89,7 @@ class V1 {
89
89
  const _response = yield core.fetcher({
90
90
  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/import-invoice/v1"),
91
91
  method: "POST",
92
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
+ 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),
93
93
  contentType: "application/json",
94
94
  requestType: "json",
95
95
  body: serializers.importInvoice.v1.CreateImportInvoiceRequest.jsonOrThrow(request, {
@@ -200,7 +200,7 @@ class V1 {
200
200
  const _response = yield core.fetcher({
201
201
  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/import-invoice/v1"),
202
202
  method: "GET",
203
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
203
+ 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),
204
204
  contentType: "application/json",
205
205
  queryParameters: _queryParams,
206
206
  requestType: "json",
@@ -240,7 +240,7 @@ class V1 {
240
240
  const _response = yield core.fetcher({
241
241
  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/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
242
242
  method: "GET",
243
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
+ 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),
244
244
  contentType: "application/json",
245
245
  requestType: "json",
246
246
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,7 +309,7 @@ class V1 {
309
309
  const _response = yield core.fetcher({
310
310
  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/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
311
311
  method: "PATCH",
312
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ 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),
313
313
  contentType: "application/json",
314
314
  requestType: "json",
315
315
  body: serializers.importInvoice.v1.ImportInvoiceUpdateRequest.jsonOrThrow(request, {
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  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/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ 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
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -135,7 +135,7 @@ class V1 {
135
135
  const _response = yield core.fetcher({
136
136
  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/insurance-adjudications/v1"),
137
137
  method: "POST",
138
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
138
+ 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
139
  contentType: "application/json",
140
140
  requestType: "json",
141
141
  body: serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -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/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
193
193
  method: "DELETE",
194
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "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.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),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -55,61 +55,5 @@ export declare class V1 {
55
55
  * await client.insurancePayments.v1.get(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
56
56
  */
57
57
  get(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.get.Error>>;
58
- /**
59
- * Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
60
- * should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
61
- * from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
62
- *
63
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentCreate} request
64
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
- * @example
67
- * await client.insurancePayments.v1.create({
68
- * payerIdentifier: {
69
- * type: "payer_info"
70
- * },
71
- * amountCents: 1,
72
- * paymentTimestamp: "2024-01-15T09:30:00Z",
73
- * paymentNote: "string",
74
- * allocations: [{
75
- * amountCents: 1,
76
- * target: {
77
- * type: "service_line_by_id",
78
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
79
- * }
80
- * }]
81
- * })
82
- */
83
- create(request: CandidApi.insurancePayments.v1.InsurancePaymentCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.create.Error>>;
84
- /**
85
- * Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
86
- * then the allocations must be appropriately updated as well.
87
- *
88
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
89
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentUpdate} request
90
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
91
- *
92
- * @example
93
- * await client.insurancePayments.v1.update(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
94
- * paymentTimestamp: "2024-01-15T09:30:00Z",
95
- * paymentNote: {
96
- * type: "set",
97
- * value: "string"
98
- * }
99
- * })
100
- */
101
- update(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, request?: CandidApi.insurancePayments.v1.InsurancePaymentUpdate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.update.Error>>;
102
- /**
103
- * Deletes the insurance payment record matching the provided `insurance_payment_id`.
104
- * If the matching record's organization_id does not match the authenticated user's
105
- * current organization_id, then a response code of `403` will be returned.
106
- *
107
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
108
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
109
- *
110
- * @example
111
- * await client.insurancePayments.v1.delete(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
112
- */
113
- delete(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.insurancePayments.v1.delete.Error>>;
114
58
  protected _getAuthorizationHeader(): Promise<string | undefined>;
115
59
  }
@@ -112,7 +112,7 @@ class V1 {
112
112
  const _response = yield core.fetcher({
113
113
  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/insurance-payments/v1"),
114
114
  method: "GET",
115
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ 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),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -168,7 +168,7 @@ class V1 {
168
168
  const _response = yield core.fetcher({
169
169
  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/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
170
170
  method: "GET",
171
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ 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
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,198 +207,6 @@ class V1 {
207
207
  };
208
208
  });
209
209
  }
210
- /**
211
- * Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
212
- * should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
213
- * from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
214
- *
215
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentCreate} request
216
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
217
- *
218
- * @example
219
- * await client.insurancePayments.v1.create({
220
- * payerIdentifier: {
221
- * type: "payer_info"
222
- * },
223
- * amountCents: 1,
224
- * paymentTimestamp: "2024-01-15T09:30:00Z",
225
- * paymentNote: "string",
226
- * allocations: [{
227
- * amountCents: 1,
228
- * target: {
229
- * type: "service_line_by_id",
230
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
231
- * }
232
- * }]
233
- * })
234
- */
235
- create(request, requestOptions) {
236
- return __awaiter(this, void 0, void 0, function* () {
237
- var _a, _b, _c;
238
- const _response = yield core.fetcher({
239
- 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/insurance-payments/v1"),
240
- method: "POST",
241
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
- contentType: "application/json",
243
- requestType: "json",
244
- body: serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
245
- unrecognizedObjectKeys: "strip",
246
- }),
247
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
- });
251
- if (_response.ok) {
252
- return {
253
- ok: true,
254
- body: serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
255
- unrecognizedObjectKeys: "passthrough",
256
- allowUnrecognizedUnionMembers: true,
257
- allowUnrecognizedEnumValues: true,
258
- breadcrumbsPrefix: ["response"],
259
- }),
260
- };
261
- }
262
- if (_response.error.reason === "status-code") {
263
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
264
- case "EntityNotFoundError":
265
- case "UnauthorizedError":
266
- case "UnprocessableEntityError":
267
- return {
268
- ok: false,
269
- error: serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
270
- unrecognizedObjectKeys: "passthrough",
271
- allowUnrecognizedUnionMembers: true,
272
- allowUnrecognizedEnumValues: true,
273
- breadcrumbsPrefix: ["response"],
274
- }),
275
- };
276
- }
277
- }
278
- return {
279
- ok: false,
280
- error: CandidApi.insurancePayments.v1.create.Error._unknown(_response.error),
281
- };
282
- });
283
- }
284
- /**
285
- * Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
286
- * then the allocations must be appropriately updated as well.
287
- *
288
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
289
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentUpdate} request
290
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
291
- *
292
- * @example
293
- * await client.insurancePayments.v1.update(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
294
- * paymentTimestamp: "2024-01-15T09:30:00Z",
295
- * paymentNote: {
296
- * type: "set",
297
- * value: "string"
298
- * }
299
- * })
300
- */
301
- update(insurancePaymentId_1) {
302
- return __awaiter(this, arguments, void 0, function* (insurancePaymentId, request = {}, requestOptions) {
303
- var _a, _b, _c;
304
- const _response = yield core.fetcher({
305
- 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/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
306
- method: "PATCH",
307
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
308
- contentType: "application/json",
309
- requestType: "json",
310
- body: serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
311
- unrecognizedObjectKeys: "strip",
312
- }),
313
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
314
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
315
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
316
- });
317
- if (_response.ok) {
318
- return {
319
- ok: true,
320
- body: serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
321
- unrecognizedObjectKeys: "passthrough",
322
- allowUnrecognizedUnionMembers: true,
323
- allowUnrecognizedEnumValues: true,
324
- breadcrumbsPrefix: ["response"],
325
- }),
326
- };
327
- }
328
- if (_response.error.reason === "status-code") {
329
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
330
- case "EntityNotFoundError":
331
- case "UnauthorizedError":
332
- case "UnprocessableEntityError":
333
- return {
334
- ok: false,
335
- error: serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
336
- unrecognizedObjectKeys: "passthrough",
337
- allowUnrecognizedUnionMembers: true,
338
- allowUnrecognizedEnumValues: true,
339
- breadcrumbsPrefix: ["response"],
340
- }),
341
- };
342
- }
343
- }
344
- return {
345
- ok: false,
346
- error: CandidApi.insurancePayments.v1.update.Error._unknown(_response.error),
347
- };
348
- });
349
- }
350
- /**
351
- * Deletes the insurance payment record matching the provided `insurance_payment_id`.
352
- * If the matching record's organization_id does not match the authenticated user's
353
- * current organization_id, then a response code of `403` will be returned.
354
- *
355
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
356
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
357
- *
358
- * @example
359
- * await client.insurancePayments.v1.delete(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
360
- */
361
- delete(insurancePaymentId, requestOptions) {
362
- return __awaiter(this, void 0, void 0, function* () {
363
- var _a, _b, _c;
364
- const _response = yield core.fetcher({
365
- 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/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
366
- method: "DELETE",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
- contentType: "application/json",
369
- requestType: "json",
370
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
371
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
372
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
373
- });
374
- if (_response.ok) {
375
- return {
376
- ok: true,
377
- body: undefined,
378
- };
379
- }
380
- if (_response.error.reason === "status-code") {
381
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
382
- case "EntityNotFoundError":
383
- case "UnauthorizedError":
384
- case "UnprocessableEntityError":
385
- return {
386
- ok: false,
387
- error: serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
388
- unrecognizedObjectKeys: "passthrough",
389
- allowUnrecognizedUnionMembers: true,
390
- allowUnrecognizedEnumValues: true,
391
- breadcrumbsPrefix: ["response"],
392
- }),
393
- };
394
- }
395
- }
396
- return {
397
- ok: false,
398
- error: CandidApi.insurancePayments.v1.delete.Error._unknown(_response.error),
399
- };
400
- });
401
- }
402
210
  _getAuthorizationHeader() {
403
211
  return __awaiter(this, void 0, void 0, function* () {
404
212
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,6 +1,3 @@
1
1
  export * from "./requests";
2
2
  export * as getMulti from "./getMulti";
3
3
  export * as get from "./get";
4
- export * as create from "./create";
5
- export * as update from "./update";
6
- export * as delete from "./delete";
@@ -36,10 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.delete = exports.update = exports.create = exports.get = exports.getMulti = void 0;
39
+ exports.get = exports.getMulti = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.getMulti = __importStar(require("./getMulti"));
42
42
  exports.get = __importStar(require("./get"));
43
- exports.create = __importStar(require("./create"));
44
- exports.update = __importStar(require("./update"));
45
- exports.delete = __importStar(require("./delete"));
@@ -1,2 +1 @@
1
1
  export { type GetMultiInsurancePaymentRequest } from "./GetMultiInsurancePaymentRequest";
2
- export { type InsurancePaymentUpdate } from "./InsurancePaymentUpdate";
@@ -1,5 +1,4 @@
1
1
  export * from "./InsurancePaymentId";
2
2
  export * from "./InsurancePayment";
3
- export * from "./InsurancePaymentCreate";
4
3
  export * from "./InsurancePaymentsPage";
5
4
  export * from "./InsurancePaymentSortField";
@@ -16,6 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InsurancePaymentId"), exports);
18
18
  __exportStar(require("./InsurancePayment"), exports);
19
- __exportStar(require("./InsurancePaymentCreate"), exports);
20
19
  __exportStar(require("./InsurancePaymentsPage"), exports);
21
20
  __exportStar(require("./InsurancePaymentSortField"), exports);