lark-billing 0.0.6__py3-none-any.whl → 0.0.7__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 +69 -360
- lark/checkout/client.py +8 -85
- lark/checkout/raw_client.py +6 -102
- lark/client.py +93 -27
- lark/core/client_wrapper.py +2 -2
- 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/pricing_metrics/__init__.py +38 -0
- lark/pricing_metrics/client.py +219 -0
- lark/pricing_metrics/raw_client.py +268 -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 +3 -30
- lark/rate_cards/client.py +28 -540
- lark/rate_cards/raw_client.py +32 -368
- lark/rate_cards/types/__init__.py +2 -29
- lark/subjects/client.py +2 -36
- lark/subjects/raw_client.py +0 -16
- lark/subscriptions/client.py +24 -184
- lark/subscriptions/raw_client.py +18 -135
- lark/types/__init__.py +41 -356
- lark/types/amount.py +5 -1
- lark/types/{create_dimension_coordinate_interface.py → billing_state_response.py} +3 -3
- 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_fixed_rate_interface.py +1 -7
- lark/types/{pricing_metric_interface.py → create_pricing_metric_response.py} +2 -5
- lark/types/create_simple_usage_based_rate_interface.py +3 -8
- lark/types/create_subject_response.py +2 -1
- lark/types/create_subscription_checkout_session_response.py +1 -2
- lark/types/create_usage_event_summary_response.py +1 -1
- lark/types/{credit_grant_schedule_rate_cycle_start_resource.py → custom_pricing_metric_resource.py} +3 -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/{credit_grant_schedule_one_time_interface.py → last_aggregation_pricing_metric_resource.py} +2 -2
- lark/types/{credit_grant_date_time_expiration_resource.py → max_aggregation_pricing_metric_resource.py} +2 -2
- 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/price.py +39 -1
- lark/types/rate_card_resource.py +0 -6
- lark/types/rate_card_resource_usage_based_rates_item.py +2 -28
- lark/types/simple_usage_based_rate_interface.py +1 -2
- lark/types/status.py +1 -1
- lark/types/subject_resource.py +2 -1
- lark/types/subscription_resource.py +0 -1
- lark/types/{credit_grant_date_time_expiration_interface.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.7.dist-info}/METADATA +3 -3
- lark_billing-0.0.7.dist-info/RECORD +94 -0
- lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py +0 -56
- 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/check_feature_access_request.py +0 -24
- lark/types/check_feature_access_response.py +0 -21
- lark/types/complete_subscription_checkout_response.py +0 -21
- 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_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.py +0 -5
- 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_rate_cycle_start_interface.py +0 -19
- 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.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/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.7.dist-info}/WHEEL +0 -0
|
@@ -1,41 +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
|
-
|
|
10
|
-
|
|
11
|
-
class CreditGrantInterfaceOutputSchedule_OneTime(UniversalBaseModel):
|
|
12
|
-
schedule_type: typing.Literal["one_time"] = "one_time"
|
|
13
|
-
scheduled_at: str
|
|
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
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class CreditGrantInterfaceOutputSchedule_RateCycleStart(UniversalBaseModel):
|
|
26
|
-
schedule_type: typing.Literal["rate_cycle_start"] = "rate_cycle_start"
|
|
27
|
-
rate_cycle_start_at: 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
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
CreditGrantInterfaceOutputSchedule = typing.Union[
|
|
40
|
-
CreditGrantInterfaceOutputSchedule_OneTime, CreditGrantInterfaceOutputSchedule_RateCycleStart
|
|
41
|
-
]
|
|
@@ -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 .amount import Amount
|
|
8
|
-
from .credit_grant_resource_output_expiration import CreditGrantResourceOutputExpiration
|
|
9
|
-
from .credit_grant_resource_output_schedule import CreditGrantResourceOutputSchedule
|
|
10
|
-
from .subject_granting_config_resource import SubjectGrantingConfigResource
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class CreditGrantResource(UniversalBaseModel):
|
|
14
|
-
name: str
|
|
15
|
-
amount: Amount
|
|
16
|
-
subject_granting_config: typing.Optional[SubjectGrantingConfigResource] = None
|
|
17
|
-
schedule: typing.Optional[CreditGrantResourceOutputSchedule] = None
|
|
18
|
-
expiration: typing.Optional[CreditGrantResourceOutputExpiration] = None
|
|
19
|
-
metadata: typing.Dict[str, str]
|
|
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,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 CreditGrantResourceInputExpiration_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
|
-
CreditGrantResourceInputExpiration = CreditGrantResourceInputExpiration_Duration
|
|
@@ -1,43 +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 CreditGrantResourceOutputExpiration_Date(UniversalBaseModel):
|
|
13
|
-
expiration_type: typing.Literal["date"] = "date"
|
|
14
|
-
date: str
|
|
15
|
-
|
|
16
|
-
if IS_PYDANTIC_V2:
|
|
17
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
18
|
-
else:
|
|
19
|
-
|
|
20
|
-
class Config:
|
|
21
|
-
frozen = True
|
|
22
|
-
smart_union = True
|
|
23
|
-
extra = pydantic.Extra.allow
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class CreditGrantResourceOutputExpiration_Duration(UniversalBaseModel):
|
|
27
|
-
expiration_type: typing.Literal["duration"] = "duration"
|
|
28
|
-
duration: int
|
|
29
|
-
unit: Unit
|
|
30
|
-
|
|
31
|
-
if IS_PYDANTIC_V2:
|
|
32
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
33
|
-
else:
|
|
34
|
-
|
|
35
|
-
class Config:
|
|
36
|
-
frozen = True
|
|
37
|
-
smart_union = True
|
|
38
|
-
extra = pydantic.Extra.allow
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
CreditGrantResourceOutputExpiration = typing.Union[
|
|
42
|
-
CreditGrantResourceOutputExpiration_Date, CreditGrantResourceOutputExpiration_Duration
|
|
43
|
-
]
|
|
@@ -1,39 +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
|
-
|
|
10
|
-
|
|
11
|
-
class CreditGrantResourceOutputSchedule_OneTime(UniversalBaseModel):
|
|
12
|
-
schedule_type: typing.Literal["one_time"] = "one_time"
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
extra = pydantic.Extra.allow
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class CreditGrantResourceOutputSchedule_RateCycleStart(UniversalBaseModel):
|
|
25
|
-
schedule_type: typing.Literal["rate_cycle_start"] = "rate_cycle_start"
|
|
26
|
-
|
|
27
|
-
if IS_PYDANTIC_V2:
|
|
28
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
29
|
-
else:
|
|
30
|
-
|
|
31
|
-
class Config:
|
|
32
|
-
frozen = True
|
|
33
|
-
smart_union = True
|
|
34
|
-
extra = pydantic.Extra.allow
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
CreditGrantResourceOutputSchedule = typing.Union[
|
|
38
|
-
CreditGrantResourceOutputSchedule_OneTime, CreditGrantResourceOutputSchedule_RateCycleStart
|
|
39
|
-
]
|
|
@@ -1,19 +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
|
-
|
|
8
|
-
|
|
9
|
-
class CreditGrantScheduleRateCycleStartInterface(UniversalBaseModel):
|
|
10
|
-
rate_cycle_start_at: str
|
|
11
|
-
|
|
12
|
-
if IS_PYDANTIC_V2:
|
|
13
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
14
|
-
else:
|
|
15
|
-
|
|
16
|
-
class Config:
|
|
17
|
-
frozen = True
|
|
18
|
-
smart_union = True
|
|
19
|
-
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
|
-
|
|
8
|
-
|
|
9
|
-
class CreditGrantSubjectGrantingConfigInterface(UniversalBaseModel):
|
|
10
|
-
apply_to_self: bool
|
|
11
|
-
apply_to_children: bool
|
|
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
|
lark/types/credit_pool.py
DELETED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
class CustomAggregationPricingMetricInterface(UniversalBaseModel):
|
|
10
|
-
sql: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
SQL to compute the pricing metric.
|
|
13
|
-
"""
|
|
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
|
lark/types/custom_unit.py
DELETED
lark/types/custom_unit_amount.py
DELETED
lark/types/dimension.py
DELETED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
class DimensionCoordinateInterface(UniversalBaseModel):
|
|
10
|
-
dimension_key: str
|
|
11
|
-
value: str
|
|
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,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
|
-
|
|
8
|
-
|
|
9
|
-
class DimensionInterface(UniversalBaseModel):
|
|
10
|
-
key: str
|
|
11
|
-
values: typing.List[str]
|
|
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,33 +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 .dimension_interface import DimensionInterface
|
|
8
|
-
from .pricing_matrix_interface import PricingMatrixInterface
|
|
9
|
-
from .pricing_metric_interface import PricingMetricInterface
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
class DimensionalUsageBasedRateInterface(UniversalBaseModel):
|
|
13
|
-
id: str
|
|
14
|
-
code: str = pydantic.Field()
|
|
15
|
-
"""
|
|
16
|
-
Code of this rate to be used for overrides and external reference.
|
|
17
|
-
"""
|
|
18
|
-
|
|
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
|
|
@@ -1,21 +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
|
-
|
|
8
|
-
|
|
9
|
-
class FeatureAccessResource(UniversalBaseModel):
|
|
10
|
-
code: str
|
|
11
|
-
feature_code: str
|
|
12
|
-
expression: typing.Optional[str] = None
|
|
13
|
-
|
|
14
|
-
if IS_PYDANTIC_V2:
|
|
15
|
-
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
16
|
-
else:
|
|
17
|
-
|
|
18
|
-
class Config:
|
|
19
|
-
frozen = True
|
|
20
|
-
smart_union = True
|
|
21
|
-
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 .credit_grant_resource import CreditGrantResource
|
|
8
|
-
from .feature_access_resource import FeatureAccessResource
|
|
9
|
-
from .fixed_rate_interface import FixedRateInterface
|
|
10
|
-
from .get_rate_card_response_billing_interval import GetRateCardResponseBillingInterval
|
|
11
|
-
from .get_rate_card_response_usage_based_rates_item import GetRateCardResponseUsageBasedRatesItem
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
class GetRateCardResponse(UniversalBaseModel):
|
|
15
|
-
id: str
|
|
16
|
-
name: str
|
|
17
|
-
description: str
|
|
18
|
-
usage_based_rates: typing.List[GetRateCardResponseUsageBasedRatesItem]
|
|
19
|
-
fixed_rates: typing.List[FixedRateInterface]
|
|
20
|
-
billing_interval: GetRateCardResponseBillingInterval
|
|
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 GetRateCardResponseUsageBasedRatesItem_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 GetRateCardResponseUsageBasedRatesItem_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
|
-
GetRateCardResponseUsageBasedRatesItem = typing.Union[
|
|
57
|
-
GetRateCardResponseUsageBasedRatesItem_Dimensional, GetRateCardResponseUsageBasedRatesItem_Simple
|
|
58
|
-
]
|
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
class LastAggregationPricingMetricInterface(UniversalBaseModel):
|
|
10
|
-
value_field: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
Field to get the last value of.
|
|
13
|
-
"""
|
|
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
|
lark/types/license_based_rate.py
DELETED
|
@@ -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
|
-
|
|
8
|
-
|
|
9
|
-
class MaxAggregationPricingMetricInterface(UniversalBaseModel):
|
|
10
|
-
value_field: str = pydantic.Field()
|
|
11
|
-
"""
|
|
12
|
-
Field to get the max value of.
|
|
13
|
-
"""
|
|
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
|
lark/types/monetary_amount.py
DELETED
|
@@ -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 .dimension_coordinate_interface import DimensionCoordinateInterface
|
|
8
|
-
from .price import Price
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
class PricingMatrixCellInterface(UniversalBaseModel):
|
|
12
|
-
dimension_coordinates: typing.List[DimensionCoordinateInterface]
|
|
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
|