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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. samplehc/_base_client.py +3 -3
  2. samplehc/_compat.py +48 -48
  3. samplehc/_models.py +40 -40
  4. samplehc/_types.py +35 -1
  5. samplehc/_utils/__init__.py +9 -2
  6. samplehc/_utils/_compat.py +45 -0
  7. samplehc/_utils/_datetime_parse.py +136 -0
  8. samplehc/_utils/_transform.py +11 -1
  9. samplehc/_utils/_typing.py +6 -1
  10. samplehc/_utils/_utils.py +0 -1
  11. samplehc/_version.py +1 -1
  12. samplehc/resources/v2/browser_agents/__init__.py +33 -0
  13. samplehc/resources/v2/{browser_agents.py → browser_agents/browser_agents.py} +40 -8
  14. samplehc/resources/v2/browser_agents/runs/__init__.py +33 -0
  15. samplehc/resources/v2/browser_agents/runs/help_requests.py +191 -0
  16. samplehc/resources/v2/browser_agents/runs/runs.py +102 -0
  17. samplehc/resources/v2/clearinghouse/clearinghouse.py +4 -4
  18. samplehc/resources/v2/{events/events.py → events.py} +8 -40
  19. samplehc/resources/v2/integrations/__init__.py +28 -0
  20. samplehc/resources/v2/integrations/careviso.py +10 -10
  21. samplehc/resources/v2/integrations/integrations.py +64 -0
  22. samplehc/resources/v2/integrations/salesforce.py +193 -0
  23. samplehc/resources/v2/{events/integrations → integrations}/xcures.py +7 -7
  24. samplehc/resources/v2/ledger/__init__.py +27 -55
  25. samplehc/resources/v2/ledger/{orders.py → account.py} +120 -82
  26. samplehc/resources/v2/ledger/entry.py +382 -0
  27. samplehc/resources/v2/ledger/ledger.py +38 -1560
  28. samplehc/resources/v2/v2.py +16 -16
  29. samplehc/types/v2/__init__.py +0 -28
  30. samplehc/types/v2/browser_agents/runs/__init__.py +6 -0
  31. samplehc/types/v2/browser_agents/runs/help_request_resolve_params.py +18 -0
  32. samplehc/types/v2/browser_agents/runs/help_request_resolve_response.py +30 -0
  33. samplehc/types/v2/clearinghouse/claim_submit_params.py +10 -9
  34. samplehc/types/v2/clearinghouse_calculate_patient_cost_params.py +3 -2
  35. samplehc/types/v2/clearinghouse_check_eligibility_params.py +2 -2
  36. samplehc/types/v2/communication_send_letter_params.py +4 -3
  37. samplehc/types/v2/document_classify_params.py +3 -2
  38. samplehc/types/v2/document_generate_csv_params.py +3 -2
  39. samplehc/types/v2/documents/legacy_extract_params.py +8 -7
  40. samplehc/types/v2/integrations/__init__.py +2 -0
  41. samplehc/types/v2/integrations/careviso_submit_prior_authorization_params.py +6 -5
  42. samplehc/types/v2/integrations/glidian/prior_authorizations/clinical_question_update_params.py +3 -2
  43. samplehc/types/v2/integrations/salesforce_run_crud_action_params.py +22 -0
  44. samplehc/types/v2/ledger/__init__.py +6 -17
  45. samplehc/types/v2/ledger/account_writeoff_params.py +24 -0
  46. samplehc/types/v2/ledger/account_writeoff_response.py +12 -0
  47. samplehc/types/v2/ledger/entry_post_params.py +61 -0
  48. samplehc/types/v2/ledger/entry_post_response.py +10 -0
  49. samplehc/types/v2/ledger/entry_reverse_params.py +19 -0
  50. samplehc/types/v2/ledger/entry_reverse_response.py +10 -0
  51. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/METADATA +1 -1
  52. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/RECORD +56 -78
  53. samplehc/resources/v2/events/__init__.py +0 -33
  54. samplehc/resources/v2/events/integrations/__init__.py +0 -33
  55. samplehc/resources/v2/events/integrations/integrations.py +0 -102
  56. samplehc/resources/v2/ledger/institutions/__init__.py +0 -33
  57. samplehc/resources/v2/ledger/institutions/institutions.py +0 -258
  58. samplehc/resources/v2/ledger/institutions/orders.py +0 -169
  59. samplehc/resources/v2/ledger/insurance.py +0 -141
  60. samplehc/resources/v2/ledger/patients.py +0 -141
  61. samplehc/types/v2/events/integrations/__init__.py +0 -5
  62. samplehc/types/v2/ledger/institution_list_outstanding_accounts_response.py +0 -25
  63. samplehc/types/v2/ledger/institution_retrieve_outstanding_orders_response.py +0 -25
  64. samplehc/types/v2/ledger/institutions/__init__.py +0 -5
  65. samplehc/types/v2/ledger/institutions/order_retrieve_balance_response.py +0 -12
  66. samplehc/types/v2/ledger/insurance_list_outstanding_accounts_response.py +0 -25
  67. samplehc/types/v2/ledger/order_retrieve_balances_response.py +0 -31
  68. samplehc/types/v2/ledger/order_retrieve_batch_balances_params.py +0 -15
  69. samplehc/types/v2/ledger/order_retrieve_batch_balances_response.py +0 -38
  70. samplehc/types/v2/ledger/patient_list_outstanding_accounts_response.py +0 -22
  71. samplehc/types/v2/ledger_assign_invoice_params.py +0 -34
  72. samplehc/types/v2/ledger_assign_invoice_response.py +0 -12
  73. samplehc/types/v2/ledger_claim_adjustment_params.py +0 -34
  74. samplehc/types/v2/ledger_claim_adjustment_response.py +0 -12
  75. samplehc/types/v2/ledger_claim_payment_params.py +0 -34
  76. samplehc/types/v2/ledger_claim_payment_response.py +0 -12
  77. samplehc/types/v2/ledger_institution_adjustment_params.py +0 -31
  78. samplehc/types/v2/ledger_institution_adjustment_response.py +0 -12
  79. samplehc/types/v2/ledger_institution_payment_params.py +0 -31
  80. samplehc/types/v2/ledger_institution_payment_response.py +0 -12
  81. samplehc/types/v2/ledger_new_order_params.py +0 -22
  82. samplehc/types/v2/ledger_new_order_response.py +0 -12
  83. samplehc/types/v2/ledger_order_writeoff_params.py +0 -28
  84. samplehc/types/v2/ledger_order_writeoff_response.py +0 -12
  85. samplehc/types/v2/ledger_patient_adjustment_params.py +0 -31
  86. samplehc/types/v2/ledger_patient_adjustment_response.py +0 -12
  87. samplehc/types/v2/ledger_patient_payment_params.py +0 -28
  88. samplehc/types/v2/ledger_patient_payment_response.py +0 -12
  89. samplehc/types/v2/ledger_post_remittance_accepted_params.py +0 -37
  90. samplehc/types/v2/ledger_post_remittance_accepted_response.py +0 -12
  91. samplehc/types/v2/ledger_reverse_entry_params.py +0 -12
  92. samplehc/types/v2/ledger_reverse_entry_response.py +0 -12
  93. /samplehc/types/v2/{events → browser_agents}/__init__.py +0 -0
  94. /samplehc/types/v2/{events/integrations → integrations}/xcure_make_request_params.py +0 -0
  95. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/WHEEL +0 -0
  96. {samplehc-0.10.0.dist-info → samplehc-0.11.0.dist-info}/licenses/LICENSE +0 -0
@@ -1,141 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from __future__ import annotations
4
-
5
- import httpx
6
-
7
- from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
- from ...._compat import cached_property
9
- from ...._resource import SyncAPIResource, AsyncAPIResource
10
- from ...._response import (
11
- to_raw_response_wrapper,
12
- to_streamed_response_wrapper,
13
- async_to_raw_response_wrapper,
14
- async_to_streamed_response_wrapper,
15
- )
16
- from ...._base_client import make_request_options
17
- from ....types.v2.ledger.patient_list_outstanding_accounts_response import PatientListOutstandingAccountsResponse
18
-
19
- __all__ = ["PatientsResource", "AsyncPatientsResource"]
20
-
21
-
22
- class PatientsResource(SyncAPIResource):
23
- @cached_property
24
- def with_raw_response(self) -> PatientsResourceWithRawResponse:
25
- """
26
- This property can be used as a prefix for any HTTP method call to return
27
- the raw response object instead of the parsed content.
28
-
29
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
30
- """
31
- return PatientsResourceWithRawResponse(self)
32
-
33
- @cached_property
34
- def with_streaming_response(self) -> PatientsResourceWithStreamingResponse:
35
- """
36
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
37
-
38
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
39
- """
40
- return PatientsResourceWithStreamingResponse(self)
41
-
42
- def list_outstanding_accounts(
43
- self,
44
- *,
45
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
46
- # The extra values given here take precedence over values defined on the client or passed to this method.
47
- extra_headers: Headers | None = None,
48
- extra_query: Query | None = None,
49
- extra_body: Body | None = None,
50
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
- ) -> PatientListOutstandingAccountsResponse:
52
- """
53
- Retrieves all outstanding patient accounts across all patients (accounts with
54
- non-zero balances).
55
- """
56
- return self._get(
57
- "/api/v2/ledger/patients/outstanding-accounts",
58
- options=make_request_options(
59
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
60
- ),
61
- cast_to=PatientListOutstandingAccountsResponse,
62
- )
63
-
64
-
65
- class AsyncPatientsResource(AsyncAPIResource):
66
- @cached_property
67
- def with_raw_response(self) -> AsyncPatientsResourceWithRawResponse:
68
- """
69
- This property can be used as a prefix for any HTTP method call to return
70
- the raw response object instead of the parsed content.
71
-
72
- For more information, see https://www.github.com/samplehc/samplehc-python#accessing-raw-response-data-eg-headers
73
- """
74
- return AsyncPatientsResourceWithRawResponse(self)
75
-
76
- @cached_property
77
- def with_streaming_response(self) -> AsyncPatientsResourceWithStreamingResponse:
78
- """
79
- An alternative to `.with_raw_response` that doesn't eagerly read the response body.
80
-
81
- For more information, see https://www.github.com/samplehc/samplehc-python#with_streaming_response
82
- """
83
- return AsyncPatientsResourceWithStreamingResponse(self)
84
-
85
- async def list_outstanding_accounts(
86
- self,
87
- *,
88
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
89
- # The extra values given here take precedence over values defined on the client or passed to this method.
90
- extra_headers: Headers | None = None,
91
- extra_query: Query | None = None,
92
- extra_body: Body | None = None,
93
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
94
- ) -> PatientListOutstandingAccountsResponse:
95
- """
96
- Retrieves all outstanding patient accounts across all patients (accounts with
97
- non-zero balances).
98
- """
99
- return await self._get(
100
- "/api/v2/ledger/patients/outstanding-accounts",
101
- options=make_request_options(
102
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
103
- ),
104
- cast_to=PatientListOutstandingAccountsResponse,
105
- )
106
-
107
-
108
- class PatientsResourceWithRawResponse:
109
- def __init__(self, patients: PatientsResource) -> None:
110
- self._patients = patients
111
-
112
- self.list_outstanding_accounts = to_raw_response_wrapper(
113
- patients.list_outstanding_accounts,
114
- )
115
-
116
-
117
- class AsyncPatientsResourceWithRawResponse:
118
- def __init__(self, patients: AsyncPatientsResource) -> None:
119
- self._patients = patients
120
-
121
- self.list_outstanding_accounts = async_to_raw_response_wrapper(
122
- patients.list_outstanding_accounts,
123
- )
124
-
125
-
126
- class PatientsResourceWithStreamingResponse:
127
- def __init__(self, patients: PatientsResource) -> None:
128
- self._patients = patients
129
-
130
- self.list_outstanding_accounts = to_streamed_response_wrapper(
131
- patients.list_outstanding_accounts,
132
- )
133
-
134
-
135
- class AsyncPatientsResourceWithStreamingResponse:
136
- def __init__(self, patients: AsyncPatientsResource) -> None:
137
- self._patients = patients
138
-
139
- self.list_outstanding_accounts = async_to_streamed_response_wrapper(
140
- patients.list_outstanding_accounts,
141
- )
@@ -1,5 +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 .xcure_make_request_params import XcureMakeRequestParams as XcureMakeRequestParams
@@ -1,25 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ...._models import BaseModel
8
-
9
- __all__ = ["InstitutionListOutstandingAccountsResponse", "Account"]
10
-
11
-
12
- class Account(BaseModel):
13
- balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
14
- """Outstanding balance in cents"""
15
-
16
- institution_id: str = FieldInfo(alias="institutionId")
17
- """Institution ID"""
18
-
19
- invoice_id: str = FieldInfo(alias="invoiceId")
20
- """Invoice ID"""
21
-
22
-
23
- class InstitutionListOutstandingAccountsResponse(BaseModel):
24
- accounts: List[Account]
25
- """List of all outstanding institutional accounts"""
@@ -1,25 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ...._models import BaseModel
8
-
9
- __all__ = ["InstitutionRetrieveOutstandingOrdersResponse", "Order"]
10
-
11
-
12
- class Order(BaseModel):
13
- balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
14
- """Outstanding balance in cents"""
15
-
16
- institution_id: str = FieldInfo(alias="institutionId")
17
- """Institution ID"""
18
-
19
- order_id: str = FieldInfo(alias="orderId")
20
- """Order ID"""
21
-
22
-
23
- class InstitutionRetrieveOutstandingOrdersResponse(BaseModel):
24
- orders: List[Order]
25
- """List of outstanding institutional orders"""
@@ -1,5 +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 .order_retrieve_balance_response import OrderRetrieveBalanceResponse as OrderRetrieveBalanceResponse
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ....._models import BaseModel
6
-
7
- __all__ = ["OrderRetrieveBalanceResponse"]
8
-
9
-
10
- class OrderRetrieveBalanceResponse(BaseModel):
11
- balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
12
- """Balance in cents"""
@@ -1,25 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ...._models import BaseModel
8
-
9
- __all__ = ["InsuranceListOutstandingAccountsResponse", "Account"]
10
-
11
-
12
- class Account(BaseModel):
13
- balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
14
- """Outstanding balance in cents"""
15
-
16
- claim_id: str = FieldInfo(alias="claimId")
17
- """Claim ID"""
18
-
19
- insurance_id: str = FieldInfo(alias="insuranceId")
20
- """Insurance ID"""
21
-
22
-
23
- class InsuranceListOutstandingAccountsResponse(BaseModel):
24
- accounts: List[Account]
25
- """List of all outstanding insurance accounts"""
@@ -1,31 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ...._models import BaseModel
6
-
7
- __all__ = ["OrderRetrieveBalancesResponse", "Balances"]
8
-
9
-
10
- class Balances(BaseModel):
11
- institution_invoiced: float = FieldInfo(alias="institutionInvoiced")
12
- """Institution invoiced balance in cents"""
13
-
14
- institution_uninvoiced: float = FieldInfo(alias="institutionUninvoiced")
15
- """Institution uninvoiced balance in cents"""
16
-
17
- order_writeoff: float = FieldInfo(alias="orderWriteoff")
18
- """Order writeoff balance in cents"""
19
-
20
- patient_responsibility: float = FieldInfo(alias="patientResponsibility")
21
- """Patient responsibility balance in cents"""
22
-
23
- unallocated: float
24
- """Unallocated balance in cents"""
25
-
26
-
27
- class OrderRetrieveBalancesResponse(BaseModel):
28
- balances: Balances
29
-
30
- order_id: str = FieldInfo(alias="orderId")
31
- """Order ID"""
@@ -1,15 +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 List
6
- from typing_extensions import Required, Annotated, TypedDict
7
-
8
- from ...._utils import PropertyInfo
9
-
10
- __all__ = ["OrderRetrieveBatchBalancesParams"]
11
-
12
-
13
- class OrderRetrieveBatchBalancesParams(TypedDict, total=False):
14
- order_ids: Required[Annotated[List[str], PropertyInfo(alias="orderIds")]]
15
- """Array of order IDs to retrieve balances for (max 100)"""
@@ -1,38 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ...._models import BaseModel
8
-
9
- __all__ = ["OrderRetrieveBatchBalancesResponse", "Order", "OrderBalances"]
10
-
11
-
12
- class OrderBalances(BaseModel):
13
- institution_invoiced: float = FieldInfo(alias="institutionInvoiced")
14
- """Institution invoiced balance in cents"""
15
-
16
- institution_uninvoiced: float = FieldInfo(alias="institutionUninvoiced")
17
- """Institution uninvoiced balance in cents"""
18
-
19
- order_writeoff: float = FieldInfo(alias="orderWriteoff")
20
- """Order writeoff balance in cents"""
21
-
22
- patient_responsibility: float = FieldInfo(alias="patientResponsibility")
23
- """Patient responsibility balance in cents"""
24
-
25
- unallocated: float
26
- """Unallocated balance in cents"""
27
-
28
-
29
- class Order(BaseModel):
30
- balances: OrderBalances
31
-
32
- order_id: str = FieldInfo(alias="orderId")
33
- """Order ID"""
34
-
35
-
36
- class OrderRetrieveBatchBalancesResponse(BaseModel):
37
- orders: List[Order]
38
- """Array of orders with their outstanding balances"""
@@ -1,22 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from typing import List
4
-
5
- from pydantic import Field as FieldInfo
6
-
7
- from ...._models import BaseModel
8
-
9
- __all__ = ["PatientListOutstandingAccountsResponse", "Account"]
10
-
11
-
12
- class Account(BaseModel):
13
- balance_usd_cents: float = FieldInfo(alias="balanceUsdCents")
14
- """Outstanding balance in cents"""
15
-
16
- patient_id: str = FieldInfo(alias="patientId")
17
- """Patient ID"""
18
-
19
-
20
- class PatientListOutstandingAccountsResponse(BaseModel):
21
- accounts: List[Account]
22
- """List of all outstanding patient accounts"""
@@ -1,34 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerAssignInvoiceParams"]
12
-
13
-
14
- class LedgerAssignInvoiceParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Assignment amount in cents (positive or negative)."""
17
-
18
- ik: Required[str]
19
- """Idempotency key for the assignment."""
20
-
21
- institution_id: Required[Annotated[str, PropertyInfo(alias="institutionId")]]
22
- """Identifier of the institution for the assignment."""
23
-
24
- invoice_id: Required[Annotated[str, PropertyInfo(alias="invoiceId")]]
25
- """Invoice ID being assigned."""
26
-
27
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
28
- """Order ID associated with the assignment."""
29
-
30
- reason: Required[str]
31
- """Reason for the assignment."""
32
-
33
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
34
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerAssignInvoiceResponse"]
8
-
9
-
10
- class LedgerAssignInvoiceResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """Created ledger entry ID"""
@@ -1,34 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerClaimAdjustmentParams"]
12
-
13
-
14
- class LedgerClaimAdjustmentParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Adjustment amount in cents (positive or negative)."""
17
-
18
- claim_id: Required[Annotated[str, PropertyInfo(alias="claimId")]]
19
- """Identifier of the claim associated with this adjustment."""
20
-
21
- ik: Required[str]
22
- """Idempotency key for the adjustment."""
23
-
24
- insurance_id: Required[Annotated[str, PropertyInfo(alias="insuranceId")]]
25
- """Identifier of the insurance for the adjustment."""
26
-
27
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
28
- """Order ID associated with the adjustment."""
29
-
30
- reason: Required[str]
31
- """Reason for the adjustment."""
32
-
33
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
34
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerClaimAdjustmentResponse"]
8
-
9
-
10
- class LedgerClaimAdjustmentResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """The unique identifier of the successfully created ledger entry."""
@@ -1,34 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerClaimPaymentParams"]
12
-
13
-
14
- class LedgerClaimPaymentParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Payment amount in cents."""
17
-
18
- claim_id: Required[Annotated[str, PropertyInfo(alias="claimId")]]
19
- """Identifier of the claim associated with this payment."""
20
-
21
- ik: Required[str]
22
- """Idempotency key for the payment."""
23
-
24
- insurance_id: Required[Annotated[str, PropertyInfo(alias="insuranceId")]]
25
- """Identifier of the insurance for the payment."""
26
-
27
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
28
- """Order ID associated with the payment."""
29
-
30
- reason: Required[str]
31
- """Reason for the payment."""
32
-
33
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
34
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerClaimPaymentResponse"]
8
-
9
-
10
- class LedgerClaimPaymentResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """The unique identifier of the successfully created ledger entry."""
@@ -1,31 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerInstitutionAdjustmentParams"]
12
-
13
-
14
- class LedgerInstitutionAdjustmentParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Adjustment amount in cents (positive or negative)."""
17
-
18
- ik: Required[str]
19
- """Idempotency key for the adjustment."""
20
-
21
- institution_id: Required[Annotated[str, PropertyInfo(alias="institutionId")]]
22
- """Identifier of the institution for the adjustment."""
23
-
24
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
25
- """Order ID associated with the adjustment."""
26
-
27
- reason: Required[str]
28
- """Reason for the adjustment."""
29
-
30
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
31
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerInstitutionAdjustmentResponse"]
8
-
9
-
10
- class LedgerInstitutionAdjustmentResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """The unique identifier of the successfully created ledger entry."""
@@ -1,31 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerInstitutionPaymentParams"]
12
-
13
-
14
- class LedgerInstitutionPaymentParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Payment amount in cents."""
17
-
18
- ik: Required[str]
19
- """Idempotency key for the payment."""
20
-
21
- institution_id: Required[Annotated[str, PropertyInfo(alias="institutionId")]]
22
- """Identifier of the institution for the payment."""
23
-
24
- invoice_id: Required[Annotated[str, PropertyInfo(alias="invoiceId")]]
25
- """Identifier of the invoice associated with this payment."""
26
-
27
- reason: Required[str]
28
- """Reason for the payment."""
29
-
30
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
31
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerInstitutionPaymentResponse"]
8
-
9
-
10
- class LedgerInstitutionPaymentResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """The unique identifier of the successfully created ledger entry."""
@@ -1,22 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerNewOrderParams"]
12
-
13
-
14
- class LedgerNewOrderParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Total amount for the order, in cents."""
17
-
18
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
19
- """Unique identifier for the order being processed."""
20
-
21
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
22
- """Optional ISO 8601 date-time to post the entry."""
@@ -1,12 +0,0 @@
1
- # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- from pydantic import Field as FieldInfo
4
-
5
- from ..._models import BaseModel
6
-
7
- __all__ = ["LedgerNewOrderResponse"]
8
-
9
-
10
- class LedgerNewOrderResponse(BaseModel):
11
- ledger_entry_id: str = FieldInfo(alias="ledgerEntryId")
12
- """The unique identifier of the successfully created ledger entry."""
@@ -1,28 +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 Union
6
- from datetime import datetime
7
- from typing_extensions import Required, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
10
-
11
- __all__ = ["LedgerOrderWriteoffParams"]
12
-
13
-
14
- class LedgerOrderWriteoffParams(TypedDict, total=False):
15
- amount_usd_cents: Required[Annotated[float, PropertyInfo(alias="amountUsdCents")]]
16
- """Write-off amount in cents."""
17
-
18
- ik: Required[str]
19
- """Idempotency key for the write-off."""
20
-
21
- order_id: Required[Annotated[str, PropertyInfo(alias="orderId")]]
22
- """Order ID associated with the write-off."""
23
-
24
- reason: Required[str]
25
- """Reason for the write-off."""
26
-
27
- posted_at: Annotated[Union[str, datetime], PropertyInfo(alias="postedAt", format="iso8601")]
28
- """Optional ISO 8601 date-time to post the entry."""