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
lark/types/__init__.py
CHANGED
|
@@ -15,167 +15,46 @@ if typing.TYPE_CHECKING:
|
|
|
15
15
|
Aggregation_Sum,
|
|
16
16
|
)
|
|
17
17
|
from .amount import Amount
|
|
18
|
-
from .
|
|
19
|
-
from .check_feature_access_response import CheckFeatureAccessResponse
|
|
20
|
-
from .complete_subscription_checkout_response import CompleteSubscriptionCheckoutResponse
|
|
18
|
+
from .billing_state_response import BillingStateResponse
|
|
21
19
|
from .count_aggregation_pricing_metric_interface import CountAggregationPricingMetricInterface
|
|
22
|
-
from .
|
|
23
|
-
from .
|
|
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
|
|
20
|
+
from .count_aggregation_pricing_metric_resource import CountAggregationPricingMetricResource
|
|
21
|
+
from .create_customer_portal_session_response import CreateCustomerPortalSessionResponse
|
|
31
22
|
from .create_fixed_rate_interface import CreateFixedRateInterface
|
|
32
|
-
from .
|
|
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
|
-
)
|
|
23
|
+
from .create_pricing_metric_response import CreatePricingMetricResponse
|
|
50
24
|
from .create_simple_usage_based_rate_interface import CreateSimpleUsageBasedRateInterface
|
|
51
25
|
from .create_subject_response import CreateSubjectResponse
|
|
52
26
|
from .create_subscription_checkout_session_response import CreateSubscriptionCheckoutSessionResponse
|
|
53
27
|
from .create_usage_event_summary_response import CreateUsageEventSummaryResponse
|
|
54
|
-
from .
|
|
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
|
|
28
|
+
from .custom_pricing_metric_resource import CustomPricingMetricResource
|
|
117
29
|
from .fixed_rate_interface import FixedRateInterface
|
|
118
30
|
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
|
|
31
|
+
from .get_pricing_metric_response import GetPricingMetricResponse
|
|
127
32
|
from .http_validation_error import HttpValidationError
|
|
128
|
-
from .
|
|
129
|
-
from .license_based_rate import LicenseBasedRate
|
|
130
|
-
from .license_based_rate_input import LicenseBasedRateInput
|
|
33
|
+
from .last_aggregation_pricing_metric_resource import LastAggregationPricingMetricResource
|
|
131
34
|
from .list_rate_cards_response import ListRateCardsResponse
|
|
132
35
|
from .list_subjects_response import ListSubjectsResponse
|
|
133
36
|
from .list_subscriptions_response import ListSubscriptionsResponse
|
|
134
|
-
from .
|
|
135
|
-
from .monetary_amount import MonetaryAmount
|
|
37
|
+
from .max_aggregation_pricing_metric_resource import MaxAggregationPricingMetricResource
|
|
136
38
|
from .package_price import PackagePrice
|
|
137
|
-
from .
|
|
138
|
-
from .
|
|
39
|
+
from .package_price_input_rounding_behavior import PackagePriceInputRoundingBehavior
|
|
40
|
+
from .package_price_output_rounding_behavior import PackagePriceOutputRoundingBehavior
|
|
139
41
|
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
|
|
42
|
+
from .price import Price, Price_Flat, Price_Package
|
|
149
43
|
from .rate_card_resource import RateCardResource
|
|
150
44
|
from .rate_card_resource_billing_interval import RateCardResourceBillingInterval
|
|
151
45
|
from .rate_card_resource_usage_based_rates_item import (
|
|
152
46
|
RateCardResourceUsageBasedRatesItem,
|
|
153
|
-
RateCardResourceUsageBasedRatesItem_Dimensional,
|
|
154
47
|
RateCardResourceUsageBasedRatesItem_Simple,
|
|
155
48
|
)
|
|
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
49
|
from .simple_usage_based_rate_interface import SimpleUsageBasedRateInterface
|
|
161
50
|
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
51
|
from .subject_resource import SubjectResource
|
|
166
52
|
from .subscription_resource import SubscriptionResource
|
|
167
53
|
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
|
|
54
|
+
from .sum_aggregation_pricing_metric_resource import SumAggregationPricingMetricResource
|
|
177
55
|
from .validation_error import ValidationError
|
|
178
56
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
57
|
+
from .value import Value
|
|
179
58
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
180
59
|
"Aggregation": ".aggregation",
|
|
181
60
|
"Aggregation_Count": ".aggregation",
|
|
@@ -184,143 +63,46 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
184
63
|
"Aggregation_Max": ".aggregation",
|
|
185
64
|
"Aggregation_Sum": ".aggregation",
|
|
186
65
|
"Amount": ".amount",
|
|
187
|
-
"
|
|
188
|
-
"CheckFeatureAccessResponse": ".check_feature_access_response",
|
|
189
|
-
"CompleteSubscriptionCheckoutResponse": ".complete_subscription_checkout_response",
|
|
66
|
+
"BillingStateResponse": ".billing_state_response",
|
|
190
67
|
"CountAggregationPricingMetricInterface": ".count_aggregation_pricing_metric_interface",
|
|
191
|
-
"
|
|
192
|
-
"
|
|
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",
|
|
68
|
+
"CountAggregationPricingMetricResource": ".count_aggregation_pricing_metric_resource",
|
|
69
|
+
"CreateCustomerPortalSessionResponse": ".create_customer_portal_session_response",
|
|
198
70
|
"CreateFixedRateInterface": ".create_fixed_rate_interface",
|
|
199
|
-
"
|
|
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",
|
|
71
|
+
"CreatePricingMetricResponse": ".create_pricing_metric_response",
|
|
213
72
|
"CreateSimpleUsageBasedRateInterface": ".create_simple_usage_based_rate_interface",
|
|
214
73
|
"CreateSubjectResponse": ".create_subject_response",
|
|
215
74
|
"CreateSubscriptionCheckoutSessionResponse": ".create_subscription_checkout_session_response",
|
|
216
75
|
"CreateUsageEventSummaryResponse": ".create_usage_event_summary_response",
|
|
217
|
-
"
|
|
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",
|
|
76
|
+
"CustomPricingMetricResource": ".custom_pricing_metric_resource",
|
|
266
77
|
"FixedRateInterface": ".fixed_rate_interface",
|
|
267
78
|
"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",
|
|
79
|
+
"GetPricingMetricResponse": ".get_pricing_metric_response",
|
|
274
80
|
"HttpValidationError": ".http_validation_error",
|
|
275
|
-
"
|
|
276
|
-
"LicenseBasedRate": ".license_based_rate",
|
|
277
|
-
"LicenseBasedRateInput": ".license_based_rate_input",
|
|
81
|
+
"LastAggregationPricingMetricResource": ".last_aggregation_pricing_metric_resource",
|
|
278
82
|
"ListRateCardsResponse": ".list_rate_cards_response",
|
|
279
83
|
"ListSubjectsResponse": ".list_subjects_response",
|
|
280
84
|
"ListSubscriptionsResponse": ".list_subscriptions_response",
|
|
281
|
-
"
|
|
282
|
-
"MonetaryAmount": ".monetary_amount",
|
|
85
|
+
"MaxAggregationPricingMetricResource": ".max_aggregation_pricing_metric_resource",
|
|
283
86
|
"PackagePrice": ".package_price",
|
|
284
|
-
"
|
|
285
|
-
"
|
|
87
|
+
"PackagePriceInputRoundingBehavior": ".package_price_input_rounding_behavior",
|
|
88
|
+
"PackagePriceOutputRoundingBehavior": ".package_price_output_rounding_behavior",
|
|
286
89
|
"Period": ".period",
|
|
287
90
|
"Price": ".price",
|
|
288
|
-
"
|
|
289
|
-
"
|
|
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",
|
|
91
|
+
"Price_Flat": ".price",
|
|
92
|
+
"Price_Package": ".price",
|
|
296
93
|
"RateCardResource": ".rate_card_resource",
|
|
297
94
|
"RateCardResourceBillingInterval": ".rate_card_resource_billing_interval",
|
|
298
95
|
"RateCardResourceUsageBasedRatesItem": ".rate_card_resource_usage_based_rates_item",
|
|
299
|
-
"RateCardResourceUsageBasedRatesItem_Dimensional": ".rate_card_resource_usage_based_rates_item",
|
|
300
96
|
"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
97
|
"SimpleUsageBasedRateInterface": ".simple_usage_based_rate_interface",
|
|
306
98
|
"Status": ".status",
|
|
307
|
-
"Subject": ".subject",
|
|
308
|
-
"SubjectGrantingConfig": ".subject_granting_config",
|
|
309
|
-
"SubjectGrantingConfigResource": ".subject_granting_config_resource",
|
|
310
99
|
"SubjectResource": ".subject_resource",
|
|
311
100
|
"SubscriptionResource": ".subscription_resource",
|
|
312
101
|
"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",
|
|
102
|
+
"SumAggregationPricingMetricResource": ".sum_aggregation_pricing_metric_resource",
|
|
322
103
|
"ValidationError": ".validation_error",
|
|
323
104
|
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
105
|
+
"Value": ".value",
|
|
324
106
|
}
|
|
325
107
|
|
|
326
108
|
|
|
@@ -353,141 +135,44 @@ __all__ = [
|
|
|
353
135
|
"Aggregation_Max",
|
|
354
136
|
"Aggregation_Sum",
|
|
355
137
|
"Amount",
|
|
356
|
-
"
|
|
357
|
-
"CheckFeatureAccessResponse",
|
|
358
|
-
"CompleteSubscriptionCheckoutResponse",
|
|
138
|
+
"BillingStateResponse",
|
|
359
139
|
"CountAggregationPricingMetricInterface",
|
|
360
|
-
"
|
|
361
|
-
"
|
|
362
|
-
"CreateCreditGrantInterfaceExpiration_Duration",
|
|
363
|
-
"CreateCreditPoolRequest",
|
|
364
|
-
"CreateDimensionCoordinateInterface",
|
|
365
|
-
"CreateDimensionInterface",
|
|
366
|
-
"CreateDimensionalUsageBasedRateInterface",
|
|
140
|
+
"CountAggregationPricingMetricResource",
|
|
141
|
+
"CreateCustomerPortalSessionResponse",
|
|
367
142
|
"CreateFixedRateInterface",
|
|
368
|
-
"
|
|
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",
|
|
143
|
+
"CreatePricingMetricResponse",
|
|
382
144
|
"CreateSimpleUsageBasedRateInterface",
|
|
383
145
|
"CreateSubjectResponse",
|
|
384
146
|
"CreateSubscriptionCheckoutSessionResponse",
|
|
385
147
|
"CreateUsageEventSummaryResponse",
|
|
386
|
-
"
|
|
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",
|
|
148
|
+
"CustomPricingMetricResource",
|
|
435
149
|
"FixedRateInterface",
|
|
436
150
|
"FlatPrice",
|
|
437
|
-
"
|
|
438
|
-
"GetRateCardResponseBillingInterval",
|
|
439
|
-
"GetRateCardResponseUsageBasedRatesItem",
|
|
440
|
-
"GetRateCardResponseUsageBasedRatesItem_Dimensional",
|
|
441
|
-
"GetRateCardResponseUsageBasedRatesItem_Simple",
|
|
442
|
-
"GrantCreditsRequest",
|
|
151
|
+
"GetPricingMetricResponse",
|
|
443
152
|
"HttpValidationError",
|
|
444
|
-
"
|
|
445
|
-
"LicenseBasedRate",
|
|
446
|
-
"LicenseBasedRateInput",
|
|
153
|
+
"LastAggregationPricingMetricResource",
|
|
447
154
|
"ListRateCardsResponse",
|
|
448
155
|
"ListSubjectsResponse",
|
|
449
156
|
"ListSubscriptionsResponse",
|
|
450
|
-
"
|
|
451
|
-
"MonetaryAmount",
|
|
157
|
+
"MaxAggregationPricingMetricResource",
|
|
452
158
|
"PackagePrice",
|
|
453
|
-
"
|
|
454
|
-
"
|
|
159
|
+
"PackagePriceInputRoundingBehavior",
|
|
160
|
+
"PackagePriceOutputRoundingBehavior",
|
|
455
161
|
"Period",
|
|
456
162
|
"Price",
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"PricingMetric",
|
|
460
|
-
"PricingMetricInterface",
|
|
461
|
-
"PricingPlan",
|
|
462
|
-
"PricingPlanSubscription",
|
|
463
|
-
"PricingTier",
|
|
464
|
-
"RateCard",
|
|
163
|
+
"Price_Flat",
|
|
164
|
+
"Price_Package",
|
|
465
165
|
"RateCardResource",
|
|
466
166
|
"RateCardResourceBillingInterval",
|
|
467
167
|
"RateCardResourceUsageBasedRatesItem",
|
|
468
|
-
"RateCardResourceUsageBasedRatesItem_Dimensional",
|
|
469
168
|
"RateCardResourceUsageBasedRatesItem_Simple",
|
|
470
|
-
"RateCardVersion",
|
|
471
|
-
"RateCardVersionInput",
|
|
472
|
-
"SimpleUsageBasedRate",
|
|
473
|
-
"SimpleUsageBasedRateInput",
|
|
474
169
|
"SimpleUsageBasedRateInterface",
|
|
475
170
|
"Status",
|
|
476
|
-
"Subject",
|
|
477
|
-
"SubjectGrantingConfig",
|
|
478
|
-
"SubjectGrantingConfigResource",
|
|
479
171
|
"SubjectResource",
|
|
480
172
|
"SubscriptionResource",
|
|
481
173
|
"SumAggregationPricingMetricInterface",
|
|
482
|
-
"
|
|
483
|
-
"TieredPriceWrapper",
|
|
484
|
-
"Unit",
|
|
485
|
-
"UpdatePricingPlanRequest",
|
|
486
|
-
"UpdateRateCardRequest",
|
|
487
|
-
"UpdateSubscriptionRequest",
|
|
488
|
-
"UsageBasedRate",
|
|
489
|
-
"UsageBasedRateInput",
|
|
490
|
-
"UsageUnit",
|
|
174
|
+
"SumAggregationPricingMetricResource",
|
|
491
175
|
"ValidationError",
|
|
492
176
|
"ValidationErrorLocItem",
|
|
177
|
+
"Value",
|
|
493
178
|
]
|
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,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 BillingStateResponse(UniversalBaseModel):
|
|
10
|
+
has_active_subscription: bool
|
|
11
|
+
has_overage_for_usage: bool
|
|
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
|
|
@@ -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,19 +4,13 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_credit_grant_interface import CreateCreditGrantInterface
|
|
8
7
|
from .price import Price
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class CreateFixedRateInterface(UniversalBaseModel):
|
|
12
|
-
name: str
|
|
11
|
+
name: typing.Optional[str] = None
|
|
13
12
|
description: typing.Optional[str] = None
|
|
14
13
|
price: Price
|
|
15
|
-
credit_grants: typing.Optional[typing.List[CreateCreditGrantInterface]] = None
|
|
16
|
-
quantity_code: typing.Optional[str] = pydantic.Field(default=None)
|
|
17
|
-
"""
|
|
18
|
-
Code of this rate to be used for setting quantity.
|
|
19
|
-
"""
|
|
20
14
|
|
|
21
15
|
if IS_PYDANTIC_V2:
|
|
22
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -7,15 +7,12 @@ from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
|
7
7
|
from .aggregation import Aggregation
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
class
|
|
10
|
+
class CreatePricingMetricResponse(UniversalBaseModel):
|
|
11
11
|
id: str
|
|
12
12
|
name: str
|
|
13
13
|
event_name: str
|
|
14
14
|
aggregation: Aggregation
|
|
15
|
-
unit: str
|
|
16
|
-
"""
|
|
17
|
-
Unit of the value computed by the pricing metric.
|
|
18
|
-
"""
|
|
15
|
+
unit: str
|
|
19
16
|
|
|
20
17
|
if IS_PYDANTIC_V2:
|
|
21
18
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -4,21 +4,16 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .create_pricing_metric_interface import CreatePricingMetricInterface
|
|
8
7
|
from .price import Price
|
|
9
8
|
|
|
10
9
|
|
|
11
10
|
class CreateSimpleUsageBasedRateInterface(UniversalBaseModel):
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Code of this rate to be used for overrides and external reference.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
name: str
|
|
11
|
+
usage_based_rate_type: typing.Optional[typing.Literal["simple"]] = None
|
|
12
|
+
name: typing.Optional[str] = None
|
|
18
13
|
description: typing.Optional[str] = None
|
|
19
14
|
price: Price
|
|
20
15
|
included_units: typing.Optional[int] = None
|
|
21
|
-
|
|
16
|
+
pricing_metric_id: str
|
|
22
17
|
|
|
23
18
|
if IS_PYDANTIC_V2:
|
|
24
19
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
|
|
3
|
+
import datetime as dt
|
|
3
4
|
import typing
|
|
4
5
|
|
|
5
6
|
import pydantic
|
|
@@ -11,8 +12,8 @@ class CreateSubjectResponse(UniversalBaseModel):
|
|
|
11
12
|
external_id: typing.Optional[str] = None
|
|
12
13
|
name: typing.Optional[str] = None
|
|
13
14
|
email: typing.Optional[str] = None
|
|
14
|
-
parent_subject_id: typing.Optional[str] = None
|
|
15
15
|
metadata: typing.Dict[str, str]
|
|
16
|
+
created_at: dt.datetime
|
|
16
17
|
|
|
17
18
|
if IS_PYDANTIC_V2:
|
|
18
19
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -10,8 +10,7 @@ from .amount import Amount
|
|
|
10
10
|
class CreateSubscriptionCheckoutSessionResponse(UniversalBaseModel):
|
|
11
11
|
id: str
|
|
12
12
|
amount: Amount
|
|
13
|
-
|
|
14
|
-
setup_intent_client_secret: typing.Optional[str] = None
|
|
13
|
+
url: str
|
|
15
14
|
|
|
16
15
|
if IS_PYDANTIC_V2:
|
|
17
16
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|