lark-billing 0.0.6__py3-none-any.whl → 0.0.8__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.
Potentially problematic release.
This version of lark-billing might be problematic. Click here for more details.
- lark/__init__.py +92 -369
- lark/checkout/client.py +20 -79
- lark/checkout/raw_client.py +18 -102
- lark/client.py +112 -27
- lark/core/client_wrapper.py +2 -2
- lark/core/http_sse/__init__.py +42 -0
- lark/core/http_sse/_api.py +112 -0
- lark/core/http_sse/_decoders.py +61 -0
- lark/{types/credit_grant.py → core/http_sse/_exceptions.py} +4 -2
- lark/core/http_sse/_models.py +17 -0
- lark/core/pydantic_utilities.py +3 -1
- lark/{feature_access → customer_access}/client.py +30 -24
- lark/{feature_access → customer_access}/raw_client.py +22 -17
- lark/{types/rate_card.py → customer_portal/__init__.py} +1 -2
- lark/customer_portal/client.py +115 -0
- lark/customer_portal/raw_client.py +134 -0
- lark/environment.py +7 -0
- lark/{types/dimension.py → invoices/__init__.py} +1 -2
- lark/invoices/client.py +136 -0
- lark/invoices/raw_client.py +147 -0
- lark/pricing_metrics/__init__.py +38 -0
- lark/pricing_metrics/client.py +288 -0
- lark/pricing_metrics/raw_client.py +369 -0
- lark/pricing_metrics/types/__init__.py +42 -0
- lark/{types/credit_grant_resource_input_schedule.py → pricing_metrics/types/pricing_metric_aggregation.py} +7 -8
- lark/rate_cards/__init__.py +0 -15
- lark/rate_cards/client.py +30 -542
- lark/rate_cards/raw_client.py +34 -370
- lark/rate_cards/types/__init__.py +0 -17
- lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py +3 -29
- lark/subjects/client.py +18 -54
- lark/subjects/raw_client.py +14 -24
- lark/subscriptions/client.py +104 -80
- lark/subscriptions/raw_client.py +186 -53
- lark/types/__init__.py +63 -379
- lark/types/aggregation.py +1 -43
- lark/types/amount.py +5 -1
- lark/types/{credit_grant_date_time_expiration_interface.py → billing_state_response.py} +3 -2
- lark/types/{credit_grant_schedule_one_time_resource.py → count_aggregation_pricing_metric_resource.py} +1 -1
- lark/types/{create_dimension_interface.py → create_customer_portal_session_response.py} +3 -3
- lark/types/{create_dimension_coordinate_interface.py → create_fixed_rate_request.py} +5 -3
- lark/types/{pricing_metric_interface.py → create_pricing_metric_response.py} +2 -5
- lark/types/{create_simple_usage_based_rate_interface.py → create_simple_usage_based_rate_request.py} +6 -9
- lark/types/create_subject_response.py +30 -6
- lark/types/create_subscription_checkout_session_response.py +1 -2
- lark/types/create_usage_event_summary_response.py +1 -1
- lark/types/fixed_rate_interface.py +0 -6
- lark/types/{create_pricing_metric_interface.py → get_pricing_metric_response.py} +3 -5
- lark/types/{complete_subscription_checkout_response.py → invoice_line_item_resource.py} +4 -2
- lark/types/invoice_resource.py +31 -0
- lark/types/invoice_status.py +5 -0
- lark/types/{check_feature_access_response.py → list_invoices_response.py} +4 -4
- lark/types/{check_feature_access_request.py → list_pricing_metrics_response.py} +4 -7
- lark/types/package_price.py +2 -2
- lark/types/package_price_input_rounding_behavior.py +5 -0
- lark/types/package_price_output_rounding_behavior.py +5 -0
- lark/types/period_resource.py +23 -0
- lark/types/price.py +39 -1
- lark/types/pricing_metric_resource.py +24 -0
- lark/types/rate_card_resource.py +0 -6
- lark/types/rate_card_resource_usage_based_rates_item.py +2 -29
- lark/types/simple_usage_based_rate_interface.py +1 -7
- lark/types/subject_resource.py +30 -6
- lark/types/subscription_resource.py +6 -4
- lark/types/subscription_status.py +5 -0
- lark/types/{credit_grant_date_time_expiration_resource.py → sum_aggregation_pricing_metric_resource.py} +2 -2
- lark/types/{subject.py → value.py} +1 -1
- lark/usage_events/client.py +8 -21
- lark/usage_events/raw_client.py +6 -6
- {lark_billing-0.0.6.dist-info → lark_billing-0.0.8.dist-info}/METADATA +4 -3
- lark_billing-0.0.8.dist-info/RECORD +107 -0
- lark/rate_cards/types/create_rate_card_version_request_usage_based_rates_item.py +0 -58
- lark/rate_cards/types/create_rate_card_version_request_version_type.py +0 -5
- lark/types/create_credit_grant_interface.py +0 -27
- lark/types/create_credit_grant_interface_expiration.py +0 -27
- lark/types/create_credit_pool_request.py +0 -5
- lark/types/create_dimensional_usage_based_rate_interface.py +0 -32
- lark/types/create_fixed_rate_interface.py +0 -28
- lark/types/create_pricing_matrix_cell_interface.py +0 -22
- lark/types/create_pricing_matrix_interface.py +0 -20
- lark/types/create_pricing_plan_request.py +0 -5
- lark/types/create_rate_card_response.py +0 -36
- lark/types/create_rate_card_response_billing_interval.py +0 -5
- lark/types/create_rate_card_response_usage_based_rates_item.py +0 -58
- lark/types/create_rate_card_version_response.py +0 -36
- lark/types/create_rate_card_version_response_billing_interval.py +0 -5
- lark/types/create_rate_card_version_response_usage_based_rates_item.py +0 -59
- lark/types/credit_grant_duration_expiration_interface.py +0 -21
- lark/types/credit_grant_duration_expiration_resource.py +0 -21
- lark/types/credit_grant_interface.py +0 -28
- lark/types/credit_grant_interface_input_expiration.py +0 -27
- lark/types/credit_grant_interface_output_expiration.py +0 -43
- lark/types/credit_grant_interface_output_schedule.py +0 -41
- lark/types/credit_grant_resource.py +0 -28
- lark/types/credit_grant_resource_input_expiration.py +0 -27
- lark/types/credit_grant_resource_output_expiration.py +0 -43
- lark/types/credit_grant_resource_output_schedule.py +0 -39
- lark/types/credit_grant_schedule.py +0 -5
- lark/types/credit_grant_schedule_one_time_interface.py +0 -19
- lark/types/credit_grant_schedule_rate_cycle_start_interface.py +0 -19
- lark/types/credit_grant_schedule_rate_cycle_start_resource.py +0 -17
- lark/types/credit_grant_subject_granting_config_interface.py +0 -20
- lark/types/credit_pool.py +0 -5
- lark/types/credit_pool_rollover_config.py +0 -5
- lark/types/custom_aggregation_pricing_metric_interface.py +0 -22
- lark/types/custom_pricing_metric.py +0 -5
- lark/types/custom_unit.py +0 -5
- lark/types/custom_unit_amount.py +0 -5
- lark/types/dimension_coordinate.py +0 -5
- lark/types/dimension_coordinate_interface.py +0 -20
- lark/types/dimension_coordinate_set.py +0 -5
- lark/types/dimension_interface.py +0 -20
- lark/types/dimensional_rate_matrix.py +0 -5
- lark/types/dimensional_rate_matrix_cell.py +0 -5
- lark/types/dimensional_usage_based_rate.py +0 -5
- lark/types/dimensional_usage_based_rate_input.py +0 -5
- lark/types/dimensional_usage_based_rate_interface.py +0 -33
- lark/types/feature_access_resource.py +0 -21
- lark/types/get_rate_card_response.py +0 -36
- lark/types/get_rate_card_response_billing_interval.py +0 -5
- lark/types/get_rate_card_response_usage_based_rates_item.py +0 -58
- lark/types/grant_credits_request.py +0 -5
- lark/types/last_aggregation_pricing_metric_interface.py +0 -22
- lark/types/license_based_rate.py +0 -5
- lark/types/license_based_rate_input.py +0 -5
- lark/types/max_aggregation_pricing_metric_interface.py +0 -22
- lark/types/monetary_amount.py +0 -5
- lark/types/package_price_rounding_behavior.py +0 -5
- lark/types/package_price_wrapper.py +0 -5
- lark/types/pricing_matrix_cell_interface.py +0 -22
- lark/types/pricing_matrix_interface.py +0 -20
- lark/types/pricing_metric.py +0 -5
- lark/types/pricing_plan.py +0 -5
- lark/types/pricing_plan_subscription.py +0 -5
- lark/types/pricing_tier.py +0 -5
- lark/types/rate_card_version.py +0 -5
- lark/types/rate_card_version_input.py +0 -5
- lark/types/simple_usage_based_rate.py +0 -5
- lark/types/simple_usage_based_rate_input.py +0 -5
- lark/types/status.py +0 -5
- lark/types/subject_granting_config.py +0 -5
- lark/types/subject_granting_config_resource.py +0 -20
- lark/types/tiered_price.py +0 -5
- lark/types/tiered_price_wrapper.py +0 -5
- lark/types/unit.py +0 -5
- lark/types/update_pricing_plan_request.py +0 -5
- lark/types/update_rate_card_request.py +0 -5
- lark/types/update_subscription_request.py +0 -5
- lark/types/usage_based_rate.py +0 -5
- lark/types/usage_based_rate_input.py +0 -5
- lark/types/usage_unit.py +0 -5
- lark_billing-0.0.6.dist-info/RECORD +0 -167
- /lark/{feature_access → customer_access}/__init__.py +0 -0
- {lark_billing-0.0.6.dist-info → lark_billing-0.0.8.dist-info}/WHEEL +0 -0
lark/usage_events/client.py
CHANGED
|
@@ -35,8 +35,8 @@ class UsageEventsClient:
|
|
|
35
35
|
idempotency_key: str,
|
|
36
36
|
event_name: str,
|
|
37
37
|
subject_id: str,
|
|
38
|
-
timestamp: dt.datetime,
|
|
39
38
|
data: typing.Dict[str, typing.Optional[typing.Any]],
|
|
39
|
+
timestamp: typing.Optional[dt.datetime] = OMIT,
|
|
40
40
|
request_options: typing.Optional[RequestOptions] = None,
|
|
41
41
|
) -> typing.Optional[typing.Any]:
|
|
42
42
|
"""
|
|
@@ -48,10 +48,10 @@ class UsageEventsClient:
|
|
|
48
48
|
|
|
49
49
|
subject_id : str
|
|
50
50
|
|
|
51
|
-
timestamp : dt.datetime
|
|
52
|
-
|
|
53
51
|
data : typing.Dict[str, typing.Optional[typing.Any]]
|
|
54
52
|
|
|
53
|
+
timestamp : typing.Optional[dt.datetime]
|
|
54
|
+
|
|
55
55
|
request_options : typing.Optional[RequestOptions]
|
|
56
56
|
Request-specific configuration.
|
|
57
57
|
|
|
@@ -62,21 +62,15 @@ class UsageEventsClient:
|
|
|
62
62
|
|
|
63
63
|
Examples
|
|
64
64
|
--------
|
|
65
|
-
import datetime
|
|
66
|
-
|
|
67
65
|
from lark import Lark
|
|
68
66
|
|
|
69
67
|
client = Lark(
|
|
70
68
|
api_key="YOUR_API_KEY",
|
|
71
|
-
base_url="https://yourhost.com/path/to/api",
|
|
72
69
|
)
|
|
73
70
|
client.usage_events.create_usage_event(
|
|
74
71
|
idempotency_key="idempotency_key",
|
|
75
72
|
event_name="event_name",
|
|
76
73
|
subject_id="subject_id",
|
|
77
|
-
timestamp=datetime.datetime.fromisoformat(
|
|
78
|
-
"2024-01-15 09:30:00+00:00",
|
|
79
|
-
),
|
|
80
74
|
data={"key": "value"},
|
|
81
75
|
)
|
|
82
76
|
"""
|
|
@@ -84,8 +78,8 @@ class UsageEventsClient:
|
|
|
84
78
|
idempotency_key=idempotency_key,
|
|
85
79
|
event_name=event_name,
|
|
86
80
|
subject_id=subject_id,
|
|
87
|
-
timestamp=timestamp,
|
|
88
81
|
data=data,
|
|
82
|
+
timestamp=timestamp,
|
|
89
83
|
request_options=request_options,
|
|
90
84
|
)
|
|
91
85
|
return _response.data
|
|
@@ -124,7 +118,6 @@ class UsageEventsClient:
|
|
|
124
118
|
|
|
125
119
|
client = Lark(
|
|
126
120
|
api_key="YOUR_API_KEY",
|
|
127
|
-
base_url="https://yourhost.com/path/to/api",
|
|
128
121
|
)
|
|
129
122
|
client.usage_events.create_usage_event_summary(
|
|
130
123
|
event_name="event_name",
|
|
@@ -167,8 +160,8 @@ class AsyncUsageEventsClient:
|
|
|
167
160
|
idempotency_key: str,
|
|
168
161
|
event_name: str,
|
|
169
162
|
subject_id: str,
|
|
170
|
-
timestamp: dt.datetime,
|
|
171
163
|
data: typing.Dict[str, typing.Optional[typing.Any]],
|
|
164
|
+
timestamp: typing.Optional[dt.datetime] = OMIT,
|
|
172
165
|
request_options: typing.Optional[RequestOptions] = None,
|
|
173
166
|
) -> typing.Optional[typing.Any]:
|
|
174
167
|
"""
|
|
@@ -180,10 +173,10 @@ class AsyncUsageEventsClient:
|
|
|
180
173
|
|
|
181
174
|
subject_id : str
|
|
182
175
|
|
|
183
|
-
timestamp : dt.datetime
|
|
184
|
-
|
|
185
176
|
data : typing.Dict[str, typing.Optional[typing.Any]]
|
|
186
177
|
|
|
178
|
+
timestamp : typing.Optional[dt.datetime]
|
|
179
|
+
|
|
187
180
|
request_options : typing.Optional[RequestOptions]
|
|
188
181
|
Request-specific configuration.
|
|
189
182
|
|
|
@@ -195,13 +188,11 @@ class AsyncUsageEventsClient:
|
|
|
195
188
|
Examples
|
|
196
189
|
--------
|
|
197
190
|
import asyncio
|
|
198
|
-
import datetime
|
|
199
191
|
|
|
200
192
|
from lark import AsyncLark
|
|
201
193
|
|
|
202
194
|
client = AsyncLark(
|
|
203
195
|
api_key="YOUR_API_KEY",
|
|
204
|
-
base_url="https://yourhost.com/path/to/api",
|
|
205
196
|
)
|
|
206
197
|
|
|
207
198
|
|
|
@@ -210,9 +201,6 @@ class AsyncUsageEventsClient:
|
|
|
210
201
|
idempotency_key="idempotency_key",
|
|
211
202
|
event_name="event_name",
|
|
212
203
|
subject_id="subject_id",
|
|
213
|
-
timestamp=datetime.datetime.fromisoformat(
|
|
214
|
-
"2024-01-15 09:30:00+00:00",
|
|
215
|
-
),
|
|
216
204
|
data={"key": "value"},
|
|
217
205
|
)
|
|
218
206
|
|
|
@@ -223,8 +211,8 @@ class AsyncUsageEventsClient:
|
|
|
223
211
|
idempotency_key=idempotency_key,
|
|
224
212
|
event_name=event_name,
|
|
225
213
|
subject_id=subject_id,
|
|
226
|
-
timestamp=timestamp,
|
|
227
214
|
data=data,
|
|
215
|
+
timestamp=timestamp,
|
|
228
216
|
request_options=request_options,
|
|
229
217
|
)
|
|
230
218
|
return _response.data
|
|
@@ -265,7 +253,6 @@ class AsyncUsageEventsClient:
|
|
|
265
253
|
|
|
266
254
|
client = AsyncLark(
|
|
267
255
|
api_key="YOUR_API_KEY",
|
|
268
|
-
base_url="https://yourhost.com/path/to/api",
|
|
269
256
|
)
|
|
270
257
|
|
|
271
258
|
|
lark/usage_events/raw_client.py
CHANGED
|
@@ -30,8 +30,8 @@ class RawUsageEventsClient:
|
|
|
30
30
|
idempotency_key: str,
|
|
31
31
|
event_name: str,
|
|
32
32
|
subject_id: str,
|
|
33
|
-
timestamp: dt.datetime,
|
|
34
33
|
data: typing.Dict[str, typing.Optional[typing.Any]],
|
|
34
|
+
timestamp: typing.Optional[dt.datetime] = OMIT,
|
|
35
35
|
request_options: typing.Optional[RequestOptions] = None,
|
|
36
36
|
) -> HttpResponse[typing.Optional[typing.Any]]:
|
|
37
37
|
"""
|
|
@@ -43,10 +43,10 @@ class RawUsageEventsClient:
|
|
|
43
43
|
|
|
44
44
|
subject_id : str
|
|
45
45
|
|
|
46
|
-
timestamp : dt.datetime
|
|
47
|
-
|
|
48
46
|
data : typing.Dict[str, typing.Optional[typing.Any]]
|
|
49
47
|
|
|
48
|
+
timestamp : typing.Optional[dt.datetime]
|
|
49
|
+
|
|
50
50
|
request_options : typing.Optional[RequestOptions]
|
|
51
51
|
Request-specific configuration.
|
|
52
52
|
|
|
@@ -179,8 +179,8 @@ class AsyncRawUsageEventsClient:
|
|
|
179
179
|
idempotency_key: str,
|
|
180
180
|
event_name: str,
|
|
181
181
|
subject_id: str,
|
|
182
|
-
timestamp: dt.datetime,
|
|
183
182
|
data: typing.Dict[str, typing.Optional[typing.Any]],
|
|
183
|
+
timestamp: typing.Optional[dt.datetime] = OMIT,
|
|
184
184
|
request_options: typing.Optional[RequestOptions] = None,
|
|
185
185
|
) -> AsyncHttpResponse[typing.Optional[typing.Any]]:
|
|
186
186
|
"""
|
|
@@ -192,10 +192,10 @@ class AsyncRawUsageEventsClient:
|
|
|
192
192
|
|
|
193
193
|
subject_id : str
|
|
194
194
|
|
|
195
|
-
timestamp : dt.datetime
|
|
196
|
-
|
|
197
195
|
data : typing.Dict[str, typing.Optional[typing.Any]]
|
|
198
196
|
|
|
197
|
+
timestamp : typing.Optional[dt.datetime]
|
|
198
|
+
|
|
199
199
|
request_options : typing.Optional[RequestOptions]
|
|
200
200
|
Request-specific configuration.
|
|
201
201
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lark-billing
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary:
|
|
5
5
|
Requires-Python: >=3.8,<4.0
|
|
6
6
|
Classifier: Intended Audience :: Developers
|
|
@@ -22,6 +22,7 @@ Requires-Dist: httpx (>=0.21.2)
|
|
|
22
22
|
Requires-Dist: pydantic (>=1.9.2)
|
|
23
23
|
Requires-Dist: pydantic-core (>=2.18.2)
|
|
24
24
|
Requires-Dist: typing_extensions (>=4.0.0)
|
|
25
|
+
Project-URL: Repository, https://github.com/fern-demo/lark-python-sdk
|
|
25
26
|
Description-Content-Type: text/markdown
|
|
26
27
|
|
|
27
28
|
# Lark Python Library
|
|
@@ -50,11 +51,11 @@ from lark import Lark
|
|
|
50
51
|
|
|
51
52
|
client = Lark(
|
|
52
53
|
api_key="YOUR_API_KEY",
|
|
53
|
-
base_url="https://yourhost.com/path/to/api",
|
|
54
54
|
)
|
|
55
55
|
client.checkout.create_subscription_checkout_session(
|
|
56
56
|
subject_id="subject_id",
|
|
57
57
|
rate_card_id="rate_card_id",
|
|
58
|
+
success_callback_url="https://example.com/callback",
|
|
58
59
|
)
|
|
59
60
|
```
|
|
60
61
|
|
|
@@ -69,7 +70,6 @@ from lark import AsyncLark
|
|
|
69
70
|
|
|
70
71
|
client = AsyncLark(
|
|
71
72
|
api_key="YOUR_API_KEY",
|
|
72
|
-
base_url="https://yourhost.com/path/to/api",
|
|
73
73
|
)
|
|
74
74
|
|
|
75
75
|
|
|
@@ -77,6 +77,7 @@ async def main() -> None:
|
|
|
77
77
|
await client.checkout.create_subscription_checkout_session(
|
|
78
78
|
subject_id="subject_id",
|
|
79
79
|
rate_card_id="rate_card_id",
|
|
80
|
+
success_callback_url="https://example.com/callback",
|
|
80
81
|
)
|
|
81
82
|
|
|
82
83
|
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
lark/__init__.py,sha256=6PZSM_VR0EuEVtS4SUQ6pmiwvkwijsfTeIAajrItjb4,8183
|
|
2
|
+
lark/checkout/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
3
|
+
lark/checkout/client.py,sha256=HNyXw_0o0NbfYjv7DyXcfKQ8L3jO7a2WIwGqXjQKfL4,4584
|
|
4
|
+
lark/checkout/raw_client.py,sha256=PgtTi45gzMbplMzcgVUr-W_Mf57TBVuwkvKemVbvZI0,6282
|
|
5
|
+
lark/client.py,sha256=cpy-iyLMnTnHLsHRNyRCaKFPyPCQwY425SRGG-B3kI4,12650
|
|
6
|
+
lark/core/__init__.py,sha256=GkNNgA0CeqvpCzo2vVtAafE8YcnGV-VGtbU5op93lbc,3624
|
|
7
|
+
lark/core/api_error.py,sha256=44vPoTyWN59gonCIZMdzw7M1uspygiLnr3GNFOoVL2Q,614
|
|
8
|
+
lark/core/client_wrapper.py,sha256=EahlMGvqxt1Yny5y6EwSJ6ADoIVOig4-mdHIp9jwITg,2374
|
|
9
|
+
lark/core/datetime_utils.py,sha256=nBys2IsYrhPdszxGKCNRPSOCwa-5DWOHG95FB8G9PKo,1047
|
|
10
|
+
lark/core/file.py,sha256=d4NNbX8XvXP32z8KpK2Xovv33nFfruIrpz0QWxlgpZk,2663
|
|
11
|
+
lark/core/force_multipart.py,sha256=cH981xLy0kZVKiZZkFoeUjgJ2Zuq7KXB2aRAnmHzRDc,477
|
|
12
|
+
lark/core/http_client.py,sha256=QurkBvCZZz2Z1d8znp4M2YbOXebBUPcPXRhPIS84Wvk,21214
|
|
13
|
+
lark/core/http_response.py,sha256=A6URkoTBCiryctAA-m9EiDWOsHgM5oYAlcYVc_YOiiI,1330
|
|
14
|
+
lark/core/http_sse/__init__.py,sha256=vE7RxBmzIfV9SmFDw4YCuDN9DaPuJb3FAnoFDo7bqww,1350
|
|
15
|
+
lark/core/http_sse/_api.py,sha256=v7bcIkdawmL6Y39HxrM5OiEB1Ci3wzIdu21kCZII-mU,3920
|
|
16
|
+
lark/core/http_sse/_decoders.py,sha256=tY3L5TZ0y-pgz0Lu1q8ro5Ljz43q4lYyuec73u9WfNw,1733
|
|
17
|
+
lark/core/http_sse/_exceptions.py,sha256=o8Tp-e8Lvmtn_5MVSYbkW9rVrpwFg5pnKbOcHfrHH14,127
|
|
18
|
+
lark/core/http_sse/_models.py,sha256=kKvCCm8e6gCilulJpiHv4f2OPVxo9CydLboEqMhplPI,397
|
|
19
|
+
lark/core/jsonable_encoder.py,sha256=hGgcEEeX11sqxxsll7h15pO3pTNVxk_n79Kcn0laoWA,3655
|
|
20
|
+
lark/core/pydantic_utilities.py,sha256=fxp1jeDn1YbKXbVabl0hI9YeC3LtN8ZQ4HIICyFS8xg,10966
|
|
21
|
+
lark/core/query_encoder.py,sha256=ekulqNd0j8TgD7ox-Qbz7liqX8-KP9blvT9DsRCenYM,2144
|
|
22
|
+
lark/core/remove_none_from_dict.py,sha256=EU9SGgYidWq7SexuJbNs4-PZ-5Bl3Vppd864mS6vQZw,342
|
|
23
|
+
lark/core/request_options.py,sha256=h0QUNCFVdCW_7GclVySCAY2w4NhtXVBUCmHgmzaxpcg,1681
|
|
24
|
+
lark/core/serialization.py,sha256=ECL3bvv_0i7U4uvPidZCNel--MUbA0iq0aGcNKi3kws,9818
|
|
25
|
+
lark/customer_access/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
26
|
+
lark/customer_access/client.py,sha256=wKvoiC1trQOC99bMoihluFF7BXZi9f18Yu96EFnXc_Q,2989
|
|
27
|
+
lark/customer_access/raw_client.py,sha256=0hK-AC5QpLxkiQJ8eeNXespg4MnXVO1UIwGS-e0MM4I,4668
|
|
28
|
+
lark/customer_portal/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
29
|
+
lark/customer_portal/client.py,sha256=hDiShY7gyhNrqVIMlBs_VEhTtmfxL5OC62Z0OoemmjM,3322
|
|
30
|
+
lark/customer_portal/raw_client.py,sha256=ykHL6kRZWFjks1T8ej8SwQQofDfeWC0Y9ojgm81SfKY,5194
|
|
31
|
+
lark/environment.py,sha256=dyFMCpgEEgFYj5pj8M-IxENul1uXC6owvlm4Kn6Lw3A,152
|
|
32
|
+
lark/errors/__init__.py,sha256=4g1JPPnrPS-pG-WGU1S8HrYE5RoctStcA35abyL_tmI,1134
|
|
33
|
+
lark/errors/unprocessable_entity_error.py,sha256=aDgvUf-6k1fSUL-OxI3MgOIFQNssTUNpv5vW9M4vfRc,401
|
|
34
|
+
lark/invoices/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
35
|
+
lark/invoices/client.py,sha256=-DDd4gEQz8HZFIiUjqK_sOoevK8I7vyRwHvnm1iZn_k,3601
|
|
36
|
+
lark/invoices/raw_client.py,sha256=VWdX-6-VNdC51sgorAtbYPpppga7dogWRDprErF80I4,5271
|
|
37
|
+
lark/pricing_metrics/__init__.py,sha256=GjKCI2AEhDsAXGdUMkyZlGRyNzIj6HRWPRZEcScwVEU,1321
|
|
38
|
+
lark/pricing_metrics/client.py,sha256=onk8W05UQyOjKdt5dMwEzUquf9zCiUns-JlBaaVZhHU,8018
|
|
39
|
+
lark/pricing_metrics/raw_client.py,sha256=a4jTR0mDCjUcUAvOKdU6-H-bQfCNyXvgdh-SO_1CHwk,14094
|
|
40
|
+
lark/pricing_metrics/types/__init__.py,sha256=DaWe3hOaIKUlI4nWjNOmEtjks5ges3BFq4jujJDDX2M,1438
|
|
41
|
+
lark/pricing_metrics/types/pricing_metric_aggregation.py,sha256=NkO1F-g7n1UfUVVaYmcmeBnOP-lcu1lhs5_TQytj_b0,1145
|
|
42
|
+
lark/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
|
+
lark/rate_cards/__init__.py,sha256=3LWPsE39Ghmz_TbuxHsRnf7yySPt9iZ2YV3okPtQY78,1492
|
|
44
|
+
lark/rate_cards/client.py,sha256=I90dIRlUoEFxr_SETRIh35bA3s35Z8qY0CjKVaDrWzg,8772
|
|
45
|
+
lark/rate_cards/raw_client.py,sha256=XbrTjYBcutmP61T4SBb_seHRaMPokwENm1fdYCERxHY,15578
|
|
46
|
+
lark/rate_cards/types/__init__.py,sha256=-5y0ZgXL6PifZrZJGGa3mOQZS7iD20Ui-sLmNKY5kRM,1704
|
|
47
|
+
lark/rate_cards/types/create_rate_card_request_billing_interval.py,sha256=k-FOfMuwtBOTn0ZIGkWuJcFBbqbsPkUO4_DvIcBXLRc,181
|
|
48
|
+
lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py,sha256=nXCkT-U6VwpJ-UWQOOMyS2yFEcaaWGVnH0ivLIpXyDo,941
|
|
49
|
+
lark/subjects/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
50
|
+
lark/subjects/client.py,sha256=eBvTNKJxMXSSthIhRAaD0770yhrL3r1iFmfPVZtL2cM,13033
|
|
51
|
+
lark/subjects/raw_client.py,sha256=WTDK-HZT-P9AU2WvT_l3PprR2DM63soG4p4bv4o0Quo,23921
|
|
52
|
+
lark/subscriptions/__init__.py,sha256=_VhToAyIt_5axN6CLJwtxg3-CO7THa_23pbUzqhXJa4,85
|
|
53
|
+
lark/subscriptions/client.py,sha256=Oq9hcA71jnufcerH-38VBQTNaDdeKyDZ0MxkmsfKV9g,13891
|
|
54
|
+
lark/subscriptions/raw_client.py,sha256=NsF0U4SD-JEI0wmgjj6Jcx9nv8xmTiTmeBXJo0a37ck,23990
|
|
55
|
+
lark/types/__init__.py,sha256=3PAjZAUxKQGJVjyq0ynltWkF_QrUImQf9QTfvTOrtJE,8199
|
|
56
|
+
lark/types/aggregation.py,sha256=JTY5X_dJn0Nv7W-KvdcsavKgqMGQ6Yv1AD2qREl9BBw,1079
|
|
57
|
+
lark/types/amount.py,sha256=1RNZbJNsLMUCPFRq6_iU6hFs1wbg6IJkQ_wUPWOX8Kk,639
|
|
58
|
+
lark/types/billing_state_response.py,sha256=PwsR7EjjKal_GHaxsfPUztyDuunAevjwL85KFKvSShk,579
|
|
59
|
+
lark/types/count_aggregation_pricing_metric_interface.py,sha256=4RnOiOWtUUCkqT-rc0HHetar8DmI72lX0_yaZR1ZTTc,530
|
|
60
|
+
lark/types/count_aggregation_pricing_metric_resource.py,sha256=RNCjrE6zT_Aw8gQWZNNzbAAKmRqISQI3df9em-d4tyk,529
|
|
61
|
+
lark/types/create_customer_portal_session_response.py,sha256=V9YASol5nLLGTCzykViIuenPhX_tUtHF5VObvN62lOI,561
|
|
62
|
+
lark/types/create_fixed_rate_request.py,sha256=3cSEScYrlIUNbDCqDI-8f18lQajXJQl0aLWrkCQy_u4,640
|
|
63
|
+
lark/types/create_pricing_metric_response.py,sha256=4qzlMDVkAhRMrUCPt9IDS8h6r0EagIJuZOgpTNBwq8g,646
|
|
64
|
+
lark/types/create_simple_usage_based_rate_request.py,sha256=vZ5wnTZGuXBQnJjJFYyhMQhIDQz-Lia9MAxQ83hI8l0,816
|
|
65
|
+
lark/types/create_subject_response.py,sha256=vq0cjT7OE7LMBkFxz1Cbs2bVTAw8vmr4C-LgeksZJ3A,1333
|
|
66
|
+
lark/types/create_subscription_checkout_session_response.py,sha256=kO4Z5DzluPutnYYSW6ZiDrySL1DHmCka2POCyeDrFaA,605
|
|
67
|
+
lark/types/create_usage_event_summary_response.py,sha256=9GWy3RxD02CDt3qHpsTSlouwzaztWlRqfkRAGNHpEgU,649
|
|
68
|
+
lark/types/fixed_rate_interface.py,sha256=zQuokRdlr6aWHO6lAmdYmBOBQCHqBBaQ65bZQvBNElc,600
|
|
69
|
+
lark/types/flat_price.py,sha256=JPhR3x686VtDTvMfToATj3mwTKNE4W4wcj3nCmm-A5g,631
|
|
70
|
+
lark/types/get_pricing_metric_response.py,sha256=tojAOAuufWaFOEwcLGmnrOrguCP_FbzW_otJPXnZ_P8,643
|
|
71
|
+
lark/types/http_validation_error.py,sha256=NNTK9AbbHXm0n9m1YcsG5zEaSn1n6RghohUX5R8LGzw,623
|
|
72
|
+
lark/types/invoice_line_item_resource.py,sha256=KW3tkZ9yyS2PJ5p_EvgjJo5YCmtEU2oGc6QJ6VjIgBo,634
|
|
73
|
+
lark/types/invoice_resource.py,sha256=XXWt_DkyH7NNXMgcNR7xumArbaPlzbyIbhR6gK4bclY,933
|
|
74
|
+
lark/types/invoice_status.py,sha256=iCLPcMrXWWPQHsitPT9x0Fj_GjTlbG0KVv6F0f4E5g4,187
|
|
75
|
+
lark/types/list_invoices_response.py,sha256=GaE8TwfDdEaQcd74xv8JBA1qfS8OnO9CI1vS3VaRIQg,621
|
|
76
|
+
lark/types/list_pricing_metrics_response.py,sha256=Ioj7eZ3NwEz92v0dVI4RL_mm9mrHqAwora04iZ5x-h8,653
|
|
77
|
+
lark/types/list_rate_cards_response.py,sha256=IRm3aSOF5zMqS2nxADruN4988Wi4UAT3WYE_fKJrtHU,628
|
|
78
|
+
lark/types/list_subjects_response.py,sha256=k7QbDj-q8oWe15QoEUv4AbixXj5crsBC7CJH6XQuPZM,621
|
|
79
|
+
lark/types/list_subscriptions_response.py,sha256=4LmecLcE6NmMsNe6wyV7CSzaen9HAamKQLfJf8ZDhwI,646
|
|
80
|
+
lark/types/package_price.py,sha256=pigTnTKFK_b7kG6gNGJnYEDcYZAr3J60q1jRZxkUFZU,938
|
|
81
|
+
lark/types/package_price_input_rounding_behavior.py,sha256=i2_tUvyiFR1Z4s--m4GeTGt5EhSPyu32JpQrI0cdzMA,183
|
|
82
|
+
lark/types/package_price_output_rounding_behavior.py,sha256=3suJHfO9lGMWOb2kRn199FdTpcYdMtOKFlIUWq_xeQU,184
|
|
83
|
+
lark/types/period.py,sha256=rjptqL1APWiYEMxIluE5vL1vuAXKXwnIzl0AsnWBKCA,625
|
|
84
|
+
lark/types/period_resource.py,sha256=TpKNhaxn-G5ufDH35MQ6DTxnUDEhDPe7jx_eq6j0BUs,671
|
|
85
|
+
lark/types/price.py,sha256=1Cn5GRNmqs6yPw5Ajemx7Uxlozz3yBzcAUCkXKFFqw4,1261
|
|
86
|
+
lark/types/pricing_metric_resource.py,sha256=kTiAIzXlt-PGAWhipTtbPd7KBBy56-yFhsCHZTmhXBU,640
|
|
87
|
+
lark/types/rate_card_resource.py,sha256=xDjYAXA_I8G0-ZQF402lvjxl3EG6cqwgPUI_IWaVrZA,1032
|
|
88
|
+
lark/types/rate_card_resource_billing_interval.py,sha256=OT3PxH3tQBXo7TvxcRLcTsXd8dBZo8po1T_k4OWQY7g,176
|
|
89
|
+
lark/types/rate_card_resource_usage_based_rates_item.py,sha256=cQDKUru8SAJVRnAbifIWRBmAlACUToiEVe-9QzN2000,857
|
|
90
|
+
lark/types/simple_usage_based_rate_interface.py,sha256=Z4UOl3e-Eiv8YIrr45i5RGfnpx6ZJvrNUqcoZQMc918,662
|
|
91
|
+
lark/types/subject_resource.py,sha256=oacQXkEfmSjMN6muasjU0hQ10OoNYIxdsIMklS9fqiQ,1327
|
|
92
|
+
lark/types/subscription_resource.py,sha256=812CKt7cYgRk4HofXxMIVOhMQZj4mRL8I0AsLfqQZX4,931
|
|
93
|
+
lark/types/subscription_status.py,sha256=CapkxBTKLbKr6gDn3rnsXXUCqp59F839uWkvrtdVc9M,175
|
|
94
|
+
lark/types/sum_aggregation_pricing_metric_interface.py,sha256=R_sDNeB5RaZ9o4-O1_ceC7Ium_NKn5m6egj9AykjEN4,608
|
|
95
|
+
lark/types/sum_aggregation_pricing_metric_resource.py,sha256=PeF2LCNjjILU5OneNMCluIqW0CTM1SPW6VRX6-H7P9E,549
|
|
96
|
+
lark/types/validation_error.py,sha256=Ou-GSQTdmDFWIFlP_y9ka_EUAavqFEFLonU9srAkJdc,642
|
|
97
|
+
lark/types/validation_error_loc_item.py,sha256=LAtjCHIllWRBFXvAZ5QZpp7CPXjdtN9EB7HrLVo6EP0,128
|
|
98
|
+
lark/types/value.py,sha256=s8eOsCXi5_1G0uGPyW2QUaJFzJcCCqN-FMYJnA9UR9s,113
|
|
99
|
+
lark/usage_events/__init__.py,sha256=Qv907rll-HgEgk2S4L40ZH7cU-h2BC97gLd5L7tMaWY,1155
|
|
100
|
+
lark/usage_events/client.py,sha256=AN5Eu8X59v99-s6X8fcBwKbs0pnLYh1GVrojsUqUCwI,7743
|
|
101
|
+
lark/usage_events/raw_client.py,sha256=cWTLiwSuR0_9q8YfbcVryHrfezyP_nDyU45jgN68EC4,11752
|
|
102
|
+
lark/usage_events/types/__init__.py,sha256=zAaz1oVwvwjfhEubLwwIoDAoqeiqwnXw95CAXIoJ2cY,1253
|
|
103
|
+
lark/usage_events/types/create_usage_event_summary_request_aggregation_type.py,sha256=0jg9JuFlG2TmTeQvPY4yHV_9Ec2MpPe_zqKffvBpCvw,192
|
|
104
|
+
lark/version.py,sha256=maFXg-cBsqCfydHwhGdh6kzQElFbriuo8a2yvidAV1c,79
|
|
105
|
+
lark_billing-0.0.8.dist-info/METADATA,sha256=HO_UuSpURWf4IQKeHeu3hqDFveDIe0DTxp9tQ1ELIsI,5612
|
|
106
|
+
lark_billing-0.0.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
107
|
+
lark_billing-0.0.8.dist-info/RECORD,,
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import typing
|
|
6
|
-
|
|
7
|
-
import pydantic
|
|
8
|
-
from ...core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
9
|
-
from ...types.dimension_interface import DimensionInterface
|
|
10
|
-
from ...types.price import Price
|
|
11
|
-
from ...types.pricing_matrix_interface import PricingMatrixInterface
|
|
12
|
-
from ...types.pricing_metric_interface import PricingMetricInterface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class CreateRateCardVersionRequestUsageBasedRatesItem_Dimensional(UniversalBaseModel):
|
|
16
|
-
usage_based_rate_type: typing.Literal["dimensional"] = "dimensional"
|
|
17
|
-
id: str
|
|
18
|
-
code: str
|
|
19
|
-
name: str
|
|
20
|
-
description: str
|
|
21
|
-
included_units: int
|
|
22
|
-
pricing_metric: PricingMetricInterface
|
|
23
|
-
dimensions: typing.List[DimensionInterface]
|
|
24
|
-
pricing_matrix: PricingMatrixInterface
|
|
25
|
-
|
|
26
|
-
if IS_PYDANTIC_V2:
|
|
27
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
28
|
-
else:
|
|
29
|
-
|
|
30
|
-
class Config:
|
|
31
|
-
frozen = True
|
|
32
|
-
smart_union = True
|
|
33
|
-
extra = pydantic.Extra.allow
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class CreateRateCardVersionRequestUsageBasedRatesItem_Simple(UniversalBaseModel):
|
|
37
|
-
usage_based_rate_type: typing.Literal["simple"] = "simple"
|
|
38
|
-
id: str
|
|
39
|
-
code: str
|
|
40
|
-
name: str
|
|
41
|
-
description: str
|
|
42
|
-
price: Price
|
|
43
|
-
included_units: int
|
|
44
|
-
pricing_metric: PricingMetricInterface
|
|
45
|
-
|
|
46
|
-
if IS_PYDANTIC_V2:
|
|
47
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
48
|
-
else:
|
|
49
|
-
|
|
50
|
-
class Config:
|
|
51
|
-
frozen = True
|
|
52
|
-
smart_union = True
|
|
53
|
-
extra = pydantic.Extra.allow
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
CreateRateCardVersionRequestUsageBasedRatesItem = typing.Union[
|
|
57
|
-
CreateRateCardVersionRequestUsageBasedRatesItem_Dimensional, CreateRateCardVersionRequestUsageBasedRatesItem_Simple
|
|
58
|
-
]
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .amount import Amount
|
|
8
|
-
from .create_credit_grant_interface_expiration import CreateCreditGrantInterfaceExpiration
|
|
9
|
-
from .credit_grant_subject_granting_config_interface import CreditGrantSubjectGrantingConfigInterface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateCreditGrantInterface(UniversalBaseModel):
|
|
13
|
-
name: str
|
|
14
|
-
amount: Amount
|
|
15
|
-
metadata: typing.Optional[typing.Dict[str, str]] = None
|
|
16
|
-
subject_granting_config: typing.Optional[CreditGrantSubjectGrantingConfigInterface] = None
|
|
17
|
-
schedule: typing.Optional[typing.Optional[typing.Any]] = None
|
|
18
|
-
expiration: typing.Optional[CreateCreditGrantInterfaceExpiration] = None
|
|
19
|
-
|
|
20
|
-
if IS_PYDANTIC_V2:
|
|
21
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
22
|
-
else:
|
|
23
|
-
|
|
24
|
-
class Config:
|
|
25
|
-
frozen = True
|
|
26
|
-
smart_union = True
|
|
27
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import typing
|
|
6
|
-
|
|
7
|
-
import pydantic
|
|
8
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
9
|
-
from .unit import Unit
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateCreditGrantInterfaceExpiration_Duration(UniversalBaseModel):
|
|
13
|
-
expiration_type: typing.Literal["duration"] = "duration"
|
|
14
|
-
duration: int
|
|
15
|
-
unit: Unit
|
|
16
|
-
|
|
17
|
-
if IS_PYDANTIC_V2:
|
|
18
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
19
|
-
else:
|
|
20
|
-
|
|
21
|
-
class Config:
|
|
22
|
-
frozen = True
|
|
23
|
-
smart_union = True
|
|
24
|
-
extra = pydantic.Extra.allow
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
CreateCreditGrantInterfaceExpiration = CreateCreditGrantInterfaceExpiration_Duration
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_dimension_interface import CreateDimensionInterface
|
|
8
|
-
from .create_pricing_matrix_interface import CreatePricingMatrixInterface
|
|
9
|
-
from .create_pricing_metric_interface import CreatePricingMetricInterface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class CreateDimensionalUsageBasedRateInterface(UniversalBaseModel):
|
|
13
|
-
code: str = pydantic.Field()
|
|
14
|
-
"""
|
|
15
|
-
Code of this rate to be used for overrides and external reference.
|
|
16
|
-
"""
|
|
17
|
-
|
|
18
|
-
name: str
|
|
19
|
-
description: typing.Optional[str] = None
|
|
20
|
-
included_units: typing.Optional[int] = None
|
|
21
|
-
pricing_metric: CreatePricingMetricInterface
|
|
22
|
-
dimensions: typing.List[CreateDimensionInterface]
|
|
23
|
-
pricing_matrix: CreatePricingMatrixInterface
|
|
24
|
-
|
|
25
|
-
if IS_PYDANTIC_V2:
|
|
26
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
27
|
-
else:
|
|
28
|
-
|
|
29
|
-
class Config:
|
|
30
|
-
frozen = True
|
|
31
|
-
smart_union = True
|
|
32
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_credit_grant_interface import CreateCreditGrantInterface
|
|
8
|
-
from .price import Price
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class CreateFixedRateInterface(UniversalBaseModel):
|
|
12
|
-
name: str
|
|
13
|
-
description: typing.Optional[str] = None
|
|
14
|
-
price: Price
|
|
15
|
-
credit_grants: typing.Optional[typing.List[CreateCreditGrantInterface]] = None
|
|
16
|
-
quantity_code: typing.Optional[str] = pydantic.Field(default=None)
|
|
17
|
-
"""
|
|
18
|
-
Code of this rate to be used for setting quantity.
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
if IS_PYDANTIC_V2:
|
|
22
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
-
else:
|
|
24
|
-
|
|
25
|
-
class Config:
|
|
26
|
-
frozen = True
|
|
27
|
-
smart_union = True
|
|
28
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_dimension_coordinate_interface import CreateDimensionCoordinateInterface
|
|
8
|
-
from .price import Price
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class CreatePricingMatrixCellInterface(UniversalBaseModel):
|
|
12
|
-
dimension_coordinates: typing.List[CreateDimensionCoordinateInterface]
|
|
13
|
-
price: Price
|
|
14
|
-
|
|
15
|
-
if IS_PYDANTIC_V2:
|
|
16
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
17
|
-
else:
|
|
18
|
-
|
|
19
|
-
class Config:
|
|
20
|
-
frozen = True
|
|
21
|
-
smart_union = True
|
|
22
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_pricing_matrix_cell_interface import CreatePricingMatrixCellInterface
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class CreatePricingMatrixInterface(UniversalBaseModel):
|
|
11
|
-
cells: typing.List[CreatePricingMatrixCellInterface]
|
|
12
|
-
|
|
13
|
-
if IS_PYDANTIC_V2:
|
|
14
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
15
|
-
else:
|
|
16
|
-
|
|
17
|
-
class Config:
|
|
18
|
-
frozen = True
|
|
19
|
-
smart_union = True
|
|
20
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
import typing
|
|
4
|
-
|
|
5
|
-
import pydantic
|
|
6
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_rate_card_response_billing_interval import CreateRateCardResponseBillingInterval
|
|
8
|
-
from .create_rate_card_response_usage_based_rates_item import CreateRateCardResponseUsageBasedRatesItem
|
|
9
|
-
from .credit_grant_resource import CreditGrantResource
|
|
10
|
-
from .feature_access_resource import FeatureAccessResource
|
|
11
|
-
from .fixed_rate_interface import FixedRateInterface
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class CreateRateCardResponse(UniversalBaseModel):
|
|
15
|
-
id: str
|
|
16
|
-
name: str
|
|
17
|
-
description: str
|
|
18
|
-
usage_based_rates: typing.List[CreateRateCardResponseUsageBasedRatesItem]
|
|
19
|
-
fixed_rates: typing.List[FixedRateInterface]
|
|
20
|
-
billing_interval: CreateRateCardResponseBillingInterval
|
|
21
|
-
credit_grants: typing.List[CreditGrantResource]
|
|
22
|
-
created_at: str
|
|
23
|
-
updated_at: str
|
|
24
|
-
major_version: int
|
|
25
|
-
minor_version: int
|
|
26
|
-
feature_access: typing.List[FeatureAccessResource]
|
|
27
|
-
metadata: typing.Dict[str, str]
|
|
28
|
-
|
|
29
|
-
if IS_PYDANTIC_V2:
|
|
30
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
31
|
-
else:
|
|
32
|
-
|
|
33
|
-
class Config:
|
|
34
|
-
frozen = True
|
|
35
|
-
smart_union = True
|
|
36
|
-
extra = pydantic.Extra.allow
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
|
|
3
|
-
from __future__ import annotations
|
|
4
|
-
|
|
5
|
-
import typing
|
|
6
|
-
|
|
7
|
-
import pydantic
|
|
8
|
-
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
9
|
-
from .dimension_interface import DimensionInterface
|
|
10
|
-
from .price import Price
|
|
11
|
-
from .pricing_matrix_interface import PricingMatrixInterface
|
|
12
|
-
from .pricing_metric_interface import PricingMetricInterface
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
class CreateRateCardResponseUsageBasedRatesItem_Dimensional(UniversalBaseModel):
|
|
16
|
-
usage_based_rate_type: typing.Literal["dimensional"] = "dimensional"
|
|
17
|
-
id: str
|
|
18
|
-
code: str
|
|
19
|
-
name: str
|
|
20
|
-
description: str
|
|
21
|
-
included_units: int
|
|
22
|
-
pricing_metric: PricingMetricInterface
|
|
23
|
-
dimensions: typing.List[DimensionInterface]
|
|
24
|
-
pricing_matrix: PricingMatrixInterface
|
|
25
|
-
|
|
26
|
-
if IS_PYDANTIC_V2:
|
|
27
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
28
|
-
else:
|
|
29
|
-
|
|
30
|
-
class Config:
|
|
31
|
-
frozen = True
|
|
32
|
-
smart_union = True
|
|
33
|
-
extra = pydantic.Extra.allow
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
class CreateRateCardResponseUsageBasedRatesItem_Simple(UniversalBaseModel):
|
|
37
|
-
usage_based_rate_type: typing.Literal["simple"] = "simple"
|
|
38
|
-
id: str
|
|
39
|
-
code: str
|
|
40
|
-
name: str
|
|
41
|
-
description: str
|
|
42
|
-
price: Price
|
|
43
|
-
included_units: int
|
|
44
|
-
pricing_metric: PricingMetricInterface
|
|
45
|
-
|
|
46
|
-
if IS_PYDANTIC_V2:
|
|
47
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
48
|
-
else:
|
|
49
|
-
|
|
50
|
-
class Config:
|
|
51
|
-
frozen = True
|
|
52
|
-
smart_union = True
|
|
53
|
-
extra = pydantic.Extra.allow
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
CreateRateCardResponseUsageBasedRatesItem = typing.Union[
|
|
57
|
-
CreateRateCardResponseUsageBasedRatesItem_Dimensional, CreateRateCardResponseUsageBasedRatesItem_Simple
|
|
58
|
-
]
|