candidhealth 1.4.0 → 1.5.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 (248) hide show
  1. package/api/resources/auth/resources/default/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 +33 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  5. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  6. package/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  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/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  10. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  11. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  13. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  14. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  15. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  16. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  17. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  18. package/api/resources/diagnoses/client/Client.js +4 -3
  19. package/api/resources/diagnoses/client/update.d.ts +7 -1
  20. package/api/resources/diagnoses/client/update.js +11 -0
  21. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  22. package/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  23. package/api/resources/diagnoses/types/index.d.ts +1 -0
  24. package/api/resources/diagnoses/types/index.js +1 -0
  25. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  26. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  27. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  28. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  29. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  30. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  31. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  32. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  33. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  35. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  36. package/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  37. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  38. package/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  39. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  40. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  41. package/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  42. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  43. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  44. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  45. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  46. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  47. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  48. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  49. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  50. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  51. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  52. package/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  53. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  54. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  55. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  56. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  57. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  58. package/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  59. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  60. package/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  61. package/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  62. package/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  63. package/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  64. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  66. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  67. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  68. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  69. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  70. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  71. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  72. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  73. package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  74. package/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  75. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  76. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  78. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  79. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  80. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  81. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  82. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  83. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  84. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  85. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  86. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  87. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  88. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  89. package/api/resources/serviceFacility/client/Client.js +1 -1
  90. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  91. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  92. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  93. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  94. package/dist/api/resources/auth/resources/default/client/Client.js +1 -1
  95. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  96. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +33 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +90 -5
  98. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +58 -0
  99. package/dist/api/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +123 -0
  100. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  101. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +2 -1
  102. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +30 -0
  103. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +5 -0
  104. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  107. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -1
  108. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -1
  109. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  110. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  111. package/dist/api/resources/diagnoses/client/Client.js +4 -3
  112. package/dist/api/resources/diagnoses/client/update.d.ts +7 -1
  113. package/dist/api/resources/diagnoses/client/update.js +11 -0
  114. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +9 -0
  115. package/dist/api/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +5 -0
  116. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  117. package/dist/api/resources/diagnoses/types/index.js +1 -0
  118. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  119. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  120. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  121. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  122. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  123. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  124. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  125. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +18 -0
  127. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +60 -10
  128. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +22 -0
  129. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +57 -0
  130. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  131. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +2 -1
  132. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  133. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  134. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -0
  135. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +1 -0
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  138. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  139. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  140. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  141. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  142. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +15 -0
  143. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +79 -7
  144. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.d.ts +22 -0
  145. package/dist/api/resources/nonInsurancePayers/resources/v1/client/getCategories.js +57 -0
  146. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -0
  147. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +2 -1
  148. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +15 -0
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +22 -0
  150. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.js +5 -0
  151. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/index.d.ts +1 -0
  152. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +7 -0
  153. package/dist/api/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +5 -0
  154. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  155. package/dist/api/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  156. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +15 -5
  157. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +4 -0
  158. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +16 -6
  159. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +4 -0
  160. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  161. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  163. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  164. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +1 -1
  165. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +8 -8
  166. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  167. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +1 -0
  168. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +1 -1
  169. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  170. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +1 -1
  171. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +11 -11
  172. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +1 -1
  173. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +1 -7
  174. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +7 -13
  175. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  176. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  177. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  178. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  179. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  180. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +12 -12
  181. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  182. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  183. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  184. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  185. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  186. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  187. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  188. package/dist/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  189. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  190. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  191. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  192. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  193. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  194. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  195. package/dist/serialization/resources/diagnoses/client/update.d.ts +6 -1
  196. package/dist/serialization/resources/diagnoses/client/update.js +6 -0
  197. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  198. package/dist/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  199. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  200. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  201. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  202. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  203. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  204. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  205. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  206. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  207. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  208. package/dist/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  209. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  210. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  211. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  212. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  213. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  214. package/dist/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  215. package/dist/version.d.ts +1 -1
  216. package/dist/version.js +1 -1
  217. package/package.json +1 -1
  218. package/reference.md +233 -10
  219. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.d.ts +40 -0
  220. package/serialization/resources/chargeCapture/resources/v1/client/createFromPreEncounterPatient.js +101 -0
  221. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +1 -0
  222. package/serialization/resources/chargeCapture/resources/v1/client/index.js +2 -1
  223. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.d.ts +23 -0
  224. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureFromPreEncounterRequest.js +54 -0
  225. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +1 -0
  226. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +3 -1
  227. package/serialization/resources/diagnoses/client/update.d.ts +6 -1
  228. package/serialization/resources/diagnoses/client/update.js +6 -0
  229. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.d.ts +15 -0
  230. package/serialization/resources/diagnoses/types/DisallowMultiplePrimaryDiagnosisError.js +46 -0
  231. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  232. package/serialization/resources/diagnoses/types/index.js +1 -0
  233. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.d.ts +9 -0
  234. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRates.js +41 -0
  235. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  236. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  237. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.d.ts +13 -0
  238. package/serialization/resources/nonInsurancePayers/resources/v1/types/NonInsurancePayerCategoriesPage.js +46 -0
  239. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.d.ts +1 -0
  240. package/serialization/resources/nonInsurancePayers/resources/v1/types/index.js +1 -0
  241. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +1 -0
  242. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +1 -0
  243. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.d.ts +2 -0
  244. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/Visit.js +2 -0
  245. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.d.ts +3 -2
  246. package/serialization/resources/preEncounter/resources/eligibilityChecks/resources/v1/types/MedicareAdvantageRecommendationPayload.js +3 -2
  247. package/version.d.ts +1 -1
  248. package/version.js +1 -1
@@ -54,6 +54,21 @@ export declare class V1 {
54
54
  * await client.nonInsurancePayers.v1.getMulti()
55
55
  */
56
56
  getMulti(request?: CandidApi.nonInsurancePayers.v1.GetMultiNonInsurancePayersRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.nonInsurancePayers.v1.NonInsurancePayerPage, CandidApi.nonInsurancePayers.v1.getMulti.Error>>;
57
+ /**
58
+ * Returns a paginated list of all non-insurance payer categories.
59
+ *
60
+ * Non-insurance payer categories are simply strings and are not stored as a
61
+ * separate object in Candid. They are created when added to at least one
62
+ * non-insurance payer's `category` field and are deleted when there are no
63
+ * longer any non-insurance payers that contain them.
64
+ *
65
+ * @param {CandidApi.nonInsurancePayers.v1.GetNonInsurancePayersCategoriesRequest} request
66
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
67
+ *
68
+ * @example
69
+ * await client.nonInsurancePayers.v1.getCategories()
70
+ */
71
+ getCategories(request?: CandidApi.nonInsurancePayers.v1.GetNonInsurancePayersCategoriesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.nonInsurancePayers.v1.NonInsurancePayerCategoriesPage, CandidApi.nonInsurancePayers.v1.getCategories.Error>>;
57
72
  /**
58
73
  * @param {CandidApi.nonInsurancePayers.v1.NonInsurancePayerId} nonInsurancePayerId
59
74
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -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/non-insurance-payers/v1"),
75
75
  method: "POST",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.5.0", "User-Agent": "candidhealth/1.5.0", "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
  body: serializers.nonInsurancePayers.v1.CreateNonInsurancePayerRequest.jsonOrThrow(request, {
@@ -131,7 +131,7 @@ class V1 {
131
131
  const _response = yield core.fetcher({
132
132
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}/toggle_enablement`),
133
133
  method: "PATCH",
134
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
134
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
135
135
  contentType: "application/json",
136
136
  requestType: "json",
137
137
  body: serializers.nonInsurancePayers.v1.ToggleNonInsurancePayerEnablementRequest.jsonOrThrow(request, {
@@ -182,7 +182,7 @@ class V1 {
182
182
  getMulti() {
183
183
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
184
184
  var _a, _b, _c;
185
- const { name, category, enabled, sort, sortDirection, limit, pageToken } = request;
185
+ const { name, category, categoriesExact, clinicalTrialIds, enabled, sort, sortDirection, limit, pageToken } = request;
186
186
  const _queryParams = {};
187
187
  if (name != null) {
188
188
  _queryParams["name"] = name;
@@ -190,6 +190,22 @@ class V1 {
190
190
  if (category != null) {
191
191
  _queryParams["category"] = category;
192
192
  }
193
+ if (categoriesExact != null) {
194
+ if (Array.isArray(categoriesExact)) {
195
+ _queryParams["categories_exact"] = categoriesExact.map((item) => item);
196
+ }
197
+ else {
198
+ _queryParams["categories_exact"] = categoriesExact;
199
+ }
200
+ }
201
+ if (clinicalTrialIds != null) {
202
+ if (Array.isArray(clinicalTrialIds)) {
203
+ _queryParams["clinical_trial_ids"] = clinicalTrialIds.map((item) => serializers.ClinicalTrialId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
204
+ }
205
+ else {
206
+ _queryParams["clinical_trial_ids"] = clinicalTrialIds;
207
+ }
208
+ }
193
209
  if (enabled != null) {
194
210
  _queryParams["enabled"] = enabled.toString();
195
211
  }
@@ -212,7 +228,7 @@ class V1 {
212
228
  const _response = yield core.fetcher({
213
229
  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/non-insurance-payers/v1"),
214
230
  method: "GET",
215
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
232
  contentType: "application/json",
217
233
  queryParameters: _queryParams,
218
234
  requestType: "json",
@@ -251,6 +267,62 @@ class V1 {
251
267
  };
252
268
  });
253
269
  }
270
+ /**
271
+ * Returns a paginated list of all non-insurance payer categories.
272
+ *
273
+ * Non-insurance payer categories are simply strings and are not stored as a
274
+ * separate object in Candid. They are created when added to at least one
275
+ * non-insurance payer's `category` field and are deleted when there are no
276
+ * longer any non-insurance payers that contain them.
277
+ *
278
+ * @param {CandidApi.nonInsurancePayers.v1.GetNonInsurancePayersCategoriesRequest} request
279
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
280
+ *
281
+ * @example
282
+ * await client.nonInsurancePayers.v1.getCategories()
283
+ */
284
+ getCategories() {
285
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
286
+ var _a, _b;
287
+ const { searchTerm, limit, pageToken } = request;
288
+ const _queryParams = {};
289
+ if (searchTerm != null) {
290
+ _queryParams["search_term"] = searchTerm;
291
+ }
292
+ if (limit != null) {
293
+ _queryParams["limit"] = limit.toString();
294
+ }
295
+ if (pageToken != null) {
296
+ _queryParams["page_token"] = pageToken;
297
+ }
298
+ const _response = yield core.fetcher({
299
+ 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/non-insurance-payers/v1/categories"),
300
+ method: "GET",
301
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ contentType: "application/json",
303
+ queryParameters: _queryParams,
304
+ requestType: "json",
305
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
306
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
307
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
308
+ });
309
+ if (_response.ok) {
310
+ return {
311
+ ok: true,
312
+ body: serializers.nonInsurancePayers.v1.NonInsurancePayerCategoriesPage.parseOrThrow(_response.body, {
313
+ unrecognizedObjectKeys: "passthrough",
314
+ allowUnrecognizedUnionMembers: true,
315
+ allowUnrecognizedEnumValues: true,
316
+ breadcrumbsPrefix: ["response"],
317
+ }),
318
+ };
319
+ }
320
+ return {
321
+ ok: false,
322
+ error: CandidApi.nonInsurancePayers.v1.getCategories.Error._unknown(_response.error),
323
+ };
324
+ });
325
+ }
254
326
  /**
255
327
  * @param {CandidApi.nonInsurancePayers.v1.NonInsurancePayerId} nonInsurancePayerId
256
328
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -264,7 +336,7 @@ class V1 {
264
336
  const _response = yield core.fetcher({
265
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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
266
338
  method: "GET",
267
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
340
  contentType: "application/json",
269
341
  requestType: "json",
270
342
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -316,7 +388,7 @@ class V1 {
316
388
  const _response = yield core.fetcher({
317
389
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
318
390
  method: "PATCH",
319
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
391
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
320
392
  contentType: "application/json",
321
393
  requestType: "json",
322
394
  body: serializers.nonInsurancePayers.v1.NonInsurancePayerUpdateRequest.jsonOrThrow(request, {
@@ -371,7 +443,7 @@ class V1 {
371
443
  const _response = yield core.fetcher({
372
444
  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/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
373
445
  method: "DELETE",
374
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
446
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
375
447
  contentType: "application/json",
376
448
  requestType: "json",
377
449
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -0,0 +1,22 @@
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.nonInsurancePayers.v1.getCategories.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.nonInsurancePayers.v1.getCategories.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.nonInsurancePayers.v1.getCategories.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.nonInsurancePayers.v1.getCategories.Error, visitor: CandidApi.nonInsurancePayers.v1.getCategories.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
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
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.nonInsurancePayers.v1.getCategories.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -2,6 +2,7 @@ export * from "./requests";
2
2
  export * as create from "./create";
3
3
  export * as toggleEnablement from "./toggleEnablement";
4
4
  export * as getMulti from "./getMulti";
5
+ export * as getCategories from "./getCategories";
5
6
  export * as get from "./get";
6
7
  export * as update from "./update";
7
8
  export * as delete from "./delete";
@@ -36,11 +36,12 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.delete = exports.update = exports.get = exports.getMulti = exports.toggleEnablement = exports.create = void 0;
39
+ exports.delete = exports.update = exports.get = exports.getCategories = exports.getMulti = exports.toggleEnablement = exports.create = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.create = __importStar(require("./create"));
42
42
  exports.toggleEnablement = __importStar(require("./toggleEnablement"));
43
43
  exports.getMulti = __importStar(require("./getMulti"));
44
+ exports.getCategories = __importStar(require("./getCategories"));
44
45
  exports.get = __importStar(require("./get"));
45
46
  exports.update = __importStar(require("./update"));
46
47
  exports.delete = __importStar(require("./delete"));
@@ -8,7 +8,22 @@ import * as CandidApi from "../../../../../../index";
8
8
  */
9
9
  export interface GetMultiNonInsurancePayersRequest {
10
10
  name?: string;
11
+ /**
12
+ * Fuzzy-match category names of non-insurance payers.
13
+ */
11
14
  category?: string;
15
+ /**
16
+ * Filter by one or more categories by name.
17
+ * When multiple are present, non-insurance payers with any of the specified
18
+ * categories will be matched.
19
+ */
20
+ categoriesExact?: string | string[];
21
+ /**
22
+ * Filter by one or more clinical trials by their `clinical_trial_id`.
23
+ * When multiple are present, non-insurance payers with any of the specified
24
+ * clinical trials will be matched.
25
+ */
26
+ clinicalTrialIds?: CandidApi.ClinicalTrialId | CandidApi.ClinicalTrialId[];
12
27
  enabled?: boolean;
13
28
  sort?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerSortField;
14
29
  sortDirection?: CandidApi.SortDirection;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface GetNonInsurancePayersCategoriesRequest {
10
+ /**
11
+ * Filters categories by fuzzy matching on name.
12
+ */
13
+ searchTerm?: string;
14
+ /**
15
+ * Limits the maximum number of categories that will be returned. Defaults to 100.
16
+ */
17
+ limit?: number;
18
+ /**
19
+ * The page token to continue paging through a previous request.
20
+ */
21
+ pageToken?: CandidApi.PageToken;
22
+ }
@@ -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 +1,2 @@
1
1
  export { type GetMultiNonInsurancePayersRequest } from "./GetMultiNonInsurancePayersRequest";
2
+ export { type GetNonInsurancePayersCategoriesRequest } from "./GetNonInsurancePayersCategoriesRequest";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface NonInsurancePayerCategoriesPage extends CandidApi.ResourcePage {
6
+ items: string[];
7
+ }
@@ -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 });
@@ -8,3 +8,4 @@ export * from "./NonInsurancePayerCategoryUpdate";
8
8
  export * from "./NonInsurancePayerAddressUpdate";
9
9
  export * from "./ToggleNonInsurancePayerEnablementRequest";
10
10
  export * from "./NonInsurancePayerUpdateRequest";
11
+ export * from "./NonInsurancePayerCategoriesPage";
@@ -24,3 +24,4 @@ __exportStar(require("./NonInsurancePayerCategoryUpdate"), exports);
24
24
  __exportStar(require("./NonInsurancePayerAddressUpdate"), exports);
25
25
  __exportStar(require("./ToggleNonInsurancePayerEnablementRequest"), exports);
26
26
  __exportStar(require("./NonInsurancePayerUpdateRequest"), exports);
27
+ __exportStar(require("./NonInsurancePayerCategoriesPage"), exports);
@@ -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/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.5.0", "User-Agent": "candidhealth/1.5.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,
@@ -127,7 +127,7 @@ class V3 {
127
127
  getMulti() {
128
128
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
129
129
  var _a, _b;
130
- const { limit, searchTerm, npi, isRendering, isBilling, pageToken, sort } = request;
130
+ const { limit, searchTerm, npi, isRendering, isBilling, organizationProviderIds, pageToken, sort } = request;
131
131
  const _queryParams = {};
132
132
  if (limit != null) {
133
133
  _queryParams["limit"] = limit.toString();
@@ -144,6 +144,16 @@ class V3 {
144
144
  if (isBilling != null) {
145
145
  _queryParams["is_billing"] = isBilling.toString();
146
146
  }
147
+ if (organizationProviderIds != null) {
148
+ if (Array.isArray(organizationProviderIds)) {
149
+ _queryParams["organization_provider_ids"] = organizationProviderIds.map((item) => serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(item, {
150
+ unrecognizedObjectKeys: "strip",
151
+ }));
152
+ }
153
+ else {
154
+ _queryParams["organization_provider_ids"] = organizationProviderIds;
155
+ }
156
+ }
147
157
  if (pageToken != null) {
148
158
  _queryParams["page_token"] = pageToken;
149
159
  }
@@ -153,7 +163,7 @@ class V3 {
153
163
  const _response = yield core.fetcher({
154
164
  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/organization-providers/v3"),
155
165
  method: "GET",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
166
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
157
167
  contentType: "application/json",
158
168
  queryParameters: _queryParams,
159
169
  requestType: "json",
@@ -212,7 +222,7 @@ class V3 {
212
222
  const _response = yield core.fetcher({
213
223
  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/organization-providers/v3"),
214
224
  method: "POST",
215
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
216
226
  contentType: "application/json",
217
227
  requestType: "json",
218
228
  body: serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -268,7 +278,7 @@ class V3 {
268
278
  const _response = yield core.fetcher({
269
279
  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/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
270
280
  method: "PATCH",
271
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
281
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
282
  contentType: "application/json",
273
283
  requestType: "json",
274
284
  body: serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
@@ -35,6 +35,10 @@ export interface GetAllOrganizationProvidersRequestV2 {
35
35
  * Filter to only billing providers.
36
36
  */
37
37
  isBilling?: boolean;
38
+ /**
39
+ * Filter to the provided organization provider IDs.
40
+ */
41
+ organizationProviderIds?: CandidApi.organizationProviders.v2.OrganizationProviderId | CandidApi.organizationProviders.v2.OrganizationProviderId[];
38
42
  /**
39
43
  * The page token to continue paging through a previous request.
40
44
  */
@@ -71,7 +71,7 @@ class V2 {
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/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
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": "1.4.0", "User-Agent": "candidhealth/1.4.0", "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": "1.5.0", "User-Agent": "candidhealth/1.5.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,
@@ -123,7 +123,7 @@ class V2 {
123
123
  getMulti() {
124
124
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
125
125
  var _a, _b;
126
- const { limit, name, pageToken } = request;
126
+ const { limit, name, organizationServiceFacilityIds, pageToken } = request;
127
127
  const _queryParams = {};
128
128
  if (limit != null) {
129
129
  _queryParams["limit"] = limit.toString();
@@ -131,13 +131,23 @@ class V2 {
131
131
  if (name != null) {
132
132
  _queryParams["name"] = name;
133
133
  }
134
+ if (organizationServiceFacilityIds != null) {
135
+ if (Array.isArray(organizationServiceFacilityIds)) {
136
+ _queryParams["organization_service_facility_ids"] = organizationServiceFacilityIds.map((item) => serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(item, {
137
+ unrecognizedObjectKeys: "strip",
138
+ }));
139
+ }
140
+ else {
141
+ _queryParams["organization_service_facility_ids"] = organizationServiceFacilityIds;
142
+ }
143
+ }
134
144
  if (pageToken != null) {
135
145
  _queryParams["page_token"] = pageToken;
136
146
  }
137
147
  const _response = yield core.fetcher({
138
148
  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/organization-service-facilities/v2"),
139
149
  method: "GET",
140
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
141
151
  contentType: "application/json",
142
152
  queryParameters: _queryParams,
143
153
  requestType: "json",
@@ -193,7 +203,7 @@ class V2 {
193
203
  const _response = yield core.fetcher({
194
204
  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/organization-service-facilities/v2"),
195
205
  method: "POST",
196
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
206
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
207
  contentType: "application/json",
198
208
  requestType: "json",
199
209
  body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, {
@@ -266,7 +276,7 @@ class V2 {
266
276
  const _response = yield core.fetcher({
267
277
  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/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
268
278
  method: "PATCH",
269
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
279
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
280
  contentType: "application/json",
271
281
  requestType: "json",
272
282
  body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, {
@@ -321,7 +331,7 @@ class V2 {
321
331
  const _response = yield core.fetcher({
322
332
  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/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
323
333
  method: "DELETE",
324
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
334
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
325
335
  contentType: "application/json",
326
336
  requestType: "json",
327
337
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -19,6 +19,10 @@ export interface GetAllOrganizationServiceFacilitiesRequest {
19
19
  * Filter to a name or a part of a name.
20
20
  */
21
21
  name?: string;
22
+ /**
23
+ * Filter to the provided organization service facility IDs.
24
+ */
25
+ organizationServiceFacilityIds?: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId | CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId[];
22
26
  /**
23
27
  * The page token to continue paging through a previous request.
24
28
  */
@@ -120,7 +120,7 @@ class V4 {
120
120
  const _response = yield core.fetcher({
121
121
  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/patient-payments/v4"),
122
122
  method: "GET",
123
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
126
126
  requestType: "json",
@@ -175,7 +175,7 @@ class V4 {
175
175
  const _response = yield core.fetcher({
176
176
  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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
177
177
  method: "GET",
178
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
178
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
179
179
  contentType: "application/json",
180
180
  requestType: "json",
181
181
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -247,7 +247,7 @@ class V4 {
247
247
  const _response = yield core.fetcher({
248
248
  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/patient-payments/v4"),
249
249
  method: "POST",
250
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
250
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
251
251
  contentType: "application/json",
252
252
  requestType: "json",
253
253
  body: serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
@@ -306,7 +306,7 @@ class V4 {
306
306
  const _response = yield core.fetcher({
307
307
  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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
308
308
  method: "PATCH",
309
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
309
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
310
310
  contentType: "application/json",
311
311
  requestType: "json",
312
312
  body: serializers.patientPayments.v4.PatientPaymentUpdate.jsonOrThrow(request, {
@@ -364,7 +364,7 @@ class V4 {
364
364
  const _response = yield core.fetcher({
365
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/patient-payments/v4/${encodeURIComponent(serializers.patientPayments.v4.PatientPaymentId.jsonOrThrow(patientPaymentId))}`),
366
366
  method: "DELETE",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.4.0", "User-Agent": "candidhealth/1.4.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
367
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.5.0", "User-Agent": "candidhealth/1.5.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
368
  contentType: "application/json",
369
369
  requestType: "json",
370
370
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,