stigg-api-client-v2 0.693.0__py3-none-any.whl → 5.9.0__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.
- stigg/_edge_utils.py +58 -0
- stigg/client.py +97 -21
- stigg/generated/__init__.py +734 -42
- stigg/generated/apply_subscription.py +4 -12
- stigg/generated/archive_customer.py +2 -3
- stigg/generated/async_base_client.py +187 -29
- stigg/generated/async_client.py +3659 -620
- stigg/generated/base_client.py +144 -23
- stigg/generated/base_model.py +16 -47
- stigg/generated/cancel_subscription.py +2 -3
- stigg/generated/cancel_subscription_updates.py +1 -4
- stigg/generated/client.py +3661 -616
- stigg/generated/create_payment_session.py +20 -0
- stigg/generated/create_subscription.py +2 -3
- stigg/generated/delegate_subscription_to_customer.py +22 -0
- stigg/generated/detach_customer_payment_method.py +20 -0
- stigg/generated/enums.py +426 -7
- stigg/generated/estimate_subscription.py +2 -3
- stigg/generated/estimate_subscription_update.py +2 -3
- stigg/generated/exceptions.py +9 -5
- stigg/generated/fragments.py +1864 -701
- stigg/generated/get_active_subscriptions.py +2 -3
- stigg/generated/get_active_subscriptions_list.py +22 -0
- stigg/generated/get_checkout_state.py +2 -3
- stigg/generated/get_coupons.py +4 -5
- stigg/generated/get_credit_balance.py +20 -0
- stigg/generated/get_credit_grants.py +36 -0
- stigg/generated/get_credit_ledger.py +25 -0
- stigg/generated/get_credit_usage.py +18 -0
- stigg/generated/get_customer_by_id.py +2 -3
- stigg/generated/get_customer_portal_by_ref_id.py +2 -3
- stigg/generated/get_customer_statistics.py +2 -3
- stigg/generated/get_entitlement.py +2 -3
- stigg/generated/get_entitlements.py +2 -3
- stigg/generated/get_entitlements_state.py +31 -0
- stigg/generated/get_mock_paywall.py +3 -5
- stigg/generated/get_paywall.py +2 -3
- stigg/generated/get_products.py +4 -5
- stigg/generated/get_sdk_configuration.py +3 -3
- stigg/generated/get_subscription.py +18 -0
- stigg/generated/get_subscriptions.py +35 -0
- stigg/generated/get_usage_history.py +2 -3
- stigg/generated/get_usage_history_v_2.py +18 -0
- stigg/generated/grant_credits.py +20 -0
- stigg/generated/grant_promotional_entitlements.py +2 -3
- stigg/generated/grant_promotional_entitlements_group.py +24 -0
- stigg/generated/import_customer.py +2 -3
- stigg/generated/import_customer_bulk.py +1 -4
- stigg/generated/import_subscriptions_bulk.py +1 -4
- stigg/generated/input_types.py +3871 -1878
- stigg/generated/migrate_subscription_to_latest.py +2 -3
- stigg/generated/preview_next_invoice.py +20 -0
- stigg/generated/preview_subscription.py +2 -3
- stigg/generated/provision_customer.py +4 -22
- stigg/generated/provision_subscription.py +4 -15
- stigg/generated/report_entitlement_check_requested.py +1 -4
- stigg/generated/report_event.py +1 -4
- stigg/generated/report_usage.py +6 -13
- stigg/generated/report_usage_bulk.py +22 -0
- stigg/generated/revoke_promotional_entitlement.py +5 -4
- stigg/generated/revoke_promotional_entitlements_group.py +24 -0
- stigg/generated/transfer_subscription.py +2 -3
- stigg/generated/transfer_subscription_to_resource.py +22 -0
- stigg/generated/unarchive_customer.py +2 -3
- stigg/generated/unlink_promotional_entitlements_group.py +24 -0
- stigg/generated/update_customer.py +2 -3
- stigg/generated/update_subscription.py +2 -3
- stigg/generated/void_credit_grant.py +18 -0
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +3 -4
- stigg_api_client_v2-5.9.0.dist-info/RECORD +73 -0
- stigg/edge_utils.py +0 -28
- stigg/generated/scalars.py +0 -6
- stigg_api_client_v2-0.693.0.dist-info/RECORD +0 -54
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/WHEEL +0 -0
stigg/generated/fragments.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Generated by ariadne-codegen
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
2
|
# Source: operations.graphql
|
|
3
3
|
|
|
4
4
|
from typing import Annotated, Any, List, Literal, Optional, Union
|
|
@@ -9,63 +9,102 @@ from .base_model import BaseModel
|
|
|
9
9
|
from .enums import (
|
|
10
10
|
AccessDeniedReason,
|
|
11
11
|
Alignment,
|
|
12
|
+
BillingCadence,
|
|
12
13
|
BillingModel,
|
|
13
14
|
BillingPeriod,
|
|
14
15
|
BillingVendorIdentifier,
|
|
15
16
|
CouponStatus,
|
|
16
17
|
CouponType,
|
|
18
|
+
CreditGrantType,
|
|
19
|
+
CreditLedgerEventType,
|
|
17
20
|
Currency,
|
|
18
21
|
DiscountDurationType,
|
|
19
22
|
DiscountType,
|
|
20
23
|
EntitlementResetPeriod,
|
|
21
24
|
FeatureType,
|
|
22
25
|
FontWeight,
|
|
26
|
+
InvoiceLineItemType,
|
|
23
27
|
MeterType,
|
|
24
28
|
MonthlyAccordingTo,
|
|
25
29
|
PaymentCollection,
|
|
30
|
+
PaymentCollectionMethod,
|
|
31
|
+
PaymentMethodType,
|
|
32
|
+
PlanChangeType,
|
|
26
33
|
PricingType,
|
|
27
34
|
PromotionalEntitlementPeriod,
|
|
28
35
|
PromotionalEntitlementStatus,
|
|
36
|
+
ProvisionSubscriptionStatus,
|
|
29
37
|
PublishMigrationType,
|
|
38
|
+
SubscriptionDecisionStrategy,
|
|
39
|
+
SubscriptionInvoiceBillingReason,
|
|
30
40
|
SubscriptionInvoiceStatus,
|
|
31
41
|
SubscriptionScheduleStatus,
|
|
32
42
|
SubscriptionScheduleType,
|
|
33
43
|
SubscriptionStatus,
|
|
34
44
|
SyncStatus,
|
|
35
45
|
TiersMode,
|
|
46
|
+
TrialEndBehavior,
|
|
36
47
|
TrialPeriodUnits,
|
|
48
|
+
UnitTransformationRound,
|
|
49
|
+
UsageMarkerType,
|
|
37
50
|
VendorIdentifier,
|
|
38
51
|
WeeklyAccordingTo,
|
|
39
52
|
WidgetType,
|
|
53
|
+
YearlyAccordingTo,
|
|
40
54
|
experimentGroupType,
|
|
41
55
|
)
|
|
42
56
|
|
|
43
57
|
|
|
58
|
+
class AddonDependencyFragment(BaseModel):
|
|
59
|
+
id: Any
|
|
60
|
+
ref_id: str = Field(alias="refId")
|
|
61
|
+
display_name: str = Field(alias="displayName")
|
|
62
|
+
description: Optional[str] = Field(default=None)
|
|
63
|
+
|
|
64
|
+
|
|
44
65
|
class PackageEntitlementFragment(BaseModel):
|
|
45
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
46
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage")
|
|
66
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
67
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
68
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
47
69
|
feature_id: str = Field(alias="featureId")
|
|
48
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
70
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
71
|
+
alias="resetPeriod", default=None
|
|
72
|
+
)
|
|
73
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
74
|
+
alias="hiddenFromWidgets", default=None
|
|
75
|
+
)
|
|
76
|
+
is_custom: Optional[bool] = Field(alias="isCustom", default=None)
|
|
77
|
+
display_name_override: Optional[str] = Field(
|
|
78
|
+
alias="displayNameOverride", default=None
|
|
79
|
+
)
|
|
80
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
81
|
+
is_granted: bool = Field(alias="isGranted")
|
|
52
82
|
feature: "PackageEntitlementFragmentFeature"
|
|
53
83
|
|
|
54
84
|
|
|
55
85
|
class PackageEntitlementFragmentFeature(BaseModel):
|
|
56
86
|
feature_type: FeatureType = Field(alias="featureType")
|
|
57
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
58
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
59
|
-
feature_units_plural: Optional[str] = Field(
|
|
87
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
88
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
89
|
+
feature_units_plural: Optional[str] = Field(
|
|
90
|
+
alias="featureUnitsPlural", default=None
|
|
91
|
+
)
|
|
60
92
|
display_name: str = Field(alias="displayName")
|
|
61
|
-
description: Optional[str]
|
|
93
|
+
description: Optional[str] = Field(default=None)
|
|
62
94
|
ref_id: str = Field(alias="refId")
|
|
63
|
-
additional_meta_data: Optional[Any] = Field(
|
|
95
|
+
additional_meta_data: Optional[Any] = Field(
|
|
96
|
+
alias="additionalMetaData", default=None
|
|
97
|
+
)
|
|
64
98
|
|
|
65
99
|
|
|
66
100
|
class PriceTierFragment(BaseModel):
|
|
67
|
-
up_to: float = Field(alias="upTo")
|
|
68
|
-
unit_price: "PriceTierFragmentUnitPrice" = Field(
|
|
101
|
+
up_to: Optional[float] = Field(alias="upTo", default=None)
|
|
102
|
+
unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
|
|
103
|
+
alias="unitPrice", default=None
|
|
104
|
+
)
|
|
105
|
+
flat_price: Optional["PriceTierFragmentFlatPrice"] = Field(
|
|
106
|
+
alias="flatPrice", default=None
|
|
107
|
+
)
|
|
69
108
|
|
|
70
109
|
|
|
71
110
|
class PriceTierFragmentUnitPrice(BaseModel):
|
|
@@ -73,17 +112,29 @@ class PriceTierFragmentUnitPrice(BaseModel):
|
|
|
73
112
|
currency: Currency
|
|
74
113
|
|
|
75
114
|
|
|
115
|
+
class PriceTierFragmentFlatPrice(BaseModel):
|
|
116
|
+
amount: float
|
|
117
|
+
currency: Currency
|
|
118
|
+
|
|
119
|
+
|
|
76
120
|
class PriceFragment(BaseModel):
|
|
77
121
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
78
122
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
123
|
+
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
124
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
125
|
+
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
126
|
+
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
127
|
+
billing_country_code: Optional[str] = Field(
|
|
128
|
+
alias="billingCountryCode", default=None
|
|
129
|
+
)
|
|
130
|
+
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
131
|
+
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
132
|
+
alias="creditRate", default=None
|
|
133
|
+
)
|
|
134
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
135
|
+
tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
|
|
136
|
+
feature: Optional["PriceFragmentFeature"] = Field(default=None)
|
|
137
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
87
138
|
|
|
88
139
|
|
|
89
140
|
class PriceFragmentPrice(BaseModel):
|
|
@@ -91,172 +142,293 @@ class PriceFragmentPrice(BaseModel):
|
|
|
91
142
|
currency: Currency
|
|
92
143
|
|
|
93
144
|
|
|
145
|
+
class PriceFragmentCreditRate(BaseModel):
|
|
146
|
+
amount: float
|
|
147
|
+
custom_currency_id: Optional[Any] = Field(alias="customCurrencyId", default=None)
|
|
148
|
+
currency_id: str = Field(alias="currencyId")
|
|
149
|
+
|
|
150
|
+
|
|
94
151
|
class PriceFragmentTiers(PriceTierFragment):
|
|
95
152
|
pass
|
|
96
153
|
|
|
97
154
|
|
|
98
155
|
class PriceFragmentFeature(BaseModel):
|
|
99
156
|
ref_id: str = Field(alias="refId")
|
|
100
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
101
|
-
feature_units_plural: Optional[str] = Field(
|
|
157
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
158
|
+
feature_units_plural: Optional[str] = Field(
|
|
159
|
+
alias="featureUnitsPlural", default=None
|
|
160
|
+
)
|
|
102
161
|
display_name: str = Field(alias="displayName")
|
|
103
|
-
description: Optional[str]
|
|
162
|
+
description: Optional[str] = Field(default=None)
|
|
104
163
|
|
|
105
164
|
|
|
106
|
-
class
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
165
|
+
class OveragePriceFragment(BaseModel):
|
|
166
|
+
billing_model: BillingModel = Field(alias="billingModel")
|
|
167
|
+
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
168
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
169
|
+
billing_country_code: Optional[str] = Field(
|
|
170
|
+
alias="billingCountryCode", default=None
|
|
171
|
+
)
|
|
172
|
+
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
173
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
174
|
+
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
175
|
+
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
116
176
|
|
|
117
177
|
|
|
118
|
-
class
|
|
119
|
-
|
|
178
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
179
|
+
amount: float
|
|
180
|
+
currency: Currency
|
|
120
181
|
|
|
121
182
|
|
|
122
|
-
class
|
|
183
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
123
184
|
pass
|
|
124
185
|
|
|
125
186
|
|
|
126
|
-
class
|
|
127
|
-
|
|
128
|
-
|
|
187
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
188
|
+
ref_id: str = Field(alias="refId")
|
|
189
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
190
|
+
feature_units_plural: Optional[str] = Field(
|
|
191
|
+
alias="featureUnitsPlural", default=None
|
|
192
|
+
)
|
|
193
|
+
display_name: str = Field(alias="displayName")
|
|
194
|
+
description: Optional[str] = Field(default=None)
|
|
129
195
|
|
|
130
196
|
|
|
131
|
-
class
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
197
|
+
class AddonFragment(BaseModel):
|
|
198
|
+
id: Any
|
|
199
|
+
ref_id: str = Field(alias="refId")
|
|
200
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
201
|
+
display_name: str = Field(alias="displayName")
|
|
202
|
+
description: Optional[str] = Field(default=None)
|
|
203
|
+
additional_meta_data: Optional[Any] = Field(
|
|
204
|
+
alias="additionalMetaData", default=None
|
|
205
|
+
)
|
|
206
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
207
|
+
alias="hiddenFromWidgets", default=None
|
|
208
|
+
)
|
|
209
|
+
entitlements: Optional[List["AddonFragmentEntitlements"]] = Field(default=None)
|
|
210
|
+
prices: Optional[List["AddonFragmentPrices"]] = Field(default=None)
|
|
211
|
+
overage_prices: Optional[List["AddonFragmentOveragePrices"]] = Field(
|
|
212
|
+
alias="overagePrices", default=None
|
|
213
|
+
)
|
|
214
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
215
|
+
max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
|
|
216
|
+
dependencies: Optional[List["AddonFragmentDependencies"]] = Field(default=None)
|
|
137
217
|
|
|
138
218
|
|
|
139
|
-
class
|
|
219
|
+
class AddonFragmentEntitlements(PackageEntitlementFragment):
|
|
140
220
|
pass
|
|
141
221
|
|
|
142
222
|
|
|
143
|
-
class
|
|
223
|
+
class AddonFragmentPrices(PriceFragment):
|
|
144
224
|
pass
|
|
145
225
|
|
|
146
226
|
|
|
147
|
-
class
|
|
227
|
+
class AddonFragmentOveragePrices(OveragePriceFragment):
|
|
148
228
|
pass
|
|
149
229
|
|
|
150
230
|
|
|
151
|
-
class
|
|
231
|
+
class AddonFragmentDependencies(AddonDependencyFragment):
|
|
152
232
|
pass
|
|
153
233
|
|
|
154
234
|
|
|
155
|
-
class
|
|
156
|
-
|
|
157
|
-
typography: Optional["CheckoutConfigurationFragmentTypography"]
|
|
158
|
-
custom_css: Optional[str] = Field(alias="customCss")
|
|
159
|
-
content: Optional["CheckoutConfigurationFragmentContent"]
|
|
160
|
-
typename__: str = Field(alias="__typename")
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
class CheckoutConfigurationFragmentPalette(BaseModel):
|
|
164
|
-
primary: Optional[str]
|
|
165
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
166
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
167
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
168
|
-
summary_background_color: Optional[str] = Field(alias="summaryBackgroundColor")
|
|
169
|
-
typename__: Literal["CheckoutColorPalette"] = Field(alias="__typename")
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
class CheckoutConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
173
|
-
typename__: Literal["TypographyConfiguration"] = Field(alias="__typename")
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
class CheckoutConfigurationFragmentContent(BaseModel):
|
|
177
|
-
collect_phone_number: Optional[bool] = Field(alias="collectPhoneNumber")
|
|
235
|
+
class CustomerResourceFragment(BaseModel):
|
|
236
|
+
resource_id: str = Field(alias="resourceId")
|
|
178
237
|
|
|
179
238
|
|
|
180
|
-
class
|
|
239
|
+
class SubscriptionScheduledUpdateData(BaseModel):
|
|
181
240
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
182
241
|
alias="subscriptionScheduleType"
|
|
183
242
|
)
|
|
184
243
|
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
185
244
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
186
|
-
target_package: Optional["
|
|
187
|
-
alias="targetPackage"
|
|
245
|
+
target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
|
|
246
|
+
alias="targetPackage", default=None
|
|
188
247
|
)
|
|
189
248
|
schedule_variables: Optional[
|
|
190
249
|
Annotated[
|
|
191
250
|
Union[
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
251
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
|
|
252
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
253
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
254
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
|
|
255
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
256
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
|
|
257
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
258
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
196
259
|
],
|
|
197
260
|
Field(discriminator="typename__"),
|
|
198
261
|
]
|
|
199
|
-
] = Field(alias="scheduleVariables")
|
|
262
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
200
263
|
|
|
201
264
|
|
|
202
|
-
class
|
|
203
|
-
id:
|
|
265
|
+
class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
|
|
266
|
+
id: Any
|
|
204
267
|
ref_id: str = Field(alias="refId")
|
|
205
268
|
display_name: str = Field(alias="displayName")
|
|
206
269
|
|
|
207
270
|
|
|
208
|
-
class
|
|
271
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
209
272
|
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
210
273
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
211
274
|
new_quantity: float = Field(alias="newQuantity")
|
|
212
275
|
|
|
213
276
|
|
|
214
|
-
class
|
|
277
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
278
|
+
BaseModel
|
|
279
|
+
):
|
|
280
|
+
typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
281
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
282
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
|
|
215
286
|
BaseModel
|
|
216
287
|
):
|
|
217
288
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
218
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
289
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
219
290
|
|
|
220
291
|
|
|
221
|
-
class
|
|
292
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
|
|
293
|
+
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
|
|
297
|
+
BaseModel
|
|
298
|
+
):
|
|
222
299
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
223
|
-
addon_ref_ids: Optional[str] = Field(alias="addonRefIds")
|
|
224
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
225
300
|
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
301
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
302
|
+
billable_features: Optional[
|
|
303
|
+
List[
|
|
304
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
|
|
305
|
+
]
|
|
306
|
+
] = Field(alias="billableFeatures", default=None)
|
|
307
|
+
addons: Optional[
|
|
308
|
+
List[
|
|
309
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
|
|
310
|
+
]
|
|
311
|
+
] = Field(default=None)
|
|
312
|
+
price_overrides: Optional[
|
|
313
|
+
List[
|
|
314
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
|
|
315
|
+
]
|
|
316
|
+
] = Field(alias="priceOverrides", default=None)
|
|
226
317
|
|
|
227
318
|
|
|
228
|
-
class
|
|
319
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
320
|
+
BaseModel
|
|
321
|
+
):
|
|
322
|
+
feature_id: str = Field(alias="featureId")
|
|
323
|
+
quantity: float
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
|
|
327
|
+
BaseModel
|
|
328
|
+
):
|
|
329
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
330
|
+
quantity: float
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
|
|
334
|
+
BaseModel
|
|
335
|
+
):
|
|
336
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
337
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
338
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
|
|
342
|
+
typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
|
|
343
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
344
|
+
change_type: PlanChangeType = Field(alias="changeType")
|
|
345
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
346
|
+
billable_features: Optional[
|
|
347
|
+
List[
|
|
348
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
|
|
349
|
+
]
|
|
350
|
+
] = Field(alias="billableFeatures", default=None)
|
|
351
|
+
addons: Optional[
|
|
352
|
+
List[
|
|
353
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
|
|
354
|
+
]
|
|
355
|
+
] = Field(default=None)
|
|
356
|
+
price_overrides: Optional[
|
|
357
|
+
List[
|
|
358
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
359
|
+
]
|
|
360
|
+
] = Field(alias="priceOverrides", default=None)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
364
|
+
BaseModel
|
|
365
|
+
):
|
|
366
|
+
feature_id: str = Field(alias="featureId")
|
|
367
|
+
quantity: float
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
|
|
371
|
+
BaseModel
|
|
372
|
+
):
|
|
373
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
374
|
+
quantity: float
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
378
|
+
BaseModel
|
|
379
|
+
):
|
|
380
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
381
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
382
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
386
|
+
BaseModel
|
|
387
|
+
):
|
|
388
|
+
typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
389
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
390
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
394
|
+
BaseModel
|
|
395
|
+
):
|
|
229
396
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
230
|
-
new_unit_amount: Optional[float] = Field(alias="newUnitAmount")
|
|
231
|
-
feature_id: Optional[str] = Field(alias="featureId")
|
|
397
|
+
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
398
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
232
399
|
|
|
233
400
|
|
|
234
|
-
class
|
|
235
|
-
|
|
401
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
402
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
403
|
+
display_name: str = Field(alias="displayName")
|
|
404
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
405
|
+
default=None
|
|
406
|
+
)
|
|
407
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
236
408
|
|
|
237
409
|
|
|
238
|
-
class
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret")
|
|
246
|
-
error_message: Optional[str] = Field(alias="errorMessage")
|
|
410
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
411
|
+
pass
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
415
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
416
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
247
417
|
|
|
248
418
|
|
|
249
419
|
class ProductFragment(BaseModel):
|
|
250
420
|
ref_id: str = Field(alias="refId")
|
|
251
|
-
display_name: Optional[str] = Field(alias="displayName")
|
|
252
|
-
description: Optional[str]
|
|
253
|
-
additional_meta_data: Optional[Any] = Field(
|
|
421
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
422
|
+
description: Optional[str] = Field(default=None)
|
|
423
|
+
additional_meta_data: Optional[Any] = Field(
|
|
424
|
+
alias="additionalMetaData", default=None
|
|
425
|
+
)
|
|
254
426
|
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
255
427
|
|
|
256
428
|
|
|
257
429
|
class ProductFragmentProductSettings(BaseModel):
|
|
258
430
|
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
259
|
-
alias="downgradePlan"
|
|
431
|
+
alias="downgradePlan", default=None
|
|
260
432
|
)
|
|
261
433
|
|
|
262
434
|
|
|
@@ -266,26 +438,37 @@ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
|
266
438
|
|
|
267
439
|
|
|
268
440
|
class PlanFragment(BaseModel):
|
|
269
|
-
id:
|
|
441
|
+
id: Any
|
|
270
442
|
ref_id: str = Field(alias="refId")
|
|
271
443
|
display_name: str = Field(alias="displayName")
|
|
272
|
-
description: Optional[str]
|
|
273
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
444
|
+
description: Optional[str] = Field(default=None)
|
|
445
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
274
446
|
version_number: int = Field(alias="versionNumber")
|
|
275
|
-
additional_meta_data: Optional[Any] = Field(
|
|
447
|
+
additional_meta_data: Optional[Any] = Field(
|
|
448
|
+
alias="additionalMetaData", default=None
|
|
449
|
+
)
|
|
450
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
451
|
+
alias="hiddenFromWidgets", default=None
|
|
452
|
+
)
|
|
276
453
|
product: "PlanFragmentProduct"
|
|
277
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan")
|
|
278
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]]
|
|
454
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
455
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
279
456
|
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
280
|
-
alias="inheritedEntitlements"
|
|
457
|
+
alias="inheritedEntitlements", default=None
|
|
281
458
|
)
|
|
282
459
|
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
283
|
-
alias="compatibleAddons"
|
|
460
|
+
alias="compatibleAddons", default=None
|
|
461
|
+
)
|
|
462
|
+
compatible_package_groups: Optional[
|
|
463
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
464
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
465
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
466
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
467
|
+
alias="overagePrices", default=None
|
|
284
468
|
)
|
|
285
|
-
|
|
286
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
469
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
287
470
|
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
288
|
-
alias="defaultTrialConfig"
|
|
471
|
+
alias="defaultTrialConfig", default=None
|
|
289
472
|
)
|
|
290
473
|
|
|
291
474
|
|
|
@@ -310,13 +493,50 @@ class PlanFragmentCompatibleAddons(AddonFragment):
|
|
|
310
493
|
pass
|
|
311
494
|
|
|
312
495
|
|
|
496
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
497
|
+
pass
|
|
498
|
+
|
|
499
|
+
|
|
313
500
|
class PlanFragmentPrices(PriceFragment):
|
|
314
501
|
pass
|
|
315
502
|
|
|
316
503
|
|
|
504
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
505
|
+
pass
|
|
506
|
+
|
|
507
|
+
|
|
317
508
|
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
318
509
|
duration: float
|
|
319
510
|
units: TrialPeriodUnits
|
|
511
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
512
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
513
|
+
alias="trialEndBehavior", default=None
|
|
514
|
+
)
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
518
|
+
limit: float
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
522
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
class SlimCustomerFragment(BaseModel):
|
|
526
|
+
id: Any
|
|
527
|
+
name: Optional[str] = Field(default=None)
|
|
528
|
+
email: Optional[str] = Field(default=None)
|
|
529
|
+
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
530
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
531
|
+
ref_id: str = Field(alias="refId")
|
|
532
|
+
customer_id: str = Field(alias="customerId")
|
|
533
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
534
|
+
additional_meta_data: Optional[Any] = Field(
|
|
535
|
+
alias="additionalMetaData", default=None
|
|
536
|
+
)
|
|
537
|
+
aws_marketplace_customer_id: Optional[str] = Field(
|
|
538
|
+
alias="awsMarketplaceCustomerId", default=None
|
|
539
|
+
)
|
|
320
540
|
|
|
321
541
|
|
|
322
542
|
class TotalPriceFragment(BaseModel):
|
|
@@ -334,97 +554,241 @@ class TotalPriceFragmentTotal(BaseModel):
|
|
|
334
554
|
currency: Currency
|
|
335
555
|
|
|
336
556
|
|
|
337
|
-
class
|
|
557
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
558
|
+
billing_id: str = Field(alias="billingId")
|
|
559
|
+
status: SubscriptionInvoiceStatus
|
|
560
|
+
created_at: Any = Field(alias="createdAt")
|
|
561
|
+
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
562
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
563
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
564
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
565
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
566
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
567
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
568
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
569
|
+
alias="billingReason", default=None
|
|
570
|
+
)
|
|
571
|
+
currency: Optional[str] = Field(default=None)
|
|
572
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
573
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
574
|
+
alias="subTotalExcludingTax", default=None
|
|
575
|
+
)
|
|
576
|
+
total: Optional[float] = Field(default=None)
|
|
577
|
+
total_excluding_tax: Optional[float] = Field(
|
|
578
|
+
alias="totalExcludingTax", default=None
|
|
579
|
+
)
|
|
580
|
+
tax: Optional[float] = Field(default=None)
|
|
581
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
582
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
class SubscriptionFutureUpdateData(BaseModel):
|
|
338
586
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
339
587
|
alias="subscriptionScheduleType"
|
|
340
588
|
)
|
|
341
589
|
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
342
590
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
343
|
-
target_package: Optional["
|
|
344
|
-
alias="targetPackage"
|
|
591
|
+
target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
|
|
592
|
+
alias="targetPackage", default=None
|
|
345
593
|
)
|
|
346
594
|
schedule_variables: Optional[
|
|
347
595
|
Annotated[
|
|
348
596
|
Union[
|
|
349
|
-
"
|
|
350
|
-
"
|
|
351
|
-
"
|
|
352
|
-
"
|
|
597
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
|
|
598
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
599
|
+
"SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
600
|
+
"SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
|
|
601
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
602
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
|
|
603
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
604
|
+
"SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
353
605
|
],
|
|
354
606
|
Field(discriminator="typename__"),
|
|
355
607
|
]
|
|
356
|
-
] = Field(alias="scheduleVariables")
|
|
608
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
357
609
|
|
|
358
610
|
|
|
359
|
-
class
|
|
360
|
-
id:
|
|
611
|
+
class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
|
|
612
|
+
id: Any
|
|
361
613
|
ref_id: str = Field(alias="refId")
|
|
362
614
|
display_name: str = Field(alias="displayName")
|
|
363
615
|
|
|
364
616
|
|
|
365
|
-
class
|
|
617
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
366
618
|
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
367
619
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
368
620
|
new_quantity: float = Field(alias="newQuantity")
|
|
369
621
|
|
|
370
622
|
|
|
371
|
-
class
|
|
623
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
372
624
|
BaseModel
|
|
373
625
|
):
|
|
374
|
-
typename__: Literal["
|
|
375
|
-
|
|
626
|
+
typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
627
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
628
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
376
629
|
|
|
377
630
|
|
|
378
|
-
class
|
|
631
|
+
class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
|
|
379
632
|
BaseModel
|
|
380
633
|
):
|
|
634
|
+
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
635
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
|
|
639
|
+
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
|
|
381
643
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
382
|
-
addon_ref_ids: Optional[str] = Field(alias="addonRefIds")
|
|
383
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
384
644
|
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
645
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
646
|
+
billable_features: Optional[
|
|
647
|
+
List[
|
|
648
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
|
|
649
|
+
]
|
|
650
|
+
] = Field(alias="billableFeatures", default=None)
|
|
651
|
+
addons: Optional[
|
|
652
|
+
List[
|
|
653
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
|
|
654
|
+
]
|
|
655
|
+
] = Field(default=None)
|
|
656
|
+
price_overrides: Optional[
|
|
657
|
+
List[
|
|
658
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
|
|
659
|
+
]
|
|
660
|
+
] = Field(alias="priceOverrides", default=None)
|
|
385
661
|
|
|
386
662
|
|
|
387
|
-
class
|
|
663
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
388
664
|
BaseModel
|
|
389
665
|
):
|
|
666
|
+
feature_id: str = Field(alias="featureId")
|
|
667
|
+
quantity: float
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
|
|
671
|
+
BaseModel
|
|
672
|
+
):
|
|
673
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
674
|
+
quantity: float
|
|
675
|
+
|
|
676
|
+
|
|
677
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
|
|
678
|
+
BaseModel
|
|
679
|
+
):
|
|
680
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
681
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
682
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
|
|
686
|
+
typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
|
|
687
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
688
|
+
change_type: PlanChangeType = Field(alias="changeType")
|
|
689
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
690
|
+
billable_features: Optional[
|
|
691
|
+
List[
|
|
692
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
|
|
693
|
+
]
|
|
694
|
+
] = Field(alias="billableFeatures", default=None)
|
|
695
|
+
addons: Optional[
|
|
696
|
+
List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
|
|
697
|
+
] = Field(default=None)
|
|
698
|
+
price_overrides: Optional[
|
|
699
|
+
List[
|
|
700
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
701
|
+
]
|
|
702
|
+
] = Field(alias="priceOverrides", default=None)
|
|
703
|
+
|
|
704
|
+
|
|
705
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
706
|
+
BaseModel
|
|
707
|
+
):
|
|
708
|
+
feature_id: str = Field(alias="featureId")
|
|
709
|
+
quantity: float
|
|
710
|
+
|
|
711
|
+
|
|
712
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
|
|
713
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
714
|
+
quantity: float
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
718
|
+
BaseModel
|
|
719
|
+
):
|
|
720
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
721
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
722
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
723
|
+
|
|
724
|
+
|
|
725
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
726
|
+
BaseModel
|
|
727
|
+
):
|
|
728
|
+
typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
729
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
730
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
731
|
+
|
|
732
|
+
|
|
733
|
+
class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
|
|
390
734
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
391
|
-
new_unit_amount: Optional[float] = Field(alias="newUnitAmount")
|
|
392
|
-
feature_id: Optional[str] = Field(alias="featureId")
|
|
735
|
+
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
736
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
393
737
|
|
|
394
738
|
|
|
395
739
|
class SubscriptionFragment(BaseModel):
|
|
396
|
-
id:
|
|
740
|
+
id: Any
|
|
741
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
742
|
+
paying_customer: Optional["SubscriptionFragmentPayingCustomer"] = Field(
|
|
743
|
+
alias="payingCustomer", default=None
|
|
744
|
+
)
|
|
397
745
|
start_date: Any = Field(alias="startDate")
|
|
398
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
399
|
-
trial_end_date: Optional[Any] = Field(alias="trialEndDate")
|
|
400
|
-
cancellation_date: Optional[Any] = Field(alias="cancellationDate")
|
|
401
|
-
effective_end_date: Optional[Any] = Field(alias="effectiveEndDate")
|
|
746
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
747
|
+
trial_end_date: Optional[Any] = Field(alias="trialEndDate", default=None)
|
|
748
|
+
cancellation_date: Optional[Any] = Field(alias="cancellationDate", default=None)
|
|
749
|
+
effective_end_date: Optional[Any] = Field(alias="effectiveEndDate", default=None)
|
|
402
750
|
status: SubscriptionStatus
|
|
403
751
|
ref_id: str = Field(alias="refId")
|
|
404
|
-
current_billing_period_end: Optional[Any] = Field(
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
752
|
+
current_billing_period_end: Optional[Any] = Field(
|
|
753
|
+
alias="currentBillingPeriodEnd", default=None
|
|
754
|
+
)
|
|
755
|
+
additional_meta_data: Optional[Any] = Field(
|
|
756
|
+
alias="additionalMetaData", default=None
|
|
757
|
+
)
|
|
758
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
759
|
+
billing_link_url: Optional[str] = Field(alias="billingLinkUrl", default=None)
|
|
408
760
|
latest_invoice: Optional["SubscriptionFragmentLatestInvoice"] = Field(
|
|
409
|
-
alias="latestInvoice"
|
|
761
|
+
alias="latestInvoice", default=None
|
|
410
762
|
)
|
|
411
763
|
payment_collection: PaymentCollection = Field(alias="paymentCollection")
|
|
412
|
-
|
|
413
|
-
|
|
764
|
+
payment_collection_method: Optional[PaymentCollectionMethod] = Field(
|
|
765
|
+
alias="paymentCollectionMethod", default=None
|
|
766
|
+
)
|
|
767
|
+
billing_sync_error: Optional[str] = Field(alias="billingSyncError", default=None)
|
|
768
|
+
resource: Optional["SubscriptionFragmentResource"] = Field(default=None)
|
|
414
769
|
experiment_info: Optional["SubscriptionFragmentExperimentInfo"] = Field(
|
|
415
|
-
alias="experimentInfo"
|
|
770
|
+
alias="experimentInfo", default=None
|
|
771
|
+
)
|
|
772
|
+
prices: Optional[List["SubscriptionFragmentPrices"]] = Field(default=None)
|
|
773
|
+
total_price: Optional["SubscriptionFragmentTotalPrice"] = Field(
|
|
774
|
+
alias="totalPrice", default=None
|
|
416
775
|
)
|
|
417
|
-
prices: Optional[List["SubscriptionFragmentPrices"]]
|
|
418
|
-
total_price: Optional["SubscriptionFragmentTotalPrice"] = Field(alias="totalPrice")
|
|
419
776
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
420
777
|
plan: "SubscriptionFragmentPlan"
|
|
421
|
-
addons: Optional[List["SubscriptionFragmentAddons"]]
|
|
778
|
+
addons: Optional[List["SubscriptionFragmentAddons"]] = Field(default=None)
|
|
422
779
|
scheduled_updates: Optional[List["SubscriptionFragmentScheduledUpdates"]] = Field(
|
|
423
|
-
alias="scheduledUpdates"
|
|
780
|
+
alias="scheduledUpdates", default=None
|
|
424
781
|
)
|
|
425
782
|
future_updates: List["SubscriptionFragmentFutureUpdates"] = Field(
|
|
426
783
|
alias="futureUpdates"
|
|
427
784
|
)
|
|
785
|
+
trial_configuration: Optional["SubscriptionFragmentTrialConfiguration"] = Field(
|
|
786
|
+
alias="trialConfiguration", default=None
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
class SubscriptionFragmentPayingCustomer(SlimCustomerFragment):
|
|
791
|
+
pass
|
|
428
792
|
|
|
429
793
|
|
|
430
794
|
class SubscriptionFragmentLatestInvoice(SubscriptionInvoiceFragment):
|
|
@@ -443,77 +807,271 @@ class SubscriptionFragmentExperimentInfo(BaseModel):
|
|
|
443
807
|
|
|
444
808
|
|
|
445
809
|
class SubscriptionFragmentPrices(BaseModel):
|
|
446
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
447
|
-
price: Optional["SubscriptionFragmentPricesPrice"]
|
|
810
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
811
|
+
price: Optional["SubscriptionFragmentPricesPrice"] = Field(default=None)
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
class SubscriptionFragmentPricesPrice(PriceFragment):
|
|
815
|
+
pass
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
class SubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
819
|
+
pass
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
class SubscriptionFragmentPlan(PlanFragment):
|
|
823
|
+
pass
|
|
824
|
+
|
|
825
|
+
|
|
826
|
+
class SubscriptionFragmentAddons(BaseModel):
|
|
827
|
+
id: Any
|
|
828
|
+
quantity: float
|
|
829
|
+
addon: "SubscriptionFragmentAddonsAddon"
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
class SubscriptionFragmentAddonsAddon(AddonFragment):
|
|
833
|
+
pass
|
|
834
|
+
|
|
835
|
+
|
|
836
|
+
class SubscriptionFragmentScheduledUpdates(SubscriptionScheduledUpdateData):
|
|
837
|
+
pass
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
class SubscriptionFragmentFutureUpdates(SubscriptionFutureUpdateData):
|
|
841
|
+
pass
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragment):
|
|
845
|
+
pass
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
class FeatureFragment(BaseModel):
|
|
849
|
+
typename__: str = Field(alias="__typename")
|
|
850
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
851
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
852
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
853
|
+
feature_units_plural: Optional[str] = Field(
|
|
854
|
+
alias="featureUnitsPlural", default=None
|
|
855
|
+
)
|
|
856
|
+
description: Optional[str] = Field(default=None)
|
|
857
|
+
display_name: str = Field(alias="displayName")
|
|
858
|
+
ref_id: str = Field(alias="refId")
|
|
859
|
+
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
860
|
+
alias="unitTransformation", default=None
|
|
861
|
+
)
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class FeatureFragmentUnitTransformation(BaseModel):
|
|
865
|
+
divide: float
|
|
866
|
+
round: UnitTransformationRound
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
class EntitlementFragment(BaseModel):
|
|
870
|
+
typename__: str = Field(alias="__typename")
|
|
871
|
+
is_granted: bool = Field(alias="isGranted")
|
|
872
|
+
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
873
|
+
alias="accessDeniedReason", default=None
|
|
874
|
+
)
|
|
875
|
+
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
876
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
877
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
878
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
879
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
880
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
881
|
+
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
882
|
+
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
883
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
884
|
+
entitlement_updated_at: Optional[Any] = Field(
|
|
885
|
+
alias="entitlementUpdatedAt", default=None
|
|
886
|
+
)
|
|
887
|
+
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
888
|
+
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
889
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
890
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
891
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
892
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
893
|
+
alias="resetPeriod", default=None
|
|
894
|
+
)
|
|
895
|
+
reset_period_configuration: Optional[
|
|
896
|
+
Annotated[
|
|
897
|
+
Union[
|
|
898
|
+
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
899
|
+
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
900
|
+
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
901
|
+
],
|
|
902
|
+
Field(discriminator="typename__"),
|
|
903
|
+
]
|
|
904
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
905
|
+
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
906
|
+
credit_rate: Optional["EntitlementFragmentCreditRate"] = Field(
|
|
907
|
+
alias="creditRate", default=None
|
|
908
|
+
)
|
|
909
|
+
valid_until: Optional[float] = Field(alias="validUntil", default=None)
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
913
|
+
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
914
|
+
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
915
|
+
alias="monthlyAccordingTo", default=None
|
|
916
|
+
)
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
920
|
+
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
921
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
922
|
+
alias="weeklyAccordingTo", default=None
|
|
923
|
+
)
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
927
|
+
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
928
|
+
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
929
|
+
alias="yearlyAccordingTo", default=None
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
class EntitlementFragmentFeature(FeatureFragment):
|
|
934
|
+
pass
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
class EntitlementFragmentCreditRate(BaseModel):
|
|
938
|
+
amount: float
|
|
939
|
+
currency_id: str = Field(alias="currencyId")
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
class ApplySubscriptionFragment(BaseModel):
|
|
943
|
+
subscription: Optional["ApplySubscriptionFragmentSubscription"] = Field(
|
|
944
|
+
default=None
|
|
945
|
+
)
|
|
946
|
+
entitlements: Optional[List["ApplySubscriptionFragmentEntitlements"]] = Field(
|
|
947
|
+
default=None
|
|
948
|
+
)
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
class ApplySubscriptionFragmentSubscription(SubscriptionFragment):
|
|
952
|
+
pass
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
class ApplySubscriptionFragmentEntitlements(EntitlementFragment):
|
|
956
|
+
pass
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
class FontVariantFragment(BaseModel):
|
|
960
|
+
font_size: Optional[float] = Field(alias="fontSize", default=None)
|
|
961
|
+
font_weight: Optional[FontWeight] = Field(alias="fontWeight", default=None)
|
|
962
|
+
|
|
963
|
+
|
|
964
|
+
class TypographyConfigurationFragment(BaseModel):
|
|
965
|
+
font_family: Optional[str] = Field(alias="fontFamily", default=None)
|
|
966
|
+
h_1: Optional["TypographyConfigurationFragmentH1"] = Field(alias="h1", default=None)
|
|
967
|
+
h_2: Optional["TypographyConfigurationFragmentH2"] = Field(alias="h2", default=None)
|
|
968
|
+
h_3: Optional["TypographyConfigurationFragmentH3"] = Field(alias="h3", default=None)
|
|
969
|
+
body: Optional["TypographyConfigurationFragmentBody"] = Field(default=None)
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
class TypographyConfigurationFragmentH1(FontVariantFragment):
|
|
973
|
+
pass
|
|
448
974
|
|
|
449
975
|
|
|
450
|
-
class
|
|
976
|
+
class TypographyConfigurationFragmentH2(FontVariantFragment):
|
|
451
977
|
pass
|
|
452
978
|
|
|
453
979
|
|
|
454
|
-
class
|
|
980
|
+
class TypographyConfigurationFragmentH3(FontVariantFragment):
|
|
455
981
|
pass
|
|
456
982
|
|
|
457
983
|
|
|
458
|
-
class
|
|
984
|
+
class TypographyConfigurationFragmentBody(FontVariantFragment):
|
|
459
985
|
pass
|
|
460
986
|
|
|
461
987
|
|
|
462
|
-
class
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
988
|
+
class CheckoutConfigurationFragment(BaseModel):
|
|
989
|
+
palette: Optional["CheckoutConfigurationFragmentPalette"] = Field(default=None)
|
|
990
|
+
typography: Optional["CheckoutConfigurationFragmentTypography"] = Field(
|
|
991
|
+
default=None
|
|
992
|
+
)
|
|
993
|
+
custom_css: Optional[str] = Field(alias="customCss", default=None)
|
|
994
|
+
content: Optional["CheckoutConfigurationFragmentContent"] = Field(default=None)
|
|
995
|
+
typename__: str = Field(alias="__typename")
|
|
466
996
|
|
|
467
997
|
|
|
468
|
-
class
|
|
469
|
-
|
|
998
|
+
class CheckoutConfigurationFragmentPalette(BaseModel):
|
|
999
|
+
primary: Optional[str] = Field(default=None)
|
|
1000
|
+
text_color: Optional[str] = Field(alias="textColor", default=None)
|
|
1001
|
+
background_color: Optional[str] = Field(alias="backgroundColor", default=None)
|
|
1002
|
+
border_color: Optional[str] = Field(alias="borderColor", default=None)
|
|
1003
|
+
summary_background_color: Optional[str] = Field(
|
|
1004
|
+
alias="summaryBackgroundColor", default=None
|
|
1005
|
+
)
|
|
1006
|
+
typename__: Literal["CheckoutColorPalette"] = Field(alias="__typename")
|
|
470
1007
|
|
|
471
1008
|
|
|
472
|
-
class
|
|
473
|
-
|
|
1009
|
+
class CheckoutConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
1010
|
+
typename__: Literal["TypographyConfiguration"] = Field(alias="__typename")
|
|
474
1011
|
|
|
475
1012
|
|
|
476
|
-
class
|
|
477
|
-
|
|
1013
|
+
class CheckoutConfigurationFragmentContent(BaseModel):
|
|
1014
|
+
collect_phone_number: Optional[bool] = Field(
|
|
1015
|
+
alias="collectPhoneNumber", default=None
|
|
1016
|
+
)
|
|
478
1017
|
|
|
479
1018
|
|
|
480
1019
|
class PromotionalEntitlementFragment(BaseModel):
|
|
481
1020
|
status: PromotionalEntitlementStatus
|
|
482
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
483
|
-
feature_id:
|
|
484
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage")
|
|
485
|
-
|
|
486
|
-
|
|
1021
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1022
|
+
feature_id: Any = Field(alias="featureId")
|
|
1023
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1024
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1025
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1026
|
+
alias="resetPeriod", default=None
|
|
1027
|
+
)
|
|
1028
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
487
1029
|
is_visible: bool = Field(alias="isVisible")
|
|
488
1030
|
feature: "PromotionalEntitlementFragmentFeature"
|
|
489
1031
|
|
|
490
1032
|
|
|
491
1033
|
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
492
1034
|
feature_type: FeatureType = Field(alias="featureType")
|
|
493
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
494
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
495
|
-
feature_units_plural: Optional[str] = Field(
|
|
1035
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1036
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1037
|
+
feature_units_plural: Optional[str] = Field(
|
|
1038
|
+
alias="featureUnitsPlural", default=None
|
|
1039
|
+
)
|
|
496
1040
|
display_name: str = Field(alias="displayName")
|
|
497
|
-
description: Optional[str]
|
|
1041
|
+
description: Optional[str] = Field(default=None)
|
|
498
1042
|
ref_id: str = Field(alias="refId")
|
|
499
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1043
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1044
|
+
alias="additionalMetaData", default=None
|
|
1045
|
+
)
|
|
500
1046
|
|
|
501
1047
|
|
|
502
1048
|
class CouponFragment(BaseModel):
|
|
503
|
-
id:
|
|
1049
|
+
id: Any
|
|
504
1050
|
discount_value: float = Field(alias="discountValue")
|
|
1051
|
+
percent_off: Optional[float] = Field(alias="percentOff", default=None)
|
|
1052
|
+
amounts_off: Optional[List["CouponFragmentAmountsOff"]] = Field(
|
|
1053
|
+
alias="amountsOff", default=None
|
|
1054
|
+
)
|
|
505
1055
|
type: CouponType
|
|
506
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1056
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1057
|
+
alias="additionalMetaData", default=None
|
|
1058
|
+
)
|
|
507
1059
|
ref_id: str = Field(alias="refId")
|
|
508
1060
|
name: str
|
|
509
|
-
description: Optional[str]
|
|
1061
|
+
description: Optional[str] = Field(default=None)
|
|
510
1062
|
created_at: Any = Field(alias="createdAt")
|
|
511
1063
|
updated_at: Any = Field(alias="updatedAt")
|
|
512
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
513
|
-
billing_link_url: Optional[str] = Field(alias="billingLinkUrl")
|
|
1064
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
1065
|
+
billing_link_url: Optional[str] = Field(alias="billingLinkUrl", default=None)
|
|
514
1066
|
status: CouponStatus
|
|
515
|
-
sync_states: Optional[List["CouponFragmentSyncStates"]] = Field(
|
|
516
|
-
|
|
1067
|
+
sync_states: Optional[List["CouponFragmentSyncStates"]] = Field(
|
|
1068
|
+
alias="syncStates", default=None
|
|
1069
|
+
)
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
class CouponFragmentAmountsOff(BaseModel):
|
|
1073
|
+
amount: float
|
|
1074
|
+
currency: Currency
|
|
517
1075
|
|
|
518
1076
|
|
|
519
1077
|
class CouponFragmentSyncStates(BaseModel):
|
|
@@ -521,43 +1079,30 @@ class CouponFragmentSyncStates(BaseModel):
|
|
|
521
1079
|
status: SyncStatus
|
|
522
1080
|
|
|
523
1081
|
|
|
524
|
-
class CouponFragmentCustomers(BaseModel):
|
|
525
|
-
id: str
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
class SlimCustomerFragment(BaseModel):
|
|
529
|
-
id: str
|
|
530
|
-
name: Optional[str]
|
|
531
|
-
email: Optional[str]
|
|
532
|
-
created_at: Optional[Any] = Field(alias="createdAt")
|
|
533
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
534
|
-
ref_id: str = Field(alias="refId")
|
|
535
|
-
customer_id: str = Field(alias="customerId")
|
|
536
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
537
|
-
additional_meta_data: Optional[Any] = Field(alias="additionalMetaData")
|
|
538
|
-
|
|
539
|
-
|
|
540
1082
|
class CustomerFragment(SlimCustomerFragment):
|
|
541
1083
|
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
542
1084
|
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
543
1085
|
default_payment_expiration_month: Optional[int] = Field(
|
|
544
|
-
alias="defaultPaymentExpirationMonth"
|
|
1086
|
+
alias="defaultPaymentExpirationMonth", default=None
|
|
545
1087
|
)
|
|
546
1088
|
default_payment_expiration_year: Optional[int] = Field(
|
|
547
|
-
alias="defaultPaymentExpirationYear"
|
|
1089
|
+
alias="defaultPaymentExpirationYear", default=None
|
|
1090
|
+
)
|
|
1091
|
+
default_payment_method_last_4_digits: Optional[str] = Field(
|
|
1092
|
+
alias="defaultPaymentMethodLast4Digits", default=None
|
|
548
1093
|
)
|
|
549
|
-
|
|
550
|
-
alias="
|
|
1094
|
+
default_payment_method_type: Optional[PaymentMethodType] = Field(
|
|
1095
|
+
alias="defaultPaymentMethodType", default=None
|
|
551
1096
|
)
|
|
552
1097
|
trialed_plans: Optional[List["CustomerFragmentTrialedPlans"]] = Field(
|
|
553
|
-
alias="trialedPlans"
|
|
1098
|
+
alias="trialedPlans", default=None
|
|
554
1099
|
)
|
|
555
1100
|
experiment_info: Optional["CustomerFragmentExperimentInfo"] = Field(
|
|
556
|
-
alias="experimentInfo"
|
|
1101
|
+
alias="experimentInfo", default=None
|
|
557
1102
|
)
|
|
558
|
-
coupon: Optional["CustomerFragmentCoupon"]
|
|
1103
|
+
coupon: Optional["CustomerFragmentCoupon"] = Field(default=None)
|
|
559
1104
|
eligible_for_trial: Optional[List["CustomerFragmentEligibleForTrial"]] = Field(
|
|
560
|
-
alias="eligibleForTrial"
|
|
1105
|
+
alias="eligibleForTrial", default=None
|
|
561
1106
|
)
|
|
562
1107
|
promotional_entitlements: List["CustomerFragmentPromotionalEntitlements"] = Field(
|
|
563
1108
|
alias="promotionalEntitlements"
|
|
@@ -565,10 +1110,10 @@ class CustomerFragment(SlimCustomerFragment):
|
|
|
565
1110
|
|
|
566
1111
|
|
|
567
1112
|
class CustomerFragmentTrialedPlans(BaseModel):
|
|
568
|
-
product_id: Optional[str] = Field(alias="productId")
|
|
569
|
-
product_ref_id: Optional[str] = Field(alias="productRefId")
|
|
570
|
-
plan_ref_id: Optional[str] = Field(alias="planRefId")
|
|
571
|
-
plan_id: Optional[str] = Field(alias="planId")
|
|
1113
|
+
product_id: Optional[str] = Field(alias="productId", default=None)
|
|
1114
|
+
product_ref_id: Optional[str] = Field(alias="productRefId", default=None)
|
|
1115
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
1116
|
+
plan_id: Optional[str] = Field(alias="planId", default=None)
|
|
572
1117
|
|
|
573
1118
|
|
|
574
1119
|
class CustomerFragmentExperimentInfo(BaseModel):
|
|
@@ -583,8 +1128,8 @@ class CustomerFragmentCoupon(CouponFragment):
|
|
|
583
1128
|
|
|
584
1129
|
|
|
585
1130
|
class CustomerFragmentEligibleForTrial(BaseModel):
|
|
586
|
-
product_id: Optional[str] = Field(alias="productId")
|
|
587
|
-
product_ref_id: Optional[str] = Field(alias="productRefId")
|
|
1131
|
+
product_id: Optional[str] = Field(alias="productId", default=None)
|
|
1132
|
+
product_ref_id: Optional[str] = Field(alias="productRefId", default=None)
|
|
588
1133
|
eligible: bool
|
|
589
1134
|
|
|
590
1135
|
|
|
@@ -592,14 +1137,24 @@ class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
|
|
|
592
1137
|
pass
|
|
593
1138
|
|
|
594
1139
|
|
|
1140
|
+
class StripeCheckoutCredentialsFragment(BaseModel):
|
|
1141
|
+
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1142
|
+
setup_secret: str = Field(alias="setupSecret")
|
|
1143
|
+
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
1147
|
+
publishable_key: str = Field(alias="publishableKey")
|
|
1148
|
+
|
|
1149
|
+
|
|
595
1150
|
class CheckoutStateFragment(BaseModel):
|
|
596
|
-
configuration: Optional["CheckoutStateFragmentConfiguration"]
|
|
1151
|
+
configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
|
|
597
1152
|
setup_secret: str = Field(alias="setupSecret")
|
|
598
1153
|
customer: "CheckoutStateFragmentCustomer"
|
|
599
1154
|
active_subscription: Optional["CheckoutStateFragmentActiveSubscription"] = Field(
|
|
600
|
-
alias="activeSubscription"
|
|
1155
|
+
alias="activeSubscription", default=None
|
|
601
1156
|
)
|
|
602
|
-
resource: Optional["CheckoutStateFragmentResource"]
|
|
1157
|
+
resource: Optional["CheckoutStateFragmentResource"] = Field(default=None)
|
|
603
1158
|
plan: "CheckoutStateFragmentPlan"
|
|
604
1159
|
billing_integration: "CheckoutStateFragmentBillingIntegration" = Field(
|
|
605
1160
|
alias="billingIntegration"
|
|
@@ -628,76 +1183,225 @@ class CheckoutStateFragmentPlan(PlanFragment):
|
|
|
628
1183
|
|
|
629
1184
|
class CheckoutStateFragmentBillingIntegration(BaseModel):
|
|
630
1185
|
billing_identifier: BillingVendorIdentifier = Field(alias="billingIdentifier")
|
|
1186
|
+
billing_credentials: Union[
|
|
1187
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
|
|
1188
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
|
|
1189
|
+
] = Field(alias="billingCredentials", discriminator="typename__")
|
|
631
1190
|
credentials: "CheckoutStateFragmentBillingIntegrationCredentials"
|
|
632
1191
|
|
|
633
1192
|
|
|
1193
|
+
class CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials(
|
|
1194
|
+
StripeCheckoutCredentialsFragment
|
|
1195
|
+
):
|
|
1196
|
+
typename__: Literal["StripeCheckoutCredentials"] = Field(alias="__typename")
|
|
1197
|
+
|
|
1198
|
+
|
|
1199
|
+
class CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials(
|
|
1200
|
+
ZuoraCheckoutCredentialsFragment
|
|
1201
|
+
):
|
|
1202
|
+
typename__: Literal["ZuoraCheckoutCredentials"] = Field(alias="__typename")
|
|
1203
|
+
|
|
1204
|
+
|
|
634
1205
|
class CheckoutStateFragmentBillingIntegrationCredentials(BaseModel):
|
|
635
|
-
account_id: str = Field(alias="accountId")
|
|
636
|
-
public_key: str = Field(alias="publicKey")
|
|
1206
|
+
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1207
|
+
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
class CreditBalanceFragment(BaseModel):
|
|
1211
|
+
customer_id: str = Field(alias="customerId")
|
|
1212
|
+
currency: "CreditBalanceFragmentCurrency"
|
|
1213
|
+
current_balance: float = Field(alias="currentBalance")
|
|
1214
|
+
total_consumed: float = Field(alias="totalConsumed")
|
|
1215
|
+
total_granted: float = Field(alias="totalGranted")
|
|
1216
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1217
|
+
valid_until: Optional[float] = Field(alias="validUntil", default=None)
|
|
1218
|
+
|
|
1219
|
+
|
|
1220
|
+
class CreditBalanceFragmentCurrency(BaseModel):
|
|
1221
|
+
currency_id: str = Field(alias="currencyId")
|
|
1222
|
+
display_name: str = Field(alias="displayName")
|
|
1223
|
+
symbol: Optional[str] = Field(default=None)
|
|
1224
|
+
units: Optional["CreditBalanceFragmentCurrencyUnits"] = Field(default=None)
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
class CreditBalanceFragmentCurrencyUnits(BaseModel):
|
|
1228
|
+
singular: str
|
|
1229
|
+
plural: str
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
class CreditBalanceUpdatedPayload(BaseModel):
|
|
1233
|
+
currency: "CreditBalanceUpdatedPayloadCurrency"
|
|
1234
|
+
currency_id: str = Field(alias="currencyId")
|
|
1235
|
+
current_balance: float = Field(alias="currentBalance")
|
|
1236
|
+
customer_id: str = Field(alias="customerId")
|
|
1237
|
+
valid_until: Optional[float] = Field(alias="validUntil", default=None)
|
|
1238
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1239
|
+
total_consumed: float = Field(alias="totalConsumed")
|
|
1240
|
+
total_granted: float = Field(alias="totalGranted")
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
class CreditBalanceUpdatedPayloadCurrency(BaseModel):
|
|
1244
|
+
currency_id: str = Field(alias="currencyId")
|
|
1245
|
+
display_name: str = Field(alias="displayName")
|
|
1246
|
+
symbol: Optional[str] = Field(default=None)
|
|
1247
|
+
units: Optional["CreditBalanceUpdatedPayloadCurrencyUnits"] = Field(default=None)
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
class CreditBalanceUpdatedPayloadCurrencyUnits(BaseModel):
|
|
1251
|
+
singular: str
|
|
1252
|
+
plural: str
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
class CreditGrantFragment(BaseModel):
|
|
1256
|
+
grant_id: str = Field(alias="grantId")
|
|
1257
|
+
amount: float
|
|
1258
|
+
comment: Optional[str] = Field(default=None)
|
|
1259
|
+
currency_id: str = Field(alias="currencyId")
|
|
1260
|
+
customer_id: str = Field(alias="customerId")
|
|
1261
|
+
display_name: str = Field(alias="displayName")
|
|
1262
|
+
effective_at: Any = Field(alias="effectiveAt")
|
|
1263
|
+
expire_at: Optional[Any] = Field(alias="expireAt", default=None)
|
|
1264
|
+
grant_type: CreditGrantType = Field(alias="grantType")
|
|
1265
|
+
priority: float
|
|
1266
|
+
consumed_amount: float = Field(alias="consumedAmount")
|
|
1267
|
+
cost: "CreditGrantFragmentCost"
|
|
1268
|
+
created_at: Any = Field(alias="createdAt")
|
|
1269
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
1270
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1271
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1272
|
+
alias="additionalMetaData", default=None
|
|
1273
|
+
)
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
class CreditGrantFragmentCost(BaseModel):
|
|
1277
|
+
amount: float
|
|
1278
|
+
currency: Currency
|
|
1279
|
+
|
|
1280
|
+
|
|
1281
|
+
class CreditLedgerFragment(BaseModel):
|
|
1282
|
+
timestamp: str
|
|
1283
|
+
event_type: CreditLedgerEventType = Field(alias="eventType")
|
|
1284
|
+
customer_id: str = Field(alias="customerId")
|
|
1285
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1286
|
+
event_id: Optional[str] = Field(alias="eventId", default=None)
|
|
1287
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1288
|
+
amount: float
|
|
1289
|
+
credit_grant_id: str = Field(alias="creditGrantId")
|
|
1290
|
+
credit_currency_id: str = Field(alias="creditCurrencyId")
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
class SlimCustomCurrencyFragment(BaseModel):
|
|
1294
|
+
currency_id: str = Field(alias="currencyId")
|
|
1295
|
+
display_name: str = Field(alias="displayName")
|
|
1296
|
+
units: Optional["SlimCustomCurrencyFragmentUnits"] = Field(default=None)
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
class SlimCustomCurrencyFragmentUnits(BaseModel):
|
|
1300
|
+
singular: str
|
|
1301
|
+
plural: str
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
class CreditUsageFragment(BaseModel):
|
|
1305
|
+
series: List["CreditUsageFragmentSeries"]
|
|
1306
|
+
currency: Optional["CreditUsageFragmentCurrency"] = Field(default=None)
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
class CreditUsageFragmentSeries(BaseModel):
|
|
1310
|
+
feature_id: str = Field(alias="featureId")
|
|
1311
|
+
feature_name: str = Field(alias="featureName")
|
|
1312
|
+
total_credits: float = Field(alias="totalCredits")
|
|
1313
|
+
points: List["CreditUsageFragmentSeriesPoints"]
|
|
1314
|
+
|
|
1315
|
+
|
|
1316
|
+
class CreditUsageFragmentSeriesPoints(BaseModel):
|
|
1317
|
+
timestamp: Any
|
|
1318
|
+
value: float
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
class CreditUsageFragmentCurrency(SlimCustomCurrencyFragment):
|
|
1322
|
+
pass
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
class CreditsBalanceSummaryFragment(BaseModel):
|
|
1326
|
+
customer_id: str = Field(alias="customerId")
|
|
1327
|
+
balances: List["CreditsBalanceSummaryFragmentBalances"]
|
|
1328
|
+
|
|
1329
|
+
|
|
1330
|
+
class CreditsBalanceSummaryFragmentBalances(CreditBalanceFragment):
|
|
1331
|
+
pass
|
|
637
1332
|
|
|
638
1333
|
|
|
639
1334
|
class CustomerPortalBillingInformationFragment(BaseModel):
|
|
640
|
-
email: Optional[str]
|
|
641
|
-
name: Optional[str]
|
|
642
|
-
|
|
643
|
-
alias="defaultPaymentMethodLast4Digits"
|
|
1335
|
+
email: Optional[str] = Field(default=None)
|
|
1336
|
+
name: Optional[str] = Field(default=None)
|
|
1337
|
+
default_payment_method_last_4_digits: Optional[str] = Field(
|
|
1338
|
+
alias="defaultPaymentMethodLast4Digits", default=None
|
|
1339
|
+
)
|
|
1340
|
+
default_payment_method_id: Optional[str] = Field(
|
|
1341
|
+
alias="defaultPaymentMethodId", default=None
|
|
644
1342
|
)
|
|
645
|
-
default_payment_method_id: Optional[str] = Field(alias="defaultPaymentMethodId")
|
|
646
1343
|
default_payment_expiration_month: Optional[int] = Field(
|
|
647
|
-
alias="defaultPaymentExpirationMonth"
|
|
1344
|
+
alias="defaultPaymentExpirationMonth", default=None
|
|
648
1345
|
)
|
|
649
1346
|
default_payment_expiration_year: Optional[int] = Field(
|
|
650
|
-
alias="defaultPaymentExpirationYear"
|
|
1347
|
+
alias="defaultPaymentExpirationYear", default=None
|
|
1348
|
+
)
|
|
1349
|
+
default_payment_method_type: Optional[PaymentMethodType] = Field(
|
|
1350
|
+
alias="defaultPaymentMethodType", default=None
|
|
651
1351
|
)
|
|
652
1352
|
|
|
653
1353
|
|
|
654
1354
|
class CustomerPortalConfigurationFragment(BaseModel):
|
|
655
|
-
palette: Optional["CustomerPortalConfigurationFragmentPalette"]
|
|
656
|
-
|
|
657
|
-
|
|
1355
|
+
palette: Optional["CustomerPortalConfigurationFragmentPalette"] = Field(
|
|
1356
|
+
default=None
|
|
1357
|
+
)
|
|
1358
|
+
typography: Optional["CustomerPortalConfigurationFragmentTypography"] = Field(
|
|
1359
|
+
default=None
|
|
1360
|
+
)
|
|
1361
|
+
custom_css: Optional[str] = Field(alias="customCss", default=None)
|
|
658
1362
|
|
|
659
1363
|
|
|
660
1364
|
class CustomerPortalConfigurationFragmentPalette(BaseModel):
|
|
661
|
-
primary: Optional[str]
|
|
662
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
663
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
664
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
665
|
-
current_plan_background: Optional[str] = Field(
|
|
666
|
-
|
|
667
|
-
|
|
1365
|
+
primary: Optional[str] = Field(default=None)
|
|
1366
|
+
text_color: Optional[str] = Field(alias="textColor", default=None)
|
|
1367
|
+
background_color: Optional[str] = Field(alias="backgroundColor", default=None)
|
|
1368
|
+
border_color: Optional[str] = Field(alias="borderColor", default=None)
|
|
1369
|
+
current_plan_background: Optional[str] = Field(
|
|
1370
|
+
alias="currentPlanBackground", default=None
|
|
1371
|
+
)
|
|
1372
|
+
icons_color: Optional[str] = Field(alias="iconsColor", default=None)
|
|
1373
|
+
paywall_background_color: Optional[str] = Field(
|
|
1374
|
+
alias="paywallBackgroundColor", default=None
|
|
1375
|
+
)
|
|
668
1376
|
|
|
669
1377
|
|
|
670
1378
|
class CustomerPortalConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
671
1379
|
pass
|
|
672
1380
|
|
|
673
1381
|
|
|
674
|
-
class FeatureFragment(BaseModel):
|
|
675
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
676
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
677
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
678
|
-
feature_units_plural: Optional[str] = Field(alias="featureUnitsPlural")
|
|
679
|
-
description: Optional[str]
|
|
680
|
-
display_name: str = Field(alias="displayName")
|
|
681
|
-
ref_id: str = Field(alias="refId")
|
|
682
|
-
|
|
683
|
-
|
|
684
1382
|
class CustomerPortalEntitlementFragment(BaseModel):
|
|
685
1383
|
is_granted: bool = Field(alias="isGranted")
|
|
686
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
687
|
-
current_usage: Optional[float] = Field(alias="currentUsage")
|
|
1384
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1385
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
688
1386
|
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
689
|
-
|
|
690
|
-
|
|
1387
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1388
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
1389
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
1390
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
1391
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1392
|
+
alias="resetPeriod", default=None
|
|
1393
|
+
)
|
|
691
1394
|
reset_period_configuration: Optional[
|
|
692
1395
|
Annotated[
|
|
693
1396
|
Union[
|
|
694
1397
|
"CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
695
1398
|
"CustomerPortalEntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
1399
|
+
"CustomerPortalEntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
696
1400
|
],
|
|
697
1401
|
Field(discriminator="typename__"),
|
|
698
1402
|
]
|
|
699
|
-
] = Field(alias="resetPeriodConfiguration")
|
|
700
|
-
feature: Optional["CustomerPortalEntitlementFragmentFeature"]
|
|
1403
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
1404
|
+
feature: Optional["CustomerPortalEntitlementFragmentFeature"] = Field(default=None)
|
|
701
1405
|
|
|
702
1406
|
|
|
703
1407
|
class CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(
|
|
@@ -705,7 +1409,7 @@ class CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPerio
|
|
|
705
1409
|
):
|
|
706
1410
|
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
707
1411
|
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
708
|
-
alias="monthlyAccordingTo"
|
|
1412
|
+
alias="monthlyAccordingTo", default=None
|
|
709
1413
|
)
|
|
710
1414
|
|
|
711
1415
|
|
|
@@ -713,20 +1417,22 @@ class CustomerPortalEntitlementFragmentResetPeriodConfigurationWeeklyResetPeriod
|
|
|
713
1417
|
BaseModel
|
|
714
1418
|
):
|
|
715
1419
|
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
716
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
1420
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
1421
|
+
alias="weeklyAccordingTo", default=None
|
|
1422
|
+
)
|
|
717
1423
|
|
|
718
1424
|
|
|
719
|
-
class
|
|
720
|
-
|
|
1425
|
+
class CustomerPortalEntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(
|
|
1426
|
+
BaseModel
|
|
1427
|
+
):
|
|
1428
|
+
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
1429
|
+
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
1430
|
+
alias="yearlyAccordingTo", default=None
|
|
1431
|
+
)
|
|
721
1432
|
|
|
722
1433
|
|
|
723
|
-
class
|
|
724
|
-
|
|
725
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage")
|
|
726
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
727
|
-
period: PromotionalEntitlementPeriod
|
|
728
|
-
start_date: Any = Field(alias="startDate")
|
|
729
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
1434
|
+
class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
1435
|
+
pass
|
|
730
1436
|
|
|
731
1437
|
|
|
732
1438
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
@@ -737,25 +1443,29 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
|
737
1443
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
738
1444
|
target_package: Optional[
|
|
739
1445
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentTargetPackage"
|
|
740
|
-
] = Field(alias="targetPackage")
|
|
1446
|
+
] = Field(alias="targetPackage", default=None)
|
|
741
1447
|
schedule_variables: Optional[
|
|
742
1448
|
Annotated[
|
|
743
1449
|
Union[
|
|
744
1450
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonChangeVariables",
|
|
1451
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
745
1452
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesBillingPeriodChangeVariables",
|
|
1453
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesCouponChangeVariables",
|
|
746
1454
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariables",
|
|
1455
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariables",
|
|
1456
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
747
1457
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnitAmountChangeVariables",
|
|
748
1458
|
],
|
|
749
1459
|
Field(discriminator="typename__"),
|
|
750
1460
|
]
|
|
751
|
-
] = Field(alias="scheduleVariables")
|
|
1461
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
752
1462
|
|
|
753
1463
|
|
|
754
1464
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentTargetPackage(BaseModel):
|
|
755
|
-
id:
|
|
1465
|
+
id: Any
|
|
756
1466
|
ref_id: str = Field(alias="refId")
|
|
757
1467
|
display_name: str = Field(alias="displayName")
|
|
758
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
1468
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
759
1469
|
|
|
760
1470
|
|
|
761
1471
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonChangeVariables(
|
|
@@ -766,42 +1476,154 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddo
|
|
|
766
1476
|
new_quantity: float = Field(alias="newQuantity")
|
|
767
1477
|
|
|
768
1478
|
|
|
1479
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
1480
|
+
BaseModel
|
|
1481
|
+
):
|
|
1482
|
+
typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
1483
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
1484
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1485
|
+
|
|
1486
|
+
|
|
769
1487
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesBillingPeriodChangeVariables(
|
|
770
1488
|
BaseModel
|
|
771
1489
|
):
|
|
772
1490
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
773
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
1491
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1492
|
+
|
|
1493
|
+
|
|
1494
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesCouponChangeVariables(
|
|
1495
|
+
BaseModel
|
|
1496
|
+
):
|
|
1497
|
+
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
774
1498
|
|
|
775
1499
|
|
|
776
1500
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariables(
|
|
777
1501
|
BaseModel
|
|
778
1502
|
):
|
|
779
1503
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
780
|
-
addon_ref_ids: Optional[str] = Field(alias="addonRefIds")
|
|
781
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
782
1504
|
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
1505
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1506
|
+
billable_features: Optional[
|
|
1507
|
+
List[
|
|
1508
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesBillableFeatures"
|
|
1509
|
+
]
|
|
1510
|
+
] = Field(alias="billableFeatures", default=None)
|
|
1511
|
+
addons: Optional[
|
|
1512
|
+
List[
|
|
1513
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesAddons"
|
|
1514
|
+
]
|
|
1515
|
+
] = Field(default=None)
|
|
1516
|
+
price_overrides: Optional[
|
|
1517
|
+
List[
|
|
1518
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesPriceOverrides"
|
|
1519
|
+
]
|
|
1520
|
+
] = Field(alias="priceOverrides", default=None)
|
|
1521
|
+
|
|
1522
|
+
|
|
1523
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
1524
|
+
BaseModel
|
|
1525
|
+
):
|
|
1526
|
+
feature_id: str = Field(alias="featureId")
|
|
1527
|
+
quantity: float
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesAddons(
|
|
1531
|
+
BaseModel
|
|
1532
|
+
):
|
|
1533
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
1534
|
+
quantity: float
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariablesPriceOverrides(
|
|
1538
|
+
BaseModel
|
|
1539
|
+
):
|
|
1540
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
1541
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
1542
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1543
|
+
|
|
1544
|
+
|
|
1545
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariables(
|
|
1546
|
+
BaseModel
|
|
1547
|
+
):
|
|
1548
|
+
typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
|
|
1549
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
1550
|
+
change_type: PlanChangeType = Field(alias="changeType")
|
|
1551
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1552
|
+
billable_features: Optional[
|
|
1553
|
+
List[
|
|
1554
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesBillableFeatures"
|
|
1555
|
+
]
|
|
1556
|
+
] = Field(alias="billableFeatures", default=None)
|
|
1557
|
+
addons: Optional[
|
|
1558
|
+
List[
|
|
1559
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesAddons"
|
|
1560
|
+
]
|
|
1561
|
+
] = Field(default=None)
|
|
1562
|
+
price_overrides: Optional[
|
|
1563
|
+
List[
|
|
1564
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
1565
|
+
]
|
|
1566
|
+
] = Field(alias="priceOverrides", default=None)
|
|
1567
|
+
|
|
1568
|
+
|
|
1569
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
1570
|
+
BaseModel
|
|
1571
|
+
):
|
|
1572
|
+
feature_id: str = Field(alias="featureId")
|
|
1573
|
+
quantity: float
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesAddons(
|
|
1577
|
+
BaseModel
|
|
1578
|
+
):
|
|
1579
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
1580
|
+
quantity: float
|
|
1581
|
+
|
|
1582
|
+
|
|
1583
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
1584
|
+
BaseModel
|
|
1585
|
+
):
|
|
1586
|
+
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
1587
|
+
addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
|
|
1588
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
1592
|
+
BaseModel
|
|
1593
|
+
):
|
|
1594
|
+
typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
1595
|
+
plan_ref_id: str = Field(alias="planRefId")
|
|
1596
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
783
1597
|
|
|
784
1598
|
|
|
785
1599
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnitAmountChangeVariables(
|
|
786
1600
|
BaseModel
|
|
787
1601
|
):
|
|
788
1602
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
789
|
-
new_unit_amount: Optional[float] = Field(alias="newUnitAmount")
|
|
790
|
-
feature_id: Optional[str] = Field(alias="featureId")
|
|
1603
|
+
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
1604
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
791
1605
|
|
|
792
1606
|
|
|
793
1607
|
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
794
1608
|
addon_id: str = Field(alias="addonId")
|
|
795
|
-
description: Optional[str]
|
|
1609
|
+
description: Optional[str] = Field(default=None)
|
|
796
1610
|
display_name: str = Field(alias="displayName")
|
|
797
1611
|
quantity: int
|
|
798
1612
|
|
|
799
1613
|
|
|
800
1614
|
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
801
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
802
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel")
|
|
803
|
-
|
|
804
|
-
|
|
1615
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1616
|
+
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1617
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1618
|
+
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1619
|
+
default=None
|
|
1620
|
+
)
|
|
1621
|
+
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1622
|
+
alias="creditRate", default=None
|
|
1623
|
+
)
|
|
1624
|
+
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1625
|
+
default=None
|
|
1626
|
+
)
|
|
805
1627
|
|
|
806
1628
|
|
|
807
1629
|
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
@@ -809,32 +1631,42 @@ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
|
809
1631
|
currency: Currency
|
|
810
1632
|
|
|
811
1633
|
|
|
1634
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1635
|
+
amount: float
|
|
1636
|
+
currency_id: str = Field(alias="currencyId")
|
|
1637
|
+
|
|
1638
|
+
|
|
812
1639
|
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
813
|
-
id:
|
|
1640
|
+
id: Any
|
|
814
1641
|
ref_id: str = Field(alias="refId")
|
|
815
1642
|
display_name: str = Field(alias="displayName")
|
|
816
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
817
|
-
feature_units_plural: Optional[str] = Field(
|
|
1643
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1644
|
+
feature_units_plural: Optional[str] = Field(
|
|
1645
|
+
alias="featureUnitsPlural", default=None
|
|
1646
|
+
)
|
|
818
1647
|
|
|
819
1648
|
|
|
820
1649
|
class CustomerPortalSubscriptionFragment(BaseModel):
|
|
821
1650
|
subscription_id: str = Field(alias="subscriptionId")
|
|
1651
|
+
plan_id: str = Field(alias="planId")
|
|
822
1652
|
plan_name: str = Field(alias="planName")
|
|
823
1653
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
824
1654
|
prices: List["CustomerPortalSubscriptionFragmentPrices"]
|
|
825
1655
|
pricing: "CustomerPortalSubscriptionFragmentPricing"
|
|
826
1656
|
status: SubscriptionStatus
|
|
827
|
-
trial_remaining_days: Optional[int] = Field(
|
|
1657
|
+
trial_remaining_days: Optional[int] = Field(
|
|
1658
|
+
alias="trialRemainingDays", default=None
|
|
1659
|
+
)
|
|
828
1660
|
billing_period_range: Optional[
|
|
829
1661
|
"CustomerPortalSubscriptionFragmentBillingPeriodRange"
|
|
830
|
-
] = Field(alias="billingPeriodRange")
|
|
1662
|
+
] = Field(alias="billingPeriodRange", default=None)
|
|
831
1663
|
total_price: Optional["CustomerPortalSubscriptionFragmentTotalPrice"] = Field(
|
|
832
|
-
alias="totalPrice"
|
|
1664
|
+
alias="totalPrice", default=None
|
|
833
1665
|
)
|
|
834
1666
|
addons: List["CustomerPortalSubscriptionFragmentAddons"]
|
|
835
1667
|
scheduled_updates: Optional[
|
|
836
1668
|
List["CustomerPortalSubscriptionFragmentScheduledUpdates"]
|
|
837
|
-
] = Field(alias="scheduledUpdates")
|
|
1669
|
+
] = Field(alias="scheduledUpdates", default=None)
|
|
838
1670
|
|
|
839
1671
|
|
|
840
1672
|
class CustomerPortalSubscriptionFragmentPrices(CustomerPortalSubscriptionPriceFragment):
|
|
@@ -842,13 +1674,22 @@ class CustomerPortalSubscriptionFragmentPrices(CustomerPortalSubscriptionPriceFr
|
|
|
842
1674
|
|
|
843
1675
|
|
|
844
1676
|
class CustomerPortalSubscriptionFragmentPricing(BaseModel):
|
|
845
|
-
unit_quantity: Optional[int] = Field(alias="unitQuantity")
|
|
846
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
847
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel")
|
|
1677
|
+
unit_quantity: Optional[int] = Field(alias="unitQuantity", default=None)
|
|
1678
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1679
|
+
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
848
1680
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
849
|
-
usage_based_estimated_bill: Optional[float] = Field(
|
|
850
|
-
|
|
851
|
-
|
|
1681
|
+
usage_based_estimated_bill: Optional[float] = Field(
|
|
1682
|
+
alias="usageBasedEstimatedBill", default=None
|
|
1683
|
+
)
|
|
1684
|
+
price: Optional["CustomerPortalSubscriptionFragmentPricingPrice"] = Field(
|
|
1685
|
+
default=None
|
|
1686
|
+
)
|
|
1687
|
+
credit_rate: Optional[
|
|
1688
|
+
"CustomerPortalSubscriptionFragmentPricingCreditRate"
|
|
1689
|
+
] = Field(alias="creditRate", default=None)
|
|
1690
|
+
feature: Optional["CustomerPortalSubscriptionFragmentPricingFeature"] = Field(
|
|
1691
|
+
default=None
|
|
1692
|
+
)
|
|
852
1693
|
|
|
853
1694
|
|
|
854
1695
|
class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
|
|
@@ -856,15 +1697,22 @@ class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
|
|
|
856
1697
|
currency: Currency
|
|
857
1698
|
|
|
858
1699
|
|
|
1700
|
+
class CustomerPortalSubscriptionFragmentPricingCreditRate(BaseModel):
|
|
1701
|
+
amount: float
|
|
1702
|
+
currency_id: str = Field(alias="currencyId")
|
|
1703
|
+
|
|
1704
|
+
|
|
859
1705
|
class CustomerPortalSubscriptionFragmentPricingFeature(BaseModel):
|
|
860
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
861
|
-
feature_units_plural: Optional[str] = Field(
|
|
1706
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1707
|
+
feature_units_plural: Optional[str] = Field(
|
|
1708
|
+
alias="featureUnitsPlural", default=None
|
|
1709
|
+
)
|
|
862
1710
|
display_name: str = Field(alias="displayName")
|
|
863
1711
|
|
|
864
1712
|
|
|
865
1713
|
class CustomerPortalSubscriptionFragmentBillingPeriodRange(BaseModel):
|
|
866
|
-
start: Optional[Any]
|
|
867
|
-
end: Optional[Any]
|
|
1714
|
+
start: Optional[Any] = Field(default=None)
|
|
1715
|
+
end: Optional[Any] = Field(default=None)
|
|
868
1716
|
|
|
869
1717
|
|
|
870
1718
|
class CustomerPortalSubscriptionFragmentTotalPrice(BaseModel):
|
|
@@ -902,6 +1750,16 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
|
|
|
902
1750
|
pass
|
|
903
1751
|
|
|
904
1752
|
|
|
1753
|
+
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1754
|
+
display_name: str = Field(alias="displayName")
|
|
1755
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1756
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1757
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1758
|
+
period: PromotionalEntitlementPeriod
|
|
1759
|
+
start_date: Any = Field(alias="startDate")
|
|
1760
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1761
|
+
|
|
1762
|
+
|
|
905
1763
|
class CustomerPortalFragment(BaseModel):
|
|
906
1764
|
subscriptions: List["CustomerPortalFragmentSubscriptions"]
|
|
907
1765
|
entitlements: List["CustomerPortalFragmentEntitlements"]
|
|
@@ -912,10 +1770,10 @@ class CustomerPortalFragment(BaseModel):
|
|
|
912
1770
|
alias="billingInformation"
|
|
913
1771
|
)
|
|
914
1772
|
show_watermark: bool = Field(alias="showWatermark")
|
|
915
|
-
billing_portal_url: Optional[str] = Field(alias="billingPortalUrl")
|
|
1773
|
+
billing_portal_url: Optional[str] = Field(alias="billingPortalUrl", default=None)
|
|
916
1774
|
can_upgrade_subscription: bool = Field(alias="canUpgradeSubscription")
|
|
917
|
-
configuration: Optional["CustomerPortalFragmentConfiguration"]
|
|
918
|
-
resource: Optional["CustomerPortalFragmentResource"]
|
|
1775
|
+
configuration: Optional["CustomerPortalFragmentConfiguration"] = Field(default=None)
|
|
1776
|
+
resource: Optional["CustomerPortalFragmentResource"] = Field(default=None)
|
|
919
1777
|
|
|
920
1778
|
|
|
921
1779
|
class CustomerPortalFragmentSubscriptions(CustomerPortalSubscriptionFragment):
|
|
@@ -947,7 +1805,7 @@ class CustomerPortalFragmentResource(CustomerResourceFragment):
|
|
|
947
1805
|
|
|
948
1806
|
|
|
949
1807
|
class CustomerStatisticsFragment(BaseModel):
|
|
950
|
-
statistics: Optional["CustomerStatisticsFragmentStatistics"]
|
|
1808
|
+
statistics: Optional["CustomerStatisticsFragmentStatistics"] = Field(default=None)
|
|
951
1809
|
|
|
952
1810
|
|
|
953
1811
|
class CustomerStatisticsFragmentStatistics(BaseModel):
|
|
@@ -962,62 +1820,23 @@ class CustomerStatisticsFragmentStatisticsActiveSubscriptionsByPricingType(BaseM
|
|
|
962
1820
|
|
|
963
1821
|
|
|
964
1822
|
class CustomerWithSubscriptionsFragment(CustomerFragment):
|
|
965
|
-
subscriptions: Optional[
|
|
1823
|
+
subscriptions: Optional[
|
|
1824
|
+
List["CustomerWithSubscriptionsFragmentSubscriptions"]
|
|
1825
|
+
] = Field(default=None)
|
|
966
1826
|
|
|
967
1827
|
|
|
968
1828
|
class CustomerWithSubscriptionsFragmentSubscriptions(SubscriptionFragment):
|
|
969
1829
|
pass
|
|
970
1830
|
|
|
971
1831
|
|
|
972
|
-
class EntitlementFragment(BaseModel):
|
|
973
|
-
is_granted: bool = Field(alias="isGranted")
|
|
974
|
-
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
975
|
-
alias="accessDeniedReason"
|
|
976
|
-
)
|
|
977
|
-
customer_id: Optional[str] = Field(alias="customerId")
|
|
978
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
979
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
980
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
981
|
-
current_usage: Optional[float] = Field(alias="currentUsage")
|
|
982
|
-
requested_usage: Optional[float] = Field(alias="requestedUsage")
|
|
983
|
-
entitlement_updated_at: Optional[Any] = Field(alias="entitlementUpdatedAt")
|
|
984
|
-
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt")
|
|
985
|
-
next_reset_date: Optional[Any] = Field(alias="nextResetDate")
|
|
986
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(alias="resetPeriod")
|
|
987
|
-
reset_period_configuration: Optional[
|
|
988
|
-
Annotated[
|
|
989
|
-
Union[
|
|
990
|
-
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
991
|
-
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
992
|
-
],
|
|
993
|
-
Field(discriminator="typename__"),
|
|
994
|
-
]
|
|
995
|
-
] = Field(alias="resetPeriodConfiguration")
|
|
996
|
-
feature: Optional["EntitlementFragmentFeature"]
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
1000
|
-
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
1001
|
-
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
1002
|
-
alias="monthlyAccordingTo"
|
|
1003
|
-
)
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
1007
|
-
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
1008
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(alias="weeklyAccordingTo")
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
class EntitlementFragmentFeature(FeatureFragment):
|
|
1012
|
-
pass
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
1832
|
class UsageUpdatedFragment(BaseModel):
|
|
1016
1833
|
customer_id: str = Field(alias="customerId")
|
|
1017
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
1834
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1018
1835
|
feature_id: str = Field(alias="featureId")
|
|
1019
1836
|
current_usage: float = Field(alias="currentUsage")
|
|
1020
|
-
|
|
1837
|
+
usage_period_start: Optional[float] = Field(alias="usagePeriodStart", default=None)
|
|
1838
|
+
usage_period_end: Optional[float] = Field(alias="usagePeriodEnd", default=None)
|
|
1839
|
+
next_reset_date: Optional[float] = Field(alias="nextResetDate", default=None)
|
|
1021
1840
|
|
|
1022
1841
|
|
|
1023
1842
|
class EntitlementUsageUpdated(BaseModel):
|
|
@@ -1035,7 +1854,7 @@ class EntitlementUsageUpdatedEntitlement(EntitlementFragment):
|
|
|
1035
1854
|
|
|
1036
1855
|
class EntitlementsUpdatedPayload(BaseModel):
|
|
1037
1856
|
customer_id: str = Field(alias="customerId")
|
|
1038
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
1857
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1039
1858
|
entitlements: List["EntitlementsUpdatedPayloadEntitlements"]
|
|
1040
1859
|
|
|
1041
1860
|
|
|
@@ -1051,16 +1870,24 @@ class ImmediateSubscriptionPreviewInvoiceFragment(BaseModel):
|
|
|
1051
1870
|
total_excluding_tax: "ImmediateSubscriptionPreviewInvoiceFragmentTotalExcludingTax" = Field(
|
|
1052
1871
|
alias="totalExcludingTax"
|
|
1053
1872
|
)
|
|
1054
|
-
tax: Optional["ImmediateSubscriptionPreviewInvoiceFragmentTax"]
|
|
1055
|
-
|
|
1873
|
+
tax: Optional["ImmediateSubscriptionPreviewInvoiceFragmentTax"] = Field(
|
|
1874
|
+
default=None
|
|
1875
|
+
)
|
|
1876
|
+
discount: Optional["ImmediateSubscriptionPreviewInvoiceFragmentDiscount"] = Field(
|
|
1877
|
+
default=None
|
|
1878
|
+
)
|
|
1056
1879
|
tax_details: Optional[
|
|
1057
1880
|
"ImmediateSubscriptionPreviewInvoiceFragmentTaxDetails"
|
|
1058
|
-
] = Field(alias="taxDetails")
|
|
1881
|
+
] = Field(alias="taxDetails", default=None)
|
|
1059
1882
|
discount_details: Optional[
|
|
1060
1883
|
"ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails"
|
|
1061
|
-
] = Field(alias="discountDetails")
|
|
1062
|
-
credits: Optional["ImmediateSubscriptionPreviewInvoiceFragmentCredits"]
|
|
1063
|
-
|
|
1884
|
+
] = Field(alias="discountDetails", default=None)
|
|
1885
|
+
credits: Optional["ImmediateSubscriptionPreviewInvoiceFragmentCredits"] = Field(
|
|
1886
|
+
default=None
|
|
1887
|
+
)
|
|
1888
|
+
proration: Optional["ImmediateSubscriptionPreviewInvoiceFragmentProration"] = Field(
|
|
1889
|
+
default=None
|
|
1890
|
+
)
|
|
1064
1891
|
|
|
1065
1892
|
|
|
1066
1893
|
class ImmediateSubscriptionPreviewInvoiceFragmentTotal(BaseModel):
|
|
@@ -1098,7 +1925,7 @@ class ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails(BaseModel):
|
|
|
1098
1925
|
type: DiscountType
|
|
1099
1926
|
value: float
|
|
1100
1927
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1101
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
1928
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1102
1929
|
|
|
1103
1930
|
|
|
1104
1931
|
class ImmediateSubscriptionPreviewInvoiceFragmentCredits(BaseModel):
|
|
@@ -1124,7 +1951,7 @@ class ImmediateSubscriptionPreviewInvoiceFragmentCreditsRemaining(BaseModel):
|
|
|
1124
1951
|
|
|
1125
1952
|
class ImmediateSubscriptionPreviewInvoiceFragmentProration(BaseModel):
|
|
1126
1953
|
proration_date: Any = Field(alias="prorationDate")
|
|
1127
|
-
has_prorations: Optional[bool] = Field(alias="hasProrations")
|
|
1954
|
+
has_prorations: Optional[bool] = Field(alias="hasProrations", default=None)
|
|
1128
1955
|
credit: "ImmediateSubscriptionPreviewInvoiceFragmentProrationCredit"
|
|
1129
1956
|
debit: "ImmediateSubscriptionPreviewInvoiceFragmentProrationDebit"
|
|
1130
1957
|
net_amount: "ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount" = Field(
|
|
@@ -1148,23 +1975,35 @@ class ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount(BaseModel):
|
|
|
1148
1975
|
|
|
1149
1976
|
|
|
1150
1977
|
class LayoutConfigurationFragment(BaseModel):
|
|
1151
|
-
alignment: Optional[Alignment]
|
|
1152
|
-
plan_width: Optional[float] = Field(alias="planWidth")
|
|
1153
|
-
plan_margin: Optional[float] = Field(alias="planMargin")
|
|
1154
|
-
plan_padding: Optional[float] = Field(alias="planPadding")
|
|
1978
|
+
alignment: Optional[Alignment] = Field(default=None)
|
|
1979
|
+
plan_width: Optional[float] = Field(alias="planWidth", default=None)
|
|
1980
|
+
plan_margin: Optional[float] = Field(alias="planMargin", default=None)
|
|
1981
|
+
plan_padding: Optional[float] = Field(alias="planPadding", default=None)
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
class MockPaywallAddonDependencyFragment(BaseModel):
|
|
1985
|
+
ref_id: str = Field(alias="refId")
|
|
1986
|
+
display_name: str = Field(alias="displayName")
|
|
1987
|
+
description: Optional[str] = Field(default=None)
|
|
1155
1988
|
|
|
1156
1989
|
|
|
1157
1990
|
class MockPaywallPriceFragment(BaseModel):
|
|
1158
1991
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
1159
1992
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1160
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
1161
|
-
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity")
|
|
1162
|
-
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity")
|
|
1163
|
-
billing_country_code: Optional[str] = Field(
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1993
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
1994
|
+
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
1995
|
+
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
1996
|
+
billing_country_code: Optional[str] = Field(
|
|
1997
|
+
alias="billingCountryCode", default=None
|
|
1998
|
+
)
|
|
1999
|
+
price: Optional["MockPaywallPriceFragmentPrice"] = Field(default=None)
|
|
2000
|
+
credit_rate: Optional["MockPaywallPriceFragmentCreditRate"] = Field(
|
|
2001
|
+
alias="creditRate", default=None
|
|
2002
|
+
)
|
|
2003
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
2004
|
+
tiers: Optional[List["MockPaywallPriceFragmentTiers"]] = Field(default=None)
|
|
2005
|
+
feature: Optional["MockPaywallPriceFragmentFeature"] = Field(default=None)
|
|
2006
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1168
2007
|
|
|
1169
2008
|
|
|
1170
2009
|
class MockPaywallPriceFragmentPrice(BaseModel):
|
|
@@ -1172,46 +2011,81 @@ class MockPaywallPriceFragmentPrice(BaseModel):
|
|
|
1172
2011
|
currency: Currency
|
|
1173
2012
|
|
|
1174
2013
|
|
|
2014
|
+
class MockPaywallPriceFragmentCreditRate(BaseModel):
|
|
2015
|
+
amount: float
|
|
2016
|
+
currency_id: str = Field(alias="currencyId")
|
|
2017
|
+
|
|
2018
|
+
|
|
1175
2019
|
class MockPaywallPriceFragmentTiers(PriceTierFragment):
|
|
1176
2020
|
pass
|
|
1177
2021
|
|
|
1178
2022
|
|
|
1179
2023
|
class MockPaywallPriceFragmentFeature(BaseModel):
|
|
1180
2024
|
ref_id: str = Field(alias="refId")
|
|
1181
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1182
|
-
feature_units_plural: Optional[str] = Field(
|
|
2025
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2026
|
+
feature_units_plural: Optional[str] = Field(
|
|
2027
|
+
alias="featureUnitsPlural", default=None
|
|
2028
|
+
)
|
|
1183
2029
|
display_name: str = Field(alias="displayName")
|
|
1184
2030
|
|
|
1185
2031
|
|
|
1186
2032
|
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1187
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
2033
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1188
2034
|
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
2035
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
2036
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
2037
|
+
alias="resetPeriod", default=None
|
|
2038
|
+
)
|
|
2039
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
2040
|
+
alias="hiddenFromWidgets", default=None
|
|
2041
|
+
)
|
|
2042
|
+
display_name_override: Optional[str] = Field(
|
|
2043
|
+
alias="displayNameOverride", default=None
|
|
2044
|
+
)
|
|
2045
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
2046
|
+
is_granted: bool = Field(alias="isGranted")
|
|
2047
|
+
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
2048
|
+
default=None
|
|
2049
|
+
)
|
|
1193
2050
|
|
|
1194
2051
|
|
|
1195
2052
|
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1196
2053
|
feature_type: FeatureType = Field(alias="featureType")
|
|
1197
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
1198
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1199
|
-
feature_units_plural: Optional[str] = Field(
|
|
2054
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
2055
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2056
|
+
feature_units_plural: Optional[str] = Field(
|
|
2057
|
+
alias="featureUnitsPlural", default=None
|
|
2058
|
+
)
|
|
1200
2059
|
display_name: str = Field(alias="displayName")
|
|
1201
|
-
description: Optional[str]
|
|
2060
|
+
description: Optional[str] = Field(default=None)
|
|
1202
2061
|
ref_id: str = Field(alias="refId")
|
|
1203
|
-
additional_meta_data: Optional[Any] = Field(
|
|
2062
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2063
|
+
alias="additionalMetaData", default=None
|
|
2064
|
+
)
|
|
1204
2065
|
|
|
1205
2066
|
|
|
1206
2067
|
class MockPaywallAddonFragment(BaseModel):
|
|
1207
2068
|
ref_id: str = Field(alias="refId")
|
|
1208
2069
|
display_name: str = Field(alias="displayName")
|
|
1209
|
-
description: Optional[str]
|
|
1210
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1211
|
-
|
|
2070
|
+
description: Optional[str] = Field(default=None)
|
|
2071
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2072
|
+
alias="additionalMetaData", default=None
|
|
2073
|
+
)
|
|
2074
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
2075
|
+
max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
|
|
2076
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
2077
|
+
alias="hiddenFromWidgets", default=None
|
|
2078
|
+
)
|
|
2079
|
+
dependencies: Optional[List["MockPaywallAddonFragmentDependencies"]] = Field(
|
|
2080
|
+
default=None
|
|
2081
|
+
)
|
|
1212
2082
|
entitlements: List["MockPaywallAddonFragmentEntitlements"]
|
|
1213
2083
|
prices: List["MockPaywallAddonFragmentPrices"]
|
|
1214
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
2084
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
2085
|
+
|
|
2086
|
+
|
|
2087
|
+
class MockPaywallAddonFragmentDependencies(MockPaywallAddonDependencyFragment):
|
|
2088
|
+
pass
|
|
1215
2089
|
|
|
1216
2090
|
|
|
1217
2091
|
class MockPaywallAddonFragmentEntitlements(MockPaywallPackageEntitlementFragment):
|
|
@@ -1222,33 +2096,63 @@ class MockPaywallAddonFragmentPrices(MockPaywallPriceFragment):
|
|
|
1222
2096
|
pass
|
|
1223
2097
|
|
|
1224
2098
|
|
|
2099
|
+
class MockPaywallPlanCompatiblePackageGroupsFragment(BaseModel):
|
|
2100
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
2101
|
+
display_name: str = Field(alias="displayName")
|
|
2102
|
+
description: Optional[str] = Field(default=None)
|
|
2103
|
+
addons: Optional[
|
|
2104
|
+
List["MockPaywallPlanCompatiblePackageGroupsFragmentAddons"]
|
|
2105
|
+
] = Field(default=None)
|
|
2106
|
+
options: "MockPaywallPlanCompatiblePackageGroupsFragmentOptions"
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
class MockPaywallPlanCompatiblePackageGroupsFragmentAddons(MockPaywallAddonFragment):
|
|
2110
|
+
pass
|
|
2111
|
+
|
|
2112
|
+
|
|
2113
|
+
class MockPaywallPlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
2114
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
2115
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
2116
|
+
|
|
2117
|
+
|
|
1225
2118
|
class MockPaywallPlanFragment(BaseModel):
|
|
1226
2119
|
ref_id: str = Field(alias="refId")
|
|
1227
|
-
description: Optional[str]
|
|
2120
|
+
description: Optional[str] = Field(default=None)
|
|
1228
2121
|
display_name: str = Field(alias="displayName")
|
|
1229
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
1230
|
-
additional_meta_data: Optional[Any] = Field(
|
|
2122
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
2123
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2124
|
+
alias="additionalMetaData", default=None
|
|
2125
|
+
)
|
|
1231
2126
|
product: "MockPaywallPlanFragmentProduct"
|
|
1232
|
-
base_plan: Optional["MockPaywallPlanFragmentBasePlan"] = Field(
|
|
1233
|
-
|
|
2127
|
+
base_plan: Optional["MockPaywallPlanFragmentBasePlan"] = Field(
|
|
2128
|
+
alias="basePlan", default=None
|
|
2129
|
+
)
|
|
2130
|
+
entitlements: Optional[List["MockPaywallPlanFragmentEntitlements"]] = Field(
|
|
2131
|
+
default=None
|
|
2132
|
+
)
|
|
1234
2133
|
inherited_entitlements: Optional[
|
|
1235
2134
|
List["MockPaywallPlanFragmentInheritedEntitlements"]
|
|
1236
|
-
] = Field(alias="inheritedEntitlements")
|
|
2135
|
+
] = Field(alias="inheritedEntitlements", default=None)
|
|
1237
2136
|
prices: List["MockPaywallPlanFragmentPrices"]
|
|
1238
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
2137
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
1239
2138
|
default_trial_config: Optional["MockPaywallPlanFragmentDefaultTrialConfig"] = Field(
|
|
1240
|
-
alias="defaultTrialConfig"
|
|
2139
|
+
alias="defaultTrialConfig", default=None
|
|
1241
2140
|
)
|
|
1242
2141
|
compatible_addons: Optional[
|
|
1243
2142
|
List["MockPaywallPlanFragmentCompatibleAddons"]
|
|
1244
|
-
] = Field(alias="compatibleAddons")
|
|
2143
|
+
] = Field(alias="compatibleAddons", default=None)
|
|
2144
|
+
compatible_package_groups: Optional[
|
|
2145
|
+
List["MockPaywallPlanFragmentCompatiblePackageGroups"]
|
|
2146
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
1245
2147
|
|
|
1246
2148
|
|
|
1247
2149
|
class MockPaywallPlanFragmentProduct(BaseModel):
|
|
1248
2150
|
ref_id: str = Field(alias="refId")
|
|
1249
|
-
display_name: Optional[str] = Field(alias="displayName")
|
|
1250
|
-
description: Optional[str]
|
|
1251
|
-
additional_meta_data: Optional[Any] = Field(
|
|
2151
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
2152
|
+
description: Optional[str] = Field(default=None)
|
|
2153
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2154
|
+
alias="additionalMetaData", default=None
|
|
2155
|
+
)
|
|
1252
2156
|
|
|
1253
2157
|
|
|
1254
2158
|
class MockPaywallPlanFragmentBasePlan(BaseModel):
|
|
@@ -1273,12 +2177,28 @@ class MockPaywallPlanFragmentPrices(MockPaywallPriceFragment):
|
|
|
1273
2177
|
class MockPaywallPlanFragmentDefaultTrialConfig(BaseModel):
|
|
1274
2178
|
duration: float
|
|
1275
2179
|
units: TrialPeriodUnits
|
|
2180
|
+
budget: Optional["MockPaywallPlanFragmentDefaultTrialConfigBudget"] = Field(
|
|
2181
|
+
default=None
|
|
2182
|
+
)
|
|
2183
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
2184
|
+
alias="trialEndBehavior", default=None
|
|
2185
|
+
)
|
|
2186
|
+
|
|
2187
|
+
|
|
2188
|
+
class MockPaywallPlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
2189
|
+
limit: float
|
|
1276
2190
|
|
|
1277
2191
|
|
|
1278
2192
|
class MockPaywallPlanFragmentCompatibleAddons(MockPaywallAddonFragment):
|
|
1279
2193
|
pass
|
|
1280
2194
|
|
|
1281
2195
|
|
|
2196
|
+
class MockPaywallPlanFragmentCompatiblePackageGroups(
|
|
2197
|
+
MockPaywallPlanCompatiblePackageGroupsFragment
|
|
2198
|
+
):
|
|
2199
|
+
pass
|
|
2200
|
+
|
|
2201
|
+
|
|
1282
2202
|
class PackagePublishedPayload(BaseModel):
|
|
1283
2203
|
account_id: str = Field(alias="accountId")
|
|
1284
2204
|
environment_id: str = Field(alias="environmentId")
|
|
@@ -1288,39 +2208,58 @@ class PackagePublishedPayload(BaseModel):
|
|
|
1288
2208
|
migration_type: PublishMigrationType = Field(alias="migrationType")
|
|
1289
2209
|
|
|
1290
2210
|
|
|
2211
|
+
class PageInfoFragment(BaseModel):
|
|
2212
|
+
start_cursor: Optional[Any] = Field(alias="startCursor", default=None)
|
|
2213
|
+
end_cursor: Optional[Any] = Field(alias="endCursor", default=None)
|
|
2214
|
+
has_next_page: Optional[bool] = Field(alias="hasNextPage", default=None)
|
|
2215
|
+
has_previous_page: Optional[bool] = Field(alias="hasPreviousPage", default=None)
|
|
2216
|
+
|
|
2217
|
+
|
|
2218
|
+
class PaymentSessionFragment(BaseModel):
|
|
2219
|
+
token: str
|
|
2220
|
+
|
|
2221
|
+
|
|
1291
2222
|
class PaywallCalculatedPricePointsFragment(BaseModel):
|
|
1292
2223
|
plan_id: str = Field(alias="planId")
|
|
1293
2224
|
additional_charges_may_apply: Optional[bool] = Field(
|
|
1294
|
-
alias="additionalChargesMayApply"
|
|
2225
|
+
alias="additionalChargesMayApply", default=None
|
|
1295
2226
|
)
|
|
1296
2227
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1297
2228
|
amount: float
|
|
1298
2229
|
currency: Currency
|
|
1299
|
-
billing_country_code: Optional[str] = Field(
|
|
1300
|
-
|
|
2230
|
+
billing_country_code: Optional[str] = Field(
|
|
2231
|
+
alias="billingCountryCode", default=None
|
|
2232
|
+
)
|
|
2233
|
+
feature: Optional["PaywallCalculatedPricePointsFragmentFeature"] = Field(
|
|
2234
|
+
default=None
|
|
2235
|
+
)
|
|
1301
2236
|
|
|
1302
2237
|
|
|
1303
2238
|
class PaywallCalculatedPricePointsFragmentFeature(BaseModel):
|
|
1304
2239
|
ref_id: str = Field(alias="refId")
|
|
1305
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1306
|
-
feature_units_plural: Optional[str] = Field(
|
|
2240
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2241
|
+
feature_units_plural: Optional[str] = Field(
|
|
2242
|
+
alias="featureUnitsPlural", default=None
|
|
2243
|
+
)
|
|
1307
2244
|
display_name: str = Field(alias="displayName")
|
|
1308
|
-
description: Optional[str]
|
|
2245
|
+
description: Optional[str] = Field(default=None)
|
|
1309
2246
|
|
|
1310
2247
|
|
|
1311
2248
|
class PaywallConfigurationFragment(BaseModel):
|
|
1312
|
-
palette: Optional["PaywallConfigurationFragmentPalette"]
|
|
1313
|
-
typography: Optional["PaywallConfigurationFragmentTypography"]
|
|
1314
|
-
layout: Optional["PaywallConfigurationFragmentLayout"]
|
|
1315
|
-
custom_css: Optional[str] = Field(alias="customCss")
|
|
2249
|
+
palette: Optional["PaywallConfigurationFragmentPalette"] = Field(default=None)
|
|
2250
|
+
typography: Optional["PaywallConfigurationFragmentTypography"] = Field(default=None)
|
|
2251
|
+
layout: Optional["PaywallConfigurationFragmentLayout"] = Field(default=None)
|
|
2252
|
+
custom_css: Optional[str] = Field(alias="customCss", default=None)
|
|
1316
2253
|
|
|
1317
2254
|
|
|
1318
2255
|
class PaywallConfigurationFragmentPalette(BaseModel):
|
|
1319
|
-
primary: Optional[str]
|
|
1320
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
1321
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
1322
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
1323
|
-
current_plan_background: Optional[str] = Field(
|
|
2256
|
+
primary: Optional[str] = Field(default=None)
|
|
2257
|
+
text_color: Optional[str] = Field(alias="textColor", default=None)
|
|
2258
|
+
background_color: Optional[str] = Field(alias="backgroundColor", default=None)
|
|
2259
|
+
border_color: Optional[str] = Field(alias="borderColor", default=None)
|
|
2260
|
+
current_plan_background: Optional[str] = Field(
|
|
2261
|
+
alias="currentPlanBackground", default=None
|
|
2262
|
+
)
|
|
1324
2263
|
|
|
1325
2264
|
|
|
1326
2265
|
class PaywallConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
@@ -1339,15 +2278,15 @@ class PaywallCurrencyFragment(BaseModel):
|
|
|
1339
2278
|
class PaywallFragment(BaseModel):
|
|
1340
2279
|
plans: List["PaywallFragmentPlans"]
|
|
1341
2280
|
currency: "PaywallFragmentCurrency"
|
|
1342
|
-
configuration: Optional["PaywallFragmentConfiguration"]
|
|
1343
|
-
customer: Optional["PaywallFragmentCustomer"]
|
|
2281
|
+
configuration: Optional["PaywallFragmentConfiguration"] = Field(default=None)
|
|
2282
|
+
customer: Optional["PaywallFragmentCustomer"] = Field(default=None)
|
|
1344
2283
|
active_subscriptions: Optional[List["PaywallFragmentActiveSubscriptions"]] = Field(
|
|
1345
|
-
alias="activeSubscriptions"
|
|
2284
|
+
alias="activeSubscriptions", default=None
|
|
1346
2285
|
)
|
|
1347
|
-
resource: Optional["PaywallFragmentResource"]
|
|
2286
|
+
resource: Optional["PaywallFragmentResource"] = Field(default=None)
|
|
1348
2287
|
paywall_calculated_price_points: Optional[
|
|
1349
2288
|
List["PaywallFragmentPaywallCalculatedPricePoints"]
|
|
1350
|
-
] = Field(alias="paywallCalculatedPricePoints")
|
|
2289
|
+
] = Field(alias="paywallCalculatedPricePoints", default=None)
|
|
1351
2290
|
|
|
1352
2291
|
|
|
1353
2292
|
class PaywallFragmentPlans(PlanFragment):
|
|
@@ -1379,30 +2318,36 @@ class PaywallFragmentPaywallCalculatedPricePoints(PaywallCalculatedPricePointsFr
|
|
|
1379
2318
|
|
|
1380
2319
|
|
|
1381
2320
|
class SlimSubscriptionFragment(BaseModel):
|
|
1382
|
-
id:
|
|
2321
|
+
id: Any
|
|
2322
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
1383
2323
|
ref_id: str = Field(alias="refId")
|
|
1384
2324
|
status: SubscriptionStatus
|
|
1385
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
2325
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2326
|
+
alias="additionalMetaData", default=None
|
|
2327
|
+
)
|
|
2328
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
2329
|
+
billing_link_url: Optional[str] = Field(alias="billingLinkUrl", default=None)
|
|
2330
|
+
effective_end_date: Optional[Any] = Field(alias="effectiveEndDate", default=None)
|
|
2331
|
+
cancellation_date: Optional[Any] = Field(alias="cancellationDate", default=None)
|
|
2332
|
+
current_billing_period_end: Optional[Any] = Field(
|
|
2333
|
+
alias="currentBillingPeriodEnd", default=None
|
|
2334
|
+
)
|
|
1390
2335
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
1391
2336
|
latest_invoice: Optional["SlimSubscriptionFragmentLatestInvoice"] = Field(
|
|
1392
|
-
alias="latestInvoice"
|
|
2337
|
+
alias="latestInvoice", default=None
|
|
1393
2338
|
)
|
|
1394
2339
|
payment_collection: PaymentCollection = Field(alias="paymentCollection")
|
|
1395
|
-
billing_sync_error: Optional[str] = Field(alias="billingSyncError")
|
|
1396
|
-
resource: Optional["SlimSubscriptionFragmentResource"]
|
|
2340
|
+
billing_sync_error: Optional[str] = Field(alias="billingSyncError", default=None)
|
|
2341
|
+
resource: Optional["SlimSubscriptionFragmentResource"] = Field(default=None)
|
|
1397
2342
|
experiment_info: Optional["SlimSubscriptionFragmentExperimentInfo"] = Field(
|
|
1398
|
-
alias="experimentInfo"
|
|
2343
|
+
alias="experimentInfo", default=None
|
|
1399
2344
|
)
|
|
1400
|
-
prices: Optional[List["SlimSubscriptionFragmentPrices"]]
|
|
2345
|
+
prices: Optional[List["SlimSubscriptionFragmentPrices"]] = Field(default=None)
|
|
1401
2346
|
total_price: Optional["SlimSubscriptionFragmentTotalPrice"] = Field(
|
|
1402
|
-
alias="totalPrice"
|
|
2347
|
+
alias="totalPrice", default=None
|
|
1403
2348
|
)
|
|
1404
2349
|
plan: "SlimSubscriptionFragmentPlan"
|
|
1405
|
-
addons: Optional[List["SlimSubscriptionFragmentAddons"]]
|
|
2350
|
+
addons: Optional[List["SlimSubscriptionFragmentAddons"]] = Field(default=None)
|
|
1406
2351
|
customer: "SlimSubscriptionFragmentCustomer"
|
|
1407
2352
|
|
|
1408
2353
|
|
|
@@ -1417,13 +2362,13 @@ class SlimSubscriptionFragmentResource(CustomerResourceFragment):
|
|
|
1417
2362
|
class SlimSubscriptionFragmentExperimentInfo(BaseModel):
|
|
1418
2363
|
name: str
|
|
1419
2364
|
id: str
|
|
1420
|
-
group_name: str = Field(alias="groupName")
|
|
1421
2365
|
group_type: experimentGroupType = Field(alias="groupType")
|
|
2366
|
+
group_name: str = Field(alias="groupName")
|
|
1422
2367
|
|
|
1423
2368
|
|
|
1424
2369
|
class SlimSubscriptionFragmentPrices(BaseModel):
|
|
1425
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
1426
|
-
price: Optional["SlimSubscriptionFragmentPricesPrice"]
|
|
2370
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2371
|
+
price: Optional["SlimSubscriptionFragmentPricesPrice"] = Field(default=None)
|
|
1427
2372
|
|
|
1428
2373
|
|
|
1429
2374
|
class SlimSubscriptionFragmentPricesPrice(PriceFragment):
|
|
@@ -1435,7 +2380,7 @@ class SlimSubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
|
1435
2380
|
|
|
1436
2381
|
|
|
1437
2382
|
class SlimSubscriptionFragmentPlan(BaseModel):
|
|
1438
|
-
id:
|
|
2383
|
+
id: Any
|
|
1439
2384
|
ref_id: str = Field(alias="refId")
|
|
1440
2385
|
|
|
1441
2386
|
|
|
@@ -1445,15 +2390,277 @@ class SlimSubscriptionFragmentAddons(BaseModel):
|
|
|
1445
2390
|
|
|
1446
2391
|
|
|
1447
2392
|
class SlimSubscriptionFragmentAddonsAddon(BaseModel):
|
|
1448
|
-
id:
|
|
2393
|
+
id: Any
|
|
1449
2394
|
ref_id: str = Field(alias="refId")
|
|
1450
2395
|
|
|
1451
2396
|
|
|
1452
2397
|
class SlimSubscriptionFragmentCustomer(BaseModel):
|
|
1453
|
-
id:
|
|
2398
|
+
id: Any
|
|
1454
2399
|
ref_id: str = Field(alias="refId")
|
|
1455
2400
|
|
|
1456
2401
|
|
|
2402
|
+
class ProvisionCustomerFragment(BaseModel):
|
|
2403
|
+
customer: "ProvisionCustomerFragmentCustomer"
|
|
2404
|
+
subscription_decision_strategy: SubscriptionDecisionStrategy = Field(
|
|
2405
|
+
alias="subscriptionDecisionStrategy"
|
|
2406
|
+
)
|
|
2407
|
+
subscription: Optional["ProvisionCustomerFragmentSubscription"] = Field(
|
|
2408
|
+
default=None
|
|
2409
|
+
)
|
|
2410
|
+
entitlements: Optional[List["ProvisionCustomerFragmentEntitlements"]] = Field(
|
|
2411
|
+
default=None
|
|
2412
|
+
)
|
|
2413
|
+
|
|
2414
|
+
|
|
2415
|
+
class ProvisionCustomerFragmentCustomer(SlimCustomerFragment):
|
|
2416
|
+
pass
|
|
2417
|
+
|
|
2418
|
+
|
|
2419
|
+
class ProvisionCustomerFragmentSubscription(SlimSubscriptionFragment):
|
|
2420
|
+
pass
|
|
2421
|
+
|
|
2422
|
+
|
|
2423
|
+
class ProvisionCustomerFragmentEntitlements(EntitlementFragment):
|
|
2424
|
+
pass
|
|
2425
|
+
|
|
2426
|
+
|
|
2427
|
+
class ProvisionSubscriptionFragment(BaseModel):
|
|
2428
|
+
status: ProvisionSubscriptionStatus
|
|
2429
|
+
checkout_url: Optional[str] = Field(alias="checkoutUrl", default=None)
|
|
2430
|
+
checkout_billing_id: Optional[str] = Field(alias="checkoutBillingId", default=None)
|
|
2431
|
+
subscription: Optional["ProvisionSubscriptionFragmentSubscription"] = Field(
|
|
2432
|
+
default=None
|
|
2433
|
+
)
|
|
2434
|
+
entitlements: Optional[List["ProvisionSubscriptionFragmentEntitlements"]] = Field(
|
|
2435
|
+
default=None
|
|
2436
|
+
)
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
class ProvisionSubscriptionFragmentSubscription(SlimSubscriptionFragment):
|
|
2440
|
+
pass
|
|
2441
|
+
|
|
2442
|
+
|
|
2443
|
+
class ProvisionSubscriptionFragmentEntitlements(EntitlementFragment):
|
|
2444
|
+
pass
|
|
2445
|
+
|
|
2446
|
+
|
|
2447
|
+
class ReportUsageFragment(BaseModel):
|
|
2448
|
+
id: Any
|
|
2449
|
+
feature_id: str = Field(alias="featureId")
|
|
2450
|
+
customer_id: str = Field(alias="customerId")
|
|
2451
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
2452
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
2453
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
2454
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
2455
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
2456
|
+
timestamp: Any
|
|
2457
|
+
|
|
2458
|
+
|
|
2459
|
+
class SlimSubscriptionFragmentV2(BaseModel):
|
|
2460
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
2461
|
+
status: SubscriptionStatus
|
|
2462
|
+
pricing_type: PricingType = Field(alias="pricingType")
|
|
2463
|
+
start_date: Any = Field(alias="startDate")
|
|
2464
|
+
cancellation_date: Optional[Any] = Field(alias="cancellationDate", default=None)
|
|
2465
|
+
current_billing_period_end: Optional[Any] = Field(
|
|
2466
|
+
alias="currentBillingPeriodEnd", default=None
|
|
2467
|
+
)
|
|
2468
|
+
customer: "SlimSubscriptionFragmentV2Customer"
|
|
2469
|
+
paying_customer: Optional["SlimSubscriptionFragmentV2PayingCustomer"] = Field(
|
|
2470
|
+
alias="payingCustomer", default=None
|
|
2471
|
+
)
|
|
2472
|
+
resource: Optional["SlimSubscriptionFragmentV2Resource"] = Field(default=None)
|
|
2473
|
+
plan: "SlimSubscriptionFragmentV2Plan"
|
|
2474
|
+
addons: Optional[List["SlimSubscriptionFragmentV2Addons"]] = Field(default=None)
|
|
2475
|
+
trial_configuration: Optional[
|
|
2476
|
+
"SlimSubscriptionFragmentV2TrialConfiguration"
|
|
2477
|
+
] = Field(alias="trialConfiguration", default=None)
|
|
2478
|
+
trial_end_date: Optional[Any] = Field(alias="trialEndDate", default=None)
|
|
2479
|
+
|
|
2480
|
+
|
|
2481
|
+
class SlimSubscriptionFragmentV2Customer(BaseModel):
|
|
2482
|
+
customer_id: str = Field(alias="customerId")
|
|
2483
|
+
|
|
2484
|
+
|
|
2485
|
+
class SlimSubscriptionFragmentV2PayingCustomer(BaseModel):
|
|
2486
|
+
customer_id: str = Field(alias="customerId")
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
class SlimSubscriptionFragmentV2Resource(BaseModel):
|
|
2490
|
+
resource_id: str = Field(alias="resourceId")
|
|
2491
|
+
|
|
2492
|
+
|
|
2493
|
+
class SlimSubscriptionFragmentV2Plan(BaseModel):
|
|
2494
|
+
plan_id: str = Field(alias="planId")
|
|
2495
|
+
display_name: str = Field(alias="displayName")
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
class SlimSubscriptionFragmentV2Addons(BaseModel):
|
|
2499
|
+
quantity: float
|
|
2500
|
+
addon: "SlimSubscriptionFragmentV2AddonsAddon"
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
class SlimSubscriptionFragmentV2AddonsAddon(BaseModel):
|
|
2504
|
+
addon_id: str = Field(alias="addonId")
|
|
2505
|
+
|
|
2506
|
+
|
|
2507
|
+
class SlimSubscriptionFragmentV2TrialConfiguration(BaseModel):
|
|
2508
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
2509
|
+
|
|
2510
|
+
|
|
2511
|
+
class SubscriptionInvoicePreviewFragment(BaseModel):
|
|
2512
|
+
amount_due: "SubscriptionInvoicePreviewFragmentAmountDue" = Field(alias="amountDue")
|
|
2513
|
+
minimum_spend_adjustment: "SubscriptionInvoicePreviewFragmentMinimumSpendAdjustment" = Field(
|
|
2514
|
+
alias="minimumSpendAdjustment"
|
|
2515
|
+
)
|
|
2516
|
+
total: "SubscriptionInvoicePreviewFragmentTotal"
|
|
2517
|
+
total_excluding_tax: "SubscriptionInvoicePreviewFragmentTotalExcludingTax" = Field(
|
|
2518
|
+
alias="totalExcludingTax"
|
|
2519
|
+
)
|
|
2520
|
+
sub_total: "SubscriptionInvoicePreviewFragmentSubTotal" = Field(alias="subTotal")
|
|
2521
|
+
sub_total_excluding_tax: "SubscriptionInvoicePreviewFragmentSubTotalExcludingTax" = Field(
|
|
2522
|
+
alias="subTotalExcludingTax"
|
|
2523
|
+
)
|
|
2524
|
+
tax: Optional["SubscriptionInvoicePreviewFragmentTax"] = Field(default=None)
|
|
2525
|
+
tax_details: Optional["SubscriptionInvoicePreviewFragmentTaxDetails"] = Field(
|
|
2526
|
+
alias="taxDetails", default=None
|
|
2527
|
+
)
|
|
2528
|
+
discount: Optional["SubscriptionInvoicePreviewFragmentDiscount"] = Field(
|
|
2529
|
+
default=None
|
|
2530
|
+
)
|
|
2531
|
+
discount_details: Optional[
|
|
2532
|
+
"SubscriptionInvoicePreviewFragmentDiscountDetails"
|
|
2533
|
+
] = Field(alias="discountDetails", default=None)
|
|
2534
|
+
credits: Optional["SubscriptionInvoicePreviewFragmentCredits"] = Field(default=None)
|
|
2535
|
+
last_updated_at: Any = Field(alias="lastUpdatedAt")
|
|
2536
|
+
lines: List["SubscriptionInvoicePreviewFragmentLines"]
|
|
2537
|
+
|
|
2538
|
+
|
|
2539
|
+
class SubscriptionInvoicePreviewFragmentAmountDue(BaseModel):
|
|
2540
|
+
amount: float
|
|
2541
|
+
currency: Currency
|
|
2542
|
+
|
|
2543
|
+
|
|
2544
|
+
class SubscriptionInvoicePreviewFragmentMinimumSpendAdjustment(BaseModel):
|
|
2545
|
+
amount: float
|
|
2546
|
+
currency: Currency
|
|
2547
|
+
|
|
2548
|
+
|
|
2549
|
+
class SubscriptionInvoicePreviewFragmentTotal(BaseModel):
|
|
2550
|
+
amount: float
|
|
2551
|
+
currency: Currency
|
|
2552
|
+
|
|
2553
|
+
|
|
2554
|
+
class SubscriptionInvoicePreviewFragmentTotalExcludingTax(BaseModel):
|
|
2555
|
+
amount: float
|
|
2556
|
+
currency: Currency
|
|
2557
|
+
|
|
2558
|
+
|
|
2559
|
+
class SubscriptionInvoicePreviewFragmentSubTotal(BaseModel):
|
|
2560
|
+
amount: float
|
|
2561
|
+
currency: Currency
|
|
2562
|
+
|
|
2563
|
+
|
|
2564
|
+
class SubscriptionInvoicePreviewFragmentSubTotalExcludingTax(BaseModel):
|
|
2565
|
+
amount: float
|
|
2566
|
+
currency: Currency
|
|
2567
|
+
|
|
2568
|
+
|
|
2569
|
+
class SubscriptionInvoicePreviewFragmentTax(BaseModel):
|
|
2570
|
+
amount: float
|
|
2571
|
+
currency: Currency
|
|
2572
|
+
|
|
2573
|
+
|
|
2574
|
+
class SubscriptionInvoicePreviewFragmentTaxDetails(BaseModel):
|
|
2575
|
+
display_name: str = Field(alias="displayName")
|
|
2576
|
+
percentage: float
|
|
2577
|
+
inclusive: bool
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
class SubscriptionInvoicePreviewFragmentDiscount(BaseModel):
|
|
2581
|
+
amount: float
|
|
2582
|
+
currency: Currency
|
|
2583
|
+
|
|
2584
|
+
|
|
2585
|
+
class SubscriptionInvoicePreviewFragmentDiscountDetails(BaseModel):
|
|
2586
|
+
name: Optional[str] = Field(default=None)
|
|
2587
|
+
type: DiscountType
|
|
2588
|
+
value: float
|
|
2589
|
+
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
2590
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
2591
|
+
|
|
2592
|
+
|
|
2593
|
+
class SubscriptionInvoicePreviewFragmentCredits(BaseModel):
|
|
2594
|
+
initial: "SubscriptionInvoicePreviewFragmentCreditsInitial"
|
|
2595
|
+
used: "SubscriptionInvoicePreviewFragmentCreditsUsed"
|
|
2596
|
+
remaining: "SubscriptionInvoicePreviewFragmentCreditsRemaining"
|
|
2597
|
+
|
|
2598
|
+
|
|
2599
|
+
class SubscriptionInvoicePreviewFragmentCreditsInitial(BaseModel):
|
|
2600
|
+
amount: float
|
|
2601
|
+
currency: Currency
|
|
2602
|
+
|
|
2603
|
+
|
|
2604
|
+
class SubscriptionInvoicePreviewFragmentCreditsUsed(BaseModel):
|
|
2605
|
+
amount: float
|
|
2606
|
+
currency: Currency
|
|
2607
|
+
|
|
2608
|
+
|
|
2609
|
+
class SubscriptionInvoicePreviewFragmentCreditsRemaining(BaseModel):
|
|
2610
|
+
amount: float
|
|
2611
|
+
currency: Currency
|
|
2612
|
+
|
|
2613
|
+
|
|
2614
|
+
class SubscriptionInvoicePreviewFragmentLines(BaseModel):
|
|
2615
|
+
type: InvoiceLineItemType
|
|
2616
|
+
description: str
|
|
2617
|
+
cost_description: str = Field(alias="costDescription")
|
|
2618
|
+
amount: "SubscriptionInvoicePreviewFragmentLinesAmount"
|
|
2619
|
+
unit_price: Optional["SubscriptionInvoicePreviewFragmentLinesUnitPrice"] = Field(
|
|
2620
|
+
alias="unitPrice", default=None
|
|
2621
|
+
)
|
|
2622
|
+
quantity: Optional[int] = Field(default=None)
|
|
2623
|
+
proration: bool
|
|
2624
|
+
price: Optional["SubscriptionInvoicePreviewFragmentLinesPrice"] = Field(
|
|
2625
|
+
default=None
|
|
2626
|
+
)
|
|
2627
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2628
|
+
period: "SubscriptionInvoicePreviewFragmentLinesPeriod"
|
|
2629
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
2630
|
+
lines: Optional[List["SubscriptionInvoicePreviewFragmentLinesLines"]] = Field(
|
|
2631
|
+
default=None
|
|
2632
|
+
)
|
|
2633
|
+
|
|
2634
|
+
|
|
2635
|
+
class SubscriptionInvoicePreviewFragmentLinesAmount(BaseModel):
|
|
2636
|
+
amount: float
|
|
2637
|
+
currency: Currency
|
|
2638
|
+
|
|
2639
|
+
|
|
2640
|
+
class SubscriptionInvoicePreviewFragmentLinesUnitPrice(BaseModel):
|
|
2641
|
+
amount: float
|
|
2642
|
+
currency: Currency
|
|
2643
|
+
|
|
2644
|
+
|
|
2645
|
+
class SubscriptionInvoicePreviewFragmentLinesPrice(PriceFragment):
|
|
2646
|
+
pass
|
|
2647
|
+
|
|
2648
|
+
|
|
2649
|
+
class SubscriptionInvoicePreviewFragmentLinesPeriod(BaseModel):
|
|
2650
|
+
start: Any
|
|
2651
|
+
end: Any
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
class SubscriptionInvoicePreviewFragmentLinesLines(BaseModel):
|
|
2655
|
+
type: InvoiceLineItemType
|
|
2656
|
+
description: str
|
|
2657
|
+
cost_description: str = Field(alias="costDescription")
|
|
2658
|
+
quantity: Optional[int] = Field(default=None)
|
|
2659
|
+
proration: bool
|
|
2660
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2661
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
2662
|
+
|
|
2663
|
+
|
|
1457
2664
|
class SubscriptionPreviewFragment(BaseModel):
|
|
1458
2665
|
sub_total: "SubscriptionPreviewFragmentSubTotal" = Field(alias="subTotal")
|
|
1459
2666
|
total_excluding_tax: "SubscriptionPreviewFragmentTotalExcludingTax" = Field(
|
|
@@ -1461,21 +2668,25 @@ class SubscriptionPreviewFragment(BaseModel):
|
|
|
1461
2668
|
)
|
|
1462
2669
|
total: "SubscriptionPreviewFragmentTotal"
|
|
1463
2670
|
discount_amount: Optional["SubscriptionPreviewFragmentDiscountAmount"] = Field(
|
|
1464
|
-
alias="discountAmount"
|
|
2671
|
+
alias="discountAmount", default=None
|
|
1465
2672
|
)
|
|
1466
2673
|
tax_details: Optional["SubscriptionPreviewFragmentTaxDetails"] = Field(
|
|
1467
|
-
alias="taxDetails"
|
|
2674
|
+
alias="taxDetails", default=None
|
|
1468
2675
|
)
|
|
1469
|
-
tax: Optional["SubscriptionPreviewFragmentTax"]
|
|
2676
|
+
tax: Optional["SubscriptionPreviewFragmentTax"] = Field(default=None)
|
|
1470
2677
|
billing_period_range: "SubscriptionPreviewFragmentBillingPeriodRange" = Field(
|
|
1471
2678
|
alias="billingPeriodRange"
|
|
1472
2679
|
)
|
|
1473
|
-
discount: Optional["SubscriptionPreviewFragmentDiscount"]
|
|
1474
|
-
subscription: Optional["SubscriptionPreviewFragmentSubscription"]
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
2680
|
+
discount: Optional["SubscriptionPreviewFragmentDiscount"] = Field(default=None)
|
|
2681
|
+
subscription: Optional["SubscriptionPreviewFragmentSubscription"] = Field(
|
|
2682
|
+
default=None
|
|
2683
|
+
)
|
|
2684
|
+
proration: Optional["SubscriptionPreviewFragmentProration"] = Field(default=None)
|
|
2685
|
+
is_plan_downgrade: Optional[bool] = Field(alias="isPlanDowngrade", default=None)
|
|
2686
|
+
has_scheduled_updates: Optional[bool] = Field(
|
|
2687
|
+
alias="hasScheduledUpdates", default=None
|
|
2688
|
+
)
|
|
2689
|
+
credits: Optional["SubscriptionPreviewFragmentCredits"] = Field(default=None)
|
|
1479
2690
|
|
|
1480
2691
|
|
|
1481
2692
|
class SubscriptionPreviewFragmentSubTotal(BaseModel):
|
|
@@ -1510,15 +2721,16 @@ class SubscriptionPreviewFragmentTax(BaseModel):
|
|
|
1510
2721
|
|
|
1511
2722
|
|
|
1512
2723
|
class SubscriptionPreviewFragmentBillingPeriodRange(BaseModel):
|
|
1513
|
-
start: Optional[Any]
|
|
1514
|
-
end: Optional[Any]
|
|
2724
|
+
start: Optional[Any] = Field(default=None)
|
|
2725
|
+
end: Optional[Any] = Field(default=None)
|
|
1515
2726
|
|
|
1516
2727
|
|
|
1517
2728
|
class SubscriptionPreviewFragmentDiscount(BaseModel):
|
|
2729
|
+
name: Optional[str] = Field(default=None)
|
|
1518
2730
|
type: DiscountType
|
|
1519
2731
|
value: float
|
|
1520
2732
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1521
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2733
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1522
2734
|
|
|
1523
2735
|
|
|
1524
2736
|
class SubscriptionPreviewFragmentSubscription(BaseModel):
|
|
@@ -1532,11 +2744,13 @@ class SubscriptionPreviewFragmentSubscription(BaseModel):
|
|
|
1532
2744
|
tax: "SubscriptionPreviewFragmentSubscriptionTax"
|
|
1533
2745
|
discount_amount: Optional[
|
|
1534
2746
|
"SubscriptionPreviewFragmentSubscriptionDiscountAmount"
|
|
1535
|
-
] = Field(alias="discountAmount")
|
|
2747
|
+
] = Field(alias="discountAmount", default=None)
|
|
1536
2748
|
tax_details: Optional["SubscriptionPreviewFragmentSubscriptionTaxDetails"] = Field(
|
|
1537
|
-
alias="taxDetails"
|
|
2749
|
+
alias="taxDetails", default=None
|
|
2750
|
+
)
|
|
2751
|
+
discount: Optional["SubscriptionPreviewFragmentSubscriptionDiscount"] = Field(
|
|
2752
|
+
default=None
|
|
1538
2753
|
)
|
|
1539
|
-
discount: Optional["SubscriptionPreviewFragmentSubscriptionDiscount"]
|
|
1540
2754
|
|
|
1541
2755
|
|
|
1542
2756
|
class SubscriptionPreviewFragmentSubscriptionSubTotal(BaseModel):
|
|
@@ -1571,10 +2785,11 @@ class SubscriptionPreviewFragmentSubscriptionTaxDetails(BaseModel):
|
|
|
1571
2785
|
|
|
1572
2786
|
|
|
1573
2787
|
class SubscriptionPreviewFragmentSubscriptionDiscount(BaseModel):
|
|
2788
|
+
name: Optional[str] = Field(default=None)
|
|
1574
2789
|
type: DiscountType
|
|
1575
2790
|
value: float
|
|
1576
2791
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1577
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2792
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1578
2793
|
|
|
1579
2794
|
|
|
1580
2795
|
class SubscriptionPreviewFragmentProration(BaseModel):
|
|
@@ -1628,14 +2843,16 @@ class SubscriptionPreviewInvoiceFragment(BaseModel):
|
|
|
1628
2843
|
total_excluding_tax: "SubscriptionPreviewInvoiceFragmentTotalExcludingTax" = Field(
|
|
1629
2844
|
alias="totalExcludingTax"
|
|
1630
2845
|
)
|
|
1631
|
-
tax: Optional["SubscriptionPreviewInvoiceFragmentTax"]
|
|
1632
|
-
discount: Optional["SubscriptionPreviewInvoiceFragmentDiscount"]
|
|
2846
|
+
tax: Optional["SubscriptionPreviewInvoiceFragmentTax"] = Field(default=None)
|
|
2847
|
+
discount: Optional["SubscriptionPreviewInvoiceFragmentDiscount"] = Field(
|
|
2848
|
+
default=None
|
|
2849
|
+
)
|
|
1633
2850
|
tax_details: Optional["SubscriptionPreviewInvoiceFragmentTaxDetails"] = Field(
|
|
1634
|
-
alias="taxDetails"
|
|
2851
|
+
alias="taxDetails", default=None
|
|
1635
2852
|
)
|
|
1636
2853
|
discount_details: Optional[
|
|
1637
2854
|
"SubscriptionPreviewInvoiceFragmentDiscountDetails"
|
|
1638
|
-
] = Field(alias="discountDetails")
|
|
2855
|
+
] = Field(alias="discountDetails", default=None)
|
|
1639
2856
|
|
|
1640
2857
|
|
|
1641
2858
|
class SubscriptionPreviewInvoiceFragmentTotal(BaseModel):
|
|
@@ -1673,7 +2890,7 @@ class SubscriptionPreviewInvoiceFragmentDiscountDetails(BaseModel):
|
|
|
1673
2890
|
type: DiscountType
|
|
1674
2891
|
value: float
|
|
1675
2892
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1676
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2893
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1677
2894
|
|
|
1678
2895
|
|
|
1679
2896
|
class SubscriptionPreviewV2Fragment(BaseModel):
|
|
@@ -1682,12 +2899,14 @@ class SubscriptionPreviewV2Fragment(BaseModel):
|
|
|
1682
2899
|
)
|
|
1683
2900
|
recurring_invoice: Optional[
|
|
1684
2901
|
"SubscriptionPreviewV2FragmentRecurringInvoice"
|
|
1685
|
-
] = Field(alias="recurringInvoice")
|
|
2902
|
+
] = Field(alias="recurringInvoice", default=None)
|
|
1686
2903
|
billing_period_range: "SubscriptionPreviewV2FragmentBillingPeriodRange" = Field(
|
|
1687
2904
|
alias="billingPeriodRange"
|
|
1688
2905
|
)
|
|
1689
|
-
is_plan_downgrade: Optional[bool] = Field(alias="isPlanDowngrade")
|
|
1690
|
-
has_scheduled_updates: Optional[bool] = Field(
|
|
2906
|
+
is_plan_downgrade: Optional[bool] = Field(alias="isPlanDowngrade", default=None)
|
|
2907
|
+
has_scheduled_updates: Optional[bool] = Field(
|
|
2908
|
+
alias="hasScheduledUpdates", default=None
|
|
2909
|
+
)
|
|
1691
2910
|
|
|
1692
2911
|
|
|
1693
2912
|
class SubscriptionPreviewV2FragmentImmediateInvoice(
|
|
@@ -1701,256 +2920,200 @@ class SubscriptionPreviewV2FragmentRecurringInvoice(SubscriptionPreviewInvoiceFr
|
|
|
1701
2920
|
|
|
1702
2921
|
|
|
1703
2922
|
class SubscriptionPreviewV2FragmentBillingPeriodRange(BaseModel):
|
|
1704
|
-
start: Optional[Any]
|
|
1705
|
-
end: Optional[Any]
|
|
2923
|
+
start: Optional[Any] = Field(default=None)
|
|
2924
|
+
end: Optional[Any] = Field(default=None)
|
|
2925
|
+
|
|
2926
|
+
|
|
2927
|
+
class SubscriptionQueryFragment(BaseModel):
|
|
2928
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
2929
|
+
status: SubscriptionStatus
|
|
2930
|
+
pricing_type: PricingType = Field(alias="pricingType")
|
|
2931
|
+
start_date: Any = Field(alias="startDate")
|
|
2932
|
+
current_billing_period_end: Optional[Any] = Field(
|
|
2933
|
+
alias="currentBillingPeriodEnd", default=None
|
|
2934
|
+
)
|
|
2935
|
+
customer: "SubscriptionQueryFragmentCustomer"
|
|
2936
|
+
paying_customer: Optional["SubscriptionQueryFragmentPayingCustomer"] = Field(
|
|
2937
|
+
alias="payingCustomer", default=None
|
|
2938
|
+
)
|
|
2939
|
+
resource: Optional["SubscriptionQueryFragmentResource"] = Field(default=None)
|
|
2940
|
+
plan: "SubscriptionQueryFragmentPlan"
|
|
2941
|
+
addons: Optional[List["SubscriptionQueryFragmentAddons"]] = Field(default=None)
|
|
2942
|
+
trial_configuration: Optional[
|
|
2943
|
+
"SubscriptionQueryFragmentTrialConfiguration"
|
|
2944
|
+
] = Field(alias="trialConfiguration", default=None)
|
|
2945
|
+
trial_end_date: Optional[Any] = Field(alias="trialEndDate", default=None)
|
|
2946
|
+
|
|
2947
|
+
|
|
2948
|
+
class SubscriptionQueryFragmentCustomer(BaseModel):
|
|
2949
|
+
customer_id: str = Field(alias="customerId")
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
class SubscriptionQueryFragmentPayingCustomer(BaseModel):
|
|
2953
|
+
customer_id: str = Field(alias="customerId")
|
|
2954
|
+
|
|
2955
|
+
|
|
2956
|
+
class SubscriptionQueryFragmentResource(BaseModel):
|
|
2957
|
+
resource_id: str = Field(alias="resourceId")
|
|
2958
|
+
|
|
2959
|
+
|
|
2960
|
+
class SubscriptionQueryFragmentPlan(BaseModel):
|
|
2961
|
+
plan_id: str = Field(alias="planId")
|
|
2962
|
+
display_name: str = Field(alias="displayName")
|
|
2963
|
+
|
|
2964
|
+
|
|
2965
|
+
class SubscriptionQueryFragmentAddons(BaseModel):
|
|
2966
|
+
quantity: float
|
|
2967
|
+
addon: "SubscriptionQueryFragmentAddonsAddon"
|
|
2968
|
+
|
|
2969
|
+
|
|
2970
|
+
class SubscriptionQueryFragmentAddonsAddon(BaseModel):
|
|
2971
|
+
addon_id: str = Field(alias="addonId")
|
|
2972
|
+
|
|
2973
|
+
|
|
2974
|
+
class SubscriptionQueryFragmentTrialConfiguration(BaseModel):
|
|
2975
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
1706
2976
|
|
|
1707
2977
|
|
|
1708
2978
|
class UsageHistoryFragment(BaseModel):
|
|
1709
2979
|
start_date: Any = Field(alias="startDate")
|
|
1710
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
2980
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
2981
|
+
markers: List["UsageHistoryFragmentMarkers"]
|
|
1711
2982
|
usage_measurements: List["UsageHistoryFragmentUsageMeasurements"] = Field(
|
|
1712
2983
|
alias="usageMeasurements"
|
|
1713
2984
|
)
|
|
2985
|
+
groups: Optional[List["UsageHistoryFragmentGroups"]] = Field(default=None)
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
class UsageHistoryFragmentMarkers(BaseModel):
|
|
2989
|
+
type: UsageMarkerType
|
|
2990
|
+
timestamp: Any
|
|
1714
2991
|
|
|
1715
2992
|
|
|
1716
2993
|
class UsageHistoryFragmentUsageMeasurements(BaseModel):
|
|
1717
2994
|
date: Any
|
|
1718
2995
|
value: float
|
|
1719
|
-
is_reset_point:
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
CustomerStatisticsFragmentStatistics.update_forward_refs()
|
|
1844
|
-
CustomerStatisticsFragmentStatisticsActiveSubscriptionsByPricingType.update_forward_refs()
|
|
1845
|
-
CustomerWithSubscriptionsFragment.update_forward_refs()
|
|
1846
|
-
CustomerWithSubscriptionsFragmentSubscriptions.update_forward_refs()
|
|
1847
|
-
EntitlementFragment.update_forward_refs()
|
|
1848
|
-
EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig.update_forward_refs()
|
|
1849
|
-
EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig.update_forward_refs()
|
|
1850
|
-
EntitlementFragmentFeature.update_forward_refs()
|
|
1851
|
-
UsageUpdatedFragment.update_forward_refs()
|
|
1852
|
-
EntitlementUsageUpdated.update_forward_refs()
|
|
1853
|
-
EntitlementUsageUpdatedUsage.update_forward_refs()
|
|
1854
|
-
EntitlementUsageUpdatedEntitlement.update_forward_refs()
|
|
1855
|
-
EntitlementsUpdatedPayload.update_forward_refs()
|
|
1856
|
-
EntitlementsUpdatedPayloadEntitlements.update_forward_refs()
|
|
1857
|
-
ImmediateSubscriptionPreviewInvoiceFragment.update_forward_refs()
|
|
1858
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTotal.update_forward_refs()
|
|
1859
|
-
ImmediateSubscriptionPreviewInvoiceFragmentSubTotal.update_forward_refs()
|
|
1860
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTotalExcludingTax.update_forward_refs()
|
|
1861
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTax.update_forward_refs()
|
|
1862
|
-
ImmediateSubscriptionPreviewInvoiceFragmentDiscount.update_forward_refs()
|
|
1863
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTaxDetails.update_forward_refs()
|
|
1864
|
-
ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails.update_forward_refs()
|
|
1865
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCredits.update_forward_refs()
|
|
1866
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsInitial.update_forward_refs()
|
|
1867
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsUsed.update_forward_refs()
|
|
1868
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsRemaining.update_forward_refs()
|
|
1869
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProration.update_forward_refs()
|
|
1870
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationCredit.update_forward_refs()
|
|
1871
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationDebit.update_forward_refs()
|
|
1872
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount.update_forward_refs()
|
|
1873
|
-
LayoutConfigurationFragment.update_forward_refs()
|
|
1874
|
-
MockPaywallPriceFragment.update_forward_refs()
|
|
1875
|
-
MockPaywallPriceFragmentPrice.update_forward_refs()
|
|
1876
|
-
MockPaywallPriceFragmentTiers.update_forward_refs()
|
|
1877
|
-
MockPaywallPriceFragmentFeature.update_forward_refs()
|
|
1878
|
-
MockPaywallPackageEntitlementFragment.update_forward_refs()
|
|
1879
|
-
MockPaywallPackageEntitlementFragmentFeature.update_forward_refs()
|
|
1880
|
-
MockPaywallAddonFragment.update_forward_refs()
|
|
1881
|
-
MockPaywallAddonFragmentEntitlements.update_forward_refs()
|
|
1882
|
-
MockPaywallAddonFragmentPrices.update_forward_refs()
|
|
1883
|
-
MockPaywallPlanFragment.update_forward_refs()
|
|
1884
|
-
MockPaywallPlanFragmentProduct.update_forward_refs()
|
|
1885
|
-
MockPaywallPlanFragmentBasePlan.update_forward_refs()
|
|
1886
|
-
MockPaywallPlanFragmentEntitlements.update_forward_refs()
|
|
1887
|
-
MockPaywallPlanFragmentInheritedEntitlements.update_forward_refs()
|
|
1888
|
-
MockPaywallPlanFragmentPrices.update_forward_refs()
|
|
1889
|
-
MockPaywallPlanFragmentDefaultTrialConfig.update_forward_refs()
|
|
1890
|
-
MockPaywallPlanFragmentCompatibleAddons.update_forward_refs()
|
|
1891
|
-
PackagePublishedPayload.update_forward_refs()
|
|
1892
|
-
PaywallCalculatedPricePointsFragment.update_forward_refs()
|
|
1893
|
-
PaywallCalculatedPricePointsFragmentFeature.update_forward_refs()
|
|
1894
|
-
PaywallConfigurationFragment.update_forward_refs()
|
|
1895
|
-
PaywallConfigurationFragmentPalette.update_forward_refs()
|
|
1896
|
-
PaywallConfigurationFragmentTypography.update_forward_refs()
|
|
1897
|
-
PaywallConfigurationFragmentLayout.update_forward_refs()
|
|
1898
|
-
PaywallCurrencyFragment.update_forward_refs()
|
|
1899
|
-
PaywallFragment.update_forward_refs()
|
|
1900
|
-
PaywallFragmentPlans.update_forward_refs()
|
|
1901
|
-
PaywallFragmentCurrency.update_forward_refs()
|
|
1902
|
-
PaywallFragmentConfiguration.update_forward_refs()
|
|
1903
|
-
PaywallFragmentCustomer.update_forward_refs()
|
|
1904
|
-
PaywallFragmentActiveSubscriptions.update_forward_refs()
|
|
1905
|
-
PaywallFragmentResource.update_forward_refs()
|
|
1906
|
-
PaywallFragmentPaywallCalculatedPricePoints.update_forward_refs()
|
|
1907
|
-
SlimSubscriptionFragment.update_forward_refs()
|
|
1908
|
-
SlimSubscriptionFragmentLatestInvoice.update_forward_refs()
|
|
1909
|
-
SlimSubscriptionFragmentResource.update_forward_refs()
|
|
1910
|
-
SlimSubscriptionFragmentExperimentInfo.update_forward_refs()
|
|
1911
|
-
SlimSubscriptionFragmentPrices.update_forward_refs()
|
|
1912
|
-
SlimSubscriptionFragmentPricesPrice.update_forward_refs()
|
|
1913
|
-
SlimSubscriptionFragmentTotalPrice.update_forward_refs()
|
|
1914
|
-
SlimSubscriptionFragmentPlan.update_forward_refs()
|
|
1915
|
-
SlimSubscriptionFragmentAddons.update_forward_refs()
|
|
1916
|
-
SlimSubscriptionFragmentAddonsAddon.update_forward_refs()
|
|
1917
|
-
SlimSubscriptionFragmentCustomer.update_forward_refs()
|
|
1918
|
-
SubscriptionPreviewFragment.update_forward_refs()
|
|
1919
|
-
SubscriptionPreviewFragmentSubTotal.update_forward_refs()
|
|
1920
|
-
SubscriptionPreviewFragmentTotalExcludingTax.update_forward_refs()
|
|
1921
|
-
SubscriptionPreviewFragmentTotal.update_forward_refs()
|
|
1922
|
-
SubscriptionPreviewFragmentDiscountAmount.update_forward_refs()
|
|
1923
|
-
SubscriptionPreviewFragmentTaxDetails.update_forward_refs()
|
|
1924
|
-
SubscriptionPreviewFragmentTax.update_forward_refs()
|
|
1925
|
-
SubscriptionPreviewFragmentBillingPeriodRange.update_forward_refs()
|
|
1926
|
-
SubscriptionPreviewFragmentDiscount.update_forward_refs()
|
|
1927
|
-
SubscriptionPreviewFragmentSubscription.update_forward_refs()
|
|
1928
|
-
SubscriptionPreviewFragmentSubscriptionSubTotal.update_forward_refs()
|
|
1929
|
-
SubscriptionPreviewFragmentSubscriptionTotalExcludingTax.update_forward_refs()
|
|
1930
|
-
SubscriptionPreviewFragmentSubscriptionTotal.update_forward_refs()
|
|
1931
|
-
SubscriptionPreviewFragmentSubscriptionTax.update_forward_refs()
|
|
1932
|
-
SubscriptionPreviewFragmentSubscriptionDiscountAmount.update_forward_refs()
|
|
1933
|
-
SubscriptionPreviewFragmentSubscriptionTaxDetails.update_forward_refs()
|
|
1934
|
-
SubscriptionPreviewFragmentSubscriptionDiscount.update_forward_refs()
|
|
1935
|
-
SubscriptionPreviewFragmentProration.update_forward_refs()
|
|
1936
|
-
SubscriptionPreviewFragmentProrationCredit.update_forward_refs()
|
|
1937
|
-
SubscriptionPreviewFragmentProrationDebit.update_forward_refs()
|
|
1938
|
-
SubscriptionPreviewFragmentProrationNetAmount.update_forward_refs()
|
|
1939
|
-
SubscriptionPreviewFragmentCredits.update_forward_refs()
|
|
1940
|
-
SubscriptionPreviewFragmentCreditsInitial.update_forward_refs()
|
|
1941
|
-
SubscriptionPreviewFragmentCreditsUsed.update_forward_refs()
|
|
1942
|
-
SubscriptionPreviewFragmentCreditsRemaining.update_forward_refs()
|
|
1943
|
-
SubscriptionPreviewInvoiceFragment.update_forward_refs()
|
|
1944
|
-
SubscriptionPreviewInvoiceFragmentTotal.update_forward_refs()
|
|
1945
|
-
SubscriptionPreviewInvoiceFragmentSubTotal.update_forward_refs()
|
|
1946
|
-
SubscriptionPreviewInvoiceFragmentTotalExcludingTax.update_forward_refs()
|
|
1947
|
-
SubscriptionPreviewInvoiceFragmentTax.update_forward_refs()
|
|
1948
|
-
SubscriptionPreviewInvoiceFragmentDiscount.update_forward_refs()
|
|
1949
|
-
SubscriptionPreviewInvoiceFragmentTaxDetails.update_forward_refs()
|
|
1950
|
-
SubscriptionPreviewInvoiceFragmentDiscountDetails.update_forward_refs()
|
|
1951
|
-
SubscriptionPreviewV2Fragment.update_forward_refs()
|
|
1952
|
-
SubscriptionPreviewV2FragmentImmediateInvoice.update_forward_refs()
|
|
1953
|
-
SubscriptionPreviewV2FragmentRecurringInvoice.update_forward_refs()
|
|
1954
|
-
SubscriptionPreviewV2FragmentBillingPeriodRange.update_forward_refs()
|
|
1955
|
-
UsageHistoryFragment.update_forward_refs()
|
|
1956
|
-
UsageHistoryFragmentUsageMeasurements.update_forward_refs()
|
|
2996
|
+
is_reset_point: bool = Field(alias="isResetPoint")
|
|
2997
|
+
|
|
2998
|
+
|
|
2999
|
+
class UsageHistoryFragmentGroups(BaseModel):
|
|
3000
|
+
group_info: List["UsageHistoryFragmentGroupsGroupInfo"] = Field(alias="groupInfo")
|
|
3001
|
+
usage_measurements: List["UsageHistoryFragmentGroupsUsageMeasurements"] = Field(
|
|
3002
|
+
alias="usageMeasurements"
|
|
3003
|
+
)
|
|
3004
|
+
|
|
3005
|
+
|
|
3006
|
+
class UsageHistoryFragmentGroupsGroupInfo(BaseModel):
|
|
3007
|
+
key: str
|
|
3008
|
+
value: str
|
|
3009
|
+
|
|
3010
|
+
|
|
3011
|
+
class UsageHistoryFragmentGroupsUsageMeasurements(BaseModel):
|
|
3012
|
+
date: Any
|
|
3013
|
+
value: float
|
|
3014
|
+
is_reset_point: bool = Field(alias="isResetPoint")
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
class UsageHistoryV2Fragment(BaseModel):
|
|
3018
|
+
markers: List["UsageHistoryV2FragmentMarkers"]
|
|
3019
|
+
series: List["UsageHistoryV2FragmentSeries"]
|
|
3020
|
+
|
|
3021
|
+
|
|
3022
|
+
class UsageHistoryV2FragmentMarkers(BaseModel):
|
|
3023
|
+
type: UsageMarkerType
|
|
3024
|
+
timestamp: Any
|
|
3025
|
+
|
|
3026
|
+
|
|
3027
|
+
class UsageHistoryV2FragmentSeries(BaseModel):
|
|
3028
|
+
tags: List["UsageHistoryV2FragmentSeriesTags"]
|
|
3029
|
+
points: List["UsageHistoryV2FragmentSeriesPoints"]
|
|
3030
|
+
|
|
3031
|
+
|
|
3032
|
+
class UsageHistoryV2FragmentSeriesTags(BaseModel):
|
|
3033
|
+
key: str
|
|
3034
|
+
value: str
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
3038
|
+
timestamp: Any
|
|
3039
|
+
value: float
|
|
3040
|
+
is_reset_point: bool = Field(alias="isResetPoint")
|
|
3041
|
+
|
|
3042
|
+
|
|
3043
|
+
AddonDependencyFragment.model_rebuild()
|
|
3044
|
+
PackageEntitlementFragment.model_rebuild()
|
|
3045
|
+
PriceTierFragment.model_rebuild()
|
|
3046
|
+
PriceFragment.model_rebuild()
|
|
3047
|
+
OveragePriceFragment.model_rebuild()
|
|
3048
|
+
AddonFragment.model_rebuild()
|
|
3049
|
+
CustomerResourceFragment.model_rebuild()
|
|
3050
|
+
SubscriptionScheduledUpdateData.model_rebuild()
|
|
3051
|
+
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3052
|
+
ProductFragment.model_rebuild()
|
|
3053
|
+
PlanFragment.model_rebuild()
|
|
3054
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
3055
|
+
SlimCustomerFragment.model_rebuild()
|
|
3056
|
+
TotalPriceFragment.model_rebuild()
|
|
3057
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
3058
|
+
SubscriptionFutureUpdateData.model_rebuild()
|
|
3059
|
+
SubscriptionFragment.model_rebuild()
|
|
3060
|
+
FeatureFragment.model_rebuild()
|
|
3061
|
+
EntitlementFragment.model_rebuild()
|
|
3062
|
+
ApplySubscriptionFragment.model_rebuild()
|
|
3063
|
+
FontVariantFragment.model_rebuild()
|
|
3064
|
+
TypographyConfigurationFragment.model_rebuild()
|
|
3065
|
+
CheckoutConfigurationFragment.model_rebuild()
|
|
3066
|
+
PromotionalEntitlementFragment.model_rebuild()
|
|
3067
|
+
CouponFragment.model_rebuild()
|
|
3068
|
+
CustomerFragment.model_rebuild()
|
|
3069
|
+
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
3070
|
+
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
3071
|
+
CheckoutStateFragment.model_rebuild()
|
|
3072
|
+
CreditBalanceFragment.model_rebuild()
|
|
3073
|
+
CreditBalanceUpdatedPayload.model_rebuild()
|
|
3074
|
+
CreditGrantFragment.model_rebuild()
|
|
3075
|
+
CreditLedgerFragment.model_rebuild()
|
|
3076
|
+
SlimCustomCurrencyFragment.model_rebuild()
|
|
3077
|
+
CreditUsageFragment.model_rebuild()
|
|
3078
|
+
CreditsBalanceSummaryFragment.model_rebuild()
|
|
3079
|
+
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
3080
|
+
CustomerPortalConfigurationFragment.model_rebuild()
|
|
3081
|
+
CustomerPortalEntitlementFragment.model_rebuild()
|
|
3082
|
+
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
3083
|
+
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
3084
|
+
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
3085
|
+
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
3086
|
+
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
3087
|
+
CustomerPortalFragment.model_rebuild()
|
|
3088
|
+
CustomerStatisticsFragment.model_rebuild()
|
|
3089
|
+
CustomerWithSubscriptionsFragment.model_rebuild()
|
|
3090
|
+
UsageUpdatedFragment.model_rebuild()
|
|
3091
|
+
EntitlementUsageUpdated.model_rebuild()
|
|
3092
|
+
EntitlementsUpdatedPayload.model_rebuild()
|
|
3093
|
+
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
3094
|
+
LayoutConfigurationFragment.model_rebuild()
|
|
3095
|
+
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
3096
|
+
MockPaywallPriceFragment.model_rebuild()
|
|
3097
|
+
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
3098
|
+
MockPaywallAddonFragment.model_rebuild()
|
|
3099
|
+
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3100
|
+
MockPaywallPlanFragment.model_rebuild()
|
|
3101
|
+
PackagePublishedPayload.model_rebuild()
|
|
3102
|
+
PageInfoFragment.model_rebuild()
|
|
3103
|
+
PaymentSessionFragment.model_rebuild()
|
|
3104
|
+
PaywallCalculatedPricePointsFragment.model_rebuild()
|
|
3105
|
+
PaywallConfigurationFragment.model_rebuild()
|
|
3106
|
+
PaywallCurrencyFragment.model_rebuild()
|
|
3107
|
+
PaywallFragment.model_rebuild()
|
|
3108
|
+
SlimSubscriptionFragment.model_rebuild()
|
|
3109
|
+
ProvisionCustomerFragment.model_rebuild()
|
|
3110
|
+
ProvisionSubscriptionFragment.model_rebuild()
|
|
3111
|
+
ReportUsageFragment.model_rebuild()
|
|
3112
|
+
SlimSubscriptionFragmentV2.model_rebuild()
|
|
3113
|
+
SubscriptionInvoicePreviewFragment.model_rebuild()
|
|
3114
|
+
SubscriptionPreviewFragment.model_rebuild()
|
|
3115
|
+
SubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
3116
|
+
SubscriptionPreviewV2Fragment.model_rebuild()
|
|
3117
|
+
SubscriptionQueryFragment.model_rebuild()
|
|
3118
|
+
UsageHistoryFragment.model_rebuild()
|
|
3119
|
+
UsageHistoryV2Fragment.model_rebuild()
|