candidhealth 0.34.1 → 0.34.2

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 (844) hide show
  1. package/Client.d.ts +0 -9
  2. package/Client.js +6 -21
  3. package/README.md +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  8. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  9. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  10. package/api/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +1 -1
  11. package/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +13 -0
  12. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  13. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  14. package/api/resources/encounters/resources/v4/client/Client.d.ts +107 -6
  15. package/api/resources/encounters/resources/v4/client/Client.js +114 -11
  16. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +7 -1
  17. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +11 -0
  18. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +3 -8
  19. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +3 -2
  20. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +141 -0
  21. package/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  22. package/api/resources/encounters/resources/v4/client/update.js +11 -0
  23. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -2
  24. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
  25. package/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +6 -0
  26. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  27. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  28. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  29. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  30. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  31. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  32. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  33. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  34. package/api/resources/guarantor/resources/v1/client/Client.js +4 -4
  35. package/api/resources/guarantor/resources/v1/client/index.d.ts +0 -1
  36. package/api/resources/guarantor/resources/v1/client/index.js +0 -4
  37. package/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +17 -0
  38. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  39. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  40. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  41. package/api/resources/index.d.ts +0 -4
  42. package/api/resources/index.js +1 -5
  43. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  44. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  45. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  46. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  47. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  48. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  49. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  50. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  51. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  52. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  53. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  54. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  55. package/api/resources/payers/resources/v3/types/Payer.d.ts +13 -1
  56. package/api/resources/payers/resources/v3/types/PayerPage.d.ts +5 -1
  57. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +72 -0
  58. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +77 -5
  59. package/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +2 -0
  60. package/api/resources/preEncounter/resources/common/types/AdditionalPayerInformation.d.ts +9 -0
  61. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  62. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  63. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +46 -8
  64. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +54 -16
  65. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +12 -0
  66. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +14 -0
  67. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.d.ts +11 -0
  68. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +9 -0
  69. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +11 -0
  70. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.d.ts +9 -0
  71. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.js +11 -0
  72. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +1 -0
  73. package/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +12 -0
  74. package/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +2 -0
  75. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +2 -0
  76. package/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +2 -0
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +5 -0
  78. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +5 -0
  79. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  80. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +272 -66
  81. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +280 -74
  82. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +136 -33
  83. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +15 -0
  84. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +7 -0
  85. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +9 -0
  86. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  87. package/api/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +10 -0
  88. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  89. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  90. package/api/resources/serviceFacility/client/Client.d.ts +2 -3
  91. package/api/resources/serviceFacility/client/Client.js +3 -4
  92. package/api/resources/serviceFacility/client/index.d.ts +0 -1
  93. package/api/resources/serviceFacility/client/index.js +0 -4
  94. package/api/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.d.ts +3 -8
  95. package/api/resources/serviceFacility/types/index.d.ts +1 -0
  96. package/api/resources/serviceFacility/types/index.js +1 -0
  97. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  98. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  99. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  100. package/dist/Client.d.ts +0 -9
  101. package/dist/Client.js +6 -21
  102. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  103. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  104. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  105. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  106. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  107. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  108. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +1 -1
  109. package/dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +13 -0
  110. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  111. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  112. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +107 -6
  113. package/dist/api/resources/encounters/resources/v4/client/Client.js +114 -11
  114. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +7 -1
  115. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +11 -0
  116. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +3 -8
  117. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +3 -2
  118. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +141 -0
  119. package/dist/api/resources/encounters/resources/v4/client/update.d.ts +7 -1
  120. package/dist/api/resources/encounters/resources/v4/client/update.js +11 -0
  121. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -2
  122. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -0
  123. package/dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +6 -0
  124. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  125. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  126. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  127. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  128. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  129. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  130. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  131. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -1
  132. package/dist/api/resources/guarantor/resources/v1/client/Client.js +4 -4
  133. package/dist/api/resources/guarantor/resources/v1/client/index.d.ts +0 -1
  134. package/dist/api/resources/guarantor/resources/v1/client/index.js +0 -4
  135. package/dist/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +17 -0
  136. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  137. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  138. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  139. package/dist/api/resources/index.d.ts +0 -4
  140. package/dist/api/resources/index.js +1 -5
  141. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  142. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  143. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  144. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  145. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  146. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  147. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  148. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  149. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  150. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  151. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  152. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  153. package/dist/api/resources/payers/resources/v3/types/Payer.d.ts +13 -1
  154. package/dist/api/resources/payers/resources/v3/types/PayerPage.d.ts +5 -1
  155. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +72 -0
  156. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +77 -5
  157. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +2 -0
  158. package/dist/api/resources/preEncounter/resources/common/types/AdditionalPayerInformation.d.ts +9 -0
  159. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  160. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  161. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +46 -8
  162. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +54 -16
  163. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +12 -0
  164. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +14 -0
  165. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.d.ts +11 -0
  166. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +9 -0
  167. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +11 -0
  168. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.d.ts +9 -0
  169. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.js +11 -0
  170. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +1 -0
  171. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +12 -0
  172. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +2 -0
  173. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +2 -0
  174. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +2 -0
  175. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +5 -0
  176. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +5 -0
  177. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  178. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +272 -66
  179. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +280 -74
  180. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +136 -33
  181. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +15 -0
  182. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +7 -0
  183. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +9 -0
  184. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  185. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +10 -0
  186. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  187. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  188. package/dist/api/resources/serviceFacility/client/Client.d.ts +2 -3
  189. package/dist/api/resources/serviceFacility/client/Client.js +3 -4
  190. package/dist/api/resources/serviceFacility/client/index.d.ts +0 -1
  191. package/dist/api/resources/serviceFacility/client/index.js +0 -4
  192. package/dist/api/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.d.ts +3 -8
  193. package/dist/api/resources/serviceFacility/types/index.d.ts +1 -0
  194. package/dist/api/resources/serviceFacility/types/index.js +1 -0
  195. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  196. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  197. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  198. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +1 -1
  199. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.js +1 -1
  200. package/dist/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +16 -0
  201. package/dist/serialization/resources/{thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.js → encounterProviders/resources/v2/types/RenderingProviderUpdate.js} +8 -6
  202. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  203. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  204. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +6 -1
  205. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +6 -0
  206. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  207. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  208. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +14 -0
  209. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +14 -0
  210. package/dist/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
  211. package/dist/serialization/resources/encounters/resources/v4/client/update.js +6 -0
  212. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  213. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
  214. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  215. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  216. package/dist/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +12 -0
  217. package/dist/serialization/resources/{thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.js → encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js} +3 -3
  218. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  219. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  220. package/dist/serialization/resources/guarantor/resources/v1/client/index.d.ts +0 -1
  221. package/dist/serialization/resources/guarantor/resources/v1/client/index.js +0 -4
  222. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +23 -0
  223. package/dist/serialization/resources/guarantor/resources/v1/{client/requests → types}/GuarantorUpdate.js +4 -4
  224. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  225. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  226. package/dist/serialization/resources/index.d.ts +0 -4
  227. package/dist/serialization/resources/index.js +1 -5
  228. package/dist/serialization/resources/payers/resources/v3/types/Payer.d.ts +4 -0
  229. package/dist/serialization/resources/payers/resources/v3/types/Payer.js +4 -0
  230. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +2 -0
  231. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +2 -0
  232. package/dist/serialization/resources/preEncounter/resources/common/types/AdditionalPayerInformation.d.ts +15 -0
  233. package/dist/serialization/resources/{thirdPartyPayers/resources/v1/types/ThirdPartyPayer.js → preEncounter/resources/common/types/AdditionalPayerInformation.js} +6 -8
  234. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  235. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  236. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +10 -0
  237. package/dist/serialization/resources/{thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.js → preEncounter/resources/coverages/resources/v1/types/BenefitType.js} +10 -3
  238. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.d.ts +19 -0
  239. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.js +40 -0
  240. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +10 -0
  241. package/dist/serialization/resources/{thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.js → preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js} +3 -3
  242. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.d.ts +10 -0
  243. package/{serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.js → dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.js} +3 -3
  244. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -0
  245. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +2 -0
  246. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +15 -0
  247. package/dist/serialization/resources/{thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.js → preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js} +7 -6
  248. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +2 -0
  249. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +2 -0
  250. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +3 -0
  251. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +3 -0
  252. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +3 -0
  253. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +3 -0
  254. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +5 -0
  255. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +5 -0
  256. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +24 -0
  257. package/dist/serialization/resources/{thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.js → preEncounter/resources/patients/resources/v1/types/Authorization.js} +16 -8
  258. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +10 -0
  259. package/{serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.js → dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js} +3 -3
  260. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -0
  261. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +4 -0
  262. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +17 -0
  263. package/dist/serialization/resources/{thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.js → preEncounter/resources/patients/resources/v1/types/Referral.js} +9 -6
  264. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  265. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  266. package/dist/serialization/resources/serviceFacility/index.d.ts +0 -1
  267. package/dist/serialization/resources/serviceFacility/index.js +0 -1
  268. package/dist/serialization/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.d.ts +5 -5
  269. package/dist/serialization/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.js +2 -2
  270. package/dist/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  271. package/dist/serialization/resources/serviceFacility/types/index.js +1 -0
  272. package/package.json +1 -1
  273. package/reference.md +608 -1197
  274. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.d.ts +1 -1
  275. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProvider.js +1 -1
  276. package/serialization/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.d.ts +16 -0
  277. package/serialization/resources/{thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.js → encounterProviders/resources/v2/types/RenderingProviderUpdate.js} +8 -6
  278. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  279. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  280. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.d.ts +6 -1
  281. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatient.js +6 -0
  282. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -1
  283. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -1
  284. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +14 -0
  285. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +14 -0
  286. package/serialization/resources/encounters/resources/v4/client/update.d.ts +6 -1
  287. package/serialization/resources/encounters/resources/v4/client/update.js +6 -0
  288. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  289. package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
  290. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +1 -0
  291. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +1 -0
  292. package/serialization/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.d.ts +12 -0
  293. package/serialization/resources/{thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.js → encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js} +3 -3
  294. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  295. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  296. package/serialization/resources/guarantor/resources/v1/client/index.d.ts +0 -1
  297. package/serialization/resources/guarantor/resources/v1/client/index.js +0 -4
  298. package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +23 -0
  299. package/serialization/resources/guarantor/resources/v1/{client/requests → types}/GuarantorUpdate.js +4 -4
  300. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  301. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  302. package/serialization/resources/index.d.ts +0 -4
  303. package/serialization/resources/index.js +1 -5
  304. package/serialization/resources/payers/resources/v3/types/Payer.d.ts +4 -0
  305. package/serialization/resources/payers/resources/v3/types/Payer.js +4 -0
  306. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.d.ts +2 -0
  307. package/serialization/resources/preEncounter/resources/appointments/resources/v1/types/MutableAppointment.js +2 -0
  308. package/serialization/resources/preEncounter/resources/common/types/AdditionalPayerInformation.d.ts +15 -0
  309. package/serialization/resources/preEncounter/resources/common/types/AdditionalPayerInformation.js +36 -0
  310. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  311. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  312. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +10 -0
  313. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +38 -0
  314. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.d.ts +19 -0
  315. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.js +40 -0
  316. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +10 -0
  317. package/{dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.js → serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js} +3 -3
  318. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.d.ts +10 -0
  319. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValueUnit.js +31 -0
  320. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.d.ts +2 -0
  321. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/InsurancePlan.js +2 -0
  322. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.d.ts +15 -0
  323. package/{dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.js → serialization/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js} +7 -6
  324. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.d.ts +2 -0
  325. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/MutableCoverage.js +2 -0
  326. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.d.ts +3 -0
  327. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverage.js +3 -0
  328. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.d.ts +3 -0
  329. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/ServiceCoverage.js +3 -0
  330. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +5 -0
  331. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +5 -0
  332. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +24 -0
  333. package/{dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.js → serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js} +16 -13
  334. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +10 -0
  335. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +31 -0
  336. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +4 -0
  337. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +4 -0
  338. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.d.ts +17 -0
  339. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Referral.js +38 -0
  340. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +3 -0
  341. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +3 -0
  342. package/serialization/resources/serviceFacility/index.d.ts +0 -1
  343. package/serialization/resources/serviceFacility/index.js +0 -1
  344. package/serialization/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.d.ts +5 -5
  345. package/serialization/resources/serviceFacility/{client/requests → types}/EncounterServiceFacilityUpdate.js +2 -2
  346. package/serialization/resources/serviceFacility/types/index.d.ts +1 -0
  347. package/serialization/resources/serviceFacility/types/index.js +1 -0
  348. package/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +0 -44
  349. package/api/resources/guarantor/resources/v1/client/requests/index.d.ts +0 -1
  350. package/api/resources/guarantor/resources/v1/client/requests/index.js +0 -2
  351. package/api/resources/serviceFacility/client/requests/index.d.ts +0 -1
  352. package/api/resources/serviceFacility/client/requests/index.js +0 -2
  353. package/api/resources/thirdPartyPayerPayments/client/Client.d.ts +0 -26
  354. package/api/resources/thirdPartyPayerPayments/client/Client.js +0 -17
  355. package/api/resources/thirdPartyPayerPayments/client/index.d.ts +0 -1
  356. package/api/resources/thirdPartyPayerPayments/client/index.js +0 -2
  357. package/api/resources/thirdPartyPayerPayments/index.d.ts +0 -2
  358. package/api/resources/thirdPartyPayerPayments/index.js +0 -18
  359. package/api/resources/thirdPartyPayerPayments/resources/index.d.ts +0 -1
  360. package/api/resources/thirdPartyPayerPayments/resources/index.js +0 -27
  361. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +0 -104
  362. package/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +0 -428
  363. package/api/resources/thirdPartyPayerPayments/resources/v1/client/create.d.ts +0 -34
  364. package/api/resources/thirdPartyPayerPayments/resources/v1/client/create.js +0 -69
  365. package/api/resources/thirdPartyPayerPayments/resources/v1/client/delete.d.ts +0 -34
  366. package/api/resources/thirdPartyPayerPayments/resources/v1/client/delete.js +0 -69
  367. package/api/resources/thirdPartyPayerPayments/resources/v1/client/get.d.ts +0 -28
  368. package/api/resources/thirdPartyPayerPayments/resources/v1/client/get.js +0 -58
  369. package/api/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.d.ts +0 -28
  370. package/api/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.js +0 -58
  371. package/api/resources/thirdPartyPayerPayments/resources/v1/client/index.d.ts +0 -6
  372. package/api/resources/thirdPartyPayerPayments/resources/v1/client/index.js +0 -35
  373. package/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/GetMultiThirdPartyPayerPaymentRequest.d.ts +0 -34
  374. package/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.d.ts +0 -23
  375. package/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.d.ts +0 -2
  376. package/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.js +0 -2
  377. package/api/resources/thirdPartyPayerPayments/resources/v1/client/update.d.ts +0 -34
  378. package/api/resources/thirdPartyPayerPayments/resources/v1/client/update.js +0 -69
  379. package/api/resources/thirdPartyPayerPayments/resources/v1/index.d.ts +0 -2
  380. package/api/resources/thirdPartyPayerPayments/resources/v1/index.js +0 -18
  381. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.d.ts +0 -14
  382. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.d.ts +0 -13
  383. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.d.ts +0 -8
  384. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.js +0 -10
  385. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.d.ts +0 -8
  386. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.js +0 -10
  387. package/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.d.ts +0 -7
  388. package/api/resources/thirdPartyPayerPayments/resources/v1/types/index.d.ts +0 -5
  389. package/api/resources/thirdPartyPayerPayments/resources/v1/types/index.js +0 -21
  390. package/api/resources/thirdPartyPayerRefunds/client/Client.d.ts +0 -26
  391. package/api/resources/thirdPartyPayerRefunds/client/Client.js +0 -17
  392. package/api/resources/thirdPartyPayerRefunds/client/index.d.ts +0 -1
  393. package/api/resources/thirdPartyPayerRefunds/client/index.js +0 -2
  394. package/api/resources/thirdPartyPayerRefunds/index.d.ts +0 -2
  395. package/api/resources/thirdPartyPayerRefunds/index.js +0 -18
  396. package/api/resources/thirdPartyPayerRefunds/resources/index.d.ts +0 -1
  397. package/api/resources/thirdPartyPayerRefunds/resources/index.js +0 -27
  398. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +0 -115
  399. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +0 -439
  400. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/create.d.ts +0 -34
  401. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/create.js +0 -69
  402. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/delete.d.ts +0 -34
  403. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/delete.js +0 -69
  404. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/get.d.ts +0 -28
  405. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/get.js +0 -58
  406. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.d.ts +0 -28
  407. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.js +0 -58
  408. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/index.d.ts +0 -6
  409. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/index.js +0 -35
  410. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/GetMultiThirdPartyPayerRefundsRequest.d.ts +0 -34
  411. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.d.ts +0 -28
  412. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.d.ts +0 -2
  413. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.js +0 -2
  414. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/update.d.ts +0 -34
  415. package/api/resources/thirdPartyPayerRefunds/resources/v1/client/update.js +0 -69
  416. package/api/resources/thirdPartyPayerRefunds/resources/v1/index.d.ts +0 -2
  417. package/api/resources/thirdPartyPayerRefunds/resources/v1/index.js +0 -18
  418. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.d.ts +0 -14
  419. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.d.ts +0 -13
  420. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.d.ts +0 -8
  421. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.js +0 -10
  422. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.d.ts +0 -8
  423. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.js +0 -10
  424. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.d.ts +0 -7
  425. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/index.d.ts +0 -5
  426. package/api/resources/thirdPartyPayerRefunds/resources/v1/types/index.js +0 -21
  427. package/api/resources/thirdPartyPayers/client/Client.d.ts +0 -26
  428. package/api/resources/thirdPartyPayers/client/Client.js +0 -17
  429. package/api/resources/thirdPartyPayers/client/index.d.ts +0 -1
  430. package/api/resources/thirdPartyPayers/client/index.js +0 -2
  431. package/api/resources/thirdPartyPayers/index.d.ts +0 -2
  432. package/api/resources/thirdPartyPayers/index.js +0 -18
  433. package/api/resources/thirdPartyPayers/resources/index.d.ts +0 -1
  434. package/api/resources/thirdPartyPayers/resources/index.js +0 -27
  435. package/api/resources/thirdPartyPayers/resources/v1/client/Client.d.ts +0 -97
  436. package/api/resources/thirdPartyPayers/resources/v1/client/Client.js +0 -469
  437. package/api/resources/thirdPartyPayers/resources/v1/client/create.d.ts +0 -34
  438. package/api/resources/thirdPartyPayers/resources/v1/client/create.js +0 -69
  439. package/api/resources/thirdPartyPayers/resources/v1/client/delete.d.ts +0 -28
  440. package/api/resources/thirdPartyPayers/resources/v1/client/delete.js +0 -58
  441. package/api/resources/thirdPartyPayers/resources/v1/client/get.d.ts +0 -28
  442. package/api/resources/thirdPartyPayers/resources/v1/client/get.js +0 -58
  443. package/api/resources/thirdPartyPayers/resources/v1/client/getMulti.d.ts +0 -28
  444. package/api/resources/thirdPartyPayers/resources/v1/client/getMulti.js +0 -58
  445. package/api/resources/thirdPartyPayers/resources/v1/client/index.d.ts +0 -7
  446. package/api/resources/thirdPartyPayers/resources/v1/client/index.js +0 -36
  447. package/api/resources/thirdPartyPayers/resources/v1/client/requests/GetMultiThirdPartyPayersRequest.d.ts +0 -28
  448. package/api/resources/thirdPartyPayers/resources/v1/client/requests/index.d.ts +0 -1
  449. package/api/resources/thirdPartyPayers/resources/v1/client/requests/index.js +0 -2
  450. package/api/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.d.ts +0 -28
  451. package/api/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.js +0 -58
  452. package/api/resources/thirdPartyPayers/resources/v1/client/update.d.ts +0 -34
  453. package/api/resources/thirdPartyPayers/resources/v1/client/update.js +0 -69
  454. package/api/resources/thirdPartyPayers/resources/v1/index.d.ts +0 -2
  455. package/api/resources/thirdPartyPayers/resources/v1/index.js +0 -18
  456. package/api/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.d.ts +0 -11
  457. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.d.ts +0 -11
  458. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.d.ts +0 -17
  459. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.d.ts +0 -17
  460. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.js +0 -5
  461. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.d.ts +0 -8
  462. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.js +0 -10
  463. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.d.ts +0 -7
  464. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.js +0 -5
  465. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.d.ts +0 -10
  466. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.js +0 -12
  467. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.d.ts +0 -10
  468. package/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.js +0 -5
  469. package/api/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.d.ts +0 -6
  470. package/api/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.js +0 -5
  471. package/api/resources/thirdPartyPayers/resources/v1/types/index.d.ts +0 -9
  472. package/api/resources/thirdPartyPayers/resources/v1/types/index.js +0 -25
  473. package/dist/api/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +0 -44
  474. package/dist/api/resources/guarantor/resources/v1/client/requests/index.d.ts +0 -1
  475. package/dist/api/resources/guarantor/resources/v1/client/requests/index.js +0 -2
  476. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +0 -1
  477. package/dist/api/resources/serviceFacility/client/requests/index.js +0 -2
  478. package/dist/api/resources/thirdPartyPayerPayments/client/Client.d.ts +0 -26
  479. package/dist/api/resources/thirdPartyPayerPayments/client/Client.js +0 -17
  480. package/dist/api/resources/thirdPartyPayerPayments/client/index.d.ts +0 -1
  481. package/dist/api/resources/thirdPartyPayerPayments/client/index.js +0 -2
  482. package/dist/api/resources/thirdPartyPayerPayments/index.d.ts +0 -2
  483. package/dist/api/resources/thirdPartyPayerPayments/index.js +0 -18
  484. package/dist/api/resources/thirdPartyPayerPayments/resources/index.d.ts +0 -1
  485. package/dist/api/resources/thirdPartyPayerPayments/resources/index.js +0 -27
  486. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.d.ts +0 -104
  487. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/Client.js +0 -428
  488. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/create.d.ts +0 -34
  489. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/create.js +0 -69
  490. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/delete.d.ts +0 -34
  491. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/delete.js +0 -69
  492. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/get.d.ts +0 -28
  493. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/get.js +0 -58
  494. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.d.ts +0 -28
  495. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.js +0 -58
  496. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/index.d.ts +0 -6
  497. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/index.js +0 -35
  498. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/GetMultiThirdPartyPayerPaymentRequest.d.ts +0 -34
  499. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/GetMultiThirdPartyPayerPaymentRequest.js +0 -5
  500. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.d.ts +0 -23
  501. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.js +0 -5
  502. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.d.ts +0 -2
  503. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.js +0 -2
  504. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/update.d.ts +0 -34
  505. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/client/update.js +0 -69
  506. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/index.d.ts +0 -2
  507. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/index.js +0 -18
  508. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.d.ts +0 -14
  509. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.js +0 -5
  510. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.d.ts +0 -13
  511. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.js +0 -5
  512. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.d.ts +0 -8
  513. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.js +0 -10
  514. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.d.ts +0 -8
  515. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.js +0 -10
  516. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.d.ts +0 -7
  517. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.js +0 -5
  518. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/index.d.ts +0 -5
  519. package/dist/api/resources/thirdPartyPayerPayments/resources/v1/types/index.js +0 -21
  520. package/dist/api/resources/thirdPartyPayerRefunds/client/Client.d.ts +0 -26
  521. package/dist/api/resources/thirdPartyPayerRefunds/client/Client.js +0 -17
  522. package/dist/api/resources/thirdPartyPayerRefunds/client/index.d.ts +0 -1
  523. package/dist/api/resources/thirdPartyPayerRefunds/client/index.js +0 -2
  524. package/dist/api/resources/thirdPartyPayerRefunds/index.d.ts +0 -2
  525. package/dist/api/resources/thirdPartyPayerRefunds/index.js +0 -18
  526. package/dist/api/resources/thirdPartyPayerRefunds/resources/index.d.ts +0 -1
  527. package/dist/api/resources/thirdPartyPayerRefunds/resources/index.js +0 -27
  528. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.d.ts +0 -115
  529. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/Client.js +0 -439
  530. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/create.d.ts +0 -34
  531. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/create.js +0 -69
  532. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/delete.d.ts +0 -34
  533. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/delete.js +0 -69
  534. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/get.d.ts +0 -28
  535. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/get.js +0 -58
  536. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.d.ts +0 -28
  537. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.js +0 -58
  538. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/index.d.ts +0 -6
  539. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/index.js +0 -35
  540. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/GetMultiThirdPartyPayerRefundsRequest.d.ts +0 -34
  541. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/GetMultiThirdPartyPayerRefundsRequest.js +0 -5
  542. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.d.ts +0 -28
  543. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.js +0 -5
  544. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.d.ts +0 -2
  545. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.js +0 -2
  546. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/update.d.ts +0 -34
  547. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/client/update.js +0 -69
  548. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/index.d.ts +0 -2
  549. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/index.js +0 -18
  550. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.d.ts +0 -14
  551. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.js +0 -5
  552. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.d.ts +0 -13
  553. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.js +0 -5
  554. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.d.ts +0 -8
  555. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.js +0 -10
  556. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.d.ts +0 -8
  557. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.js +0 -10
  558. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.d.ts +0 -7
  559. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.js +0 -5
  560. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/index.d.ts +0 -5
  561. package/dist/api/resources/thirdPartyPayerRefunds/resources/v1/types/index.js +0 -21
  562. package/dist/api/resources/thirdPartyPayers/client/Client.d.ts +0 -26
  563. package/dist/api/resources/thirdPartyPayers/client/Client.js +0 -17
  564. package/dist/api/resources/thirdPartyPayers/client/index.d.ts +0 -1
  565. package/dist/api/resources/thirdPartyPayers/client/index.js +0 -2
  566. package/dist/api/resources/thirdPartyPayers/index.d.ts +0 -2
  567. package/dist/api/resources/thirdPartyPayers/index.js +0 -18
  568. package/dist/api/resources/thirdPartyPayers/resources/index.d.ts +0 -1
  569. package/dist/api/resources/thirdPartyPayers/resources/index.js +0 -27
  570. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.d.ts +0 -97
  571. package/dist/api/resources/thirdPartyPayers/resources/v1/client/Client.js +0 -469
  572. package/dist/api/resources/thirdPartyPayers/resources/v1/client/create.d.ts +0 -34
  573. package/dist/api/resources/thirdPartyPayers/resources/v1/client/create.js +0 -69
  574. package/dist/api/resources/thirdPartyPayers/resources/v1/client/delete.d.ts +0 -28
  575. package/dist/api/resources/thirdPartyPayers/resources/v1/client/delete.js +0 -58
  576. package/dist/api/resources/thirdPartyPayers/resources/v1/client/get.d.ts +0 -28
  577. package/dist/api/resources/thirdPartyPayers/resources/v1/client/get.js +0 -58
  578. package/dist/api/resources/thirdPartyPayers/resources/v1/client/getMulti.d.ts +0 -28
  579. package/dist/api/resources/thirdPartyPayers/resources/v1/client/getMulti.js +0 -58
  580. package/dist/api/resources/thirdPartyPayers/resources/v1/client/index.d.ts +0 -7
  581. package/dist/api/resources/thirdPartyPayers/resources/v1/client/index.js +0 -36
  582. package/dist/api/resources/thirdPartyPayers/resources/v1/client/requests/GetMultiThirdPartyPayersRequest.d.ts +0 -28
  583. package/dist/api/resources/thirdPartyPayers/resources/v1/client/requests/GetMultiThirdPartyPayersRequest.js +0 -5
  584. package/dist/api/resources/thirdPartyPayers/resources/v1/client/requests/index.d.ts +0 -1
  585. package/dist/api/resources/thirdPartyPayers/resources/v1/client/requests/index.js +0 -2
  586. package/dist/api/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.d.ts +0 -28
  587. package/dist/api/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.js +0 -58
  588. package/dist/api/resources/thirdPartyPayers/resources/v1/client/update.d.ts +0 -34
  589. package/dist/api/resources/thirdPartyPayers/resources/v1/client/update.js +0 -69
  590. package/dist/api/resources/thirdPartyPayers/resources/v1/index.d.ts +0 -2
  591. package/dist/api/resources/thirdPartyPayers/resources/v1/index.js +0 -18
  592. package/dist/api/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.d.ts +0 -11
  593. package/dist/api/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.js +0 -5
  594. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.d.ts +0 -11
  595. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.js +0 -5
  596. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.d.ts +0 -17
  597. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.js +0 -5
  598. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.d.ts +0 -17
  599. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.js +0 -5
  600. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.d.ts +0 -8
  601. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.js +0 -10
  602. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.d.ts +0 -7
  603. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.js +0 -5
  604. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.d.ts +0 -10
  605. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.js +0 -12
  606. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.d.ts +0 -10
  607. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.js +0 -5
  608. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.d.ts +0 -6
  609. package/dist/api/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.js +0 -5
  610. package/dist/api/resources/thirdPartyPayers/resources/v1/types/index.d.ts +0 -9
  611. package/dist/api/resources/thirdPartyPayers/resources/v1/types/index.js +0 -25
  612. package/dist/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +0 -23
  613. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +0 -1
  614. package/dist/serialization/resources/guarantor/resources/v1/client/requests/index.js +0 -5
  615. package/dist/serialization/resources/serviceFacility/client/index.d.ts +0 -1
  616. package/dist/serialization/resources/serviceFacility/client/index.js +0 -17
  617. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +0 -1
  618. package/dist/serialization/resources/serviceFacility/client/requests/index.js +0 -5
  619. package/dist/serialization/resources/thirdPartyPayerPayments/index.d.ts +0 -1
  620. package/dist/serialization/resources/thirdPartyPayerPayments/index.js +0 -17
  621. package/dist/serialization/resources/thirdPartyPayerPayments/resources/index.d.ts +0 -1
  622. package/dist/serialization/resources/thirdPartyPayerPayments/resources/index.js +0 -27
  623. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/create.d.ts +0 -20
  624. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/create.js +0 -67
  625. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/delete.d.ts +0 -20
  626. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/delete.js +0 -67
  627. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/get.d.ts +0 -15
  628. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/get.js +0 -61
  629. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.d.ts +0 -15
  630. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.js +0 -61
  631. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/index.d.ts +0 -6
  632. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/index.js +0 -35
  633. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.d.ts +0 -16
  634. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.d.ts +0 -1
  635. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.js +0 -5
  636. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/update.d.ts +0 -20
  637. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/client/update.js +0 -67
  638. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/index.d.ts +0 -2
  639. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/index.js +0 -18
  640. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.d.ts +0 -23
  641. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.js +0 -44
  642. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.d.ts +0 -21
  643. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.d.ts +0 -10
  644. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.d.ts +0 -10
  645. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.d.ts +0 -14
  646. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.js +0 -37
  647. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/index.d.ts +0 -5
  648. package/dist/serialization/resources/thirdPartyPayerPayments/resources/v1/types/index.js +0 -21
  649. package/dist/serialization/resources/thirdPartyPayerRefunds/index.d.ts +0 -1
  650. package/dist/serialization/resources/thirdPartyPayerRefunds/index.js +0 -17
  651. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/index.d.ts +0 -1
  652. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/index.js +0 -27
  653. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/create.d.ts +0 -20
  654. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/create.js +0 -67
  655. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/delete.d.ts +0 -20
  656. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/delete.js +0 -67
  657. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/get.d.ts +0 -15
  658. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/get.js +0 -61
  659. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.d.ts +0 -15
  660. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.js +0 -61
  661. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/index.d.ts +0 -6
  662. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/index.js +0 -35
  663. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.d.ts +0 -18
  664. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.js +0 -39
  665. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.d.ts +0 -1
  666. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.js +0 -5
  667. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/update.d.ts +0 -20
  668. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/update.js +0 -67
  669. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/index.d.ts +0 -2
  670. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/index.js +0 -18
  671. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.d.ts +0 -24
  672. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.js +0 -45
  673. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.d.ts +0 -22
  674. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.js +0 -43
  675. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.d.ts +0 -10
  676. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.d.ts +0 -10
  677. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.d.ts +0 -14
  678. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/index.d.ts +0 -5
  679. package/dist/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/index.js +0 -21
  680. package/dist/serialization/resources/thirdPartyPayers/index.d.ts +0 -1
  681. package/dist/serialization/resources/thirdPartyPayers/index.js +0 -17
  682. package/dist/serialization/resources/thirdPartyPayers/resources/index.d.ts +0 -1
  683. package/dist/serialization/resources/thirdPartyPayers/resources/index.js +0 -27
  684. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/create.d.ts +0 -20
  685. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/create.js +0 -67
  686. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/delete.d.ts +0 -15
  687. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/delete.js +0 -61
  688. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/get.d.ts +0 -15
  689. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/get.js +0 -61
  690. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/getMulti.d.ts +0 -15
  691. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/getMulti.js +0 -61
  692. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/index.d.ts +0 -6
  693. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/index.js +0 -32
  694. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.d.ts +0 -15
  695. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.js +0 -61
  696. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/update.d.ts +0 -20
  697. package/dist/serialization/resources/thirdPartyPayers/resources/v1/client/update.js +0 -67
  698. package/dist/serialization/resources/thirdPartyPayers/resources/v1/index.d.ts +0 -2
  699. package/dist/serialization/resources/thirdPartyPayers/resources/v1/index.js +0 -18
  700. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.d.ts +0 -14
  701. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.d.ts +0 -17
  702. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.d.ts +0 -17
  703. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.js +0 -41
  704. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.d.ts +0 -17
  705. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.js +0 -41
  706. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.d.ts +0 -10
  707. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.js +0 -35
  708. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.d.ts +0 -14
  709. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.js +0 -37
  710. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.d.ts +0 -10
  711. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.d.ts +0 -16
  712. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.js +0 -37
  713. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.d.ts +0 -12
  714. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/index.d.ts +0 -9
  715. package/dist/serialization/resources/thirdPartyPayers/resources/v1/types/index.js +0 -25
  716. package/serialization/resources/guarantor/resources/v1/client/requests/GuarantorUpdate.d.ts +0 -23
  717. package/serialization/resources/guarantor/resources/v1/client/requests/index.d.ts +0 -1
  718. package/serialization/resources/guarantor/resources/v1/client/requests/index.js +0 -5
  719. package/serialization/resources/serviceFacility/client/index.d.ts +0 -1
  720. package/serialization/resources/serviceFacility/client/index.js +0 -17
  721. package/serialization/resources/serviceFacility/client/requests/index.d.ts +0 -1
  722. package/serialization/resources/serviceFacility/client/requests/index.js +0 -5
  723. package/serialization/resources/thirdPartyPayerPayments/index.d.ts +0 -1
  724. package/serialization/resources/thirdPartyPayerPayments/index.js +0 -17
  725. package/serialization/resources/thirdPartyPayerPayments/resources/index.d.ts +0 -1
  726. package/serialization/resources/thirdPartyPayerPayments/resources/index.js +0 -27
  727. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/create.d.ts +0 -20
  728. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/create.js +0 -67
  729. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/delete.d.ts +0 -20
  730. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/delete.js +0 -67
  731. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/get.d.ts +0 -15
  732. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/get.js +0 -61
  733. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.d.ts +0 -15
  734. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/getMulti.js +0 -61
  735. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/index.d.ts +0 -6
  736. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/index.js +0 -35
  737. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.d.ts +0 -16
  738. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.js +0 -37
  739. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.d.ts +0 -1
  740. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/requests/index.js +0 -5
  741. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/update.d.ts +0 -20
  742. package/serialization/resources/thirdPartyPayerPayments/resources/v1/client/update.js +0 -67
  743. package/serialization/resources/thirdPartyPayerPayments/resources/v1/index.d.ts +0 -2
  744. package/serialization/resources/thirdPartyPayerPayments/resources/v1/index.js +0 -18
  745. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.d.ts +0 -23
  746. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.js +0 -44
  747. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.d.ts +0 -21
  748. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.js +0 -42
  749. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.d.ts +0 -10
  750. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentId.js +0 -35
  751. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.d.ts +0 -10
  752. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentSortField.js +0 -31
  753. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.d.ts +0 -14
  754. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.js +0 -37
  755. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/index.d.ts +0 -5
  756. package/serialization/resources/thirdPartyPayerPayments/resources/v1/types/index.js +0 -21
  757. package/serialization/resources/thirdPartyPayerRefunds/index.d.ts +0 -1
  758. package/serialization/resources/thirdPartyPayerRefunds/index.js +0 -17
  759. package/serialization/resources/thirdPartyPayerRefunds/resources/index.d.ts +0 -1
  760. package/serialization/resources/thirdPartyPayerRefunds/resources/index.js +0 -27
  761. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/create.d.ts +0 -20
  762. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/create.js +0 -67
  763. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/delete.d.ts +0 -20
  764. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/delete.js +0 -67
  765. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/get.d.ts +0 -15
  766. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/get.js +0 -61
  767. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.d.ts +0 -15
  768. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/getMulti.js +0 -61
  769. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/index.d.ts +0 -6
  770. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/index.js +0 -35
  771. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.d.ts +0 -18
  772. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.js +0 -39
  773. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.d.ts +0 -1
  774. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/requests/index.js +0 -5
  775. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/update.d.ts +0 -20
  776. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/client/update.js +0 -67
  777. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/index.d.ts +0 -2
  778. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/index.js +0 -18
  779. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.d.ts +0 -24
  780. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.js +0 -45
  781. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.d.ts +0 -22
  782. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.js +0 -43
  783. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.d.ts +0 -10
  784. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundId.js +0 -35
  785. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundSortField.d.ts +0 -10
  786. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.d.ts +0 -14
  787. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/index.d.ts +0 -5
  788. package/serialization/resources/thirdPartyPayerRefunds/resources/v1/types/index.js +0 -21
  789. package/serialization/resources/thirdPartyPayers/index.d.ts +0 -1
  790. package/serialization/resources/thirdPartyPayers/index.js +0 -17
  791. package/serialization/resources/thirdPartyPayers/resources/index.d.ts +0 -1
  792. package/serialization/resources/thirdPartyPayers/resources/index.js +0 -27
  793. package/serialization/resources/thirdPartyPayers/resources/v1/client/create.d.ts +0 -20
  794. package/serialization/resources/thirdPartyPayers/resources/v1/client/create.js +0 -67
  795. package/serialization/resources/thirdPartyPayers/resources/v1/client/delete.d.ts +0 -15
  796. package/serialization/resources/thirdPartyPayers/resources/v1/client/delete.js +0 -61
  797. package/serialization/resources/thirdPartyPayers/resources/v1/client/get.d.ts +0 -15
  798. package/serialization/resources/thirdPartyPayers/resources/v1/client/get.js +0 -61
  799. package/serialization/resources/thirdPartyPayers/resources/v1/client/getMulti.d.ts +0 -15
  800. package/serialization/resources/thirdPartyPayers/resources/v1/client/getMulti.js +0 -61
  801. package/serialization/resources/thirdPartyPayers/resources/v1/client/index.d.ts +0 -6
  802. package/serialization/resources/thirdPartyPayers/resources/v1/client/index.js +0 -32
  803. package/serialization/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.d.ts +0 -15
  804. package/serialization/resources/thirdPartyPayers/resources/v1/client/toggleEnablement.js +0 -61
  805. package/serialization/resources/thirdPartyPayers/resources/v1/client/update.d.ts +0 -20
  806. package/serialization/resources/thirdPartyPayers/resources/v1/client/update.js +0 -67
  807. package/serialization/resources/thirdPartyPayers/resources/v1/index.d.ts +0 -2
  808. package/serialization/resources/thirdPartyPayers/resources/v1/index.js +0 -18
  809. package/serialization/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.d.ts +0 -14
  810. package/serialization/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.js +0 -35
  811. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.d.ts +0 -17
  812. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.js +0 -38
  813. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.d.ts +0 -17
  814. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.js +0 -41
  815. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.d.ts +0 -17
  816. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerDescriptionUpdate.js +0 -41
  817. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.d.ts +0 -10
  818. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerId.js +0 -35
  819. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.d.ts +0 -14
  820. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerPage.js +0 -37
  821. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerSortField.d.ts +0 -10
  822. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.d.ts +0 -16
  823. package/serialization/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerUpdateRequest.js +0 -37
  824. package/serialization/resources/thirdPartyPayers/resources/v1/types/ToggleThirdPartyPayerEnablementRequest.d.ts +0 -12
  825. package/serialization/resources/thirdPartyPayers/resources/v1/types/index.d.ts +0 -9
  826. package/serialization/resources/thirdPartyPayers/resources/v1/types/index.js +0 -25
  827. /package/api/resources/{guarantor/resources/v1/client/requests/GuarantorUpdate.js → encounterProviders/resources/v2/types/RenderingProviderUpdate.js} +0 -0
  828. /package/api/resources/{serviceFacility/client/requests/EncounterServiceFacilityUpdate.js → encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js} +0 -0
  829. /package/{dist/api/resources/guarantor/resources/v1/client/requests → api/resources/guarantor/resources/v1/types}/GuarantorUpdate.js +0 -0
  830. /package/api/resources/{thirdPartyPayerPayments/resources/v1/client/requests/GetMultiThirdPartyPayerPaymentRequest.js → preEncounter/resources/common/types/AdditionalPayerInformation.js} +0 -0
  831. /package/api/resources/{thirdPartyPayerPayments/resources/v1/client/requests/UpdateThirdPartyPayerPaymentRequest.js → preEncounter/resources/coverages/resources/v1/types/CoverageDetails.js} +0 -0
  832. /package/api/resources/{thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPayment.js → preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js} +0 -0
  833. /package/api/resources/{thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentCreate.js → preEncounter/resources/patients/resources/v1/types/Authorization.js} +0 -0
  834. /package/api/resources/{thirdPartyPayerPayments/resources/v1/types/ThirdPartyPayerPaymentsPage.js → preEncounter/resources/patients/resources/v1/types/Referral.js} +0 -0
  835. /package/{dist/api/resources/serviceFacility/client/requests → api/resources/serviceFacility/types}/EncounterServiceFacilityUpdate.js +0 -0
  836. /package/{api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/GetMultiThirdPartyPayerRefundsRequest.js → dist/api/resources/encounterProviders/resources/v2/types/RenderingProviderUpdate.js} +0 -0
  837. /package/{api/resources/thirdPartyPayerRefunds/resources/v1/client/requests/ThirdPartyPayerRefundUpdate.js → dist/api/resources/encounters/resources/v4/types/InsurancePayMissingPrimaryCoverageErrorType.js} +0 -0
  838. /package/{api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefund.js → dist/api/resources/guarantor/resources/v1/types/GuarantorUpdate.js} +0 -0
  839. /package/{api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundCreate.js → dist/api/resources/preEncounter/resources/common/types/AdditionalPayerInformation.js} +0 -0
  840. /package/{api/resources/thirdPartyPayerRefunds/resources/v1/types/ThirdPartyPayerRefundsPage.js → dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageDetails.js} +0 -0
  841. /package/{api/resources/thirdPartyPayers/resources/v1/client/requests/GetMultiThirdPartyPayersRequest.js → dist/api/resources/preEncounter/resources/coverages/resources/v1/types/LatestEligibilityCheck.js} +0 -0
  842. /package/{api/resources/thirdPartyPayers/resources/v1/types/CreateThirdPartyPayerRequest.js → dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js} +0 -0
  843. /package/{api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayer.js → dist/api/resources/preEncounter/resources/patients/resources/v1/types/Referral.js} +0 -0
  844. /package/{api/resources/thirdPartyPayers/resources/v1/types/ThirdPartyPayerCategoryUpdate.js → dist/api/resources/serviceFacility/types/EncounterServiceFacilityUpdate.js} +0 -0
@@ -1,115 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as environments from "../../../../../../environments";
5
- import * as core from "../../../../../../core";
6
- import * as CandidApi from "../../../../../index";
7
- export declare namespace V1 {
8
- interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
- token?: core.Supplier<core.BearerToken | undefined>;
11
- }
12
- interface RequestOptions {
13
- /** The maximum time to wait for a response in seconds. */
14
- timeoutInSeconds?: number;
15
- /** The number of times to retry the request. Defaults to 2. */
16
- maxRetries?: number;
17
- /** A hook to abort the request. */
18
- abortSignal?: AbortSignal;
19
- }
20
- }
21
- export declare class V1 {
22
- protected readonly _options: V1.Options;
23
- constructor(_options?: V1.Options);
24
- /**
25
- * Returns all third party payer refunds satisfying the search criteria
26
- *
27
- * @param {CandidApi.thirdPartyPayerRefunds.v1.GetMultiThirdPartyPayerRefundsRequest} request
28
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
29
- *
30
- * @example
31
- * await client.thirdPartyPayerRefunds.v1.getMulti({
32
- * limit: 1,
33
- * thirdPartyPayerId: CandidApi.thirdPartyPayers.v1.ThirdPartyPayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
34
- * checkNumber: "string",
35
- * invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
36
- * sort: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundSortField.AmountCents,
37
- * sortDirection: CandidApi.SortDirection.Asc,
38
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
39
- * })
40
- */
41
- getMulti(request?: CandidApi.thirdPartyPayerRefunds.v1.GetMultiThirdPartyPayerRefundsRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundsPage, CandidApi.thirdPartyPayerRefunds.v1.getMulti.Error>>;
42
- /**
43
- * Retrieves a previously created third party payer refund by its `third_party_payer_refund_id`.
44
- *
45
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
46
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
47
- *
48
- * @example
49
- * await client.thirdPartyPayerRefunds.v1.get(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
50
- */
51
- get(thirdPartyPayerRefundId: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund, CandidApi.thirdPartyPayerRefunds.v1.get.Error>>;
52
- /**
53
- * Creates a new third party payer refund record and returns the newly created `ThirdPartyPayerRefund` object.
54
- * The allocations can describe whether the refund is being applied toward a specific service line,
55
- * claim, or billing provider.
56
- *
57
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundCreate} request
58
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
59
- *
60
- * @example
61
- * await client.thirdPartyPayerRefunds.v1.create({
62
- * thirdPartyPayerId: CandidApi.thirdPartyPayers.v1.ThirdPartyPayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
63
- * invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
64
- * amountCents: 1,
65
- * refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
66
- * refundNote: "string",
67
- * allocations: [{
68
- * amountCents: 1,
69
- * target: {
70
- * type: "service_line_by_id",
71
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
72
- * }
73
- * }],
74
- * refundReason: CandidApi.RefundReason.Overcharged
75
- * })
76
- */
77
- create(request: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund, CandidApi.thirdPartyPayerRefunds.v1.create.Error>>;
78
- /**
79
- * Updates the third party payer refund record matching the provided third_party_payer_refund_id. If updating the refund amount,
80
- * then the allocations must be appropriately updated as well.
81
- *
82
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
83
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundUpdate} request
84
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
85
- *
86
- * @example
87
- * await client.thirdPartyPayerRefunds.v1.update(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
88
- * refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
89
- * refundNote: {
90
- * type: "set",
91
- * value: "string"
92
- * },
93
- * refundReason: {
94
- * type: "set",
95
- * value: CandidApi.RefundReason.Overcharged
96
- * },
97
- * invoiceId: {
98
- * type: "set",
99
- * value: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
100
- * }
101
- * })
102
- */
103
- update(thirdPartyPayerRefundId: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId, request?: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundUpdate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund, CandidApi.thirdPartyPayerRefunds.v1.update.Error>>;
104
- /**
105
- * Deletes the third party payer refund record matching the provided `third_party_payer_refund_id`.
106
- *
107
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
108
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
109
- *
110
- * @example
111
- * await client.thirdPartyPayerRefunds.v1.delete(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
112
- */
113
- delete(thirdPartyPayerRefundId: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.thirdPartyPayerRefunds.v1.delete.Error>>;
114
- protected _getAuthorizationHeader(): Promise<string | undefined>;
115
- }
@@ -1,439 +0,0 @@
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 url_join_1 = __importDefault(require("url-join"));
46
- const serializers = __importStar(require("../../../../../../serialization/index"));
47
- class V1 {
48
- constructor(_options = {}) {
49
- this._options = _options;
50
- }
51
- /**
52
- * Returns all third party payer refunds satisfying the search criteria
53
- *
54
- * @param {CandidApi.thirdPartyPayerRefunds.v1.GetMultiThirdPartyPayerRefundsRequest} request
55
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
56
- *
57
- * @example
58
- * await client.thirdPartyPayerRefunds.v1.getMulti({
59
- * limit: 1,
60
- * thirdPartyPayerId: CandidApi.thirdPartyPayers.v1.ThirdPartyPayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
61
- * checkNumber: "string",
62
- * invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
63
- * sort: CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundSortField.AmountCents,
64
- * sortDirection: CandidApi.SortDirection.Asc,
65
- * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
66
- * })
67
- */
68
- getMulti(request = {}, requestOptions) {
69
- var _a, _b;
70
- return __awaiter(this, void 0, void 0, function* () {
71
- const { limit, thirdPartyPayerId, checkNumber, invoiceId, sort, sortDirection, pageToken } = request;
72
- const _queryParams = {};
73
- if (limit != null) {
74
- _queryParams["limit"] = limit.toString();
75
- }
76
- if (thirdPartyPayerId != null) {
77
- _queryParams["third_party_payer_id"] = thirdPartyPayerId;
78
- }
79
- if (checkNumber != null) {
80
- if (Array.isArray(checkNumber)) {
81
- _queryParams["check_number"] = checkNumber.map((item) => item);
82
- }
83
- else {
84
- _queryParams["check_number"] = checkNumber;
85
- }
86
- }
87
- if (invoiceId != null) {
88
- _queryParams["invoice_id"] = invoiceId;
89
- }
90
- if (sort != null) {
91
- _queryParams["sort"] = sort;
92
- }
93
- if (sortDirection != null) {
94
- _queryParams["sort_direction"] = sortDirection;
95
- }
96
- if (pageToken != null) {
97
- _queryParams["page_token"] = pageToken;
98
- }
99
- const _response = yield core.fetcher({
100
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
101
- .candidApi, "/api/third-party-payer-refunds/v1"),
102
- method: "GET",
103
- headers: {
104
- Authorization: yield this._getAuthorizationHeader(),
105
- "X-Fern-Language": "JavaScript",
106
- "X-Fern-SDK-Name": "candidhealth",
107
- "X-Fern-SDK-Version": "0.34.1",
108
- "X-Fern-Runtime": core.RUNTIME.type,
109
- "X-Fern-Runtime-Version": core.RUNTIME.version,
110
- },
111
- contentType: "application/json",
112
- queryParameters: _queryParams,
113
- requestType: "json",
114
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
115
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
116
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
117
- });
118
- if (_response.ok) {
119
- return {
120
- ok: true,
121
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundsPage.parseOrThrow(_response.body, {
122
- unrecognizedObjectKeys: "passthrough",
123
- allowUnrecognizedUnionMembers: true,
124
- allowUnrecognizedEnumValues: true,
125
- breadcrumbsPrefix: ["response"],
126
- }),
127
- };
128
- }
129
- if (_response.error.reason === "status-code") {
130
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
131
- case "UnprocessableEntityError":
132
- return {
133
- ok: false,
134
- error: serializers.thirdPartyPayerRefunds.v1.getMulti.Error.parseOrThrow(_response.error.body, {
135
- unrecognizedObjectKeys: "passthrough",
136
- allowUnrecognizedUnionMembers: true,
137
- allowUnrecognizedEnumValues: true,
138
- breadcrumbsPrefix: ["response"],
139
- }),
140
- };
141
- }
142
- }
143
- return {
144
- ok: false,
145
- error: CandidApi.thirdPartyPayerRefunds.v1.getMulti.Error._unknown(_response.error),
146
- };
147
- });
148
- }
149
- /**
150
- * Retrieves a previously created third party payer refund by its `third_party_payer_refund_id`.
151
- *
152
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
153
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
154
- *
155
- * @example
156
- * await client.thirdPartyPayerRefunds.v1.get(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
157
- */
158
- get(thirdPartyPayerRefundId, requestOptions) {
159
- var _a, _b;
160
- return __awaiter(this, void 0, void 0, function* () {
161
- const _response = yield core.fetcher({
162
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
163
- .candidApi, `/api/third-party-payer-refunds/v1/${encodeURIComponent(serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId.jsonOrThrow(thirdPartyPayerRefundId))}`),
164
- method: "GET",
165
- headers: {
166
- Authorization: yield this._getAuthorizationHeader(),
167
- "X-Fern-Language": "JavaScript",
168
- "X-Fern-SDK-Name": "candidhealth",
169
- "X-Fern-SDK-Version": "0.34.1",
170
- "X-Fern-Runtime": core.RUNTIME.type,
171
- "X-Fern-Runtime-Version": core.RUNTIME.version,
172
- },
173
- contentType: "application/json",
174
- requestType: "json",
175
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
176
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
177
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
178
- });
179
- if (_response.ok) {
180
- return {
181
- ok: true,
182
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund.parseOrThrow(_response.body, {
183
- unrecognizedObjectKeys: "passthrough",
184
- allowUnrecognizedUnionMembers: true,
185
- allowUnrecognizedEnumValues: true,
186
- breadcrumbsPrefix: ["response"],
187
- }),
188
- };
189
- }
190
- if (_response.error.reason === "status-code") {
191
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
192
- case "EntityNotFoundError":
193
- return {
194
- ok: false,
195
- error: serializers.thirdPartyPayerRefunds.v1.get.Error.parseOrThrow(_response.error.body, {
196
- unrecognizedObjectKeys: "passthrough",
197
- allowUnrecognizedUnionMembers: true,
198
- allowUnrecognizedEnumValues: true,
199
- breadcrumbsPrefix: ["response"],
200
- }),
201
- };
202
- }
203
- }
204
- return {
205
- ok: false,
206
- error: CandidApi.thirdPartyPayerRefunds.v1.get.Error._unknown(_response.error),
207
- };
208
- });
209
- }
210
- /**
211
- * Creates a new third party payer refund record and returns the newly created `ThirdPartyPayerRefund` object.
212
- * The allocations can describe whether the refund is being applied toward a specific service line,
213
- * claim, or billing provider.
214
- *
215
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundCreate} request
216
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
217
- *
218
- * @example
219
- * await client.thirdPartyPayerRefunds.v1.create({
220
- * thirdPartyPayerId: CandidApi.thirdPartyPayers.v1.ThirdPartyPayerId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
221
- * invoiceId: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
222
- * amountCents: 1,
223
- * refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
224
- * refundNote: "string",
225
- * allocations: [{
226
- * amountCents: 1,
227
- * target: {
228
- * type: "service_line_by_id",
229
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
230
- * }
231
- * }],
232
- * refundReason: CandidApi.RefundReason.Overcharged
233
- * })
234
- */
235
- create(request, requestOptions) {
236
- var _a, _b;
237
- return __awaiter(this, void 0, void 0, function* () {
238
- const _response = yield core.fetcher({
239
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
240
- .candidApi, "/api/third-party-payer-refunds/v1"),
241
- method: "POST",
242
- headers: {
243
- Authorization: yield this._getAuthorizationHeader(),
244
- "X-Fern-Language": "JavaScript",
245
- "X-Fern-SDK-Name": "candidhealth",
246
- "X-Fern-SDK-Version": "0.34.1",
247
- "X-Fern-Runtime": core.RUNTIME.type,
248
- "X-Fern-Runtime-Version": core.RUNTIME.version,
249
- },
250
- contentType: "application/json",
251
- requestType: "json",
252
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundCreate.jsonOrThrow(request, {
253
- unrecognizedObjectKeys: "strip",
254
- }),
255
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
256
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
257
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
258
- });
259
- if (_response.ok) {
260
- return {
261
- ok: true,
262
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund.parseOrThrow(_response.body, {
263
- unrecognizedObjectKeys: "passthrough",
264
- allowUnrecognizedUnionMembers: true,
265
- allowUnrecognizedEnumValues: true,
266
- breadcrumbsPrefix: ["response"],
267
- }),
268
- };
269
- }
270
- if (_response.error.reason === "status-code") {
271
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
272
- case "EntityNotFoundError":
273
- case "UnprocessableEntityError":
274
- return {
275
- ok: false,
276
- error: serializers.thirdPartyPayerRefunds.v1.create.Error.parseOrThrow(_response.error.body, {
277
- unrecognizedObjectKeys: "passthrough",
278
- allowUnrecognizedUnionMembers: true,
279
- allowUnrecognizedEnumValues: true,
280
- breadcrumbsPrefix: ["response"],
281
- }),
282
- };
283
- }
284
- }
285
- return {
286
- ok: false,
287
- error: CandidApi.thirdPartyPayerRefunds.v1.create.Error._unknown(_response.error),
288
- };
289
- });
290
- }
291
- /**
292
- * Updates the third party payer refund record matching the provided third_party_payer_refund_id. If updating the refund amount,
293
- * then the allocations must be appropriately updated as well.
294
- *
295
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
296
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundUpdate} request
297
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
298
- *
299
- * @example
300
- * await client.thirdPartyPayerRefunds.v1.update(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
301
- * refundTimestamp: new Date("2024-01-15T09:30:00.000Z"),
302
- * refundNote: {
303
- * type: "set",
304
- * value: "string"
305
- * },
306
- * refundReason: {
307
- * type: "set",
308
- * value: CandidApi.RefundReason.Overcharged
309
- * },
310
- * invoiceId: {
311
- * type: "set",
312
- * value: CandidApi.InvoiceId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
313
- * }
314
- * })
315
- */
316
- update(thirdPartyPayerRefundId, request = {}, requestOptions) {
317
- var _a, _b;
318
- return __awaiter(this, void 0, void 0, function* () {
319
- const _response = yield core.fetcher({
320
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
321
- .candidApi, `/api/third-party-payer-refunds/v1/${encodeURIComponent(serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId.jsonOrThrow(thirdPartyPayerRefundId))}`),
322
- method: "PATCH",
323
- headers: {
324
- Authorization: yield this._getAuthorizationHeader(),
325
- "X-Fern-Language": "JavaScript",
326
- "X-Fern-SDK-Name": "candidhealth",
327
- "X-Fern-SDK-Version": "0.34.1",
328
- "X-Fern-Runtime": core.RUNTIME.type,
329
- "X-Fern-Runtime-Version": core.RUNTIME.version,
330
- },
331
- contentType: "application/json",
332
- requestType: "json",
333
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundUpdate.jsonOrThrow(request, {
334
- unrecognizedObjectKeys: "strip",
335
- }),
336
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
339
- });
340
- if (_response.ok) {
341
- return {
342
- ok: true,
343
- body: serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefund.parseOrThrow(_response.body, {
344
- unrecognizedObjectKeys: "passthrough",
345
- allowUnrecognizedUnionMembers: true,
346
- allowUnrecognizedEnumValues: true,
347
- breadcrumbsPrefix: ["response"],
348
- }),
349
- };
350
- }
351
- if (_response.error.reason === "status-code") {
352
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
353
- case "EntityNotFoundError":
354
- case "UnprocessableEntityError":
355
- return {
356
- ok: false,
357
- error: serializers.thirdPartyPayerRefunds.v1.update.Error.parseOrThrow(_response.error.body, {
358
- unrecognizedObjectKeys: "passthrough",
359
- allowUnrecognizedUnionMembers: true,
360
- allowUnrecognizedEnumValues: true,
361
- breadcrumbsPrefix: ["response"],
362
- }),
363
- };
364
- }
365
- }
366
- return {
367
- ok: false,
368
- error: CandidApi.thirdPartyPayerRefunds.v1.update.Error._unknown(_response.error),
369
- };
370
- });
371
- }
372
- /**
373
- * Deletes the third party payer refund record matching the provided `third_party_payer_refund_id`.
374
- *
375
- * @param {CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId} thirdPartyPayerRefundId
376
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
377
- *
378
- * @example
379
- * await client.thirdPartyPayerRefunds.v1.delete(CandidApi.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
380
- */
381
- delete(thirdPartyPayerRefundId, requestOptions) {
382
- var _a, _b;
383
- return __awaiter(this, void 0, void 0, function* () {
384
- const _response = yield core.fetcher({
385
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
386
- .candidApi, `/api/third-party-payer-refunds/v1/${encodeURIComponent(serializers.thirdPartyPayerRefunds.v1.ThirdPartyPayerRefundId.jsonOrThrow(thirdPartyPayerRefundId))}`),
387
- method: "DELETE",
388
- headers: {
389
- Authorization: yield this._getAuthorizationHeader(),
390
- "X-Fern-Language": "JavaScript",
391
- "X-Fern-SDK-Name": "candidhealth",
392
- "X-Fern-SDK-Version": "0.34.1",
393
- "X-Fern-Runtime": core.RUNTIME.type,
394
- "X-Fern-Runtime-Version": core.RUNTIME.version,
395
- },
396
- contentType: "application/json",
397
- requestType: "json",
398
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
399
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
400
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
401
- });
402
- if (_response.ok) {
403
- return {
404
- ok: true,
405
- body: undefined,
406
- };
407
- }
408
- if (_response.error.reason === "status-code") {
409
- switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
410
- case "EntityNotFoundError":
411
- case "UnprocessableEntityError":
412
- return {
413
- ok: false,
414
- error: serializers.thirdPartyPayerRefunds.v1.delete.Error.parseOrThrow(_response.error.body, {
415
- unrecognizedObjectKeys: "passthrough",
416
- allowUnrecognizedUnionMembers: true,
417
- allowUnrecognizedEnumValues: true,
418
- breadcrumbsPrefix: ["response"],
419
- }),
420
- };
421
- }
422
- }
423
- return {
424
- ok: false,
425
- error: CandidApi.thirdPartyPayerRefunds.v1.delete.Error._unknown(_response.error),
426
- };
427
- });
428
- }
429
- _getAuthorizationHeader() {
430
- return __awaiter(this, void 0, void 0, function* () {
431
- const bearer = yield core.Supplier.get(this._options.token);
432
- if (bearer != null) {
433
- return `Bearer ${bearer}`;
434
- }
435
- return undefined;
436
- });
437
- }
438
- }
439
- exports.V1 = V1;
@@ -1,34 +0,0 @@
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.thirdPartyPayerRefunds.v1.create.Error.EntityNotFoundError | CandidApi.thirdPartyPayerRefunds.v1.create.Error.UnprocessableEntityError | CandidApi.thirdPartyPayerRefunds.v1.create.Error._Unknown;
7
- export declare namespace Error {
8
- interface EntityNotFoundError extends _Utils {
9
- errorName: "EntityNotFoundError";
10
- content: CandidApi.EntityNotFoundErrorMessage;
11
- }
12
- interface UnprocessableEntityError extends _Utils {
13
- errorName: "UnprocessableEntityError";
14
- content: CandidApi.UnprocessableEntityErrorMessage;
15
- }
16
- interface _Unknown extends _Utils {
17
- errorName: void;
18
- content: core.Fetcher.Error;
19
- }
20
- interface _Utils {
21
- _visit: <_Result>(visitor: CandidApi.thirdPartyPayerRefunds.v1.create.Error._Visitor<_Result>) => _Result;
22
- }
23
- interface _Visitor<_Result> {
24
- entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
- unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
26
- _other: (value: core.Fetcher.Error) => _Result;
27
- }
28
- }
29
- export declare const Error: {
30
- readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.thirdPartyPayerRefunds.v1.create.Error.EntityNotFoundError;
31
- readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.thirdPartyPayerRefunds.v1.create.Error.UnprocessableEntityError;
32
- readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.thirdPartyPayerRefunds.v1.create.Error._Unknown;
33
- readonly _visit: <_Result>(value: CandidApi.thirdPartyPayerRefunds.v1.create.Error, visitor: CandidApi.thirdPartyPayerRefunds.v1.create.Error._Visitor<_Result>) => _Result;
34
- };
@@ -1,69 +0,0 @@
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
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Error = void 0;
30
- const CandidApi = __importStar(require("../../../../../index"));
31
- exports.Error = {
32
- entityNotFoundError: (value) => {
33
- return {
34
- content: value,
35
- errorName: "EntityNotFoundError",
36
- _visit: function (visitor) {
37
- return CandidApi.thirdPartyPayerRefunds.v1.create.Error._visit(this, visitor);
38
- },
39
- };
40
- },
41
- unprocessableEntityError: (value) => {
42
- return {
43
- content: value,
44
- errorName: "UnprocessableEntityError",
45
- _visit: function (visitor) {
46
- return CandidApi.thirdPartyPayerRefunds.v1.create.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
- _unknown: (fetcherError) => {
51
- return {
52
- errorName: undefined,
53
- content: fetcherError,
54
- _visit: function (visitor) {
55
- return CandidApi.thirdPartyPayerRefunds.v1.create.Error._visit(this, visitor);
56
- },
57
- };
58
- },
59
- _visit: (value, visitor) => {
60
- switch (value.errorName) {
61
- case "EntityNotFoundError":
62
- return visitor.entityNotFoundError(value.content);
63
- case "UnprocessableEntityError":
64
- return visitor.unprocessableEntityError(value.content);
65
- default:
66
- return visitor._other(value);
67
- }
68
- },
69
- };