candidhealth 0.40.2 → 0.40.4

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 (343) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +19 -14
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
  7. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
  8. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
  9. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
  10. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  11. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
  15. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  16. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  18. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  19. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  20. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  21. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  22. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  23. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  24. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  25. package/api/resources/diagnoses/client/Client.js +3 -3
  26. package/api/resources/eligibility/resources/v2/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 +3 -3
  34. package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  35. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  36. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  37. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  38. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  39. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  40. package/api/resources/index.d.ts +1 -0
  41. package/api/resources/index.js +3 -1
  42. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  43. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  44. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  45. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  46. package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  47. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  48. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  49. package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  50. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  51. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  52. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  53. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  54. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  55. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  56. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  57. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  58. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  59. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  60. package/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  61. package/api/resources/payerPlanGroups/client/Client.js +17 -0
  62. package/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  63. package/api/resources/payerPlanGroups/client/index.js +2 -0
  64. package/api/resources/payerPlanGroups/index.d.ts +2 -0
  65. package/api/resources/payerPlanGroups/index.js +18 -0
  66. package/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  67. package/api/resources/payerPlanGroups/resources/index.js +37 -0
  68. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  69. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  70. package/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  71. package/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  72. package/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  73. package/api/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/deactivate.js} +3 -14
  74. package/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  75. package/{dist/api/resources/insurancePayments/resources/v1/client/create.js → api/resources/payerPlanGroups/resources/v1/client/get.js} +3 -14
  76. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  77. package/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  78. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  79. package/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  80. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  81. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  82. package/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  83. package/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  84. package/api/resources/{insurancePayments → payerPlanGroups}/resources/v1/client/update.js +8 -8
  85. package/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  86. package/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  87. package/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  88. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  89. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  90. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  91. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  92. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  93. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  94. package/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  95. package/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  96. package/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  97. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  98. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  99. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  100. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  101. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  102. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  103. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  104. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  105. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  106. package/api/resources/serviceFacility/client/Client.js +1 -1
  107. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  108. package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  109. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  110. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  111. package/dist/Client.d.ts +3 -0
  112. package/dist/Client.js +19 -14
  113. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  114. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  115. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
  116. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
  117. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
  118. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
  119. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
  120. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  121. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  122. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  123. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  124. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
  125. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  126. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  127. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  128. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +5 -0
  129. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  130. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  131. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  132. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  133. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  134. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  135. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  137. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  138. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  139. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  140. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  141. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  142. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  143. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  144. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  145. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  146. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  147. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  148. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  149. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  150. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  151. package/dist/api/resources/index.d.ts +1 -0
  152. package/dist/api/resources/index.js +3 -1
  153. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  154. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  155. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  156. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  157. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  158. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  159. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  160. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  161. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  163. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  164. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  165. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  167. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  168. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  169. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  170. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  171. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +30 -0
  172. package/dist/api/resources/payerPlanGroups/client/Client.js +17 -0
  173. package/dist/api/resources/payerPlanGroups/client/index.d.ts +1 -0
  174. package/dist/api/resources/payerPlanGroups/client/index.js +2 -0
  175. package/dist/api/resources/payerPlanGroups/index.d.ts +2 -0
  176. package/dist/api/resources/payerPlanGroups/index.js +18 -0
  177. package/dist/api/resources/payerPlanGroups/resources/index.d.ts +1 -0
  178. package/dist/api/resources/payerPlanGroups/resources/index.js +37 -0
  179. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +100 -0
  180. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +435 -0
  181. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.d.ts +34 -0
  182. package/dist/api/resources/payerPlanGroups/resources/v1/client/create.js +79 -0
  183. package/dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.d.ts +34 -0
  184. package/{api/resources/insurancePayments/resources/v1/client/delete.js → dist/api/resources/payerPlanGroups/resources/v1/client/deactivate.js} +3 -14
  185. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.d.ts +34 -0
  186. package/dist/api/resources/payerPlanGroups/resources/v1/client/get.js +79 -0
  187. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +28 -0
  188. package/dist/api/resources/payerPlanGroups/resources/v1/client/getMulti.js +68 -0
  189. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +6 -0
  190. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +45 -0
  191. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +47 -0
  192. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js +5 -0
  193. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.d.ts +1 -0
  194. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/index.js +2 -0
  195. package/dist/api/resources/payerPlanGroups/resources/v1/client/update.d.ts +40 -0
  196. package/dist/api/resources/{insurancePayments → payerPlanGroups}/resources/v1/client/update.js +8 -8
  197. package/dist/api/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  198. package/dist/api/resources/payerPlanGroups/resources/v1/index.js +18 -0
  199. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +9 -0
  200. package/dist/api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +5 -0
  201. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +9 -0
  202. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +5 -0
  203. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +8 -0
  204. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js +5 -0
  205. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +7 -0
  206. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +5 -0
  207. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +9 -0
  208. package/dist/api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +11 -0
  209. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  210. package/dist/api/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  211. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  212. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  213. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  214. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  215. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  216. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  217. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  218. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  219. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  220. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  221. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  222. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  223. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  224. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  225. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  226. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  227. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  228. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  229. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  230. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  231. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  232. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  233. package/dist/serialization/resources/index.d.ts +1 -0
  234. package/dist/serialization/resources/index.js +3 -1
  235. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  236. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  237. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  238. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  239. package/dist/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  240. package/dist/serialization/resources/payerPlanGroups/index.js +17 -0
  241. package/dist/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  242. package/dist/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  243. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  244. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  245. package/dist/serialization/resources/{insurancePayments/resources/v1/client/create.d.ts → payerPlanGroups/resources/v1/client/deactivate.d.ts} +2 -7
  246. package/dist/serialization/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/deactivate.js} +2 -8
  247. package/dist/serialization/resources/{insurancePayments/resources/v1/client/delete.d.ts → payerPlanGroups/resources/v1/client/get.d.ts} +2 -7
  248. package/dist/serialization/resources/{insurancePayments/resources/v1/client/delete.js → payerPlanGroups/resources/v1/client/get.js} +2 -8
  249. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  250. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
  251. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  252. package/dist/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  253. package/{serialization/resources/insurancePayments → dist/serialization/resources/payerPlanGroups}/resources/v1/client/update.d.ts +6 -6
  254. package/{serialization/resources/insurancePayments → dist/serialization/resources/payerPlanGroups}/resources/v1/client/update.js +7 -7
  255. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  256. package/dist/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  257. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  258. package/{serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → dist/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js} +7 -9
  259. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  260. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  261. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  262. package/dist/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js} +6 -6
  263. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  264. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  265. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  266. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  267. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  268. package/dist/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  269. package/dist/version.d.ts +1 -1
  270. package/dist/version.js +1 -1
  271. package/package.json +1 -1
  272. package/reference.md +393 -231
  273. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  274. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  275. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  276. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +45 -0
  277. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  278. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  279. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  280. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  281. package/serialization/resources/index.d.ts +1 -0
  282. package/serialization/resources/index.js +3 -1
  283. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  284. package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  285. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  286. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  287. package/serialization/resources/payerPlanGroups/index.d.ts +1 -0
  288. package/serialization/resources/payerPlanGroups/index.js +17 -0
  289. package/serialization/resources/payerPlanGroups/resources/index.d.ts +1 -0
  290. package/serialization/resources/payerPlanGroups/resources/index.js +37 -0
  291. package/serialization/resources/payerPlanGroups/resources/v1/client/create.d.ts +20 -0
  292. package/serialization/resources/payerPlanGroups/resources/v1/client/create.js +77 -0
  293. package/serialization/resources/{insurancePayments/resources/v1/client/create.d.ts → payerPlanGroups/resources/v1/client/deactivate.d.ts} +2 -7
  294. package/{dist/serialization/resources/insurancePayments/resources/v1/client/update.js → serialization/resources/payerPlanGroups/resources/v1/client/deactivate.js} +2 -8
  295. package/{dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts → serialization/resources/payerPlanGroups/resources/v1/client/get.d.ts} +2 -7
  296. package/serialization/resources/{insurancePayments/resources/v1/client/create.js → payerPlanGroups/resources/v1/client/get.js} +2 -8
  297. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.d.ts +15 -0
  298. package/serialization/resources/payerPlanGroups/resources/v1/client/getMulti.js +71 -0
  299. package/serialization/resources/payerPlanGroups/resources/v1/client/index.d.ts +5 -0
  300. package/serialization/resources/payerPlanGroups/resources/v1/client/index.js +41 -0
  301. package/serialization/resources/payerPlanGroups/resources/v1/client/update.d.ts +25 -0
  302. package/serialization/resources/payerPlanGroups/resources/v1/client/update.js +83 -0
  303. package/serialization/resources/payerPlanGroups/resources/v1/index.d.ts +2 -0
  304. package/serialization/resources/payerPlanGroups/resources/v1/index.js +18 -0
  305. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.d.ts +16 -0
  306. package/serialization/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js +47 -0
  307. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.d.ts +17 -0
  308. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js +50 -0
  309. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.d.ts +14 -0
  310. package/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → payerPlanGroups/resources/v1/types/PayerPlanGroupAlreadyExistsError.js} +6 -6
  311. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.d.ts +14 -0
  312. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupPage.js +47 -0
  313. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.d.ts +10 -0
  314. package/serialization/resources/payerPlanGroups/resources/v1/types/PayerPlanGroupSortField.js +41 -0
  315. package/serialization/resources/payerPlanGroups/resources/v1/types/index.d.ts +5 -0
  316. package/serialization/resources/payerPlanGroups/resources/v1/types/index.js +21 -0
  317. package/version.d.ts +1 -1
  318. package/version.js +1 -1
  319. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  320. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  321. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  322. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  323. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  324. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  325. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  326. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  327. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  328. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  329. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  330. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  331. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  332. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  333. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  334. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  335. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  336. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  337. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  338. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  339. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  340. /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
  341. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.js} +0 -0
  342. /package/{dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → api/resources/payerPlanGroups/resources/v1/types/MutablePayerPlanGroup.js} +0 -0
  343. /package/{dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → api/resources/payerPlanGroups/resources/v1/types/PayerPlanGroup.js} +0 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.v1 = void 0;
37
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,100 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../../index";
7
+ export declare namespace V1 {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
12
+ token?: core.Supplier<core.BearerToken | undefined>;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class V1 {
26
+ protected readonly _options: V1.Options;
27
+ constructor(_options?: V1.Options);
28
+ /**
29
+ * Returns all payer plan groups matching filter criteria.
30
+ *
31
+ * @param {CandidApi.payerPlanGroups.v1.PayerPlanGroupGetMultiRequest} request
32
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @example
35
+ * await client.payerPlanGroups.v1.getMulti({
36
+ * planGroupName: "string",
37
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
38
+ * payerId: CandidApi.payers.v3.PayerId("string"),
39
+ * planType: "09",
40
+ * isActive: true,
41
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
42
+ * limit: 1,
43
+ * sortBySimilarity: "string",
44
+ * sort: "plan_group_name",
45
+ * sortDirection: "asc",
46
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
47
+ * })
48
+ */
49
+ getMulti(request?: CandidApi.payerPlanGroups.v1.PayerPlanGroupGetMultiRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.payerPlanGroups.v1.PayerPlanGroupPage, CandidApi.payerPlanGroups.v1.getMulti.Error>>;
50
+ /**
51
+ * Return a plan group with a given ID.
52
+ *
53
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
54
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
55
+ *
56
+ * @example
57
+ * await client.payerPlanGroups.v1.get(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
58
+ */
59
+ get(payerPlanGroupId: CandidApi.PayerPlanGroupId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.payerPlanGroups.v1.PayerPlanGroup, CandidApi.payerPlanGroups.v1.get.Error>>;
60
+ /**
61
+ * Create a payer plan group
62
+ *
63
+ * @param {CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup} request
64
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
65
+ *
66
+ * @example
67
+ * await client.payerPlanGroups.v1.create({
68
+ * planGroupName: "string",
69
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
70
+ * planType: "09"
71
+ * })
72
+ */
73
+ create(request: CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.payerPlanGroups.v1.PayerPlanGroup, CandidApi.payerPlanGroups.v1.create.Error>>;
74
+ /**
75
+ * Update any of the fields on a payer plan group
76
+ *
77
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
78
+ * @param {CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup} request
79
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
80
+ *
81
+ * @example
82
+ * await client.payerPlanGroups.v1.update(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
83
+ * planGroupName: "string",
84
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
85
+ * planType: "09"
86
+ * })
87
+ */
88
+ update(payerPlanGroupId: CandidApi.PayerPlanGroupId, request: CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.payerPlanGroups.v1.PayerPlanGroup, CandidApi.payerPlanGroups.v1.update.Error>>;
89
+ /**
90
+ * Marks the payer plan group as deactivated
91
+ *
92
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
93
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
94
+ *
95
+ * @example
96
+ * await client.payerPlanGroups.v1.deactivate(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
97
+ */
98
+ deactivate(payerPlanGroupId: CandidApi.PayerPlanGroupId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.payerPlanGroups.v1.PayerPlanGroup, CandidApi.payerPlanGroups.v1.deactivate.Error>>;
99
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
100
+ }
@@ -0,0 +1,435 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ var __importDefault = (this && this.__importDefault) || function (mod) {
48
+ return (mod && mod.__esModule) ? mod : { "default": mod };
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.V1 = void 0;
52
+ const environments = __importStar(require("../../../../../../environments"));
53
+ const core = __importStar(require("../../../../../../core"));
54
+ const CandidApi = __importStar(require("../../../../../index"));
55
+ const serializers = __importStar(require("../../../../../../serialization/index"));
56
+ const url_join_1 = __importDefault(require("url-join"));
57
+ class V1 {
58
+ constructor(_options = {}) {
59
+ this._options = _options;
60
+ }
61
+ /**
62
+ * Returns all payer plan groups matching filter criteria.
63
+ *
64
+ * @param {CandidApi.payerPlanGroups.v1.PayerPlanGroupGetMultiRequest} request
65
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
66
+ *
67
+ * @example
68
+ * await client.payerPlanGroups.v1.getMulti({
69
+ * planGroupName: "string",
70
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
71
+ * payerId: CandidApi.payers.v3.PayerId("string"),
72
+ * planType: "09",
73
+ * isActive: true,
74
+ * payerPlanGroupId: CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
75
+ * limit: 1,
76
+ * sortBySimilarity: "string",
77
+ * sort: "plan_group_name",
78
+ * sortDirection: "asc",
79
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
80
+ * })
81
+ */
82
+ getMulti() {
83
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
84
+ var _a, _b, _c;
85
+ const { planGroupName, payerUuid, payerId, planType, isActive, payerPlanGroupId, limit, sortBySimilarity, sort, sortDirection, pageToken, } = request;
86
+ const _queryParams = {};
87
+ if (planGroupName != null) {
88
+ if (Array.isArray(planGroupName)) {
89
+ _queryParams["plan_group_name"] = planGroupName.map((item) => item);
90
+ }
91
+ else {
92
+ _queryParams["plan_group_name"] = planGroupName;
93
+ }
94
+ }
95
+ if (payerUuid != null) {
96
+ if (Array.isArray(payerUuid)) {
97
+ _queryParams["payer_uuid"] = payerUuid.map((item) => serializers.payers.v3.PayerUuid.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
98
+ }
99
+ else {
100
+ _queryParams["payer_uuid"] = payerUuid;
101
+ }
102
+ }
103
+ if (payerId != null) {
104
+ if (Array.isArray(payerId)) {
105
+ _queryParams["payer_id"] = payerId.map((item) => serializers.payers.v3.PayerId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
106
+ }
107
+ else {
108
+ _queryParams["payer_id"] = payerId;
109
+ }
110
+ }
111
+ if (planType != null) {
112
+ if (Array.isArray(planType)) {
113
+ _queryParams["plan_type"] = planType.map((item) => serializers.SourceOfPaymentCode.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
114
+ }
115
+ else {
116
+ _queryParams["plan_type"] = serializers.SourceOfPaymentCode.jsonOrThrow(planType, {
117
+ unrecognizedObjectKeys: "strip",
118
+ });
119
+ }
120
+ }
121
+ if (isActive != null) {
122
+ _queryParams["is_active"] = isActive.toString();
123
+ }
124
+ if (payerPlanGroupId != null) {
125
+ if (Array.isArray(payerPlanGroupId)) {
126
+ _queryParams["payer_plan_group_id"] = payerPlanGroupId.map((item) => serializers.PayerPlanGroupId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" }));
127
+ }
128
+ else {
129
+ _queryParams["payer_plan_group_id"] = payerPlanGroupId;
130
+ }
131
+ }
132
+ if (limit != null) {
133
+ _queryParams["limit"] = limit.toString();
134
+ }
135
+ if (sortBySimilarity != null) {
136
+ _queryParams["sort_by_similarity"] = sortBySimilarity;
137
+ }
138
+ if (sort != null) {
139
+ _queryParams["sort"] = serializers.payerPlanGroups.v1.PayerPlanGroupSortField.jsonOrThrow(sort, {
140
+ unrecognizedObjectKeys: "strip",
141
+ });
142
+ }
143
+ if (sortDirection != null) {
144
+ _queryParams["sort_direction"] = serializers.SortDirection.jsonOrThrow(sortDirection, {
145
+ unrecognizedObjectKeys: "strip",
146
+ });
147
+ }
148
+ if (pageToken != null) {
149
+ _queryParams["page_token"] = pageToken;
150
+ }
151
+ const _response = yield core.fetcher({
152
+ 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/payer-plan-groups/v1"),
153
+ method: "GET",
154
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
155
+ contentType: "application/json",
156
+ queryParameters: _queryParams,
157
+ requestType: "json",
158
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
159
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
160
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
161
+ });
162
+ if (_response.ok) {
163
+ return {
164
+ ok: true,
165
+ body: serializers.payerPlanGroups.v1.PayerPlanGroupPage.parseOrThrow(_response.body, {
166
+ unrecognizedObjectKeys: "passthrough",
167
+ allowUnrecognizedUnionMembers: true,
168
+ allowUnrecognizedEnumValues: true,
169
+ breadcrumbsPrefix: ["response"],
170
+ }),
171
+ };
172
+ }
173
+ if (_response.error.reason === "status-code") {
174
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
175
+ case "UnprocessableEntityError":
176
+ return {
177
+ ok: false,
178
+ error: serializers.payerPlanGroups.v1.getMulti.Error.parseOrThrow(_response.error.body, {
179
+ unrecognizedObjectKeys: "passthrough",
180
+ allowUnrecognizedUnionMembers: true,
181
+ allowUnrecognizedEnumValues: true,
182
+ breadcrumbsPrefix: ["response"],
183
+ }),
184
+ };
185
+ }
186
+ }
187
+ return {
188
+ ok: false,
189
+ error: CandidApi.payerPlanGroups.v1.getMulti.Error._unknown(_response.error),
190
+ };
191
+ });
192
+ }
193
+ /**
194
+ * Return a plan group with a given ID.
195
+ *
196
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
197
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
198
+ *
199
+ * @example
200
+ * await client.payerPlanGroups.v1.get(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
201
+ */
202
+ get(payerPlanGroupId, requestOptions) {
203
+ return __awaiter(this, void 0, void 0, function* () {
204
+ var _a, _b, _c;
205
+ const _response = yield core.fetcher({
206
+ 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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
207
+ method: "GET",
208
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
209
+ contentType: "application/json",
210
+ requestType: "json",
211
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
212
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
213
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
214
+ });
215
+ if (_response.ok) {
216
+ return {
217
+ ok: true,
218
+ body: serializers.payerPlanGroups.v1.PayerPlanGroup.parseOrThrow(_response.body, {
219
+ unrecognizedObjectKeys: "passthrough",
220
+ allowUnrecognizedUnionMembers: true,
221
+ allowUnrecognizedEnumValues: true,
222
+ breadcrumbsPrefix: ["response"],
223
+ }),
224
+ };
225
+ }
226
+ if (_response.error.reason === "status-code") {
227
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
228
+ case "EntityNotFoundError":
229
+ case "UnauthorizedError":
230
+ return {
231
+ ok: false,
232
+ error: serializers.payerPlanGroups.v1.get.Error.parseOrThrow(_response.error.body, {
233
+ unrecognizedObjectKeys: "passthrough",
234
+ allowUnrecognizedUnionMembers: true,
235
+ allowUnrecognizedEnumValues: true,
236
+ breadcrumbsPrefix: ["response"],
237
+ }),
238
+ };
239
+ }
240
+ }
241
+ return {
242
+ ok: false,
243
+ error: CandidApi.payerPlanGroups.v1.get.Error._unknown(_response.error),
244
+ };
245
+ });
246
+ }
247
+ /**
248
+ * Create a payer plan group
249
+ *
250
+ * @param {CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup} request
251
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
252
+ *
253
+ * @example
254
+ * await client.payerPlanGroups.v1.create({
255
+ * planGroupName: "string",
256
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
257
+ * planType: "09"
258
+ * })
259
+ */
260
+ create(request, requestOptions) {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ var _a, _b, _c;
263
+ const _response = yield core.fetcher({
264
+ 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/payer-plan-groups/v1"),
265
+ method: "POST",
266
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
267
+ contentType: "application/json",
268
+ requestType: "json",
269
+ body: serializers.payerPlanGroups.v1.MutablePayerPlanGroup.jsonOrThrow(request, {
270
+ unrecognizedObjectKeys: "strip",
271
+ }),
272
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
273
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
274
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
275
+ });
276
+ if (_response.ok) {
277
+ return {
278
+ ok: true,
279
+ body: serializers.payerPlanGroups.v1.PayerPlanGroup.parseOrThrow(_response.body, {
280
+ unrecognizedObjectKeys: "passthrough",
281
+ allowUnrecognizedUnionMembers: true,
282
+ allowUnrecognizedEnumValues: true,
283
+ breadcrumbsPrefix: ["response"],
284
+ }),
285
+ };
286
+ }
287
+ if (_response.error.reason === "status-code") {
288
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
289
+ case "EntityNotFoundError":
290
+ case "PayerPlanGroupAlreadyExistsHttpError":
291
+ return {
292
+ ok: false,
293
+ error: serializers.payerPlanGroups.v1.create.Error.parseOrThrow(_response.error.body, {
294
+ unrecognizedObjectKeys: "passthrough",
295
+ allowUnrecognizedUnionMembers: true,
296
+ allowUnrecognizedEnumValues: true,
297
+ breadcrumbsPrefix: ["response"],
298
+ }),
299
+ };
300
+ }
301
+ }
302
+ return {
303
+ ok: false,
304
+ error: CandidApi.payerPlanGroups.v1.create.Error._unknown(_response.error),
305
+ };
306
+ });
307
+ }
308
+ /**
309
+ * Update any of the fields on a payer plan group
310
+ *
311
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
312
+ * @param {CandidApi.payerPlanGroups.v1.MutablePayerPlanGroup} request
313
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
314
+ *
315
+ * @example
316
+ * await client.payerPlanGroups.v1.update(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
317
+ * planGroupName: "string",
318
+ * payerUuid: CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
319
+ * planType: "09"
320
+ * })
321
+ */
322
+ update(payerPlanGroupId, request, requestOptions) {
323
+ return __awaiter(this, void 0, void 0, function* () {
324
+ var _a, _b, _c;
325
+ const _response = yield core.fetcher({
326
+ 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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
327
+ method: "PUT",
328
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
329
+ contentType: "application/json",
330
+ requestType: "json",
331
+ body: serializers.payerPlanGroups.v1.MutablePayerPlanGroup.jsonOrThrow(request, {
332
+ unrecognizedObjectKeys: "strip",
333
+ }),
334
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
335
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
336
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
337
+ });
338
+ if (_response.ok) {
339
+ return {
340
+ ok: true,
341
+ body: serializers.payerPlanGroups.v1.PayerPlanGroup.parseOrThrow(_response.body, {
342
+ unrecognizedObjectKeys: "passthrough",
343
+ allowUnrecognizedUnionMembers: true,
344
+ allowUnrecognizedEnumValues: true,
345
+ breadcrumbsPrefix: ["response"],
346
+ }),
347
+ };
348
+ }
349
+ if (_response.error.reason === "status-code") {
350
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
351
+ case "EntityNotFoundError":
352
+ case "UnauthorizedError":
353
+ case "PayerPlanGroupAlreadyExistsHttpError":
354
+ return {
355
+ ok: false,
356
+ error: serializers.payerPlanGroups.v1.update.Error.parseOrThrow(_response.error.body, {
357
+ unrecognizedObjectKeys: "passthrough",
358
+ allowUnrecognizedUnionMembers: true,
359
+ allowUnrecognizedEnumValues: true,
360
+ breadcrumbsPrefix: ["response"],
361
+ }),
362
+ };
363
+ }
364
+ }
365
+ return {
366
+ ok: false,
367
+ error: CandidApi.payerPlanGroups.v1.update.Error._unknown(_response.error),
368
+ };
369
+ });
370
+ }
371
+ /**
372
+ * Marks the payer plan group as deactivated
373
+ *
374
+ * @param {CandidApi.PayerPlanGroupId} payerPlanGroupId
375
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
376
+ *
377
+ * @example
378
+ * await client.payerPlanGroups.v1.deactivate(CandidApi.PayerPlanGroupId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
379
+ */
380
+ deactivate(payerPlanGroupId, requestOptions) {
381
+ return __awaiter(this, void 0, void 0, function* () {
382
+ var _a, _b, _c;
383
+ const _response = yield core.fetcher({
384
+ 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/payer-plan-groups/v1/${encodeURIComponent(serializers.PayerPlanGroupId.jsonOrThrow(payerPlanGroupId))}`),
385
+ method: "PATCH",
386
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.4", "User-Agent": "candidhealth/0.40.4", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
387
+ contentType: "application/json",
388
+ requestType: "json",
389
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
390
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
391
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
392
+ });
393
+ if (_response.ok) {
394
+ return {
395
+ ok: true,
396
+ body: serializers.payerPlanGroups.v1.PayerPlanGroup.parseOrThrow(_response.body, {
397
+ unrecognizedObjectKeys: "passthrough",
398
+ allowUnrecognizedUnionMembers: true,
399
+ allowUnrecognizedEnumValues: true,
400
+ breadcrumbsPrefix: ["response"],
401
+ }),
402
+ };
403
+ }
404
+ if (_response.error.reason === "status-code") {
405
+ switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
406
+ case "EntityNotFoundError":
407
+ case "UnauthorizedError":
408
+ return {
409
+ ok: false,
410
+ error: serializers.payerPlanGroups.v1.deactivate.Error.parseOrThrow(_response.error.body, {
411
+ unrecognizedObjectKeys: "passthrough",
412
+ allowUnrecognizedUnionMembers: true,
413
+ allowUnrecognizedEnumValues: true,
414
+ breadcrumbsPrefix: ["response"],
415
+ }),
416
+ };
417
+ }
418
+ }
419
+ return {
420
+ ok: false,
421
+ error: CandidApi.payerPlanGroups.v1.deactivate.Error._unknown(_response.error),
422
+ };
423
+ });
424
+ }
425
+ _getAuthorizationHeader() {
426
+ return __awaiter(this, void 0, void 0, function* () {
427
+ const bearer = yield core.Supplier.get(this._options.token);
428
+ if (bearer != null) {
429
+ return `Bearer ${bearer}`;
430
+ }
431
+ return undefined;
432
+ });
433
+ }
434
+ }
435
+ exports.V1 = V1;
@@ -0,0 +1,34 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.payerPlanGroups.v1.create.Error.EntityNotFoundError | CandidApi.payerPlanGroups.v1.create.Error.PayerPlanGroupAlreadyExistsHttpError | CandidApi.payerPlanGroups.v1.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface PayerPlanGroupAlreadyExistsHttpError extends _Utils {
13
+ errorName: "PayerPlanGroupAlreadyExistsHttpError";
14
+ content: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError;
15
+ }
16
+ interface _Unknown extends _Utils {
17
+ errorName: void;
18
+ content: core.Fetcher.Error;
19
+ }
20
+ interface _Utils {
21
+ _visit: <_Result>(visitor: CandidApi.payerPlanGroups.v1.create.Error._Visitor<_Result>) => _Result;
22
+ }
23
+ interface _Visitor<_Result> {
24
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
+ payerPlanGroupAlreadyExistsHttpError: (value: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError) => _Result;
26
+ _other: (value: core.Fetcher.Error) => _Result;
27
+ }
28
+ }
29
+ export declare const Error: {
30
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.payerPlanGroups.v1.create.Error.EntityNotFoundError;
31
+ readonly payerPlanGroupAlreadyExistsHttpError: (value: CandidApi.payerPlanGroups.v1.PayerPlanGroupAlreadyExistsError) => CandidApi.payerPlanGroups.v1.create.Error.PayerPlanGroupAlreadyExistsHttpError;
32
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payerPlanGroups.v1.create.Error._Unknown;
33
+ readonly _visit: <_Result>(value: CandidApi.payerPlanGroups.v1.create.Error, visitor: CandidApi.payerPlanGroups.v1.create.Error._Visitor<_Result>) => _Result;
34
+ };