samplehc 0.10.0__py3-none-any.whl → 0.11.0__py3-none-any.whl

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 (96) hide show
  1. samplehc/_base_client.py +3 -3
  2. samplehc/_compat.py +48 -48
  3. samplehc/_models.py +40 -40
  4. samplehc/_types.py +35 -1
  5. samplehc/_utils/__init__.py +9 -2
  6. samplehc/_utils/_compat.py +45 -0
  7. samplehc/_utils/_datetime_parse.py +136 -0
  8. samplehc/_utils/_transform.py +11 -1
  9. samplehc/_utils/_typing.py +6 -1
  10. samplehc/_utils/_utils.py +0 -1
  11. samplehc/_version.py +1 -1
  12. samplehc/resources/v2/browser_agents/__init__.py +33 -0
  13. samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +40 -8
  14. samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
  15. samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
  16. samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
  17. samplehc/resources/v2/clearinghouse/clearinghouse.py +4 -4
  18. samplehc/resources/v2/{events/events.py → events.py} +8 -40
  19. samplehc/resources/v2/integrations/__init__.py +28 -0
  20. samplehc/resources/v2/integrations/careviso.py +10 -10
  21. samplehc/resources/v2/integrations/integrations.py +64 -0
  22. samplehc/resources/v2/integrations/salesforce.py +193 -0
  23. samplehc/resources/v2/{events/integrations → integrations}/xcures.py +7 -7
  24. samplehc/resources/v2/ledger/__init__.py +27 -55
  25. samplehc/resources/v2/ledger/{orders.py → account.py} +120 -82
  26. samplehc/resources/v2/ledger/entry.py +382 -0
  27. samplehc/resources/v2/ledger/ledger.py +38 -1560
  28. samplehc/resources/v2/v2.py +16 -16
  29. samplehc/types/v2/__init__.py +0 -28
  30. samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
  31. samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
  32. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +30 -0
  33. samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
  34. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
  35. samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
  36. samplehc/types/v2/communication_send_letter_params.py +4 -3
  37. samplehc/types/v2/document_classify_params.py +3 -2
  38. samplehc/types/v2/document_generate_csv_params.py +3 -2
  39. samplehc/types/v2/documents/legacy_extract_params.py +8 -7
  40. samplehc/types/v2/integrations/__init__.py +2 -0
  41. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
  42. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
  43. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
  44. samplehc/types/v2/ledger/__init__.py +6 -17
  45. samplehc/types/v2/ledger/account_writeoff_params.py +24 -0
  46. samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
  47. samplehc/types/v2/ledger/entry_post_params.py +61 -0
  48. samplehc/types/v2/ledger/entry_post_response.py +10 -0
  49. samplehc/types/v2/ledger/entry_reverse_params.py +19 -0
  50. samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
  51. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/METADATA +1 -1
  52. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/RECORD +56 -78
  53. samplehc/resources/v2/events/__init__.py +0 -33
  54. samplehc/resources/v2/events/integrations/__init__.py +0 -33
  55. samplehc/resources/v2/events/integrations/integrations.py +0 -102
  56. samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
  57. samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
  58. samplehc/resources/v2/ledger/institutions/orders.py +0 -169
  59. samplehc/resources/v2/ledger/insurance.py +0 -141
  60. samplehc/resources/v2/ledger/patients.py +0 -141
  61. samplehc/types/v2/events/integrations/__init__.py +0 -5
  62. samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
  63. samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
  64. samplehc/types/v2/ledger/institutions/__init__.py +0 -5
  65. samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
  66. samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
  67. samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
  68. samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
  69. samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
  70. samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
  71. samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
  72. samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
  73. samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
  74. samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
  75. samplehc/types/v2/ledger_claim_payment_params.py +0 -34
  76. samplehc/types/v2/ledger_claim_payment_response.py +0 -12
  77. samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
  78. samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
  79. samplehc/types/v2/ledger_institution_payment_params.py +0 -31
  80. samplehc/types/v2/ledger_institution_payment_response.py +0 -12
  81. samplehc/types/v2/ledger_new_order_params.py +0 -22
  82. samplehc/types/v2/ledger_new_order_response.py +0 -12
  83. samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
  84. samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
  85. samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
  86. samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
  87. samplehc/types/v2/ledger_patient_payment_params.py +0 -28
  88. samplehc/types/v2/ledger_patient_payment_response.py +0 -12
  89. samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
  90. samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
  91. samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
  92. samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
  93. /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
  94. /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
  95. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/WHEEL +0 -0
  96. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,258 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from .orders import (
8
- OrdersResource,
9
- AsyncOrdersResource,
10
- OrdersResourceWithRawResponse,
11
- AsyncOrdersResourceWithRawResponse,
12
- OrdersResourceWithStreamingResponse,
13
- AsyncOrdersResourceWithStreamingResponse,
14
- )
15
- from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
16
- from ....._compat import cached_property
17
- from ....._resource import SyncAPIResource, AsyncAPIResource
18
- from ....._response import (
19
- to_raw_response_wrapper,
20
- to_streamed_response_wrapper,
21
- async_to_raw_response_wrapper,
22
- async_to_streamed_response_wrapper,
23
- )
24
- from ....._base_client import make_request_options
25
- from .....types.v2.ledger.institution_list_outstanding_accounts_response import (
26
- InstitutionListOutstandingAccountsResponse,
27
- )
28
- from .....types.v2.ledger.institution_retrieve_outstanding_orders_response import (
29
- InstitutionRetrieveOutstandingOrdersResponse,
30
- )
31
-
32
- __all__ = ["InstitutionsResource", "AsyncInstitutionsResource"]
33
-
34
-
35
- class InstitutionsResource(SyncAPIResource):
36
- @cached_property
37
- def orders(self) -> OrdersResource:
38
- return OrdersResource(self._client)
39
-
40
- @cached_property
41
- def with_raw_response(self) -> InstitutionsResourceWithRawResponse:
42
- """
43
- This property can be used as a prefix for any HTTP method call to return
44
- the raw response object instead of the parsed content.
45
-
46
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
47
- """
48
- return InstitutionsResourceWithRawResponse(self)
49
-
50
- @cached_property
51
- def with_streaming_response(self) -> InstitutionsResourceWithStreamingResponse:
52
- """
53
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
54
-
55
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
56
- """
57
- return InstitutionsResourceWithStreamingResponse(self)
58
-
59
- def list_outstanding_accounts(
60
- self,
61
- *,
62
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
63
- # The extra values given here take precedence over values defined on the client or passed to this method.
64
- extra_headers: Headers | None = None,
65
- extra_query: Query | None = None,
66
- extra_body: Body | None = None,
67
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
68
- ) -> InstitutionListOutstandingAccountsResponse:
69
- """
70
- Retrieves all outstanding institutional accounts across all institutions
71
- (accounts with non-zero balances).
72
- """
73
- return self._get(
74
- "/api/v2/ledger/institutions/outstanding-accounts",
75
- options=make_request_options(
76
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
- ),
78
- cast_to=InstitutionListOutstandingAccountsResponse,
79
- )
80
-
81
- def retrieve_outstanding_orders(
82
- self,
83
- institution_id: str,
84
- *,
85
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
86
- # The extra values given here take precedence over values defined on the client or passed to this method.
87
- extra_headers: Headers | None = None,
88
- extra_query: Query | None = None,
89
- extra_body: Body | None = None,
90
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
91
- ) -> InstitutionRetrieveOutstandingOrdersResponse:
92
- """
93
- Retrieves all outstanding orders for a specific institution (accounts with
94
- non-zero balances).
95
-
96
- Args:
97
- extra_headers: Send extra headers
98
-
99
- extra_query: Add additional query parameters to the request
100
-
101
- extra_body: Add additional JSON properties to the request
102
-
103
- timeout: Override the client-level default timeout for this request, in seconds
104
- """
105
- if not institution_id:
106
- raise ValueError(f"Expected a non-empty value for `institution_id` but received {institution_id!r}")
107
- return self._get(
108
- f"/api/v2/ledger/institutions/{institution_id}/outstanding-orders",
109
- options=make_request_options(
110
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
111
- ),
112
- cast_to=InstitutionRetrieveOutstandingOrdersResponse,
113
- )
114
-
115
-
116
- class AsyncInstitutionsResource(AsyncAPIResource):
117
- @cached_property
118
- def orders(self) -> AsyncOrdersResource:
119
- return AsyncOrdersResource(self._client)
120
-
121
- @cached_property
122
- def with_raw_response(self) -> AsyncInstitutionsResourceWithRawResponse:
123
- """
124
- This property can be used as a prefix for any HTTP method call to return
125
- the raw response object instead of the parsed content.
126
-
127
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
128
- """
129
- return AsyncInstitutionsResourceWithRawResponse(self)
130
-
131
- @cached_property
132
- def with_streaming_response(self) -> AsyncInstitutionsResourceWithStreamingResponse:
133
- """
134
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
135
-
136
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
137
- """
138
- return AsyncInstitutionsResourceWithStreamingResponse(self)
139
-
140
- async def list_outstanding_accounts(
141
- self,
142
- *,
143
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
144
- # The extra values given here take precedence over values defined on the client or passed to this method.
145
- extra_headers: Headers | None = None,
146
- extra_query: Query | None = None,
147
- extra_body: Body | None = None,
148
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149
- ) -> InstitutionListOutstandingAccountsResponse:
150
- """
151
- Retrieves all outstanding institutional accounts across all institutions
152
- (accounts with non-zero balances).
153
- """
154
- return await self._get(
155
- "/api/v2/ledger/institutions/outstanding-accounts",
156
- options=make_request_options(
157
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
158
- ),
159
- cast_to=InstitutionListOutstandingAccountsResponse,
160
- )
161
-
162
- async def retrieve_outstanding_orders(
163
- self,
164
- institution_id: str,
165
- *,
166
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167
- # The extra values given here take precedence over values defined on the client or passed to this method.
168
- extra_headers: Headers | None = None,
169
- extra_query: Query | None = None,
170
- extra_body: Body | None = None,
171
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
172
- ) -> InstitutionRetrieveOutstandingOrdersResponse:
173
- """
174
- Retrieves all outstanding orders for a specific institution (accounts with
175
- non-zero balances).
176
-
177
- Args:
178
- extra_headers: Send extra headers
179
-
180
- extra_query: Add additional query parameters to the request
181
-
182
- extra_body: Add additional JSON properties to the request
183
-
184
- timeout: Override the client-level default timeout for this request, in seconds
185
- """
186
- if not institution_id:
187
- raise ValueError(f"Expected a non-empty value for `institution_id` but received {institution_id!r}")
188
- return await self._get(
189
- f"/api/v2/ledger/institutions/{institution_id}/outstanding-orders",
190
- options=make_request_options(
191
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
192
- ),
193
- cast_to=InstitutionRetrieveOutstandingOrdersResponse,
194
- )
195
-
196
-
197
- class InstitutionsResourceWithRawResponse:
198
- def __init__(self, institutions: InstitutionsResource) -> None:
199
- self._institutions = institutions
200
-
201
- self.list_outstanding_accounts = to_raw_response_wrapper(
202
- institutions.list_outstanding_accounts,
203
- )
204
- self.retrieve_outstanding_orders = to_raw_response_wrapper(
205
- institutions.retrieve_outstanding_orders,
206
- )
207
-
208
- @cached_property
209
- def orders(self) -> OrdersResourceWithRawResponse:
210
- return OrdersResourceWithRawResponse(self._institutions.orders)
211
-
212
-
213
- class AsyncInstitutionsResourceWithRawResponse:
214
- def __init__(self, institutions: AsyncInstitutionsResource) -> None:
215
- self._institutions = institutions
216
-
217
- self.list_outstanding_accounts = async_to_raw_response_wrapper(
218
- institutions.list_outstanding_accounts,
219
- )
220
- self.retrieve_outstanding_orders = async_to_raw_response_wrapper(
221
- institutions.retrieve_outstanding_orders,
222
- )
223
-
224
- @cached_property
225
- def orders(self) -> AsyncOrdersResourceWithRawResponse:
226
- return AsyncOrdersResourceWithRawResponse(self._institutions.orders)
227
-
228
-
229
- class InstitutionsResourceWithStreamingResponse:
230
- def __init__(self, institutions: InstitutionsResource) -> None:
231
- self._institutions = institutions
232
-
233
- self.list_outstanding_accounts = to_streamed_response_wrapper(
234
- institutions.list_outstanding_accounts,
235
- )
236
- self.retrieve_outstanding_orders = to_streamed_response_wrapper(
237
- institutions.retrieve_outstanding_orders,
238
- )
239
-
240
- @cached_property
241
- def orders(self) -> OrdersResourceWithStreamingResponse:
242
- return OrdersResourceWithStreamingResponse(self._institutions.orders)
243
-
244
-
245
- class AsyncInstitutionsResourceWithStreamingResponse:
246
- def __init__(self, institutions: AsyncInstitutionsResource) -> None:
247
- self._institutions = institutions
248
-
249
- self.list_outstanding_accounts = async_to_streamed_response_wrapper(
250
- institutions.list_outstanding_accounts,
251
- )
252
- self.retrieve_outstanding_orders = async_to_streamed_response_wrapper(
253
- institutions.retrieve_outstanding_orders,
254
- )
255
-
256
- @cached_property
257
- def orders(self) -> AsyncOrdersResourceWithStreamingResponse:
258
- return AsyncOrdersResourceWithStreamingResponse(self._institutions.orders)
@@ -1,169 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from ....._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
- from ....._compat import cached_property
9
- from ....._resource import SyncAPIResource, AsyncAPIResource
10
- from ....._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ....._base_client import make_request_options
17
- from .....types.v2.ledger.institutions.order_retrieve_balance_response import OrderRetrieveBalanceResponse
18
-
19
- __all__ = ["OrdersResource", "AsyncOrdersResource"]
20
-
21
-
22
- class OrdersResource(SyncAPIResource):
23
- @cached_property
24
- def with_raw_response(self) -> OrdersResourceWithRawResponse:
25
- """
26
- This property can be used as a prefix for any HTTP method call to return
27
- the raw response object instead of the parsed content.
28
-
29
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
30
- """
31
- return OrdersResourceWithRawResponse(self)
32
-
33
- @cached_property
34
- def with_streaming_response(self) -> OrdersResourceWithStreamingResponse:
35
- """
36
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
-
38
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
39
- """
40
- return OrdersResourceWithStreamingResponse(self)
41
-
42
- def retrieve_balance(
43
- self,
44
- order_id: str,
45
- *,
46
- institution_id: str,
47
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
48
- # The extra values given here take precedence over values defined on the client or passed to this method.
49
- extra_headers: Headers | None = None,
50
- extra_query: Query | None = None,
51
- extra_body: Body | None = None,
52
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
53
- ) -> OrderRetrieveBalanceResponse:
54
- """
55
- Retrieves the balance for a specific institutional order.
56
-
57
- Args:
58
- extra_headers: Send extra headers
59
-
60
- extra_query: Add additional query parameters to the request
61
-
62
- extra_body: Add additional JSON properties to the request
63
-
64
- timeout: Override the client-level default timeout for this request, in seconds
65
- """
66
- if not institution_id:
67
- raise ValueError(f"Expected a non-empty value for `institution_id` but received {institution_id!r}")
68
- if not order_id:
69
- raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
70
- return self._get(
71
- f"/api/v2/ledger/institutions/{institution_id}/orders/{order_id}/balance",
72
- options=make_request_options(
73
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
74
- ),
75
- cast_to=OrderRetrieveBalanceResponse,
76
- )
77
-
78
-
79
- class AsyncOrdersResource(AsyncAPIResource):
80
- @cached_property
81
- def with_raw_response(self) -> AsyncOrdersResourceWithRawResponse:
82
- """
83
- This property can be used as a prefix for any HTTP method call to return
84
- the raw response object instead of the parsed content.
85
-
86
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
87
- """
88
- return AsyncOrdersResourceWithRawResponse(self)
89
-
90
- @cached_property
91
- def with_streaming_response(self) -> AsyncOrdersResourceWithStreamingResponse:
92
- """
93
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
94
-
95
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
96
- """
97
- return AsyncOrdersResourceWithStreamingResponse(self)
98
-
99
- async def retrieve_balance(
100
- self,
101
- order_id: str,
102
- *,
103
- institution_id: str,
104
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105
- # The extra values given here take precedence over values defined on the client or passed to this method.
106
- extra_headers: Headers | None = None,
107
- extra_query: Query | None = None,
108
- extra_body: Body | None = None,
109
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
110
- ) -> OrderRetrieveBalanceResponse:
111
- """
112
- Retrieves the balance for a specific institutional order.
113
-
114
- Args:
115
- extra_headers: Send extra headers
116
-
117
- extra_query: Add additional query parameters to the request
118
-
119
- extra_body: Add additional JSON properties to the request
120
-
121
- timeout: Override the client-level default timeout for this request, in seconds
122
- """
123
- if not institution_id:
124
- raise ValueError(f"Expected a non-empty value for `institution_id` but received {institution_id!r}")
125
- if not order_id:
126
- raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
127
- return await self._get(
128
- f"/api/v2/ledger/institutions/{institution_id}/orders/{order_id}/balance",
129
- options=make_request_options(
130
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
131
- ),
132
- cast_to=OrderRetrieveBalanceResponse,
133
- )
134
-
135
-
136
- class OrdersResourceWithRawResponse:
137
- def __init__(self, orders: OrdersResource) -> None:
138
- self._orders = orders
139
-
140
- self.retrieve_balance = to_raw_response_wrapper(
141
- orders.retrieve_balance,
142
- )
143
-
144
-
145
- class AsyncOrdersResourceWithRawResponse:
146
- def __init__(self, orders: AsyncOrdersResource) -> None:
147
- self._orders = orders
148
-
149
- self.retrieve_balance = async_to_raw_response_wrapper(
150
- orders.retrieve_balance,
151
- )
152
-
153
-
154
- class OrdersResourceWithStreamingResponse:
155
- def __init__(self, orders: OrdersResource) -> None:
156
- self._orders = orders
157
-
158
- self.retrieve_balance = to_streamed_response_wrapper(
159
- orders.retrieve_balance,
160
- )
161
-
162
-
163
- class AsyncOrdersResourceWithStreamingResponse:
164
- def __init__(self, orders: AsyncOrdersResource) -> None:
165
- self._orders = orders
166
-
167
- self.retrieve_balance = async_to_streamed_response_wrapper(
168
- orders.retrieve_balance,
169
- )
@@ -1,141 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
- from ...._compat import cached_property
9
- from ...._resource import SyncAPIResource, AsyncAPIResource
10
- from ...._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ...._base_client import make_request_options
17
- from ....types.v2.ledger.insurance_list_outstanding_accounts_response import InsuranceListOutstandingAccountsResponse
18
-
19
- __all__ = ["InsuranceResource", "AsyncInsuranceResource"]
20
-
21
-
22
- class InsuranceResource(SyncAPIResource):
23
- @cached_property
24
- def with_raw_response(self) -> InsuranceResourceWithRawResponse:
25
- """
26
- This property can be used as a prefix for any HTTP method call to return
27
- the raw response object instead of the parsed content.
28
-
29
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
30
- """
31
- return InsuranceResourceWithRawResponse(self)
32
-
33
- @cached_property
34
- def with_streaming_response(self) -> InsuranceResourceWithStreamingResponse:
35
- """
36
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
-
38
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
39
- """
40
- return InsuranceResourceWithStreamingResponse(self)
41
-
42
- def list_outstanding_accounts(
43
- self,
44
- *,
45
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
- # The extra values given here take precedence over values defined on the client or passed to this method.
47
- extra_headers: Headers | None = None,
48
- extra_query: Query | None = None,
49
- extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
- ) -> InsuranceListOutstandingAccountsResponse:
52
- """
53
- Retrieves all outstanding insurance accounts across all insurance payors (claims
54
- with non-zero balances).
55
- """
56
- return self._get(
57
- "/api/v2/ledger/insurance/outstanding-accounts",
58
- options=make_request_options(
59
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
60
- ),
61
- cast_to=InsuranceListOutstandingAccountsResponse,
62
- )
63
-
64
-
65
- class AsyncInsuranceResource(AsyncAPIResource):
66
- @cached_property
67
- def with_raw_response(self) -> AsyncInsuranceResourceWithRawResponse:
68
- """
69
- This property can be used as a prefix for any HTTP method call to return
70
- the raw response object instead of the parsed content.
71
-
72
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
73
- """
74
- return AsyncInsuranceResourceWithRawResponse(self)
75
-
76
- @cached_property
77
- def with_streaming_response(self) -> AsyncInsuranceResourceWithStreamingResponse:
78
- """
79
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
80
-
81
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
82
- """
83
- return AsyncInsuranceResourceWithStreamingResponse(self)
84
-
85
- async def list_outstanding_accounts(
86
- self,
87
- *,
88
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
89
- # The extra values given here take precedence over values defined on the client or passed to this method.
90
- extra_headers: Headers | None = None,
91
- extra_query: Query | None = None,
92
- extra_body: Body | None = None,
93
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
94
- ) -> InsuranceListOutstandingAccountsResponse:
95
- """
96
- Retrieves all outstanding insurance accounts across all insurance payors (claims
97
- with non-zero balances).
98
- """
99
- return await self._get(
100
- "/api/v2/ledger/insurance/outstanding-accounts",
101
- options=make_request_options(
102
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
103
- ),
104
- cast_to=InsuranceListOutstandingAccountsResponse,
105
- )
106
-
107
-
108
- class InsuranceResourceWithRawResponse:
109
- def __init__(self, insurance: InsuranceResource) -> None:
110
- self._insurance = insurance
111
-
112
- self.list_outstanding_accounts = to_raw_response_wrapper(
113
- insurance.list_outstanding_accounts,
114
- )
115
-
116
-
117
- class AsyncInsuranceResourceWithRawResponse:
118
- def __init__(self, insurance: AsyncInsuranceResource) -> None:
119
- self._insurance = insurance
120
-
121
- self.list_outstanding_accounts = async_to_raw_response_wrapper(
122
- insurance.list_outstanding_accounts,
123
- )
124
-
125
-
126
- class InsuranceResourceWithStreamingResponse:
127
- def __init__(self, insurance: InsuranceResource) -> None:
128
- self._insurance = insurance
129
-
130
- self.list_outstanding_accounts = to_streamed_response_wrapper(
131
- insurance.list_outstanding_accounts,
132
- )
133
-
134
-
135
- class AsyncInsuranceResourceWithStreamingResponse:
136
- def __init__(self, insurance: AsyncInsuranceResource) -> None:
137
- self._insurance = insurance
138
-
139
- self.list_outstanding_accounts = async_to_streamed_response_wrapper(
140
- insurance.list_outstanding_accounts,
141
- )