candidhealth 0.15.0 → 0.16.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 (257) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +23 -18
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  5. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  6. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  7. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  8. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  9. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  10. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  11. package/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  12. package/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  13. package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  14. package/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  15. package/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  16. package/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  17. package/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  18. package/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  19. package/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  20. package/api/resources/financials/types/index.d.ts +3 -0
  21. package/api/resources/financials/types/index.js +3 -0
  22. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  23. package/api/resources/index.d.ts +1 -0
  24. package/api/resources/index.js +2 -1
  25. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  26. package/api/resources/insurancePayments/client/Client.d.ts +18 -0
  27. package/api/resources/insurancePayments/client/Client.js +18 -0
  28. package/api/resources/insurancePayments/client/index.d.ts +1 -0
  29. package/api/resources/insurancePayments/client/index.js +2 -0
  30. package/api/resources/insurancePayments/index.d.ts +2 -0
  31. package/api/resources/insurancePayments/index.js +18 -0
  32. package/api/resources/insurancePayments/resources/index.d.ts +1 -0
  33. package/api/resources/insurancePayments/resources/index.js +27 -0
  34. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  35. package/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  36. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  37. package/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  38. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  39. package/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  40. package/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  41. package/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  42. package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  43. package/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  44. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  45. package/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  46. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  47. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  48. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  49. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  50. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  51. package/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  52. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  53. package/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  54. package/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  55. package/api/resources/insurancePayments/resources/v1/index.js +18 -0
  56. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  57. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  58. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  59. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  60. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  61. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  62. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  63. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  64. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  65. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  66. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  67. package/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  68. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  69. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  70. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  71. package/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  72. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  73. package/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  74. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  75. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  76. package/api/resources/serviceFacility/client/Client.js +1 -1
  77. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  78. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  79. package/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  80. package/api/resources/x12/resources/v1/types/Carc.js +1 -0
  81. package/dist/Client.d.ts +3 -0
  82. package/dist/Client.js +23 -18
  83. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  84. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  85. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  86. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  87. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  88. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  89. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  90. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  91. package/dist/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  92. package/dist/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  93. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  94. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  95. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  96. package/dist/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  97. package/dist/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  98. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  99. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  100. package/dist/api/resources/financials/types/index.d.ts +3 -0
  101. package/dist/api/resources/financials/types/index.js +3 -0
  102. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  103. package/dist/api/resources/index.d.ts +1 -0
  104. package/dist/api/resources/index.js +2 -1
  105. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  106. package/dist/api/resources/insurancePayments/client/Client.d.ts +18 -0
  107. package/dist/api/resources/insurancePayments/client/Client.js +18 -0
  108. package/dist/api/resources/insurancePayments/client/index.d.ts +1 -0
  109. package/dist/api/resources/insurancePayments/client/index.js +2 -0
  110. package/dist/api/resources/insurancePayments/index.d.ts +2 -0
  111. package/dist/api/resources/insurancePayments/index.js +18 -0
  112. package/dist/api/resources/insurancePayments/resources/index.d.ts +1 -0
  113. package/dist/api/resources/insurancePayments/resources/index.js +27 -0
  114. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  115. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  116. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  117. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  118. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  119. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  120. package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  121. package/dist/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  122. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  123. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  124. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  125. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  126. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  127. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  128. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  129. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  130. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  131. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  132. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  133. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  134. package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  135. package/dist/api/resources/insurancePayments/resources/v1/index.js +18 -0
  136. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  137. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  138. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  139. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  140. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  141. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  142. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  143. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  144. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  145. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  146. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  147. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  148. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  149. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  150. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  151. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  152. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  153. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  154. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  155. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  156. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  157. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  158. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  159. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  160. package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
  161. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  162. package/dist/serialization/resources/financials/types/AllocationTarget.js +3 -9
  163. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  164. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  165. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  166. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  167. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  168. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  169. package/dist/serialization/resources/financials/types/index.d.ts +3 -0
  170. package/dist/serialization/resources/financials/types/index.js +3 -0
  171. package/dist/serialization/resources/index.d.ts +1 -0
  172. package/dist/serialization/resources/index.js +2 -1
  173. package/dist/serialization/resources/insurancePayments/index.d.ts +1 -0
  174. package/dist/serialization/resources/insurancePayments/index.js +17 -0
  175. package/dist/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  176. package/dist/serialization/resources/insurancePayments/resources/index.js +27 -0
  177. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  178. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  179. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  180. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  181. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  182. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  183. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  184. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  185. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  186. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  187. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  188. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  189. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  190. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  191. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  192. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  193. package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  194. package/dist/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  195. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  196. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  197. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  198. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  199. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  200. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  201. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  202. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  203. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  204. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  205. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  206. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  207. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  208. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  209. package/package.json +1 -1
  210. package/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  211. package/serialization/resources/financials/types/AllocationTarget.js +3 -9
  212. package/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  213. package/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  214. package/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  215. package/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  216. package/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  217. package/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  218. package/serialization/resources/financials/types/index.d.ts +3 -0
  219. package/serialization/resources/financials/types/index.js +3 -0
  220. package/serialization/resources/index.d.ts +1 -0
  221. package/serialization/resources/index.js +2 -1
  222. package/serialization/resources/insurancePayments/index.d.ts +1 -0
  223. package/serialization/resources/insurancePayments/index.js +17 -0
  224. package/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  225. package/serialization/resources/insurancePayments/resources/index.js +27 -0
  226. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  227. package/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  228. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  229. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  230. package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  231. package/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  232. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  233. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  234. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  235. package/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  236. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  237. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  238. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  239. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  240. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  241. package/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  242. package/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  243. package/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  244. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  245. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  246. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  247. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  248. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  249. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  250. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  251. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  252. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  253. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  254. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  255. package/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  256. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  257. package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
@@ -47,7 +47,7 @@ class V1 {
47
47
  *
48
48
  */
49
49
  async getMulti(request = {}) {
50
- const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, invoiceId, sources, sort, sortDirection, pageToken, } = request;
50
+ const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, unattributed, invoiceId, sources, sort, sortDirection, pageToken, } = request;
51
51
  const _queryParams = new url_search_params_1.default();
52
52
  if (limit != null) {
53
53
  _queryParams.append("limit", limit.toString());
@@ -64,6 +64,9 @@ class V1 {
64
64
  if (billingProviderId != null) {
65
65
  _queryParams.append("billing_provider_id", billingProviderId);
66
66
  }
67
+ if (unattributed != null) {
68
+ _queryParams.append("unattributed", unattributed.toString());
69
+ }
67
70
  if (invoiceId != null) {
68
71
  _queryParams.append("invoice_id", invoiceId);
69
72
  }
@@ -93,7 +96,7 @@ class V1 {
93
96
  Authorization: await this._getAuthorizationHeader(),
94
97
  "X-Fern-Language": "JavaScript",
95
98
  "X-Fern-SDK-Name": "candidhealth",
96
- "X-Fern-SDK-Version": "0.15.0",
99
+ "X-Fern-SDK-Version": "0.16.0",
97
100
  },
98
101
  contentType: "application/json",
99
102
  queryParameters: _queryParams,
@@ -127,7 +130,7 @@ class V1 {
127
130
  Authorization: await this._getAuthorizationHeader(),
128
131
  "X-Fern-Language": "JavaScript",
129
132
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.15.0",
133
+ "X-Fern-SDK-Version": "0.16.0",
131
134
  },
132
135
  contentType: "application/json",
133
136
  timeoutMs: 60000,
@@ -162,7 +165,7 @@ class V1 {
162
165
  Authorization: await this._getAuthorizationHeader(),
163
166
  "X-Fern-Language": "JavaScript",
164
167
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.15.0",
168
+ "X-Fern-SDK-Version": "0.16.0",
166
169
  },
167
170
  contentType: "application/json",
168
171
  body: await serializers.patientRefunds.v1.PatientRefundCreate.jsonOrThrow(request, {
@@ -198,7 +201,7 @@ class V1 {
198
201
  Authorization: await this._getAuthorizationHeader(),
199
202
  "X-Fern-Language": "JavaScript",
200
203
  "X-Fern-SDK-Name": "candidhealth",
201
- "X-Fern-SDK-Version": "0.15.0",
204
+ "X-Fern-SDK-Version": "0.16.0",
202
205
  },
203
206
  contentType: "application/json",
204
207
  body: await serializers.patientRefunds.v1.PatientRefundUpdate.jsonOrThrow(request, {
@@ -234,7 +237,7 @@ class V1 {
234
237
  Authorization: await this._getAuthorizationHeader(),
235
238
  "X-Fern-Language": "JavaScript",
236
239
  "X-Fern-SDK-Name": "candidhealth",
237
- "X-Fern-SDK-Version": "0.15.0",
240
+ "X-Fern-SDK-Version": "0.16.0",
238
241
  },
239
242
  contentType: "application/json",
240
243
  timeoutMs: 60000,
@@ -11,6 +11,10 @@ export interface GetMultiPatientRefundsRequest {
11
11
  claimId?: CandidApi.ClaimId;
12
12
  serviceLineId?: CandidApi.ServiceLineId;
13
13
  billingProviderId?: CandidApi.ProviderId;
14
+ /**
15
+ * returns payments with unattributed allocations if set to true
16
+ */
17
+ unattributed?: boolean;
14
18
  invoiceId?: CandidApi.InvoiceId;
15
19
  sources?: CandidApi.PatientTransactionSource | CandidApi.PatientTransactionSource[];
16
20
  /**
@@ -49,7 +49,7 @@ class V3 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.15.0",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -89,7 +89,7 @@ class V3 {
89
89
  Authorization: await this._getAuthorizationHeader(),
90
90
  "X-Fern-Language": "JavaScript",
91
91
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.15.0",
92
+ "X-Fern-SDK-Version": "0.16.0",
93
93
  },
94
94
  contentType: "application/json",
95
95
  queryParameters: _queryParams,
@@ -48,7 +48,7 @@ class ServiceFacility {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.15.0",
51
+ "X-Fern-SDK-Version": "0.16.0",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, {
@@ -49,7 +49,7 @@ class V3 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.15.0",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -119,7 +119,7 @@ class V3 {
119
119
  Authorization: await this._getAuthorizationHeader(),
120
120
  "X-Fern-Language": "JavaScript",
121
121
  "X-Fern-SDK-Name": "candidhealth",
122
- "X-Fern-SDK-Version": "0.15.0",
122
+ "X-Fern-SDK-Version": "0.16.0",
123
123
  },
124
124
  contentType: "application/json",
125
125
  queryParameters: _queryParams,
@@ -163,7 +163,7 @@ class V3 {
163
163
  Authorization: await this._getAuthorizationHeader(),
164
164
  "X-Fern-Language": "JavaScript",
165
165
  "X-Fern-SDK-Name": "candidhealth",
166
- "X-Fern-SDK-Version": "0.15.0",
166
+ "X-Fern-SDK-Version": "0.16.0",
167
167
  },
168
168
  contentType: "application/json",
169
169
  timeoutMs: 60000,
@@ -207,7 +207,7 @@ class V3 {
207
207
  Authorization: await this._getAuthorizationHeader(),
208
208
  "X-Fern-Language": "JavaScript",
209
209
  "X-Fern-SDK-Name": "candidhealth",
210
- "X-Fern-SDK-Version": "0.15.0",
210
+ "X-Fern-SDK-Version": "0.16.0",
211
211
  },
212
212
  contentType: "application/json",
213
213
  body: await serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -237,7 +237,7 @@ class V3 {
237
237
  Authorization: await this._getAuthorizationHeader(),
238
238
  "X-Fern-Language": "JavaScript",
239
239
  "X-Fern-SDK-Name": "candidhealth",
240
- "X-Fern-SDK-Version": "0.15.0",
240
+ "X-Fern-SDK-Version": "0.16.0",
241
241
  },
242
242
  contentType: "application/json",
243
243
  body: await serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -92,7 +92,7 @@ class V1 {
92
92
  Authorization: await this._getAuthorizationHeader(),
93
93
  "X-Fern-Language": "JavaScript",
94
94
  "X-Fern-SDK-Name": "candidhealth",
95
- "X-Fern-SDK-Version": "0.15.0",
95
+ "X-Fern-SDK-Version": "0.16.0",
96
96
  },
97
97
  contentType: "application/json",
98
98
  queryParameters: _queryParams,
@@ -126,7 +126,7 @@ class V1 {
126
126
  Authorization: await this._getAuthorizationHeader(),
127
127
  "X-Fern-Language": "JavaScript",
128
128
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.15.0",
129
+ "X-Fern-SDK-Version": "0.16.0",
130
130
  },
131
131
  contentType: "application/json",
132
132
  timeoutMs: 60000,
@@ -161,7 +161,7 @@ class V1 {
161
161
  Authorization: await this._getAuthorizationHeader(),
162
162
  "X-Fern-Language": "JavaScript",
163
163
  "X-Fern-SDK-Name": "candidhealth",
164
- "X-Fern-SDK-Version": "0.15.0",
164
+ "X-Fern-SDK-Version": "0.16.0",
165
165
  },
166
166
  contentType: "application/json",
167
167
  body: await serializers.writeOffs.v1.CreateWriteOffsRequest.jsonOrThrow(request, {
@@ -197,7 +197,7 @@ class V1 {
197
197
  Authorization: await this._getAuthorizationHeader(),
198
198
  "X-Fern-Language": "JavaScript",
199
199
  "X-Fern-SDK-Name": "candidhealth",
200
- "X-Fern-SDK-Version": "0.15.0",
200
+ "X-Fern-SDK-Version": "0.16.0",
201
201
  },
202
202
  contentType: "application/json",
203
203
  timeoutMs: 60000,
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export declare type Carc = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32";
4
+ export declare type Carc = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13" | "14" | "16" | "18" | "19" | "20" | "21" | "22" | "23" | "24" | "26" | "27" | "29" | "31" | "32" | "33" | "34" | "35" | "39" | "40" | "44" | "45" | "49" | "50" | "51" | "53" | "54" | "55" | "56" | "58" | "59" | "60" | "61" | "66" | "69" | "70" | "74" | "75" | "76" | "78" | "85" | "89" | "90" | "91" | "94" | "95" | "96" | "97" | "100" | "101" | "102" | "103" | "104" | "105" | "106" | "107" | "108" | "109" | "110" | "111" | "112" | "114" | "115" | "116" | "117" | "118" | "119" | "121" | "122" | "125" | "128" | "129" | "130" | "131" | "132" | "133" | "134" | "135" | "136" | "137" | "139" | "140" | "142" | "143" | "144" | "146" | "147" | "148" | "149" | "150" | "151" | "152" | "153" | "154" | "155" | "157" | "158" | "159" | "160" | "161" | "163" | "164" | "166" | "167" | "169" | "170" | "171" | "172" | "173" | "174" | "175" | "176" | "177" | "178" | "179" | "180" | "181" | "182" | "183" | "184" | "185" | "186" | "187" | "188" | "189" | "190" | "192" | "193" | "194" | "195" | "197" | "198" | "199" | "200" | "201" | "202" | "203" | "204" | "205" | "206" | "207" | "208" | "209" | "210" | "211" | "212" | "213" | "215" | "216" | "219" | "222" | "223" | "224" | "225" | "226" | "227" | "228" | "229" | "231" | "232" | "233" | "234" | "235" | "236" | "237" | "238" | "239" | "240" | "241" | "242" | "243" | "245" | "246" | "247" | "248" | "249" | "250" | "251" | "252" | "253" | "254" | "256" | "257" | "258" | "259" | "260" | "261" | "262" | "263" | "264" | "265" | "266" | "267" | "268" | "269" | "270" | "271" | "272" | "273" | "274" | "275" | "276" | "277" | "278" | "279" | "280" | "281" | "282" | "283" | "284" | "285" | "286" | "287" | "288" | "289" | "290" | "291" | "292" | "293" | "294" | "295" | "296" | "297" | "298" | "299" | "300" | "301" | "302" | "303" | "304" | "305" | "A0" | "A1" | "A5" | "A6" | "A8" | "B1" | "B4" | "B7" | "B8" | "B9" | "B10" | "B11" | "B12" | "B13" | "B14" | "B15" | "B16" | "B20" | "B22" | "B23" | "P1" | "P2" | "P3" | "P4" | "P5" | "P6" | "P7" | "P8" | "P9" | "P10" | "P11" | "P12" | "P13" | "P14" | "P15" | "P16" | "P17" | "P18" | "P19" | "P20" | "P21" | "P22" | "P23" | "P24" | "P25" | "P26" | "P27" | "P28" | "P29" | "P30" | "P31" | "P32";
5
5
  export declare const Carc: {
6
6
  readonly Carc1: "1";
7
7
  readonly Carc2: "2";
@@ -84,6 +84,7 @@ export declare const Carc: {
84
84
  readonly Carc119: "119";
85
85
  readonly Carc121: "121";
86
86
  readonly Carc122: "122";
87
+ readonly Carc125: "125";
87
88
  readonly Carc128: "128";
88
89
  readonly Carc129: "129";
89
90
  readonly Carc130: "130";
@@ -86,6 +86,7 @@ exports.Carc = {
86
86
  Carc119: "119",
87
87
  Carc121: "121",
88
88
  Carc122: "122",
89
+ Carc125: "125",
89
90
  Carc128: "128",
90
91
  Carc129: "129",
91
92
  Carc130: "130",
package/dist/Client.d.ts CHANGED
@@ -12,6 +12,7 @@ import { ExpectedNetworkStatus } from "./api/resources/expectedNetworkStatus/cli
12
12
  import { Exports } from "./api/resources/exports/client/Client";
13
13
  import { Guarantor } from "./api/resources/guarantor/client/Client";
14
14
  import { InsuranceAdjudications } from "./api/resources/insuranceAdjudications/client/Client";
15
+ import { InsurancePayments } from "./api/resources/insurancePayments/client/Client";
15
16
  import { InsuranceRefunds } from "./api/resources/insuranceRefunds/client/Client";
16
17
  import { OrganizationServiceFacilities } from "./api/resources/organizationServiceFacilities/client/Client";
17
18
  import { OrganizationProviders } from "./api/resources/organizationProviders/client/Client";
@@ -48,6 +49,8 @@ export declare class CandidApiClient {
48
49
  get guarantor(): Guarantor;
49
50
  protected _insuranceAdjudications: InsuranceAdjudications | undefined;
50
51
  get insuranceAdjudications(): InsuranceAdjudications;
52
+ protected _insurancePayments: InsurancePayments | undefined;
53
+ get insurancePayments(): InsurancePayments;
51
54
  protected _insuranceRefunds: InsuranceRefunds | undefined;
52
55
  get insuranceRefunds(): InsuranceRefunds;
53
56
  protected _organizationServiceFacilities: OrganizationServiceFacilities | undefined;
package/dist/Client.js CHANGED
@@ -13,15 +13,16 @@ const Client_6 = require("./api/resources/expectedNetworkStatus/client/Client");
13
13
  const Client_7 = require("./api/resources/exports/client/Client");
14
14
  const Client_8 = require("./api/resources/guarantor/client/Client");
15
15
  const Client_9 = require("./api/resources/insuranceAdjudications/client/Client");
16
- const Client_10 = require("./api/resources/insuranceRefunds/client/Client");
17
- const Client_11 = require("./api/resources/organizationServiceFacilities/client/Client");
18
- const Client_12 = require("./api/resources/organizationProviders/client/Client");
19
- const Client_13 = require("./api/resources/patientPayments/client/Client");
20
- const Client_14 = require("./api/resources/patientRefunds/client/Client");
21
- const Client_15 = require("./api/resources/payers/client/Client");
22
- const Client_16 = require("./api/resources/tasks/client/Client");
23
- const Client_17 = require("./api/resources/writeOffs/client/Client");
24
- const Client_18 = require("./api/resources/serviceFacility/client/Client");
16
+ const Client_10 = require("./api/resources/insurancePayments/client/Client");
17
+ const Client_11 = require("./api/resources/insuranceRefunds/client/Client");
18
+ const Client_12 = require("./api/resources/organizationServiceFacilities/client/Client");
19
+ const Client_13 = require("./api/resources/organizationProviders/client/Client");
20
+ const Client_14 = require("./api/resources/patientPayments/client/Client");
21
+ const Client_15 = require("./api/resources/patientRefunds/client/Client");
22
+ const Client_16 = require("./api/resources/payers/client/Client");
23
+ const Client_17 = require("./api/resources/tasks/client/Client");
24
+ const Client_18 = require("./api/resources/writeOffs/client/Client");
25
+ const Client_19 = require("./api/resources/serviceFacility/client/Client");
25
26
  class CandidApiClient {
26
27
  options;
27
28
  constructor(options) {
@@ -63,41 +64,45 @@ class CandidApiClient {
63
64
  get insuranceAdjudications() {
64
65
  return (this._insuranceAdjudications ??= new Client_9.InsuranceAdjudications(this.options));
65
66
  }
67
+ _insurancePayments;
68
+ get insurancePayments() {
69
+ return (this._insurancePayments ??= new Client_10.InsurancePayments(this.options));
70
+ }
66
71
  _insuranceRefunds;
67
72
  get insuranceRefunds() {
68
- return (this._insuranceRefunds ??= new Client_10.InsuranceRefunds(this.options));
73
+ return (this._insuranceRefunds ??= new Client_11.InsuranceRefunds(this.options));
69
74
  }
70
75
  _organizationServiceFacilities;
71
76
  get organizationServiceFacilities() {
72
- return (this._organizationServiceFacilities ??= new Client_11.OrganizationServiceFacilities(this.options));
77
+ return (this._organizationServiceFacilities ??= new Client_12.OrganizationServiceFacilities(this.options));
73
78
  }
74
79
  _organizationProviders;
75
80
  get organizationProviders() {
76
- return (this._organizationProviders ??= new Client_12.OrganizationProviders(this.options));
81
+ return (this._organizationProviders ??= new Client_13.OrganizationProviders(this.options));
77
82
  }
78
83
  _patientPayments;
79
84
  get patientPayments() {
80
- return (this._patientPayments ??= new Client_13.PatientPayments(this.options));
85
+ return (this._patientPayments ??= new Client_14.PatientPayments(this.options));
81
86
  }
82
87
  _patientRefunds;
83
88
  get patientRefunds() {
84
- return (this._patientRefunds ??= new Client_14.PatientRefunds(this.options));
89
+ return (this._patientRefunds ??= new Client_15.PatientRefunds(this.options));
85
90
  }
86
91
  _payers;
87
92
  get payers() {
88
- return (this._payers ??= new Client_15.Payers(this.options));
93
+ return (this._payers ??= new Client_16.Payers(this.options));
89
94
  }
90
95
  _tasks;
91
96
  get tasks() {
92
- return (this._tasks ??= new Client_16.Tasks(this.options));
97
+ return (this._tasks ??= new Client_17.Tasks(this.options));
93
98
  }
94
99
  _writeOffs;
95
100
  get writeOffs() {
96
- return (this._writeOffs ??= new Client_17.WriteOffs(this.options));
101
+ return (this._writeOffs ??= new Client_18.WriteOffs(this.options));
97
102
  }
98
103
  _serviceFacility;
99
104
  get serviceFacility() {
100
- return (this._serviceFacility ??= new Client_18.ServiceFacility(this.options));
105
+ return (this._serviceFacility ??= new Client_19.ServiceFacility(this.options));
101
106
  }
102
107
  }
103
108
  exports.CandidApiClient = CandidApiClient;
@@ -62,7 +62,7 @@ class V2 {
62
62
  Authorization: await this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "candidhealth",
65
- "X-Fern-SDK-Version": "0.15.0",
65
+ "X-Fern-SDK-Version": "0.16.0",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.15.0",
51
+ "X-Fern-SDK-Version": "0.16.0",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -49,7 +49,7 @@ class V2 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.15.0",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -136,7 +136,7 @@ class V2 {
136
136
  Authorization: await this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.15.0",
139
+ "X-Fern-SDK-Version": "0.16.0",
140
140
  },
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
@@ -169,7 +169,7 @@ class V2 {
169
169
  Authorization: await this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.15.0",
172
+ "X-Fern-SDK-Version": "0.16.0",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
@@ -201,7 +201,7 @@ class V2 {
201
201
  Authorization: await this._getAuthorizationHeader(),
202
202
  "X-Fern-Language": "JavaScript",
203
203
  "X-Fern-SDK-Name": "candidhealth",
204
- "X-Fern-SDK-Version": "0.15.0",
204
+ "X-Fern-SDK-Version": "0.16.0",
205
205
  },
206
206
  contentType: "application/json",
207
207
  timeoutMs: 60000,
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: await this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.15.0",
242
+ "X-Fern-SDK-Version": "0.16.0",
243
243
  },
244
244
  contentType: "application/json",
245
245
  body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
@@ -65,7 +65,7 @@ class V2 {
65
65
  Authorization: await this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.15.0",
68
+ "X-Fern-SDK-Version": "0.16.0",
69
69
  },
70
70
  contentType: "application/json",
71
71
  body: request,
@@ -103,7 +103,7 @@ class V4 {
103
103
  Authorization: await this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.15.0",
106
+ "X-Fern-SDK-Version": "0.16.0",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V4 {
133
133
  Authorization: await this._getAuthorizationHeader(),
134
134
  "X-Fern-Language": "JavaScript",
135
135
  "X-Fern-SDK-Name": "candidhealth",
136
- "X-Fern-SDK-Version": "0.15.0",
136
+ "X-Fern-SDK-Version": "0.16.0",
137
137
  },
138
138
  contentType: "application/json",
139
139
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V4 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.15.0",
165
+ "X-Fern-SDK-Version": "0.16.0",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class V4 {
213
213
  Authorization: await this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "candidhealth",
216
- "X-Fern-SDK-Version": "0.15.0",
216
+ "X-Fern-SDK-Version": "0.16.0",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.15.0",
55
+ "X-Fern-SDK-Version": "0.16.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -54,7 +54,7 @@ class V2 {
54
54
  Authorization: await this._getAuthorizationHeader(),
55
55
  "X-Fern-Language": "JavaScript",
56
56
  "X-Fern-SDK-Name": "candidhealth",
57
- "X-Fern-SDK-Version": "0.15.0",
57
+ "X-Fern-SDK-Version": "0.16.0",
58
58
  },
59
59
  contentType: "application/json",
60
60
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -109,7 +109,7 @@ class V2 {
109
109
  Authorization: await this._getAuthorizationHeader(),
110
110
  "X-Fern-Language": "JavaScript",
111
111
  "X-Fern-SDK-Name": "candidhealth",
112
- "X-Fern-SDK-Version": "0.15.0",
112
+ "X-Fern-SDK-Version": "0.16.0",
113
113
  },
114
114
  contentType: "application/json",
115
115
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.15.0",
71
+ "X-Fern-SDK-Version": "0.16.0",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocations are portions of payments that are applied to specific resources, known as targets. Each allocation has
7
+ * and amount, defined in cents, and a target.
8
+ *
9
+ */
5
10
  export interface AllocationCreate {
6
11
  amountCents: number;
7
12
  target: CandidApi.AllocationTargetCreate;
@@ -2,19 +2,21 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
7
+ * claim, billing provider, or is unallocated.
8
+ *
9
+ */
5
10
  export declare type AllocationTarget = CandidApi.AllocationTarget.ServiceLine | CandidApi.AllocationTarget.Claim | CandidApi.AllocationTarget.BillingProviderId | CandidApi.AllocationTarget.Unattributed;
6
11
  export declare namespace AllocationTarget {
7
- interface ServiceLine {
12
+ interface ServiceLine extends CandidApi.ServiceLineAllocationTarget {
8
13
  type: "service_line";
9
- value: CandidApi.ServiceLineId;
10
14
  }
11
- interface Claim {
15
+ interface Claim extends CandidApi.ClaimAllocationTarget {
12
16
  type: "claim";
13
- value: CandidApi.ClaimId;
14
17
  }
15
- interface BillingProviderId {
18
+ interface BillingProviderId extends CandidApi.BillingProviderAllocationTarget {
16
19
  type: "billing_provider_id";
17
- value: CandidApi.ProviderId;
18
20
  }
19
21
  interface Unattributed {
20
22
  type: "unattributed";
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
7
+ * claim, billing provider, or is unallocated.
8
+ *
9
+ */
5
10
  export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.Unattributed;
6
11
  export declare namespace AllocationTargetCreate {
7
12
  interface ServiceLineById {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface BillingProviderAllocationTarget {
6
+ billingProviderId: CandidApi.ProviderId;
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 });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface ClaimAllocationTarget {
6
+ claimId: CandidApi.ClaimId;
7
+ encounterId: CandidApi.EncounterId;
8
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface ServiceLineAllocationTarget {
6
+ serviceLineId: CandidApi.ServiceLineId;
7
+ claimId: CandidApi.ClaimId;
8
+ encounterId: CandidApi.EncounterId;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,9 @@
1
1
  export * from "./RefundReason";
2
2
  export * from "./PatientTransactionSource";
3
3
  export * from "./Allocation";
4
+ export * from "./ServiceLineAllocationTarget";
5
+ export * from "./ClaimAllocationTarget";
6
+ export * from "./BillingProviderAllocationTarget";
4
7
  export * from "./AllocationTarget";
5
8
  export * from "./AllocationCreate";
6
9
  export * from "./AllocationTargetCreate";
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RefundReason"), exports);
18
18
  __exportStar(require("./PatientTransactionSource"), exports);
19
19
  __exportStar(require("./Allocation"), exports);
20
+ __exportStar(require("./ServiceLineAllocationTarget"), exports);
21
+ __exportStar(require("./ClaimAllocationTarget"), exports);
22
+ __exportStar(require("./BillingProviderAllocationTarget"), exports);
20
23
  __exportStar(require("./AllocationTarget"), exports);
21
24
  __exportStar(require("./AllocationCreate"), exports);
22
25
  __exportStar(require("./AllocationTargetCreate"), exports);