candidhealth 0.10.0 → 0.11.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 (468) hide show
  1. package/README.md +1 -0
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  4. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +8 -1
  5. package/api/resources/claims/types/ClaimStatus.d.ts +2 -1
  6. package/api/resources/claims/types/ClaimStatus.js +1 -0
  7. package/api/resources/commons/types/SortDirection.d.ts +12 -0
  8. package/api/resources/commons/types/SortDirection.js +10 -0
  9. package/api/resources/commons/types/TaxId.d.ts +8 -0
  10. package/api/resources/commons/types/TaxId.js +10 -0
  11. package/api/resources/commons/types/index.d.ts +2 -0
  12. package/api/resources/commons/types/index.js +2 -0
  13. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  14. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  15. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  16. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
  17. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
  18. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
  19. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
  20. package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
  21. package/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
  22. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  23. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  24. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +0 -1
  25. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -2
  26. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +0 -2
  27. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -4
  28. package/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +14 -0
  29. package/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +16 -0
  30. package/api/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
  31. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -2
  32. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +29 -0
  33. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +5 -0
  34. package/api/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
  35. package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
  36. package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
  37. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  38. package/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  39. package/api/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
  40. package/api/resources/financials/types/PatientTransactionSource.d.ts +13 -0
  41. package/api/resources/financials/types/PatientTransactionSource.js +15 -0
  42. package/api/resources/financials/types/index.d.ts +1 -0
  43. package/api/resources/financials/types/index.js +1 -0
  44. package/api/resources/guarantor/resources/v1/client/Client.d.ts +0 -3
  45. package/api/resources/guarantor/resources/v1/client/Client.js +3 -6
  46. package/api/resources/index.d.ts +1 -0
  47. package/api/resources/index.js +2 -1
  48. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -3
  49. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -6
  50. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
  51. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
  52. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
  53. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
  54. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +0 -3
  55. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +3 -6
  56. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
  57. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
  58. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  59. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  60. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +6 -3
  61. package/api/resources/patientPayments/resources/v4/client/Client.js +76 -7
  62. package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
  63. package/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
  64. package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  65. package/api/resources/patientPayments/resources/v4/client/index.js +2 -1
  66. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +24 -0
  67. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js +5 -0
  68. package/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  69. package/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
  70. package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
  71. package/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
  72. package/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
  73. package/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +5 -0
  74. package/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  75. package/api/resources/patientPayments/resources/v4/types/index.js +2 -0
  76. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -3
  77. package/api/resources/patientRefunds/resources/v1/client/Client.js +76 -7
  78. package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
  79. package/api/resources/patientRefunds/resources/v1/client/getMulti.js +47 -0
  80. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  81. package/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
  82. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +24 -0
  83. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js +5 -0
  84. package/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  85. package/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
  86. package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
  87. package/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
  88. package/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
  89. package/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +5 -0
  90. package/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  91. package/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
  92. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  93. package/api/resources/payers/resources/v3/types/PayerIdentifier.d.ts +14 -0
  94. package/api/resources/payers/resources/v3/types/PayerIdentifier.js +5 -0
  95. package/api/resources/payers/resources/v3/types/PayerInfo.d.ts +8 -0
  96. package/api/resources/payers/resources/v3/types/PayerInfo.js +5 -0
  97. package/api/resources/payers/resources/v3/types/PayerName.d.ts +8 -0
  98. package/api/resources/payers/resources/v3/types/PayerName.js +10 -0
  99. package/api/resources/payers/resources/v3/types/index.d.ts +3 -0
  100. package/api/resources/payers/resources/v3/types/index.js +3 -0
  101. package/api/resources/remits/index.d.ts +1 -0
  102. package/api/resources/remits/index.js +17 -0
  103. package/api/resources/remits/resources/index.d.ts +1 -0
  104. package/api/resources/remits/resources/index.js +27 -0
  105. package/api/resources/remits/resources/v1/index.d.ts +1 -0
  106. package/api/resources/remits/resources/v1/index.js +17 -0
  107. package/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
  108. package/api/resources/remits/resources/v1/types/Payee.js +5 -0
  109. package/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
  110. package/api/resources/remits/resources/v1/types/PayeeIdentifier.js +5 -0
  111. package/api/resources/remits/resources/v1/types/index.d.ts +2 -0
  112. package/api/resources/remits/resources/v1/types/index.js +18 -0
  113. package/api/resources/tasks/resources/v3/client/Client.d.ts +0 -20
  114. package/api/resources/tasks/resources/v3/client/Client.js +5 -25
  115. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
  116. package/api/resources/writeOffs/resources/v1/client/Client.js +61 -8
  117. package/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
  118. package/api/resources/writeOffs/resources/v1/client/getMulti.js +47 -0
  119. package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
  120. package/api/resources/writeOffs/resources/v1/client/index.js +2 -1
  121. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
  122. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js +5 -0
  123. package/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  124. package/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +7 -0
  125. package/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +5 -0
  126. package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
  127. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
  128. package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
  129. package/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
  130. package/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
  131. package/api/resources/writeOffs/resources/v1/types/WriteOffsPage.js +5 -0
  132. package/api/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
  133. package/api/resources/writeOffs/resources/v1/types/index.js +3 -0
  134. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  135. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  136. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +8 -1
  137. package/dist/api/resources/claims/types/ClaimStatus.d.ts +2 -1
  138. package/dist/api/resources/claims/types/ClaimStatus.js +1 -0
  139. package/dist/api/resources/commons/types/SortDirection.d.ts +12 -0
  140. package/dist/api/resources/commons/types/SortDirection.js +10 -0
  141. package/dist/api/resources/commons/types/TaxId.d.ts +8 -0
  142. package/dist/api/resources/commons/types/TaxId.js +10 -0
  143. package/dist/api/resources/commons/types/index.d.ts +2 -0
  144. package/dist/api/resources/commons/types/index.js +2 -0
  145. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  146. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  147. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  148. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +36 -0
  149. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +5 -1
  150. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +36 -0
  151. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +5 -1
  152. package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +39 -0
  153. package/dist/api/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +15 -0
  154. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  155. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  156. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +0 -1
  157. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -2
  158. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +0 -2
  159. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -4
  160. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +14 -0
  161. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +16 -0
  162. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
  163. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -2
  164. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +29 -0
  165. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +5 -0
  166. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
  167. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
  168. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
  169. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  170. package/dist/api/resources/financials/types/AllocationTarget.d.ts +4 -1
  171. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
  172. package/dist/api/resources/financials/types/PatientTransactionSource.d.ts +13 -0
  173. package/dist/api/resources/financials/types/PatientTransactionSource.js +15 -0
  174. package/dist/api/resources/financials/types/index.d.ts +1 -0
  175. package/dist/api/resources/financials/types/index.js +1 -0
  176. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +0 -3
  177. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -6
  178. package/dist/api/resources/index.d.ts +1 -0
  179. package/dist/api/resources/index.js +2 -1
  180. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +0 -3
  181. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -6
  182. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
  183. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
  184. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
  185. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
  186. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +0 -3
  187. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +3 -6
  188. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
  189. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
  190. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  191. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  192. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +6 -3
  193. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +76 -7
  194. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +22 -0
  195. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +47 -0
  196. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  197. package/dist/api/resources/patientPayments/resources/v4/client/index.js +2 -1
  198. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +24 -0
  199. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.js +5 -0
  200. package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  201. package/dist/api/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
  202. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
  203. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +12 -0
  204. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +7 -0
  205. package/dist/api/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +5 -0
  206. package/dist/api/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  207. package/dist/api/resources/patientPayments/resources/v4/types/index.js +2 -0
  208. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +6 -3
  209. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +76 -7
  210. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +22 -0
  211. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +47 -0
  212. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  213. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
  214. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +24 -0
  215. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.js +5 -0
  216. package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  217. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
  218. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +11 -0
  219. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +13 -0
  220. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +7 -0
  221. package/dist/api/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +5 -0
  222. package/dist/api/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  223. package/dist/api/resources/patientRefunds/resources/v1/types/index.js +2 -0
  224. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  225. package/dist/api/resources/payers/resources/v3/types/PayerIdentifier.d.ts +14 -0
  226. package/dist/api/resources/payers/resources/v3/types/PayerIdentifier.js +5 -0
  227. package/dist/api/resources/payers/resources/v3/types/PayerInfo.d.ts +8 -0
  228. package/dist/api/resources/payers/resources/v3/types/PayerInfo.js +5 -0
  229. package/dist/api/resources/payers/resources/v3/types/PayerName.d.ts +8 -0
  230. package/dist/api/resources/payers/resources/v3/types/PayerName.js +10 -0
  231. package/dist/api/resources/payers/resources/v3/types/index.d.ts +3 -0
  232. package/dist/api/resources/payers/resources/v3/types/index.js +3 -0
  233. package/dist/api/resources/remits/index.d.ts +1 -0
  234. package/dist/api/resources/remits/index.js +17 -0
  235. package/dist/api/resources/remits/resources/index.d.ts +1 -0
  236. package/dist/api/resources/remits/resources/index.js +27 -0
  237. package/dist/api/resources/remits/resources/v1/index.d.ts +1 -0
  238. package/dist/api/resources/remits/resources/v1/index.js +17 -0
  239. package/dist/api/resources/remits/resources/v1/types/Payee.d.ts +8 -0
  240. package/dist/api/resources/remits/resources/v1/types/Payee.js +5 -0
  241. package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +19 -0
  242. package/dist/api/resources/remits/resources/v1/types/PayeeIdentifier.js +5 -0
  243. package/dist/api/resources/remits/resources/v1/types/index.d.ts +2 -0
  244. package/dist/api/resources/remits/resources/v1/types/index.js +18 -0
  245. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +0 -20
  246. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -25
  247. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -4
  248. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +61 -8
  249. package/dist/api/resources/writeOffs/resources/v1/client/getMulti.d.ts +22 -0
  250. package/dist/api/resources/writeOffs/resources/v1/client/getMulti.js +47 -0
  251. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -0
  252. package/dist/api/resources/writeOffs/resources/v1/client/index.js +2 -1
  253. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +21 -0
  254. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.js +5 -0
  255. package/dist/api/resources/writeOffs/resources/v1/client/requests/index.d.ts +1 -0
  256. package/dist/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +7 -0
  257. package/dist/api/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +5 -0
  258. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
  259. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
  260. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
  261. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffSortField.js +12 -0
  262. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +7 -0
  263. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffsPage.js +5 -0
  264. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
  265. package/dist/api/resources/writeOffs/resources/v1/types/index.js +3 -0
  266. package/dist/serialization/resources/claims/types/ClaimStatus.d.ts +1 -1
  267. package/dist/serialization/resources/claims/types/ClaimStatus.js +1 -0
  268. package/dist/serialization/resources/commons/types/SortDirection.d.ts +10 -0
  269. package/dist/serialization/resources/commons/types/SortDirection.js +31 -0
  270. package/dist/serialization/resources/commons/types/TaxId.d.ts +10 -0
  271. package/dist/serialization/resources/commons/types/TaxId.js +37 -0
  272. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  273. package/dist/serialization/resources/commons/types/index.js +2 -0
  274. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
  275. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
  276. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
  277. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
  278. package/dist/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
  279. package/dist/serialization/resources/{writeOffs/resources/v1/client/create.js → encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js} +2 -2
  280. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  281. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  282. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +10 -0
  283. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +40 -0
  284. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
  285. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.js +2 -1
  286. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -1
  287. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.js +1 -1
  288. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +20 -0
  289. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +42 -0
  290. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
  291. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.js +1 -1
  292. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
  293. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
  294. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +4 -1
  295. package/dist/serialization/resources/financials/types/AllocationTarget.js +1 -0
  296. package/dist/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
  297. package/dist/serialization/resources/financials/types/AllocationTargetCreate.js +1 -0
  298. package/dist/serialization/resources/financials/types/PatientTransactionSource.d.ts +10 -0
  299. package/dist/serialization/resources/financials/types/PatientTransactionSource.js +31 -0
  300. package/dist/serialization/resources/financials/types/index.d.ts +1 -0
  301. package/dist/serialization/resources/financials/types/index.js +1 -0
  302. package/dist/serialization/resources/index.d.ts +1 -0
  303. package/dist/serialization/resources/index.js +2 -1
  304. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
  305. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -0
  306. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
  307. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -0
  308. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
  309. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -1
  310. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
  311. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -2
  312. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
  313. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +1 -1
  314. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
  315. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +1 -1
  316. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
  317. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +2 -1
  318. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
  319. package/{serialization/resources/writeOffs/resources/v1/client/create.js → dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js} +2 -2
  320. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
  321. package/dist/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
  322. package/dist/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  323. package/dist/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
  324. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
  325. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +2 -1
  326. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
  327. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +31 -0
  328. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
  329. package/dist/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +35 -0
  330. package/dist/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  331. package/dist/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
  332. package/dist/serialization/resources/payers/resources/v3/types/PayerIdentifier.d.ts +17 -0
  333. package/dist/serialization/resources/payers/resources/v3/types/PayerIdentifier.js +41 -0
  334. package/dist/serialization/resources/payers/resources/v3/types/PayerInfo.d.ts +13 -0
  335. package/dist/serialization/resources/payers/resources/v3/types/PayerInfo.js +34 -0
  336. package/dist/serialization/resources/payers/resources/v3/types/PayerName.d.ts +10 -0
  337. package/dist/serialization/resources/payers/resources/v3/types/PayerName.js +35 -0
  338. package/dist/serialization/resources/payers/resources/v3/types/index.d.ts +3 -0
  339. package/dist/serialization/resources/payers/resources/v3/types/index.js +3 -0
  340. package/dist/serialization/resources/remits/index.d.ts +1 -0
  341. package/dist/serialization/resources/remits/index.js +17 -0
  342. package/dist/serialization/resources/remits/resources/index.d.ts +1 -0
  343. package/dist/serialization/resources/remits/resources/index.js +27 -0
  344. package/dist/serialization/resources/remits/resources/v1/index.d.ts +1 -0
  345. package/dist/serialization/resources/remits/resources/v1/index.js +17 -0
  346. package/dist/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
  347. package/dist/serialization/resources/remits/resources/v1/types/Payee.js +34 -0
  348. package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
  349. package/dist/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +46 -0
  350. package/dist/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
  351. package/dist/serialization/resources/remits/resources/v1/types/index.js +18 -0
  352. package/dist/serialization/resources/writeOffs/resources/v1/client/index.d.ts +0 -1
  353. package/dist/serialization/resources/writeOffs/resources/v1/client/index.js +0 -14
  354. package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +12 -0
  355. package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +33 -0
  356. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
  357. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -1
  358. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
  359. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -1
  360. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
  361. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.js +31 -0
  362. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
  363. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +35 -0
  364. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
  365. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +3 -0
  366. package/package.json +1 -1
  367. package/serialization/resources/claims/types/ClaimStatus.d.ts +1 -1
  368. package/serialization/resources/claims/types/ClaimStatus.js +1 -0
  369. package/serialization/resources/commons/types/SortDirection.d.ts +10 -0
  370. package/serialization/resources/commons/types/SortDirection.js +31 -0
  371. package/serialization/resources/commons/types/TaxId.d.ts +10 -0
  372. package/serialization/resources/commons/types/TaxId.js +37 -0
  373. package/serialization/resources/commons/types/index.d.ts +2 -0
  374. package/serialization/resources/commons/types/index.js +2 -0
  375. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +5 -0
  376. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +7 -0
  377. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -0
  378. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +7 -0
  379. package/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.d.ts +10 -0
  380. package/serialization/resources/encounters/resources/v4/types/ServiceAuthorizationExceptionCode.js +31 -0
  381. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  382. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  383. package/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.d.ts +10 -0
  384. package/serialization/resources/expectedNetworkStatus/resources/v2/types/Explanation.js +40 -0
  385. package/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.d.ts +2 -1
  386. package/serialization/resources/expectedNetworkStatus/resources/v2/types/IndeterminateNetworkStatus.js +2 -1
  387. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.d.ts +1 -1
  388. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceType.js +1 -1
  389. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +20 -0
  390. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +42 -0
  391. package/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.d.ts +1 -1
  392. package/serialization/resources/expectedNetworkStatus/resources/v2/types/OutOfNetworkStatus.js +1 -1
  393. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +2 -0
  394. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +2 -0
  395. package/serialization/resources/financials/types/AllocationTarget.d.ts +4 -1
  396. package/serialization/resources/financials/types/AllocationTarget.js +1 -0
  397. package/serialization/resources/financials/types/AllocationTargetCreate.d.ts +4 -1
  398. package/serialization/resources/financials/types/AllocationTargetCreate.js +1 -0
  399. package/serialization/resources/financials/types/PatientTransactionSource.d.ts +10 -0
  400. package/serialization/resources/financials/types/PatientTransactionSource.js +31 -0
  401. package/serialization/resources/financials/types/index.d.ts +1 -0
  402. package/serialization/resources/financials/types/index.js +1 -0
  403. package/serialization/resources/index.d.ts +1 -0
  404. package/serialization/resources/index.js +2 -1
  405. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +1 -0
  406. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +1 -0
  407. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +1 -0
  408. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +1 -0
  409. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +0 -1
  410. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +0 -1
  411. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +2 -2
  412. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +2 -2
  413. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.d.ts +1 -1
  414. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefund.js +1 -1
  415. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.d.ts +1 -1
  416. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundCreate.js +1 -1
  417. package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.d.ts +2 -1
  418. package/serialization/resources/patientPayments/resources/v4/types/PatientPayment.js +2 -1
  419. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.d.ts +10 -0
  420. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentSortField.js +31 -0
  421. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.d.ts +12 -0
  422. package/serialization/resources/patientPayments/resources/v4/types/PatientPaymentsPage.js +35 -0
  423. package/serialization/resources/patientPayments/resources/v4/types/index.d.ts +2 -0
  424. package/serialization/resources/patientPayments/resources/v4/types/index.js +2 -0
  425. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.d.ts +2 -1
  426. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefund.js +2 -1
  427. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.d.ts +10 -0
  428. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundSortField.js +31 -0
  429. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.d.ts +12 -0
  430. package/serialization/resources/patientRefunds/resources/v1/types/PatientRefundsPage.js +35 -0
  431. package/serialization/resources/patientRefunds/resources/v1/types/index.d.ts +2 -0
  432. package/serialization/resources/patientRefunds/resources/v1/types/index.js +2 -0
  433. package/serialization/resources/payers/resources/v3/types/PayerIdentifier.d.ts +17 -0
  434. package/serialization/resources/payers/resources/v3/types/PayerIdentifier.js +41 -0
  435. package/serialization/resources/payers/resources/v3/types/PayerInfo.d.ts +13 -0
  436. package/serialization/resources/payers/resources/v3/types/PayerInfo.js +34 -0
  437. package/serialization/resources/payers/resources/v3/types/PayerName.d.ts +10 -0
  438. package/serialization/resources/payers/resources/v3/types/PayerName.js +35 -0
  439. package/serialization/resources/payers/resources/v3/types/index.d.ts +3 -0
  440. package/serialization/resources/payers/resources/v3/types/index.js +3 -0
  441. package/serialization/resources/remits/index.d.ts +1 -0
  442. package/serialization/resources/remits/index.js +17 -0
  443. package/serialization/resources/remits/resources/index.d.ts +1 -0
  444. package/serialization/resources/remits/resources/index.js +27 -0
  445. package/serialization/resources/remits/resources/v1/index.d.ts +1 -0
  446. package/serialization/resources/remits/resources/v1/index.js +17 -0
  447. package/serialization/resources/remits/resources/v1/types/Payee.d.ts +13 -0
  448. package/serialization/resources/remits/resources/v1/types/Payee.js +34 -0
  449. package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.d.ts +22 -0
  450. package/serialization/resources/remits/resources/v1/types/PayeeIdentifier.js +46 -0
  451. package/serialization/resources/remits/resources/v1/types/index.d.ts +2 -0
  452. package/serialization/resources/remits/resources/v1/types/index.js +18 -0
  453. package/serialization/resources/writeOffs/resources/v1/client/index.d.ts +0 -1
  454. package/serialization/resources/writeOffs/resources/v1/client/index.js +0 -14
  455. package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.d.ts +12 -0
  456. package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +33 -0
  457. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +2 -1
  458. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +2 -1
  459. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +2 -1
  460. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +2 -1
  461. package/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.d.ts +10 -0
  462. package/serialization/resources/writeOffs/resources/v1/types/WriteOffSortField.js +31 -0
  463. package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.d.ts +12 -0
  464. package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +35 -0
  465. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +3 -0
  466. package/serialization/resources/writeOffs/resources/v1/types/index.js +3 -0
  467. package/dist/serialization/resources/writeOffs/resources/v1/client/create.d.ts +0 -10
  468. package/serialization/resources/writeOffs/resources/v1/client/create.d.ts +0 -10
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
- export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.BillingProviderById;
5
+ export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.Unattributed;
6
6
  export declare namespace AllocationTargetCreate {
7
7
  interface ServiceLineById {
8
8
  type: "service_line_by_id";
@@ -16,4 +16,7 @@ export declare namespace AllocationTargetCreate {
16
16
  type: "billing_provider_by_id";
17
17
  value: CandidApi.ProviderId;
18
18
  }
19
+ interface Unattributed {
20
+ type: "unattributed";
21
+ }
19
22
  }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type PatientTransactionSource = "MANUAL_ENTRY" | "CHARGEBEE" | "SQUARE" | "STRIPE" | "ELATION" | "CEDAR" | "HEALTHIE";
5
+ export declare const PatientTransactionSource: {
6
+ readonly ManualEntry: "MANUAL_ENTRY";
7
+ readonly Chargebee: "CHARGEBEE";
8
+ readonly Square: "SQUARE";
9
+ readonly Stripe: "STRIPE";
10
+ readonly Elation: "ELATION";
11
+ readonly Cedar: "CEDAR";
12
+ readonly Healthie: "HEALTHIE";
13
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PatientTransactionSource = void 0;
7
+ exports.PatientTransactionSource = {
8
+ ManualEntry: "MANUAL_ENTRY",
9
+ Chargebee: "CHARGEBEE",
10
+ Square: "SQUARE",
11
+ Stripe: "STRIPE",
12
+ Elation: "ELATION",
13
+ Cedar: "CEDAR",
14
+ Healthie: "HEALTHIE",
15
+ };
@@ -1,4 +1,5 @@
1
1
  export * from "./RefundReason";
2
+ export * from "./PatientTransactionSource";
2
3
  export * from "./Allocation";
3
4
  export * from "./AllocationTarget";
4
5
  export * from "./AllocationCreate";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RefundReason"), exports);
18
+ __exportStar(require("./PatientTransactionSource"), exports);
18
19
  __exportStar(require("./Allocation"), exports);
19
20
  __exportStar(require("./AllocationTarget"), exports);
20
21
  __exportStar(require("./AllocationCreate"), exports);
@@ -14,19 +14,16 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
- * **This endpoint is incubating.**
18
17
  * Creates a new guarantor and returns the newly created Guarantor object.
19
18
  *
20
19
  */
21
20
  create(encounterId: CandidApi.EncounterId, request: CandidApi.guarantor.v1.GuarantorCreate): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.create.Error>>;
22
21
  /**
23
- * **This endpoint is incubating.**
24
22
  * Retrieves a guarantor by its `guarantor_id`.
25
23
  *
26
24
  */
27
25
  get(guarantorId: CandidApi.guarantor.v1.GuarantorId): Promise<core.APIResponse<CandidApi.guarantor.v1.Guarantor, CandidApi.guarantor.v1.get.Error>>;
28
26
  /**
29
- * **This endpoint is incubating.**
30
27
  * Updates a guarantor by its `guarantor_id`.
31
28
  *
32
29
  */
@@ -41,7 +41,6 @@ class V1 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
- * **This endpoint is incubating.**
45
44
  * Creates a new guarantor and returns the newly created Guarantor object.
46
45
  *
47
46
  */
@@ -53,7 +52,7 @@ class V1 {
53
52
  Authorization: await this._getAuthorizationHeader(),
54
53
  "X-Fern-Language": "JavaScript",
55
54
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.10.0",
55
+ "X-Fern-SDK-Version": "0.11.0",
57
56
  },
58
57
  contentType: "application/json",
59
58
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -92,7 +91,6 @@ class V1 {
92
91
  };
93
92
  }
94
93
  /**
95
- * **This endpoint is incubating.**
96
94
  * Retrieves a guarantor by its `guarantor_id`.
97
95
  *
98
96
  */
@@ -104,7 +102,7 @@ class V1 {
104
102
  Authorization: await this._getAuthorizationHeader(),
105
103
  "X-Fern-Language": "JavaScript",
106
104
  "X-Fern-SDK-Name": "candidhealth",
107
- "X-Fern-SDK-Version": "0.10.0",
105
+ "X-Fern-SDK-Version": "0.11.0",
108
106
  },
109
107
  contentType: "application/json",
110
108
  timeoutMs: 60000,
@@ -126,7 +124,6 @@ class V1 {
126
124
  };
127
125
  }
128
126
  /**
129
- * **This endpoint is incubating.**
130
127
  * Updates a guarantor by its `guarantor_id`.
131
128
  *
132
129
  */
@@ -138,7 +135,7 @@ class V1 {
138
135
  Authorization: await this._getAuthorizationHeader(),
139
136
  "X-Fern-Language": "JavaScript",
140
137
  "X-Fern-SDK-Name": "candidhealth",
141
- "X-Fern-SDK-Version": "0.10.0",
138
+ "X-Fern-SDK-Version": "0.11.0",
142
139
  },
143
140
  contentType: "application/json",
144
141
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -13,6 +13,7 @@ export * as organizationProviders from "./organizationProviders";
13
13
  export * as patientPayments from "./patientPayments";
14
14
  export * as patientRefunds from "./patientRefunds";
15
15
  export * as payers from "./payers";
16
+ export * as remits from "./remits";
16
17
  export * as serviceLines from "./serviceLines";
17
18
  export * as tasks from "./tasks";
18
19
  export * as writeOffs from "./writeOffs";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.insuranceCard = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.contracts = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.insuranceCard = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.contracts = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.billingNotes = __importStar(require("./billingNotes"));
32
32
  exports.claimSubmission = __importStar(require("./claimSubmission"));
@@ -42,6 +42,7 @@ exports.organizationProviders = __importStar(require("./organizationProviders"))
42
42
  exports.patientPayments = __importStar(require("./patientPayments"));
43
43
  exports.patientRefunds = __importStar(require("./patientRefunds"));
44
44
  exports.payers = __importStar(require("./payers"));
45
+ exports.remits = __importStar(require("./remits"));
45
46
  exports.serviceLines = __importStar(require("./serviceLines"));
46
47
  exports.tasks = __importStar(require("./tasks"));
47
48
  exports.writeOffs = __importStar(require("./writeOffs"));
@@ -14,19 +14,16 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
- * **This endpoint is incubating.**
18
17
  * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
19
18
  *
20
19
  */
21
20
  get(insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId): Promise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.get.Error>>;
22
21
  /**
23
- * **This endpoint is incubating.**
24
22
  * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
25
23
  *
26
24
  */
27
25
  create(request: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationCreate): Promise<core.APIResponse<CandidApi.insuranceAdjudications.v1.InsuranceAdjudication, CandidApi.insuranceAdjudications.v1.create.Error>>;
28
26
  /**
29
- * **This endpoint is incubating.**
30
27
  * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
31
28
  *
32
29
  */
@@ -41,7 +41,6 @@ class V1 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
- * **This endpoint is incubating.**
45
44
  * Retrieves a previously created insurance adjudication by its `insurance_adjudication_id`.
46
45
  *
47
46
  */
@@ -53,7 +52,7 @@ class V1 {
53
52
  Authorization: await this._getAuthorizationHeader(),
54
53
  "X-Fern-Language": "JavaScript",
55
54
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.10.0",
55
+ "X-Fern-SDK-Version": "0.11.0",
57
56
  },
58
57
  contentType: "application/json",
59
58
  timeoutMs: 60000,
@@ -75,7 +74,6 @@ class V1 {
75
74
  };
76
75
  }
77
76
  /**
78
- * **This endpoint is incubating.**
79
77
  * Creates a new insurance adjudication record and returns the newly created InsuranceAdjudication object.
80
78
  *
81
79
  */
@@ -87,7 +85,7 @@ class V1 {
87
85
  Authorization: await this._getAuthorizationHeader(),
88
86
  "X-Fern-Language": "JavaScript",
89
87
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.10.0",
88
+ "X-Fern-SDK-Version": "0.11.0",
91
89
  },
92
90
  contentType: "application/json",
93
91
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -112,7 +110,6 @@ class V1 {
112
110
  };
113
111
  }
114
112
  /**
115
- * **This endpoint is incubating.**
116
113
  * Deletes the insurance adjudication record matching the provided insurance_adjudication_id.
117
114
  *
118
115
  */
@@ -124,7 +121,7 @@ class V1 {
124
121
  Authorization: await this._getAuthorizationHeader(),
125
122
  "X-Fern-Language": "JavaScript",
126
123
  "X-Fern-SDK-Name": "candidhealth",
127
- "X-Fern-SDK-Version": "0.10.0",
124
+ "X-Fern-SDK-Version": "0.11.0",
128
125
  },
129
126
  contentType: "application/json",
130
127
  timeoutMs: 60000,
@@ -6,5 +6,6 @@ export interface ClaimAdjudication {
6
6
  insuranceAllowedAmountCents?: number;
7
7
  insurancePaidAmountCents?: number;
8
8
  serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudication>;
9
+ payerClaimNumber?: string;
9
10
  carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
10
11
  }
@@ -6,5 +6,6 @@ export interface ClaimAdjudicationCreate {
6
6
  insuranceAllowedAmountCents?: number;
7
7
  insurancePaidAmountCents?: number;
8
8
  serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudicationCreate>;
9
+ payerClaimNumber?: string;
9
10
  carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
10
11
  }
@@ -6,7 +6,6 @@ export interface InsuranceAdjudication {
6
6
  insuranceAdjudicationId: CandidApi.insuranceAdjudications.v1.InsuranceAdjudicationId;
7
7
  payerUuid: CandidApi.payers.v3.PayerUuid;
8
8
  postDate?: string;
9
- payerClaimNumber: string;
10
9
  checkNumber?: string;
11
10
  checkDate: string;
12
11
  note?: string;
@@ -3,9 +3,9 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface InsuranceAdjudicationCreate {
6
- payerUuid: CandidApi.payers.v3.PayerUuid;
6
+ payerIdentifier: CandidApi.payers.v3.PayerIdentifier;
7
+ payee: CandidApi.remits.v1.Payee;
7
8
  postDate?: string;
8
- payerClaimNumber: string;
9
9
  checkNumber?: string;
10
10
  checkDate: string;
11
11
  note?: string;
@@ -14,14 +14,12 @@ export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
16
  /**
17
- * **This endpoint is incubating.**
18
17
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
19
18
  * If the refund does not exist, a `403` will be thrown.
20
19
  *
21
20
  */
22
21
  get(insuranceRefundId: CandidApi.insuranceRefunds.v1.InsuranceRefundId): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.get.Error>>;
23
22
  /**
24
- * **This endpoint is incubating.**
25
23
  * Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
26
24
  * The allocations can describe whether the refund is being applied toward a specific service line,
27
25
  * claim, or billing provider.
@@ -29,7 +27,6 @@ export declare class V1 {
29
27
  */
30
28
  create(request: CandidApi.insuranceRefunds.v1.InsuranceRefundCreate): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefund, CandidApi.insuranceRefunds.v1.create.Error>>;
31
29
  /**
32
- * **This endpoint is incubating.**
33
30
  * Deletes the insurance refund record matching the provided `insurance_refund_id`.
34
31
  * If the matching record's organization_id does not match the authenticated user's
35
32
  * current organization_id, then a response code of `403` will be returned.
@@ -41,7 +41,6 @@ class V1 {
41
41
  this.options = options;
42
42
  }
43
43
  /**
44
- * **This endpoint is incubating.**
45
44
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
46
45
  * If the refund does not exist, a `403` will be thrown.
47
46
  *
@@ -54,7 +53,7 @@ class V1 {
54
53
  Authorization: await this._getAuthorizationHeader(),
55
54
  "X-Fern-Language": "JavaScript",
56
55
  "X-Fern-SDK-Name": "candidhealth",
57
- "X-Fern-SDK-Version": "0.10.0",
56
+ "X-Fern-SDK-Version": "0.11.0",
58
57
  },
59
58
  contentType: "application/json",
60
59
  timeoutMs: 60000,
@@ -76,7 +75,6 @@ class V1 {
76
75
  };
77
76
  }
78
77
  /**
79
- * **This endpoint is incubating.**
80
78
  * Creates a new insurance refund record and returns the newly created `InsuranceRefund` object.
81
79
  * The allocations can describe whether the refund is being applied toward a specific service line,
82
80
  * claim, or billing provider.
@@ -90,7 +88,7 @@ class V1 {
90
88
  Authorization: await this._getAuthorizationHeader(),
91
89
  "X-Fern-Language": "JavaScript",
92
90
  "X-Fern-SDK-Name": "candidhealth",
93
- "X-Fern-SDK-Version": "0.10.0",
91
+ "X-Fern-SDK-Version": "0.11.0",
94
92
  },
95
93
  contentType: "application/json",
96
94
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -115,7 +113,6 @@ class V1 {
115
113
  };
116
114
  }
117
115
  /**
118
- * **This endpoint is incubating.**
119
116
  * Deletes the insurance refund record matching the provided `insurance_refund_id`.
120
117
  * If the matching record's organization_id does not match the authenticated user's
121
118
  * current organization_id, then a response code of `403` will be returned.
@@ -129,7 +126,7 @@ class V1 {
129
126
  Authorization: await this._getAuthorizationHeader(),
130
127
  "X-Fern-Language": "JavaScript",
131
128
  "X-Fern-SDK-Name": "candidhealth",
132
- "X-Fern-SDK-Version": "0.10.0",
129
+ "X-Fern-SDK-Version": "0.11.0",
133
130
  },
134
131
  contentType: "application/json",
135
132
  timeoutMs: 60000,
@@ -4,7 +4,7 @@
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface InsuranceRefund {
6
6
  insuranceRefundId: CandidApi.insuranceRefunds.v1.InsuranceRefundId;
7
- payerId: CandidApi.payers.v3.PayerId;
7
+ payer: CandidApi.payers.v3.Payer;
8
8
  amountCents: number;
9
9
  refundTimestamp?: Date;
10
10
  refundNote?: string;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface InsuranceRefundCreate {
6
- payerId: CandidApi.payers.v3.PayerId;
6
+ payerIdentifier: CandidApi.payers.v3.PayerIdentifier;
7
7
  amountCents: number;
8
8
  refundTimestamp?: Date;
9
9
  refundNote?: string;
@@ -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.10.0",
52
+ "X-Fern-SDK-Version": "0.11.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -115,7 +115,7 @@ class V3 {
115
115
  Authorization: await this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.10.0",
118
+ "X-Fern-SDK-Version": "0.11.0",
119
119
  },
120
120
  contentType: "application/json",
121
121
  queryParameters: _queryParams,
@@ -145,7 +145,7 @@ class V3 {
145
145
  Authorization: await this._getAuthorizationHeader(),
146
146
  "X-Fern-Language": "JavaScript",
147
147
  "X-Fern-SDK-Name": "candidhealth",
148
- "X-Fern-SDK-Version": "0.10.0",
148
+ "X-Fern-SDK-Version": "0.11.0",
149
149
  },
150
150
  contentType: "application/json",
151
151
  body: await serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
@@ -192,7 +192,7 @@ class V3 {
192
192
  Authorization: await this._getAuthorizationHeader(),
193
193
  "X-Fern-Language": "JavaScript",
194
194
  "X-Fern-SDK-Name": "candidhealth",
195
- "X-Fern-SDK-Version": "0.10.0",
195
+ "X-Fern-SDK-Version": "0.11.0",
196
196
  },
197
197
  contentType: "application/json",
198
198
  body: await serializers.organizationProviders.v3.OrganizationProviderUpdateV2.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.10.0",
52
+ "X-Fern-SDK-Version": "0.11.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -103,7 +103,7 @@ class V2 {
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.10.0",
106
+ "X-Fern-SDK-Version": "0.11.0",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V2 {
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.10.0",
136
+ "X-Fern-SDK-Version": "0.11.0",
137
137
  },
138
138
  contentType: "application/json",
139
139
  body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -177,7 +177,7 @@ class V2 {
177
177
  Authorization: await this._getAuthorizationHeader(),
178
178
  "X-Fern-Language": "JavaScript",
179
179
  "X-Fern-SDK-Name": "candidhealth",
180
- "X-Fern-SDK-Version": "0.10.0",
180
+ "X-Fern-SDK-Version": "0.11.0",
181
181
  },
182
182
  contentType: "application/json",
183
183
  body: await serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -222,7 +222,7 @@ class V2 {
222
222
  Authorization: await this._getAuthorizationHeader(),
223
223
  "X-Fern-Language": "JavaScript",
224
224
  "X-Fern-SDK-Name": "candidhealth",
225
- "X-Fern-SDK-Version": "0.10.0",
225
+ "X-Fern-SDK-Version": "0.11.0",
226
226
  },
227
227
  contentType: "application/json",
228
228
  timeoutMs: 60000,
@@ -14,13 +14,17 @@ export declare class V4 {
14
14
  protected readonly options: V4.Options;
15
15
  constructor(options: V4.Options);
16
16
  /**
17
- * **This endpoint is incubating.**
17
+ * Returns all patient payments satisfying the search criteria AND whose organization_id matches
18
+ * the current organization_id of the authenticated user.
19
+ *
20
+ */
21
+ getMulti(request?: CandidApi.patientPayments.v4.GetMultiPatientPaymentsRequest): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPaymentsPage, CandidApi.patientPayments.v4.getMulti.Error>>;
22
+ /**
18
23
  * Retrieves a previously created patient payment by its `patient_payment_id`.
19
24
  *
20
25
  */
21
26
  get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
22
27
  /**
23
- * **This endpoint is incubating.**
24
28
  * Creates a new patient payment record and returns the newly created PatientPayment object.
25
29
  * The allocations can describe whether the payment is being applied toward a specific service line,
26
30
  * claim, or billing provider.
@@ -28,7 +32,6 @@ export declare class V4 {
28
32
  */
29
33
  create(request: CandidApi.patientPayments.v4.PatientPaymentCreate): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.create.Error>>;
30
34
  /**
31
- * **This endpoint is incubating.**
32
35
  * Deletes the patient payment record matching the provided patient_payment_id.
33
36
  *
34
37
  */
@@ -33,15 +33,86 @@ exports.V4 = void 0;
33
33
  const environments = __importStar(require("../../../../../../environments"));
34
34
  const core = __importStar(require("../../../../../../core"));
35
35
  const CandidApi = __importStar(require("../../../../.."));
36
- const serializers = __importStar(require("../../../../../../serialization"));
36
+ const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
37
37
  const url_join_1 = __importDefault(require("url-join"));
38
+ const serializers = __importStar(require("../../../../../../serialization"));
38
39
  class V4 {
39
40
  options;
40
41
  constructor(options) {
41
42
  this.options = options;
42
43
  }
43
44
  /**
44
- * **This endpoint is incubating.**
45
+ * Returns all patient payments satisfying the search criteria AND whose organization_id matches
46
+ * the current organization_id of the authenticated user.
47
+ *
48
+ */
49
+ async getMulti(request = {}) {
50
+ const { limit, patientExternalId, claimId, serviceLineId, billingProviderId, sources, sort, sortDirection, pageToken, } = request;
51
+ const _queryParams = new url_search_params_1.default();
52
+ if (limit != null) {
53
+ _queryParams.append("limit", limit.toString());
54
+ }
55
+ if (patientExternalId != null) {
56
+ _queryParams.append("patient_external_id", patientExternalId);
57
+ }
58
+ if (claimId != null) {
59
+ _queryParams.append("claim_id", claimId);
60
+ }
61
+ if (serviceLineId != null) {
62
+ _queryParams.append("service_line_id", serviceLineId);
63
+ }
64
+ if (billingProviderId != null) {
65
+ _queryParams.append("billing_provider_id", billingProviderId);
66
+ }
67
+ if (sources != null) {
68
+ if (Array.isArray(sources)) {
69
+ for (const _item of sources) {
70
+ _queryParams.append("sources", _item);
71
+ }
72
+ }
73
+ else {
74
+ _queryParams.append("sources", sources);
75
+ }
76
+ }
77
+ if (sort != null) {
78
+ _queryParams.append("sort", sort);
79
+ }
80
+ if (sortDirection != null) {
81
+ _queryParams.append("sort_direction", sortDirection);
82
+ }
83
+ if (pageToken != null) {
84
+ _queryParams.append("page_token", pageToken);
85
+ }
86
+ const _response = await core.fetcher({
87
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/patient-payments/v4"),
88
+ method: "GET",
89
+ headers: {
90
+ Authorization: await this._getAuthorizationHeader(),
91
+ "X-Fern-Language": "JavaScript",
92
+ "X-Fern-SDK-Name": "candidhealth",
93
+ "X-Fern-SDK-Version": "0.11.0",
94
+ },
95
+ contentType: "application/json",
96
+ queryParameters: _queryParams,
97
+ timeoutMs: 60000,
98
+ });
99
+ if (_response.ok) {
100
+ return {
101
+ ok: true,
102
+ body: await serializers.patientPayments.v4.PatientPaymentsPage.parseOrThrow(_response.body, {
103
+ unrecognizedObjectKeys: "passthrough",
104
+ allowUnrecognizedUnionMembers: true,
105
+ allowUnrecognizedEnumValues: true,
106
+ breadcrumbsPrefix: ["response"],
107
+ }),
108
+ };
109
+ }
110
+ return {
111
+ ok: false,
112
+ error: CandidApi.patientPayments.v4.getMulti.Error._unknown(_response.error),
113
+ };
114
+ }
115
+ /**
45
116
  * Retrieves a previously created patient payment by its `patient_payment_id`.
46
117
  *
47
118
  */
@@ -53,7 +124,7 @@ class V4 {
53
124
  Authorization: await this._getAuthorizationHeader(),
54
125
  "X-Fern-Language": "JavaScript",
55
126
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.10.0",
127
+ "X-Fern-SDK-Version": "0.11.0",
57
128
  },
58
129
  contentType: "application/json",
59
130
  timeoutMs: 60000,
@@ -75,7 +146,6 @@ class V4 {
75
146
  };
76
147
  }
77
148
  /**
78
- * **This endpoint is incubating.**
79
149
  * Creates a new patient payment record and returns the newly created PatientPayment object.
80
150
  * The allocations can describe whether the payment is being applied toward a specific service line,
81
151
  * claim, or billing provider.
@@ -89,7 +159,7 @@ class V4 {
89
159
  Authorization: await this._getAuthorizationHeader(),
90
160
  "X-Fern-Language": "JavaScript",
91
161
  "X-Fern-SDK-Name": "candidhealth",
92
- "X-Fern-SDK-Version": "0.10.0",
162
+ "X-Fern-SDK-Version": "0.11.0",
93
163
  },
94
164
  contentType: "application/json",
95
165
  body: await serializers.patientPayments.v4.PatientPaymentCreate.jsonOrThrow(request, {
@@ -114,7 +184,6 @@ class V4 {
114
184
  };
115
185
  }
116
186
  /**
117
- * **This endpoint is incubating.**
118
187
  * Deletes the patient payment record matching the provided patient_payment_id.
119
188
  *
120
189
  */
@@ -126,7 +195,7 @@ class V4 {
126
195
  Authorization: await this._getAuthorizationHeader(),
127
196
  "X-Fern-Language": "JavaScript",
128
197
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.10.0",
198
+ "X-Fern-SDK-Version": "0.11.0",
130
199
  },
131
200
  contentType: "application/json",
132
201
  timeoutMs: 60000,
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.patientPayments.v4.getMulti.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.patientPayments.v4.getMulti.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.patientPayments.v4.getMulti.Error, visitor: CandidApi.patientPayments.v4.getMulti.Error._Visitor<_Result>) => _Result;
22
+ };