samplehc 0.10.0__py3-none-any.whl → 0.12.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/__init__.py +3 -1
- samplehc/_base_client.py +12 -12
- samplehc/_client.py +8 -8
- samplehc/_compat.py +48 -48
- samplehc/_models.py +50 -44
- samplehc/_qs.py +7 -7
- samplehc/_types.py +53 -12
- samplehc/_utils/__init__.py +9 -2
- samplehc/_utils/_compat.py +45 -0
- samplehc/_utils/_datetime_parse.py +136 -0
- samplehc/_utils/_transform.py +13 -3
- samplehc/_utils/_typing.py +6 -1
- samplehc/_utils/_utils.py +4 -5
- samplehc/_version.py +1 -1
- samplehc/resources/v1/v1.py +9 -9
- samplehc/resources/v2/async_results.py +13 -13
- samplehc/resources/v2/browser_agents/__init__.py +33 -0
- samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +44 -12
- samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
- samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
- samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
- samplehc/resources/v2/browser_automation/availity.py +3 -3
- samplehc/resources/v2/clearinghouse/claim.py +29 -29
- samplehc/resources/v2/clearinghouse/clearinghouse.py +36 -36
- samplehc/resources/v2/clearinghouse/payers.py +5 -5
- samplehc/resources/v2/communication.py +29 -29
- samplehc/resources/v2/database.py +5 -5
- samplehc/resources/v2/documents/documents.py +152 -37
- samplehc/resources/v2/documents/formats.py +3 -3
- samplehc/resources/v2/documents/legacy.py +91 -6
- samplehc/resources/v2/documents/pdf_template.py +3 -3
- samplehc/resources/v2/documents/templates.py +27 -27
- samplehc/resources/v2/{events/events.py → events.py} +14 -46
- samplehc/resources/v2/hie/adt.py +7 -7
- samplehc/resources/v2/hie/documents.py +15 -15
- samplehc/resources/v2/integrations/__init__.py +28 -0
- samplehc/resources/v2/integrations/bank/transactions.py +5 -5
- samplehc/resources/v2/integrations/careviso.py +36 -36
- samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
- samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
- samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
- samplehc/resources/v2/integrations/integrations.py +64 -0
- samplehc/resources/v2/integrations/kno2/messages.py +5 -5
- samplehc/resources/v2/integrations/salesforce.py +193 -0
- samplehc/resources/v2/integrations/snowflake.py +3 -3
- samplehc/resources/v2/{events/integrations → integrations}/xcures.py +13 -13
- samplehc/resources/v2/ledger/__init__.py +27 -55
- samplehc/resources/v2/ledger/{orders.py → account.py} +123 -86
- samplehc/resources/v2/ledger/entry.py +381 -0
- samplehc/resources/v2/ledger/ledger.py +38 -1560
- samplehc/resources/v2/policies.py +47 -47
- samplehc/resources/v2/tasks/state.py +7 -7
- samplehc/resources/v2/tasks/tasks.py +15 -15
- samplehc/resources/v2/v2.py +16 -16
- samplehc/resources/v2/workflow_runs/step.py +3 -3
- samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
- samplehc/resources/v2/workflows.py +13 -13
- samplehc/types/v2/__init__.py +1 -28
- samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
- samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +28 -0
- samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
- samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
- samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
- samplehc/types/v2/communication_send_letter_params.py +4 -3
- samplehc/types/v2/document_classify_params.py +3 -2
- samplehc/types/v2/document_extract_params.py +4 -1
- samplehc/types/v2/document_generate_csv_params.py +3 -2
- samplehc/types/v2/document_split_params.py +16 -1
- samplehc/types/v2/document_unzip_async_response.py +12 -0
- samplehc/types/v2/documents/__init__.py +2 -0
- samplehc/types/v2/documents/legacy_extract_params.py +8 -7
- samplehc/types/v2/documents/legacy_split_params.py +20 -0
- samplehc/types/v2/documents/legacy_split_response.py +12 -0
- samplehc/types/v2/documents/template_render_document_params.py +17 -5
- samplehc/types/v2/integrations/__init__.py +2 -0
- samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
- samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
- samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
- samplehc/types/v2/ledger/__init__.py +6 -17
- samplehc/types/v2/ledger/account_writeoff_params.py +23 -0
- samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
- samplehc/types/v2/ledger/entry_post_params.py +60 -0
- samplehc/types/v2/ledger/entry_post_response.py +10 -0
- samplehc/types/v2/ledger/entry_reverse_params.py +18 -0
- samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +92 -111
- samplehc/resources/v2/events/__init__.py +0 -33
- samplehc/resources/v2/events/integrations/__init__.py +0 -33
- samplehc/resources/v2/events/integrations/integrations.py +0 -102
- samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
- samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
- samplehc/resources/v2/ledger/institutions/orders.py +0 -169
- samplehc/resources/v2/ledger/insurance.py +0 -141
- samplehc/resources/v2/ledger/patients.py +0 -141
- samplehc/types/v2/events/integrations/__init__.py +0 -5
- samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
- samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
- samplehc/types/v2/ledger/institutions/__init__.py +0 -5
- samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
- samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
- samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
- samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
- samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
- samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
- samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
- samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
- samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
- samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_claim_payment_params.py +0 -34
- samplehc/types/v2/ledger_claim_payment_response.py +0 -12
- samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
- samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_institution_payment_params.py +0 -31
- samplehc/types/v2/ledger_institution_payment_response.py +0 -12
- samplehc/types/v2/ledger_new_order_params.py +0 -22
- samplehc/types/v2/ledger_new_order_response.py +0 -12
- samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
- samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
- samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
- samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
- samplehc/types/v2/ledger_patient_payment_params.py +0 -28
- samplehc/types/v2/ledger_patient_payment_response.py +0 -12
- samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
- samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
- samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
- samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
- /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
- /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
- {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Dict
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
|
-
from ...._types import
|
|
9
|
+
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
10
10
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
11
11
|
from ...._compat import cached_property
|
|
12
12
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -17,48 +17,46 @@ from ...._response import (
|
|
|
17
17
|
async_to_streamed_response_wrapper,
|
|
18
18
|
)
|
|
19
19
|
from ...._base_client import make_request_options
|
|
20
|
-
from ....types.v2.ledger import
|
|
21
|
-
from ....types.v2.ledger.
|
|
22
|
-
from ....types.v2.ledger.order_retrieve_batch_balances_response import OrderRetrieveBatchBalancesResponse
|
|
20
|
+
from ....types.v2.ledger import account_writeoff_params
|
|
21
|
+
from ....types.v2.ledger.account_writeoff_response import AccountWriteoffResponse
|
|
23
22
|
|
|
24
|
-
__all__ = ["
|
|
23
|
+
__all__ = ["AccountResource", "AsyncAccountResource"]
|
|
25
24
|
|
|
26
25
|
|
|
27
|
-
class
|
|
26
|
+
class AccountResource(SyncAPIResource):
|
|
28
27
|
@cached_property
|
|
29
|
-
def with_raw_response(self) ->
|
|
28
|
+
def with_raw_response(self) -> AccountResourceWithRawResponse:
|
|
30
29
|
"""
|
|
31
30
|
This property can be used as a prefix for any HTTP method call to return
|
|
32
31
|
the raw response object instead of the parsed content.
|
|
33
32
|
|
|
34
33
|
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
35
34
|
"""
|
|
36
|
-
return
|
|
35
|
+
return AccountResourceWithRawResponse(self)
|
|
37
36
|
|
|
38
37
|
@cached_property
|
|
39
|
-
def with_streaming_response(self) ->
|
|
38
|
+
def with_streaming_response(self) -> AccountResourceWithStreamingResponse:
|
|
40
39
|
"""
|
|
41
40
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
42
41
|
|
|
43
42
|
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
44
43
|
"""
|
|
45
|
-
return
|
|
44
|
+
return AccountResourceWithStreamingResponse(self)
|
|
46
45
|
|
|
47
|
-
def
|
|
46
|
+
def get_balance(
|
|
48
47
|
self,
|
|
49
|
-
|
|
48
|
+
line_item_id: str,
|
|
50
49
|
*,
|
|
50
|
+
order_id: str,
|
|
51
51
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
52
52
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
53
53
|
extra_headers: Headers | None = None,
|
|
54
54
|
extra_query: Query | None = None,
|
|
55
55
|
extra_body: Body | None = None,
|
|
56
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
57
|
-
) ->
|
|
56
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
57
|
+
) -> None:
|
|
58
58
|
"""
|
|
59
|
-
|
|
60
|
-
categories (order-writeoff, unallocated, institution invoices, institution
|
|
61
|
-
uninvoiced, patient responsibility).
|
|
59
|
+
Get balance for a ledger account
|
|
62
60
|
|
|
63
61
|
Args:
|
|
64
62
|
extra_headers: Send extra headers
|
|
@@ -71,32 +69,43 @@ class OrdersResource(SyncAPIResource):
|
|
|
71
69
|
"""
|
|
72
70
|
if not order_id:
|
|
73
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 {})}
|
|
74
75
|
return self._get(
|
|
75
|
-
f"/api/v2/ledger/
|
|
76
|
+
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/balance",
|
|
76
77
|
options=make_request_options(
|
|
77
78
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
78
79
|
),
|
|
79
|
-
cast_to=
|
|
80
|
+
cast_to=NoneType,
|
|
80
81
|
)
|
|
81
82
|
|
|
82
|
-
def
|
|
83
|
+
def writeoff(
|
|
83
84
|
self,
|
|
85
|
+
line_item_id: str,
|
|
84
86
|
*,
|
|
85
|
-
|
|
87
|
+
order_id: str,
|
|
88
|
+
description: str,
|
|
89
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
90
|
+
posted_at: str | Omit = omit,
|
|
86
91
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
87
92
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
88
93
|
extra_headers: Headers | None = None,
|
|
89
94
|
extra_query: Query | None = None,
|
|
90
95
|
extra_body: Body | None = None,
|
|
91
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
92
|
-
) ->
|
|
93
|
-
"""
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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.
|
|
97
102
|
|
|
98
103
|
Args:
|
|
99
|
-
|
|
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.
|
|
100
109
|
|
|
101
110
|
extra_headers: Send extra headers
|
|
102
111
|
|
|
@@ -106,53 +115,61 @@ class OrdersResource(SyncAPIResource):
|
|
|
106
115
|
|
|
107
116
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
108
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}")
|
|
109
122
|
return self._post(
|
|
110
|
-
"/api/v2/ledger/
|
|
123
|
+
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
|
|
111
124
|
body=maybe_transform(
|
|
112
|
-
{
|
|
125
|
+
{
|
|
126
|
+
"description": description,
|
|
127
|
+
"metadata": metadata,
|
|
128
|
+
"posted_at": posted_at,
|
|
129
|
+
},
|
|
130
|
+
account_writeoff_params.AccountWriteoffParams,
|
|
113
131
|
),
|
|
114
132
|
options=make_request_options(
|
|
115
133
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
116
134
|
),
|
|
117
|
-
cast_to=
|
|
135
|
+
cast_to=AccountWriteoffResponse,
|
|
118
136
|
)
|
|
119
137
|
|
|
120
138
|
|
|
121
|
-
class
|
|
139
|
+
class AsyncAccountResource(AsyncAPIResource):
|
|
122
140
|
@cached_property
|
|
123
|
-
def with_raw_response(self) ->
|
|
141
|
+
def with_raw_response(self) -> AsyncAccountResourceWithRawResponse:
|
|
124
142
|
"""
|
|
125
143
|
This property can be used as a prefix for any HTTP method call to return
|
|
126
144
|
the raw response object instead of the parsed content.
|
|
127
145
|
|
|
128
146
|
For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
|
|
129
147
|
"""
|
|
130
|
-
return
|
|
148
|
+
return AsyncAccountResourceWithRawResponse(self)
|
|
131
149
|
|
|
132
150
|
@cached_property
|
|
133
|
-
def with_streaming_response(self) ->
|
|
151
|
+
def with_streaming_response(self) -> AsyncAccountResourceWithStreamingResponse:
|
|
134
152
|
"""
|
|
135
153
|
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
136
154
|
|
|
137
155
|
For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
|
|
138
156
|
"""
|
|
139
|
-
return
|
|
157
|
+
return AsyncAccountResourceWithStreamingResponse(self)
|
|
140
158
|
|
|
141
|
-
async def
|
|
159
|
+
async def get_balance(
|
|
142
160
|
self,
|
|
143
|
-
|
|
161
|
+
line_item_id: str,
|
|
144
162
|
*,
|
|
163
|
+
order_id: str,
|
|
145
164
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
146
165
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
147
166
|
extra_headers: Headers | None = None,
|
|
148
167
|
extra_query: Query | None = None,
|
|
149
168
|
extra_body: Body | None = None,
|
|
150
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
151
|
-
) ->
|
|
169
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
170
|
+
) -> None:
|
|
152
171
|
"""
|
|
153
|
-
|
|
154
|
-
categories (order-writeoff, unallocated, institution invoices, institution
|
|
155
|
-
uninvoiced, patient responsibility).
|
|
172
|
+
Get balance for a ledger account
|
|
156
173
|
|
|
157
174
|
Args:
|
|
158
175
|
extra_headers: Send extra headers
|
|
@@ -165,32 +182,43 @@ class AsyncOrdersResource(AsyncAPIResource):
|
|
|
165
182
|
"""
|
|
166
183
|
if not order_id:
|
|
167
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 {})}
|
|
168
188
|
return await self._get(
|
|
169
|
-
f"/api/v2/ledger/
|
|
189
|
+
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/balance",
|
|
170
190
|
options=make_request_options(
|
|
171
191
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
172
192
|
),
|
|
173
|
-
cast_to=
|
|
193
|
+
cast_to=NoneType,
|
|
174
194
|
)
|
|
175
195
|
|
|
176
|
-
async def
|
|
196
|
+
async def writeoff(
|
|
177
197
|
self,
|
|
198
|
+
line_item_id: str,
|
|
178
199
|
*,
|
|
179
|
-
|
|
200
|
+
order_id: str,
|
|
201
|
+
description: str,
|
|
202
|
+
metadata: Dict[str, object] | Omit = omit,
|
|
203
|
+
posted_at: str | Omit = omit,
|
|
180
204
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
181
205
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
182
206
|
extra_headers: Headers | None = None,
|
|
183
207
|
extra_query: Query | None = None,
|
|
184
208
|
extra_body: Body | None = None,
|
|
185
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
186
|
-
) ->
|
|
187
|
-
"""
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
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.
|
|
191
215
|
|
|
192
216
|
Args:
|
|
193
|
-
|
|
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.
|
|
194
222
|
|
|
195
223
|
extra_headers: Send extra headers
|
|
196
224
|
|
|
@@ -200,61 +228,70 @@ class AsyncOrdersResource(AsyncAPIResource):
|
|
|
200
228
|
|
|
201
229
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
202
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}")
|
|
203
235
|
return await self._post(
|
|
204
|
-
"/api/v2/ledger/
|
|
236
|
+
f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
|
|
205
237
|
body=await async_maybe_transform(
|
|
206
|
-
{
|
|
238
|
+
{
|
|
239
|
+
"description": description,
|
|
240
|
+
"metadata": metadata,
|
|
241
|
+
"posted_at": posted_at,
|
|
242
|
+
},
|
|
243
|
+
account_writeoff_params.AccountWriteoffParams,
|
|
207
244
|
),
|
|
208
245
|
options=make_request_options(
|
|
209
246
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
210
247
|
),
|
|
211
|
-
cast_to=
|
|
248
|
+
cast_to=AccountWriteoffResponse,
|
|
212
249
|
)
|
|
213
250
|
|
|
214
251
|
|
|
215
|
-
class
|
|
216
|
-
def __init__(self,
|
|
217
|
-
self.
|
|
252
|
+
class AccountResourceWithRawResponse:
|
|
253
|
+
def __init__(self, account: AccountResource) -> None:
|
|
254
|
+
self._account = account
|
|
218
255
|
|
|
219
|
-
self.
|
|
220
|
-
|
|
256
|
+
self.get_balance = to_raw_response_wrapper(
|
|
257
|
+
account.get_balance,
|
|
221
258
|
)
|
|
222
|
-
self.
|
|
223
|
-
|
|
259
|
+
self.writeoff = to_raw_response_wrapper(
|
|
260
|
+
account.writeoff,
|
|
224
261
|
)
|
|
225
262
|
|
|
226
263
|
|
|
227
|
-
class
|
|
228
|
-
def __init__(self,
|
|
229
|
-
self.
|
|
264
|
+
class AsyncAccountResourceWithRawResponse:
|
|
265
|
+
def __init__(self, account: AsyncAccountResource) -> None:
|
|
266
|
+
self._account = account
|
|
230
267
|
|
|
231
|
-
self.
|
|
232
|
-
|
|
268
|
+
self.get_balance = async_to_raw_response_wrapper(
|
|
269
|
+
account.get_balance,
|
|
233
270
|
)
|
|
234
|
-
self.
|
|
235
|
-
|
|
271
|
+
self.writeoff = async_to_raw_response_wrapper(
|
|
272
|
+
account.writeoff,
|
|
236
273
|
)
|
|
237
274
|
|
|
238
275
|
|
|
239
|
-
class
|
|
240
|
-
def __init__(self,
|
|
241
|
-
self.
|
|
276
|
+
class AccountResourceWithStreamingResponse:
|
|
277
|
+
def __init__(self, account: AccountResource) -> None:
|
|
278
|
+
self._account = account
|
|
242
279
|
|
|
243
|
-
self.
|
|
244
|
-
|
|
280
|
+
self.get_balance = to_streamed_response_wrapper(
|
|
281
|
+
account.get_balance,
|
|
245
282
|
)
|
|
246
|
-
self.
|
|
247
|
-
|
|
283
|
+
self.writeoff = to_streamed_response_wrapper(
|
|
284
|
+
account.writeoff,
|
|
248
285
|
)
|
|
249
286
|
|
|
250
287
|
|
|
251
|
-
class
|
|
252
|
-
def __init__(self,
|
|
253
|
-
self.
|
|
288
|
+
class AsyncAccountResourceWithStreamingResponse:
|
|
289
|
+
def __init__(self, account: AsyncAccountResource) -> None:
|
|
290
|
+
self._account = account
|
|
254
291
|
|
|
255
|
-
self.
|
|
256
|
-
|
|
292
|
+
self.get_balance = async_to_streamed_response_wrapper(
|
|
293
|
+
account.get_balance,
|
|
257
294
|
)
|
|
258
|
-
self.
|
|
259
|
-
|
|
295
|
+
self.writeoff = async_to_streamed_response_wrapper(
|
|
296
|
+
account.writeoff,
|
|
260
297
|
)
|