candidhealth 0.40.2 → 0.40.3

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 (208) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
  6. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
  7. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
  8. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  9. package/{dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js} +19 -7
  10. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  11. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
  13. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  16. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  18. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  19. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  20. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  21. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  22. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  23. package/api/resources/diagnoses/client/Client.js +3 -3
  24. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  25. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  26. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  27. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  28. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  29. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  30. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  31. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  32. package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  33. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  34. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  35. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  36. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  37. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  38. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  39. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  40. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  41. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  42. package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  43. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  44. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  45. package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  46. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  47. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  48. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  49. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  50. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  51. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  52. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  53. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  54. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  55. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  56. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  57. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  58. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  59. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  60. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  61. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  62. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  63. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  64. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  65. package/api/resources/serviceFacility/client/Client.js +1 -1
  66. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  67. package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  68. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  69. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  70. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  71. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  72. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +1 -0
  73. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +10 -6
  74. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +5 -0
  75. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +8 -1
  76. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +40 -4
  77. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  78. package/{serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js} +19 -7
  79. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  80. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  81. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +1 -1
  82. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  83. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  84. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  85. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  86. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  87. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  88. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  89. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  90. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  91. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  92. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  93. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  94. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  95. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  96. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  97. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  98. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  99. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  100. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  101. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  102. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  103. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  104. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  105. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  106. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  107. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  108. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  109. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  110. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  111. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  112. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  113. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  114. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  115. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  116. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  117. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  118. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  119. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  120. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  121. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  122. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  123. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  124. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  125. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  126. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  127. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  128. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  129. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  130. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  131. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  132. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  133. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  134. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  135. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  136. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  137. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  138. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  139. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  140. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  141. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  142. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  143. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  144. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  145. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  146. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  147. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  148. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  149. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  150. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  151. package/dist/version.d.ts +1 -1
  152. package/dist/version.js +1 -1
  153. package/package.json +1 -1
  154. package/reference.md +48 -231
  155. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  156. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  157. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  158. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  159. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +1 -0
  160. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +1 -0
  161. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  162. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  163. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  164. package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  165. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  166. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  167. package/version.d.ts +1 -1
  168. package/version.js +1 -1
  169. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  170. package/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  171. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  172. package/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  173. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  174. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  175. package/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  176. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  177. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  178. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  179. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  180. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  181. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  182. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +0 -5
  183. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  184. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  185. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  186. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +0 -5
  187. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  188. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  189. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  190. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  191. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  192. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  193. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  194. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  195. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  196. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  197. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  198. package/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  199. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  200. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  201. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  202. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  203. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  204. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  205. package/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  206. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  207. /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
  208. /package/{api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js → dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
@@ -55,61 +55,5 @@ export declare class V1 {
55
55
  * await client.insurancePayments.v1.get(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
56
56
  */
57
57
  get(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.get.Error>>;
58
- /**
59
- * Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
60
- * should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
61
- * from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
62
- *
63
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentCreate} request
64
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
65
- *
66
- * @example
67
- * await client.insurancePayments.v1.create({
68
- * payerIdentifier: {
69
- * type: "payer_info"
70
- * },
71
- * amountCents: 1,
72
- * paymentTimestamp: "2024-01-15T09:30:00Z",
73
- * paymentNote: "string",
74
- * allocations: [{
75
- * amountCents: 1,
76
- * target: {
77
- * type: "service_line_by_id",
78
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
79
- * }
80
- * }]
81
- * })
82
- */
83
- create(request: CandidApi.insurancePayments.v1.InsurancePaymentCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.create.Error>>;
84
- /**
85
- * Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
86
- * then the allocations must be appropriately updated as well.
87
- *
88
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
89
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentUpdate} request
90
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
91
- *
92
- * @example
93
- * await client.insurancePayments.v1.update(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
94
- * paymentTimestamp: "2024-01-15T09:30:00Z",
95
- * paymentNote: {
96
- * type: "set",
97
- * value: "string"
98
- * }
99
- * })
100
- */
101
- update(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, request?: CandidApi.insurancePayments.v1.InsurancePaymentUpdate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.update.Error>>;
102
- /**
103
- * Deletes the insurance payment record matching the provided `insurance_payment_id`.
104
- * If the matching record's organization_id does not match the authenticated user's
105
- * current organization_id, then a response code of `403` will be returned.
106
- *
107
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
108
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
109
- *
110
- * @example
111
- * await client.insurancePayments.v1.delete(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
112
- */
113
- delete(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.insurancePayments.v1.delete.Error>>;
114
58
  protected _getAuthorizationHeader(): Promise<string | undefined>;
115
59
  }
@@ -112,7 +112,7 @@ class V1 {
112
112
  const _response = yield core.fetcher({
113
113
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-payments/v1"),
114
114
  method: "GET",
115
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
116
  contentType: "application/json",
117
117
  queryParameters: _queryParams,
118
118
  requestType: "json",
@@ -168,7 +168,7 @@ class V1 {
168
168
  const _response = yield core.fetcher({
169
169
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
170
170
  method: "GET",
171
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -207,198 +207,6 @@ class V1 {
207
207
  };
208
208
  });
209
209
  }
210
- /**
211
- * Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
212
- * should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
213
- * from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
214
- *
215
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentCreate} request
216
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
217
- *
218
- * @example
219
- * await client.insurancePayments.v1.create({
220
- * payerIdentifier: {
221
- * type: "payer_info"
222
- * },
223
- * amountCents: 1,
224
- * paymentTimestamp: "2024-01-15T09:30:00Z",
225
- * paymentNote: "string",
226
- * allocations: [{
227
- * amountCents: 1,
228
- * target: {
229
- * type: "service_line_by_id",
230
- * value: CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
231
- * }
232
- * }]
233
- * })
234
- */
235
- create(request, requestOptions) {
236
- return __awaiter(this, void 0, void 0, function* () {
237
- var _a, _b, _c;
238
- const _response = yield core.fetcher({
239
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-payments/v1"),
240
- method: "POST",
241
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
242
- contentType: "application/json",
243
- requestType: "json",
244
- body: serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
245
- unrecognizedObjectKeys: "strip",
246
- }),
247
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
248
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
249
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
250
- });
251
- if (_response.ok) {
252
- return {
253
- ok: true,
254
- body: serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
255
- unrecognizedObjectKeys: "passthrough",
256
- allowUnrecognizedUnionMembers: true,
257
- allowUnrecognizedEnumValues: true,
258
- breadcrumbsPrefix: ["response"],
259
- }),
260
- };
261
- }
262
- if (_response.error.reason === "status-code") {
263
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
264
- case "EntityNotFoundError":
265
- case "UnauthorizedError":
266
- case "UnprocessableEntityError":
267
- return {
268
- ok: false,
269
- error: serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
270
- unrecognizedObjectKeys: "passthrough",
271
- allowUnrecognizedUnionMembers: true,
272
- allowUnrecognizedEnumValues: true,
273
- breadcrumbsPrefix: ["response"],
274
- }),
275
- };
276
- }
277
- }
278
- return {
279
- ok: false,
280
- error: CandidApi.insurancePayments.v1.create.Error._unknown(_response.error),
281
- };
282
- });
283
- }
284
- /**
285
- * Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
286
- * then the allocations must be appropriately updated as well.
287
- *
288
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
289
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentUpdate} request
290
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
291
- *
292
- * @example
293
- * await client.insurancePayments.v1.update(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
294
- * paymentTimestamp: "2024-01-15T09:30:00Z",
295
- * paymentNote: {
296
- * type: "set",
297
- * value: "string"
298
- * }
299
- * })
300
- */
301
- update(insurancePaymentId_1) {
302
- return __awaiter(this, arguments, void 0, function* (insurancePaymentId, request = {}, requestOptions) {
303
- var _a, _b, _c;
304
- const _response = yield core.fetcher({
305
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
306
- method: "PATCH",
307
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
308
- contentType: "application/json",
309
- requestType: "json",
310
- body: serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
311
- unrecognizedObjectKeys: "strip",
312
- }),
313
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
314
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
315
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
316
- });
317
- if (_response.ok) {
318
- return {
319
- ok: true,
320
- body: serializers.insurancePayments.v1.InsurancePayment.parseOrThrow(_response.body, {
321
- unrecognizedObjectKeys: "passthrough",
322
- allowUnrecognizedUnionMembers: true,
323
- allowUnrecognizedEnumValues: true,
324
- breadcrumbsPrefix: ["response"],
325
- }),
326
- };
327
- }
328
- if (_response.error.reason === "status-code") {
329
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
330
- case "EntityNotFoundError":
331
- case "UnauthorizedError":
332
- case "UnprocessableEntityError":
333
- return {
334
- ok: false,
335
- error: serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
336
- unrecognizedObjectKeys: "passthrough",
337
- allowUnrecognizedUnionMembers: true,
338
- allowUnrecognizedEnumValues: true,
339
- breadcrumbsPrefix: ["response"],
340
- }),
341
- };
342
- }
343
- }
344
- return {
345
- ok: false,
346
- error: CandidApi.insurancePayments.v1.update.Error._unknown(_response.error),
347
- };
348
- });
349
- }
350
- /**
351
- * Deletes the insurance payment record matching the provided `insurance_payment_id`.
352
- * If the matching record's organization_id does not match the authenticated user's
353
- * current organization_id, then a response code of `403` will be returned.
354
- *
355
- * @param {CandidApi.insurancePayments.v1.InsurancePaymentId} insurancePaymentId
356
- * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
357
- *
358
- * @example
359
- * await client.insurancePayments.v1.delete(CandidApi.insurancePayments.v1.InsurancePaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
360
- */
361
- delete(insurancePaymentId, requestOptions) {
362
- return __awaiter(this, void 0, void 0, function* () {
363
- var _a, _b, _c;
364
- const _response = yield core.fetcher({
365
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
366
- method: "DELETE",
367
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
- contentType: "application/json",
369
- requestType: "json",
370
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
371
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
372
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
373
- });
374
- if (_response.ok) {
375
- return {
376
- ok: true,
377
- body: undefined,
378
- };
379
- }
380
- if (_response.error.reason === "status-code") {
381
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
382
- case "EntityNotFoundError":
383
- case "UnauthorizedError":
384
- case "UnprocessableEntityError":
385
- return {
386
- ok: false,
387
- error: serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
388
- unrecognizedObjectKeys: "passthrough",
389
- allowUnrecognizedUnionMembers: true,
390
- allowUnrecognizedEnumValues: true,
391
- breadcrumbsPrefix: ["response"],
392
- }),
393
- };
394
- }
395
- }
396
- return {
397
- ok: false,
398
- error: CandidApi.insurancePayments.v1.delete.Error._unknown(_response.error),
399
- };
400
- });
401
- }
402
210
  _getAuthorizationHeader() {
403
211
  return __awaiter(this, void 0, void 0, function* () {
404
212
  const bearer = yield core.Supplier.get(this._options.token);
@@ -1,6 +1,3 @@
1
1
  export * from "./requests";
2
2
  export * as getMulti from "./getMulti";
3
3
  export * as get from "./get";
4
- export * as create from "./create";
5
- export * as update from "./update";
6
- export * as delete from "./delete";
@@ -36,10 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.delete = exports.update = exports.create = exports.get = exports.getMulti = void 0;
39
+ exports.get = exports.getMulti = void 0;
40
40
  __exportStar(require("./requests"), exports);
41
41
  exports.getMulti = __importStar(require("./getMulti"));
42
42
  exports.get = __importStar(require("./get"));
43
- exports.create = __importStar(require("./create"));
44
- exports.update = __importStar(require("./update"));
45
- exports.delete = __importStar(require("./delete"));
@@ -1,2 +1 @@
1
1
  export { type GetMultiInsurancePaymentRequest } from "./GetMultiInsurancePaymentRequest";
2
- export { type InsurancePaymentUpdate } from "./InsurancePaymentUpdate";
@@ -1,5 +1,4 @@
1
1
  export * from "./InsurancePaymentId";
2
2
  export * from "./InsurancePayment";
3
- export * from "./InsurancePaymentCreate";
4
3
  export * from "./InsurancePaymentsPage";
5
4
  export * from "./InsurancePaymentSortField";
@@ -16,6 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InsurancePaymentId"), exports);
18
18
  __exportStar(require("./InsurancePayment"), exports);
19
- __exportStar(require("./InsurancePaymentCreate"), exports);
20
19
  __exportStar(require("./InsurancePaymentsPage"), exports);
21
20
  __exportStar(require("./InsurancePaymentSortField"), exports);
@@ -113,7 +113,7 @@ class V1 {
113
113
  const _response = yield core.fetcher({
114
114
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-refunds/v1"),
115
115
  method: "GET",
116
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
116
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
117
  contentType: "application/json",
118
118
  queryParameters: _queryParams,
119
119
  requestType: "json",
@@ -169,7 +169,7 @@ class V1 {
169
169
  const _response = yield core.fetcher({
170
170
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
171
171
  method: "GET",
172
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
173
  contentType: "application/json",
174
174
  requestType: "json",
175
175
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -240,7 +240,7 @@ class V1 {
240
240
  const _response = yield core.fetcher({
241
241
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/insurance-refunds/v1"),
242
242
  method: "POST",
243
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
243
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
244
244
  contentType: "application/json",
245
245
  requestType: "json",
246
246
  body: serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -310,7 +310,7 @@ class V1 {
310
310
  const _response = yield core.fetcher({
311
311
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
312
312
  method: "PATCH",
313
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
313
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
314
314
  contentType: "application/json",
315
315
  requestType: "json",
316
316
  body: serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
@@ -370,7 +370,7 @@ class V1 {
370
370
  const _response = yield core.fetcher({
371
371
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
372
372
  method: "DELETE",
373
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
373
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
374
374
  contentType: "application/json",
375
375
  requestType: "json",
376
376
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -48,7 +48,7 @@ export declare class V1 {
48
48
  * drugDescription: "string"
49
49
  * },
50
50
  * description: "string",
51
- * modifiers: ["22"]
51
+ * modifiers: ["AV"]
52
52
  * })
53
53
  */
54
54
  create(request: CandidApi.medicationDispense.v1.MedicationDispenseCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.encounters.v4.Encounter, CandidApi.medicationDispense.v1.create.Error>>;
@@ -81,7 +81,7 @@ class V1 {
81
81
  * drugDescription: "string"
82
82
  * },
83
83
  * description: "string",
84
- * modifiers: ["22"]
84
+ * modifiers: ["AV"]
85
85
  * })
86
86
  */
87
87
  create(request, requestOptions) {
@@ -90,7 +90,7 @@ class V1 {
90
90
  const _response = yield core.fetcher({
91
91
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/medication-dispense/v1"),
92
92
  method: "POST",
93
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
93
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
94
94
  contentType: "application/json",
95
95
  requestType: "json",
96
96
  body: serializers.medicationDispense.v1.MedicationDispenseCreate.jsonOrThrow(request, {
@@ -114,7 +114,7 @@ class V1 {
114
114
  const _response = yield core.fetcher({
115
115
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payer-payments/v1"),
116
116
  method: "GET",
117
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
118
118
  contentType: "application/json",
119
119
  queryParameters: _queryParams,
120
120
  requestType: "json",
@@ -168,7 +168,7 @@ class V1 {
168
168
  const _response = yield core.fetcher({
169
169
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
170
170
  method: "GET",
171
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
172
  contentType: "application/json",
173
173
  requestType: "json",
174
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -233,7 +233,7 @@ class V1 {
233
233
  const _response = yield core.fetcher({
234
234
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payer-payments/v1"),
235
235
  method: "POST",
236
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
236
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
237
237
  contentType: "application/json",
238
238
  requestType: "json",
239
239
  body: serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentCreate.jsonOrThrow(request, {
@@ -299,7 +299,7 @@ class V1 {
299
299
  const _response = yield core.fetcher({
300
300
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
301
301
  method: "PATCH",
302
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
302
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
303
303
  contentType: "application/json",
304
304
  requestType: "json",
305
305
  body: serializers.nonInsurancePayerPayments.v1.UpdateNonInsurancePayerPaymentRequest.jsonOrThrow(request, {
@@ -356,7 +356,7 @@ class V1 {
356
356
  const _response = yield core.fetcher({
357
357
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
358
358
  method: "DELETE",
359
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
360
360
  contentType: "application/json",
361
361
  requestType: "json",
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -111,7 +111,7 @@ class V1 {
111
111
  const _response = yield core.fetcher({
112
112
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payer-refunds/v1"),
113
113
  method: "GET",
114
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
114
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
115
115
  contentType: "application/json",
116
116
  queryParameters: _queryParams,
117
117
  requestType: "json",
@@ -165,7 +165,7 @@ class V1 {
165
165
  const _response = yield core.fetcher({
166
166
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-refunds/v1/${encodeURIComponent(serializers.nonInsurancePayerRefunds.v1.NonInsurancePayerRefundId.jsonOrThrow(nonInsurancePayerRefundId))}`),
167
167
  method: "GET",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -235,7 +235,7 @@ class V1 {
235
235
  const _response = yield core.fetcher({
236
236
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payer-refunds/v1"),
237
237
  method: "POST",
238
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  body: serializers.nonInsurancePayerRefunds.v1.NonInsurancePayerRefundCreate.jsonOrThrow(request, {
@@ -308,7 +308,7 @@ class V1 {
308
308
  const _response = yield core.fetcher({
309
309
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-refunds/v1/${encodeURIComponent(serializers.nonInsurancePayerRefunds.v1.NonInsurancePayerRefundId.jsonOrThrow(nonInsurancePayerRefundId))}`),
310
310
  method: "PATCH",
311
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
311
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
312
  contentType: "application/json",
313
313
  requestType: "json",
314
314
  body: serializers.nonInsurancePayerRefunds.v1.NonInsurancePayerRefundUpdate.jsonOrThrow(request, {
@@ -365,7 +365,7 @@ class V1 {
365
365
  const _response = yield core.fetcher({
366
366
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payer-refunds/v1/${encodeURIComponent(serializers.nonInsurancePayerRefunds.v1.NonInsurancePayerRefundId.jsonOrThrow(nonInsurancePayerRefundId))}`),
367
367
  method: "DELETE",
368
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
368
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
369
369
  contentType: "application/json",
370
370
  requestType: "json",
371
371
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -88,7 +88,7 @@ class V1 {
88
88
  const _response = yield core.fetcher({
89
89
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payers/v1"),
90
90
  method: "POST",
91
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
91
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
92
92
  contentType: "application/json",
93
93
  requestType: "json",
94
94
  body: serializers.nonInsurancePayers.v1.CreateNonInsurancePayerRequest.jsonOrThrow(request, {
@@ -146,7 +146,7 @@ class V1 {
146
146
  const _response = yield core.fetcher({
147
147
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}/toggle_enablement`),
148
148
  method: "PATCH",
149
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
149
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
150
150
  contentType: "application/json",
151
151
  requestType: "json",
152
152
  body: serializers.nonInsurancePayers.v1.ToggleNonInsurancePayerEnablementRequest.jsonOrThrow(request, {
@@ -235,7 +235,7 @@ class V1 {
235
235
  const _response = yield core.fetcher({
236
236
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/non-insurance-payers/v1"),
237
237
  method: "GET",
238
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
238
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
239
  contentType: "application/json",
240
240
  queryParameters: _queryParams,
241
241
  requestType: "json",
@@ -287,7 +287,7 @@ class V1 {
287
287
  const _response = yield core.fetcher({
288
288
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
289
289
  method: "GET",
290
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
291
291
  contentType: "application/json",
292
292
  requestType: "json",
293
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -350,7 +350,7 @@ class V1 {
350
350
  const _response = yield core.fetcher({
351
351
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
352
352
  method: "PATCH",
353
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
353
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
354
354
  contentType: "application/json",
355
355
  requestType: "json",
356
356
  body: serializers.nonInsurancePayers.v1.NonInsurancePayerUpdateRequest.jsonOrThrow(request, {
@@ -405,7 +405,7 @@ class V1 {
405
405
  const _response = yield core.fetcher({
406
406
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/non-insurance-payers/v1/${encodeURIComponent(serializers.nonInsurancePayers.v1.NonInsurancePayerId.jsonOrThrow(nonInsurancePayerId))}`),
407
407
  method: "DELETE",
408
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.2", "User-Agent": "candidhealth/0.40.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
408
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
409
409
  contentType: "application/json",
410
410
  requestType: "json",
411
411
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,