candidhealth 0.35.3 → 0.37.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 (418) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +65 -60
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +19 -0
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +125 -1
  6. package/api/resources/billingNotes/resources/v2/client/delete.d.ts +40 -0
  7. package/api/resources/billingNotes/resources/v2/client/delete.js +80 -0
  8. package/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  9. package/api/resources/billingNotes/resources/v2/client/index.js +3 -1
  10. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +13 -0
  11. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +5 -0
  12. package/api/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  13. package/api/resources/billingNotes/resources/v2/client/update.d.ts +46 -0
  14. package/api/resources/billingNotes/resources/v2/client/update.js +91 -0
  15. package/api/resources/chargeCapture/client/Client.d.ts +26 -0
  16. package/api/resources/chargeCapture/client/Client.js +17 -0
  17. package/api/resources/chargeCapture/client/index.d.ts +1 -0
  18. package/api/resources/chargeCapture/client/index.js +2 -0
  19. package/api/resources/chargeCapture/index.d.ts +2 -0
  20. package/api/resources/chargeCapture/index.js +18 -0
  21. package/api/resources/chargeCapture/resources/index.d.ts +1 -0
  22. package/api/resources/chargeCapture/resources/index.js +27 -0
  23. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +288 -0
  24. package/api/resources/chargeCapture/resources/v1/client/Client.js +594 -0
  25. package/api/resources/chargeCapture/resources/v1/client/create.d.ts +52 -0
  26. package/api/resources/chargeCapture/resources/v1/client/create.js +102 -0
  27. package/api/resources/chargeCapture/resources/v1/client/delete.d.ts +40 -0
  28. package/api/resources/chargeCapture/resources/v1/client/delete.js +80 -0
  29. package/api/resources/chargeCapture/resources/v1/client/get.d.ts +22 -0
  30. package/api/resources/chargeCapture/resources/v1/client/get.js +47 -0
  31. package/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +28 -0
  32. package/api/resources/chargeCapture/resources/v1/client/getAll.js +58 -0
  33. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +6 -0
  34. package/api/resources/chargeCapture/resources/v1/client/index.js +35 -0
  35. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +136 -0
  36. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +5 -0
  37. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +137 -0
  38. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +5 -0
  39. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +35 -0
  40. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.js +5 -0
  41. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +3 -0
  42. package/api/resources/chargeCapture/resources/v1/client/requests/index.js +2 -0
  43. package/api/resources/chargeCapture/resources/v1/client/update.d.ts +52 -0
  44. package/api/resources/chargeCapture/resources/v1/client/update.js +102 -0
  45. package/api/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  46. package/api/resources/chargeCapture/resources/v1/index.js +18 -0
  47. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +12 -0
  48. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.js +5 -0
  49. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +31 -0
  50. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +5 -0
  51. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +7 -0
  52. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +5 -0
  53. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +13 -0
  54. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +15 -0
  55. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  56. package/api/resources/chargeCapture/resources/v1/types/index.js +20 -0
  57. package/api/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +16 -0
  58. package/api/resources/commons/types/BillingProviderCommercialLicenseType.js +18 -0
  59. package/api/resources/commons/types/ChargeCaptureId.d.ts +8 -0
  60. package/api/resources/commons/types/ChargeCaptureId.js +10 -0
  61. package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  62. package/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  63. package/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  64. package/api/resources/commons/types/ProcedureModifier.js +1 -0
  65. package/api/resources/commons/types/index.d.ts +3 -0
  66. package/api/resources/commons/types/index.js +3 -0
  67. package/api/resources/contracts/resources/v2/client/Client.js +6 -5
  68. package/api/resources/contracts/resources/v2/client/update.d.ts +7 -1
  69. package/api/resources/contracts/resources/v2/client/update.js +11 -0
  70. package/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +6 -0
  71. package/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +5 -0
  72. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  73. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  74. package/api/resources/credentialing/resources/v2/client/Client.js +6 -6
  75. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  76. package/api/resources/diagnoses/client/Client.js +3 -3
  77. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  78. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  79. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  80. package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +5 -0
  81. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +5 -0
  82. package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +5 -0
  83. package/api/resources/encounters/resources/v4/client/Client.d.ts +29 -273
  84. package/api/resources/encounters/resources/v4/client/Client.js +34 -278
  85. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -62
  86. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -20
  87. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -391
  88. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  89. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +146 -0
  90. package/api/resources/encounters/resources/v4/types/EncounterOptional.js +5 -0
  91. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  92. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  93. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  94. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  95. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  96. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  97. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  98. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  99. package/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  100. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  101. package/api/resources/index.d.ts +1 -0
  102. package/api/resources/index.js +2 -1
  103. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  104. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  105. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  106. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  107. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  108. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +1 -0
  109. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +6 -5
  110. package/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  111. package/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  112. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  113. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  114. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  115. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  116. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  117. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  118. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  119. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  120. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  121. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  122. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  123. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  124. package/api/resources/serviceFacility/client/Client.js +1 -1
  125. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  126. package/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  127. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  128. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  129. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  130. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  131. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  132. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  133. package/dist/Client.d.ts +3 -0
  134. package/dist/Client.js +65 -60
  135. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  136. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +19 -0
  137. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +125 -1
  138. package/dist/api/resources/billingNotes/resources/v2/client/delete.d.ts +40 -0
  139. package/dist/api/resources/billingNotes/resources/v2/client/delete.js +80 -0
  140. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  141. package/dist/api/resources/billingNotes/resources/v2/client/index.js +3 -1
  142. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +13 -0
  143. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +5 -0
  144. package/dist/api/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  145. package/dist/api/resources/billingNotes/resources/v2/client/update.d.ts +46 -0
  146. package/dist/api/resources/billingNotes/resources/v2/client/update.js +91 -0
  147. package/dist/api/resources/chargeCapture/client/Client.d.ts +26 -0
  148. package/dist/api/resources/chargeCapture/client/Client.js +17 -0
  149. package/dist/api/resources/chargeCapture/client/index.d.ts +1 -0
  150. package/dist/api/resources/chargeCapture/client/index.js +2 -0
  151. package/dist/api/resources/chargeCapture/index.d.ts +2 -0
  152. package/dist/api/resources/chargeCapture/index.js +18 -0
  153. package/dist/api/resources/chargeCapture/resources/index.d.ts +1 -0
  154. package/dist/api/resources/chargeCapture/resources/index.js +27 -0
  155. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +288 -0
  156. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +594 -0
  157. package/dist/api/resources/chargeCapture/resources/v1/client/create.d.ts +52 -0
  158. package/dist/api/resources/chargeCapture/resources/v1/client/create.js +102 -0
  159. package/dist/api/resources/chargeCapture/resources/v1/client/delete.d.ts +40 -0
  160. package/dist/api/resources/chargeCapture/resources/v1/client/delete.js +80 -0
  161. package/dist/api/resources/chargeCapture/resources/v1/client/get.d.ts +22 -0
  162. package/dist/api/resources/chargeCapture/resources/v1/client/get.js +47 -0
  163. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +28 -0
  164. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.js +58 -0
  165. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +6 -0
  166. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +35 -0
  167. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +136 -0
  168. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +5 -0
  169. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +137 -0
  170. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +5 -0
  171. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +35 -0
  172. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.js +5 -0
  173. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +3 -0
  174. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.js +2 -0
  175. package/dist/api/resources/chargeCapture/resources/v1/client/update.d.ts +52 -0
  176. package/dist/api/resources/chargeCapture/resources/v1/client/update.js +102 -0
  177. package/dist/api/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  178. package/dist/api/resources/chargeCapture/resources/v1/index.js +18 -0
  179. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +12 -0
  180. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.js +5 -0
  181. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +31 -0
  182. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +5 -0
  183. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +7 -0
  184. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +5 -0
  185. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +13 -0
  186. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +15 -0
  187. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  188. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +20 -0
  189. package/dist/api/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +16 -0
  190. package/dist/api/resources/commons/types/BillingProviderCommercialLicenseType.js +18 -0
  191. package/dist/api/resources/commons/types/ChargeCaptureId.d.ts +8 -0
  192. package/dist/api/resources/commons/types/ChargeCaptureId.js +10 -0
  193. package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  194. package/dist/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  195. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  196. package/dist/api/resources/commons/types/ProcedureModifier.js +1 -0
  197. package/dist/api/resources/commons/types/index.d.ts +3 -0
  198. package/dist/api/resources/commons/types/index.js +3 -0
  199. package/dist/api/resources/contracts/resources/v2/client/Client.js +6 -5
  200. package/dist/api/resources/contracts/resources/v2/client/update.d.ts +7 -1
  201. package/dist/api/resources/contracts/resources/v2/client/update.js +11 -0
  202. package/dist/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +6 -0
  203. package/dist/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +5 -0
  204. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  205. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  206. package/dist/api/resources/credentialing/resources/v2/client/Client.js +6 -6
  207. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  208. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  209. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  210. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  211. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  212. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +5 -0
  213. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +5 -0
  214. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +5 -0
  215. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +29 -273
  216. package/dist/api/resources/encounters/resources/v4/client/Client.js +34 -278
  217. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -62
  218. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -20
  219. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -391
  220. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  221. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +146 -0
  222. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.js +5 -0
  223. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  224. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  225. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  226. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  227. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  228. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  229. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  230. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  231. package/dist/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  232. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  233. package/dist/api/resources/index.d.ts +1 -0
  234. package/dist/api/resources/index.js +2 -1
  235. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  236. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  237. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  238. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  239. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  240. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +1 -0
  241. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +6 -5
  242. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  243. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  244. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  245. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  246. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  247. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  248. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  249. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  250. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  251. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  252. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  253. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  254. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  255. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  256. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  257. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  258. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  259. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  260. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  261. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  262. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  263. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  264. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  265. package/dist/serialization/resources/billingNotes/resources/v2/client/delete.d.ts +25 -0
  266. package/dist/serialization/resources/billingNotes/resources/v2/client/delete.js +73 -0
  267. package/dist/serialization/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  268. package/dist/serialization/resources/billingNotes/resources/v2/client/index.js +15 -0
  269. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +12 -0
  270. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +33 -0
  271. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  272. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/index.js +3 -1
  273. package/dist/serialization/resources/billingNotes/resources/v2/client/update.d.ts +30 -0
  274. package/dist/serialization/resources/billingNotes/resources/v2/client/update.js +79 -0
  275. package/dist/serialization/resources/chargeCapture/index.d.ts +1 -0
  276. package/dist/serialization/resources/chargeCapture/index.js +17 -0
  277. package/dist/serialization/resources/chargeCapture/resources/index.d.ts +1 -0
  278. package/dist/serialization/resources/chargeCapture/resources/index.js +27 -0
  279. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +35 -0
  280. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.js +85 -0
  281. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +25 -0
  282. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.js +73 -0
  283. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +15 -0
  284. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.js +61 -0
  285. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +5 -0
  286. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +34 -0
  287. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +19 -0
  288. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +40 -0
  289. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +19 -0
  290. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +40 -0
  291. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +2 -0
  292. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +7 -0
  293. package/dist/serialization/resources/chargeCapture/resources/v1/client/update.d.ts +35 -0
  294. package/dist/serialization/resources/chargeCapture/resources/v1/client/update.js +85 -0
  295. package/dist/serialization/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  296. package/dist/serialization/resources/chargeCapture/resources/v1/index.js +18 -0
  297. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +22 -0
  298. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +43 -0
  299. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +24 -0
  300. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +47 -0
  301. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +14 -0
  302. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +37 -0
  303. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +10 -0
  304. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +39 -0
  305. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  306. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +20 -0
  307. package/dist/serialization/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +10 -0
  308. package/dist/serialization/resources/commons/types/BillingProviderCommercialLicenseType.js +31 -0
  309. package/dist/serialization/resources/commons/types/ChargeCaptureId.d.ts +10 -0
  310. package/dist/serialization/resources/commons/types/ChargeCaptureId.js +35 -0
  311. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  312. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  313. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  314. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  315. package/dist/serialization/resources/commons/types/index.d.ts +3 -0
  316. package/dist/serialization/resources/commons/types/index.js +3 -0
  317. package/dist/serialization/resources/contracts/resources/v2/client/update.d.ts +6 -1
  318. package/dist/serialization/resources/contracts/resources/v2/client/update.js +6 -0
  319. package/dist/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +12 -0
  320. package/dist/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +33 -0
  321. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  322. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  323. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  324. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  325. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  326. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  327. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  328. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  329. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -59
  330. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +5 -60
  331. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +70 -0
  332. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +91 -0
  333. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  334. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  335. package/dist/serialization/resources/index.d.ts +1 -0
  336. package/dist/serialization/resources/index.js +2 -1
  337. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  338. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.js +1 -0
  339. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  340. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.js +1 -0
  341. package/package.json +1 -1
  342. package/reference.md +606 -362
  343. package/serialization/resources/billingNotes/resources/v2/client/delete.d.ts +25 -0
  344. package/serialization/resources/billingNotes/resources/v2/client/delete.js +73 -0
  345. package/serialization/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  346. package/serialization/resources/billingNotes/resources/v2/client/index.js +15 -0
  347. package/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +12 -0
  348. package/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +33 -0
  349. package/serialization/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  350. package/serialization/resources/billingNotes/resources/v2/client/requests/index.js +3 -1
  351. package/serialization/resources/billingNotes/resources/v2/client/update.d.ts +30 -0
  352. package/serialization/resources/billingNotes/resources/v2/client/update.js +79 -0
  353. package/serialization/resources/chargeCapture/index.d.ts +1 -0
  354. package/serialization/resources/chargeCapture/index.js +17 -0
  355. package/serialization/resources/chargeCapture/resources/index.d.ts +1 -0
  356. package/serialization/resources/chargeCapture/resources/index.js +27 -0
  357. package/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +35 -0
  358. package/serialization/resources/chargeCapture/resources/v1/client/create.js +85 -0
  359. package/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +25 -0
  360. package/serialization/resources/chargeCapture/resources/v1/client/delete.js +73 -0
  361. package/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +15 -0
  362. package/serialization/resources/chargeCapture/resources/v1/client/getAll.js +61 -0
  363. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +5 -0
  364. package/serialization/resources/chargeCapture/resources/v1/client/index.js +34 -0
  365. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +19 -0
  366. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +40 -0
  367. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +19 -0
  368. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +40 -0
  369. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +2 -0
  370. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +7 -0
  371. package/serialization/resources/chargeCapture/resources/v1/client/update.d.ts +35 -0
  372. package/serialization/resources/chargeCapture/resources/v1/client/update.js +85 -0
  373. package/serialization/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  374. package/serialization/resources/chargeCapture/resources/v1/index.js +18 -0
  375. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +22 -0
  376. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +43 -0
  377. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +24 -0
  378. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +47 -0
  379. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +14 -0
  380. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +37 -0
  381. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +10 -0
  382. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +39 -0
  383. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  384. package/serialization/resources/chargeCapture/resources/v1/types/index.js +20 -0
  385. package/serialization/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +10 -0
  386. package/serialization/resources/commons/types/BillingProviderCommercialLicenseType.js +31 -0
  387. package/serialization/resources/commons/types/ChargeCaptureId.d.ts +10 -0
  388. package/serialization/resources/commons/types/ChargeCaptureId.js +35 -0
  389. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  390. package/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  391. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  392. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  393. package/serialization/resources/commons/types/index.d.ts +3 -0
  394. package/serialization/resources/commons/types/index.js +3 -0
  395. package/serialization/resources/contracts/resources/v2/client/update.d.ts +6 -1
  396. package/serialization/resources/contracts/resources/v2/client/update.js +6 -0
  397. package/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +12 -0
  398. package/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +33 -0
  399. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  400. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  401. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  402. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  403. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  404. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  405. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  406. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  407. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -59
  408. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +5 -60
  409. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +70 -0
  410. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +91 -0
  411. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  412. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  413. package/serialization/resources/index.d.ts +1 -0
  414. package/serialization/resources/index.js +2 -1
  415. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  416. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.js +1 -0
  417. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  418. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.js +1 -0
@@ -0,0 +1,594 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.V1 = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const CandidApi = __importStar(require("../../../../../index"));
45
+ const serializers = __importStar(require("../../../../../../serialization/index"));
46
+ const url_join_1 = __importDefault(require("url-join"));
47
+ class V1 {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * @param {CandidApi.chargeCapture.v1.CreateChargeCaptureRequest} request
53
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await client.chargeCapture.v1.create({
57
+ * data: {
58
+ * diagnoses: [],
59
+ * interventions: [],
60
+ * externalClaimSubmission: {
61
+ * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
62
+ * patientControlNumber: "PATIENT_CONTROL_NUMBER",
63
+ * submissionRecords: [{
64
+ * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
65
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
66
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
67
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
68
+ * }, {
69
+ * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
70
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
71
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
72
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
73
+ * }]
74
+ * },
75
+ * serviceLines: [],
76
+ * patientHistories: [],
77
+ * billingNotes: [],
78
+ * benefitsAssignedToProvider: true,
79
+ * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
80
+ * externalId: CandidApi.EncounterExternalId("string"),
81
+ * dateOfService: "2023-01-15",
82
+ * tagIds: [],
83
+ * clinicalNotes: [],
84
+ * payToAddress: {
85
+ * address1: "123 Main St",
86
+ * address2: "Apt 1",
87
+ * city: "New York",
88
+ * state: CandidApi.State.Ny,
89
+ * zipCode: "10001",
90
+ * zipPlusFourCode: "1234"
91
+ * },
92
+ * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
93
+ * responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType.InsurancePay,
94
+ * providerAcceptsAssignment: true,
95
+ * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
96
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
97
+ * appointmentType: "string",
98
+ * endDateOfService: "2023-01-15",
99
+ * subscriberPrimary: {
100
+ * insuranceCard: {
101
+ * memberId: "string",
102
+ * payerName: "string",
103
+ * payerId: "string"
104
+ * },
105
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
106
+ * firstName: "string",
107
+ * lastName: "string",
108
+ * gender: CandidApi.Gender.Male
109
+ * },
110
+ * subscriberSecondary: {
111
+ * insuranceCard: {
112
+ * memberId: "string",
113
+ * payerName: "string",
114
+ * payerId: "string"
115
+ * },
116
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
117
+ * firstName: "string",
118
+ * lastName: "string",
119
+ * gender: CandidApi.Gender.Male
120
+ * },
121
+ * additionalInformation: "string",
122
+ * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
123
+ * admissionDate: "2023-01-15",
124
+ * dischargeDate: "2023-01-15",
125
+ * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
126
+ * lastMenstrualPeriodDate: "2023-01-15",
127
+ * delayReasonCode: CandidApi.DelayReasonCode.C1,
128
+ * patient: {},
129
+ * patientAuthorizedRelease: true,
130
+ * schemaInstances: [],
131
+ * vitals: {
132
+ * heightIn: 70,
133
+ * weightLbs: 165,
134
+ * bloodPressureSystolicMmhg: 115,
135
+ * bloodPressureDiastolicMmhg: 85,
136
+ * bodyTemperatureF: 98,
137
+ * hemoglobinGdl: 15.1,
138
+ * hematocritPct: 51.2
139
+ * },
140
+ * existingMedications: [],
141
+ * renderingProvider: {},
142
+ * serviceFacility: {
143
+ * organizationName: "Test Organization",
144
+ * address: {
145
+ * address1: "123 Main St",
146
+ * address2: "Apt 1",
147
+ * city: "New York",
148
+ * state: CandidApi.State.Ny,
149
+ * zipCode: "10001",
150
+ * zipPlusFourCode: "1234"
151
+ * }
152
+ * },
153
+ * guarantor: {},
154
+ * billingProvider: {},
155
+ * supervisingProvider: {},
156
+ * referringProvider: {},
157
+ * initialReferringProvider: {},
158
+ * referralNumber: "string"
159
+ * },
160
+ * encounterExternalId: CandidApi.EncounterExternalId("string"),
161
+ * ehrSourceUrl: "string",
162
+ * patientExternalId: "string",
163
+ * status: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned
164
+ * })
165
+ */
166
+ create(request, requestOptions) {
167
+ var _a, _b;
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const _response = yield core.fetcher({
170
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
171
+ .candidApi, "/api/charge_captures/v1"),
172
+ method: "POST",
173
+ headers: {
174
+ Authorization: yield this._getAuthorizationHeader(),
175
+ "X-Fern-Language": "JavaScript",
176
+ "X-Fern-SDK-Name": "candidhealth",
177
+ "X-Fern-SDK-Version": "0.37.0",
178
+ "X-Fern-Runtime": core.RUNTIME.type,
179
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
180
+ },
181
+ contentType: "application/json",
182
+ requestType: "json",
183
+ body: serializers.chargeCapture.v1.CreateChargeCaptureRequest.jsonOrThrow(request, {
184
+ unrecognizedObjectKeys: "strip",
185
+ }),
186
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
187
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
188
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
189
+ });
190
+ if (_response.ok) {
191
+ return {
192
+ ok: true,
193
+ body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
194
+ unrecognizedObjectKeys: "passthrough",
195
+ allowUnrecognizedUnionMembers: true,
196
+ allowUnrecognizedEnumValues: true,
197
+ breadcrumbsPrefix: ["response"],
198
+ }),
199
+ };
200
+ }
201
+ if (_response.error.reason === "status-code") {
202
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
203
+ case "EntityNotFoundError":
204
+ case "UnauthorizedError":
205
+ case "HttpRequestValidationsError":
206
+ case "SchemaInstanceValidationHttpFailure":
207
+ case "UnprocessableEntityError":
208
+ return {
209
+ ok: false,
210
+ error: serializers.chargeCapture.v1.create.Error.parseOrThrow(_response.error.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ breadcrumbsPrefix: ["response"],
215
+ }),
216
+ };
217
+ }
218
+ }
219
+ return {
220
+ ok: false,
221
+ error: CandidApi.chargeCapture.v1.create.Error._unknown(_response.error),
222
+ };
223
+ });
224
+ }
225
+ /**
226
+ * @param {CandidApi.ChargeCaptureId} chargeCaptureId
227
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
228
+ *
229
+ * @example
230
+ * await client.chargeCapture.v1.delete(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
231
+ */
232
+ delete(chargeCaptureId, requestOptions) {
233
+ var _a, _b;
234
+ return __awaiter(this, void 0, void 0, function* () {
235
+ const _response = yield core.fetcher({
236
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
237
+ .candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
238
+ method: "DELETE",
239
+ headers: {
240
+ Authorization: yield this._getAuthorizationHeader(),
241
+ "X-Fern-Language": "JavaScript",
242
+ "X-Fern-SDK-Name": "candidhealth",
243
+ "X-Fern-SDK-Version": "0.37.0",
244
+ "X-Fern-Runtime": core.RUNTIME.type,
245
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
246
+ },
247
+ contentType: "application/json",
248
+ requestType: "json",
249
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
250
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
251
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
252
+ });
253
+ if (_response.ok) {
254
+ return {
255
+ ok: true,
256
+ body: undefined,
257
+ };
258
+ }
259
+ if (_response.error.reason === "status-code") {
260
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
261
+ case "EntityNotFoundError":
262
+ case "UnauthorizedError":
263
+ case "NotImplementedError":
264
+ return {
265
+ ok: false,
266
+ error: serializers.chargeCapture.v1.delete.Error.parseOrThrow(_response.error.body, {
267
+ unrecognizedObjectKeys: "passthrough",
268
+ allowUnrecognizedUnionMembers: true,
269
+ allowUnrecognizedEnumValues: true,
270
+ breadcrumbsPrefix: ["response"],
271
+ }),
272
+ };
273
+ }
274
+ }
275
+ return {
276
+ ok: false,
277
+ error: CandidApi.chargeCapture.v1.delete.Error._unknown(_response.error),
278
+ };
279
+ });
280
+ }
281
+ /**
282
+ * @param {CandidApi.ChargeCaptureId} chargeCaptureId
283
+ * @param {CandidApi.chargeCapture.v1.ChargeCaptureUpdate} request
284
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
285
+ *
286
+ * @example
287
+ * await client.chargeCapture.v1.update(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
288
+ * data: {
289
+ * diagnoses: [],
290
+ * interventions: [],
291
+ * externalClaimSubmission: {
292
+ * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
293
+ * patientControlNumber: "PATIENT_CONTROL_NUMBER",
294
+ * submissionRecords: [{
295
+ * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
296
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
297
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
298
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
299
+ * }, {
300
+ * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
301
+ * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
302
+ * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
303
+ * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
304
+ * }]
305
+ * },
306
+ * serviceLines: [],
307
+ * patientHistories: [],
308
+ * billingNotes: [],
309
+ * benefitsAssignedToProvider: true,
310
+ * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
311
+ * externalId: CandidApi.EncounterExternalId("string"),
312
+ * dateOfService: "2023-01-15",
313
+ * tagIds: [],
314
+ * clinicalNotes: [],
315
+ * payToAddress: {
316
+ * address1: "123 Main St",
317
+ * address2: "Apt 1",
318
+ * city: "New York",
319
+ * state: CandidApi.State.Ny,
320
+ * zipCode: "10001",
321
+ * zipPlusFourCode: "1234"
322
+ * },
323
+ * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
324
+ * responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType.InsurancePay,
325
+ * providerAcceptsAssignment: true,
326
+ * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
327
+ * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
328
+ * appointmentType: "string",
329
+ * endDateOfService: "2023-01-15",
330
+ * subscriberPrimary: {
331
+ * insuranceCard: {
332
+ * memberId: "string",
333
+ * payerName: "string",
334
+ * payerId: "string"
335
+ * },
336
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
337
+ * firstName: "string",
338
+ * lastName: "string",
339
+ * gender: CandidApi.Gender.Male
340
+ * },
341
+ * subscriberSecondary: {
342
+ * insuranceCard: {
343
+ * memberId: "string",
344
+ * payerName: "string",
345
+ * payerId: "string"
346
+ * },
347
+ * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
348
+ * firstName: "string",
349
+ * lastName: "string",
350
+ * gender: CandidApi.Gender.Male
351
+ * },
352
+ * additionalInformation: "string",
353
+ * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
354
+ * admissionDate: "2023-01-15",
355
+ * dischargeDate: "2023-01-15",
356
+ * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
357
+ * lastMenstrualPeriodDate: "2023-01-15",
358
+ * delayReasonCode: CandidApi.DelayReasonCode.C1,
359
+ * patient: {},
360
+ * patientAuthorizedRelease: true,
361
+ * schemaInstances: [],
362
+ * vitals: {
363
+ * heightIn: 70,
364
+ * weightLbs: 165,
365
+ * bloodPressureSystolicMmhg: 115,
366
+ * bloodPressureDiastolicMmhg: 85,
367
+ * bodyTemperatureF: 98,
368
+ * hemoglobinGdl: 15.1,
369
+ * hematocritPct: 51.2
370
+ * },
371
+ * existingMedications: [],
372
+ * renderingProvider: {},
373
+ * serviceFacility: {
374
+ * organizationName: "Test Organization",
375
+ * address: {
376
+ * address1: "123 Main St",
377
+ * address2: "Apt 1",
378
+ * city: "New York",
379
+ * state: CandidApi.State.Ny,
380
+ * zipCode: "10001",
381
+ * zipPlusFourCode: "1234"
382
+ * }
383
+ * },
384
+ * guarantor: {},
385
+ * billingProvider: {},
386
+ * supervisingProvider: {},
387
+ * referringProvider: {},
388
+ * initialReferringProvider: {},
389
+ * referralNumber: "string"
390
+ * },
391
+ * encounterExternalId: CandidApi.EncounterExternalId("string"),
392
+ * ehrSourceUrl: "string",
393
+ * patientExternalId: "string",
394
+ * status: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned
395
+ * })
396
+ */
397
+ update(chargeCaptureId, request = {}, requestOptions) {
398
+ var _a, _b;
399
+ return __awaiter(this, void 0, void 0, function* () {
400
+ const _response = yield core.fetcher({
401
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
402
+ .candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
403
+ method: "PATCH",
404
+ headers: {
405
+ Authorization: yield this._getAuthorizationHeader(),
406
+ "X-Fern-Language": "JavaScript",
407
+ "X-Fern-SDK-Name": "candidhealth",
408
+ "X-Fern-SDK-Version": "0.37.0",
409
+ "X-Fern-Runtime": core.RUNTIME.type,
410
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
411
+ },
412
+ contentType: "application/json",
413
+ requestType: "json",
414
+ body: serializers.chargeCapture.v1.ChargeCaptureUpdate.jsonOrThrow(request, {
415
+ unrecognizedObjectKeys: "strip",
416
+ }),
417
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
418
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
419
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
420
+ });
421
+ if (_response.ok) {
422
+ return {
423
+ ok: true,
424
+ body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
425
+ unrecognizedObjectKeys: "passthrough",
426
+ allowUnrecognizedUnionMembers: true,
427
+ allowUnrecognizedEnumValues: true,
428
+ breadcrumbsPrefix: ["response"],
429
+ }),
430
+ };
431
+ }
432
+ if (_response.error.reason === "status-code") {
433
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
434
+ case "EntityNotFoundError":
435
+ case "UnauthorizedError":
436
+ case "HttpRequestValidationsError":
437
+ case "SchemaInstanceValidationHttpFailure":
438
+ case "UnprocessableEntityError":
439
+ return {
440
+ ok: false,
441
+ error: serializers.chargeCapture.v1.update.Error.parseOrThrow(_response.error.body, {
442
+ unrecognizedObjectKeys: "passthrough",
443
+ allowUnrecognizedUnionMembers: true,
444
+ allowUnrecognizedEnumValues: true,
445
+ breadcrumbsPrefix: ["response"],
446
+ }),
447
+ };
448
+ }
449
+ }
450
+ return {
451
+ ok: false,
452
+ error: CandidApi.chargeCapture.v1.update.Error._unknown(_response.error),
453
+ };
454
+ });
455
+ }
456
+ /**
457
+ * @param {CandidApi.ChargeCaptureId} chargeCaptureId
458
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
459
+ *
460
+ * @example
461
+ * await client.chargeCapture.v1.get(CandidApi.ChargeCaptureId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
462
+ */
463
+ get(chargeCaptureId, requestOptions) {
464
+ var _a;
465
+ return __awaiter(this, void 0, void 0, function* () {
466
+ const _response = yield core.fetcher({
467
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
468
+ .candidApi, `/api/charge_captures/v1/${encodeURIComponent(serializers.ChargeCaptureId.jsonOrThrow(chargeCaptureId))}`),
469
+ method: "GET",
470
+ headers: {
471
+ Authorization: yield this._getAuthorizationHeader(),
472
+ "X-Fern-Language": "JavaScript",
473
+ "X-Fern-SDK-Name": "candidhealth",
474
+ "X-Fern-SDK-Version": "0.37.0",
475
+ "X-Fern-Runtime": core.RUNTIME.type,
476
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
477
+ },
478
+ contentType: "application/json",
479
+ requestType: "json",
480
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
481
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
482
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
483
+ });
484
+ if (_response.ok) {
485
+ return {
486
+ ok: true,
487
+ body: serializers.chargeCapture.v1.ChargeCapture.parseOrThrow(_response.body, {
488
+ unrecognizedObjectKeys: "passthrough",
489
+ allowUnrecognizedUnionMembers: true,
490
+ allowUnrecognizedEnumValues: true,
491
+ breadcrumbsPrefix: ["response"],
492
+ }),
493
+ };
494
+ }
495
+ return {
496
+ ok: false,
497
+ error: CandidApi.chargeCapture.v1.get.Error._unknown(_response.error),
498
+ };
499
+ });
500
+ }
501
+ /**
502
+ * @param {CandidApi.chargeCapture.v1.GetAllChargeCapturesRequest} request
503
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
504
+ *
505
+ * @example
506
+ * await client.chargeCapture.v1.getAll({
507
+ * limit: 1,
508
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
509
+ * patientExternalId: "string",
510
+ * status: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned,
511
+ * externalId: CandidApi.EncounterExternalId("string")
512
+ * })
513
+ */
514
+ getAll(request = {}, requestOptions) {
515
+ var _a, _b;
516
+ return __awaiter(this, void 0, void 0, function* () {
517
+ const { limit, pageToken, patientExternalId, status, externalId } = request;
518
+ const _queryParams = {};
519
+ if (limit != null) {
520
+ _queryParams["limit"] = limit.toString();
521
+ }
522
+ if (pageToken != null) {
523
+ _queryParams["page_token"] = pageToken;
524
+ }
525
+ if (patientExternalId != null) {
526
+ _queryParams["patient_external_id"] = patientExternalId;
527
+ }
528
+ if (status != null) {
529
+ _queryParams["status"] = status;
530
+ }
531
+ if (externalId != null) {
532
+ _queryParams["external_id"] = externalId;
533
+ }
534
+ const _response = yield core.fetcher({
535
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
536
+ .candidApi, "/api/charge_captures/v1"),
537
+ method: "GET",
538
+ headers: {
539
+ Authorization: yield this._getAuthorizationHeader(),
540
+ "X-Fern-Language": "JavaScript",
541
+ "X-Fern-SDK-Name": "candidhealth",
542
+ "X-Fern-SDK-Version": "0.37.0",
543
+ "X-Fern-Runtime": core.RUNTIME.type,
544
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
545
+ },
546
+ contentType: "application/json",
547
+ queryParameters: _queryParams,
548
+ requestType: "json",
549
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
550
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
551
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
552
+ });
553
+ if (_response.ok) {
554
+ return {
555
+ ok: true,
556
+ body: serializers.chargeCapture.v1.ChargeCapturePage.parseOrThrow(_response.body, {
557
+ unrecognizedObjectKeys: "passthrough",
558
+ allowUnrecognizedUnionMembers: true,
559
+ allowUnrecognizedEnumValues: true,
560
+ breadcrumbsPrefix: ["response"],
561
+ }),
562
+ };
563
+ }
564
+ if (_response.error.reason === "status-code") {
565
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
566
+ case "NotImplementedError":
567
+ return {
568
+ ok: false,
569
+ error: serializers.chargeCapture.v1.getAll.Error.parseOrThrow(_response.error.body, {
570
+ unrecognizedObjectKeys: "passthrough",
571
+ allowUnrecognizedUnionMembers: true,
572
+ allowUnrecognizedEnumValues: true,
573
+ breadcrumbsPrefix: ["response"],
574
+ }),
575
+ };
576
+ }
577
+ }
578
+ return {
579
+ ok: false,
580
+ error: CandidApi.chargeCapture.v1.getAll.Error._unknown(_response.error),
581
+ };
582
+ });
583
+ }
584
+ _getAuthorizationHeader() {
585
+ return __awaiter(this, void 0, void 0, function* () {
586
+ const bearer = yield core.Supplier.get(this._options.token);
587
+ if (bearer != null) {
588
+ return `Bearer ${bearer}`;
589
+ }
590
+ return undefined;
591
+ });
592
+ }
593
+ }
594
+ exports.V1 = V1;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.chargeCapture.v1.create.Error.EntityNotFoundError | CandidApi.chargeCapture.v1.create.Error.UnauthorizedError | CandidApi.chargeCapture.v1.create.Error.HttpRequestValidationsError | CandidApi.chargeCapture.v1.create.Error.SchemaInstanceValidationHttpFailure | CandidApi.chargeCapture.v1.create.Error.UnprocessableEntityError | CandidApi.chargeCapture.v1.create.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface UnauthorizedError extends _Utils {
13
+ errorName: "UnauthorizedError";
14
+ content: CandidApi.UnauthorizedErrorMessage;
15
+ }
16
+ interface HttpRequestValidationsError extends _Utils {
17
+ errorName: "HttpRequestValidationsError";
18
+ content: CandidApi.RequestValidationError[];
19
+ }
20
+ interface SchemaInstanceValidationHttpFailure extends _Utils {
21
+ errorName: "SchemaInstanceValidationHttpFailure";
22
+ content: CandidApi.encounters.v4.SchemaInstanceValidationFailure;
23
+ }
24
+ interface UnprocessableEntityError extends _Utils {
25
+ errorName: "UnprocessableEntityError";
26
+ content: CandidApi.UnprocessableEntityErrorMessage;
27
+ }
28
+ interface _Unknown extends _Utils {
29
+ errorName: void;
30
+ content: core.Fetcher.Error;
31
+ }
32
+ interface _Utils {
33
+ _visit: <_Result>(visitor: CandidApi.chargeCapture.v1.create.Error._Visitor<_Result>) => _Result;
34
+ }
35
+ interface _Visitor<_Result> {
36
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
37
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
38
+ httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
39
+ schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => _Result;
40
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
41
+ _other: (value: core.Fetcher.Error) => _Result;
42
+ }
43
+ }
44
+ export declare const Error: {
45
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.chargeCapture.v1.create.Error.EntityNotFoundError;
46
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.chargeCapture.v1.create.Error.UnauthorizedError;
47
+ readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.chargeCapture.v1.create.Error.HttpRequestValidationsError;
48
+ readonly schemaInstanceValidationHttpFailure: (value: CandidApi.encounters.v4.SchemaInstanceValidationFailure) => CandidApi.chargeCapture.v1.create.Error.SchemaInstanceValidationHttpFailure;
49
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.chargeCapture.v1.create.Error.UnprocessableEntityError;
50
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCapture.v1.create.Error._Unknown;
51
+ readonly _visit: <_Result>(value: CandidApi.chargeCapture.v1.create.Error, visitor: CandidApi.chargeCapture.v1.create.Error._Visitor<_Result>) => _Result;
52
+ };