candidhealth 1.17.0 → 1.17.1

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 (284) hide show
  1. package/Client.d.ts +0 -3
  2. package/Client.js +36 -41
  3. package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +6 -0
  4. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +6 -0
  5. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +6 -0
  6. package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +6 -0
  7. package/api/resources/encounterProviders/resources/v2/types/ProviderSecondaryIdentification.d.ts +4 -0
  8. package/api/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +6 -0
  9. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +6 -0
  10. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +6 -0
  11. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  12. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  13. package/api/resources/encounters/resources/v4/client/Client.d.ts +15 -0
  14. package/api/resources/encounters/resources/v4/client/Client.js +19 -0
  15. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  16. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  17. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +7 -1
  18. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +11 -0
  19. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +7 -1
  20. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +11 -0
  21. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +7 -1
  22. package/api/resources/encounters/resources/v4/client/createUniversal.js +11 -0
  23. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  24. package/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  25. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  26. package/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  27. package/api/resources/events/resources/v1/client/requests/GetEventScanRequest.d.ts +14 -1
  28. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +9 -1
  29. package/api/resources/feeSchedules/resources/v3/client/Client.js +9 -1
  30. package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +6 -1
  31. package/api/resources/index.d.ts +1 -1
  32. package/api/resources/index.js +2 -2
  33. package/api/resources/relatedCausesInformation/resources/v1/index.d.ts +1 -0
  34. package/api/resources/{insurancePayments → relatedCausesInformation}/resources/v1/index.js +0 -1
  35. package/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.d.ts +21 -0
  36. package/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.js +24 -0
  37. package/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformation.d.ts +6 -0
  38. package/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.d.ts +3 -0
  39. package/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.d.ts +3 -0
  40. package/api/resources/relatedCausesInformation/resources/v1/types/index.d.ts +4 -0
  41. package/api/resources/{insurancePayments → relatedCausesInformation}/resources/v1/types/index.js +4 -4
  42. package/dist/Client.d.ts +0 -3
  43. package/dist/Client.js +36 -41
  44. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +6 -0
  45. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +6 -0
  46. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +6 -0
  47. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +6 -0
  48. package/dist/api/resources/encounterProviders/resources/v2/types/ProviderSecondaryIdentification.d.ts +4 -0
  49. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +6 -0
  50. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +6 -0
  51. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +6 -0
  52. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  53. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  54. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +15 -0
  55. package/dist/api/resources/encounters/resources/v4/client/Client.js +19 -0
  56. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  57. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  58. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +7 -1
  59. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +11 -0
  60. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +7 -1
  61. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +11 -0
  62. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +7 -1
  63. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +11 -0
  64. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -0
  65. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  66. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  67. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  68. package/dist/api/resources/events/resources/v1/client/requests/GetEventScanRequest.d.ts +14 -1
  69. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +9 -1
  70. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +9 -1
  71. package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +6 -1
  72. package/dist/api/resources/index.d.ts +1 -1
  73. package/dist/api/resources/index.js +2 -2
  74. package/dist/api/resources/relatedCausesInformation/resources/v1/index.d.ts +1 -0
  75. package/dist/api/resources/{insurancePayments → relatedCausesInformation}/resources/v1/index.js +0 -1
  76. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.d.ts +21 -0
  77. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.js +24 -0
  78. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformation.d.ts +6 -0
  79. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.d.ts +3 -0
  80. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.js +3 -0
  81. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.d.ts +3 -0
  82. package/dist/api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.js +3 -0
  83. package/dist/api/resources/relatedCausesInformation/resources/v1/types/index.d.ts +4 -0
  84. package/dist/api/resources/relatedCausesInformation/resources/v1/types/index.js +20 -0
  85. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  86. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  87. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  88. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  89. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +2 -0
  90. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +2 -0
  91. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  92. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  93. package/dist/serialization/resources/encounterProviders/resources/v2/types/ProviderSecondaryIdentification.d.ts +9 -0
  94. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentId.js → encounterProviders/resources/v2/types/ProviderSecondaryIdentification.js} +3 -5
  95. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +2 -0
  96. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.js +2 -0
  97. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +2 -0
  98. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.js +2 -0
  99. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +2 -0
  100. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +2 -0
  101. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  102. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  103. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  104. package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  105. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +6 -1
  106. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +6 -0
  107. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +6 -1
  108. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +6 -0
  109. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +6 -1
  110. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +6 -0
  111. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  112. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  113. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  114. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +2 -0
  115. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  116. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +2 -0
  117. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  118. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +2 -0
  119. package/dist/serialization/resources/index.d.ts +1 -1
  120. package/dist/serialization/resources/index.js +2 -2
  121. package/{api/resources/insurancePayments → dist/serialization/resources/relatedCausesInformation}/index.d.ts +0 -1
  122. package/{api/resources/insurancePayments → dist/serialization/resources/relatedCausesInformation}/index.js +0 -1
  123. package/dist/serialization/resources/relatedCausesInformation/resources/v1/index.d.ts +1 -0
  124. package/{serialization/resources/insurancePayments → dist/serialization/resources/relatedCausesInformation}/resources/v1/index.js +0 -1
  125. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.d.ts +7 -0
  126. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentSortField.js → relatedCausesInformation/resources/v1/types/RelatedCausesCode.js} +2 -2
  127. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformation.d.ts +12 -0
  128. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentsPage.js → relatedCausesInformation/resources/v1/types/RelatedCausesInformation.js} +7 -8
  129. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.d.ts +9 -0
  130. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.js +40 -0
  131. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.d.ts +9 -0
  132. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.js +40 -0
  133. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/index.d.ts +4 -0
  134. package/dist/serialization/resources/relatedCausesInformation/resources/v1/types/index.js +20 -0
  135. package/dist/version.d.ts +1 -1
  136. package/dist/version.js +1 -1
  137. package/package.json +1 -1
  138. package/reference.md +48 -129
  139. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  140. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  141. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  142. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  143. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +2 -0
  144. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.js +2 -0
  145. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  146. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  147. package/serialization/resources/encounterProviders/resources/v2/types/ProviderSecondaryIdentification.d.ts +9 -0
  148. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentId.js → encounterProviders/resources/v2/types/ProviderSecondaryIdentification.js} +3 -5
  149. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +2 -0
  150. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.js +2 -0
  151. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +2 -0
  152. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.js +2 -0
  153. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.d.ts +2 -0
  154. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdateWithOptionalAddress.js +2 -0
  155. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  156. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  157. package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  158. package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  159. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +6 -1
  160. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +6 -0
  161. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +6 -1
  162. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +6 -0
  163. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +6 -1
  164. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +6 -0
  165. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  166. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  167. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +2 -0
  168. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +2 -0
  169. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +2 -0
  170. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +2 -0
  171. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +2 -0
  172. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +2 -0
  173. package/serialization/resources/index.d.ts +1 -1
  174. package/serialization/resources/index.js +2 -2
  175. package/{dist/api/resources/insurancePayments → serialization/resources/relatedCausesInformation}/index.d.ts +0 -1
  176. package/{dist/api/resources/insurancePayments → serialization/resources/relatedCausesInformation}/index.js +0 -1
  177. package/serialization/resources/relatedCausesInformation/resources/v1/index.d.ts +1 -0
  178. package/{dist/serialization/resources/insurancePayments → serialization/resources/relatedCausesInformation}/resources/v1/index.js +0 -1
  179. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesCode.d.ts +7 -0
  180. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentSortField.js → relatedCausesInformation/resources/v1/types/RelatedCausesCode.js} +2 -2
  181. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformation.d.ts +12 -0
  182. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformation.js +44 -0
  183. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.d.ts +9 -0
  184. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.js +40 -0
  185. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.d.ts +9 -0
  186. package/serialization/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.js +40 -0
  187. package/serialization/resources/relatedCausesInformation/resources/v1/types/index.d.ts +4 -0
  188. package/serialization/resources/relatedCausesInformation/resources/v1/types/index.js +20 -0
  189. package/version.d.ts +1 -1
  190. package/version.js +1 -1
  191. package/api/resources/insurancePayments/client/Client.d.ts +0 -14
  192. package/api/resources/insurancePayments/client/Client.js +0 -15
  193. package/api/resources/insurancePayments/client/index.d.ts +0 -1
  194. package/api/resources/insurancePayments/client/index.js +0 -2
  195. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -38
  196. package/api/resources/insurancePayments/resources/v1/client/Client.js +0 -237
  197. package/api/resources/insurancePayments/resources/v1/client/get.d.ts +0 -31
  198. package/api/resources/insurancePayments/resources/v1/client/get.js +0 -77
  199. package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +0 -31
  200. package/api/resources/insurancePayments/resources/v1/client/getMulti.js +0 -77
  201. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  202. package/api/resources/insurancePayments/resources/v1/client/index.js +0 -42
  203. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +0 -18
  204. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  205. package/api/resources/insurancePayments/resources/v1/client/requests/index.js +0 -2
  206. package/api/resources/insurancePayments/resources/v1/index.d.ts +0 -2
  207. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +0 -9
  208. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +0 -5
  209. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +0 -7
  210. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +0 -6
  211. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +0 -9
  212. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +0 -4
  213. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -4
  214. package/dist/api/resources/insurancePayments/client/Client.d.ts +0 -14
  215. package/dist/api/resources/insurancePayments/client/Client.js +0 -15
  216. package/dist/api/resources/insurancePayments/client/index.d.ts +0 -1
  217. package/dist/api/resources/insurancePayments/client/index.js +0 -2
  218. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -38
  219. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +0 -237
  220. package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +0 -31
  221. package/dist/api/resources/insurancePayments/resources/v1/client/get.js +0 -77
  222. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +0 -31
  223. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +0 -77
  224. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  225. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +0 -42
  226. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +0 -18
  227. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  228. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +0 -2
  229. package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +0 -2
  230. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +0 -9
  231. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +0 -5
  232. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +0 -7
  233. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +0 -6
  234. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +0 -9
  235. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +0 -4
  236. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -4
  237. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -20
  238. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +0 -17
  239. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +0 -75
  240. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +0 -17
  241. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +0 -75
  242. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -2
  243. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +0 -38
  244. package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +0 -2
  245. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +0 -17
  246. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +0 -49
  247. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +0 -7
  248. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +0 -7
  249. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +0 -11
  250. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -4
  251. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -20
  252. package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +0 -17
  253. package/serialization/resources/insurancePayments/resources/v1/client/get.js +0 -75
  254. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +0 -17
  255. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +0 -75
  256. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -2
  257. package/serialization/resources/insurancePayments/resources/v1/client/index.js +0 -38
  258. package/serialization/resources/insurancePayments/resources/v1/index.d.ts +0 -2
  259. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +0 -17
  260. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +0 -49
  261. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +0 -7
  262. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +0 -7
  263. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +0 -11
  264. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +0 -45
  265. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -4
  266. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -20
  267. /package/api/resources/{insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js → encounterProviders/resources/v2/types/ProviderSecondaryIdentification.js} +0 -0
  268. /package/{dist/serialization/resources/insurancePayments → api/resources/relatedCausesInformation}/index.d.ts +0 -0
  269. /package/{dist/serialization/resources/insurancePayments → api/resources/relatedCausesInformation}/index.js +0 -0
  270. /package/api/resources/{insurancePayments → relatedCausesInformation}/resources/index.d.ts +0 -0
  271. /package/api/resources/{insurancePayments → relatedCausesInformation}/resources/index.js +0 -0
  272. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePayment.js → relatedCausesInformation/resources/v1/types/RelatedCausesInformation.js} +0 -0
  273. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentsPage.js → relatedCausesInformation/resources/v1/types/RelatedCausesInformationCreate.js} +0 -0
  274. /package/{dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js → api/resources/relatedCausesInformation/resources/v1/types/RelatedCausesInformationUpdate.js} +0 -0
  275. /package/dist/api/resources/{insurancePayments/resources/v1/types/InsurancePayment.js → encounterProviders/resources/v2/types/ProviderSecondaryIdentification.js} +0 -0
  276. /package/{serialization/resources/insurancePayments → dist/api/resources/relatedCausesInformation}/index.d.ts +0 -0
  277. /package/{serialization/resources/insurancePayments → dist/api/resources/relatedCausesInformation}/index.js +0 -0
  278. /package/dist/api/resources/{insurancePayments → relatedCausesInformation}/resources/index.d.ts +0 -0
  279. /package/dist/api/resources/{insurancePayments → relatedCausesInformation}/resources/index.js +0 -0
  280. /package/dist/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentsPage.js → relatedCausesInformation/resources/v1/types/RelatedCausesInformation.js} +0 -0
  281. /package/dist/serialization/resources/{insurancePayments → relatedCausesInformation}/resources/index.d.ts +0 -0
  282. /package/dist/serialization/resources/{insurancePayments → relatedCausesInformation}/resources/index.js +0 -0
  283. /package/serialization/resources/{insurancePayments → relatedCausesInformation}/resources/index.d.ts +0 -0
  284. /package/serialization/resources/{insurancePayments → relatedCausesInformation}/resources/index.js +0 -0
@@ -1,31 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insurancePayments.v1.getMulti.Error.UnauthorizedError | CandidApi.insurancePayments.v1.getMulti.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.getMulti.Error._Unknown;
4
- export declare namespace Error {
5
- interface UnauthorizedError extends _Utils {
6
- errorName: "UnauthorizedError";
7
- content: CandidApi.UnauthorizedErrorMessage;
8
- }
9
- interface UnprocessableEntityError extends _Utils {
10
- errorName: "UnprocessableEntityError";
11
- content: CandidApi.UnprocessableEntityErrorMessage;
12
- }
13
- interface _Unknown extends _Utils {
14
- errorName: void;
15
- content: core.Fetcher.Error;
16
- }
17
- interface _Utils {
18
- _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.getMulti.Error._Visitor<_Result>) => _Result;
19
- }
20
- interface _Visitor<_Result> {
21
- unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
22
- unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
23
- _other: (value: core.Fetcher.Error) => _Result;
24
- }
25
- }
26
- export declare const Error: {
27
- readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.getMulti.Error.UnauthorizedError;
28
- readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.getMulti.Error.UnprocessableEntityError;
29
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.getMulti.Error._Unknown;
30
- readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.getMulti.Error, visitor: CandidApi.insurancePayments.v1.getMulti.Error._Visitor<_Result>) => _Result;
31
- };
@@ -1,77 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.Error = void 0;
38
- const CandidApi = __importStar(require("../../../../../index"));
39
- exports.Error = {
40
- unauthorizedError: (value) => {
41
- return {
42
- content: value,
43
- errorName: "UnauthorizedError",
44
- _visit: function (visitor) {
45
- return CandidApi.insurancePayments.v1.getMulti.Error._visit(this, visitor);
46
- },
47
- };
48
- },
49
- unprocessableEntityError: (value) => {
50
- return {
51
- content: value,
52
- errorName: "UnprocessableEntityError",
53
- _visit: function (visitor) {
54
- return CandidApi.insurancePayments.v1.getMulti.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _unknown: (fetcherError) => {
59
- return {
60
- errorName: undefined,
61
- content: fetcherError,
62
- _visit: function (visitor) {
63
- return CandidApi.insurancePayments.v1.getMulti.Error._visit(this, visitor);
64
- },
65
- };
66
- },
67
- _visit: (value, visitor) => {
68
- switch (value.errorName) {
69
- case "UnauthorizedError":
70
- return visitor.unauthorizedError(value.content);
71
- case "UnprocessableEntityError":
72
- return visitor.unprocessableEntityError(value.content);
73
- default:
74
- return visitor._other(value);
75
- }
76
- },
77
- };
@@ -1,3 +0,0 @@
1
- export * as get from "./get";
2
- export * as getMulti from "./getMulti";
3
- export * from "./requests";
@@ -1,42 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.getMulti = exports.get = void 0;
40
- exports.get = __importStar(require("./get"));
41
- exports.getMulti = __importStar(require("./getMulti"));
42
- __exportStar(require("./requests"), exports);
@@ -1,18 +0,0 @@
1
- import type * as CandidApi from "../../../../../../index";
2
- /**
3
- * @example
4
- * {}
5
- */
6
- export interface GetMultiInsurancePaymentRequest {
7
- /** Defaults to 100. The value must be greater than 0 and less than 1000. */
8
- limit?: number;
9
- payerUuid?: CandidApi.payers.v3.PayerUuid;
10
- claimId?: CandidApi.ClaimId;
11
- serviceLineId?: CandidApi.ServiceLineId;
12
- billingProviderId?: CandidApi.ProviderId;
13
- /** Defaults to payment_timestamp */
14
- sort?: CandidApi.insurancePayments.v1.InsurancePaymentSortField;
15
- /** Sort direction. Defaults to descending order if not provided. */
16
- sortDirection?: CandidApi.SortDirection;
17
- pageToken?: CandidApi.PageToken;
18
- }
@@ -1 +0,0 @@
1
- export type { GetMultiInsurancePaymentRequest } from "./GetMultiInsurancePaymentRequest";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- export * from "./client";
2
- export * from "./types";
@@ -1,9 +0,0 @@
1
- import type * as CandidApi from "../../../../../index";
2
- export interface InsurancePayment {
3
- insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId;
4
- payer: CandidApi.payers.v3.Payer;
5
- amountCents: number;
6
- paymentTimestamp?: Date;
7
- paymentNote?: string;
8
- allocations: CandidApi.Allocation[];
9
- }
@@ -1,5 +0,0 @@
1
- import type * as CandidApi from "../../../../../index";
2
- export type InsurancePaymentId = string & {
3
- insurancePayments_v1_InsurancePaymentId: void;
4
- };
5
- export declare function InsurancePaymentId(value: string): CandidApi.insurancePayments.v1.InsurancePaymentId;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InsurancePaymentId = InsurancePaymentId;
5
- function InsurancePaymentId(value) {
6
- return value;
7
- }
@@ -1,6 +0,0 @@
1
- export declare const InsurancePaymentSortField: {
2
- readonly AmountCents: "amount_cents";
3
- readonly PaymentTimestamp: "payment_timestamp";
4
- readonly PaymentNote: "payment_note";
5
- };
6
- export type InsurancePaymentSortField = (typeof InsurancePaymentSortField)[keyof typeof InsurancePaymentSortField];
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InsurancePaymentSortField = void 0;
5
- exports.InsurancePaymentSortField = {
6
- AmountCents: "amount_cents",
7
- PaymentTimestamp: "payment_timestamp",
8
- PaymentNote: "payment_note",
9
- };
@@ -1,4 +0,0 @@
1
- import type * as CandidApi from "../../../../../index";
2
- export interface InsurancePaymentsPage extends CandidApi.ResourcePage {
3
- items: CandidApi.insurancePayments.v1.InsurancePayment[];
4
- }
@@ -1,4 +0,0 @@
1
- export * from "./InsurancePayment";
2
- export * from "./InsurancePaymentId";
3
- export * from "./InsurancePaymentSortField";
4
- export * from "./InsurancePaymentsPage";
@@ -1,14 +0,0 @@
1
- import type { BaseClientOptions } from "../../../../BaseClient";
2
- import type * as core from "../../../../core";
3
- import { V1 } from "../resources/v1/client/Client";
4
- export declare namespace InsurancePayments {
5
- interface Options extends BaseClientOptions {
6
- token?: core.Supplier<core.BearerToken | undefined>;
7
- }
8
- }
9
- export declare class InsurancePayments {
10
- protected readonly _options: InsurancePayments.Options;
11
- protected _v1: V1 | undefined;
12
- constructor(_options?: InsurancePayments.Options);
13
- get v1(): V1;
14
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.InsurancePayments = void 0;
5
- const Client_1 = require("../resources/v1/client/Client");
6
- class InsurancePayments {
7
- constructor(_options = {}) {
8
- this._options = _options;
9
- }
10
- get v1() {
11
- var _a;
12
- return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
13
- }
14
- }
15
- exports.InsurancePayments = InsurancePayments;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,38 +0,0 @@
1
- import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient";
2
- import * as core from "../../../../../../core";
3
- import * as CandidApi from "../../../../../index";
4
- export declare namespace V1 {
5
- interface Options extends BaseClientOptions {
6
- token?: core.Supplier<core.BearerToken | undefined>;
7
- }
8
- interface RequestOptions extends BaseRequestOptions {
9
- }
10
- }
11
- export declare class V1 {
12
- protected readonly _options: V1.Options;
13
- constructor(_options?: V1.Options);
14
- /**
15
- * Returns all non-ERA originated insurance payments satisfying the search criteria
16
- *
17
- * @param {CandidApi.insurancePayments.v1.GetMultiInsurancePaymentRequest} request
18
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
19
- *
20
- * @example
21
- * await client.insurancePayments.v1.getMulti()
22
- */
23
- getMulti(request?: CandidApi.insurancePayments.v1.GetMultiInsurancePaymentRequest, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePaymentsPage, CandidApi.insurancePayments.v1.getMulti.Error>>;
24
- private __getMulti;
25
- /**
26
- * Retrieves a previously created insurance payment by its `insurance_payment_id`.
27
- * If the payment does not exist, a `403` will be thrown.
28
- *
29
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
30
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
31
- *
32
- * @example
33
- * await client.insurancePayments.v1.get(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
34
- */
35
- get(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.get.Error>>;
36
- private __get;
37
- protected _getAuthorizationHeader(): Promise<string | undefined>;
38
- }
@@ -1,237 +0,0 @@
1
- "use strict";
2
- // This file was auto-generated by Fern from our API Definition.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || (function () {
20
- var ownKeys = function(o) {
21
- ownKeys = Object.getOwnPropertyNames || function (o) {
22
- var ar = [];
23
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
- return ar;
25
- };
26
- return ownKeys(o);
27
- };
28
- return function (mod) {
29
- if (mod && mod.__esModule) return mod;
30
- var result = {};
31
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
- __setModuleDefault(result, mod);
33
- return result;
34
- };
35
- })();
36
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
- return new (P || (P = Promise))(function (resolve, reject) {
39
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
- step((generator = generator.apply(thisArg, _arguments || [])).next());
43
- });
44
- };
45
- Object.defineProperty(exports, "__esModule", { value: true });
46
- exports.V1 = void 0;
47
- const core = __importStar(require("../../../../../../core"));
48
- const headers_1 = require("../../../../../../core/headers");
49
- const environments = __importStar(require("../../../../../../environments"));
50
- const serializers = __importStar(require("../../../../../../serialization/index"));
51
- const CandidApi = __importStar(require("../../../../../index"));
52
- class V1 {
53
- constructor(_options = {}) {
54
- this._options = _options;
55
- }
56
- /**
57
- * Returns all non-ERA originated insurance payments satisfying the search criteria
58
- *
59
- * @param {CandidApi.insurancePayments.v1.GetMultiInsurancePaymentRequest} request
60
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
61
- *
62
- * @example
63
- * await client.insurancePayments.v1.getMulti()
64
- */
65
- getMulti(request = {}, requestOptions) {
66
- return core.HttpResponsePromise.fromPromise(this.__getMulti(request, requestOptions));
67
- }
68
- __getMulti() {
69
- return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
70
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
71
- const { limit, payerUuid, claimId, serviceLineId, billingProviderId, sort, sortDirection, pageToken } = request;
72
- const _queryParams = {};
73
- if (limit != null) {
74
- _queryParams.limit = limit.toString();
75
- }
76
- if (payerUuid != null) {
77
- _queryParams.payer_uuid = payerUuid;
78
- }
79
- if (claimId != null) {
80
- _queryParams.claim_id = claimId;
81
- }
82
- if (serviceLineId != null) {
83
- _queryParams.service_line_id = serviceLineId;
84
- }
85
- if (billingProviderId != null) {
86
- _queryParams.billing_provider_id = billingProviderId;
87
- }
88
- if (sort != null) {
89
- _queryParams.sort = serializers.insurancePayments.v1.InsurancePaymentSortField.jsonOrThrow(sort, {
90
- unrecognizedObjectKeys: "strip",
91
- });
92
- }
93
- if (sortDirection != null) {
94
- _queryParams.sort_direction = serializers.SortDirection.jsonOrThrow(sortDirection, {
95
- unrecognizedObjectKeys: "strip",
96
- });
97
- }
98
- if (pageToken != null) {
99
- _queryParams.page_token = pageToken;
100
- }
101
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
102
- const _response = yield core.fetcher({
103
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-payments/v1"),
104
- method: "GET",
105
- headers: _headers,
106
- queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
107
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
108
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
109
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
- });
111
- if (_response.ok) {
112
- return {
113
- data: {
114
- ok: true,
115
- body: serializers.insurancePayments.v1.InsurancePaymentsPage.parseOrThrow(_response.body, {
116
- unrecognizedObjectKeys: "passthrough",
117
- allowUnrecognizedUnionMembers: true,
118
- allowUnrecognizedEnumValues: true,
119
- breadcrumbsPrefix: ["response"],
120
- }),
121
- headers: _response.headers,
122
- rawResponse: _response.rawResponse,
123
- },
124
- rawResponse: _response.rawResponse,
125
- };
126
- }
127
- if (_response.error.reason === "status-code") {
128
- switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
129
- case "UnauthorizedError":
130
- case "UnprocessableEntityError":
131
- return {
132
- data: {
133
- ok: false,
134
- error: serializers.insurancePayments.v1.getMulti.Error.parseOrThrow(_response.error.body, {
135
- unrecognizedObjectKeys: "passthrough",
136
- allowUnrecognizedUnionMembers: true,
137
- allowUnrecognizedEnumValues: true,
138
- breadcrumbsPrefix: ["response"],
139
- }),
140
- rawResponse: _response.rawResponse,
141
- },
142
- rawResponse: _response.rawResponse,
143
- };
144
- }
145
- }
146
- return {
147
- data: {
148
- ok: false,
149
- error: CandidApi.insurancePayments.v1.getMulti.Error._unknown(_response.error),
150
- rawResponse: _response.rawResponse,
151
- },
152
- rawResponse: _response.rawResponse,
153
- };
154
- });
155
- }
156
- /**
157
- * Retrieves a previously created insurance payment by its `insurance_payment_id`.
158
- * If the payment does not exist, a `403` will be thrown.
159
- *
160
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
161
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
162
- *
163
- * @example
164
- * await client.insurancePayments.v1.get(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
165
- */
166
- get(insurancePaymentId, requestOptions) {
167
- return core.HttpResponsePromise.fromPromise(this.__get(insurancePaymentId, requestOptions));
168
- }
169
- __get(insurancePaymentId, requestOptions) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
172
- const _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
173
- const _response = yield core.fetcher({
174
- url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-payments/v1/${core.url.encodePathParam(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
175
- method: "GET",
176
- headers: _headers,
177
- queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
178
- timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
179
- maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
180
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
181
- });
182
- if (_response.ok) {
183
- return {
184
- data: {
185
- ok: true,
186
- body: serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
187
- unrecognizedObjectKeys: "passthrough",
188
- allowUnrecognizedUnionMembers: true,
189
- allowUnrecognizedEnumValues: true,
190
- breadcrumbsPrefix: ["response"],
191
- }),
192
- headers: _response.headers,
193
- rawResponse: _response.rawResponse,
194
- },
195
- rawResponse: _response.rawResponse,
196
- };
197
- }
198
- if (_response.error.reason === "status-code") {
199
- switch ((_j = _response.error.body) === null || _j === void 0 ? void 0 : _j.errorName) {
200
- case "EntityNotFoundError":
201
- case "UnauthorizedError":
202
- return {
203
- data: {
204
- ok: false,
205
- error: serializers.insurancePayments.v1.get.Error.parseOrThrow(_response.error.body, {
206
- unrecognizedObjectKeys: "passthrough",
207
- allowUnrecognizedUnionMembers: true,
208
- allowUnrecognizedEnumValues: true,
209
- breadcrumbsPrefix: ["response"],
210
- }),
211
- rawResponse: _response.rawResponse,
212
- },
213
- rawResponse: _response.rawResponse,
214
- };
215
- }
216
- }
217
- return {
218
- data: {
219
- ok: false,
220
- error: CandidApi.insurancePayments.v1.get.Error._unknown(_response.error),
221
- rawResponse: _response.rawResponse,
222
- },
223
- rawResponse: _response.rawResponse,
224
- };
225
- });
226
- }
227
- _getAuthorizationHeader() {
228
- return __awaiter(this, void 0, void 0, function* () {
229
- const bearer = yield core.Supplier.get(this._options.token);
230
- if (bearer != null) {
231
- return `Bearer ${bearer}`;
232
- }
233
- return undefined;
234
- });
235
- }
236
- }
237
- exports.V1 = V1;
@@ -1,31 +0,0 @@
1
- import type * as core from "../../../../../../core";
2
- import * as CandidApi from "../../../../../index";
3
- export type Error = CandidApi.insurancePayments.v1.get.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.get.Error.UnauthorizedError | CandidApi.insurancePayments.v1.get.Error._Unknown;
4
- export declare namespace Error {
5
- interface EntityNotFoundError extends _Utils {
6
- errorName: "EntityNotFoundError";
7
- content: CandidApi.EntityNotFoundErrorMessage;
8
- }
9
- interface UnauthorizedError extends _Utils {
10
- errorName: "UnauthorizedError";
11
- content: CandidApi.UnauthorizedErrorMessage;
12
- }
13
- interface _Unknown extends _Utils {
14
- errorName: void;
15
- content: core.Fetcher.Error;
16
- }
17
- interface _Utils {
18
- _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.get.Error._Visitor<_Result>) => _Result;
19
- }
20
- interface _Visitor<_Result> {
21
- entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
22
- unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
23
- _other: (value: core.Fetcher.Error) => _Result;
24
- }
25
- }
26
- export declare const Error: {
27
- readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.get.Error.EntityNotFoundError;
28
- readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.get.Error.UnauthorizedError;
29
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.get.Error._Unknown;
30
- readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.get.Error, visitor: CandidApi.insurancePayments.v1.get.Error._Visitor<_Result>) => _Result;
31
- };