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,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import
|
|
5
|
+
from typing import Iterable
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@ from .payers import (
|
|
|
22
22
|
PayersResourceWithStreamingResponse,
|
|
23
23
|
AsyncPayersResourceWithStreamingResponse,
|
|
24
24
|
)
|
|
25
|
-
from ...._types import
|
|
25
|
+
from ...._types import Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
|
|
26
26
|
from ...._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
27
27
|
from ...._compat import cached_property
|
|
28
28
|
from ....types.v2 import (
|
|
@@ -84,7 +84,7 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
84
84
|
extra_headers: Headers | None = None,
|
|
85
85
|
extra_query: Query | None = None,
|
|
86
86
|
extra_body: Body | None = None,
|
|
87
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
87
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
88
88
|
) -> None:
|
|
89
89
|
"""
|
|
90
90
|
Calculates the cost of a patient's services based on the provided information.
|
|
@@ -128,16 +128,16 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
128
128
|
subscriber_last_name: str,
|
|
129
129
|
subscriber_member_id: str,
|
|
130
130
|
trading_partner_service_id: str,
|
|
131
|
-
payer_claim_number: str |
|
|
132
|
-
provider_name: str |
|
|
133
|
-
service_from_date: str |
|
|
134
|
-
service_to_date: str |
|
|
131
|
+
payer_claim_number: str | Omit = omit,
|
|
132
|
+
provider_name: str | Omit = omit,
|
|
133
|
+
service_from_date: str | Omit = omit,
|
|
134
|
+
service_to_date: str | Omit = omit,
|
|
135
135
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
136
136
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
137
137
|
extra_headers: Headers | None = None,
|
|
138
138
|
extra_query: Query | None = None,
|
|
139
139
|
extra_body: Body | None = None,
|
|
140
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
140
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
141
141
|
) -> object:
|
|
142
142
|
"""
|
|
143
143
|
Checks the real-time status of a claim using 276/277 transactions.
|
|
@@ -199,7 +199,7 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
199
199
|
*,
|
|
200
200
|
provider_identifier: str,
|
|
201
201
|
provider_name: str,
|
|
202
|
-
service_type_codes:
|
|
202
|
+
service_type_codes: SequenceNotStr[str],
|
|
203
203
|
subscriber_date_of_birth: str,
|
|
204
204
|
subscriber_first_name: str,
|
|
205
205
|
subscriber_last_name: str,
|
|
@@ -210,7 +210,7 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
210
210
|
extra_headers: Headers | None = None,
|
|
211
211
|
extra_query: Query | None = None,
|
|
212
212
|
extra_body: Body | None = None,
|
|
213
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
213
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
214
214
|
) -> ClearinghouseCheckEligibilityResponse:
|
|
215
215
|
"""
|
|
216
216
|
Verifies patient eligibility with a specific payer for given services based on
|
|
@@ -282,7 +282,7 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
282
282
|
extra_headers: Headers | None = None,
|
|
283
283
|
extra_query: Query | None = None,
|
|
284
284
|
extra_body: Body | None = None,
|
|
285
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
285
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
286
286
|
) -> object:
|
|
287
287
|
"""
|
|
288
288
|
Fetches coordination of benefits (COB) information for a patient from a
|
|
@@ -326,19 +326,19 @@ class ClearinghouseResource(SyncAPIResource):
|
|
|
326
326
|
self,
|
|
327
327
|
*,
|
|
328
328
|
person: clearinghouse_run_discovery_params.Person,
|
|
329
|
-
account_number: str |
|
|
330
|
-
check_credit: bool |
|
|
331
|
-
check_demographics: bool |
|
|
332
|
-
date_of_service: str |
|
|
333
|
-
run_business_rules: bool |
|
|
334
|
-
service_code: str |
|
|
335
|
-
idempotency_key: str |
|
|
329
|
+
account_number: str | Omit = omit,
|
|
330
|
+
check_credit: bool | Omit = omit,
|
|
331
|
+
check_demographics: bool | Omit = omit,
|
|
332
|
+
date_of_service: str | Omit = omit,
|
|
333
|
+
run_business_rules: bool | Omit = omit,
|
|
334
|
+
service_code: str | Omit = omit,
|
|
335
|
+
idempotency_key: str | Omit = omit,
|
|
336
336
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
337
337
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
338
338
|
extra_headers: Headers | None = None,
|
|
339
339
|
extra_query: Query | None = None,
|
|
340
340
|
extra_body: Body | None = None,
|
|
341
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
341
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
342
342
|
) -> ClearinghouseRunDiscoveryResponse:
|
|
343
343
|
"""
|
|
344
344
|
Initiates a discovery process to find insurance coverage for a patient using
|
|
@@ -425,7 +425,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
425
425
|
extra_headers: Headers | None = None,
|
|
426
426
|
extra_query: Query | None = None,
|
|
427
427
|
extra_body: Body | None = None,
|
|
428
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
428
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
429
429
|
) -> None:
|
|
430
430
|
"""
|
|
431
431
|
Calculates the cost of a patient's services based on the provided information.
|
|
@@ -469,16 +469,16 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
469
469
|
subscriber_last_name: str,
|
|
470
470
|
subscriber_member_id: str,
|
|
471
471
|
trading_partner_service_id: str,
|
|
472
|
-
payer_claim_number: str |
|
|
473
|
-
provider_name: str |
|
|
474
|
-
service_from_date: str |
|
|
475
|
-
service_to_date: str |
|
|
472
|
+
payer_claim_number: str | Omit = omit,
|
|
473
|
+
provider_name: str | Omit = omit,
|
|
474
|
+
service_from_date: str | Omit = omit,
|
|
475
|
+
service_to_date: str | Omit = omit,
|
|
476
476
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
477
477
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
478
478
|
extra_headers: Headers | None = None,
|
|
479
479
|
extra_query: Query | None = None,
|
|
480
480
|
extra_body: Body | None = None,
|
|
481
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
481
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
482
482
|
) -> object:
|
|
483
483
|
"""
|
|
484
484
|
Checks the real-time status of a claim using 276/277 transactions.
|
|
@@ -540,7 +540,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
540
540
|
*,
|
|
541
541
|
provider_identifier: str,
|
|
542
542
|
provider_name: str,
|
|
543
|
-
service_type_codes:
|
|
543
|
+
service_type_codes: SequenceNotStr[str],
|
|
544
544
|
subscriber_date_of_birth: str,
|
|
545
545
|
subscriber_first_name: str,
|
|
546
546
|
subscriber_last_name: str,
|
|
@@ -551,7 +551,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
551
551
|
extra_headers: Headers | None = None,
|
|
552
552
|
extra_query: Query | None = None,
|
|
553
553
|
extra_body: Body | None = None,
|
|
554
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
554
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
555
555
|
) -> ClearinghouseCheckEligibilityResponse:
|
|
556
556
|
"""
|
|
557
557
|
Verifies patient eligibility with a specific payer for given services based on
|
|
@@ -623,7 +623,7 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
623
623
|
extra_headers: Headers | None = None,
|
|
624
624
|
extra_query: Query | None = None,
|
|
625
625
|
extra_body: Body | None = None,
|
|
626
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
626
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
627
627
|
) -> object:
|
|
628
628
|
"""
|
|
629
629
|
Fetches coordination of benefits (COB) information for a patient from a
|
|
@@ -667,19 +667,19 @@ class AsyncClearinghouseResource(AsyncAPIResource):
|
|
|
667
667
|
self,
|
|
668
668
|
*,
|
|
669
669
|
person: clearinghouse_run_discovery_params.Person,
|
|
670
|
-
account_number: str |
|
|
671
|
-
check_credit: bool |
|
|
672
|
-
check_demographics: bool |
|
|
673
|
-
date_of_service: str |
|
|
674
|
-
run_business_rules: bool |
|
|
675
|
-
service_code: str |
|
|
676
|
-
idempotency_key: str |
|
|
670
|
+
account_number: str | Omit = omit,
|
|
671
|
+
check_credit: bool | Omit = omit,
|
|
672
|
+
check_demographics: bool | Omit = omit,
|
|
673
|
+
date_of_service: str | Omit = omit,
|
|
674
|
+
run_business_rules: bool | Omit = omit,
|
|
675
|
+
service_code: str | Omit = omit,
|
|
676
|
+
idempotency_key: str | Omit = omit,
|
|
677
677
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
678
678
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
679
679
|
extra_headers: Headers | None = None,
|
|
680
680
|
extra_query: Query | None = None,
|
|
681
681
|
extra_body: Body | None = None,
|
|
682
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
682
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
683
683
|
) -> ClearinghouseRunDiscoveryResponse:
|
|
684
684
|
"""
|
|
685
685
|
Initiates a discovery process to find insurance coverage for a patient using
|
|
@@ -4,7 +4,7 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import httpx
|
|
6
6
|
|
|
7
|
-
from ...._types import
|
|
7
|
+
from ...._types import Body, Query, Headers, NotGiven, not_given
|
|
8
8
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
9
9
|
from ...._compat import cached_property
|
|
10
10
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -50,7 +50,7 @@ class PayersResource(SyncAPIResource):
|
|
|
50
50
|
extra_headers: Headers | None = None,
|
|
51
51
|
extra_query: Query | None = None,
|
|
52
52
|
extra_body: Body | None = None,
|
|
53
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
53
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
54
54
|
) -> PayerListResponse:
|
|
55
55
|
"""Lists all payers available for eligibility checks."""
|
|
56
56
|
return self._get(
|
|
@@ -70,7 +70,7 @@ class PayersResource(SyncAPIResource):
|
|
|
70
70
|
extra_headers: Headers | None = None,
|
|
71
71
|
extra_query: Query | None = None,
|
|
72
72
|
extra_body: Body | None = None,
|
|
73
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
73
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
74
74
|
) -> PayerSearchResponse:
|
|
75
75
|
"""
|
|
76
76
|
Searches for payers based on the provided search criteria.
|
|
@@ -127,7 +127,7 @@ class AsyncPayersResource(AsyncAPIResource):
|
|
|
127
127
|
extra_headers: Headers | None = None,
|
|
128
128
|
extra_query: Query | None = None,
|
|
129
129
|
extra_body: Body | None = None,
|
|
130
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
130
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
131
131
|
) -> PayerListResponse:
|
|
132
132
|
"""Lists all payers available for eligibility checks."""
|
|
133
133
|
return await self._get(
|
|
@@ -147,7 +147,7 @@ class AsyncPayersResource(AsyncAPIResource):
|
|
|
147
147
|
extra_headers: Headers | None = None,
|
|
148
148
|
extra_query: Query | None = None,
|
|
149
149
|
extra_body: Body | None = None,
|
|
150
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
150
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
151
151
|
) -> PayerSearchResponse:
|
|
152
152
|
"""
|
|
153
153
|
Searches for payers based on the provided search criteria.
|
|
@@ -6,7 +6,7 @@ from typing import Dict, Iterable
|
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
9
|
-
from ..._types import
|
|
9
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
10
10
|
from ..._utils import maybe_transform, strip_not_given, async_maybe_transform
|
|
11
11
|
from ..._compat import cached_property
|
|
12
12
|
from ...types.v2 import communication_send_fax_params, communication_send_email_params, communication_send_letter_params
|
|
@@ -50,17 +50,17 @@ class CommunicationResource(SyncAPIResource):
|
|
|
50
50
|
body: str,
|
|
51
51
|
subject: str,
|
|
52
52
|
to: str,
|
|
53
|
-
attach_as_files: bool |
|
|
54
|
-
attachments: Iterable[communication_send_email_params.Attachment] |
|
|
55
|
-
enable_encryption: bool |
|
|
56
|
-
from_: str |
|
|
57
|
-
zip_attachments: bool |
|
|
53
|
+
attach_as_files: bool | Omit = omit,
|
|
54
|
+
attachments: Iterable[communication_send_email_params.Attachment] | Omit = omit,
|
|
55
|
+
enable_encryption: bool | Omit = omit,
|
|
56
|
+
from_: str | Omit = omit,
|
|
57
|
+
zip_attachments: bool | Omit = omit,
|
|
58
58
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
59
59
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
60
60
|
extra_headers: Headers | None = None,
|
|
61
61
|
extra_query: Query | None = None,
|
|
62
62
|
extra_body: Body | None = None,
|
|
63
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
63
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
64
64
|
) -> object:
|
|
65
65
|
"""Processes and dispatches an email.
|
|
66
66
|
|
|
@@ -123,15 +123,15 @@ class CommunicationResource(SyncAPIResource):
|
|
|
123
123
|
*,
|
|
124
124
|
document: communication_send_fax_params.Document,
|
|
125
125
|
to: str,
|
|
126
|
-
batch_delay_seconds: str |
|
|
127
|
-
enable_batch_collision_avoidance: bool |
|
|
128
|
-
enable_batch_delay: bool |
|
|
126
|
+
batch_delay_seconds: str | Omit = omit,
|
|
127
|
+
enable_batch_collision_avoidance: bool | Omit = omit,
|
|
128
|
+
enable_batch_delay: bool | Omit = omit,
|
|
129
129
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
130
130
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
131
131
|
extra_headers: Headers | None = None,
|
|
132
132
|
extra_query: Query | None = None,
|
|
133
133
|
extra_body: Body | None = None,
|
|
134
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
134
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
135
135
|
) -> CommunicationSendFaxResponse:
|
|
136
136
|
"""Initiates an asynchronous fax sending process.
|
|
137
137
|
|
|
@@ -186,15 +186,15 @@ class CommunicationResource(SyncAPIResource):
|
|
|
186
186
|
*,
|
|
187
187
|
document: communication_send_letter_params.Document,
|
|
188
188
|
to_address: communication_send_letter_params.ToAddress,
|
|
189
|
-
from_address: communication_send_letter_params.FromAddress |
|
|
190
|
-
metadata: Dict[str, str] |
|
|
191
|
-
idempotency_key: str |
|
|
189
|
+
from_address: communication_send_letter_params.FromAddress | Omit = omit,
|
|
190
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
191
|
+
idempotency_key: str | Omit = omit,
|
|
192
192
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
193
193
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
194
194
|
extra_headers: Headers | None = None,
|
|
195
195
|
extra_query: Query | None = None,
|
|
196
196
|
extra_body: Body | None = None,
|
|
197
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
197
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
198
198
|
) -> CommunicationSendLetterResponse:
|
|
199
199
|
"""Sends a physical letter.
|
|
200
200
|
|
|
@@ -261,17 +261,17 @@ class AsyncCommunicationResource(AsyncAPIResource):
|
|
|
261
261
|
body: str,
|
|
262
262
|
subject: str,
|
|
263
263
|
to: str,
|
|
264
|
-
attach_as_files: bool |
|
|
265
|
-
attachments: Iterable[communication_send_email_params.Attachment] |
|
|
266
|
-
enable_encryption: bool |
|
|
267
|
-
from_: str |
|
|
268
|
-
zip_attachments: bool |
|
|
264
|
+
attach_as_files: bool | Omit = omit,
|
|
265
|
+
attachments: Iterable[communication_send_email_params.Attachment] | Omit = omit,
|
|
266
|
+
enable_encryption: bool | Omit = omit,
|
|
267
|
+
from_: str | Omit = omit,
|
|
268
|
+
zip_attachments: bool | Omit = omit,
|
|
269
269
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
270
270
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
271
271
|
extra_headers: Headers | None = None,
|
|
272
272
|
extra_query: Query | None = None,
|
|
273
273
|
extra_body: Body | None = None,
|
|
274
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
274
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
275
275
|
) -> object:
|
|
276
276
|
"""Processes and dispatches an email.
|
|
277
277
|
|
|
@@ -334,15 +334,15 @@ class AsyncCommunicationResource(AsyncAPIResource):
|
|
|
334
334
|
*,
|
|
335
335
|
document: communication_send_fax_params.Document,
|
|
336
336
|
to: str,
|
|
337
|
-
batch_delay_seconds: str |
|
|
338
|
-
enable_batch_collision_avoidance: bool |
|
|
339
|
-
enable_batch_delay: bool |
|
|
337
|
+
batch_delay_seconds: str | Omit = omit,
|
|
338
|
+
enable_batch_collision_avoidance: bool | Omit = omit,
|
|
339
|
+
enable_batch_delay: bool | Omit = omit,
|
|
340
340
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
341
341
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
342
342
|
extra_headers: Headers | None = None,
|
|
343
343
|
extra_query: Query | None = None,
|
|
344
344
|
extra_body: Body | None = None,
|
|
345
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
345
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
346
346
|
) -> CommunicationSendFaxResponse:
|
|
347
347
|
"""Initiates an asynchronous fax sending process.
|
|
348
348
|
|
|
@@ -397,15 +397,15 @@ class AsyncCommunicationResource(AsyncAPIResource):
|
|
|
397
397
|
*,
|
|
398
398
|
document: communication_send_letter_params.Document,
|
|
399
399
|
to_address: communication_send_letter_params.ToAddress,
|
|
400
|
-
from_address: communication_send_letter_params.FromAddress |
|
|
401
|
-
metadata: Dict[str, str] |
|
|
402
|
-
idempotency_key: str |
|
|
400
|
+
from_address: communication_send_letter_params.FromAddress | Omit = omit,
|
|
401
|
+
metadata: Dict[str, str] | Omit = omit,
|
|
402
|
+
idempotency_key: str | Omit = omit,
|
|
403
403
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
404
404
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
405
405
|
extra_headers: Headers | None = None,
|
|
406
406
|
extra_query: Query | None = None,
|
|
407
407
|
extra_body: Body | None = None,
|
|
408
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
408
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
409
409
|
) -> CommunicationSendLetterResponse:
|
|
410
410
|
"""Sends a physical letter.
|
|
411
411
|
|
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ..._types import
|
|
10
|
+
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
11
11
|
from ..._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from ..._compat import cached_property
|
|
13
13
|
from ...types.v2 import database_execute_sql_params
|
|
@@ -49,13 +49,13 @@ class DatabaseResource(SyncAPIResource):
|
|
|
49
49
|
*,
|
|
50
50
|
query: str,
|
|
51
51
|
params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
|
|
52
|
-
|
|
|
52
|
+
| Omit = omit,
|
|
53
53
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
54
54
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
55
55
|
extra_headers: Headers | None = None,
|
|
56
56
|
extra_query: Query | None = None,
|
|
57
57
|
extra_body: Body | None = None,
|
|
58
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
58
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
59
59
|
) -> DatabaseExecuteSqlResponse:
|
|
60
60
|
"""Allows execution of arbitrary SQL queries against the Sample database.
|
|
61
61
|
|
|
@@ -121,13 +121,13 @@ class AsyncDatabaseResource(AsyncAPIResource):
|
|
|
121
121
|
*,
|
|
122
122
|
query: str,
|
|
123
123
|
params: List[Union[str, float, bool, Optional[Literal["null"]], Iterable[object], Dict[str, object]]]
|
|
124
|
-
|
|
|
124
|
+
| Omit = omit,
|
|
125
125
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
126
126
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
127
127
|
extra_headers: Headers | None = None,
|
|
128
128
|
extra_query: Query | None = None,
|
|
129
129
|
extra_body: Body | None = None,
|
|
130
|
-
timeout: float | httpx.Timeout | None | NotGiven =
|
|
130
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
131
131
|
) -> DatabaseExecuteSqlResponse:
|
|
132
132
|
"""Allows execution of arbitrary SQL queries against the Sample database.
|
|
133
133
|
|