lark-billing 0.0.6__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 +522 -0
- lark/checkout/__init__.py +4 -0
- lark/checkout/client.py +214 -0
- lark/checkout/raw_client.py +252 -0
- lark/client.py +240 -0
- lark/core/__init__.py +105 -0
- lark/core/api_error.py +23 -0
- lark/core/client_wrapper.py +79 -0
- lark/core/datetime_utils.py +28 -0
- lark/core/file.py +67 -0
- lark/core/force_multipart.py +18 -0
- lark/core/http_client.py +543 -0
- lark/core/http_response.py +55 -0
- lark/core/jsonable_encoder.py +100 -0
- lark/core/pydantic_utilities.py +258 -0
- lark/core/query_encoder.py +58 -0
- lark/core/remove_none_from_dict.py +11 -0
- lark/core/request_options.py +35 -0
- lark/core/serialization.py +276 -0
- lark/errors/__init__.py +34 -0
- lark/errors/unprocessable_entity_error.py +11 -0
- lark/feature_access/__init__.py +4 -0
- lark/feature_access/client.py +102 -0
- lark/feature_access/raw_client.py +113 -0
- lark/py.typed +0 -0
- lark/rate_cards/__init__.py +61 -0
- lark/rate_cards/client.py +817 -0
- lark/rate_cards/raw_client.py +728 -0
- lark/rate_cards/types/__init__.py +63 -0
- lark/rate_cards/types/create_rate_card_request_billing_interval.py +5 -0
- lark/rate_cards/types/create_rate_card_request_usage_based_rates_item.py +56 -0
- lark/rate_cards/types/create_rate_card_version_request_usage_based_rates_item.py +58 -0
- lark/rate_cards/types/create_rate_card_version_request_version_type.py +5 -0
- lark/subjects/__init__.py +4 -0
- lark/subjects/client.py +501 -0
- lark/subjects/raw_client.py +633 -0
- lark/subscriptions/__init__.py +4 -0
- lark/subscriptions/client.py +462 -0
- lark/subscriptions/raw_client.py +495 -0
- lark/types/__init__.py +493 -0
- lark/types/aggregation.py +80 -0
- lark/types/amount.py +20 -0
- lark/types/check_feature_access_request.py +24 -0
- lark/types/check_feature_access_response.py +21 -0
- lark/types/complete_subscription_checkout_response.py +21 -0
- lark/types/count_aggregation_pricing_metric_interface.py +17 -0
- lark/types/create_credit_grant_interface.py +27 -0
- lark/types/create_credit_grant_interface_expiration.py +27 -0
- lark/types/create_credit_pool_request.py +5 -0
- lark/types/create_dimension_coordinate_interface.py +20 -0
- lark/types/create_dimension_interface.py +20 -0
- lark/types/create_dimensional_usage_based_rate_interface.py +32 -0
- lark/types/create_fixed_rate_interface.py +28 -0
- lark/types/create_pricing_matrix_cell_interface.py +22 -0
- lark/types/create_pricing_matrix_interface.py +20 -0
- lark/types/create_pricing_metric_interface.py +26 -0
- lark/types/create_pricing_plan_request.py +5 -0
- lark/types/create_rate_card_response.py +36 -0
- lark/types/create_rate_card_response_billing_interval.py +5 -0
- lark/types/create_rate_card_response_usage_based_rates_item.py +58 -0
- lark/types/create_rate_card_version_response.py +36 -0
- lark/types/create_rate_card_version_response_billing_interval.py +5 -0
- lark/types/create_rate_card_version_response_usage_based_rates_item.py +59 -0
- lark/types/create_simple_usage_based_rate_interface.py +30 -0
- lark/types/create_subject_response.py +24 -0
- lark/types/create_subscription_checkout_session_response.py +23 -0
- lark/types/create_usage_event_summary_response.py +23 -0
- lark/types/credit_grant.py +5 -0
- lark/types/credit_grant_date_time_expiration_interface.py +19 -0
- lark/types/credit_grant_date_time_expiration_resource.py +19 -0
- lark/types/credit_grant_duration_expiration_interface.py +21 -0
- lark/types/credit_grant_duration_expiration_resource.py +21 -0
- lark/types/credit_grant_interface.py +28 -0
- lark/types/credit_grant_interface_input_expiration.py +27 -0
- lark/types/credit_grant_interface_output_expiration.py +43 -0
- lark/types/credit_grant_interface_output_schedule.py +41 -0
- lark/types/credit_grant_resource.py +28 -0
- lark/types/credit_grant_resource_input_expiration.py +27 -0
- lark/types/credit_grant_resource_input_schedule.py +39 -0
- lark/types/credit_grant_resource_output_expiration.py +43 -0
- lark/types/credit_grant_resource_output_schedule.py +39 -0
- lark/types/credit_grant_schedule.py +5 -0
- lark/types/credit_grant_schedule_one_time_interface.py +19 -0
- lark/types/credit_grant_schedule_one_time_resource.py +17 -0
- lark/types/credit_grant_schedule_rate_cycle_start_interface.py +19 -0
- lark/types/credit_grant_schedule_rate_cycle_start_resource.py +17 -0
- lark/types/credit_grant_subject_granting_config_interface.py +20 -0
- lark/types/credit_pool.py +5 -0
- lark/types/credit_pool_rollover_config.py +5 -0
- lark/types/custom_aggregation_pricing_metric_interface.py +22 -0
- lark/types/custom_pricing_metric.py +5 -0
- lark/types/custom_unit.py +5 -0
- lark/types/custom_unit_amount.py +5 -0
- lark/types/dimension.py +5 -0
- lark/types/dimension_coordinate.py +5 -0
- lark/types/dimension_coordinate_interface.py +20 -0
- lark/types/dimension_coordinate_set.py +5 -0
- lark/types/dimension_interface.py +20 -0
- lark/types/dimensional_rate_matrix.py +5 -0
- lark/types/dimensional_rate_matrix_cell.py +5 -0
- lark/types/dimensional_usage_based_rate.py +5 -0
- lark/types/dimensional_usage_based_rate_input.py +5 -0
- lark/types/dimensional_usage_based_rate_interface.py +33 -0
- lark/types/feature_access_resource.py +21 -0
- lark/types/fixed_rate_interface.py +29 -0
- lark/types/flat_price.py +24 -0
- lark/types/get_rate_card_response.py +36 -0
- lark/types/get_rate_card_response_billing_interval.py +5 -0
- lark/types/get_rate_card_response_usage_based_rates_item.py +58 -0
- lark/types/grant_credits_request.py +5 -0
- lark/types/http_validation_error.py +20 -0
- lark/types/last_aggregation_pricing_metric_interface.py +22 -0
- lark/types/license_based_rate.py +5 -0
- lark/types/license_based_rate_input.py +5 -0
- lark/types/list_rate_cards_response.py +21 -0
- lark/types/list_subjects_response.py +21 -0
- lark/types/list_subscriptions_response.py +21 -0
- lark/types/max_aggregation_pricing_metric_interface.py +22 -0
- lark/types/monetary_amount.py +5 -0
- lark/types/package_price.py +27 -0
- lark/types/package_price_rounding_behavior.py +5 -0
- lark/types/package_price_wrapper.py +5 -0
- lark/types/period.py +22 -0
- lark/types/price.py +5 -0
- lark/types/pricing_matrix_cell_interface.py +22 -0
- lark/types/pricing_matrix_interface.py +20 -0
- lark/types/pricing_metric.py +5 -0
- lark/types/pricing_metric_interface.py +27 -0
- lark/types/pricing_plan.py +5 -0
- lark/types/pricing_plan_subscription.py +5 -0
- lark/types/pricing_tier.py +5 -0
- lark/types/rate_card.py +5 -0
- lark/types/rate_card_resource.py +36 -0
- lark/types/rate_card_resource_billing_interval.py +5 -0
- lark/types/rate_card_resource_usage_based_rates_item.py +58 -0
- lark/types/rate_card_version.py +5 -0
- lark/types/rate_card_version_input.py +5 -0
- lark/types/simple_usage_based_rate.py +5 -0
- lark/types/simple_usage_based_rate_input.py +5 -0
- lark/types/simple_usage_based_rate_interface.py +31 -0
- lark/types/status.py +5 -0
- lark/types/subject.py +5 -0
- lark/types/subject_granting_config.py +5 -0
- lark/types/subject_granting_config_resource.py +20 -0
- lark/types/subject_resource.py +24 -0
- lark/types/subscription_resource.py +28 -0
- lark/types/sum_aggregation_pricing_metric_interface.py +22 -0
- lark/types/tiered_price.py +5 -0
- lark/types/tiered_price_wrapper.py +5 -0
- lark/types/unit.py +5 -0
- lark/types/update_pricing_plan_request.py +5 -0
- lark/types/update_rate_card_request.py +5 -0
- lark/types/update_subscription_request.py +5 -0
- lark/types/usage_based_rate.py +5 -0
- lark/types/usage_based_rate_input.py +5 -0
- lark/types/usage_unit.py +5 -0
- lark/types/validation_error.py +22 -0
- lark/types/validation_error_loc_item.py +5 -0
- lark/usage_events/__init__.py +34 -0
- lark/usage_events/client.py +293 -0
- lark/usage_events/raw_client.py +318 -0
- lark/usage_events/types/__init__.py +36 -0
- lark/usage_events/types/create_usage_event_summary_request_aggregation_type.py +5 -0
- lark/version.py +3 -0
- lark_billing-0.0.6.dist-info/METADATA +188 -0
- lark_billing-0.0.6.dist-info/RECORD +167 -0
- lark_billing-0.0.6.dist-info/WHEEL +4 -0
lark/types/__init__.py
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
# isort: skip_file
|
|
4
|
+
|
|
5
|
+
import typing
|
|
6
|
+
from importlib import import_module
|
|
7
|
+
|
|
8
|
+
if typing.TYPE_CHECKING:
|
|
9
|
+
from .aggregation import (
|
|
10
|
+
Aggregation,
|
|
11
|
+
Aggregation_Count,
|
|
12
|
+
Aggregation_Custom,
|
|
13
|
+
Aggregation_Last,
|
|
14
|
+
Aggregation_Max,
|
|
15
|
+
Aggregation_Sum,
|
|
16
|
+
)
|
|
17
|
+
from .amount import Amount
|
|
18
|
+
from .check_feature_access_request import CheckFeatureAccessRequest
|
|
19
|
+
from .check_feature_access_response import CheckFeatureAccessResponse
|
|
20
|
+
from .complete_subscription_checkout_response import CompleteSubscriptionCheckoutResponse
|
|
21
|
+
from .count_aggregation_pricing_metric_interface import CountAggregationPricingMetricInterface
|
|
22
|
+
from .create_credit_grant_interface import CreateCreditGrantInterface
|
|
23
|
+
from .create_credit_grant_interface_expiration import (
|
|
24
|
+
CreateCreditGrantInterfaceExpiration,
|
|
25
|
+
CreateCreditGrantInterfaceExpiration_Duration,
|
|
26
|
+
)
|
|
27
|
+
from .create_credit_pool_request import CreateCreditPoolRequest
|
|
28
|
+
from .create_dimension_coordinate_interface import CreateDimensionCoordinateInterface
|
|
29
|
+
from .create_dimension_interface import CreateDimensionInterface
|
|
30
|
+
from .create_dimensional_usage_based_rate_interface import CreateDimensionalUsageBasedRateInterface
|
|
31
|
+
from .create_fixed_rate_interface import CreateFixedRateInterface
|
|
32
|
+
from .create_pricing_matrix_cell_interface import CreatePricingMatrixCellInterface
|
|
33
|
+
from .create_pricing_matrix_interface import CreatePricingMatrixInterface
|
|
34
|
+
from .create_pricing_metric_interface import CreatePricingMetricInterface
|
|
35
|
+
from .create_pricing_plan_request import CreatePricingPlanRequest
|
|
36
|
+
from .create_rate_card_response import CreateRateCardResponse
|
|
37
|
+
from .create_rate_card_response_billing_interval import CreateRateCardResponseBillingInterval
|
|
38
|
+
from .create_rate_card_response_usage_based_rates_item import (
|
|
39
|
+
CreateRateCardResponseUsageBasedRatesItem,
|
|
40
|
+
CreateRateCardResponseUsageBasedRatesItem_Dimensional,
|
|
41
|
+
CreateRateCardResponseUsageBasedRatesItem_Simple,
|
|
42
|
+
)
|
|
43
|
+
from .create_rate_card_version_response import CreateRateCardVersionResponse
|
|
44
|
+
from .create_rate_card_version_response_billing_interval import CreateRateCardVersionResponseBillingInterval
|
|
45
|
+
from .create_rate_card_version_response_usage_based_rates_item import (
|
|
46
|
+
CreateRateCardVersionResponseUsageBasedRatesItem,
|
|
47
|
+
CreateRateCardVersionResponseUsageBasedRatesItem_Dimensional,
|
|
48
|
+
CreateRateCardVersionResponseUsageBasedRatesItem_Simple,
|
|
49
|
+
)
|
|
50
|
+
from .create_simple_usage_based_rate_interface import CreateSimpleUsageBasedRateInterface
|
|
51
|
+
from .create_subject_response import CreateSubjectResponse
|
|
52
|
+
from .create_subscription_checkout_session_response import CreateSubscriptionCheckoutSessionResponse
|
|
53
|
+
from .create_usage_event_summary_response import CreateUsageEventSummaryResponse
|
|
54
|
+
from .credit_grant import CreditGrant
|
|
55
|
+
from .credit_grant_date_time_expiration_interface import CreditGrantDateTimeExpirationInterface
|
|
56
|
+
from .credit_grant_date_time_expiration_resource import CreditGrantDateTimeExpirationResource
|
|
57
|
+
from .credit_grant_duration_expiration_interface import CreditGrantDurationExpirationInterface
|
|
58
|
+
from .credit_grant_duration_expiration_resource import CreditGrantDurationExpirationResource
|
|
59
|
+
from .credit_grant_interface import CreditGrantInterface
|
|
60
|
+
from .credit_grant_interface_input_expiration import (
|
|
61
|
+
CreditGrantInterfaceInputExpiration,
|
|
62
|
+
CreditGrantInterfaceInputExpiration_Duration,
|
|
63
|
+
)
|
|
64
|
+
from .credit_grant_interface_output_expiration import (
|
|
65
|
+
CreditGrantInterfaceOutputExpiration,
|
|
66
|
+
CreditGrantInterfaceOutputExpiration_Date,
|
|
67
|
+
CreditGrantInterfaceOutputExpiration_Duration,
|
|
68
|
+
)
|
|
69
|
+
from .credit_grant_interface_output_schedule import (
|
|
70
|
+
CreditGrantInterfaceOutputSchedule,
|
|
71
|
+
CreditGrantInterfaceOutputSchedule_OneTime,
|
|
72
|
+
CreditGrantInterfaceOutputSchedule_RateCycleStart,
|
|
73
|
+
)
|
|
74
|
+
from .credit_grant_resource import CreditGrantResource
|
|
75
|
+
from .credit_grant_resource_input_expiration import (
|
|
76
|
+
CreditGrantResourceInputExpiration,
|
|
77
|
+
CreditGrantResourceInputExpiration_Duration,
|
|
78
|
+
)
|
|
79
|
+
from .credit_grant_resource_input_schedule import (
|
|
80
|
+
CreditGrantResourceInputSchedule,
|
|
81
|
+
CreditGrantResourceInputSchedule_OneTime,
|
|
82
|
+
CreditGrantResourceInputSchedule_RateCycleStart,
|
|
83
|
+
)
|
|
84
|
+
from .credit_grant_resource_output_expiration import (
|
|
85
|
+
CreditGrantResourceOutputExpiration,
|
|
86
|
+
CreditGrantResourceOutputExpiration_Date,
|
|
87
|
+
CreditGrantResourceOutputExpiration_Duration,
|
|
88
|
+
)
|
|
89
|
+
from .credit_grant_resource_output_schedule import (
|
|
90
|
+
CreditGrantResourceOutputSchedule,
|
|
91
|
+
CreditGrantResourceOutputSchedule_OneTime,
|
|
92
|
+
CreditGrantResourceOutputSchedule_RateCycleStart,
|
|
93
|
+
)
|
|
94
|
+
from .credit_grant_schedule import CreditGrantSchedule
|
|
95
|
+
from .credit_grant_schedule_one_time_interface import CreditGrantScheduleOneTimeInterface
|
|
96
|
+
from .credit_grant_schedule_one_time_resource import CreditGrantScheduleOneTimeResource
|
|
97
|
+
from .credit_grant_schedule_rate_cycle_start_interface import CreditGrantScheduleRateCycleStartInterface
|
|
98
|
+
from .credit_grant_schedule_rate_cycle_start_resource import CreditGrantScheduleRateCycleStartResource
|
|
99
|
+
from .credit_grant_subject_granting_config_interface import CreditGrantSubjectGrantingConfigInterface
|
|
100
|
+
from .credit_pool import CreditPool
|
|
101
|
+
from .credit_pool_rollover_config import CreditPoolRolloverConfig
|
|
102
|
+
from .custom_aggregation_pricing_metric_interface import CustomAggregationPricingMetricInterface
|
|
103
|
+
from .custom_pricing_metric import CustomPricingMetric
|
|
104
|
+
from .custom_unit import CustomUnit
|
|
105
|
+
from .custom_unit_amount import CustomUnitAmount
|
|
106
|
+
from .dimension import Dimension
|
|
107
|
+
from .dimension_coordinate import DimensionCoordinate
|
|
108
|
+
from .dimension_coordinate_interface import DimensionCoordinateInterface
|
|
109
|
+
from .dimension_coordinate_set import DimensionCoordinateSet
|
|
110
|
+
from .dimension_interface import DimensionInterface
|
|
111
|
+
from .dimensional_rate_matrix import DimensionalRateMatrix
|
|
112
|
+
from .dimensional_rate_matrix_cell import DimensionalRateMatrixCell
|
|
113
|
+
from .dimensional_usage_based_rate import DimensionalUsageBasedRate
|
|
114
|
+
from .dimensional_usage_based_rate_input import DimensionalUsageBasedRateInput
|
|
115
|
+
from .dimensional_usage_based_rate_interface import DimensionalUsageBasedRateInterface
|
|
116
|
+
from .feature_access_resource import FeatureAccessResource
|
|
117
|
+
from .fixed_rate_interface import FixedRateInterface
|
|
118
|
+
from .flat_price import FlatPrice
|
|
119
|
+
from .get_rate_card_response import GetRateCardResponse
|
|
120
|
+
from .get_rate_card_response_billing_interval import GetRateCardResponseBillingInterval
|
|
121
|
+
from .get_rate_card_response_usage_based_rates_item import (
|
|
122
|
+
GetRateCardResponseUsageBasedRatesItem,
|
|
123
|
+
GetRateCardResponseUsageBasedRatesItem_Dimensional,
|
|
124
|
+
GetRateCardResponseUsageBasedRatesItem_Simple,
|
|
125
|
+
)
|
|
126
|
+
from .grant_credits_request import GrantCreditsRequest
|
|
127
|
+
from .http_validation_error import HttpValidationError
|
|
128
|
+
from .last_aggregation_pricing_metric_interface import LastAggregationPricingMetricInterface
|
|
129
|
+
from .license_based_rate import LicenseBasedRate
|
|
130
|
+
from .license_based_rate_input import LicenseBasedRateInput
|
|
131
|
+
from .list_rate_cards_response import ListRateCardsResponse
|
|
132
|
+
from .list_subjects_response import ListSubjectsResponse
|
|
133
|
+
from .list_subscriptions_response import ListSubscriptionsResponse
|
|
134
|
+
from .max_aggregation_pricing_metric_interface import MaxAggregationPricingMetricInterface
|
|
135
|
+
from .monetary_amount import MonetaryAmount
|
|
136
|
+
from .package_price import PackagePrice
|
|
137
|
+
from .package_price_rounding_behavior import PackagePriceRoundingBehavior
|
|
138
|
+
from .package_price_wrapper import PackagePriceWrapper
|
|
139
|
+
from .period import Period
|
|
140
|
+
from .price import Price
|
|
141
|
+
from .pricing_matrix_cell_interface import PricingMatrixCellInterface
|
|
142
|
+
from .pricing_matrix_interface import PricingMatrixInterface
|
|
143
|
+
from .pricing_metric import PricingMetric
|
|
144
|
+
from .pricing_metric_interface import PricingMetricInterface
|
|
145
|
+
from .pricing_plan import PricingPlan
|
|
146
|
+
from .pricing_plan_subscription import PricingPlanSubscription
|
|
147
|
+
from .pricing_tier import PricingTier
|
|
148
|
+
from .rate_card import RateCard
|
|
149
|
+
from .rate_card_resource import RateCardResource
|
|
150
|
+
from .rate_card_resource_billing_interval import RateCardResourceBillingInterval
|
|
151
|
+
from .rate_card_resource_usage_based_rates_item import (
|
|
152
|
+
RateCardResourceUsageBasedRatesItem,
|
|
153
|
+
RateCardResourceUsageBasedRatesItem_Dimensional,
|
|
154
|
+
RateCardResourceUsageBasedRatesItem_Simple,
|
|
155
|
+
)
|
|
156
|
+
from .rate_card_version import RateCardVersion
|
|
157
|
+
from .rate_card_version_input import RateCardVersionInput
|
|
158
|
+
from .simple_usage_based_rate import SimpleUsageBasedRate
|
|
159
|
+
from .simple_usage_based_rate_input import SimpleUsageBasedRateInput
|
|
160
|
+
from .simple_usage_based_rate_interface import SimpleUsageBasedRateInterface
|
|
161
|
+
from .status import Status
|
|
162
|
+
from .subject import Subject
|
|
163
|
+
from .subject_granting_config import SubjectGrantingConfig
|
|
164
|
+
from .subject_granting_config_resource import SubjectGrantingConfigResource
|
|
165
|
+
from .subject_resource import SubjectResource
|
|
166
|
+
from .subscription_resource import SubscriptionResource
|
|
167
|
+
from .sum_aggregation_pricing_metric_interface import SumAggregationPricingMetricInterface
|
|
168
|
+
from .tiered_price import TieredPrice
|
|
169
|
+
from .tiered_price_wrapper import TieredPriceWrapper
|
|
170
|
+
from .unit import Unit
|
|
171
|
+
from .update_pricing_plan_request import UpdatePricingPlanRequest
|
|
172
|
+
from .update_rate_card_request import UpdateRateCardRequest
|
|
173
|
+
from .update_subscription_request import UpdateSubscriptionRequest
|
|
174
|
+
from .usage_based_rate import UsageBasedRate
|
|
175
|
+
from .usage_based_rate_input import UsageBasedRateInput
|
|
176
|
+
from .usage_unit import UsageUnit
|
|
177
|
+
from .validation_error import ValidationError
|
|
178
|
+
from .validation_error_loc_item import ValidationErrorLocItem
|
|
179
|
+
_dynamic_imports: typing.Dict[str, str] = {
|
|
180
|
+
"Aggregation": ".aggregation",
|
|
181
|
+
"Aggregation_Count": ".aggregation",
|
|
182
|
+
"Aggregation_Custom": ".aggregation",
|
|
183
|
+
"Aggregation_Last": ".aggregation",
|
|
184
|
+
"Aggregation_Max": ".aggregation",
|
|
185
|
+
"Aggregation_Sum": ".aggregation",
|
|
186
|
+
"Amount": ".amount",
|
|
187
|
+
"CheckFeatureAccessRequest": ".check_feature_access_request",
|
|
188
|
+
"CheckFeatureAccessResponse": ".check_feature_access_response",
|
|
189
|
+
"CompleteSubscriptionCheckoutResponse": ".complete_subscription_checkout_response",
|
|
190
|
+
"CountAggregationPricingMetricInterface": ".count_aggregation_pricing_metric_interface",
|
|
191
|
+
"CreateCreditGrantInterface": ".create_credit_grant_interface",
|
|
192
|
+
"CreateCreditGrantInterfaceExpiration": ".create_credit_grant_interface_expiration",
|
|
193
|
+
"CreateCreditGrantInterfaceExpiration_Duration": ".create_credit_grant_interface_expiration",
|
|
194
|
+
"CreateCreditPoolRequest": ".create_credit_pool_request",
|
|
195
|
+
"CreateDimensionCoordinateInterface": ".create_dimension_coordinate_interface",
|
|
196
|
+
"CreateDimensionInterface": ".create_dimension_interface",
|
|
197
|
+
"CreateDimensionalUsageBasedRateInterface": ".create_dimensional_usage_based_rate_interface",
|
|
198
|
+
"CreateFixedRateInterface": ".create_fixed_rate_interface",
|
|
199
|
+
"CreatePricingMatrixCellInterface": ".create_pricing_matrix_cell_interface",
|
|
200
|
+
"CreatePricingMatrixInterface": ".create_pricing_matrix_interface",
|
|
201
|
+
"CreatePricingMetricInterface": ".create_pricing_metric_interface",
|
|
202
|
+
"CreatePricingPlanRequest": ".create_pricing_plan_request",
|
|
203
|
+
"CreateRateCardResponse": ".create_rate_card_response",
|
|
204
|
+
"CreateRateCardResponseBillingInterval": ".create_rate_card_response_billing_interval",
|
|
205
|
+
"CreateRateCardResponseUsageBasedRatesItem": ".create_rate_card_response_usage_based_rates_item",
|
|
206
|
+
"CreateRateCardResponseUsageBasedRatesItem_Dimensional": ".create_rate_card_response_usage_based_rates_item",
|
|
207
|
+
"CreateRateCardResponseUsageBasedRatesItem_Simple": ".create_rate_card_response_usage_based_rates_item",
|
|
208
|
+
"CreateRateCardVersionResponse": ".create_rate_card_version_response",
|
|
209
|
+
"CreateRateCardVersionResponseBillingInterval": ".create_rate_card_version_response_billing_interval",
|
|
210
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem": ".create_rate_card_version_response_usage_based_rates_item",
|
|
211
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem_Dimensional": ".create_rate_card_version_response_usage_based_rates_item",
|
|
212
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem_Simple": ".create_rate_card_version_response_usage_based_rates_item",
|
|
213
|
+
"CreateSimpleUsageBasedRateInterface": ".create_simple_usage_based_rate_interface",
|
|
214
|
+
"CreateSubjectResponse": ".create_subject_response",
|
|
215
|
+
"CreateSubscriptionCheckoutSessionResponse": ".create_subscription_checkout_session_response",
|
|
216
|
+
"CreateUsageEventSummaryResponse": ".create_usage_event_summary_response",
|
|
217
|
+
"CreditGrant": ".credit_grant",
|
|
218
|
+
"CreditGrantDateTimeExpirationInterface": ".credit_grant_date_time_expiration_interface",
|
|
219
|
+
"CreditGrantDateTimeExpirationResource": ".credit_grant_date_time_expiration_resource",
|
|
220
|
+
"CreditGrantDurationExpirationInterface": ".credit_grant_duration_expiration_interface",
|
|
221
|
+
"CreditGrantDurationExpirationResource": ".credit_grant_duration_expiration_resource",
|
|
222
|
+
"CreditGrantInterface": ".credit_grant_interface",
|
|
223
|
+
"CreditGrantInterfaceInputExpiration": ".credit_grant_interface_input_expiration",
|
|
224
|
+
"CreditGrantInterfaceInputExpiration_Duration": ".credit_grant_interface_input_expiration",
|
|
225
|
+
"CreditGrantInterfaceOutputExpiration": ".credit_grant_interface_output_expiration",
|
|
226
|
+
"CreditGrantInterfaceOutputExpiration_Date": ".credit_grant_interface_output_expiration",
|
|
227
|
+
"CreditGrantInterfaceOutputExpiration_Duration": ".credit_grant_interface_output_expiration",
|
|
228
|
+
"CreditGrantInterfaceOutputSchedule": ".credit_grant_interface_output_schedule",
|
|
229
|
+
"CreditGrantInterfaceOutputSchedule_OneTime": ".credit_grant_interface_output_schedule",
|
|
230
|
+
"CreditGrantInterfaceOutputSchedule_RateCycleStart": ".credit_grant_interface_output_schedule",
|
|
231
|
+
"CreditGrantResource": ".credit_grant_resource",
|
|
232
|
+
"CreditGrantResourceInputExpiration": ".credit_grant_resource_input_expiration",
|
|
233
|
+
"CreditGrantResourceInputExpiration_Duration": ".credit_grant_resource_input_expiration",
|
|
234
|
+
"CreditGrantResourceInputSchedule": ".credit_grant_resource_input_schedule",
|
|
235
|
+
"CreditGrantResourceInputSchedule_OneTime": ".credit_grant_resource_input_schedule",
|
|
236
|
+
"CreditGrantResourceInputSchedule_RateCycleStart": ".credit_grant_resource_input_schedule",
|
|
237
|
+
"CreditGrantResourceOutputExpiration": ".credit_grant_resource_output_expiration",
|
|
238
|
+
"CreditGrantResourceOutputExpiration_Date": ".credit_grant_resource_output_expiration",
|
|
239
|
+
"CreditGrantResourceOutputExpiration_Duration": ".credit_grant_resource_output_expiration",
|
|
240
|
+
"CreditGrantResourceOutputSchedule": ".credit_grant_resource_output_schedule",
|
|
241
|
+
"CreditGrantResourceOutputSchedule_OneTime": ".credit_grant_resource_output_schedule",
|
|
242
|
+
"CreditGrantResourceOutputSchedule_RateCycleStart": ".credit_grant_resource_output_schedule",
|
|
243
|
+
"CreditGrantSchedule": ".credit_grant_schedule",
|
|
244
|
+
"CreditGrantScheduleOneTimeInterface": ".credit_grant_schedule_one_time_interface",
|
|
245
|
+
"CreditGrantScheduleOneTimeResource": ".credit_grant_schedule_one_time_resource",
|
|
246
|
+
"CreditGrantScheduleRateCycleStartInterface": ".credit_grant_schedule_rate_cycle_start_interface",
|
|
247
|
+
"CreditGrantScheduleRateCycleStartResource": ".credit_grant_schedule_rate_cycle_start_resource",
|
|
248
|
+
"CreditGrantSubjectGrantingConfigInterface": ".credit_grant_subject_granting_config_interface",
|
|
249
|
+
"CreditPool": ".credit_pool",
|
|
250
|
+
"CreditPoolRolloverConfig": ".credit_pool_rollover_config",
|
|
251
|
+
"CustomAggregationPricingMetricInterface": ".custom_aggregation_pricing_metric_interface",
|
|
252
|
+
"CustomPricingMetric": ".custom_pricing_metric",
|
|
253
|
+
"CustomUnit": ".custom_unit",
|
|
254
|
+
"CustomUnitAmount": ".custom_unit_amount",
|
|
255
|
+
"Dimension": ".dimension",
|
|
256
|
+
"DimensionCoordinate": ".dimension_coordinate",
|
|
257
|
+
"DimensionCoordinateInterface": ".dimension_coordinate_interface",
|
|
258
|
+
"DimensionCoordinateSet": ".dimension_coordinate_set",
|
|
259
|
+
"DimensionInterface": ".dimension_interface",
|
|
260
|
+
"DimensionalRateMatrix": ".dimensional_rate_matrix",
|
|
261
|
+
"DimensionalRateMatrixCell": ".dimensional_rate_matrix_cell",
|
|
262
|
+
"DimensionalUsageBasedRate": ".dimensional_usage_based_rate",
|
|
263
|
+
"DimensionalUsageBasedRateInput": ".dimensional_usage_based_rate_input",
|
|
264
|
+
"DimensionalUsageBasedRateInterface": ".dimensional_usage_based_rate_interface",
|
|
265
|
+
"FeatureAccessResource": ".feature_access_resource",
|
|
266
|
+
"FixedRateInterface": ".fixed_rate_interface",
|
|
267
|
+
"FlatPrice": ".flat_price",
|
|
268
|
+
"GetRateCardResponse": ".get_rate_card_response",
|
|
269
|
+
"GetRateCardResponseBillingInterval": ".get_rate_card_response_billing_interval",
|
|
270
|
+
"GetRateCardResponseUsageBasedRatesItem": ".get_rate_card_response_usage_based_rates_item",
|
|
271
|
+
"GetRateCardResponseUsageBasedRatesItem_Dimensional": ".get_rate_card_response_usage_based_rates_item",
|
|
272
|
+
"GetRateCardResponseUsageBasedRatesItem_Simple": ".get_rate_card_response_usage_based_rates_item",
|
|
273
|
+
"GrantCreditsRequest": ".grant_credits_request",
|
|
274
|
+
"HttpValidationError": ".http_validation_error",
|
|
275
|
+
"LastAggregationPricingMetricInterface": ".last_aggregation_pricing_metric_interface",
|
|
276
|
+
"LicenseBasedRate": ".license_based_rate",
|
|
277
|
+
"LicenseBasedRateInput": ".license_based_rate_input",
|
|
278
|
+
"ListRateCardsResponse": ".list_rate_cards_response",
|
|
279
|
+
"ListSubjectsResponse": ".list_subjects_response",
|
|
280
|
+
"ListSubscriptionsResponse": ".list_subscriptions_response",
|
|
281
|
+
"MaxAggregationPricingMetricInterface": ".max_aggregation_pricing_metric_interface",
|
|
282
|
+
"MonetaryAmount": ".monetary_amount",
|
|
283
|
+
"PackagePrice": ".package_price",
|
|
284
|
+
"PackagePriceRoundingBehavior": ".package_price_rounding_behavior",
|
|
285
|
+
"PackagePriceWrapper": ".package_price_wrapper",
|
|
286
|
+
"Period": ".period",
|
|
287
|
+
"Price": ".price",
|
|
288
|
+
"PricingMatrixCellInterface": ".pricing_matrix_cell_interface",
|
|
289
|
+
"PricingMatrixInterface": ".pricing_matrix_interface",
|
|
290
|
+
"PricingMetric": ".pricing_metric",
|
|
291
|
+
"PricingMetricInterface": ".pricing_metric_interface",
|
|
292
|
+
"PricingPlan": ".pricing_plan",
|
|
293
|
+
"PricingPlanSubscription": ".pricing_plan_subscription",
|
|
294
|
+
"PricingTier": ".pricing_tier",
|
|
295
|
+
"RateCard": ".rate_card",
|
|
296
|
+
"RateCardResource": ".rate_card_resource",
|
|
297
|
+
"RateCardResourceBillingInterval": ".rate_card_resource_billing_interval",
|
|
298
|
+
"RateCardResourceUsageBasedRatesItem": ".rate_card_resource_usage_based_rates_item",
|
|
299
|
+
"RateCardResourceUsageBasedRatesItem_Dimensional": ".rate_card_resource_usage_based_rates_item",
|
|
300
|
+
"RateCardResourceUsageBasedRatesItem_Simple": ".rate_card_resource_usage_based_rates_item",
|
|
301
|
+
"RateCardVersion": ".rate_card_version",
|
|
302
|
+
"RateCardVersionInput": ".rate_card_version_input",
|
|
303
|
+
"SimpleUsageBasedRate": ".simple_usage_based_rate",
|
|
304
|
+
"SimpleUsageBasedRateInput": ".simple_usage_based_rate_input",
|
|
305
|
+
"SimpleUsageBasedRateInterface": ".simple_usage_based_rate_interface",
|
|
306
|
+
"Status": ".status",
|
|
307
|
+
"Subject": ".subject",
|
|
308
|
+
"SubjectGrantingConfig": ".subject_granting_config",
|
|
309
|
+
"SubjectGrantingConfigResource": ".subject_granting_config_resource",
|
|
310
|
+
"SubjectResource": ".subject_resource",
|
|
311
|
+
"SubscriptionResource": ".subscription_resource",
|
|
312
|
+
"SumAggregationPricingMetricInterface": ".sum_aggregation_pricing_metric_interface",
|
|
313
|
+
"TieredPrice": ".tiered_price",
|
|
314
|
+
"TieredPriceWrapper": ".tiered_price_wrapper",
|
|
315
|
+
"Unit": ".unit",
|
|
316
|
+
"UpdatePricingPlanRequest": ".update_pricing_plan_request",
|
|
317
|
+
"UpdateRateCardRequest": ".update_rate_card_request",
|
|
318
|
+
"UpdateSubscriptionRequest": ".update_subscription_request",
|
|
319
|
+
"UsageBasedRate": ".usage_based_rate",
|
|
320
|
+
"UsageBasedRateInput": ".usage_based_rate_input",
|
|
321
|
+
"UsageUnit": ".usage_unit",
|
|
322
|
+
"ValidationError": ".validation_error",
|
|
323
|
+
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
def __getattr__(attr_name: str) -> typing.Any:
|
|
328
|
+
module_name = _dynamic_imports.get(attr_name)
|
|
329
|
+
if module_name is None:
|
|
330
|
+
raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
|
|
331
|
+
try:
|
|
332
|
+
module = import_module(module_name, __package__)
|
|
333
|
+
if module_name == f".{attr_name}":
|
|
334
|
+
return module
|
|
335
|
+
else:
|
|
336
|
+
return getattr(module, attr_name)
|
|
337
|
+
except ImportError as e:
|
|
338
|
+
raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
|
|
339
|
+
except AttributeError as e:
|
|
340
|
+
raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
def __dir__():
|
|
344
|
+
lazy_attrs = list(_dynamic_imports.keys())
|
|
345
|
+
return sorted(lazy_attrs)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
__all__ = [
|
|
349
|
+
"Aggregation",
|
|
350
|
+
"Aggregation_Count",
|
|
351
|
+
"Aggregation_Custom",
|
|
352
|
+
"Aggregation_Last",
|
|
353
|
+
"Aggregation_Max",
|
|
354
|
+
"Aggregation_Sum",
|
|
355
|
+
"Amount",
|
|
356
|
+
"CheckFeatureAccessRequest",
|
|
357
|
+
"CheckFeatureAccessResponse",
|
|
358
|
+
"CompleteSubscriptionCheckoutResponse",
|
|
359
|
+
"CountAggregationPricingMetricInterface",
|
|
360
|
+
"CreateCreditGrantInterface",
|
|
361
|
+
"CreateCreditGrantInterfaceExpiration",
|
|
362
|
+
"CreateCreditGrantInterfaceExpiration_Duration",
|
|
363
|
+
"CreateCreditPoolRequest",
|
|
364
|
+
"CreateDimensionCoordinateInterface",
|
|
365
|
+
"CreateDimensionInterface",
|
|
366
|
+
"CreateDimensionalUsageBasedRateInterface",
|
|
367
|
+
"CreateFixedRateInterface",
|
|
368
|
+
"CreatePricingMatrixCellInterface",
|
|
369
|
+
"CreatePricingMatrixInterface",
|
|
370
|
+
"CreatePricingMetricInterface",
|
|
371
|
+
"CreatePricingPlanRequest",
|
|
372
|
+
"CreateRateCardResponse",
|
|
373
|
+
"CreateRateCardResponseBillingInterval",
|
|
374
|
+
"CreateRateCardResponseUsageBasedRatesItem",
|
|
375
|
+
"CreateRateCardResponseUsageBasedRatesItem_Dimensional",
|
|
376
|
+
"CreateRateCardResponseUsageBasedRatesItem_Simple",
|
|
377
|
+
"CreateRateCardVersionResponse",
|
|
378
|
+
"CreateRateCardVersionResponseBillingInterval",
|
|
379
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem",
|
|
380
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem_Dimensional",
|
|
381
|
+
"CreateRateCardVersionResponseUsageBasedRatesItem_Simple",
|
|
382
|
+
"CreateSimpleUsageBasedRateInterface",
|
|
383
|
+
"CreateSubjectResponse",
|
|
384
|
+
"CreateSubscriptionCheckoutSessionResponse",
|
|
385
|
+
"CreateUsageEventSummaryResponse",
|
|
386
|
+
"CreditGrant",
|
|
387
|
+
"CreditGrantDateTimeExpirationInterface",
|
|
388
|
+
"CreditGrantDateTimeExpirationResource",
|
|
389
|
+
"CreditGrantDurationExpirationInterface",
|
|
390
|
+
"CreditGrantDurationExpirationResource",
|
|
391
|
+
"CreditGrantInterface",
|
|
392
|
+
"CreditGrantInterfaceInputExpiration",
|
|
393
|
+
"CreditGrantInterfaceInputExpiration_Duration",
|
|
394
|
+
"CreditGrantInterfaceOutputExpiration",
|
|
395
|
+
"CreditGrantInterfaceOutputExpiration_Date",
|
|
396
|
+
"CreditGrantInterfaceOutputExpiration_Duration",
|
|
397
|
+
"CreditGrantInterfaceOutputSchedule",
|
|
398
|
+
"CreditGrantInterfaceOutputSchedule_OneTime",
|
|
399
|
+
"CreditGrantInterfaceOutputSchedule_RateCycleStart",
|
|
400
|
+
"CreditGrantResource",
|
|
401
|
+
"CreditGrantResourceInputExpiration",
|
|
402
|
+
"CreditGrantResourceInputExpiration_Duration",
|
|
403
|
+
"CreditGrantResourceInputSchedule",
|
|
404
|
+
"CreditGrantResourceInputSchedule_OneTime",
|
|
405
|
+
"CreditGrantResourceInputSchedule_RateCycleStart",
|
|
406
|
+
"CreditGrantResourceOutputExpiration",
|
|
407
|
+
"CreditGrantResourceOutputExpiration_Date",
|
|
408
|
+
"CreditGrantResourceOutputExpiration_Duration",
|
|
409
|
+
"CreditGrantResourceOutputSchedule",
|
|
410
|
+
"CreditGrantResourceOutputSchedule_OneTime",
|
|
411
|
+
"CreditGrantResourceOutputSchedule_RateCycleStart",
|
|
412
|
+
"CreditGrantSchedule",
|
|
413
|
+
"CreditGrantScheduleOneTimeInterface",
|
|
414
|
+
"CreditGrantScheduleOneTimeResource",
|
|
415
|
+
"CreditGrantScheduleRateCycleStartInterface",
|
|
416
|
+
"CreditGrantScheduleRateCycleStartResource",
|
|
417
|
+
"CreditGrantSubjectGrantingConfigInterface",
|
|
418
|
+
"CreditPool",
|
|
419
|
+
"CreditPoolRolloverConfig",
|
|
420
|
+
"CustomAggregationPricingMetricInterface",
|
|
421
|
+
"CustomPricingMetric",
|
|
422
|
+
"CustomUnit",
|
|
423
|
+
"CustomUnitAmount",
|
|
424
|
+
"Dimension",
|
|
425
|
+
"DimensionCoordinate",
|
|
426
|
+
"DimensionCoordinateInterface",
|
|
427
|
+
"DimensionCoordinateSet",
|
|
428
|
+
"DimensionInterface",
|
|
429
|
+
"DimensionalRateMatrix",
|
|
430
|
+
"DimensionalRateMatrixCell",
|
|
431
|
+
"DimensionalUsageBasedRate",
|
|
432
|
+
"DimensionalUsageBasedRateInput",
|
|
433
|
+
"DimensionalUsageBasedRateInterface",
|
|
434
|
+
"FeatureAccessResource",
|
|
435
|
+
"FixedRateInterface",
|
|
436
|
+
"FlatPrice",
|
|
437
|
+
"GetRateCardResponse",
|
|
438
|
+
"GetRateCardResponseBillingInterval",
|
|
439
|
+
"GetRateCardResponseUsageBasedRatesItem",
|
|
440
|
+
"GetRateCardResponseUsageBasedRatesItem_Dimensional",
|
|
441
|
+
"GetRateCardResponseUsageBasedRatesItem_Simple",
|
|
442
|
+
"GrantCreditsRequest",
|
|
443
|
+
"HttpValidationError",
|
|
444
|
+
"LastAggregationPricingMetricInterface",
|
|
445
|
+
"LicenseBasedRate",
|
|
446
|
+
"LicenseBasedRateInput",
|
|
447
|
+
"ListRateCardsResponse",
|
|
448
|
+
"ListSubjectsResponse",
|
|
449
|
+
"ListSubscriptionsResponse",
|
|
450
|
+
"MaxAggregationPricingMetricInterface",
|
|
451
|
+
"MonetaryAmount",
|
|
452
|
+
"PackagePrice",
|
|
453
|
+
"PackagePriceRoundingBehavior",
|
|
454
|
+
"PackagePriceWrapper",
|
|
455
|
+
"Period",
|
|
456
|
+
"Price",
|
|
457
|
+
"PricingMatrixCellInterface",
|
|
458
|
+
"PricingMatrixInterface",
|
|
459
|
+
"PricingMetric",
|
|
460
|
+
"PricingMetricInterface",
|
|
461
|
+
"PricingPlan",
|
|
462
|
+
"PricingPlanSubscription",
|
|
463
|
+
"PricingTier",
|
|
464
|
+
"RateCard",
|
|
465
|
+
"RateCardResource",
|
|
466
|
+
"RateCardResourceBillingInterval",
|
|
467
|
+
"RateCardResourceUsageBasedRatesItem",
|
|
468
|
+
"RateCardResourceUsageBasedRatesItem_Dimensional",
|
|
469
|
+
"RateCardResourceUsageBasedRatesItem_Simple",
|
|
470
|
+
"RateCardVersion",
|
|
471
|
+
"RateCardVersionInput",
|
|
472
|
+
"SimpleUsageBasedRate",
|
|
473
|
+
"SimpleUsageBasedRateInput",
|
|
474
|
+
"SimpleUsageBasedRateInterface",
|
|
475
|
+
"Status",
|
|
476
|
+
"Subject",
|
|
477
|
+
"SubjectGrantingConfig",
|
|
478
|
+
"SubjectGrantingConfigResource",
|
|
479
|
+
"SubjectResource",
|
|
480
|
+
"SubscriptionResource",
|
|
481
|
+
"SumAggregationPricingMetricInterface",
|
|
482
|
+
"TieredPrice",
|
|
483
|
+
"TieredPriceWrapper",
|
|
484
|
+
"Unit",
|
|
485
|
+
"UpdatePricingPlanRequest",
|
|
486
|
+
"UpdateRateCardRequest",
|
|
487
|
+
"UpdateSubscriptionRequest",
|
|
488
|
+
"UsageBasedRate",
|
|
489
|
+
"UsageBasedRateInput",
|
|
490
|
+
"UsageUnit",
|
|
491
|
+
"ValidationError",
|
|
492
|
+
"ValidationErrorLocItem",
|
|
493
|
+
]
|
|
@@ -0,0 +1,80 @@
|
|
|
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 Aggregation_Count(UniversalBaseModel):
|
|
12
|
+
aggregation_type: typing.Literal["count"] = "count"
|
|
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 Aggregation_Custom(UniversalBaseModel):
|
|
25
|
+
aggregation_type: typing.Literal["custom"] = "custom"
|
|
26
|
+
sql: str
|
|
27
|
+
|
|
28
|
+
if IS_PYDANTIC_V2:
|
|
29
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
30
|
+
else:
|
|
31
|
+
|
|
32
|
+
class Config:
|
|
33
|
+
frozen = True
|
|
34
|
+
smart_union = True
|
|
35
|
+
extra = pydantic.Extra.allow
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Aggregation_Last(UniversalBaseModel):
|
|
39
|
+
aggregation_type: typing.Literal["last"] = "last"
|
|
40
|
+
value_field: str
|
|
41
|
+
|
|
42
|
+
if IS_PYDANTIC_V2:
|
|
43
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
44
|
+
else:
|
|
45
|
+
|
|
46
|
+
class Config:
|
|
47
|
+
frozen = True
|
|
48
|
+
smart_union = True
|
|
49
|
+
extra = pydantic.Extra.allow
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class Aggregation_Max(UniversalBaseModel):
|
|
53
|
+
aggregation_type: typing.Literal["max"] = "max"
|
|
54
|
+
value_field: str
|
|
55
|
+
|
|
56
|
+
if IS_PYDANTIC_V2:
|
|
57
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
58
|
+
else:
|
|
59
|
+
|
|
60
|
+
class Config:
|
|
61
|
+
frozen = True
|
|
62
|
+
smart_union = True
|
|
63
|
+
extra = pydantic.Extra.allow
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class Aggregation_Sum(UniversalBaseModel):
|
|
67
|
+
aggregation_type: typing.Literal["sum"] = "sum"
|
|
68
|
+
value_field: str
|
|
69
|
+
|
|
70
|
+
if IS_PYDANTIC_V2:
|
|
71
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
72
|
+
else:
|
|
73
|
+
|
|
74
|
+
class Config:
|
|
75
|
+
frozen = True
|
|
76
|
+
smart_union = True
|
|
77
|
+
extra = pydantic.Extra.allow
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
Aggregation = typing.Union[Aggregation_Count, Aggregation_Custom, Aggregation_Last, Aggregation_Max, Aggregation_Sum]
|
lark/types/amount.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
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 Amount(UniversalBaseModel):
|
|
10
|
+
value: int
|
|
11
|
+
currency_code: 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
|
|
@@ -0,0 +1,24 @@
|
|
|
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 CheckFeatureAccessRequest(UniversalBaseModel):
|
|
10
|
+
feature_code: str = pydantic.Field()
|
|
11
|
+
"""
|
|
12
|
+
References `feature_code` from a usage-based rate.
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
subject_id: str
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
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 CheckFeatureAccessResponse(UniversalBaseModel):
|
|
10
|
+
feature_code: str
|
|
11
|
+
subject_id: str
|
|
12
|
+
feature_access: bool
|
|
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
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
|
|
9
|
+
|
|
10
|
+
class CompleteSubscriptionCheckoutResponse(UniversalBaseModel):
|
|
11
|
+
id: str
|
|
12
|
+
amount: Amount
|
|
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
|