samplehc 0.14.0__py3-none-any.whl → 0.16.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.
- samplehc/_base_client.py +140 -11
- samplehc/_client.py +107 -35
- samplehc/_models.py +53 -16
- samplehc/_streaming.py +12 -12
- samplehc/_types.py +12 -2
- samplehc/_utils/_sync.py +3 -31
- samplehc/_utils/_utils.py +1 -1
- samplehc/_version.py +1 -1
- samplehc/resources/v2/__init__.py +0 -42
- samplehc/resources/v2/communication.py +5 -4
- samplehc/resources/v2/documents/documents.py +8 -0
- samplehc/resources/v2/tasks/tasks.py +12 -3
- samplehc/resources/v2/v2.py +0 -96
- samplehc/types/v1_query_audit_logs_response.py +4 -0
- samplehc/types/v2/__init__.py +1 -2
- samplehc/types/v2/clearinghouse/claim_submit_response.py +5 -0
- samplehc/types/v2/clearinghouse/payer_list_response.py +2 -0
- samplehc/types/v2/clearinghouse/payer_search_response.py +2 -0
- samplehc/types/v2/clearinghouse_check_eligibility_response.py +4 -0
- samplehc/types/v2/clearinghouse_run_discovery_response.py +2 -0
- samplehc/types/v2/communication_send_email_response.py +27 -0
- samplehc/types/v2/communication_send_fax_params.py +2 -0
- samplehc/types/v2/communication_send_fax_response.py +2 -0
- samplehc/types/v2/communication_send_letter_params.py +8 -0
- samplehc/types/v2/communication_send_letter_response.py +2 -0
- samplehc/types/v2/database_execute_sql_response.py +2 -0
- samplehc/types/v2/document_classify_params.py +2 -0
- samplehc/types/v2/document_classify_response.py +2 -0
- samplehc/types/v2/document_combine_response.py +4 -0
- samplehc/types/v2/document_create_from_splits_params.py +2 -0
- samplehc/types/v2/document_create_from_splits_response.py +2 -0
- samplehc/types/v2/document_extract_params.py +40 -3
- samplehc/types/v2/document_extract_response.py +2 -0
- samplehc/types/v2/document_generate_csv_response.py +4 -0
- samplehc/types/v2/document_presigned_upload_url_response.py +2 -0
- samplehc/types/v2/document_retrieve_csv_content_response.py +2 -0
- samplehc/types/v2/document_retrieve_metadata_response.py +2 -0
- samplehc/types/v2/document_search_response.py +2 -0
- samplehc/types/v2/document_split_params.py +2 -0
- samplehc/types/v2/document_split_response.py +2 -0
- samplehc/types/v2/documents/format_create_pdf_response.py +2 -0
- samplehc/types/v2/documents/legacy_extract_response.py +2 -0
- samplehc/types/v2/documents/legacy_reason_response.py +2 -0
- samplehc/types/v2/documents/legacy_split_params.py +2 -0
- samplehc/types/v2/documents/legacy_split_response.py +2 -0
- samplehc/types/v2/documents/pdf_template_retrieve_metadata_response.py +2 -0
- samplehc/types/v2/documents/template_render_document_response.py +2 -0
- samplehc/types/v2/hie/document_upload_params.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_create_draft_response.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_retrieve_record_response.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_submit_response.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorization_update_record_response.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_list_response.py +2 -0
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_response.py +2 -0
- samplehc/types/v2/integrations/kno2/message_get_attachment_response.py +2 -0
- samplehc/types/v2/integrations/kno2/message_retrieve_response.py +2 -0
- samplehc/types/v2/ledger/__init__.py +0 -7
- samplehc/types/v2/policy_list_companies_response.py +2 -0
- samplehc/types/v2/policy_list_plans_response.py +2 -0
- samplehc/types/v2/policy_list_response.py +2 -0
- samplehc/types/v2/policy_retrieve_presigned_url_response.py +2 -0
- samplehc/types/v2/policy_retrieve_text_response.py +2 -0
- samplehc/types/v2/task_cancel_response.py +2 -0
- samplehc/types/v2/task_complete_response.py +2 -0
- samplehc/types/v2/task_update_column_params.py +6 -3
- samplehc/types/v2/workflow_run_resume_when_complete_response.py +2 -0
- samplehc/types/v2/workflow_run_retrieve_response.py +2 -0
- samplehc/types/v2/workflow_runs/step_get_output_response.py +2 -0
- samplehc/types/v2/workflow_start_response.py +2 -0
- {samplehc-0.14.0.dist-info → samplehc-0.16.0.dist-info}/METADATA +7 -6
- {samplehc-0.14.0.dist-info → samplehc-0.16.0.dist-info}/RECORD +73 -101
- {samplehc-0.14.0.dist-info → samplehc-0.16.0.dist-info}/licenses/LICENSE +1 -1
- samplehc/resources/v2/browser_agents/__init__.py +0 -33
- samplehc/resources/v2/browser_agents/browser_agents.py +0 -209
- samplehc/resources/v2/browser_agents/runs/__init__.py +0 -33
- samplehc/resources/v2/browser_agents/runs/help_requests.py +0 -191
- samplehc/resources/v2/browser_agents/runs/runs.py +0 -233
- samplehc/resources/v2/browser_automation/__init__.py +0 -33
- samplehc/resources/v2/browser_automation/availity.py +0 -249
- samplehc/resources/v2/browser_automation/browser_automation.py +0 -102
- samplehc/resources/v2/ledger/__init__.py +0 -47
- samplehc/resources/v2/ledger/account.py +0 -297
- samplehc/resources/v2/ledger/entry.py +0 -381
- samplehc/resources/v2/ledger/ledger.py +0 -134
- samplehc/types/v2/browser_agent_invoke_params.py +0 -13
- samplehc/types/v2/browser_agent_invoke_response.py +0 -15
- samplehc/types/v2/browser_agents/__init__.py +0 -6
- samplehc/types/v2/browser_agents/run_list_events_params.py +0 -15
- samplehc/types/v2/browser_agents/run_list_events_response.py +0 -30
- samplehc/types/v2/browser_agents/runs/__init__.py +0 -6
- samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +0 -18
- samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +0 -28
- samplehc/types/v2/browser_automation/__init__.py +0 -6
- samplehc/types/v2/browser_automation/availity_submit_appeal_params.py +0 -59
- samplehc/types/v2/browser_automation/availity_submit_appeal_response.py +0 -12
- samplehc/types/v2/ledger/account_writeoff_params.py +0 -23
- samplehc/types/v2/ledger/account_writeoff_response.py +0 -12
- samplehc/types/v2/ledger/entry_post_params.py +0 -60
- samplehc/types/v2/ledger/entry_post_response.py +0 -10
- samplehc/types/v2/ledger/entry_reverse_params.py +0 -18
- samplehc/types/v2/ledger/entry_reverse_response.py +0 -10
- {samplehc-0.14.0.dist-info → samplehc-0.16.0.dist-info}/WHEEL +0 -0
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing_extensions import Literal
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
10
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
|
-
from ...._compat import cached_property
|
|
12
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
-
from ...._response import (
|
|
14
|
-
to_raw_response_wrapper,
|
|
15
|
-
to_streamed_response_wrapper,
|
|
16
|
-
async_to_raw_response_wrapper,
|
|
17
|
-
async_to_streamed_response_wrapper,
|
|
18
|
-
)
|
|
19
|
-
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.v2.browser_automation import availity_submit_appeal_params
|
|
21
|
-
from ....types.v2.browser_automation.availity_submit_appeal_response import AvailitySubmitAppealResponse
|
|
22
|
-
|
|
23
|
-
__all__ = ["AvailityResource", "AsyncAvailityResource"]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class AvailityResource(SyncAPIResource):
|
|
27
|
-
@cached_property
|
|
28
|
-
def with_raw_response(self) -> AvailityResourceWithRawResponse:
|
|
29
|
-
"""
|
|
30
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
-
the raw response object instead of the parsed content.
|
|
32
|
-
|
|
33
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
34
|
-
"""
|
|
35
|
-
return AvailityResourceWithRawResponse(self)
|
|
36
|
-
|
|
37
|
-
@cached_property
|
|
38
|
-
def with_streaming_response(self) -> AvailityResourceWithStreamingResponse:
|
|
39
|
-
"""
|
|
40
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
43
|
-
"""
|
|
44
|
-
return AvailityResourceWithStreamingResponse(self)
|
|
45
|
-
|
|
46
|
-
def submit_appeal(
|
|
47
|
-
self,
|
|
48
|
-
*,
|
|
49
|
-
availity_payer: Literal["Anthem - CA"],
|
|
50
|
-
billed_amount: str,
|
|
51
|
-
claim_number: str,
|
|
52
|
-
contact_phone_number: str,
|
|
53
|
-
document: availity_submit_appeal_params.Document,
|
|
54
|
-
member_date_of_birth: str,
|
|
55
|
-
member_first_name: str,
|
|
56
|
-
member_id: str,
|
|
57
|
-
member_last_name: str,
|
|
58
|
-
request_reason: Literal[
|
|
59
|
-
"Authorization Issue",
|
|
60
|
-
"Balance Bill (Not Medicaid)",
|
|
61
|
-
"Benefit Issue",
|
|
62
|
-
"Claim Coding Issue",
|
|
63
|
-
"Claim Payment Issue",
|
|
64
|
-
"Contract Dispute",
|
|
65
|
-
"DRG Outlier Review",
|
|
66
|
-
"Federal Surprise Bill (Not Medicaid)",
|
|
67
|
-
"State Surprise Bill (Not Medicaid)",
|
|
68
|
-
"Timely Filing",
|
|
69
|
-
],
|
|
70
|
-
service_start_date: str,
|
|
71
|
-
state: str,
|
|
72
|
-
supporting_rationale: str,
|
|
73
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
74
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
75
|
-
extra_headers: Headers | None = None,
|
|
76
|
-
extra_query: Query | None = None,
|
|
77
|
-
extra_body: Body | None = None,
|
|
78
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
79
|
-
) -> AvailitySubmitAppealResponse:
|
|
80
|
-
"""Initiates an asynchronous process to submit an appeal to Availity.
|
|
81
|
-
|
|
82
|
-
Returns an ID
|
|
83
|
-
for tracking.
|
|
84
|
-
|
|
85
|
-
Args:
|
|
86
|
-
extra_headers: Send extra headers
|
|
87
|
-
|
|
88
|
-
extra_query: Add additional query parameters to the request
|
|
89
|
-
|
|
90
|
-
extra_body: Add additional JSON properties to the request
|
|
91
|
-
|
|
92
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
93
|
-
"""
|
|
94
|
-
return self._post(
|
|
95
|
-
"/api/v2/browser-automation/availity/submit-appeal",
|
|
96
|
-
body=maybe_transform(
|
|
97
|
-
{
|
|
98
|
-
"availity_payer": availity_payer,
|
|
99
|
-
"billed_amount": billed_amount,
|
|
100
|
-
"claim_number": claim_number,
|
|
101
|
-
"contact_phone_number": contact_phone_number,
|
|
102
|
-
"document": document,
|
|
103
|
-
"member_date_of_birth": member_date_of_birth,
|
|
104
|
-
"member_first_name": member_first_name,
|
|
105
|
-
"member_id": member_id,
|
|
106
|
-
"member_last_name": member_last_name,
|
|
107
|
-
"request_reason": request_reason,
|
|
108
|
-
"service_start_date": service_start_date,
|
|
109
|
-
"state": state,
|
|
110
|
-
"supporting_rationale": supporting_rationale,
|
|
111
|
-
},
|
|
112
|
-
availity_submit_appeal_params.AvailitySubmitAppealParams,
|
|
113
|
-
),
|
|
114
|
-
options=make_request_options(
|
|
115
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
116
|
-
),
|
|
117
|
-
cast_to=AvailitySubmitAppealResponse,
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
class AsyncAvailityResource(AsyncAPIResource):
|
|
122
|
-
@cached_property
|
|
123
|
-
def with_raw_response(self) -> AsyncAvailityResourceWithRawResponse:
|
|
124
|
-
"""
|
|
125
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
126
|
-
the raw response object instead of the parsed content.
|
|
127
|
-
|
|
128
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
129
|
-
"""
|
|
130
|
-
return AsyncAvailityResourceWithRawResponse(self)
|
|
131
|
-
|
|
132
|
-
@cached_property
|
|
133
|
-
def with_streaming_response(self) -> AsyncAvailityResourceWithStreamingResponse:
|
|
134
|
-
"""
|
|
135
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
136
|
-
|
|
137
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
138
|
-
"""
|
|
139
|
-
return AsyncAvailityResourceWithStreamingResponse(self)
|
|
140
|
-
|
|
141
|
-
async def submit_appeal(
|
|
142
|
-
self,
|
|
143
|
-
*,
|
|
144
|
-
availity_payer: Literal["Anthem - CA"],
|
|
145
|
-
billed_amount: str,
|
|
146
|
-
claim_number: str,
|
|
147
|
-
contact_phone_number: str,
|
|
148
|
-
document: availity_submit_appeal_params.Document,
|
|
149
|
-
member_date_of_birth: str,
|
|
150
|
-
member_first_name: str,
|
|
151
|
-
member_id: str,
|
|
152
|
-
member_last_name: str,
|
|
153
|
-
request_reason: Literal[
|
|
154
|
-
"Authorization Issue",
|
|
155
|
-
"Balance Bill (Not Medicaid)",
|
|
156
|
-
"Benefit Issue",
|
|
157
|
-
"Claim Coding Issue",
|
|
158
|
-
"Claim Payment Issue",
|
|
159
|
-
"Contract Dispute",
|
|
160
|
-
"DRG Outlier Review",
|
|
161
|
-
"Federal Surprise Bill (Not Medicaid)",
|
|
162
|
-
"State Surprise Bill (Not Medicaid)",
|
|
163
|
-
"Timely Filing",
|
|
164
|
-
],
|
|
165
|
-
service_start_date: str,
|
|
166
|
-
state: str,
|
|
167
|
-
supporting_rationale: str,
|
|
168
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
169
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
170
|
-
extra_headers: Headers | None = None,
|
|
171
|
-
extra_query: Query | None = None,
|
|
172
|
-
extra_body: Body | None = None,
|
|
173
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
174
|
-
) -> AvailitySubmitAppealResponse:
|
|
175
|
-
"""Initiates an asynchronous process to submit an appeal to Availity.
|
|
176
|
-
|
|
177
|
-
Returns an ID
|
|
178
|
-
for tracking.
|
|
179
|
-
|
|
180
|
-
Args:
|
|
181
|
-
extra_headers: Send extra headers
|
|
182
|
-
|
|
183
|
-
extra_query: Add additional query parameters to the request
|
|
184
|
-
|
|
185
|
-
extra_body: Add additional JSON properties to the request
|
|
186
|
-
|
|
187
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
188
|
-
"""
|
|
189
|
-
return await self._post(
|
|
190
|
-
"/api/v2/browser-automation/availity/submit-appeal",
|
|
191
|
-
body=await async_maybe_transform(
|
|
192
|
-
{
|
|
193
|
-
"availity_payer": availity_payer,
|
|
194
|
-
"billed_amount": billed_amount,
|
|
195
|
-
"claim_number": claim_number,
|
|
196
|
-
"contact_phone_number": contact_phone_number,
|
|
197
|
-
"document": document,
|
|
198
|
-
"member_date_of_birth": member_date_of_birth,
|
|
199
|
-
"member_first_name": member_first_name,
|
|
200
|
-
"member_id": member_id,
|
|
201
|
-
"member_last_name": member_last_name,
|
|
202
|
-
"request_reason": request_reason,
|
|
203
|
-
"service_start_date": service_start_date,
|
|
204
|
-
"state": state,
|
|
205
|
-
"supporting_rationale": supporting_rationale,
|
|
206
|
-
},
|
|
207
|
-
availity_submit_appeal_params.AvailitySubmitAppealParams,
|
|
208
|
-
),
|
|
209
|
-
options=make_request_options(
|
|
210
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
211
|
-
),
|
|
212
|
-
cast_to=AvailitySubmitAppealResponse,
|
|
213
|
-
)
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
class AvailityResourceWithRawResponse:
|
|
217
|
-
def __init__(self, availity: AvailityResource) -> None:
|
|
218
|
-
self._availity = availity
|
|
219
|
-
|
|
220
|
-
self.submit_appeal = to_raw_response_wrapper(
|
|
221
|
-
availity.submit_appeal,
|
|
222
|
-
)
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
class AsyncAvailityResourceWithRawResponse:
|
|
226
|
-
def __init__(self, availity: AsyncAvailityResource) -> None:
|
|
227
|
-
self._availity = availity
|
|
228
|
-
|
|
229
|
-
self.submit_appeal = async_to_raw_response_wrapper(
|
|
230
|
-
availity.submit_appeal,
|
|
231
|
-
)
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
class AvailityResourceWithStreamingResponse:
|
|
235
|
-
def __init__(self, availity: AvailityResource) -> None:
|
|
236
|
-
self._availity = availity
|
|
237
|
-
|
|
238
|
-
self.submit_appeal = to_streamed_response_wrapper(
|
|
239
|
-
availity.submit_appeal,
|
|
240
|
-
)
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
class AsyncAvailityResourceWithStreamingResponse:
|
|
244
|
-
def __init__(self, availity: AsyncAvailityResource) -> None:
|
|
245
|
-
self._availity = availity
|
|
246
|
-
|
|
247
|
-
self.submit_appeal = async_to_streamed_response_wrapper(
|
|
248
|
-
availity.submit_appeal,
|
|
249
|
-
)
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from .availity import (
|
|
6
|
-
AvailityResource,
|
|
7
|
-
AsyncAvailityResource,
|
|
8
|
-
AvailityResourceWithRawResponse,
|
|
9
|
-
AsyncAvailityResourceWithRawResponse,
|
|
10
|
-
AvailityResourceWithStreamingResponse,
|
|
11
|
-
AsyncAvailityResourceWithStreamingResponse,
|
|
12
|
-
)
|
|
13
|
-
from ...._compat import cached_property
|
|
14
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
15
|
-
|
|
16
|
-
__all__ = ["BrowserAutomationResource", "AsyncBrowserAutomationResource"]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class BrowserAutomationResource(SyncAPIResource):
|
|
20
|
-
@cached_property
|
|
21
|
-
def availity(self) -> AvailityResource:
|
|
22
|
-
return AvailityResource(self._client)
|
|
23
|
-
|
|
24
|
-
@cached_property
|
|
25
|
-
def with_raw_response(self) -> BrowserAutomationResourceWithRawResponse:
|
|
26
|
-
"""
|
|
27
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
28
|
-
the raw response object instead of the parsed content.
|
|
29
|
-
|
|
30
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
31
|
-
"""
|
|
32
|
-
return BrowserAutomationResourceWithRawResponse(self)
|
|
33
|
-
|
|
34
|
-
@cached_property
|
|
35
|
-
def with_streaming_response(self) -> BrowserAutomationResourceWithStreamingResponse:
|
|
36
|
-
"""
|
|
37
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
38
|
-
|
|
39
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
40
|
-
"""
|
|
41
|
-
return BrowserAutomationResourceWithStreamingResponse(self)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
class AsyncBrowserAutomationResource(AsyncAPIResource):
|
|
45
|
-
@cached_property
|
|
46
|
-
def availity(self) -> AsyncAvailityResource:
|
|
47
|
-
return AsyncAvailityResource(self._client)
|
|
48
|
-
|
|
49
|
-
@cached_property
|
|
50
|
-
def with_raw_response(self) -> AsyncBrowserAutomationResourceWithRawResponse:
|
|
51
|
-
"""
|
|
52
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
53
|
-
the raw response object instead of the parsed content.
|
|
54
|
-
|
|
55
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
56
|
-
"""
|
|
57
|
-
return AsyncBrowserAutomationResourceWithRawResponse(self)
|
|
58
|
-
|
|
59
|
-
@cached_property
|
|
60
|
-
def with_streaming_response(self) -> AsyncBrowserAutomationResourceWithStreamingResponse:
|
|
61
|
-
"""
|
|
62
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
63
|
-
|
|
64
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
65
|
-
"""
|
|
66
|
-
return AsyncBrowserAutomationResourceWithStreamingResponse(self)
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
class BrowserAutomationResourceWithRawResponse:
|
|
70
|
-
def __init__(self, browser_automation: BrowserAutomationResource) -> None:
|
|
71
|
-
self._browser_automation = browser_automation
|
|
72
|
-
|
|
73
|
-
@cached_property
|
|
74
|
-
def availity(self) -> AvailityResourceWithRawResponse:
|
|
75
|
-
return AvailityResourceWithRawResponse(self._browser_automation.availity)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class AsyncBrowserAutomationResourceWithRawResponse:
|
|
79
|
-
def __init__(self, browser_automation: AsyncBrowserAutomationResource) -> None:
|
|
80
|
-
self._browser_automation = browser_automation
|
|
81
|
-
|
|
82
|
-
@cached_property
|
|
83
|
-
def availity(self) -> AsyncAvailityResourceWithRawResponse:
|
|
84
|
-
return AsyncAvailityResourceWithRawResponse(self._browser_automation.availity)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class BrowserAutomationResourceWithStreamingResponse:
|
|
88
|
-
def __init__(self, browser_automation: BrowserAutomationResource) -> None:
|
|
89
|
-
self._browser_automation = browser_automation
|
|
90
|
-
|
|
91
|
-
@cached_property
|
|
92
|
-
def availity(self) -> AvailityResourceWithStreamingResponse:
|
|
93
|
-
return AvailityResourceWithStreamingResponse(self._browser_automation.availity)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class AsyncBrowserAutomationResourceWithStreamingResponse:
|
|
97
|
-
def __init__(self, browser_automation: AsyncBrowserAutomationResource) -> None:
|
|
98
|
-
self._browser_automation = browser_automation
|
|
99
|
-
|
|
100
|
-
@cached_property
|
|
101
|
-
def availity(self) -> AsyncAvailityResourceWithStreamingResponse:
|
|
102
|
-
return AsyncAvailityResourceWithStreamingResponse(self._browser_automation.availity)
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from .entry import (
|
|
4
|
-
EntryResource,
|
|
5
|
-
AsyncEntryResource,
|
|
6
|
-
EntryResourceWithRawResponse,
|
|
7
|
-
AsyncEntryResourceWithRawResponse,
|
|
8
|
-
EntryResourceWithStreamingResponse,
|
|
9
|
-
AsyncEntryResourceWithStreamingResponse,
|
|
10
|
-
)
|
|
11
|
-
from .ledger import (
|
|
12
|
-
LedgerResource,
|
|
13
|
-
AsyncLedgerResource,
|
|
14
|
-
LedgerResourceWithRawResponse,
|
|
15
|
-
AsyncLedgerResourceWithRawResponse,
|
|
16
|
-
LedgerResourceWithStreamingResponse,
|
|
17
|
-
AsyncLedgerResourceWithStreamingResponse,
|
|
18
|
-
)
|
|
19
|
-
from .account import (
|
|
20
|
-
AccountResource,
|
|
21
|
-
AsyncAccountResource,
|
|
22
|
-
AccountResourceWithRawResponse,
|
|
23
|
-
AsyncAccountResourceWithRawResponse,
|
|
24
|
-
AccountResourceWithStreamingResponse,
|
|
25
|
-
AsyncAccountResourceWithStreamingResponse,
|
|
26
|
-
)
|
|
27
|
-
|
|
28
|
-
__all__ = [
|
|
29
|
-
"EntryResource",
|
|
30
|
-
"AsyncEntryResource",
|
|
31
|
-
"EntryResourceWithRawResponse",
|
|
32
|
-
"AsyncEntryResourceWithRawResponse",
|
|
33
|
-
"EntryResourceWithStreamingResponse",
|
|
34
|
-
"AsyncEntryResourceWithStreamingResponse",
|
|
35
|
-
"AccountResource",
|
|
36
|
-
"AsyncAccountResource",
|
|
37
|
-
"AccountResourceWithRawResponse",
|
|
38
|
-
"AsyncAccountResourceWithRawResponse",
|
|
39
|
-
"AccountResourceWithStreamingResponse",
|
|
40
|
-
"AsyncAccountResourceWithStreamingResponse",
|
|
41
|
-
"LedgerResource",
|
|
42
|
-
"AsyncLedgerResource",
|
|
43
|
-
"LedgerResourceWithRawResponse",
|
|
44
|
-
"AsyncLedgerResourceWithRawResponse",
|
|
45
|
-
"LedgerResourceWithStreamingResponse",
|
|
46
|
-
"AsyncLedgerResourceWithStreamingResponse",
|
|
47
|
-
]
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
from typing import Dict
|
|
6
|
-
|
|
7
|
-
import httpx
|
|
8
|
-
|
|
9
|
-
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
10
|
-
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
|
-
from ...._compat import cached_property
|
|
12
|
-
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
13
|
-
from ...._response import (
|
|
14
|
-
to_raw_response_wrapper,
|
|
15
|
-
to_streamed_response_wrapper,
|
|
16
|
-
async_to_raw_response_wrapper,
|
|
17
|
-
async_to_streamed_response_wrapper,
|
|
18
|
-
)
|
|
19
|
-
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.v2.ledger import account_writeoff_params
|
|
21
|
-
from ....types.v2.ledger.account_writeoff_response import AccountWriteoffResponse
|
|
22
|
-
|
|
23
|
-
__all__ = ["AccountResource", "AsyncAccountResource"]
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class AccountResource(SyncAPIResource):
|
|
27
|
-
@cached_property
|
|
28
|
-
def with_raw_response(self) -> AccountResourceWithRawResponse:
|
|
29
|
-
"""
|
|
30
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
31
|
-
the raw response object instead of the parsed content.
|
|
32
|
-
|
|
33
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
34
|
-
"""
|
|
35
|
-
return AccountResourceWithRawResponse(self)
|
|
36
|
-
|
|
37
|
-
@cached_property
|
|
38
|
-
def with_streaming_response(self) -> AccountResourceWithStreamingResponse:
|
|
39
|
-
"""
|
|
40
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
41
|
-
|
|
42
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
43
|
-
"""
|
|
44
|
-
return AccountResourceWithStreamingResponse(self)
|
|
45
|
-
|
|
46
|
-
def get_balance(
|
|
47
|
-
self,
|
|
48
|
-
line_item_id: str,
|
|
49
|
-
*,
|
|
50
|
-
order_id: str,
|
|
51
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
|
-
extra_headers: Headers | None = None,
|
|
54
|
-
extra_query: Query | None = None,
|
|
55
|
-
extra_body: Body | None = None,
|
|
56
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
57
|
-
) -> None:
|
|
58
|
-
"""
|
|
59
|
-
Get balance for a ledger account
|
|
60
|
-
|
|
61
|
-
Args:
|
|
62
|
-
extra_headers: Send extra headers
|
|
63
|
-
|
|
64
|
-
extra_query: Add additional query parameters to the request
|
|
65
|
-
|
|
66
|
-
extra_body: Add additional JSON properties to the request
|
|
67
|
-
|
|
68
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
69
|
-
"""
|
|
70
|
-
if not order_id:
|
|
71
|
-
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
72
|
-
if not line_item_id:
|
|
73
|
-
raise ValueError(f"Expected a non-empty value for `line_item_id` but received {line_item_id!r}")
|
|
74
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
75
|
-
return self._get(
|
|
76
|
-
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/balance",
|
|
77
|
-
options=make_request_options(
|
|
78
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
79
|
-
),
|
|
80
|
-
cast_to=NoneType,
|
|
81
|
-
)
|
|
82
|
-
|
|
83
|
-
def writeoff(
|
|
84
|
-
self,
|
|
85
|
-
line_item_id: str,
|
|
86
|
-
*,
|
|
87
|
-
order_id: str,
|
|
88
|
-
description: str,
|
|
89
|
-
metadata: Dict[str, object] | Omit = omit,
|
|
90
|
-
posted_at: str | Omit = omit,
|
|
91
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
92
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
93
|
-
extra_headers: Headers | None = None,
|
|
94
|
-
extra_query: Query | None = None,
|
|
95
|
-
extra_body: Body | None = None,
|
|
96
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
97
|
-
) -> AccountWriteoffResponse:
|
|
98
|
-
"""Writes off the remaining balance in an account on the ledger.
|
|
99
|
-
|
|
100
|
-
Throws an error if
|
|
101
|
-
the account contains a non-positive balance.
|
|
102
|
-
|
|
103
|
-
Args:
|
|
104
|
-
description: The description of the write-off.
|
|
105
|
-
|
|
106
|
-
metadata: Any optional metadata to associate with the write-off.
|
|
107
|
-
|
|
108
|
-
posted_at: The date and time to post the write-off.
|
|
109
|
-
|
|
110
|
-
extra_headers: Send extra headers
|
|
111
|
-
|
|
112
|
-
extra_query: Add additional query parameters to the request
|
|
113
|
-
|
|
114
|
-
extra_body: Add additional JSON properties to the request
|
|
115
|
-
|
|
116
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
117
|
-
"""
|
|
118
|
-
if not order_id:
|
|
119
|
-
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
120
|
-
if not line_item_id:
|
|
121
|
-
raise ValueError(f"Expected a non-empty value for `line_item_id` but received {line_item_id!r}")
|
|
122
|
-
return self._post(
|
|
123
|
-
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
|
|
124
|
-
body=maybe_transform(
|
|
125
|
-
{
|
|
126
|
-
"description": description,
|
|
127
|
-
"metadata": metadata,
|
|
128
|
-
"posted_at": posted_at,
|
|
129
|
-
},
|
|
130
|
-
account_writeoff_params.AccountWriteoffParams,
|
|
131
|
-
),
|
|
132
|
-
options=make_request_options(
|
|
133
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
134
|
-
),
|
|
135
|
-
cast_to=AccountWriteoffResponse,
|
|
136
|
-
)
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
class AsyncAccountResource(AsyncAPIResource):
|
|
140
|
-
@cached_property
|
|
141
|
-
def with_raw_response(self) -> AsyncAccountResourceWithRawResponse:
|
|
142
|
-
"""
|
|
143
|
-
This property can be used as a prefix for any HTTP method call to return
|
|
144
|
-
the raw response object instead of the parsed content.
|
|
145
|
-
|
|
146
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
147
|
-
"""
|
|
148
|
-
return AsyncAccountResourceWithRawResponse(self)
|
|
149
|
-
|
|
150
|
-
@cached_property
|
|
151
|
-
def with_streaming_response(self) -> AsyncAccountResourceWithStreamingResponse:
|
|
152
|
-
"""
|
|
153
|
-
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
154
|
-
|
|
155
|
-
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
156
|
-
"""
|
|
157
|
-
return AsyncAccountResourceWithStreamingResponse(self)
|
|
158
|
-
|
|
159
|
-
async def get_balance(
|
|
160
|
-
self,
|
|
161
|
-
line_item_id: str,
|
|
162
|
-
*,
|
|
163
|
-
order_id: str,
|
|
164
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
165
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
166
|
-
extra_headers: Headers | None = None,
|
|
167
|
-
extra_query: Query | None = None,
|
|
168
|
-
extra_body: Body | None = None,
|
|
169
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
170
|
-
) -> None:
|
|
171
|
-
"""
|
|
172
|
-
Get balance for a ledger account
|
|
173
|
-
|
|
174
|
-
Args:
|
|
175
|
-
extra_headers: Send extra headers
|
|
176
|
-
|
|
177
|
-
extra_query: Add additional query parameters to the request
|
|
178
|
-
|
|
179
|
-
extra_body: Add additional JSON properties to the request
|
|
180
|
-
|
|
181
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
182
|
-
"""
|
|
183
|
-
if not order_id:
|
|
184
|
-
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
185
|
-
if not line_item_id:
|
|
186
|
-
raise ValueError(f"Expected a non-empty value for `line_item_id` but received {line_item_id!r}")
|
|
187
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
188
|
-
return await self._get(
|
|
189
|
-
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/balance",
|
|
190
|
-
options=make_request_options(
|
|
191
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
192
|
-
),
|
|
193
|
-
cast_to=NoneType,
|
|
194
|
-
)
|
|
195
|
-
|
|
196
|
-
async def writeoff(
|
|
197
|
-
self,
|
|
198
|
-
line_item_id: str,
|
|
199
|
-
*,
|
|
200
|
-
order_id: str,
|
|
201
|
-
description: str,
|
|
202
|
-
metadata: Dict[str, object] | Omit = omit,
|
|
203
|
-
posted_at: str | Omit = omit,
|
|
204
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
205
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
206
|
-
extra_headers: Headers | None = None,
|
|
207
|
-
extra_query: Query | None = None,
|
|
208
|
-
extra_body: Body | None = None,
|
|
209
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
210
|
-
) -> AccountWriteoffResponse:
|
|
211
|
-
"""Writes off the remaining balance in an account on the ledger.
|
|
212
|
-
|
|
213
|
-
Throws an error if
|
|
214
|
-
the account contains a non-positive balance.
|
|
215
|
-
|
|
216
|
-
Args:
|
|
217
|
-
description: The description of the write-off.
|
|
218
|
-
|
|
219
|
-
metadata: Any optional metadata to associate with the write-off.
|
|
220
|
-
|
|
221
|
-
posted_at: The date and time to post the write-off.
|
|
222
|
-
|
|
223
|
-
extra_headers: Send extra headers
|
|
224
|
-
|
|
225
|
-
extra_query: Add additional query parameters to the request
|
|
226
|
-
|
|
227
|
-
extra_body: Add additional JSON properties to the request
|
|
228
|
-
|
|
229
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
230
|
-
"""
|
|
231
|
-
if not order_id:
|
|
232
|
-
raise ValueError(f"Expected a non-empty value for `order_id` but received {order_id!r}")
|
|
233
|
-
if not line_item_id:
|
|
234
|
-
raise ValueError(f"Expected a non-empty value for `line_item_id` but received {line_item_id!r}")
|
|
235
|
-
return await self._post(
|
|
236
|
-
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
|
|
237
|
-
body=await async_maybe_transform(
|
|
238
|
-
{
|
|
239
|
-
"description": description,
|
|
240
|
-
"metadata": metadata,
|
|
241
|
-
"posted_at": posted_at,
|
|
242
|
-
},
|
|
243
|
-
account_writeoff_params.AccountWriteoffParams,
|
|
244
|
-
),
|
|
245
|
-
options=make_request_options(
|
|
246
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
247
|
-
),
|
|
248
|
-
cast_to=AccountWriteoffResponse,
|
|
249
|
-
)
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
class AccountResourceWithRawResponse:
|
|
253
|
-
def __init__(self, account: AccountResource) -> None:
|
|
254
|
-
self._account = account
|
|
255
|
-
|
|
256
|
-
self.get_balance = to_raw_response_wrapper(
|
|
257
|
-
account.get_balance,
|
|
258
|
-
)
|
|
259
|
-
self.writeoff = to_raw_response_wrapper(
|
|
260
|
-
account.writeoff,
|
|
261
|
-
)
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
class AsyncAccountResourceWithRawResponse:
|
|
265
|
-
def __init__(self, account: AsyncAccountResource) -> None:
|
|
266
|
-
self._account = account
|
|
267
|
-
|
|
268
|
-
self.get_balance = async_to_raw_response_wrapper(
|
|
269
|
-
account.get_balance,
|
|
270
|
-
)
|
|
271
|
-
self.writeoff = async_to_raw_response_wrapper(
|
|
272
|
-
account.writeoff,
|
|
273
|
-
)
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
class AccountResourceWithStreamingResponse:
|
|
277
|
-
def __init__(self, account: AccountResource) -> None:
|
|
278
|
-
self._account = account
|
|
279
|
-
|
|
280
|
-
self.get_balance = to_streamed_response_wrapper(
|
|
281
|
-
account.get_balance,
|
|
282
|
-
)
|
|
283
|
-
self.writeoff = to_streamed_response_wrapper(
|
|
284
|
-
account.writeoff,
|
|
285
|
-
)
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
class AsyncAccountResourceWithStreamingResponse:
|
|
289
|
-
def __init__(self, account: AsyncAccountResource) -> None:
|
|
290
|
-
self._account = account
|
|
291
|
-
|
|
292
|
-
self.get_balance = async_to_streamed_response_wrapper(
|
|
293
|
-
account.get_balance,
|
|
294
|
-
)
|
|
295
|
-
self.writeoff = async_to_streamed_response_wrapper(
|
|
296
|
-
account.writeoff,
|
|
297
|
-
)
|