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.
Files changed (132) hide show
  1. samplehc/__init__.py +3 -1
  2. samplehc/_base_client.py +12 -12
  3. samplehc/_client.py +8 -8
  4. samplehc/_compat.py +48 -48
  5. samplehc/_models.py +50 -44
  6. samplehc/_qs.py +7 -7
  7. samplehc/_types.py +53 -12
  8. samplehc/_utils/__init__.py +9 -2
  9. samplehc/_utils/_compat.py +45 -0
  10. samplehc/_utils/_datetime_parse.py +136 -0
  11. samplehc/_utils/_transform.py +13 -3
  12. samplehc/_utils/_typing.py +6 -1
  13. samplehc/_utils/_utils.py +4 -5
  14. samplehc/_version.py +1 -1
  15. samplehc/resources/v1/v1.py +9 -9
  16. samplehc/resources/v2/async_results.py +13 -13
  17. samplehc/resources/v2/browser_agents/__init__.py +33 -0
  18. samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +44 -12
  19. samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
  20. samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
  21. samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
  22. samplehc/resources/v2/browser_automation/availity.py +3 -3
  23. samplehc/resources/v2/clearinghouse/claim.py +29 -29
  24. samplehc/resources/v2/clearinghouse/clearinghouse.py +36 -36
  25. samplehc/resources/v2/clearinghouse/payers.py +5 -5
  26. samplehc/resources/v2/communication.py +29 -29
  27. samplehc/resources/v2/database.py +5 -5
  28. samplehc/resources/v2/documents/documents.py +152 -37
  29. samplehc/resources/v2/documents/formats.py +3 -3
  30. samplehc/resources/v2/documents/legacy.py +91 -6
  31. samplehc/resources/v2/documents/pdf_template.py +3 -3
  32. samplehc/resources/v2/documents/templates.py +27 -27
  33. samplehc/resources/v2/{events/events.py → events.py} +14 -46
  34. samplehc/resources/v2/hie/adt.py +7 -7
  35. samplehc/resources/v2/hie/documents.py +15 -15
  36. samplehc/resources/v2/integrations/__init__.py +28 -0
  37. samplehc/resources/v2/integrations/bank/transactions.py +5 -5
  38. samplehc/resources/v2/integrations/careviso.py +36 -36
  39. samplehc/resources/v2/integrations/glidian/glidian.py +13 -13
  40. samplehc/resources/v2/integrations/glidian/prior_authorizations/clinical_questions.py +5 -5
  41. samplehc/resources/v2/integrations/glidian/prior_authorizations/prior_authorizations.py +19 -19
  42. samplehc/resources/v2/integrations/integrations.py +64 -0
  43. samplehc/resources/v2/integrations/kno2/messages.py +5 -5
  44. samplehc/resources/v2/integrations/salesforce.py +193 -0
  45. samplehc/resources/v2/integrations/snowflake.py +3 -3
  46. samplehc/resources/v2/{events/integrations → integrations}/xcures.py +13 -13
  47. samplehc/resources/v2/ledger/__init__.py +27 -55
  48. samplehc/resources/v2/ledger/{orders.py → account.py} +123 -86
  49. samplehc/resources/v2/ledger/entry.py +381 -0
  50. samplehc/resources/v2/ledger/ledger.py +38 -1560
  51. samplehc/resources/v2/policies.py +47 -47
  52. samplehc/resources/v2/tasks/state.py +7 -7
  53. samplehc/resources/v2/tasks/tasks.py +15 -15
  54. samplehc/resources/v2/v2.py +16 -16
  55. samplehc/resources/v2/workflow_runs/step.py +3 -3
  56. samplehc/resources/v2/workflow_runs/workflow_runs.py +11 -11
  57. samplehc/resources/v2/workflows.py +13 -13
  58. samplehc/types/v2/__init__.py +1 -28
  59. samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
  60. samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
  61. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +28 -0
  62. samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
  63. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
  64. samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
  65. samplehc/types/v2/communication_send_letter_params.py +4 -3
  66. samplehc/types/v2/document_classify_params.py +3 -2
  67. samplehc/types/v2/document_extract_params.py +4 -1
  68. samplehc/types/v2/document_generate_csv_params.py +3 -2
  69. samplehc/types/v2/document_split_params.py +16 -1
  70. samplehc/types/v2/document_unzip_async_response.py +12 -0
  71. samplehc/types/v2/documents/__init__.py +2 -0
  72. samplehc/types/v2/documents/legacy_extract_params.py +8 -7
  73. samplehc/types/v2/documents/legacy_split_params.py +20 -0
  74. samplehc/types/v2/documents/legacy_split_response.py +12 -0
  75. samplehc/types/v2/documents/template_render_document_params.py +17 -5
  76. samplehc/types/v2/integrations/__init__.py +2 -0
  77. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
  78. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
  79. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
  80. samplehc/types/v2/ledger/__init__.py +6 -17
  81. samplehc/types/v2/ledger/account_writeoff_params.py +23 -0
  82. samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
  83. samplehc/types/v2/ledger/entry_post_params.py +60 -0
  84. samplehc/types/v2/ledger/entry_post_response.py +10 -0
  85. samplehc/types/v2/ledger/entry_reverse_params.py +18 -0
  86. samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
  87. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/METADATA +1 -1
  88. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/RECORD +92 -111
  89. samplehc/resources/v2/events/__init__.py +0 -33
  90. samplehc/resources/v2/events/integrations/__init__.py +0 -33
  91. samplehc/resources/v2/events/integrations/integrations.py +0 -102
  92. samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
  93. samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
  94. samplehc/resources/v2/ledger/institutions/orders.py +0 -169
  95. samplehc/resources/v2/ledger/insurance.py +0 -141
  96. samplehc/resources/v2/ledger/patients.py +0 -141
  97. samplehc/types/v2/events/integrations/__init__.py +0 -5
  98. samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
  99. samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
  100. samplehc/types/v2/ledger/institutions/__init__.py +0 -5
  101. samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
  102. samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
  103. samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
  104. samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
  105. samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
  106. samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
  107. samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
  108. samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
  109. samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
  110. samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
  111. samplehc/types/v2/ledger_claim_payment_params.py +0 -34
  112. samplehc/types/v2/ledger_claim_payment_response.py +0 -12
  113. samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
  114. samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
  115. samplehc/types/v2/ledger_institution_payment_params.py +0 -31
  116. samplehc/types/v2/ledger_institution_payment_response.py +0 -12
  117. samplehc/types/v2/ledger_new_order_params.py +0 -22
  118. samplehc/types/v2/ledger_new_order_response.py +0 -12
  119. samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
  120. samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
  121. samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
  122. samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
  123. samplehc/types/v2/ledger_patient_payment_params.py +0 -28
  124. samplehc/types/v2/ledger_patient_payment_response.py +0 -12
  125. samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
  126. samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
  127. samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
  128. samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
  129. /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
  130. /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
  131. {samplehc-0.10.0.dist-info → samplehc-0.12.0.dist-info}/WHEEL +0 -0
  132. {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 List
5
+ from typing import Dict
6
6
 
7
7
  import httpx
8
8
 
9
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
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 order_retrieve_batch_balances_params
21
- from ....types.v2.ledger.order_retrieve_balances_response import OrderRetrieveBalancesResponse
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__ = ["OrdersResource", "AsyncOrdersResource"]
23
+ __all__ = ["AccountResource", "AsyncAccountResource"]
25
24
 
26
25
 
27
- class OrdersResource(SyncAPIResource):
26
+ class AccountResource(SyncAPIResource):
28
27
  @cached_property
29
- def with_raw_response(self) -> OrdersResourceWithRawResponse:
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 OrdersResourceWithRawResponse(self)
35
+ return AccountResourceWithRawResponse(self)
37
36
 
38
37
  @cached_property
39
- def with_streaming_response(self) -> OrdersResourceWithStreamingResponse:
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 OrdersResourceWithStreamingResponse(self)
44
+ return AccountResourceWithStreamingResponse(self)
46
45
 
47
- def retrieve_balances(
46
+ def get_balance(
48
47
  self,
49
- order_id: str,
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 = NOT_GIVEN,
57
- ) -> OrderRetrieveBalancesResponse:
56
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
57
+ ) -> None:
58
58
  """
59
- Retrieves outstanding balances for a single order ID across all balance
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/orders/{order_id}/balances",
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=OrderRetrieveBalancesResponse,
80
+ cast_to=NoneType,
80
81
  )
81
82
 
82
- def retrieve_batch_balances(
83
+ def writeoff(
83
84
  self,
85
+ line_item_id: str,
84
86
  *,
85
- order_ids: List[str],
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 = NOT_GIVEN,
92
- ) -> OrderRetrieveBatchBalancesResponse:
93
- """
94
- Retrieves outstanding balances for an array of order IDs across all balance
95
- categories (order-writeoff, unallocated, institution invoices, institution
96
- uninvoiced, patient responsibility).
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
- order_ids: Array of order IDs to retrieve balances for (max 100)
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/orders/batch-balances",
123
+ f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
111
124
  body=maybe_transform(
112
- {"order_ids": order_ids}, order_retrieve_batch_balances_params.OrderRetrieveBatchBalancesParams
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=OrderRetrieveBatchBalancesResponse,
135
+ cast_to=AccountWriteoffResponse,
118
136
  )
119
137
 
120
138
 
121
- class AsyncOrdersResource(AsyncAPIResource):
139
+ class AsyncAccountResource(AsyncAPIResource):
122
140
  @cached_property
123
- def with_raw_response(self) -> AsyncOrdersResourceWithRawResponse:
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 AsyncOrdersResourceWithRawResponse(self)
148
+ return AsyncAccountResourceWithRawResponse(self)
131
149
 
132
150
  @cached_property
133
- def with_streaming_response(self) -> AsyncOrdersResourceWithStreamingResponse:
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 AsyncOrdersResourceWithStreamingResponse(self)
157
+ return AsyncAccountResourceWithStreamingResponse(self)
140
158
 
141
- async def retrieve_balances(
159
+ async def get_balance(
142
160
  self,
143
- order_id: str,
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 = NOT_GIVEN,
151
- ) -> OrderRetrieveBalancesResponse:
169
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
170
+ ) -> None:
152
171
  """
153
- Retrieves outstanding balances for a single order ID across all balance
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/orders/{order_id}/balances",
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=OrderRetrieveBalancesResponse,
193
+ cast_to=NoneType,
174
194
  )
175
195
 
176
- async def retrieve_batch_balances(
196
+ async def writeoff(
177
197
  self,
198
+ line_item_id: str,
178
199
  *,
179
- order_ids: List[str],
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 = NOT_GIVEN,
186
- ) -> OrderRetrieveBatchBalancesResponse:
187
- """
188
- Retrieves outstanding balances for an array of order IDs across all balance
189
- categories (order-writeoff, unallocated, institution invoices, institution
190
- uninvoiced, patient responsibility).
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
- order_ids: Array of order IDs to retrieve balances for (max 100)
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/orders/batch-balances",
236
+ f"/api/v2/ledger/account/{order_id}/line-item/{line_item_id}/writeoff",
205
237
  body=await async_maybe_transform(
206
- {"order_ids": order_ids}, order_retrieve_batch_balances_params.OrderRetrieveBatchBalancesParams
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=OrderRetrieveBatchBalancesResponse,
248
+ cast_to=AccountWriteoffResponse,
212
249
  )
213
250
 
214
251
 
215
- class OrdersResourceWithRawResponse:
216
- def __init__(self, orders: OrdersResource) -> None:
217
- self._orders = orders
252
+ class AccountResourceWithRawResponse:
253
+ def __init__(self, account: AccountResource) -> None:
254
+ self._account = account
218
255
 
219
- self.retrieve_balances = to_raw_response_wrapper(
220
- orders.retrieve_balances,
256
+ self.get_balance = to_raw_response_wrapper(
257
+ account.get_balance,
221
258
  )
222
- self.retrieve_batch_balances = to_raw_response_wrapper(
223
- orders.retrieve_batch_balances,
259
+ self.writeoff = to_raw_response_wrapper(
260
+ account.writeoff,
224
261
  )
225
262
 
226
263
 
227
- class AsyncOrdersResourceWithRawResponse:
228
- def __init__(self, orders: AsyncOrdersResource) -> None:
229
- self._orders = orders
264
+ class AsyncAccountResourceWithRawResponse:
265
+ def __init__(self, account: AsyncAccountResource) -> None:
266
+ self._account = account
230
267
 
231
- self.retrieve_balances = async_to_raw_response_wrapper(
232
- orders.retrieve_balances,
268
+ self.get_balance = async_to_raw_response_wrapper(
269
+ account.get_balance,
233
270
  )
234
- self.retrieve_batch_balances = async_to_raw_response_wrapper(
235
- orders.retrieve_batch_balances,
271
+ self.writeoff = async_to_raw_response_wrapper(
272
+ account.writeoff,
236
273
  )
237
274
 
238
275
 
239
- class OrdersResourceWithStreamingResponse:
240
- def __init__(self, orders: OrdersResource) -> None:
241
- self._orders = orders
276
+ class AccountResourceWithStreamingResponse:
277
+ def __init__(self, account: AccountResource) -> None:
278
+ self._account = account
242
279
 
243
- self.retrieve_balances = to_streamed_response_wrapper(
244
- orders.retrieve_balances,
280
+ self.get_balance = to_streamed_response_wrapper(
281
+ account.get_balance,
245
282
  )
246
- self.retrieve_batch_balances = to_streamed_response_wrapper(
247
- orders.retrieve_batch_balances,
283
+ self.writeoff = to_streamed_response_wrapper(
284
+ account.writeoff,
248
285
  )
249
286
 
250
287
 
251
- class AsyncOrdersResourceWithStreamingResponse:
252
- def __init__(self, orders: AsyncOrdersResource) -> None:
253
- self._orders = orders
288
+ class AsyncAccountResourceWithStreamingResponse:
289
+ def __init__(self, account: AsyncAccountResource) -> None:
290
+ self._account = account
254
291
 
255
- self.retrieve_balances = async_to_streamed_response_wrapper(
256
- orders.retrieve_balances,
292
+ self.get_balance = async_to_streamed_response_wrapper(
293
+ account.get_balance,
257
294
  )
258
- self.retrieve_batch_balances = async_to_streamed_response_wrapper(
259
- orders.retrieve_batch_balances,
295
+ self.writeoff = async_to_streamed_response_wrapper(
296
+ account.writeoff,
260
297
  )