candidhealth 0.11.0 → 0.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) 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/eligibility/resources/v2/client/Client.js +1 -1
  4. package/api/resources/encounters/resources/v4/client/Client.js +5 -4
  5. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  6. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  7. package/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
  8. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  9. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  10. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  11. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  12. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  13. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  14. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  15. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
  16. package/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
  17. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  18. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  19. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
  20. package/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
  21. package/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
  22. package/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
  23. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
  24. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
  25. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
  26. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
  27. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
  28. package/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
  29. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
  30. package/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  31. package/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
  32. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
  33. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
  34. package/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
  35. package/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
  36. package/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
  37. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  38. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  39. package/api/resources/patientPayments/resources/v4/client/Client.js +8 -5
  40. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
  41. package/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
  42. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
  43. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  44. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  45. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  46. package/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
  47. package/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  48. package/api/resources/x12/resources/v1/types/index.js +2 -0
  49. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  50. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  51. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  52. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -4
  53. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  54. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  55. package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +6 -0
  56. package/dist/api/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +5 -0
  57. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  58. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  59. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  60. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  61. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  62. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  63. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  64. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
  65. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
  66. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  67. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  68. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
  69. package/dist/api/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
  70. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
  71. package/dist/api/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
  72. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +6 -0
  73. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +66 -4
  74. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +22 -0
  75. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +47 -0
  76. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +2 -0
  77. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +6 -1
  78. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +23 -0
  79. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js +5 -0
  80. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.d.ts +1 -0
  81. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/index.js +2 -0
  82. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
  83. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +12 -0
  84. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +7 -0
  85. package/dist/api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +5 -0
  86. package/dist/api/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
  87. package/dist/api/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
  88. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  89. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  90. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +8 -5
  91. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -0
  92. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +8 -5
  93. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -0
  94. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  95. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  96. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  97. package/dist/api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js +5 -0
  98. package/dist/api/resources/x12/resources/v1/types/RemittanceAdviceRemarkCode.js +5 -0
  99. package/dist/api/resources/x12/resources/v1/types/index.d.ts +2 -0
  100. package/dist/api/resources/x12/resources/v1/types/index.js +2 -0
  101. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  102. package/dist/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  103. package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
  104. package/dist/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
  105. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  106. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  107. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
  108. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
  109. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
  110. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
  111. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  112. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
  113. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  114. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
  115. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
  116. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
  117. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
  118. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
  119. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
  120. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
  121. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
  122. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
  123. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
  124. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
  125. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
  126. package/dist/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
  127. package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
  128. package/{serialization/resources/insuranceAdjudications → dist/serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
  129. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  130. package/dist/serialization/resources/x12/resources/v1/types/index.js +2 -0
  131. package/package.json +1 -1
  132. package/serialization/resources/encounters/resources/v4/client/create.d.ts +5 -1
  133. package/serialization/resources/encounters/resources/v4/client/create.js +5 -0
  134. package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.d.ts +12 -0
  135. package/serialization/resources/encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js +33 -0
  136. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  137. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  138. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.d.ts +3 -1
  139. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudication.js +3 -1
  140. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.d.ts +2 -1
  141. package/serialization/resources/insuranceAdjudications/resources/v1/types/ClaimAdjudicationCreate.js +2 -1
  142. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.d.ts +1 -1
  143. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudication.js +1 -1
  144. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -1
  145. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -1
  146. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.d.ts +2 -2
  147. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudication.js +2 -2
  148. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.d.ts +2 -2
  149. package/serialization/resources/insuranceAdjudications/resources/v1/types/ServiceLineAdjudicationCreate.js +2 -2
  150. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.d.ts +0 -2
  151. package/serialization/resources/insuranceAdjudications/resources/v1/types/index.js +0 -2
  152. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.d.ts +10 -0
  153. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundSortField.js +31 -0
  154. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.d.ts +12 -0
  155. package/serialization/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js +35 -0
  156. package/serialization/resources/insuranceRefunds/resources/v1/types/index.d.ts +2 -0
  157. package/serialization/resources/insuranceRefunds/resources/v1/types/index.js +2 -0
  158. package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +1 -1
  159. package/{dist/serialization/resources/insuranceAdjudications → serialization/resources/x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +1 -1
  160. package/serialization/resources/x12/resources/v1/types/index.d.ts +2 -0
  161. package/serialization/resources/x12/resources/v1/types/index.js +2 -0
  162. /package/api/resources/{insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → encounters/resources/v4/types/EncounterPatientControlNumberUniquenessErrorType.js} +0 -0
  163. /package/api/resources/{insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.js} +0 -0
  164. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/ClaimAdjustmentReasonCode.js → api/resources/insuranceRefunds/resources/v1/types/InsuranceRefundsPage.js} +0 -0
  165. /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
  166. /package/{dist/api/resources/insuranceAdjudications/resources/v1/types/RemittanceAdviceRemarkCode.js → api/resources/x12/resources/v1/types/ClaimAdjustmentReasonCode.js} +0 -0
  167. /package/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
  168. /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.d.ts +0 -0
  169. /package/dist/api/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.d.ts +0 -0
  170. /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
  171. /package/dist/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
  172. /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/ClaimAdjustmentReasonCode.js +0 -0
  173. /package/serialization/resources/{insuranceAdjudications → x12}/resources/v1/types/RemittanceAdviceRemarkCode.js +0 -0
@@ -62,7 +62,7 @@ class V2 {
62
62
  Authorization: await this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "candidhealth",
65
- "X-Fern-SDK-Version": "0.11.0",
65
+ "X-Fern-SDK-Version": "0.12.0",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.11.0",
51
+ "X-Fern-SDK-Version": "0.12.0",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -65,7 +65,7 @@ class V2 {
65
65
  Authorization: await this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.11.0",
68
+ "X-Fern-SDK-Version": "0.12.0",
69
69
  },
70
70
  contentType: "application/json",
71
71
  body: request,
@@ -103,7 +103,7 @@ class V4 {
103
103
  Authorization: await this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.11.0",
106
+ "X-Fern-SDK-Version": "0.12.0",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V4 {
133
133
  Authorization: await this._getAuthorizationHeader(),
134
134
  "X-Fern-Language": "JavaScript",
135
135
  "X-Fern-SDK-Name": "candidhealth",
136
- "X-Fern-SDK-Version": "0.11.0",
136
+ "X-Fern-SDK-Version": "0.12.0",
137
137
  },
138
138
  contentType: "application/json",
139
139
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V4 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.11.0",
165
+ "X-Fern-SDK-Version": "0.12.0",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -184,6 +184,7 @@ class V4 {
184
184
  if (_response.error.reason === "status-code") {
185
185
  switch (_response.error.body?.errorName) {
186
186
  case "EncounterExternalIdUniquenessError":
187
+ case "EncounterPatientControlNumberUniquenessError":
187
188
  case "EntityNotFoundError":
188
189
  case "EncounterGuarantorMissingContactInfoError":
189
190
  case "HttpRequestValidationsError":
@@ -212,7 +213,7 @@ class V4 {
212
213
  Authorization: await this._getAuthorizationHeader(),
213
214
  "X-Fern-Language": "JavaScript",
214
215
  "X-Fern-SDK-Name": "candidhealth",
215
- "X-Fern-SDK-Version": "0.11.0",
216
+ "X-Fern-SDK-Version": "0.12.0",
216
217
  },
217
218
  contentType: "application/json",
218
219
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -3,12 +3,16 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
6
+ export declare type Error = CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError | CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError | CandidApi.encounters.v4.create.Error.EntityNotFoundError | CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError | CandidApi.encounters.v4.create.Error.HttpRequestValidationsError | CandidApi.encounters.v4.create.Error.CashPayPayerError | CandidApi.encounters.v4.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EncounterExternalIdUniquenessError extends _Utils {
9
9
  errorName: "EncounterExternalIdUniquenessError";
10
10
  content: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType;
11
11
  }
12
+ interface EncounterPatientControlNumberUniquenessError extends _Utils {
13
+ errorName: "EncounterPatientControlNumberUniquenessError";
14
+ content: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType;
15
+ }
12
16
  interface EntityNotFoundError extends _Utils {
13
17
  errorName: "EntityNotFoundError";
14
18
  content: CandidApi.EntityNotFoundErrorMessage;
@@ -34,6 +38,7 @@ export declare namespace Error {
34
38
  }
35
39
  interface _Visitor<_Result> {
36
40
  encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => _Result;
41
+ encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => _Result;
37
42
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
38
43
  encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => _Result;
39
44
  httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => _Result;
@@ -43,6 +48,7 @@ export declare namespace Error {
43
48
  }
44
49
  export declare const Error: {
45
50
  readonly encounterExternalIdUniquenessError: (value: CandidApi.encounters.v4.EncounterExternalIdUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterExternalIdUniquenessError;
51
+ readonly encounterPatientControlNumberUniquenessError: (value: CandidApi.encounters.v4.EncounterPatientControlNumberUniquenessErrorType) => CandidApi.encounters.v4.create.Error.EncounterPatientControlNumberUniquenessError;
46
52
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.encounters.v4.create.Error.EntityNotFoundError;
47
53
  readonly encounterGuarantorMissingContactInfoError: (value: CandidApi.encounters.v4.EncounterGuarantorMissingContactInfoErrorType) => CandidApi.encounters.v4.create.Error.EncounterGuarantorMissingContactInfoError;
48
54
  readonly httpRequestValidationsError: (value: CandidApi.RequestValidationError[]) => CandidApi.encounters.v4.create.Error.HttpRequestValidationsError;
@@ -38,6 +38,15 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
+ encounterPatientControlNumberUniquenessError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "EncounterPatientControlNumberUniquenessError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.encounters.v4.create.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
41
50
  entityNotFoundError: (value) => {
42
51
  return {
43
52
  content: value,
@@ -87,6 +96,8 @@ exports.Error = {
87
96
  switch (value.errorName) {
88
97
  case "EncounterExternalIdUniquenessError":
89
98
  return visitor.encounterExternalIdUniquenessError(value.content);
99
+ case "EncounterPatientControlNumberUniquenessError":
100
+ return visitor.encounterPatientControlNumberUniquenessError(value.content);
90
101
  case "EntityNotFoundError":
91
102
  return visitor.entityNotFoundError(value.content);
92
103
  case "EncounterGuarantorMissingContactInfoError":
@@ -0,0 +1,6 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface EncounterPatientControlNumberUniquenessErrorType {
5
+ patientControlNumber: string;
6
+ }
@@ -28,6 +28,7 @@ export * from "./RxCui";
28
28
  export * from "./IntakeQuestionId";
29
29
  export * from "./IntakeFollowUpId";
30
30
  export * from "./EncounterExternalIdUniquenessErrorType";
31
+ export * from "./EncounterPatientControlNumberUniquenessErrorType";
31
32
  export * from "./EncounterGuarantorMissingContactInfoErrorType";
32
33
  export * from "./CashPayPayerErrorMessage";
33
34
  export * from "./ServiceAuthorizationExceptionCode";
@@ -44,6 +44,7 @@ __exportStar(require("./RxCui"), exports);
44
44
  __exportStar(require("./IntakeQuestionId"), exports);
45
45
  __exportStar(require("./IntakeFollowUpId"), exports);
46
46
  __exportStar(require("./EncounterExternalIdUniquenessErrorType"), exports);
47
+ __exportStar(require("./EncounterPatientControlNumberUniquenessErrorType"), exports);
47
48
  __exportStar(require("./EncounterGuarantorMissingContactInfoErrorType"), exports);
48
49
  __exportStar(require("./CashPayPayerErrorMessage"), exports);
49
50
  __exportStar(require("./ServiceAuthorizationExceptionCode"), exports);
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.11.0",
55
+ "X-Fern-SDK-Version": "0.12.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -54,7 +54,7 @@ class V2 {
54
54
  Authorization: await this._getAuthorizationHeader(),
55
55
  "X-Fern-Language": "JavaScript",
56
56
  "X-Fern-SDK-Name": "candidhealth",
57
- "X-Fern-SDK-Version": "0.11.0",
57
+ "X-Fern-SDK-Version": "0.12.0",
58
58
  },
59
59
  contentType: "application/json",
60
60
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -109,7 +109,7 @@ class V2 {
109
109
  Authorization: await this._getAuthorizationHeader(),
110
110
  "X-Fern-Language": "JavaScript",
111
111
  "X-Fern-SDK-Name": "candidhealth",
112
- "X-Fern-SDK-Version": "0.11.0",
112
+ "X-Fern-SDK-Version": "0.12.0",
113
113
  },
114
114
  contentType: "application/json",
115
115
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.11.0",
71
+ "X-Fern-SDK-Version": "0.12.0",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.11.0",
55
+ "X-Fern-SDK-Version": "0.12.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -102,7 +102,7 @@ class V1 {
102
102
  Authorization: await this._getAuthorizationHeader(),
103
103
  "X-Fern-Language": "JavaScript",
104
104
  "X-Fern-SDK-Name": "candidhealth",
105
- "X-Fern-SDK-Version": "0.11.0",
105
+ "X-Fern-SDK-Version": "0.12.0",
106
106
  },
107
107
  contentType: "application/json",
108
108
  timeoutMs: 60000,
@@ -135,7 +135,7 @@ class V1 {
135
135
  Authorization: await this._getAuthorizationHeader(),
136
136
  "X-Fern-Language": "JavaScript",
137
137
  "X-Fern-SDK-Name": "candidhealth",
138
- "X-Fern-SDK-Version": "0.11.0",
138
+ "X-Fern-SDK-Version": "0.12.0",
139
139
  },
140
140
  contentType: "application/json",
141
141
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.11.0",
55
+ "X-Fern-SDK-Version": "0.12.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  timeoutMs: 60000,
@@ -85,7 +85,7 @@ class V1 {
85
85
  Authorization: await this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "candidhealth",
88
- "X-Fern-SDK-Version": "0.11.0",
88
+ "X-Fern-SDK-Version": "0.12.0",
89
89
  },
90
90
  contentType: "application/json",
91
91
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -121,7 +121,7 @@ class V1 {
121
121
  Authorization: await this._getAuthorizationHeader(),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "candidhealth",
124
- "X-Fern-SDK-Version": "0.11.0",
124
+ "X-Fern-SDK-Version": "0.12.0",
125
125
  },
126
126
  contentType: "application/json",
127
127
  timeoutMs: 60000,
@@ -3,9 +3,11 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  export interface ClaimAdjudication {
6
+ claimId: CandidApi.ClaimId;
6
7
  insuranceAllowedAmountCents?: number;
7
8
  insurancePaidAmountCents?: number;
9
+ chargeAmountCents?: number;
8
10
  serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudication>;
9
11
  payerClaimNumber?: string;
10
- carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
12
+ carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
11
13
  }
@@ -5,7 +5,8 @@ import * as CandidApi from "../../../../..";
5
5
  export interface ClaimAdjudicationCreate {
6
6
  insuranceAllowedAmountCents?: number;
7
7
  insurancePaidAmountCents?: number;
8
+ chargeAmountCents?: number;
8
9
  serviceLines: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ServiceLineAdjudicationCreate>;
9
10
  payerClaimNumber?: string;
10
- carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
11
+ carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
11
12
  }
@@ -9,5 +9,5 @@ export interface InsuranceAdjudication {
9
9
  checkNumber?: string;
10
10
  checkDate: string;
11
11
  note?: string;
12
- claims: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ClaimAdjudication>;
12
+ claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudication>;
13
13
  }
@@ -9,5 +9,5 @@ export interface InsuranceAdjudicationCreate {
9
9
  checkNumber?: string;
10
10
  checkDate: string;
11
11
  note?: string;
12
- claims: Record<CandidApi.ServiceLineId, CandidApi.insuranceAdjudications.v1.ClaimAdjudicationCreate>;
12
+ claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudicationCreate>;
13
13
  }
@@ -11,6 +11,6 @@ export interface ServiceLineAdjudication {
11
11
  deductibleAmountCents?: number;
12
12
  coinsuranceAmountCents?: number;
13
13
  copayAmountCents?: number;
14
- carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
15
- rarcs: CandidApi.insuranceAdjudications.v1.RemittanceAdviceRemarkCode[];
14
+ carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
15
+ rarcs: CandidApi.x12.v1.RemittanceAdviceRemarkCode[];
16
16
  }
@@ -10,6 +10,6 @@ export interface ServiceLineAdjudicationCreate {
10
10
  deductibleAmountCents?: number;
11
11
  coinsuranceAmountCents?: number;
12
12
  copayAmountCents?: number;
13
- carcs: CandidApi.insuranceAdjudications.v1.ClaimAdjustmentReasonCode[];
14
- rarcs: CandidApi.insuranceAdjudications.v1.RemittanceAdviceRemarkCode[];
13
+ carcs: CandidApi.x12.v1.ClaimAdjustmentReasonCode[];
14
+ rarcs: CandidApi.x12.v1.RemittanceAdviceRemarkCode[];
15
15
  }
@@ -6,5 +6,3 @@ export * from "./ClaimAdjudicationCreate";
6
6
  export * from "./ClaimAdjudication";
7
7
  export * from "./ServiceLineAdjudicationCreate";
8
8
  export * from "./ServiceLineAdjudication";
9
- export * from "./ClaimAdjustmentReasonCode";
10
- export * from "./RemittanceAdviceRemarkCode";
@@ -22,5 +22,3 @@ __exportStar(require("./ClaimAdjudicationCreate"), exports);
22
22
  __exportStar(require("./ClaimAdjudication"), exports);
23
23
  __exportStar(require("./ServiceLineAdjudicationCreate"), exports);
24
24
  __exportStar(require("./ServiceLineAdjudication"), exports);
25
- __exportStar(require("./ClaimAdjustmentReasonCode"), exports);
26
- __exportStar(require("./RemittanceAdviceRemarkCode"), exports);
@@ -13,6 +13,12 @@ export declare namespace V1 {
13
13
  export declare class V1 {
14
14
  protected readonly options: V1.Options;
15
15
  constructor(options: V1.Options);
16
+ /**
17
+ * Returns all insurance refunds satisfying the search criteria AND whose organization_id matches
18
+ * the current organization_id of the authenticated user.
19
+ *
20
+ */
21
+ getMulti(request?: CandidApi.insuranceRefunds.v1.GetMultiInsuranceRefundsRequest): Promise<core.APIResponse<CandidApi.insuranceRefunds.v1.InsuranceRefundsPage, CandidApi.insuranceRefunds.v1.getMulti.Error>>;
16
22
  /**
17
23
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
18
24
  * If the refund does not exist, a `403` will be thrown.
@@ -33,13 +33,75 @@ exports.V1 = void 0;
33
33
  const environments = __importStar(require("../../../../../../environments"));
34
34
  const core = __importStar(require("../../../../../../core"));
35
35
  const CandidApi = __importStar(require("../../../../.."));
36
- const serializers = __importStar(require("../../../../../../serialization"));
36
+ const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
37
37
  const url_join_1 = __importDefault(require("url-join"));
38
+ const serializers = __importStar(require("../../../../../../serialization"));
38
39
  class V1 {
39
40
  options;
40
41
  constructor(options) {
41
42
  this.options = options;
42
43
  }
44
+ /**
45
+ * Returns all insurance refunds satisfying the search criteria AND whose organization_id matches
46
+ * the current organization_id of the authenticated user.
47
+ *
48
+ */
49
+ async getMulti(request = {}) {
50
+ const { limit, payerUuid, claimId, serviceLineId, billingProviderId, sort, sortDirection, pageToken } = request;
51
+ const _queryParams = new url_search_params_1.default();
52
+ if (limit != null) {
53
+ _queryParams.append("limit", limit.toString());
54
+ }
55
+ if (payerUuid != null) {
56
+ _queryParams.append("payer_uuid", payerUuid);
57
+ }
58
+ if (claimId != null) {
59
+ _queryParams.append("claim_id", claimId);
60
+ }
61
+ if (serviceLineId != null) {
62
+ _queryParams.append("service_line_id", serviceLineId);
63
+ }
64
+ if (billingProviderId != null) {
65
+ _queryParams.append("billing_provider_id", billingProviderId);
66
+ }
67
+ if (sort != null) {
68
+ _queryParams.append("sort", sort);
69
+ }
70
+ if (sortDirection != null) {
71
+ _queryParams.append("sort_direction", sortDirection);
72
+ }
73
+ if (pageToken != null) {
74
+ _queryParams.append("page_token", pageToken);
75
+ }
76
+ const _response = await core.fetcher({
77
+ url: (0, url_join_1.default)(this.options.environment ?? environments.CandidApiEnvironment.Production, "/api/insurance-refunds/v1"),
78
+ method: "GET",
79
+ headers: {
80
+ Authorization: await this._getAuthorizationHeader(),
81
+ "X-Fern-Language": "JavaScript",
82
+ "X-Fern-SDK-Name": "candidhealth",
83
+ "X-Fern-SDK-Version": "0.12.0",
84
+ },
85
+ contentType: "application/json",
86
+ queryParameters: _queryParams,
87
+ timeoutMs: 60000,
88
+ });
89
+ if (_response.ok) {
90
+ return {
91
+ ok: true,
92
+ body: await serializers.insuranceRefunds.v1.InsuranceRefundsPage.parseOrThrow(_response.body, {
93
+ unrecognizedObjectKeys: "passthrough",
94
+ allowUnrecognizedUnionMembers: true,
95
+ allowUnrecognizedEnumValues: true,
96
+ breadcrumbsPrefix: ["response"],
97
+ }),
98
+ };
99
+ }
100
+ return {
101
+ ok: false,
102
+ error: CandidApi.insuranceRefunds.v1.getMulti.Error._unknown(_response.error),
103
+ };
104
+ }
43
105
  /**
44
106
  * Retrieves a previously created insurance refund by its `insurance_refund_id`.
45
107
  * If the refund does not exist, a `403` will be thrown.
@@ -53,7 +115,7 @@ class V1 {
53
115
  Authorization: await this._getAuthorizationHeader(),
54
116
  "X-Fern-Language": "JavaScript",
55
117
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.11.0",
118
+ "X-Fern-SDK-Version": "0.12.0",
57
119
  },
58
120
  contentType: "application/json",
59
121
  timeoutMs: 60000,
@@ -88,7 +150,7 @@ class V1 {
88
150
  Authorization: await this._getAuthorizationHeader(),
89
151
  "X-Fern-Language": "JavaScript",
90
152
  "X-Fern-SDK-Name": "candidhealth",
91
- "X-Fern-SDK-Version": "0.11.0",
153
+ "X-Fern-SDK-Version": "0.12.0",
92
154
  },
93
155
  contentType: "application/json",
94
156
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -126,7 +188,7 @@ class V1 {
126
188
  Authorization: await this._getAuthorizationHeader(),
127
189
  "X-Fern-Language": "JavaScript",
128
190
  "X-Fern-SDK-Name": "candidhealth",
129
- "X-Fern-SDK-Version": "0.11.0",
191
+ "X-Fern-SDK-Version": "0.12.0",
130
192
  },
131
193
  contentType: "application/json",
132
194
  timeoutMs: 60000,
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insuranceRefunds.v1.getMulti.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.insuranceRefunds.v1.getMulti.Error, visitor: CandidApi.insuranceRefunds.v1.getMulti.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -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.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../.."));
31
+ exports.Error = {
32
+ _unknown: (fetcherError) => {
33
+ return {
34
+ errorName: undefined,
35
+ content: fetcherError,
36
+ _visit: function (visitor) {
37
+ return CandidApi.insuranceRefunds.v1.getMulti.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _visit: (value, visitor) => {
42
+ switch (value.errorName) {
43
+ default:
44
+ return visitor._other(value);
45
+ }
46
+ },
47
+ };
@@ -1,3 +1,5 @@
1
+ export * from "./requests";
2
+ export * as getMulti from "./getMulti";
1
3
  export * as get from "./get";
2
4
  export * as create from "./create";
3
5
  export * as delete from "./delete";
@@ -15,6 +15,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
18
21
  var __importStar = (this && this.__importStar) || function (mod) {
19
22
  if (mod && mod.__esModule) return mod;
20
23
  var result = {};
@@ -23,7 +26,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
26
  return result;
24
27
  };
25
28
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.delete = exports.create = exports.get = void 0;
29
+ exports.delete = exports.create = exports.get = exports.getMulti = void 0;
30
+ __exportStar(require("./requests"), exports);
31
+ exports.getMulti = __importStar(require("./getMulti"));
27
32
  exports.get = __importStar(require("./get"));
28
33
  exports.create = __importStar(require("./create"));
29
34
  exports.delete = __importStar(require("./delete"));
@@ -0,0 +1,23 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../..";
5
+ export interface GetMultiInsuranceRefundsRequest {
6
+ /**
7
+ * Defaults to 100. The value must be greater than 0 and less than 1000.
8
+ */
9
+ limit?: number;
10
+ payerUuid?: CandidApi.payers.v3.PayerUuid;
11
+ claimId?: CandidApi.ClaimId;
12
+ serviceLineId?: CandidApi.ServiceLineId;
13
+ billingProviderId?: CandidApi.ProviderId;
14
+ /**
15
+ * Defaults to refund_timestamp
16
+ */
17
+ sort?: CandidApi.insuranceRefunds.v1.InsuranceRefundSortField;
18
+ /**
19
+ * Sort direction. Defaults to descending order if not provided.
20
+ */
21
+ sortDirection?: CandidApi.SortDirection;
22
+ pageToken?: CandidApi.PageToken;
23
+ }
@@ -0,0 +1 @@
1
+ export { GetMultiInsuranceRefundsRequest } from "./GetMultiInsuranceRefundsRequest";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type InsuranceRefundSortField = "amount_cents" | "refund_timestamp" | "refund_note" | "refund_reason";
5
+ export declare const InsuranceRefundSortField: {
6
+ readonly AmountCents: "amount_cents";
7
+ readonly RefundTimestamp: "refund_timestamp";
8
+ readonly RefundNote: "refund_note";
9
+ readonly RefundReason: "refund_reason";
10
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InsuranceRefundSortField = void 0;
7
+ exports.InsuranceRefundSortField = {
8
+ AmountCents: "amount_cents",
9
+ RefundTimestamp: "refund_timestamp",
10
+ RefundNote: "refund_note",
11
+ RefundReason: "refund_reason",
12
+ };
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../..";
5
+ export interface InsuranceRefundsPage extends CandidApi.ResourcePage {
6
+ items: CandidApi.insuranceRefunds.v1.InsuranceRefund[];
7
+ }
@@ -1,3 +1,5 @@
1
1
  export * from "./InsuranceRefundId";
2
2
  export * from "./InsuranceRefund";
3
3
  export * from "./InsuranceRefundCreate";
4
+ export * from "./InsuranceRefundsPage";
5
+ export * from "./InsuranceRefundSortField";
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InsuranceRefundId"), exports);
18
18
  __exportStar(require("./InsuranceRefund"), exports);
19
19
  __exportStar(require("./InsuranceRefundCreate"), exports);
20
+ __exportStar(require("./InsuranceRefundsPage"), exports);
21
+ __exportStar(require("./InsuranceRefundSortField"), exports);