candidhealth 0.13.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (353) 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 +11 -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 +15 -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/InsuranceWriteOffReason.d.ts +21 -0
  75. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +23 -0
  76. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +19 -0
  77. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +5 -0
  78. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +14 -0
  79. package/api/resources/writeOffs/resources/v1/types/PatientWriteOff.js +5 -0
  80. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +11 -0
  81. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +5 -0
  82. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +15 -0
  83. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +17 -0
  84. package/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +8 -7
  85. package/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +8 -6
  86. package/api/resources/writeOffs/resources/v1/types/index.d.ts +7 -1
  87. package/api/resources/writeOffs/resources/v1/types/index.js +7 -1
  88. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  89. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  90. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  91. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  92. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  93. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  94. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +2 -2
  95. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  96. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  97. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  98. package/dist/api/resources/financials/types/AccountType.d.ts +8 -0
  99. package/dist/api/resources/financials/types/AccountType.js +10 -0
  100. package/dist/api/resources/financials/types/AllocationAmountUpdate.d.ts +8 -0
  101. package/dist/api/resources/financials/types/AllocationAmountUpdate.js +5 -0
  102. package/dist/api/resources/financials/types/InvoiceUpdate.d.ts +14 -0
  103. package/dist/api/resources/financials/types/InvoiceUpdate.js +5 -0
  104. package/dist/api/resources/financials/types/NoteUpdate.d.ts +14 -0
  105. package/dist/api/resources/financials/types/NoteUpdate.js +5 -0
  106. package/dist/api/resources/financials/types/RefundReasonUpdate.d.ts +14 -0
  107. package/dist/api/resources/financials/types/RefundReasonUpdate.js +5 -0
  108. package/dist/api/resources/financials/types/index.d.ts +5 -0
  109. package/dist/api/resources/financials/types/index.js +5 -0
  110. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  111. package/dist/api/resources/index.d.ts +1 -2
  112. package/dist/api/resources/index.js +2 -3
  113. package/dist/api/resources/individual/types/Subscriber.d.ts +2 -2
  114. package/dist/api/resources/individual/types/SubscriberCreate.d.ts +1 -1
  115. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  116. package/dist/api/resources/insuranceCards/index.d.ts +1 -0
  117. package/dist/api/resources/insuranceCards/index.js +17 -0
  118. package/dist/api/resources/insuranceCards/resources/index.d.ts +1 -0
  119. package/dist/api/resources/insuranceCards/resources/index.js +27 -0
  120. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCard.d.ts +4 -4
  121. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCard.js +5 -0
  122. package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +1 -1
  123. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardBase.js +5 -0
  124. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +2 -2
  125. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreate.js +5 -0
  126. package/{api/resources/insuranceCard → dist/api/resources/insuranceCards/resources/v2}/types/InsuranceCardId.d.ts +3 -3
  127. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
  128. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +41 -4
  129. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  130. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +2 -1
  131. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +11 -0
  132. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +5 -0
  133. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  134. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  135. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +47 -0
  136. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +2 -1
  137. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  138. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  139. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  140. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +5 -0
  141. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +40 -4
  142. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -0
  143. package/dist/api/resources/patientPayments/resources/v4/client/index.js +2 -1
  144. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +11 -0
  145. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +5 -0
  146. package/dist/api/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  147. package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  148. package/dist/api/resources/patientPayments/resources/v4/client/update.js +47 -0
  149. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +5 -0
  150. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +40 -4
  151. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -0
  152. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +2 -1
  153. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +12 -0
  154. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +5 -0
  155. package/dist/api/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  156. package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  157. package/dist/api/resources/patientRefunds/resources/v1/client/update.js +47 -0
  158. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  159. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  160. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +1 -2
  161. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +25 -7
  162. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +7 -0
  163. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +15 -0
  164. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +5 -0
  165. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +12 -0
  166. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +5 -0
  167. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +21 -0
  168. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +23 -0
  169. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +19 -0
  170. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +5 -0
  171. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +14 -0
  172. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOff.js +5 -0
  173. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +11 -0
  174. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +5 -0
  175. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +15 -0
  176. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +17 -0
  177. package/dist/api/resources/writeOffs/resources/v1/types/WriteOff.d.ts +8 -7
  178. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +8 -6
  179. package/dist/api/resources/writeOffs/resources/v1/types/index.d.ts +7 -1
  180. package/dist/api/resources/writeOffs/resources/v1/types/index.js +7 -1
  181. package/{serialization/resources/insuranceCard/types/InsuranceCardId.d.ts → dist/serialization/resources/financials/types/AccountType.d.ts} +3 -3
  182. package/{serialization/resources/writeOffs/resources/v1/types/WriteOffReason.js → dist/serialization/resources/financials/types/AccountType.js} +3 -3
  183. package/dist/serialization/resources/financials/types/AllocationAmountUpdate.d.ts +13 -0
  184. package/dist/serialization/resources/financials/types/AllocationAmountUpdate.js +34 -0
  185. package/dist/serialization/resources/financials/types/InvoiceUpdate.d.ts +17 -0
  186. package/dist/serialization/resources/financials/types/InvoiceUpdate.js +41 -0
  187. package/dist/serialization/resources/financials/types/NoteUpdate.d.ts +17 -0
  188. package/dist/serialization/resources/financials/types/NoteUpdate.js +41 -0
  189. package/dist/serialization/resources/financials/types/RefundReasonUpdate.d.ts +17 -0
  190. package/dist/serialization/resources/financials/types/RefundReasonUpdate.js +41 -0
  191. package/dist/serialization/resources/financials/types/index.d.ts +5 -0
  192. package/dist/serialization/resources/financials/types/index.js +5 -0
  193. package/dist/serialization/resources/index.d.ts +1 -2
  194. package/dist/serialization/resources/index.js +2 -3
  195. package/dist/serialization/resources/individual/types/Subscriber.d.ts +1 -1
  196. package/dist/serialization/resources/individual/types/Subscriber.js +1 -1
  197. package/dist/serialization/resources/individual/types/SubscriberCreate.d.ts +1 -1
  198. package/dist/serialization/resources/individual/types/SubscriberCreate.js +1 -1
  199. package/dist/serialization/resources/insuranceCards/index.d.ts +1 -0
  200. package/dist/serialization/resources/insuranceCards/index.js +17 -0
  201. package/dist/serialization/resources/insuranceCards/resources/index.d.ts +1 -0
  202. package/dist/serialization/resources/insuranceCards/resources/index.js +27 -0
  203. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.d.ts +6 -6
  204. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.js +3 -3
  205. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +4 -4
  206. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.js +3 -3
  207. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +5 -5
  208. package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.js +3 -3
  209. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardId.d.ts +10 -0
  210. package/{serialization/resources/insuranceCard → dist/serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardId.js +3 -3
  211. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  212. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +17 -0
  213. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +16 -0
  214. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +39 -0
  215. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  216. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.js +5 -0
  217. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  218. package/dist/serialization/resources/insuranceRefunds/resources/v1/index.js +1 -0
  219. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  220. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  221. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +16 -0
  222. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +39 -0
  223. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  224. package/dist/serialization/resources/patientPayments/resources/v4/client/requests/index.js +3 -1
  225. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +17 -0
  226. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +40 -0
  227. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  228. package/dist/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +3 -1
  229. package/dist/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +1 -1
  230. package/dist/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +1 -1
  231. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +20 -0
  232. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +41 -0
  233. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +17 -0
  234. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +38 -0
  235. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +10 -0
  236. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +47 -0
  237. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +22 -0
  238. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +46 -0
  239. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +19 -0
  240. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +40 -0
  241. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +16 -0
  242. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +37 -0
  243. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +10 -0
  244. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +41 -0
  245. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +7 -8
  246. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +8 -7
  247. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +7 -7
  248. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +8 -6
  249. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +1 -1
  250. package/dist/serialization/resources/writeOffs/resources/v1/types/index.d.ts +7 -1
  251. package/dist/serialization/resources/writeOffs/resources/v1/types/index.js +7 -1
  252. package/package.json +1 -1
  253. package/{dist/serialization/resources/insuranceCard/types/InsuranceCardId.d.ts → serialization/resources/financials/types/AccountType.d.ts} +3 -3
  254. package/{dist/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.js → serialization/resources/financials/types/AccountType.js} +3 -3
  255. package/serialization/resources/financials/types/AllocationAmountUpdate.d.ts +13 -0
  256. package/serialization/resources/financials/types/AllocationAmountUpdate.js +34 -0
  257. package/serialization/resources/financials/types/InvoiceUpdate.d.ts +17 -0
  258. package/serialization/resources/financials/types/InvoiceUpdate.js +41 -0
  259. package/serialization/resources/financials/types/NoteUpdate.d.ts +17 -0
  260. package/serialization/resources/financials/types/NoteUpdate.js +41 -0
  261. package/serialization/resources/financials/types/RefundReasonUpdate.d.ts +17 -0
  262. package/serialization/resources/financials/types/RefundReasonUpdate.js +41 -0
  263. package/serialization/resources/financials/types/index.d.ts +5 -0
  264. package/serialization/resources/financials/types/index.js +5 -0
  265. package/serialization/resources/index.d.ts +1 -2
  266. package/serialization/resources/index.js +2 -3
  267. package/serialization/resources/individual/types/Subscriber.d.ts +1 -1
  268. package/serialization/resources/individual/types/Subscriber.js +1 -1
  269. package/serialization/resources/individual/types/SubscriberCreate.d.ts +1 -1
  270. package/serialization/resources/individual/types/SubscriberCreate.js +1 -1
  271. package/serialization/resources/insuranceCards/index.d.ts +1 -0
  272. package/serialization/resources/insuranceCards/index.js +17 -0
  273. package/serialization/resources/insuranceCards/resources/index.d.ts +1 -0
  274. package/serialization/resources/insuranceCards/resources/index.js +27 -0
  275. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.d.ts +6 -6
  276. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCard.js +3 -3
  277. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.d.ts +4 -4
  278. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardBase.js +3 -3
  279. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.d.ts +5 -5
  280. package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardCreate.js +3 -3
  281. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardId.d.ts +10 -0
  282. package/{dist/serialization/resources/insuranceCard → serialization/resources/insuranceCards/resources/v2}/types/InsuranceCardId.js +3 -3
  283. package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -0
  284. package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +17 -0
  285. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +16 -0
  286. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.js +39 -0
  287. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  288. package/serialization/resources/insuranceRefunds/resources/v1/client/requests/index.js +5 -0
  289. package/serialization/resources/insuranceRefunds/resources/v1/index.d.ts +1 -0
  290. package/serialization/resources/insuranceRefunds/resources/v1/index.js +1 -0
  291. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  292. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +1 -0
  293. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +16 -0
  294. package/serialization/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.js +39 -0
  295. package/serialization/resources/patientPayments/resources/v4/client/requests/index.d.ts +1 -0
  296. package/serialization/resources/patientPayments/resources/v4/client/requests/index.js +3 -1
  297. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +17 -0
  298. package/serialization/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.js +40 -0
  299. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.d.ts +1 -0
  300. package/serialization/resources/patientRefunds/resources/v1/client/requests/index.js +3 -1
  301. package/serialization/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.js +1 -1
  302. package/serialization/resources/writeOffs/resources/v1/types/CreateWriteOffsResponse.js +1 -1
  303. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.d.ts +20 -0
  304. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOff.js +41 -0
  305. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.d.ts +17 -0
  306. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffCreate.js +38 -0
  307. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +10 -0
  308. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +47 -0
  309. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.d.ts +22 -0
  310. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffTarget.js +46 -0
  311. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.d.ts +19 -0
  312. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOff.js +40 -0
  313. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.d.ts +16 -0
  314. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffCreate.js +37 -0
  315. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +10 -0
  316. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +41 -0
  317. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.d.ts +7 -8
  318. package/serialization/resources/writeOffs/resources/v1/types/WriteOff.js +8 -7
  319. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.d.ts +7 -7
  320. package/serialization/resources/writeOffs/resources/v1/types/WriteOffCreate.js +8 -6
  321. package/serialization/resources/writeOffs/resources/v1/types/WriteOffsPage.js +1 -1
  322. package/serialization/resources/writeOffs/resources/v1/types/index.d.ts +7 -1
  323. package/serialization/resources/writeOffs/resources/v1/types/index.js +7 -1
  324. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  325. package/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +0 -12
  326. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  327. package/dist/api/resources/writeOffs/resources/v1/types/WriteOffReason.js +0 -12
  328. package/dist/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  329. package/serialization/resources/writeOffs/resources/v1/types/WriteOffReason.d.ts +0 -10
  330. /package/api/resources/{insuranceCard/types/InsuranceCard.js → financials/types/AllocationAmountUpdate.js} +0 -0
  331. /package/api/resources/{insuranceCard/types/InsuranceCardBase.js → financials/types/InvoiceUpdate.js} +0 -0
  332. /package/api/resources/{insuranceCard/types/InsuranceCardCreate.js → financials/types/NoteUpdate.js} +0 -0
  333. /package/{dist/api/resources/insuranceCard/types/InsuranceCard.js → api/resources/financials/types/RefundReasonUpdate.js} +0 -0
  334. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  335. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  336. /package/{dist/api/resources/insuranceCard/types/InsuranceCardBase.js → api/resources/insuranceCards/resources/v2/types/InsuranceCard.js} +0 -0
  337. /package/{dist/api/resources/insuranceCard/types/InsuranceCardCreate.js → api/resources/insuranceCards/resources/v2/types/InsuranceCardBase.js} +0 -0
  338. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardId.js +0 -0
  339. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  340. /package/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  341. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  342. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  343. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/InsuranceCardId.js +0 -0
  344. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  345. /package/dist/api/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  346. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  347. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  348. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  349. /package/dist/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
  350. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.d.ts +0 -0
  351. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/index.js +0 -0
  352. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.d.ts +0 -0
  353. /package/serialization/resources/{insuranceCard → insuranceCards/resources/v2}/types/index.js +0 -0
@@ -0,0 +1,39 @@
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.PatientPaymentUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.PatientPaymentUpdate = core.serialization.object({
32
+ paymentTimestamp: core.serialization.property("payment_timestamp", core.serialization.date().optional()),
33
+ paymentNote: core.serialization.property("payment_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
+ patientExternalId: core.serialization.property("patient_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientExternalId).optional()),
35
+ allocations: core.serialization
36
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).AllocationAmountUpdate)
37
+ .optional(),
38
+ invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
39
+ });
@@ -1 +1,2 @@
1
1
  export { PatientPaymentCreate } from "./PatientPaymentCreate";
2
+ export { PatientPaymentUpdate } from "./PatientPaymentUpdate";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PatientPaymentCreate = void 0;
3
+ exports.PatientPaymentUpdate = exports.PatientPaymentCreate = void 0;
4
4
  var PatientPaymentCreate_1 = require("./PatientPaymentCreate");
5
5
  Object.defineProperty(exports, "PatientPaymentCreate", { enumerable: true, get: function () { return PatientPaymentCreate_1.PatientPaymentCreate; } });
6
+ var PatientPaymentUpdate_1 = require("./PatientPaymentUpdate");
7
+ Object.defineProperty(exports, "PatientPaymentUpdate", { enumerable: true, get: function () { return PatientPaymentUpdate_1.PatientPaymentUpdate; } });
@@ -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 PatientRefundUpdate: core.serialization.Schema<serializers.patientRefunds.v1.PatientRefundUpdate.Raw, CandidApi.patientRefunds.v1.PatientRefundUpdate>;
8
+ export declare namespace PatientRefundUpdate {
9
+ interface Raw {
10
+ refund_timestamp?: string | null;
11
+ refund_note?: serializers.NoteUpdate.Raw | null;
12
+ patient_external_id?: serializers.PatientExternalId.Raw | null;
13
+ allocations?: serializers.AllocationAmountUpdate.Raw | null;
14
+ invoice?: serializers.InvoiceUpdate.Raw | null;
15
+ refund_reason?: serializers.RefundReasonUpdate.Raw | null;
16
+ }
17
+ }
@@ -0,0 +1,40 @@
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.PatientRefundUpdate = void 0;
30
+ const core = __importStar(require("../../../../../../../core"));
31
+ exports.PatientRefundUpdate = core.serialization.object({
32
+ refundTimestamp: core.serialization.property("refund_timestamp", core.serialization.date().optional()),
33
+ refundNote: core.serialization.property("refund_note", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).NoteUpdate).optional()),
34
+ patientExternalId: core.serialization.property("patient_external_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).PatientExternalId).optional()),
35
+ allocations: core.serialization
36
+ .lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).AllocationAmountUpdate)
37
+ .optional(),
38
+ invoice: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).InvoiceUpdate).optional(),
39
+ refundReason: core.serialization.property("refund_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).RefundReasonUpdate).optional()),
40
+ });
@@ -1 +1,2 @@
1
1
  export { PatientRefundCreate } from "./PatientRefundCreate";
2
+ export { PatientRefundUpdate } from "./PatientRefundUpdate";
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PatientRefundCreate = void 0;
3
+ exports.PatientRefundUpdate = exports.PatientRefundCreate = void 0;
4
4
  var PatientRefundCreate_1 = require("./PatientRefundCreate");
5
5
  Object.defineProperty(exports, "PatientRefundCreate", { enumerable: true, get: function () { return PatientRefundCreate_1.PatientRefundCreate; } });
6
+ var PatientRefundUpdate_1 = require("./PatientRefundUpdate");
7
+ Object.defineProperty(exports, "PatientRefundUpdate", { enumerable: true, get: function () { return PatientRefundUpdate_1.PatientRefundUpdate; } });
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateWriteOffsRequest = void 0;
30
30
  const core = __importStar(require("../../../../../../../core"));
31
31
  exports.CreateWriteOffsRequest = core.serialization.object({
32
- writeOffs: core.serialization.property("write_offs", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).writeOffs.v1.WriteOffCreate))),
32
+ writeOffs: core.serialization.property("write_offs", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../../..")))).writeOffs.v1.WriteOffCreate))),
33
33
  });
@@ -29,5 +29,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.CreateWriteOffsResponse = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
31
  exports.CreateWriteOffsResponse = core.serialization.object({
32
- writeOffs: core.serialization.property("write_offs", core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOff))),
32
+ writeOffs: core.serialization.property("write_offs", core.serialization.list(core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOff))),
33
33
  });
@@ -0,0 +1,20 @@
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 InsuranceWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.InsuranceWriteOff.Raw, CandidApi.writeOffs.v1.InsuranceWriteOff>;
8
+ export declare namespace InsuranceWriteOff {
9
+ interface Raw {
10
+ write_off_id: serializers.writeOffs.v1.WriteOffId.Raw;
11
+ payer: serializers.payers.v3.Payer.Raw;
12
+ write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
13
+ write_off_timestamp: string;
14
+ write_off_note?: string | null;
15
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
16
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
17
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
18
+ amount_cents: number;
19
+ }
20
+ }
@@ -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.InsuranceWriteOff = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOff = core.serialization.object({
32
+ writeOffId: core.serialization.property("write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId)),
33
+ payer: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).payers.v3.Payer),
34
+ writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
35
+ writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
36
+ writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
37
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
38
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
39
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
40
+ amountCents: core.serialization.property("amount_cents", core.serialization.number()),
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 InsuranceWriteOffCreate: core.serialization.ObjectSchema<serializers.writeOffs.v1.InsuranceWriteOffCreate.Raw, CandidApi.writeOffs.v1.InsuranceWriteOffCreate>;
8
+ export declare namespace InsuranceWriteOffCreate {
9
+ interface Raw {
10
+ payer_identifier: serializers.payers.v3.PayerIdentifier.Raw;
11
+ write_off_target: serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw;
12
+ write_off_timestamp: string;
13
+ write_off_note?: string | null;
14
+ write_off_reason: serializers.writeOffs.v1.InsuranceWriteOffReason.Raw;
15
+ amount_cents: number;
16
+ }
17
+ }
@@ -0,0 +1,38 @@
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.InsuranceWriteOffCreate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOffCreate = core.serialization.object({
32
+ payerIdentifier: core.serialization.property("payer_identifier", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).payers.v3.PayerIdentifier)),
33
+ writeOffTarget: core.serialization.property("write_off_target", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffTarget)),
34
+ writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
35
+ writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
36
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOffReason)),
37
+ amountCents: core.serialization.property("amount_cents", core.serialization.number()),
38
+ });
@@ -0,0 +1,10 @@
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 InsuranceWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.InsuranceWriteOffReason.Raw, CandidApi.writeOffs.v1.InsuranceWriteOffReason>;
8
+ export declare namespace InsuranceWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "NO_AUTHORIZATION_REFERRAL" | "TIMELY_FILING" | "STALE_DATE" | "TIMELY_FILING_LATE_ENCOUNTER" | "CREDENTIALING_OR_CONTRACTING" | "NON_COVERED_MAX_BENEFIT" | "NOT_MEDICALLY_NECESSARY" | "BUNDLED_OR_INCLUSIVE" | "UNCOLLECTIBLE_OR_NON_BILLABLE" | "EFFORTS_EXHAUSTED" | "ADMINISTRATIVE_WRITE_OFF" | "CASE_RATE_OR_CAPITATED" | "OTHER" | "UNKNOWN";
10
+ }
@@ -0,0 +1,47 @@
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.InsuranceWriteOffReason = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOffReason = core.serialization.enum_([
32
+ "SMALL_BALANCE",
33
+ "NO_AUTHORIZATION_REFERRAL",
34
+ "TIMELY_FILING",
35
+ "STALE_DATE",
36
+ "TIMELY_FILING_LATE_ENCOUNTER",
37
+ "CREDENTIALING_OR_CONTRACTING",
38
+ "NON_COVERED_MAX_BENEFIT",
39
+ "NOT_MEDICALLY_NECESSARY",
40
+ "BUNDLED_OR_INCLUSIVE",
41
+ "UNCOLLECTIBLE_OR_NON_BILLABLE",
42
+ "EFFORTS_EXHAUSTED",
43
+ "ADMINISTRATIVE_WRITE_OFF",
44
+ "CASE_RATE_OR_CAPITATED",
45
+ "OTHER",
46
+ "UNKNOWN",
47
+ ]);
@@ -0,0 +1,22 @@
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 InsuranceWriteOffTarget: core.serialization.Schema<serializers.writeOffs.v1.InsuranceWriteOffTarget.Raw, CandidApi.writeOffs.v1.InsuranceWriteOffTarget>;
8
+ export declare namespace InsuranceWriteOffTarget {
9
+ type Raw = InsuranceWriteOffTarget.ServiceLineId | InsuranceWriteOffTarget.ClaimId | InsuranceWriteOffTarget.BillingProviderId;
10
+ interface ServiceLineId {
11
+ type: "service_line_id";
12
+ value: serializers.ServiceLineId.Raw;
13
+ }
14
+ interface ClaimId {
15
+ type: "claim_id";
16
+ value: serializers.ClaimId.Raw;
17
+ }
18
+ interface BillingProviderId {
19
+ type: "billing_provider_id";
20
+ value: serializers.ProviderId.Raw;
21
+ }
22
+ }
@@ -0,0 +1,46 @@
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.InsuranceWriteOffTarget = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.InsuranceWriteOffTarget = core.serialization
32
+ .union("type", {
33
+ service_line_id: core.serialization.object({
34
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId),
35
+ }),
36
+ claim_id: core.serialization.object({
37
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ClaimId),
38
+ }),
39
+ billing_provider_id: core.serialization.object({
40
+ value: core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ProviderId),
41
+ }),
42
+ })
43
+ .transform({
44
+ transform: (value) => value,
45
+ untransform: (value) => value,
46
+ });
@@ -0,0 +1,19 @@
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 PatientWriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOff.Raw, CandidApi.writeOffs.v1.PatientWriteOff>;
8
+ export declare namespace PatientWriteOff {
9
+ interface Raw {
10
+ write_off_id: serializers.writeOffs.v1.WriteOffId.Raw;
11
+ write_off_timestamp: string;
12
+ write_off_note?: string | null;
13
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
14
+ service_line_id: serializers.ServiceLineId.Raw;
15
+ reverts_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
16
+ reverted_by_write_off_id?: serializers.writeOffs.v1.WriteOffId.Raw | null;
17
+ amount_cents: number;
18
+ }
19
+ }
@@ -0,0 +1,40 @@
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.PatientWriteOff = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.PatientWriteOff = core.serialization.object({
32
+ writeOffId: core.serialization.property("write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId)),
33
+ writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
34
+ writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
35
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
36
+ serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
37
+ revertsWriteOffId: core.serialization.property("reverts_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
38
+ revertedByWriteOffId: core.serialization.property("reverted_by_write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId).optional()),
39
+ amountCents: core.serialization.property("amount_cents", core.serialization.number()),
40
+ });
@@ -0,0 +1,16 @@
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 PatientWriteOffCreate: core.serialization.ObjectSchema<serializers.writeOffs.v1.PatientWriteOffCreate.Raw, CandidApi.writeOffs.v1.PatientWriteOffCreate>;
8
+ export declare namespace PatientWriteOffCreate {
9
+ interface Raw {
10
+ write_off_timestamp: string;
11
+ write_off_note?: string | null;
12
+ write_off_reason: serializers.writeOffs.v1.PatientWriteOffReason.Raw;
13
+ service_line_id: serializers.ServiceLineId.Raw;
14
+ amount_cents: number;
15
+ }
16
+ }
@@ -0,0 +1,37 @@
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.PatientWriteOffCreate = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.PatientWriteOffCreate = core.serialization.object({
32
+ writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
33
+ writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
34
+ writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOffReason)),
35
+ serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
36
+ amountCents: core.serialization.property("amount_cents", core.serialization.number()),
37
+ });
@@ -0,0 +1,10 @@
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 PatientWriteOffReason: core.serialization.Schema<serializers.writeOffs.v1.PatientWriteOffReason.Raw, CandidApi.writeOffs.v1.PatientWriteOffReason>;
8
+ export declare namespace PatientWriteOffReason {
9
+ type Raw = "SMALL_BALANCE" | "CHARITY_OR_FINANCIAL_ASSISTANCE" | "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY" | "OON_COURTESY_ADJUSTMENT" | "PROMPT_PAY_DISCOUNT" | "BAD_DEBT" | "COLLECTION_AGENCY" | "OTHER" | "UNKNOWN";
10
+ }
@@ -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.PatientWriteOffReason = void 0;
30
+ const core = __importStar(require("../../../../../../core"));
31
+ exports.PatientWriteOffReason = core.serialization.enum_([
32
+ "SMALL_BALANCE",
33
+ "CHARITY_OR_FINANCIAL_ASSISTANCE",
34
+ "PATIENT_EXPERIENCE_OR_SERVICE_RECOVERY",
35
+ "OON_COURTESY_ADJUSTMENT",
36
+ "PROMPT_PAY_DISCOUNT",
37
+ "BAD_DEBT",
38
+ "COLLECTION_AGENCY",
39
+ "OTHER",
40
+ "UNKNOWN",
41
+ ]);
@@ -4,14 +4,13 @@
4
4
  import * as serializers from "../../../../..";
5
5
  import * as CandidApi from "../../../../../../api";
6
6
  import * as core from "../../../../../../core";
7
- export declare const WriteOff: core.serialization.ObjectSchema<serializers.writeOffs.v1.WriteOff.Raw, CandidApi.writeOffs.v1.WriteOff>;
7
+ export declare const WriteOff: core.serialization.Schema<serializers.writeOffs.v1.WriteOff.Raw, CandidApi.writeOffs.v1.WriteOff>;
8
8
  export declare namespace WriteOff {
9
- interface Raw {
10
- write_off_id: serializers.writeOffs.v1.WriteOffId.Raw;
11
- write_off_timestamp: string;
12
- write_off_note?: string | null;
13
- write_off_reason: serializers.writeOffs.v1.WriteOffReason.Raw;
14
- service_line_id: serializers.ServiceLineId.Raw;
15
- amount_cents: number;
9
+ type Raw = WriteOff.Patient | WriteOff.Insurance;
10
+ interface Patient extends serializers.writeOffs.v1.PatientWriteOff.Raw {
11
+ type: "patient";
12
+ }
13
+ interface Insurance extends serializers.writeOffs.v1.InsuranceWriteOff.Raw {
14
+ type: "insurance";
16
15
  }
17
16
  }
@@ -28,11 +28,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.WriteOff = void 0;
30
30
  const core = __importStar(require("../../../../../../core"));
31
- exports.WriteOff = core.serialization.object({
32
- writeOffId: core.serialization.property("write_off_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffId)),
33
- writeOffTimestamp: core.serialization.property("write_off_timestamp", core.serialization.date()),
34
- writeOffNote: core.serialization.property("write_off_note", core.serialization.string().optional()),
35
- writeOffReason: core.serialization.property("write_off_reason", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.WriteOffReason)),
36
- serviceLineId: core.serialization.property("service_line_id", core.serialization.lazy(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).ServiceLineId)),
37
- amountCents: core.serialization.property("amount_cents", core.serialization.number()),
31
+ exports.WriteOff = core.serialization
32
+ .union("type", {
33
+ patient: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.PatientWriteOff),
34
+ insurance: core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../../../..")))).writeOffs.v1.InsuranceWriteOff),
35
+ })
36
+ .transform({
37
+ transform: (value) => value,
38
+ untransform: (value) => value,
38
39
  });