candidhealth 0.17.3 → 0.17.4

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 (197) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/eligibility/resources/v2/client/Client.js +2 -2
  5. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  6. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  7. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  8. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  9. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  10. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  11. package/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  12. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  13. package/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  14. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  15. package/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  16. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  17. package/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  18. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  19. package/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  20. package/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  21. package/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  22. package/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  23. package/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  24. package/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  25. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  26. package/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  27. package/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  28. package/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  29. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  30. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  31. package/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  32. package/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  33. package/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  34. package/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  35. package/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  36. package/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  37. package/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  38. package/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  39. package/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  40. package/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  41. package/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  42. package/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  43. package/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  44. package/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  45. package/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  46. package/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  47. package/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  48. package/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  49. package/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  50. package/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  51. package/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  52. package/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  53. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  54. package/api/resources/serviceFacility/client/Client.js +1 -1
  55. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  56. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  57. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  58. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  59. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  60. package/dist/api/resources/eligibility/resources/v2/client/Client.js +2 -2
  61. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  62. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  63. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  64. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  65. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  66. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  67. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +9 -5
  68. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +13 -1
  69. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +22 -0
  70. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +7 -1
  71. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +11 -0
  72. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +7 -1
  73. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +11 -0
  74. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +83 -5
  75. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.d.ts +19 -1
  76. package/dist/api/resources/insuranceRefunds/resources/v1/client/create.js +33 -0
  77. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.d.ts +19 -1
  78. package/dist/api/resources/insuranceRefunds/resources/v1/client/delete.js +33 -0
  79. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.d.ts +13 -1
  80. package/dist/api/resources/insuranceRefunds/resources/v1/client/get.js +22 -0
  81. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +13 -1
  82. package/dist/api/resources/insuranceRefunds/resources/v1/client/getMulti.js +22 -0
  83. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.d.ts +19 -1
  84. package/dist/api/resources/insuranceRefunds/resources/v1/client/update.js +33 -0
  85. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  86. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  87. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +83 -5
  88. package/dist/api/resources/patientPayments/resources/v4/client/create.d.ts +19 -1
  89. package/dist/api/resources/patientPayments/resources/v4/client/create.js +33 -0
  90. package/dist/api/resources/patientPayments/resources/v4/client/delete.d.ts +19 -1
  91. package/dist/api/resources/patientPayments/resources/v4/client/delete.js +33 -0
  92. package/dist/api/resources/patientPayments/resources/v4/client/get.d.ts +13 -1
  93. package/dist/api/resources/patientPayments/resources/v4/client/get.js +22 -0
  94. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.d.ts +13 -1
  95. package/dist/api/resources/patientPayments/resources/v4/client/getMulti.js +22 -0
  96. package/dist/api/resources/patientPayments/resources/v4/client/update.d.ts +19 -1
  97. package/dist/api/resources/patientPayments/resources/v4/client/update.js +33 -0
  98. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +83 -5
  99. package/dist/api/resources/patientRefunds/resources/v1/client/create.d.ts +19 -1
  100. package/dist/api/resources/patientRefunds/resources/v1/client/create.js +33 -0
  101. package/dist/api/resources/patientRefunds/resources/v1/client/delete.d.ts +19 -1
  102. package/dist/api/resources/patientRefunds/resources/v1/client/delete.js +33 -0
  103. package/dist/api/resources/patientRefunds/resources/v1/client/get.d.ts +13 -1
  104. package/dist/api/resources/patientRefunds/resources/v1/client/get.js +22 -0
  105. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.d.ts +13 -1
  106. package/dist/api/resources/patientRefunds/resources/v1/client/getMulti.js +22 -0
  107. package/dist/api/resources/patientRefunds/resources/v1/client/update.d.ts +19 -1
  108. package/dist/api/resources/patientRefunds/resources/v1/client/update.js +33 -0
  109. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  110. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  111. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  112. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  113. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  114. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  115. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  116. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  117. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  118. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  119. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  120. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  121. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  122. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  123. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  124. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  125. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  126. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  127. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  128. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  129. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  130. package/dist/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  131. package/dist/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  132. package/dist/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  133. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  134. package/dist/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  135. package/dist/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  136. package/dist/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  137. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  138. package/dist/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  139. package/dist/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  140. package/dist/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  141. package/dist/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  142. package/dist/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  143. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  144. package/dist/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  145. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  146. package/dist/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  147. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  148. package/dist/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  149. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  150. package/dist/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  151. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  152. package/dist/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  153. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  154. package/dist/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
  155. package/package.json +1 -1
  156. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +9 -1
  157. package/serialization/resources/insurancePayments/resources/v1/client/create.js +10 -0
  158. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +5 -1
  159. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +5 -0
  160. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +5 -1
  161. package/serialization/resources/insurancePayments/resources/v1/client/update.js +5 -0
  162. package/serialization/resources/insuranceRefunds/resources/v1/client/create.d.ts +22 -0
  163. package/serialization/resources/insuranceRefunds/resources/v1/client/create.js +56 -0
  164. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.d.ts +22 -0
  165. package/serialization/resources/insuranceRefunds/resources/v1/client/delete.js +56 -0
  166. package/serialization/resources/insuranceRefunds/resources/v1/client/get.d.ts +18 -0
  167. package/serialization/resources/insuranceRefunds/resources/v1/client/get.js +51 -0
  168. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.d.ts +18 -0
  169. package/serialization/resources/insuranceRefunds/resources/v1/client/getMulti.js +51 -0
  170. package/serialization/resources/insuranceRefunds/resources/v1/client/index.d.ts +5 -0
  171. package/serialization/resources/insuranceRefunds/resources/v1/client/index.js +18 -0
  172. package/serialization/resources/insuranceRefunds/resources/v1/client/update.d.ts +22 -0
  173. package/serialization/resources/insuranceRefunds/resources/v1/client/update.js +56 -0
  174. package/serialization/resources/patientPayments/resources/v4/client/create.d.ts +22 -0
  175. package/serialization/resources/patientPayments/resources/v4/client/create.js +56 -0
  176. package/serialization/resources/patientPayments/resources/v4/client/delete.d.ts +22 -0
  177. package/serialization/resources/patientPayments/resources/v4/client/delete.js +56 -0
  178. package/serialization/resources/patientPayments/resources/v4/client/get.d.ts +18 -0
  179. package/serialization/resources/patientPayments/resources/v4/client/get.js +51 -0
  180. package/serialization/resources/patientPayments/resources/v4/client/getMulti.d.ts +18 -0
  181. package/serialization/resources/patientPayments/resources/v4/client/getMulti.js +51 -0
  182. package/serialization/resources/patientPayments/resources/v4/client/index.d.ts +5 -0
  183. package/serialization/resources/patientPayments/resources/v4/client/index.js +18 -0
  184. package/serialization/resources/patientPayments/resources/v4/client/update.d.ts +22 -0
  185. package/serialization/resources/patientPayments/resources/v4/client/update.js +56 -0
  186. package/serialization/resources/patientRefunds/resources/v1/client/create.d.ts +22 -0
  187. package/serialization/resources/patientRefunds/resources/v1/client/create.js +56 -0
  188. package/serialization/resources/patientRefunds/resources/v1/client/delete.d.ts +22 -0
  189. package/serialization/resources/patientRefunds/resources/v1/client/delete.js +56 -0
  190. package/serialization/resources/patientRefunds/resources/v1/client/get.d.ts +18 -0
  191. package/serialization/resources/patientRefunds/resources/v1/client/get.js +51 -0
  192. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.d.ts +18 -0
  193. package/serialization/resources/patientRefunds/resources/v1/client/getMulti.js +51 -0
  194. package/serialization/resources/patientRefunds/resources/v1/client/index.d.ts +5 -0
  195. package/serialization/resources/patientRefunds/resources/v1/client/index.js +18 -0
  196. package/serialization/resources/patientRefunds/resources/v1/client/update.d.ts +22 -0
  197. package/serialization/resources/patientRefunds/resources/v1/client/update.js +56 -0
@@ -61,7 +61,7 @@ class V2 {
61
61
  Authorization: await this._getAuthorizationHeader(),
62
62
  "X-Fern-Language": "JavaScript",
63
63
  "X-Fern-SDK-Name": "candidhealth",
64
- "X-Fern-SDK-Version": "0.17.3",
64
+ "X-Fern-SDK-Version": "0.17.4",
65
65
  },
66
66
  contentType: "application/json",
67
67
  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.17.3",
51
+ "X-Fern-SDK-Version": "0.17.4",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -49,7 +49,7 @@ class V2 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.17.3",
52
+ "X-Fern-SDK-Version": "0.17.4",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -136,7 +136,7 @@ class V2 {
136
136
  Authorization: await this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.17.3",
139
+ "X-Fern-SDK-Version": "0.17.4",
140
140
  },
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
@@ -169,7 +169,7 @@ class V2 {
169
169
  Authorization: await this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.17.3",
172
+ "X-Fern-SDK-Version": "0.17.4",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
@@ -201,7 +201,7 @@ class V2 {
201
201
  Authorization: await this._getAuthorizationHeader(),
202
202
  "X-Fern-Language": "JavaScript",
203
203
  "X-Fern-SDK-Name": "candidhealth",
204
- "X-Fern-SDK-Version": "0.17.3",
204
+ "X-Fern-SDK-Version": "0.17.4",
205
205
  },
206
206
  contentType: "application/json",
207
207
  timeoutMs: 60000,
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: await this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.17.3",
242
+ "X-Fern-SDK-Version": "0.17.4",
243
243
  },
244
244
  contentType: "application/json",
245
245
  body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
@@ -64,7 +64,7 @@ class V2 {
64
64
  Authorization: await this._getAuthorizationHeader(),
65
65
  "X-Fern-Language": "JavaScript",
66
66
  "X-Fern-SDK-Name": "candidhealth",
67
- "X-Fern-SDK-Version": "0.17.3",
67
+ "X-Fern-SDK-Version": "0.17.4",
68
68
  },
69
69
  contentType: "application/json",
70
70
  body: request,
@@ -115,7 +115,7 @@ class V2 {
115
115
  Authorization: await this._getAuthorizationHeader(),
116
116
  "X-Fern-Language": "JavaScript",
117
117
  "X-Fern-SDK-Name": "candidhealth",
118
- "X-Fern-SDK-Version": "0.17.3",
118
+ "X-Fern-SDK-Version": "0.17.4",
119
119
  },
120
120
  contentType: "application/json",
121
121
  timeoutMs: 60000,
@@ -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.17.3",
106
+ "X-Fern-SDK-Version": "0.17.4",
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.17.3",
136
+ "X-Fern-SDK-Version": "0.17.4",
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.17.3",
165
+ "X-Fern-SDK-Version": "0.17.4",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class V4 {
213
213
  Authorization: await this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "candidhealth",
216
- "X-Fern-SDK-Version": "0.17.3",
216
+ "X-Fern-SDK-Version": "0.17.4",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.4",
55
55
  },
56
56
  contentType: "application/json",
57
57
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -53,7 +53,7 @@ class V2 {
53
53
  Authorization: await this._getAuthorizationHeader(),
54
54
  "X-Fern-Language": "JavaScript",
55
55
  "X-Fern-SDK-Name": "candidhealth",
56
- "X-Fern-SDK-Version": "0.17.3",
56
+ "X-Fern-SDK-Version": "0.17.4",
57
57
  },
58
58
  contentType: "application/json",
59
59
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -107,7 +107,7 @@ class V2 {
107
107
  Authorization: await this._getAuthorizationHeader(),
108
108
  "X-Fern-Language": "JavaScript",
109
109
  "X-Fern-SDK-Name": "candidhealth",
110
- "X-Fern-SDK-Version": "0.17.3",
110
+ "X-Fern-SDK-Version": "0.17.4",
111
111
  },
112
112
  contentType: "application/json",
113
113
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -67,7 +67,7 @@ class V3 {
67
67
  Authorization: await this._getAuthorizationHeader(),
68
68
  "X-Fern-Language": "JavaScript",
69
69
  "X-Fern-SDK-Name": "candidhealth",
70
- "X-Fern-SDK-Version": "0.17.3",
70
+ "X-Fern-SDK-Version": "0.17.4",
71
71
  },
72
72
  contentType: "application/json",
73
73
  queryParameters: _queryParams,
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.4",
55
55
  },
56
56
  contentType: "application/json",
57
57
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -100,7 +100,7 @@ class V1 {
100
100
  Authorization: await this._getAuthorizationHeader(),
101
101
  "X-Fern-Language": "JavaScript",
102
102
  "X-Fern-SDK-Name": "candidhealth",
103
- "X-Fern-SDK-Version": "0.17.3",
103
+ "X-Fern-SDK-Version": "0.17.4",
104
104
  },
105
105
  contentType: "application/json",
106
106
  timeoutMs: 60000,
@@ -132,7 +132,7 @@ class V1 {
132
132
  Authorization: await this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.17.3",
135
+ "X-Fern-SDK-Version": "0.17.4",
136
136
  },
137
137
  contentType: "application/json",
138
138
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -51,7 +51,7 @@ class V1 {
51
51
  Authorization: await this._getAuthorizationHeader(),
52
52
  "X-Fern-Language": "JavaScript",
53
53
  "X-Fern-SDK-Name": "candidhealth",
54
- "X-Fern-SDK-Version": "0.17.3",
54
+ "X-Fern-SDK-Version": "0.17.4",
55
55
  },
56
56
  contentType: "application/json",
57
57
  timeoutMs: 60000,
@@ -83,7 +83,7 @@ class V1 {
83
83
  Authorization: await this._getAuthorizationHeader(),
84
84
  "X-Fern-Language": "JavaScript",
85
85
  "X-Fern-SDK-Name": "candidhealth",
86
- "X-Fern-SDK-Version": "0.17.3",
86
+ "X-Fern-SDK-Version": "0.17.4",
87
87
  },
88
88
  contentType: "application/json",
89
89
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -132,7 +132,7 @@ class V1 {
132
132
  Authorization: await this._getAuthorizationHeader(),
133
133
  "X-Fern-Language": "JavaScript",
134
134
  "X-Fern-SDK-Name": "candidhealth",
135
- "X-Fern-SDK-Version": "0.17.3",
135
+ "X-Fern-SDK-Version": "0.17.4",
136
136
  },
137
137
  contentType: "application/json",
138
138
  timeoutMs: 60000,
@@ -78,7 +78,7 @@ class V1 {
78
78
  Authorization: await this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "candidhealth",
81
- "X-Fern-SDK-Version": "0.17.3",
81
+ "X-Fern-SDK-Version": "0.17.4",
82
82
  },
83
83
  contentType: "application/json",
84
84
  queryParameters: _queryParams,
@@ -127,7 +127,7 @@ class V1 {
127
127
  Authorization: await this._getAuthorizationHeader(),
128
128
  "X-Fern-Language": "JavaScript",
129
129
  "X-Fern-SDK-Name": "candidhealth",
130
- "X-Fern-SDK-Version": "0.17.3",
130
+ "X-Fern-SDK-Version": "0.17.4",
131
131
  },
132
132
  contentType: "application/json",
133
133
  timeoutMs: 60000,
@@ -176,7 +176,7 @@ class V1 {
176
176
  Authorization: await this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.17.3",
179
+ "X-Fern-SDK-Version": "0.17.4",
180
180
  },
181
181
  contentType: "application/json",
182
182
  body: await serializers.insurancePayments.v1.InsurancePaymentCreate.jsonOrThrow(request, {
@@ -197,7 +197,9 @@ class V1 {
197
197
  }
198
198
  if (_response.error.reason === "status-code") {
199
199
  switch (_response.error.body?.errorName) {
200
+ case "EntityNotFoundError":
200
201
  case "UnauthorizedError":
202
+ case "UnprocessableEntityError":
201
203
  return {
202
204
  ok: false,
203
205
  error: await serializers.insurancePayments.v1.create.Error.parseOrThrow(_response.error.body, {
@@ -226,7 +228,7 @@ class V1 {
226
228
  Authorization: await this._getAuthorizationHeader(),
227
229
  "X-Fern-Language": "JavaScript",
228
230
  "X-Fern-SDK-Name": "candidhealth",
229
- "X-Fern-SDK-Version": "0.17.3",
231
+ "X-Fern-SDK-Version": "0.17.4",
230
232
  },
231
233
  contentType: "application/json",
232
234
  body: await serializers.insurancePayments.v1.InsurancePaymentUpdate.jsonOrThrow(request, {
@@ -249,6 +251,7 @@ class V1 {
249
251
  switch (_response.error.body?.errorName) {
250
252
  case "EntityNotFoundError":
251
253
  case "UnauthorizedError":
254
+ case "UnprocessableEntityError":
252
255
  return {
253
256
  ok: false,
254
257
  error: await serializers.insurancePayments.v1.update.Error.parseOrThrow(_response.error.body, {
@@ -278,7 +281,7 @@ class V1 {
278
281
  Authorization: await this._getAuthorizationHeader(),
279
282
  "X-Fern-Language": "JavaScript",
280
283
  "X-Fern-SDK-Name": "candidhealth",
281
- "X-Fern-SDK-Version": "0.17.3",
284
+ "X-Fern-SDK-Version": "0.17.4",
282
285
  },
283
286
  contentType: "application/json",
284
287
  timeoutMs: 60000,
@@ -293,6 +296,7 @@ class V1 {
293
296
  switch (_response.error.body?.errorName) {
294
297
  case "EntityNotFoundError":
295
298
  case "UnauthorizedError":
299
+ case "UnprocessableEntityError":
296
300
  return {
297
301
  ok: false,
298
302
  error: await serializers.insurancePayments.v1.delete.Error.parseOrThrow(_response.error.body, {
@@ -3,12 +3,20 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.create.Error.UnauthorizedError | CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
8
12
  interface UnauthorizedError extends _Utils {
9
13
  errorName: "UnauthorizedError";
10
14
  content: CandidApi.UnauthorizedErrorMessage;
11
15
  }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
12
20
  interface _Unknown extends _Utils {
13
21
  errorName: void;
14
22
  content: core.Fetcher.Error;
@@ -17,12 +25,16 @@ export declare namespace Error {
17
25
  _visit: <_Result>(visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
18
26
  }
19
27
  interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
20
29
  unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
21
31
  _other: (value: core.Fetcher.Error) => _Result;
22
32
  }
23
33
  }
24
34
  export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.create.Error.EntityNotFoundError;
25
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.create.Error.UnprocessableEntityError;
26
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.create.Error._Unknown;
27
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.create.Error, visitor: CandidApi.insurancePayments.v1.create.Error._Visitor<_Result>) => _Result;
28
40
  };
@@ -29,6 +29,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Error = void 0;
30
30
  const CandidApi = __importStar(require("../../../../.."));
31
31
  exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
32
41
  unauthorizedError: (value) => {
33
42
  return {
34
43
  content: value,
@@ -38,6 +47,15 @@ exports.Error = {
38
47
  },
39
48
  };
40
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.create.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
41
59
  _unknown: (fetcherError) => {
42
60
  return {
43
61
  errorName: undefined,
@@ -49,8 +67,12 @@ exports.Error = {
49
67
  },
50
68
  _visit: (value, visitor) => {
51
69
  switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
52
72
  case "UnauthorizedError":
53
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
54
76
  default:
55
77
  return visitor._other(value);
56
78
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError | CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.delete.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EntityNotFoundError extends _Utils {
9
9
  errorName: "EntityNotFoundError";
@@ -13,6 +13,10 @@ export declare namespace Error {
13
13
  errorName: "UnauthorizedError";
14
14
  content: CandidApi.UnauthorizedErrorMessage;
15
15
  }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
16
20
  interface _Unknown extends _Utils {
17
21
  errorName: void;
18
22
  content: core.Fetcher.Error;
@@ -23,12 +27,14 @@ export declare namespace Error {
23
27
  interface _Visitor<_Result> {
24
28
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
29
  unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
26
31
  _other: (value: core.Fetcher.Error) => _Result;
27
32
  }
28
33
  }
29
34
  export declare const Error: {
30
35
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.EntityNotFoundError;
31
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.delete.Error.UnprocessableEntityError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.delete.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.delete.Error, visitor: CandidApi.insurancePayments.v1.delete.Error._Visitor<_Result>) => _Result;
34
40
  };
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.delete.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.entityNotFoundError(value.content);
63
72
  case "UnauthorizedError":
64
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../..";
5
5
  import * as core from "../../../../../../core";
6
- export declare type Error = CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.update.Error.UnauthorizedError | CandidApi.insurancePayments.v1.update.Error._Unknown;
6
+ export declare type Error = CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError | CandidApi.insurancePayments.v1.update.Error.UnauthorizedError | CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError | CandidApi.insurancePayments.v1.update.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface EntityNotFoundError extends _Utils {
9
9
  errorName: "EntityNotFoundError";
@@ -13,6 +13,10 @@ export declare namespace Error {
13
13
  errorName: "UnauthorizedError";
14
14
  content: CandidApi.UnauthorizedErrorMessage;
15
15
  }
16
+ interface UnprocessableEntityError extends _Utils {
17
+ errorName: "UnprocessableEntityError";
18
+ content: CandidApi.UnprocessableEntityErrorMessage;
19
+ }
16
20
  interface _Unknown extends _Utils {
17
21
  errorName: void;
18
22
  content: core.Fetcher.Error;
@@ -23,12 +27,14 @@ export declare namespace Error {
23
27
  interface _Visitor<_Result> {
24
28
  entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
25
29
  unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
30
+ unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => _Result;
26
31
  _other: (value: core.Fetcher.Error) => _Result;
27
32
  }
28
33
  }
29
34
  export declare const Error: {
30
35
  readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.insurancePayments.v1.update.Error.EntityNotFoundError;
31
36
  readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnauthorizedError;
37
+ readonly unprocessableEntityError: (value: CandidApi.UnprocessableEntityErrorMessage) => CandidApi.insurancePayments.v1.update.Error.UnprocessableEntityError;
32
38
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.insurancePayments.v1.update.Error._Unknown;
33
39
  readonly _visit: <_Result>(value: CandidApi.insurancePayments.v1.update.Error, visitor: CandidApi.insurancePayments.v1.update.Error._Visitor<_Result>) => _Result;
34
40
  };
@@ -47,6 +47,15 @@ exports.Error = {
47
47
  },
48
48
  };
49
49
  },
50
+ unprocessableEntityError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnprocessableEntityError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.insurancePayments.v1.update.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
50
59
  _unknown: (fetcherError) => {
51
60
  return {
52
61
  errorName: undefined,
@@ -62,6 +71,8 @@ exports.Error = {
62
71
  return visitor.entityNotFoundError(value.content);
63
72
  case "UnauthorizedError":
64
73
  return visitor.unauthorizedError(value.content);
74
+ case "UnprocessableEntityError":
75
+ return visitor.unprocessableEntityError(value.content);
65
76
  default:
66
77
  return visitor._other(value);
67
78
  }
@@ -79,7 +79,7 @@ class V1 {
79
79
  Authorization: await this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "candidhealth",
82
- "X-Fern-SDK-Version": "0.17.3",
82
+ "X-Fern-SDK-Version": "0.17.4",
83
83
  },
84
84
  contentType: "application/json",
85
85
  queryParameters: _queryParams,
@@ -96,6 +96,21 @@ class V1 {
96
96
  }),
97
97
  };
98
98
  }
99
+ if (_response.error.reason === "status-code") {
100
+ switch (_response.error.body?.errorName) {
101
+ case "UnauthorizedError":
102
+ case "UnprocessableEntityError":
103
+ return {
104
+ ok: false,
105
+ error: await serializers.insuranceRefunds.v1.getMulti.Error.parseOrThrow(_response.error.body, {
106
+ unrecognizedObjectKeys: "passthrough",
107
+ allowUnrecognizedUnionMembers: true,
108
+ allowUnrecognizedEnumValues: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }),
111
+ };
112
+ }
113
+ }
99
114
  return {
100
115
  ok: false,
101
116
  error: CandidApi.insuranceRefunds.v1.getMulti.Error._unknown(_response.error),
@@ -113,7 +128,7 @@ class V1 {
113
128
  Authorization: await this._getAuthorizationHeader(),
114
129
  "X-Fern-Language": "JavaScript",
115
130
  "X-Fern-SDK-Name": "candidhealth",
116
- "X-Fern-SDK-Version": "0.17.3",
131
+ "X-Fern-SDK-Version": "0.17.4",
117
132
  },
118
133
  contentType: "application/json",
119
134
  timeoutMs: 60000,
@@ -129,6 +144,21 @@ class V1 {
129
144
  }),
130
145
  };
131
146
  }
147
+ if (_response.error.reason === "status-code") {
148
+ switch (_response.error.body?.errorName) {
149
+ case "EntityNotFoundError":
150
+ case "UnauthorizedError":
151
+ return {
152
+ ok: false,
153
+ error: await serializers.insuranceRefunds.v1.get.Error.parseOrThrow(_response.error.body, {
154
+ unrecognizedObjectKeys: "passthrough",
155
+ allowUnrecognizedUnionMembers: true,
156
+ allowUnrecognizedEnumValues: true,
157
+ breadcrumbsPrefix: ["response"],
158
+ }),
159
+ };
160
+ }
161
+ }
132
162
  return {
133
163
  ok: false,
134
164
  error: CandidApi.insuranceRefunds.v1.get.Error._unknown(_response.error),
@@ -147,7 +177,7 @@ class V1 {
147
177
  Authorization: await this._getAuthorizationHeader(),
148
178
  "X-Fern-Language": "JavaScript",
149
179
  "X-Fern-SDK-Name": "candidhealth",
150
- "X-Fern-SDK-Version": "0.17.3",
180
+ "X-Fern-SDK-Version": "0.17.4",
151
181
  },
152
182
  contentType: "application/json",
153
183
  body: await serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -166,6 +196,22 @@ class V1 {
166
196
  }),
167
197
  };
168
198
  }
199
+ if (_response.error.reason === "status-code") {
200
+ switch (_response.error.body?.errorName) {
201
+ case "EntityNotFoundError":
202
+ case "UnauthorizedError":
203
+ case "UnprocessableEntityError":
204
+ return {
205
+ ok: false,
206
+ error: await serializers.insuranceRefunds.v1.create.Error.parseOrThrow(_response.error.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ breadcrumbsPrefix: ["response"],
211
+ }),
212
+ };
213
+ }
214
+ }
169
215
  return {
170
216
  ok: false,
171
217
  error: CandidApi.insuranceRefunds.v1.create.Error._unknown(_response.error),
@@ -183,7 +229,7 @@ class V1 {
183
229
  Authorization: await this._getAuthorizationHeader(),
184
230
  "X-Fern-Language": "JavaScript",
185
231
  "X-Fern-SDK-Name": "candidhealth",
186
- "X-Fern-SDK-Version": "0.17.3",
232
+ "X-Fern-SDK-Version": "0.17.4",
187
233
  },
188
234
  contentType: "application/json",
189
235
  body: await serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
@@ -202,6 +248,22 @@ class V1 {
202
248
  }),
203
249
  };
204
250
  }
251
+ if (_response.error.reason === "status-code") {
252
+ switch (_response.error.body?.errorName) {
253
+ case "EntityNotFoundError":
254
+ case "UnauthorizedError":
255
+ case "UnprocessableEntityError":
256
+ return {
257
+ ok: false,
258
+ error: await serializers.insuranceRefunds.v1.update.Error.parseOrThrow(_response.error.body, {
259
+ unrecognizedObjectKeys: "passthrough",
260
+ allowUnrecognizedUnionMembers: true,
261
+ allowUnrecognizedEnumValues: true,
262
+ breadcrumbsPrefix: ["response"],
263
+ }),
264
+ };
265
+ }
266
+ }
205
267
  return {
206
268
  ok: false,
207
269
  error: CandidApi.insuranceRefunds.v1.update.Error._unknown(_response.error),
@@ -220,7 +282,7 @@ class V1 {
220
282
  Authorization: await this._getAuthorizationHeader(),
221
283
  "X-Fern-Language": "JavaScript",
222
284
  "X-Fern-SDK-Name": "candidhealth",
223
- "X-Fern-SDK-Version": "0.17.3",
285
+ "X-Fern-SDK-Version": "0.17.4",
224
286
  },
225
287
  contentType: "application/json",
226
288
  timeoutMs: 60000,
@@ -231,6 +293,22 @@ class V1 {
231
293
  body: undefined,
232
294
  };
233
295
  }
296
+ if (_response.error.reason === "status-code") {
297
+ switch (_response.error.body?.errorName) {
298
+ case "EntityNotFoundError":
299
+ case "UnauthorizedError":
300
+ case "UnprocessableEntityError":
301
+ return {
302
+ ok: false,
303
+ error: await serializers.insuranceRefunds.v1.delete.Error.parseOrThrow(_response.error.body, {
304
+ unrecognizedObjectKeys: "passthrough",
305
+ allowUnrecognizedUnionMembers: true,
306
+ allowUnrecognizedEnumValues: true,
307
+ breadcrumbsPrefix: ["response"],
308
+ }),
309
+ };
310
+ }
311
+ }
234
312
  return {
235
313
  ok: false,
236
314
  error: CandidApi.insuranceRefunds.v1.delete.Error._unknown(_response.error),