candidhealth 0.13.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  5. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  6. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  7. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -2
  8. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  9. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  10. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  11. package/api/resources/financials/types/AccountType.d.ts +8 -0
  12. package/api/resources/financials/types/AccountType.js +10 -0
  13. package/api/resources/financials/types/AllocationAmountUpdate.d.ts +8 -0
  14. package/api/resources/financials/types/InvoiceUpdate.d.ts +14 -0
  15. package/api/resources/financials/types/NoteUpdate.d.ts +14 -0
  16. package/api/resources/financials/types/RefundReasonUpdate.d.ts +14 -0
  17. package/api/resources/financials/types/index.d.ts +5 -0
  18. package/api/resources/financials/types/index.js +5 -0
  19. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  20. package/api/resources/index.d.ts +1 -2
  21. package/api/resources/index.js +2 -3
  22. package/api/resources/individual/types/Subscriber.d.ts +2 -2
  23. package/api/resources/individual/types/SubscriberCreate.d.ts +1 -1
  24. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  25. package/api/resources/insuranceCards/index.d.ts +1 -0
  26. package/api/resources/insuranceCards/index.js +17 -0
  27. package/api/resources/insuranceCards/resources/index.d.ts +1 -0
  28. package/api/resources/insuranceCards/resources/index.js +27 -0
  29. package/{dist/api/resources/insuranceCard → api/resources/insuranceCards/resources/v2}/types/InsuranceCard.d.ts +4 -4
  30. package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +1 -1
  31. package/{dist/api/resources/insuranceCard → api/resources/insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +2 -2
  32. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreate.js +5 -0
  33. package/{dist/api/resources/insuranceCard → api/resources/insuranceCards/resources/v2}/types/InsuranceCardId.d.ts +3 -3
  34. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
  35. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +41 -4
  36. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  37. package/api/resources/insuranceRefunds/resources/v1/client/index.js +2 -1
  38. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +12 -0
  39. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +5 -0
  40. package/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  41. package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  42. package/api/resources/insuranceRefunds/resources/v1/client/update.js +47 -0
  43. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  44. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  45. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  46. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  47. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +5 -0
  48. package/api/resources/patientPayments/resources/v4/client/Client.js +40 -4
  49. package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  50. package/api/resources/patientPayments/resources/v4/client/index.js +2 -1
  51. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +11 -0
  52. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +5 -0
  53. package/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  54. package/api/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  55. package/api/resources/patientPayments/resources/v4/client/update.js +47 -0
  56. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +5 -0
  57. package/api/resources/patientRefunds/resources/v1/client/Client.js +40 -4
  58. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  59. package/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
  60. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +12 -0
  61. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +5 -0
  62. package/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  63. package/api/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  64. package/api/resources/patientRefunds/resources/v1/client/update.js +47 -0
  65. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  66. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  67. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -2
  68. package/api/resources/writeOffs/resources/v1/client/Client.js +25 -7
  69. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +7 -0
  70. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +13 -0
  71. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +5 -0
  72. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +12 -0
  73. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +5 -0
  74. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +19 -0
  75. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +5 -0
  76. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +12 -0
  77. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.js +5 -0
  78. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +11 -0
  79. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +5 -0
  80. package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +8 -7
  81. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +8 -6
  82. package/api/resources/writeOffs/resources/v1/types/index.d.ts +5 -0
  83. package/api/resources/writeOffs/resources/v1/types/index.js +5 -0
  84. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  85. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  86. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  87. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  88. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  89. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  90. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -2
  91. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  92. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  93. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  94. package/dist/api/resources/financials/types/AccountType.d.ts +8 -0
  95. package/dist/api/resources/financials/types/AccountType.js +10 -0
  96. package/dist/api/resources/financials/types/AllocationAmountUpdate.d.ts +8 -0
  97. package/dist/api/resources/financials/types/AllocationAmountUpdate.js +5 -0
  98. package/dist/api/resources/financials/types/InvoiceUpdate.d.ts +14 -0
  99. package/dist/api/resources/financials/types/InvoiceUpdate.js +5 -0
  100. package/dist/api/resources/financials/types/NoteUpdate.d.ts +14 -0
  101. package/dist/api/resources/financials/types/NoteUpdate.js +5 -0
  102. package/dist/api/resources/financials/types/RefundReasonUpdate.d.ts +14 -0
  103. package/dist/api/resources/financials/types/RefundReasonUpdate.js +5 -0
  104. package/dist/api/resources/financials/types/index.d.ts +5 -0
  105. package/dist/api/resources/financials/types/index.js +5 -0
  106. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  107. package/dist/api/resources/index.d.ts +1 -2
  108. package/dist/api/resources/index.js +2 -3
  109. package/dist/api/resources/individual/types/Subscriber.d.ts +2 -2
  110. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -1
  111. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  112. package/dist/api/resources/insuranceCards/index.d.ts +1 -0
  113. package/dist/api/resources/insuranceCards/index.js +17 -0
  114. package/dist/api/resources/insuranceCards/resources/index.d.ts +1 -0
  115. package/dist/api/resources/insuranceCards/resources/index.js +27 -0
  116. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCard.d.ts +4 -4
  117. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCard.js +5 -0
  118. package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +1 -1
  119. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardBase.js +5 -0
  120. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +2 -2
  121. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreate.js +5 -0
  122. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCardId.d.ts +3 -3
  123. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
  124. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +41 -4
  125. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  126. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +2 -1
  127. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +12 -0
  128. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +5 -0
  129. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  130. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  131. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +47 -0
  132. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  133. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  134. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  135. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  136. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +5 -0
  137. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +40 -4
  138. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  139. package/dist/api/resources/patientPayments/resources/v4/client/index.js +2 -1
  140. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +11 -0
  141. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +5 -0
  142. package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  143. package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  144. package/dist/api/resources/patientPayments/resources/v4/client/update.js +47 -0
  145. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +5 -0
  146. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +40 -4
  147. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  148. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
  149. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +12 -0
  150. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +5 -0
  151. package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  152. package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  153. package/dist/api/resources/patientRefunds/resources/v1/client/update.js +47 -0
  154. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  155. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  156. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -2
  157. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +25 -7
  158. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +7 -0
  159. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +13 -0
  160. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +5 -0
  161. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +12 -0
  162. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +5 -0
  163. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +19 -0
  164. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +5 -0
  165. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +12 -0
  166. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.js +5 -0
  167. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +11 -0
  168. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +5 -0
  169. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +8 -7
  170. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +8 -6
  171. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +5 -0
  172. package/dist/api/resources/writeOffs/resources/v1/types/index.js +5 -0
  173. package/{serialization/resources/insuranceCard/types/InsuranceCardId.d.ts → dist/serialization/resources/financials/types/AccountType.d.ts} +3 -3
  174. package/dist/serialization/resources/financials/types/AccountType.js +31 -0
  175. package/dist/serialization/resources/financials/types/AllocationAmountUpdate.d.ts +13 -0
  176. package/dist/serialization/resources/financials/types/AllocationAmountUpdate.js +34 -0
  177. package/dist/serialization/resources/financials/types/InvoiceUpdate.d.ts +17 -0
  178. package/dist/serialization/resources/financials/types/InvoiceUpdate.js +41 -0
  179. package/dist/serialization/resources/financials/types/NoteUpdate.d.ts +17 -0
  180. package/dist/serialization/resources/financials/types/NoteUpdate.js +41 -0
  181. package/dist/serialization/resources/financials/types/RefundReasonUpdate.d.ts +17 -0
  182. package/dist/serialization/resources/financials/types/RefundReasonUpdate.js +41 -0
  183. package/dist/serialization/resources/financials/types/index.d.ts +5 -0
  184. package/dist/serialization/resources/financials/types/index.js +5 -0
  185. package/dist/serialization/resources/index.d.ts +1 -2
  186. package/dist/serialization/resources/index.js +2 -3
  187. package/dist/serialization/resources/individual/types/Subscriber.d.ts +1 -1
  188. package/dist/serialization/resources/individual/types/Subscriber.js +1 -1
  189. package/dist/serialization/resources/individual/types/SubscriberCreate.d.ts +1 -1
  190. package/dist/serialization/resources/individual/types/SubscriberCreate.js +1 -1
  191. package/dist/serialization/resources/insuranceCards/index.d.ts +1 -0
  192. package/dist/serialization/resources/insuranceCards/index.js +17 -0
  193. package/dist/serialization/resources/insuranceCards/resources/index.d.ts +1 -0
  194. package/dist/serialization/resources/insuranceCards/resources/index.js +27 -0
  195. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.d.ts +6 -6
  196. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.js +3 -3
  197. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +4 -4
  198. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.js +3 -3
  199. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +5 -5
  200. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.js +3 -3
  201. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardId.d.ts +10 -0
  202. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardId.js +3 -3
  203. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  204. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +17 -0
  205. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +17 -0
  206. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +40 -0
  207. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  208. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.js +5 -0
  209. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  210. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.js +1 -0
  211. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  212. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  213. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +16 -0
  214. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +39 -0
  215. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  216. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.js +3 -1
  217. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +17 -0
  218. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +40 -0
  219. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  220. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +3 -1
  221. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +1 -1
  222. package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +1 -1
  223. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +18 -0
  224. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +39 -0
  225. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +17 -0
  226. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +38 -0
  227. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +22 -0
  228. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +46 -0
  229. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +17 -0
  230. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +38 -0
  231. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +16 -0
  232. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +37 -0
  233. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +7 -8
  234. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +8 -7
  235. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +7 -7
  236. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +8 -6
  237. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +1 -1
  238. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +5 -0
  239. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +5 -0
  240. package/package.json +1 -1
  241. package/{dist/serialization/resources/insuranceCard/types/InsuranceCardId.d.ts → serialization/resources/financials/types/AccountType.d.ts} +3 -3
  242. package/serialization/resources/financials/types/AccountType.js +31 -0
  243. package/serialization/resources/financials/types/AllocationAmountUpdate.d.ts +13 -0
  244. package/serialization/resources/financials/types/AllocationAmountUpdate.js +34 -0
  245. package/serialization/resources/financials/types/InvoiceUpdate.d.ts +17 -0
  246. package/serialization/resources/financials/types/InvoiceUpdate.js +41 -0
  247. package/serialization/resources/financials/types/NoteUpdate.d.ts +17 -0
  248. package/serialization/resources/financials/types/NoteUpdate.js +41 -0
  249. package/serialization/resources/financials/types/RefundReasonUpdate.d.ts +17 -0
  250. package/serialization/resources/financials/types/RefundReasonUpdate.js +41 -0
  251. package/serialization/resources/financials/types/index.d.ts +5 -0
  252. package/serialization/resources/financials/types/index.js +5 -0
  253. package/serialization/resources/index.d.ts +1 -2
  254. package/serialization/resources/index.js +2 -3
  255. package/serialization/resources/individual/types/Subscriber.d.ts +1 -1
  256. package/serialization/resources/individual/types/Subscriber.js +1 -1
  257. package/serialization/resources/individual/types/SubscriberCreate.d.ts +1 -1
  258. package/serialization/resources/individual/types/SubscriberCreate.js +1 -1
  259. package/serialization/resources/insuranceCards/index.d.ts +1 -0
  260. package/serialization/resources/insuranceCards/index.js +17 -0
  261. package/serialization/resources/insuranceCards/resources/index.d.ts +1 -0
  262. package/serialization/resources/insuranceCards/resources/index.js +27 -0
  263. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.d.ts +6 -6
  264. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.js +3 -3
  265. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +4 -4
  266. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.js +3 -3
  267. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +5 -5
  268. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.js +3 -3
  269. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardId.d.ts +10 -0
  270. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardId.js +3 -3
  271. package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  272. package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +17 -0
  273. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +17 -0
  274. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +40 -0
  275. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  276. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.js +5 -0
  277. package/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  278. package/serialization/resources/insuranceRefunds/resources/v1/index.js +1 -0
  279. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  280. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  281. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +16 -0
  282. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +39 -0
  283. package/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  284. package/serialization/resources/patientPayments/resources/v4/client/requests/index.js +3 -1
  285. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +17 -0
  286. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +40 -0
  287. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  288. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +3 -1
  289. package/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +1 -1
  290. package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +1 -1
  291. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +18 -0
  292. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +39 -0
  293. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +17 -0
  294. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +38 -0
  295. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +22 -0
  296. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +46 -0
  297. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +17 -0
  298. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +38 -0
  299. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +16 -0
  300. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +37 -0
  301. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +7 -8
  302. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +8 -7
  303. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +7 -7
  304. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +8 -6
  305. package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +1 -1
  306. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +5 -0
  307. package/serialization/resources/writeOffs/resources/v1/types/index.js +5 -0
  308. /package/api/resources/{insuranceCard/types/InsuranceCard.js → financials/types/AllocationAmountUpdate.js} +0 -0
  309. /package/api/resources/{insuranceCard/types/InsuranceCardBase.js → financials/types/InvoiceUpdate.js} +0 -0
  310. /package/api/resources/{insuranceCard/types/InsuranceCardCreate.js → financials/types/NoteUpdate.js} +0 -0
  311. /package/{dist/api/resources/insuranceCard/types/InsuranceCard.js → api/resources/financials/types/RefundReasonUpdate.js} +0 -0
  312. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  313. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  314. /package/{dist/api/resources/insuranceCard/types/InsuranceCardBase.js → api/resources/insuranceCards/resources/v2/types/InsuranceCard.js} +0 -0
  315. /package/{dist/api/resources/insuranceCard/types/InsuranceCardCreate.js → api/resources/insuranceCards/resources/v2/types/InsuranceCardBase.js} +0 -0
  316. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardId.js +0 -0
  317. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  318. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  319. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  320. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  321. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardId.js +0 -0
  322. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  323. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  324. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  325. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  326. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  327. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  328. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  329. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  330. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  331. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface PatientWriteOff {
6
+ writeOffId: CandidApi.writeOffs.v1.WriteOffId;
7
+ writeOffTimestamp: Date;
8
+ writeOffNote?: string;
9
+ writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
10
+ serviceLineId: CandidApi.ServiceLineId;
11
+ amountCents: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface PatientWriteOffCreate {
6
+ writeOffTimestamp: Date;
7
+ writeOffNote?: string;
8
+ writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
9
+ serviceLineId: CandidApi.ServiceLineId;
10
+ amountCents: number;
11
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,11 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
- export interface WriteOff {
6
- writeOffId: CandidApi.writeOffs.v1.WriteOffId;
7
- writeOffTimestamp: Date;
8
- writeOffNote?: string;
9
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
10
- serviceLineId: CandidApi.ServiceLineId;
11
- amountCents: number;
5
+ export declare type WriteOff = CandidApi.writeOffs.v1.WriteOff.Patient | CandidApi.writeOffs.v1.WriteOff.Insurance;
6
+ export declare namespace WriteOff {
7
+ interface Patient extends CandidApi.writeOffs.v1.PatientWriteOff {
8
+ type: "patient";
9
+ }
10
+ interface Insurance extends CandidApi.writeOffs.v1.InsuranceWriteOff {
11
+ type: "insurance";
12
+ }
12
13
  }
@@ -2,10 +2,12 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
- export interface WriteOffCreate {
6
- writeOffTimestamp: Date;
7
- writeOffNote?: string;
8
- writeOffReason: CandidApi.writeOffs.v1.WriteOffReason;
9
- serviceLineId: CandidApi.ServiceLineId;
10
- amountCents: number;
5
+ export declare type WriteOffCreate = CandidApi.writeOffs.v1.WriteOffCreate.Patient | CandidApi.writeOffs.v1.WriteOffCreate.Insurance;
6
+ export declare namespace WriteOffCreate {
7
+ interface Patient extends CandidApi.writeOffs.v1.PatientWriteOffCreate {
8
+ type: "patient";
9
+ }
10
+ interface Insurance extends CandidApi.writeOffs.v1.InsuranceWriteOffCreate {
11
+ type: "insurance";
12
+ }
11
13
  }
@@ -1,6 +1,11 @@
1
1
  export * from "./WriteOffId";
2
2
  export * from "./WriteOff";
3
3
  export * from "./WriteOffCreate";
4
+ export * from "./PatientWriteOff";
5
+ export * from "./PatientWriteOffCreate";
6
+ export * from "./InsuranceWriteOff";
7
+ export * from "./InsuranceWriteOffCreate";
8
+ export * from "./InsuranceWriteOffTarget";
4
9
  export * from "./WriteOffReason";
5
10
  export * from "./CreateWriteOffsResponse";
6
11
  export * from "./WriteOffsPage";
@@ -17,6 +17,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./WriteOffId"), exports);
18
18
  __exportStar(require("./WriteOff"), exports);
19
19
  __exportStar(require("./WriteOffCreate"), exports);
20
+ __exportStar(require("./PatientWriteOff"), exports);
21
+ __exportStar(require("./PatientWriteOffCreate"), exports);
22
+ __exportStar(require("./InsuranceWriteOff"), exports);
23
+ __exportStar(require("./InsuranceWriteOffCreate"), exports);
24
+ __exportStar(require("./InsuranceWriteOffTarget"), exports);
20
25
  __exportStar(require("./WriteOffReason"), exports);
21
26
  __exportStar(require("./CreateWriteOffsResponse"), exports);
22
27
  __exportStar(require("./WriteOffsPage"), exports);
@@ -4,7 +4,7 @@
4
4
  import * as serializers from "../../..";
5
5
  import * as CandidApi from "../../../../api";
6
6
  import * as core from "../../../../core";
7
- export declare const InsuranceCardId: core.serialization.Schema<serializers.InsuranceCardId.Raw, CandidApi.InsuranceCardId>;
8
- export declare namespace InsuranceCardId {
9
- type Raw = string;
7
+ export declare const AccountType: core.serialization.Schema<serializers.AccountType.Raw, CandidApi.AccountType>;
8
+ export declare namespace AccountType {
9
+ type Raw = "PATIENT" | "INSURANCE";
10
10
  }
@@ -0,0 +1,31 @@
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.AccountType = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.AccountType = core.serialization.enum_(["PATIENT", "INSURANCE"]);
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const AllocationAmountUpdate: core.serialization.ObjectSchema<serializers.AllocationAmountUpdate.Raw, CandidApi.AllocationAmountUpdate>;
8
+ export declare namespace AllocationAmountUpdate {
9
+ interface Raw {
10
+ amount_cents?: number | null;
11
+ allocations: serializers.AllocationCreate.Raw[];
12
+ }
13
+ }
@@ -0,0 +1,34 @@
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.AllocationAmountUpdate = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.AllocationAmountUpdate = core.serialization.object({
32
+ amountCents: core.serialization.property("amount_cents", core.serialization.number().optional()),
33
+ allocations: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).AllocationCreate)),
34
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const InvoiceUpdate: core.serialization.Schema<serializers.InvoiceUpdate.Raw, CandidApi.InvoiceUpdate>;
8
+ export declare namespace InvoiceUpdate {
9
+ type Raw = InvoiceUpdate.Set | InvoiceUpdate.Remove;
10
+ interface Set {
11
+ type: "set";
12
+ value: serializers.InvoiceId.Raw;
13
+ }
14
+ interface Remove {
15
+ type: "remove";
16
+ }
17
+ }
@@ -0,0 +1,41 @@
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.InvoiceUpdate = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.InvoiceUpdate = core.serialization
32
+ .union("type", {
33
+ set: core.serialization.object({
34
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InvoiceId),
35
+ }),
36
+ remove: core.serialization.object({}),
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
41
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const NoteUpdate: core.serialization.Schema<serializers.NoteUpdate.Raw, CandidApi.NoteUpdate>;
8
+ export declare namespace NoteUpdate {
9
+ type Raw = NoteUpdate.Set | NoteUpdate.Remove;
10
+ interface Set {
11
+ type: "set";
12
+ value: string;
13
+ }
14
+ interface Remove {
15
+ type: "remove";
16
+ }
17
+ }
@@ -0,0 +1,41 @@
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.NoteUpdate = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.NoteUpdate = core.serialization
32
+ .union("type", {
33
+ set: core.serialization.object({
34
+ value: core.serialization.string(),
35
+ }),
36
+ remove: core.serialization.object({}),
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
41
+ });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../..";
5
+ import * as CandidApi from "../../../../api";
6
+ import * as core from "../../../../core";
7
+ export declare const RefundReasonUpdate: core.serialization.Schema<serializers.RefundReasonUpdate.Raw, CandidApi.RefundReasonUpdate>;
8
+ export declare namespace RefundReasonUpdate {
9
+ type Raw = RefundReasonUpdate.Set | RefundReasonUpdate.Remove;
10
+ interface Set {
11
+ type: "set";
12
+ value: serializers.RefundReason.Raw;
13
+ }
14
+ interface Remove {
15
+ type: "remove";
16
+ }
17
+ }
@@ -0,0 +1,41 @@
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.RefundReasonUpdate = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.RefundReasonUpdate = core.serialization
32
+ .union("type", {
33
+ set: core.serialization.object({
34
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).RefundReason),
35
+ }),
36
+ remove: core.serialization.object({}),
37
+ })
38
+ .transform({
39
+ transform: (value) => value,
40
+ untransform: (value) => value,
41
+ });
@@ -4,3 +4,8 @@ export * from "./Allocation";
4
4
  export * from "./AllocationTarget";
5
5
  export * from "./AllocationCreate";
6
6
  export * from "./AllocationTargetCreate";
7
+ export * from "./AccountType";
8
+ export * from "./AllocationAmountUpdate";
9
+ export * from "./NoteUpdate";
10
+ export * from "./InvoiceUpdate";
11
+ export * from "./RefundReasonUpdate";
@@ -20,3 +20,8 @@ __exportStar(require("./Allocation"), exports);
20
20
  __exportStar(require("./AllocationTarget"), exports);
21
21
  __exportStar(require("./AllocationCreate"), exports);
22
22
  __exportStar(require("./AllocationTargetCreate"), exports);
23
+ __exportStar(require("./AccountType"), exports);
24
+ __exportStar(require("./AllocationAmountUpdate"), exports);
25
+ __exportStar(require("./NoteUpdate"), exports);
26
+ __exportStar(require("./InvoiceUpdate"), exports);
27
+ __exportStar(require("./RefundReasonUpdate"), exports);
@@ -8,6 +8,7 @@ export * as expectedNetworkStatus from "./expectedNetworkStatus";
8
8
  export * as exports from "./exports";
9
9
  export * as guarantor from "./guarantor";
10
10
  export * as insuranceAdjudications from "./insuranceAdjudications";
11
+ export * as insuranceCards from "./insuranceCards";
11
12
  export * as insuranceRefunds from "./insuranceRefunds";
12
13
  export * as organizationServiceFacilities from "./organizationServiceFacilities";
13
14
  export * as organizationProviders from "./organizationProviders";
@@ -33,8 +34,6 @@ export * as identifiers from "./identifiers";
33
34
  export * from "./identifiers/types";
34
35
  export * as individual from "./individual";
35
36
  export * from "./individual/types";
36
- export * as insuranceCard from "./insuranceCard";
37
- export * from "./insuranceCard/types";
38
37
  export * as invoices from "./invoices";
39
38
  export * from "./invoices/types";
40
39
  export * as serviceFacility from "./serviceFacility";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.insuranceCard = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.individual = exports.identifiers = exports.financials = exports.era = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceCards = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.billingNotes = __importStar(require("./billingNotes"));
32
32
  exports.claimSubmission = __importStar(require("./claimSubmission"));
@@ -37,6 +37,7 @@ exports.expectedNetworkStatus = __importStar(require("./expectedNetworkStatus"))
37
37
  exports.exports = __importStar(require("./exports"));
38
38
  exports.guarantor = __importStar(require("./guarantor"));
39
39
  exports.insuranceAdjudications = __importStar(require("./insuranceAdjudications"));
40
+ exports.insuranceCards = __importStar(require("./insuranceCards"));
40
41
  exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
41
42
  exports.organizationServiceFacilities = __importStar(require("./organizationServiceFacilities"));
42
43
  exports.organizationProviders = __importStar(require("./organizationProviders"));
@@ -62,8 +63,6 @@ exports.identifiers = __importStar(require("./identifiers"));
62
63
  __exportStar(require("./identifiers/types"), exports);
63
64
  exports.individual = __importStar(require("./individual"));
64
65
  __exportStar(require("./individual/types"), exports);
65
- exports.insuranceCard = __importStar(require("./insuranceCard"));
66
- __exportStar(require("./insuranceCard/types"), exports);
67
66
  exports.invoices = __importStar(require("./invoices"));
68
67
  __exportStar(require("./invoices/types"), exports);
69
68
  exports.serviceFacility = __importStar(require("./serviceFacility"));
@@ -8,6 +8,6 @@ export declare const Subscriber: core.serialization.ObjectSchema<serializers.Sub
8
8
  export declare namespace Subscriber {
9
9
  interface Raw extends serializers.SubscriberBase.Raw {
10
10
  individual_id: serializers.IndividualId.Raw;
11
- insurance_card: serializers.InsuranceCard.Raw;
11
+ insurance_card: serializers.insuranceCards.v2.InsuranceCard.Raw;
12
12
  }
13
13
  }
@@ -31,6 +31,6 @@ const core = __importStar(require("../../../../core"));
31
31
  exports.Subscriber = core.serialization
32
32
  .object({
33
33
  individualId: core.serialization.property("individual_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).IndividualId)),
34
- insuranceCard: core.serialization.property("insurance_card", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InsuranceCard)),
34
+ insuranceCard: core.serialization.property("insurance_card", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).insuranceCards.v2.InsuranceCard)),
35
35
  })
36
36
  .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).SubscriberBase));
@@ -7,6 +7,6 @@ import * as core from "../../../../core";
7
7
  export declare const SubscriberCreate: core.serialization.ObjectSchema<serializers.SubscriberCreate.Raw, CandidApi.SubscriberCreate>;
8
8
  export declare namespace SubscriberCreate {
9
9
  interface Raw extends serializers.SubscriberBase.Raw {
10
- insurance_card: serializers.InsuranceCardCreate.Raw;
10
+ insurance_card: serializers.insuranceCards.v2.InsuranceCardCreate.Raw;
11
11
  }
12
12
  }
@@ -30,6 +30,6 @@ exports.SubscriberCreate = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
31
  exports.SubscriberCreate = core.serialization
32
32
  .object({
33
- insuranceCard: core.serialization.property("insurance_card", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InsuranceCardCreate)),
33
+ insuranceCard: core.serialization.property("insurance_card", core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).insuranceCards.v2.InsuranceCardCreate)),
34
34
  })
35
35
  .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).SubscriberBase));
@@ -0,0 +1 @@
1
+ export * from "./resources";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
@@ -0,0 +1 @@
1
+ export * as v2 from "./v2";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v2 = void 0;
27
+ exports.v2 = __importStar(require("./v2"));
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "../../..";
5
- import * as CandidApi from "../../../../api";
6
- import * as core from "../../../../core";
7
- export declare const InsuranceCard: core.serialization.ObjectSchema<serializers.InsuranceCard.Raw, CandidApi.InsuranceCard>;
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const InsuranceCard: core.serialization.ObjectSchema<serializers.insuranceCards.v2.InsuranceCard.Raw, CandidApi.insuranceCards.v2.InsuranceCard>;
8
8
  export declare namespace InsuranceCard {
9
- interface Raw extends serializers.InsuranceCardBase.Raw {
10
- insurance_card_id: serializers.InsuranceCardId.Raw;
9
+ interface Raw extends serializers.insuranceCards.v2.InsuranceCardBase.Raw {
10
+ insurance_card_id: serializers.insuranceCards.v2.InsuranceCardId.Raw;
11
11
  member_id: string;
12
12
  payer_name: string;
13
13
  payer_id: string;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.InsuranceCard = void 0;
30
- const core = __importStar(require("../../../../core"));
30
+ const core = __importStar(require("../../../../../../core"));
31
31
  exports.InsuranceCard = core.serialization
32
32
  .object({
33
- insuranceCardId: core.serialization.property("insurance_card_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InsuranceCardId)),
33
+ insuranceCardId: core.serialization.property("insurance_card_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).insuranceCards.v2.InsuranceCardId)),
34
34
  memberId: core.serialization.property("member_id", core.serialization.string()),
35
35
  payerName: core.serialization.property("payer_name", core.serialization.string()),
36
36
  payerId: core.serialization.property("payer_id", core.serialization.string()),
@@ -39,4 +39,4 @@ exports.InsuranceCard = core.serialization
39
39
  imageUrlFront: core.serialization.property("image_url_front", core.serialization.string().optional()),
40
40
  imageUrlBack: core.serialization.property("image_url_back", core.serialization.string().optional()),
41
41
  })
42
- .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InsuranceCardBase));
42
+ .extend(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).insuranceCards.v2.InsuranceCardBase));
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- import * as serializers from "../../..";
5
- import * as CandidApi from "../../../../api";
6
- import * as core from "../../../../core";
7
- export declare const InsuranceCardBase: core.serialization.ObjectSchema<serializers.InsuranceCardBase.Raw, CandidApi.InsuranceCardBase>;
4
+ import * as serializers from "../../../../..";
5
+ import * as CandidApi from "../../../../../../api";
6
+ import * as core from "../../../../../../core";
7
+ export declare const InsuranceCardBase: core.serialization.ObjectSchema<serializers.insuranceCards.v2.InsuranceCardBase.Raw, CandidApi.insuranceCards.v2.InsuranceCardBase>;
8
8
  export declare namespace InsuranceCardBase {
9
9
  interface Raw {
10
10
  group_number?: string | null;
@@ -27,10 +27,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.InsuranceCardBase = void 0;
30
- const core = __importStar(require("../../../../core"));
30
+ const core = __importStar(require("../../../../../../core"));
31
31
  exports.InsuranceCardBase = core.serialization.object({
32
32
  groupNumber: core.serialization.property("group_number", core.serialization.string().optional()),
33
33
  planName: core.serialization.property("plan_name", core.serialization.string().optional()),
34
- planType: core.serialization.property("plan_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).SourceOfPaymentCode).optional()),
35
- insuranceType: core.serialization.property("insurance_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).InsuranceTypeCode).optional()),
34
+ planType: core.serialization.property("plan_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).SourceOfPaymentCode).optional()),
35
+ insuranceType: core.serialization.property("insurance_type", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).InsuranceTypeCode).optional()),
36
36
  });