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/types/__init__.py
CHANGED
|
@@ -6,321 +6,101 @@ import typing
|
|
|
6
6
|
from importlib import import_module
|
|
7
7
|
|
|
8
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
|
-
)
|
|
9
|
+
from .aggregation import Aggregation, Aggregation_Count, Aggregation_Sum
|
|
17
10
|
from .amount import Amount
|
|
18
|
-
from .
|
|
19
|
-
from .check_feature_access_response import CheckFeatureAccessResponse
|
|
20
|
-
from .complete_subscription_checkout_response import CompleteSubscriptionCheckoutResponse
|
|
11
|
+
from .billing_state_response import BillingStateResponse
|
|
21
12
|
from .count_aggregation_pricing_metric_interface import CountAggregationPricingMetricInterface
|
|
22
|
-
from .
|
|
23
|
-
from .
|
|
24
|
-
|
|
25
|
-
|
|
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
|
|
13
|
+
from .count_aggregation_pricing_metric_resource import CountAggregationPricingMetricResource
|
|
14
|
+
from .create_customer_portal_session_response import CreateCustomerPortalSessionResponse
|
|
15
|
+
from .create_fixed_rate_request import CreateFixedRateRequest
|
|
16
|
+
from .create_pricing_metric_response import CreatePricingMetricResponse
|
|
17
|
+
from .create_simple_usage_based_rate_request import CreateSimpleUsageBasedRateRequest
|
|
51
18
|
from .create_subject_response import CreateSubjectResponse
|
|
52
19
|
from .create_subscription_checkout_session_response import CreateSubscriptionCheckoutSessionResponse
|
|
53
20
|
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
21
|
from .fixed_rate_interface import FixedRateInterface
|
|
118
22
|
from .flat_price import FlatPrice
|
|
119
|
-
from .
|
|
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
|
|
23
|
+
from .get_pricing_metric_response import GetPricingMetricResponse
|
|
127
24
|
from .http_validation_error import HttpValidationError
|
|
128
|
-
from .
|
|
129
|
-
from .
|
|
130
|
-
from .
|
|
25
|
+
from .invoice_line_item_resource import InvoiceLineItemResource
|
|
26
|
+
from .invoice_resource import InvoiceResource
|
|
27
|
+
from .invoice_status import InvoiceStatus
|
|
28
|
+
from .list_invoices_response import ListInvoicesResponse
|
|
29
|
+
from .list_pricing_metrics_response import ListPricingMetricsResponse
|
|
131
30
|
from .list_rate_cards_response import ListRateCardsResponse
|
|
132
31
|
from .list_subjects_response import ListSubjectsResponse
|
|
133
32
|
from .list_subscriptions_response import ListSubscriptionsResponse
|
|
134
|
-
from .max_aggregation_pricing_metric_interface import MaxAggregationPricingMetricInterface
|
|
135
|
-
from .monetary_amount import MonetaryAmount
|
|
136
33
|
from .package_price import PackagePrice
|
|
137
|
-
from .
|
|
138
|
-
from .
|
|
34
|
+
from .package_price_input_rounding_behavior import PackagePriceInputRoundingBehavior
|
|
35
|
+
from .package_price_output_rounding_behavior import PackagePriceOutputRoundingBehavior
|
|
139
36
|
from .period import Period
|
|
140
|
-
from .
|
|
141
|
-
from .
|
|
142
|
-
from .
|
|
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
|
|
37
|
+
from .period_resource import PeriodResource
|
|
38
|
+
from .price import Price, Price_Flat, Price_Package
|
|
39
|
+
from .pricing_metric_resource import PricingMetricResource
|
|
149
40
|
from .rate_card_resource import RateCardResource
|
|
150
41
|
from .rate_card_resource_billing_interval import RateCardResourceBillingInterval
|
|
151
42
|
from .rate_card_resource_usage_based_rates_item import (
|
|
152
43
|
RateCardResourceUsageBasedRatesItem,
|
|
153
|
-
RateCardResourceUsageBasedRatesItem_Dimensional,
|
|
154
44
|
RateCardResourceUsageBasedRatesItem_Simple,
|
|
155
45
|
)
|
|
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
46
|
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
47
|
from .subject_resource import SubjectResource
|
|
166
48
|
from .subscription_resource import SubscriptionResource
|
|
49
|
+
from .subscription_status import SubscriptionStatus
|
|
167
50
|
from .sum_aggregation_pricing_metric_interface import SumAggregationPricingMetricInterface
|
|
168
|
-
from .
|
|
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
|
|
51
|
+
from .sum_aggregation_pricing_metric_resource import SumAggregationPricingMetricResource
|
|
177
52
|
from .validation_error import ValidationError
|
|
178
53
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
54
|
+
from .value import Value
|
|
179
55
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
180
56
|
"Aggregation": ".aggregation",
|
|
181
57
|
"Aggregation_Count": ".aggregation",
|
|
182
|
-
"Aggregation_Custom": ".aggregation",
|
|
183
|
-
"Aggregation_Last": ".aggregation",
|
|
184
|
-
"Aggregation_Max": ".aggregation",
|
|
185
58
|
"Aggregation_Sum": ".aggregation",
|
|
186
59
|
"Amount": ".amount",
|
|
187
|
-
"
|
|
188
|
-
"CheckFeatureAccessResponse": ".check_feature_access_response",
|
|
189
|
-
"CompleteSubscriptionCheckoutResponse": ".complete_subscription_checkout_response",
|
|
60
|
+
"BillingStateResponse": ".billing_state_response",
|
|
190
61
|
"CountAggregationPricingMetricInterface": ".count_aggregation_pricing_metric_interface",
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
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",
|
|
62
|
+
"CountAggregationPricingMetricResource": ".count_aggregation_pricing_metric_resource",
|
|
63
|
+
"CreateCustomerPortalSessionResponse": ".create_customer_portal_session_response",
|
|
64
|
+
"CreateFixedRateRequest": ".create_fixed_rate_request",
|
|
65
|
+
"CreatePricingMetricResponse": ".create_pricing_metric_response",
|
|
66
|
+
"CreateSimpleUsageBasedRateRequest": ".create_simple_usage_based_rate_request",
|
|
214
67
|
"CreateSubjectResponse": ".create_subject_response",
|
|
215
68
|
"CreateSubscriptionCheckoutSessionResponse": ".create_subscription_checkout_session_response",
|
|
216
69
|
"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
70
|
"FixedRateInterface": ".fixed_rate_interface",
|
|
267
71
|
"FlatPrice": ".flat_price",
|
|
268
|
-
"
|
|
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",
|
|
72
|
+
"GetPricingMetricResponse": ".get_pricing_metric_response",
|
|
274
73
|
"HttpValidationError": ".http_validation_error",
|
|
275
|
-
"
|
|
276
|
-
"
|
|
277
|
-
"
|
|
74
|
+
"InvoiceLineItemResource": ".invoice_line_item_resource",
|
|
75
|
+
"InvoiceResource": ".invoice_resource",
|
|
76
|
+
"InvoiceStatus": ".invoice_status",
|
|
77
|
+
"ListInvoicesResponse": ".list_invoices_response",
|
|
78
|
+
"ListPricingMetricsResponse": ".list_pricing_metrics_response",
|
|
278
79
|
"ListRateCardsResponse": ".list_rate_cards_response",
|
|
279
80
|
"ListSubjectsResponse": ".list_subjects_response",
|
|
280
81
|
"ListSubscriptionsResponse": ".list_subscriptions_response",
|
|
281
|
-
"MaxAggregationPricingMetricInterface": ".max_aggregation_pricing_metric_interface",
|
|
282
|
-
"MonetaryAmount": ".monetary_amount",
|
|
283
82
|
"PackagePrice": ".package_price",
|
|
284
|
-
"
|
|
285
|
-
"
|
|
83
|
+
"PackagePriceInputRoundingBehavior": ".package_price_input_rounding_behavior",
|
|
84
|
+
"PackagePriceOutputRoundingBehavior": ".package_price_output_rounding_behavior",
|
|
286
85
|
"Period": ".period",
|
|
86
|
+
"PeriodResource": ".period_resource",
|
|
287
87
|
"Price": ".price",
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
"
|
|
291
|
-
"PricingMetricInterface": ".pricing_metric_interface",
|
|
292
|
-
"PricingPlan": ".pricing_plan",
|
|
293
|
-
"PricingPlanSubscription": ".pricing_plan_subscription",
|
|
294
|
-
"PricingTier": ".pricing_tier",
|
|
295
|
-
"RateCard": ".rate_card",
|
|
88
|
+
"Price_Flat": ".price",
|
|
89
|
+
"Price_Package": ".price",
|
|
90
|
+
"PricingMetricResource": ".pricing_metric_resource",
|
|
296
91
|
"RateCardResource": ".rate_card_resource",
|
|
297
92
|
"RateCardResourceBillingInterval": ".rate_card_resource_billing_interval",
|
|
298
93
|
"RateCardResourceUsageBasedRatesItem": ".rate_card_resource_usage_based_rates_item",
|
|
299
|
-
"RateCardResourceUsageBasedRatesItem_Dimensional": ".rate_card_resource_usage_based_rates_item",
|
|
300
94
|
"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
95
|
"SimpleUsageBasedRateInterface": ".simple_usage_based_rate_interface",
|
|
306
|
-
"Status": ".status",
|
|
307
|
-
"Subject": ".subject",
|
|
308
|
-
"SubjectGrantingConfig": ".subject_granting_config",
|
|
309
|
-
"SubjectGrantingConfigResource": ".subject_granting_config_resource",
|
|
310
96
|
"SubjectResource": ".subject_resource",
|
|
311
97
|
"SubscriptionResource": ".subscription_resource",
|
|
98
|
+
"SubscriptionStatus": ".subscription_status",
|
|
312
99
|
"SumAggregationPricingMetricInterface": ".sum_aggregation_pricing_metric_interface",
|
|
313
|
-
"
|
|
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",
|
|
100
|
+
"SumAggregationPricingMetricResource": ".sum_aggregation_pricing_metric_resource",
|
|
322
101
|
"ValidationError": ".validation_error",
|
|
323
102
|
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
103
|
+
"Value": ".value",
|
|
324
104
|
}
|
|
325
105
|
|
|
326
106
|
|
|
@@ -348,146 +128,50 @@ def __dir__():
|
|
|
348
128
|
__all__ = [
|
|
349
129
|
"Aggregation",
|
|
350
130
|
"Aggregation_Count",
|
|
351
|
-
"Aggregation_Custom",
|
|
352
|
-
"Aggregation_Last",
|
|
353
|
-
"Aggregation_Max",
|
|
354
131
|
"Aggregation_Sum",
|
|
355
132
|
"Amount",
|
|
356
|
-
"
|
|
357
|
-
"CheckFeatureAccessResponse",
|
|
358
|
-
"CompleteSubscriptionCheckoutResponse",
|
|
133
|
+
"BillingStateResponse",
|
|
359
134
|
"CountAggregationPricingMetricInterface",
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"
|
|
363
|
-
"
|
|
364
|
-
"
|
|
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",
|
|
135
|
+
"CountAggregationPricingMetricResource",
|
|
136
|
+
"CreateCustomerPortalSessionResponse",
|
|
137
|
+
"CreateFixedRateRequest",
|
|
138
|
+
"CreatePricingMetricResponse",
|
|
139
|
+
"CreateSimpleUsageBasedRateRequest",
|
|
383
140
|
"CreateSubjectResponse",
|
|
384
141
|
"CreateSubscriptionCheckoutSessionResponse",
|
|
385
142
|
"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
143
|
"FixedRateInterface",
|
|
436
144
|
"FlatPrice",
|
|
437
|
-
"
|
|
438
|
-
"GetRateCardResponseBillingInterval",
|
|
439
|
-
"GetRateCardResponseUsageBasedRatesItem",
|
|
440
|
-
"GetRateCardResponseUsageBasedRatesItem_Dimensional",
|
|
441
|
-
"GetRateCardResponseUsageBasedRatesItem_Simple",
|
|
442
|
-
"GrantCreditsRequest",
|
|
145
|
+
"GetPricingMetricResponse",
|
|
443
146
|
"HttpValidationError",
|
|
444
|
-
"
|
|
445
|
-
"
|
|
446
|
-
"
|
|
147
|
+
"InvoiceLineItemResource",
|
|
148
|
+
"InvoiceResource",
|
|
149
|
+
"InvoiceStatus",
|
|
150
|
+
"ListInvoicesResponse",
|
|
151
|
+
"ListPricingMetricsResponse",
|
|
447
152
|
"ListRateCardsResponse",
|
|
448
153
|
"ListSubjectsResponse",
|
|
449
154
|
"ListSubscriptionsResponse",
|
|
450
|
-
"MaxAggregationPricingMetricInterface",
|
|
451
|
-
"MonetaryAmount",
|
|
452
155
|
"PackagePrice",
|
|
453
|
-
"
|
|
454
|
-
"
|
|
156
|
+
"PackagePriceInputRoundingBehavior",
|
|
157
|
+
"PackagePriceOutputRoundingBehavior",
|
|
455
158
|
"Period",
|
|
159
|
+
"PeriodResource",
|
|
456
160
|
"Price",
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"PricingMetricInterface",
|
|
461
|
-
"PricingPlan",
|
|
462
|
-
"PricingPlanSubscription",
|
|
463
|
-
"PricingTier",
|
|
464
|
-
"RateCard",
|
|
161
|
+
"Price_Flat",
|
|
162
|
+
"Price_Package",
|
|
163
|
+
"PricingMetricResource",
|
|
465
164
|
"RateCardResource",
|
|
466
165
|
"RateCardResourceBillingInterval",
|
|
467
166
|
"RateCardResourceUsageBasedRatesItem",
|
|
468
|
-
"RateCardResourceUsageBasedRatesItem_Dimensional",
|
|
469
167
|
"RateCardResourceUsageBasedRatesItem_Simple",
|
|
470
|
-
"RateCardVersion",
|
|
471
|
-
"RateCardVersionInput",
|
|
472
|
-
"SimpleUsageBasedRate",
|
|
473
|
-
"SimpleUsageBasedRateInput",
|
|
474
168
|
"SimpleUsageBasedRateInterface",
|
|
475
|
-
"Status",
|
|
476
|
-
"Subject",
|
|
477
|
-
"SubjectGrantingConfig",
|
|
478
|
-
"SubjectGrantingConfigResource",
|
|
479
169
|
"SubjectResource",
|
|
480
170
|
"SubscriptionResource",
|
|
171
|
+
"SubscriptionStatus",
|
|
481
172
|
"SumAggregationPricingMetricInterface",
|
|
482
|
-
"
|
|
483
|
-
"TieredPriceWrapper",
|
|
484
|
-
"Unit",
|
|
485
|
-
"UpdatePricingPlanRequest",
|
|
486
|
-
"UpdateRateCardRequest",
|
|
487
|
-
"UpdateSubscriptionRequest",
|
|
488
|
-
"UsageBasedRate",
|
|
489
|
-
"UsageBasedRateInput",
|
|
490
|
-
"UsageUnit",
|
|
173
|
+
"SumAggregationPricingMetricResource",
|
|
491
174
|
"ValidationError",
|
|
492
175
|
"ValidationErrorLocItem",
|
|
176
|
+
"Value",
|
|
493
177
|
]
|
lark/types/aggregation.py
CHANGED
|
@@ -21,48 +21,6 @@ class Aggregation_Count(UniversalBaseModel):
|
|
|
21
21
|
extra = pydantic.Extra.allow
|
|
22
22
|
|
|
23
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
24
|
class Aggregation_Sum(UniversalBaseModel):
|
|
67
25
|
aggregation_type: typing.Literal["sum"] = "sum"
|
|
68
26
|
value_field: str
|
|
@@ -77,4 +35,4 @@ class Aggregation_Sum(UniversalBaseModel):
|
|
|
77
35
|
extra = pydantic.Extra.allow
|
|
78
36
|
|
|
79
37
|
|
|
80
|
-
Aggregation = typing.Union[Aggregation_Count,
|
|
38
|
+
Aggregation = typing.Union[Aggregation_Count, Aggregation_Sum]
|
lark/types/amount.py
CHANGED
|
@@ -7,7 +7,11 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class Amount(UniversalBaseModel):
|
|
10
|
-
value:
|
|
10
|
+
value: str = pydantic.Field()
|
|
11
|
+
"""
|
|
12
|
+
The value of the amount in the smallest unit of the currency.
|
|
13
|
+
"""
|
|
14
|
+
|
|
11
15
|
currency_code: str
|
|
12
16
|
|
|
13
17
|
if IS_PYDANTIC_V2:
|
|
@@ -6,8 +6,9 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
10
|
-
|
|
9
|
+
class BillingStateResponse(UniversalBaseModel):
|
|
10
|
+
has_active_subscription: bool
|
|
11
|
+
has_overage_for_usage: bool
|
|
11
12
|
|
|
12
13
|
if IS_PYDANTIC_V2:
|
|
13
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -6,7 +6,7 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
9
|
+
class CountAggregationPricingMetricResource(UniversalBaseModel):
|
|
10
10
|
if IS_PYDANTIC_V2:
|
|
11
11
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
12
12
|
else:
|
|
@@ -6,9 +6,9 @@ import pydantic
|
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
class CreateCustomerPortalSessionResponse(UniversalBaseModel):
|
|
10
|
+
subject_id: str
|
|
11
|
+
url: str
|
|
12
12
|
|
|
13
13
|
if IS_PYDANTIC_V2:
|
|
14
14
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -4,11 +4,13 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .price import Price
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
class CreateFixedRateRequest(UniversalBaseModel):
|
|
11
|
+
name: typing.Optional[str] = None
|
|
12
|
+
description: typing.Optional[str] = None
|
|
13
|
+
price: Price
|
|
12
14
|
|
|
13
15
|
if IS_PYDANTIC_V2:
|
|
14
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|