stigg-api-client-v2 0.579.8__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 +777 -44
- 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 +3701 -587
- 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 +3703 -585
- 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 +449 -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 +1983 -788
- 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 +22 -0
- 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 +3950 -1825
- 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 +20 -0
- 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-5.9.0.dist-info/LICENSE +14 -0
- {stigg_api_client_v2-0.579.8.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +5 -2
- 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.579.8.dist-info/RECORD +0 -51
- {stigg_api_client_v2-0.579.8.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,62 +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,
|
|
37
|
+
PublishMigrationType,
|
|
38
|
+
SubscriptionDecisionStrategy,
|
|
39
|
+
SubscriptionInvoiceBillingReason,
|
|
29
40
|
SubscriptionInvoiceStatus,
|
|
30
41
|
SubscriptionScheduleStatus,
|
|
31
42
|
SubscriptionScheduleType,
|
|
32
43
|
SubscriptionStatus,
|
|
33
44
|
SyncStatus,
|
|
34
45
|
TiersMode,
|
|
46
|
+
TrialEndBehavior,
|
|
35
47
|
TrialPeriodUnits,
|
|
48
|
+
UnitTransformationRound,
|
|
49
|
+
UsageMarkerType,
|
|
36
50
|
VendorIdentifier,
|
|
37
51
|
WeeklyAccordingTo,
|
|
38
52
|
WidgetType,
|
|
53
|
+
YearlyAccordingTo,
|
|
39
54
|
experimentGroupType,
|
|
40
55
|
)
|
|
41
56
|
|
|
42
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
|
+
|
|
43
65
|
class PackageEntitlementFragment(BaseModel):
|
|
44
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
45
|
-
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)
|
|
46
69
|
feature_id: str = Field(alias="featureId")
|
|
47
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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")
|
|
51
82
|
feature: "PackageEntitlementFragmentFeature"
|
|
52
83
|
|
|
53
84
|
|
|
54
85
|
class PackageEntitlementFragmentFeature(BaseModel):
|
|
55
86
|
feature_type: FeatureType = Field(alias="featureType")
|
|
56
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
57
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
58
|
-
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
|
+
)
|
|
59
92
|
display_name: str = Field(alias="displayName")
|
|
60
|
-
description: Optional[str]
|
|
93
|
+
description: Optional[str] = Field(default=None)
|
|
61
94
|
ref_id: str = Field(alias="refId")
|
|
62
|
-
additional_meta_data: Optional[Any] = Field(
|
|
95
|
+
additional_meta_data: Optional[Any] = Field(
|
|
96
|
+
alias="additionalMetaData", default=None
|
|
97
|
+
)
|
|
63
98
|
|
|
64
99
|
|
|
65
100
|
class PriceTierFragment(BaseModel):
|
|
66
|
-
up_to: float = Field(alias="upTo")
|
|
67
|
-
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
|
+
)
|
|
68
108
|
|
|
69
109
|
|
|
70
110
|
class PriceTierFragmentUnitPrice(BaseModel):
|
|
@@ -72,17 +112,29 @@ class PriceTierFragmentUnitPrice(BaseModel):
|
|
|
72
112
|
currency: Currency
|
|
73
113
|
|
|
74
114
|
|
|
115
|
+
class PriceTierFragmentFlatPrice(BaseModel):
|
|
116
|
+
amount: float
|
|
117
|
+
currency: Currency
|
|
118
|
+
|
|
119
|
+
|
|
75
120
|
class PriceFragment(BaseModel):
|
|
76
121
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
77
122
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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)
|
|
86
138
|
|
|
87
139
|
|
|
88
140
|
class PriceFragmentPrice(BaseModel):
|
|
@@ -90,340 +142,293 @@ class PriceFragmentPrice(BaseModel):
|
|
|
90
142
|
currency: Currency
|
|
91
143
|
|
|
92
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
|
+
|
|
93
151
|
class PriceFragmentTiers(PriceTierFragment):
|
|
94
152
|
pass
|
|
95
153
|
|
|
96
154
|
|
|
97
155
|
class PriceFragmentFeature(BaseModel):
|
|
98
156
|
ref_id: str = Field(alias="refId")
|
|
99
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
100
|
-
feature_units_plural: Optional[str] = Field(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
class AddonFragment(BaseModel):
|
|
106
|
-
id: str
|
|
107
|
-
ref_id: str = Field(alias="refId")
|
|
108
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
157
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
158
|
+
feature_units_plural: Optional[str] = Field(
|
|
159
|
+
alias="featureUnitsPlural", default=None
|
|
160
|
+
)
|
|
109
161
|
display_name: str = Field(alias="displayName")
|
|
110
|
-
description: Optional[str]
|
|
111
|
-
additional_meta_data: Optional[Any] = Field(alias="additionalMetaData")
|
|
112
|
-
entitlements: Optional[List["AddonFragmentEntitlements"]]
|
|
113
|
-
prices: Optional[List["AddonFragmentPrices"]]
|
|
114
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
class AddonFragmentEntitlements(PackageEntitlementFragment):
|
|
118
|
-
pass
|
|
162
|
+
description: Optional[str] = Field(default=None)
|
|
119
163
|
|
|
120
164
|
|
|
121
|
-
class
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
h1: Optional["TypographyConfigurationFragmentH1"]
|
|
133
|
-
h2: Optional["TypographyConfigurationFragmentH2"]
|
|
134
|
-
h3: Optional["TypographyConfigurationFragmentH3"]
|
|
135
|
-
body: Optional["TypographyConfigurationFragmentBody"]
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
class TypographyConfigurationFragmentH1(FontVariantFragment):
|
|
139
|
-
pass
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
class TypographyConfigurationFragmentH2(FontVariantFragment):
|
|
143
|
-
pass
|
|
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)
|
|
144
176
|
|
|
145
177
|
|
|
146
|
-
class
|
|
147
|
-
|
|
178
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
179
|
+
amount: float
|
|
180
|
+
currency: Currency
|
|
148
181
|
|
|
149
182
|
|
|
150
|
-
class
|
|
183
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
151
184
|
pass
|
|
152
185
|
|
|
153
186
|
|
|
154
|
-
class
|
|
155
|
-
palette: Optional["CheckoutConfigurationFragmentPalette"]
|
|
156
|
-
typography: Optional["CheckoutConfigurationFragmentTypography"]
|
|
157
|
-
custom_css: Optional[str] = Field(alias="customCss")
|
|
158
|
-
content: Optional["CheckoutConfigurationFragmentContent"]
|
|
159
|
-
typename__: str = Field(alias="__typename")
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
class CheckoutConfigurationFragmentPalette(BaseModel):
|
|
163
|
-
primary: Optional[str]
|
|
164
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
165
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
166
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
167
|
-
summary_background_color: Optional[str] = Field(alias="summaryBackgroundColor")
|
|
168
|
-
typename__: Literal["CheckoutColorPalette"] = Field(alias="__typename")
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
class CheckoutConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
172
|
-
typename__: Literal["TypographyConfiguration"] = Field(alias="__typename")
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
class CheckoutConfigurationFragmentContent(BaseModel):
|
|
176
|
-
collect_phone_number: Optional[bool] = Field(alias="collectPhoneNumber")
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
class CouponFragment(BaseModel):
|
|
180
|
-
id: str
|
|
181
|
-
discount_value: float = Field(alias="discountValue")
|
|
182
|
-
type: CouponType
|
|
183
|
-
additional_meta_data: Optional[Any] = Field(alias="additionalMetaData")
|
|
187
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
184
188
|
ref_id: str = Field(alias="refId")
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
190
|
-
billing_link_url: Optional[str] = Field(alias="billingLinkUrl")
|
|
191
|
-
status: CouponStatus
|
|
192
|
-
sync_states: Optional[List["CouponFragmentSyncStates"]] = Field(alias="syncStates")
|
|
193
|
-
customers: Optional[List["CouponFragmentCustomers"]]
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
class CouponFragmentSyncStates(BaseModel):
|
|
197
|
-
vendor_identifier: VendorIdentifier = Field(alias="vendorIdentifier")
|
|
198
|
-
status: SyncStatus
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
class CouponFragmentCustomers(BaseModel):
|
|
202
|
-
id: str
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
class PromotionalEntitlementFragment(BaseModel):
|
|
206
|
-
status: PromotionalEntitlementStatus
|
|
207
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
208
|
-
feature_id: str = Field(alias="featureId")
|
|
209
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage")
|
|
210
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(alias="resetPeriod")
|
|
211
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
212
|
-
is_visible: bool = Field(alias="isVisible")
|
|
213
|
-
feature: "PromotionalEntitlementFragmentFeature"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
217
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
218
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
219
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
220
|
-
feature_units_plural: Optional[str] = Field(alias="featureUnitsPlural")
|
|
189
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
190
|
+
feature_units_plural: Optional[str] = Field(
|
|
191
|
+
alias="featureUnitsPlural", default=None
|
|
192
|
+
)
|
|
221
193
|
display_name: str = Field(alias="displayName")
|
|
222
|
-
description: Optional[str]
|
|
223
|
-
ref_id: str = Field(alias="refId")
|
|
224
|
-
additional_meta_data: Optional[Any] = Field(alias="additionalMetaData")
|
|
194
|
+
description: Optional[str] = Field(default=None)
|
|
225
195
|
|
|
226
196
|
|
|
227
|
-
class
|
|
228
|
-
id:
|
|
229
|
-
name: Optional[str]
|
|
230
|
-
email: Optional[str]
|
|
231
|
-
created_at: Optional[Any] = Field(alias="createdAt")
|
|
232
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
197
|
+
class AddonFragment(BaseModel):
|
|
198
|
+
id: Any
|
|
233
199
|
ref_id: str = Field(alias="refId")
|
|
234
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
240
|
-
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
241
|
-
default_payment_expiration_month: Optional[int] = Field(
|
|
242
|
-
alias="defaultPaymentExpirationMonth"
|
|
243
|
-
)
|
|
244
|
-
default_payment_expiration_year: Optional[int] = Field(
|
|
245
|
-
alias="defaultPaymentExpirationYear"
|
|
246
|
-
)
|
|
247
|
-
default_payment_method_last4_digits: Optional[str] = Field(
|
|
248
|
-
alias="defaultPaymentMethodLast4Digits"
|
|
249
|
-
)
|
|
250
|
-
trialed_plans: Optional[List["CustomerFragmentTrialedPlans"]] = Field(
|
|
251
|
-
alias="trialedPlans"
|
|
252
|
-
)
|
|
253
|
-
experiment_info: Optional["CustomerFragmentExperimentInfo"] = Field(
|
|
254
|
-
alias="experimentInfo"
|
|
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
|
|
255
205
|
)
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
alias="eligibleForTrial"
|
|
206
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
207
|
+
alias="hiddenFromWidgets", default=None
|
|
259
208
|
)
|
|
260
|
-
|
|
261
|
-
|
|
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
|
|
262
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)
|
|
263
217
|
|
|
264
218
|
|
|
265
|
-
class
|
|
266
|
-
|
|
267
|
-
product_ref_id: Optional[str] = Field(alias="productRefId")
|
|
268
|
-
plan_ref_id: Optional[str] = Field(alias="planRefId")
|
|
269
|
-
plan_id: Optional[str] = Field(alias="planId")
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
class CustomerFragmentExperimentInfo(BaseModel):
|
|
273
|
-
group_type: experimentGroupType = Field(alias="groupType")
|
|
274
|
-
group_name: str = Field(alias="groupName")
|
|
275
|
-
id: str
|
|
276
|
-
name: str
|
|
219
|
+
class AddonFragmentEntitlements(PackageEntitlementFragment):
|
|
220
|
+
pass
|
|
277
221
|
|
|
278
222
|
|
|
279
|
-
class
|
|
223
|
+
class AddonFragmentPrices(PriceFragment):
|
|
280
224
|
pass
|
|
281
225
|
|
|
282
226
|
|
|
283
|
-
class
|
|
284
|
-
|
|
285
|
-
product_ref_id: Optional[str] = Field(alias="productRefId")
|
|
286
|
-
eligible: bool
|
|
227
|
+
class AddonFragmentOveragePrices(OveragePriceFragment):
|
|
228
|
+
pass
|
|
287
229
|
|
|
288
230
|
|
|
289
|
-
class
|
|
231
|
+
class AddonFragmentDependencies(AddonDependencyFragment):
|
|
290
232
|
pass
|
|
291
233
|
|
|
292
234
|
|
|
293
|
-
class
|
|
294
|
-
|
|
295
|
-
status: SubscriptionInvoiceStatus
|
|
296
|
-
created_at: Any = Field(alias="createdAt")
|
|
297
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
298
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
299
|
-
payment_url: Optional[str] = Field(alias="paymentUrl")
|
|
300
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret")
|
|
301
|
-
error_message: Optional[str] = Field(alias="errorMessage")
|
|
235
|
+
class CustomerResourceFragment(BaseModel):
|
|
236
|
+
resource_id: str = Field(alias="resourceId")
|
|
302
237
|
|
|
303
238
|
|
|
304
|
-
class
|
|
239
|
+
class SubscriptionScheduledUpdateData(BaseModel):
|
|
305
240
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
306
241
|
alias="subscriptionScheduleType"
|
|
307
242
|
)
|
|
308
243
|
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
309
244
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
310
|
-
target_package: Optional["
|
|
311
|
-
alias="targetPackage"
|
|
245
|
+
target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
|
|
246
|
+
alias="targetPackage", default=None
|
|
312
247
|
)
|
|
313
248
|
schedule_variables: Optional[
|
|
314
249
|
Annotated[
|
|
315
250
|
Union[
|
|
316
|
-
"
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
"
|
|
251
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
|
|
252
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
253
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
254
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
|
|
255
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
256
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
|
|
257
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
258
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
320
259
|
],
|
|
321
260
|
Field(discriminator="typename__"),
|
|
322
261
|
]
|
|
323
|
-
] = Field(alias="scheduleVariables")
|
|
262
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
324
263
|
|
|
325
264
|
|
|
326
|
-
class
|
|
327
|
-
id:
|
|
265
|
+
class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
|
|
266
|
+
id: Any
|
|
328
267
|
ref_id: str = Field(alias="refId")
|
|
329
268
|
display_name: str = Field(alias="displayName")
|
|
330
269
|
|
|
331
270
|
|
|
332
|
-
class
|
|
271
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
333
272
|
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
334
273
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
335
274
|
new_quantity: float = Field(alias="newQuantity")
|
|
336
275
|
|
|
337
276
|
|
|
338
|
-
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(
|
|
339
286
|
BaseModel
|
|
340
287
|
):
|
|
341
288
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
342
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
289
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
343
290
|
|
|
344
291
|
|
|
345
|
-
class
|
|
292
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
|
|
293
|
+
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
|
|
297
|
+
BaseModel
|
|
298
|
+
):
|
|
346
299
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
347
|
-
addon_ref_ids: Optional[str] = Field(alias="addonRefIds")
|
|
348
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
349
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)
|
|
350
317
|
|
|
351
318
|
|
|
352
|
-
class
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
feature_id:
|
|
319
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
320
|
+
BaseModel
|
|
321
|
+
):
|
|
322
|
+
feature_id: str = Field(alias="featureId")
|
|
323
|
+
quantity: float
|
|
356
324
|
|
|
357
325
|
|
|
358
|
-
class
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
)
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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"
|
|
376
354
|
]
|
|
377
|
-
] = Field(
|
|
355
|
+
] = Field(default=None)
|
|
356
|
+
price_overrides: Optional[
|
|
357
|
+
List[
|
|
358
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
359
|
+
]
|
|
360
|
+
] = Field(alias="priceOverrides", default=None)
|
|
378
361
|
|
|
379
362
|
|
|
380
|
-
class
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
363
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
364
|
+
BaseModel
|
|
365
|
+
):
|
|
366
|
+
feature_id: str = Field(alias="featureId")
|
|
367
|
+
quantity: float
|
|
384
368
|
|
|
385
369
|
|
|
386
|
-
class
|
|
387
|
-
|
|
370
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
|
|
371
|
+
BaseModel
|
|
372
|
+
):
|
|
388
373
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
389
|
-
|
|
374
|
+
quantity: float
|
|
390
375
|
|
|
391
376
|
|
|
392
|
-
class
|
|
377
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
393
378
|
BaseModel
|
|
394
379
|
):
|
|
395
|
-
|
|
396
|
-
|
|
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)
|
|
397
383
|
|
|
398
384
|
|
|
399
|
-
class
|
|
385
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
400
386
|
BaseModel
|
|
401
387
|
):
|
|
402
|
-
typename__: Literal["
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
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)
|
|
406
391
|
|
|
407
392
|
|
|
408
393
|
class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
409
394
|
BaseModel
|
|
410
395
|
):
|
|
411
396
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
412
|
-
new_unit_amount: Optional[float] = Field(alias="newUnitAmount")
|
|
413
|
-
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)
|
|
399
|
+
|
|
400
|
+
|
|
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"
|
|
408
|
+
|
|
409
|
+
|
|
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)
|
|
414
417
|
|
|
415
418
|
|
|
416
419
|
class ProductFragment(BaseModel):
|
|
417
420
|
ref_id: str = Field(alias="refId")
|
|
418
|
-
display_name: Optional[str] = Field(alias="displayName")
|
|
419
|
-
description: Optional[str]
|
|
420
|
-
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
|
+
)
|
|
421
426
|
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
422
427
|
|
|
423
428
|
|
|
424
429
|
class ProductFragmentProductSettings(BaseModel):
|
|
425
430
|
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
426
|
-
alias="downgradePlan"
|
|
431
|
+
alias="downgradePlan", default=None
|
|
427
432
|
)
|
|
428
433
|
|
|
429
434
|
|
|
@@ -433,26 +438,37 @@ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
|
433
438
|
|
|
434
439
|
|
|
435
440
|
class PlanFragment(BaseModel):
|
|
436
|
-
id:
|
|
441
|
+
id: Any
|
|
437
442
|
ref_id: str = Field(alias="refId")
|
|
438
443
|
display_name: str = Field(alias="displayName")
|
|
439
|
-
description: Optional[str]
|
|
440
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
444
|
+
description: Optional[str] = Field(default=None)
|
|
445
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
441
446
|
version_number: int = Field(alias="versionNumber")
|
|
442
|
-
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
|
+
)
|
|
443
453
|
product: "PlanFragmentProduct"
|
|
444
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan")
|
|
445
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]]
|
|
454
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
455
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
446
456
|
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
447
|
-
alias="inheritedEntitlements"
|
|
457
|
+
alias="inheritedEntitlements", default=None
|
|
448
458
|
)
|
|
449
459
|
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
450
|
-
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
|
|
451
468
|
)
|
|
452
|
-
|
|
453
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
469
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
454
470
|
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
455
|
-
alias="defaultTrialConfig"
|
|
471
|
+
alias="defaultTrialConfig", default=None
|
|
456
472
|
)
|
|
457
473
|
|
|
458
474
|
|
|
@@ -477,22 +493,55 @@ class PlanFragmentCompatibleAddons(AddonFragment):
|
|
|
477
493
|
pass
|
|
478
494
|
|
|
479
495
|
|
|
496
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
497
|
+
pass
|
|
498
|
+
|
|
499
|
+
|
|
480
500
|
class PlanFragmentPrices(PriceFragment):
|
|
481
501
|
pass
|
|
482
502
|
|
|
483
503
|
|
|
504
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
505
|
+
pass
|
|
506
|
+
|
|
507
|
+
|
|
484
508
|
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
485
509
|
duration: float
|
|
486
510
|
units: TrialPeriodUnits
|
|
511
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
512
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
513
|
+
alias="trialEndBehavior", default=None
|
|
514
|
+
)
|
|
487
515
|
|
|
488
516
|
|
|
489
|
-
class
|
|
490
|
-
|
|
517
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
518
|
+
limit: float
|
|
491
519
|
|
|
492
520
|
|
|
493
|
-
class
|
|
494
|
-
|
|
495
|
-
|
|
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
|
+
)
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
class TotalPriceFragment(BaseModel):
|
|
543
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
544
|
+
total: "TotalPriceFragmentTotal"
|
|
496
545
|
|
|
497
546
|
|
|
498
547
|
class TotalPriceFragmentSubTotal(BaseModel):
|
|
@@ -505,38 +554,241 @@ class TotalPriceFragmentTotal(BaseModel):
|
|
|
505
554
|
currency: Currency
|
|
506
555
|
|
|
507
556
|
|
|
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):
|
|
586
|
+
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
587
|
+
alias="subscriptionScheduleType"
|
|
588
|
+
)
|
|
589
|
+
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
590
|
+
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
591
|
+
target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
|
|
592
|
+
alias="targetPackage", default=None
|
|
593
|
+
)
|
|
594
|
+
schedule_variables: Optional[
|
|
595
|
+
Annotated[
|
|
596
|
+
Union[
|
|
597
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
|
|
598
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
599
|
+
"SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
600
|
+
"SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
|
|
601
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
602
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
|
|
603
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
604
|
+
"SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
605
|
+
],
|
|
606
|
+
Field(discriminator="typename__"),
|
|
607
|
+
]
|
|
608
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
|
|
612
|
+
id: Any
|
|
613
|
+
ref_id: str = Field(alias="refId")
|
|
614
|
+
display_name: str = Field(alias="displayName")
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
618
|
+
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
619
|
+
addon_ref_id: str = Field(alias="addonRefId")
|
|
620
|
+
new_quantity: float = Field(alias="newQuantity")
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
624
|
+
BaseModel
|
|
625
|
+
):
|
|
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)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
|
|
632
|
+
BaseModel
|
|
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):
|
|
643
|
+
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
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)
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
664
|
+
BaseModel
|
|
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):
|
|
734
|
+
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
735
|
+
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
736
|
+
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
737
|
+
|
|
738
|
+
|
|
508
739
|
class SubscriptionFragment(BaseModel):
|
|
509
|
-
id:
|
|
740
|
+
id: Any
|
|
741
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
742
|
+
paying_customer: Optional["SubscriptionFragmentPayingCustomer"] = Field(
|
|
743
|
+
alias="payingCustomer", default=None
|
|
744
|
+
)
|
|
510
745
|
start_date: Any = Field(alias="startDate")
|
|
511
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
512
|
-
trial_end_date: Optional[Any] = Field(alias="trialEndDate")
|
|
513
|
-
cancellation_date: Optional[Any] = Field(alias="cancellationDate")
|
|
514
|
-
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)
|
|
515
750
|
status: SubscriptionStatus
|
|
516
751
|
ref_id: str = Field(alias="refId")
|
|
517
|
-
current_billing_period_end: Optional[Any] = Field(
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
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)
|
|
521
760
|
latest_invoice: Optional["SubscriptionFragmentLatestInvoice"] = Field(
|
|
522
|
-
alias="latestInvoice"
|
|
761
|
+
alias="latestInvoice", default=None
|
|
523
762
|
)
|
|
524
763
|
payment_collection: PaymentCollection = Field(alias="paymentCollection")
|
|
525
|
-
|
|
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)
|
|
526
769
|
experiment_info: Optional["SubscriptionFragmentExperimentInfo"] = Field(
|
|
527
|
-
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
|
|
528
775
|
)
|
|
529
|
-
prices: Optional[List["SubscriptionFragmentPrices"]]
|
|
530
|
-
total_price: Optional["SubscriptionFragmentTotalPrice"] = Field(alias="totalPrice")
|
|
531
776
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
532
777
|
plan: "SubscriptionFragmentPlan"
|
|
533
|
-
addons: Optional[List["SubscriptionFragmentAddons"]]
|
|
778
|
+
addons: Optional[List["SubscriptionFragmentAddons"]] = Field(default=None)
|
|
534
779
|
scheduled_updates: Optional[List["SubscriptionFragmentScheduledUpdates"]] = Field(
|
|
535
|
-
alias="scheduledUpdates"
|
|
780
|
+
alias="scheduledUpdates", default=None
|
|
536
781
|
)
|
|
537
782
|
future_updates: List["SubscriptionFragmentFutureUpdates"] = Field(
|
|
538
783
|
alias="futureUpdates"
|
|
539
784
|
)
|
|
785
|
+
trial_configuration: Optional["SubscriptionFragmentTrialConfiguration"] = Field(
|
|
786
|
+
alias="trialConfiguration", default=None
|
|
787
|
+
)
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
class SubscriptionFragmentPayingCustomer(SlimCustomerFragment):
|
|
791
|
+
pass
|
|
540
792
|
|
|
541
793
|
|
|
542
794
|
class SubscriptionFragmentLatestInvoice(SubscriptionInvoiceFragment):
|
|
@@ -555,8 +807,8 @@ class SubscriptionFragmentExperimentInfo(BaseModel):
|
|
|
555
807
|
|
|
556
808
|
|
|
557
809
|
class SubscriptionFragmentPrices(BaseModel):
|
|
558
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
559
|
-
price: Optional["SubscriptionFragmentPricesPrice"]
|
|
810
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
811
|
+
price: Optional["SubscriptionFragmentPricesPrice"] = Field(default=None)
|
|
560
812
|
|
|
561
813
|
|
|
562
814
|
class SubscriptionFragmentPricesPrice(PriceFragment):
|
|
@@ -567,36 +819,342 @@ class SubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
|
567
819
|
pass
|
|
568
820
|
|
|
569
821
|
|
|
570
|
-
class SubscriptionFragmentPlan(PlanFragment):
|
|
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
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
class TypographyConfigurationFragmentH2(FontVariantFragment):
|
|
977
|
+
pass
|
|
978
|
+
|
|
979
|
+
|
|
980
|
+
class TypographyConfigurationFragmentH3(FontVariantFragment):
|
|
981
|
+
pass
|
|
982
|
+
|
|
983
|
+
|
|
984
|
+
class TypographyConfigurationFragmentBody(FontVariantFragment):
|
|
985
|
+
pass
|
|
986
|
+
|
|
987
|
+
|
|
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")
|
|
996
|
+
|
|
997
|
+
|
|
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")
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
class CheckoutConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
1010
|
+
typename__: Literal["TypographyConfiguration"] = Field(alias="__typename")
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
class CheckoutConfigurationFragmentContent(BaseModel):
|
|
1014
|
+
collect_phone_number: Optional[bool] = Field(
|
|
1015
|
+
alias="collectPhoneNumber", default=None
|
|
1016
|
+
)
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
class PromotionalEntitlementFragment(BaseModel):
|
|
1020
|
+
status: PromotionalEntitlementStatus
|
|
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)
|
|
1029
|
+
is_visible: bool = Field(alias="isVisible")
|
|
1030
|
+
feature: "PromotionalEntitlementFragmentFeature"
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1034
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
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
|
+
)
|
|
1040
|
+
display_name: str = Field(alias="displayName")
|
|
1041
|
+
description: Optional[str] = Field(default=None)
|
|
1042
|
+
ref_id: str = Field(alias="refId")
|
|
1043
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1044
|
+
alias="additionalMetaData", default=None
|
|
1045
|
+
)
|
|
1046
|
+
|
|
1047
|
+
|
|
1048
|
+
class CouponFragment(BaseModel):
|
|
1049
|
+
id: Any
|
|
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
|
+
)
|
|
1055
|
+
type: CouponType
|
|
1056
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1057
|
+
alias="additionalMetaData", default=None
|
|
1058
|
+
)
|
|
1059
|
+
ref_id: str = Field(alias="refId")
|
|
1060
|
+
name: str
|
|
1061
|
+
description: Optional[str] = Field(default=None)
|
|
1062
|
+
created_at: Any = Field(alias="createdAt")
|
|
1063
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
1064
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
1065
|
+
billing_link_url: Optional[str] = Field(alias="billingLinkUrl", default=None)
|
|
1066
|
+
status: CouponStatus
|
|
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
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
class CouponFragmentSyncStates(BaseModel):
|
|
1078
|
+
vendor_identifier: VendorIdentifier = Field(alias="vendorIdentifier")
|
|
1079
|
+
status: SyncStatus
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
class CustomerFragment(SlimCustomerFragment):
|
|
1083
|
+
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
1084
|
+
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
1085
|
+
default_payment_expiration_month: Optional[int] = Field(
|
|
1086
|
+
alias="defaultPaymentExpirationMonth", default=None
|
|
1087
|
+
)
|
|
1088
|
+
default_payment_expiration_year: Optional[int] = Field(
|
|
1089
|
+
alias="defaultPaymentExpirationYear", default=None
|
|
1090
|
+
)
|
|
1091
|
+
default_payment_method_last_4_digits: Optional[str] = Field(
|
|
1092
|
+
alias="defaultPaymentMethodLast4Digits", default=None
|
|
1093
|
+
)
|
|
1094
|
+
default_payment_method_type: Optional[PaymentMethodType] = Field(
|
|
1095
|
+
alias="defaultPaymentMethodType", default=None
|
|
1096
|
+
)
|
|
1097
|
+
trialed_plans: Optional[List["CustomerFragmentTrialedPlans"]] = Field(
|
|
1098
|
+
alias="trialedPlans", default=None
|
|
1099
|
+
)
|
|
1100
|
+
experiment_info: Optional["CustomerFragmentExperimentInfo"] = Field(
|
|
1101
|
+
alias="experimentInfo", default=None
|
|
1102
|
+
)
|
|
1103
|
+
coupon: Optional["CustomerFragmentCoupon"] = Field(default=None)
|
|
1104
|
+
eligible_for_trial: Optional[List["CustomerFragmentEligibleForTrial"]] = Field(
|
|
1105
|
+
alias="eligibleForTrial", default=None
|
|
1106
|
+
)
|
|
1107
|
+
promotional_entitlements: List["CustomerFragmentPromotionalEntitlements"] = Field(
|
|
1108
|
+
alias="promotionalEntitlements"
|
|
1109
|
+
)
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
class CustomerFragmentTrialedPlans(BaseModel):
|
|
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)
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
class CustomerFragmentExperimentInfo(BaseModel):
|
|
1120
|
+
group_type: experimentGroupType = Field(alias="groupType")
|
|
1121
|
+
group_name: str = Field(alias="groupName")
|
|
1122
|
+
id: str
|
|
1123
|
+
name: str
|
|
1124
|
+
|
|
1125
|
+
|
|
1126
|
+
class CustomerFragmentCoupon(CouponFragment):
|
|
571
1127
|
pass
|
|
572
1128
|
|
|
573
1129
|
|
|
574
|
-
class
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
1130
|
+
class CustomerFragmentEligibleForTrial(BaseModel):
|
|
1131
|
+
product_id: Optional[str] = Field(alias="productId", default=None)
|
|
1132
|
+
product_ref_id: Optional[str] = Field(alias="productRefId", default=None)
|
|
1133
|
+
eligible: bool
|
|
578
1134
|
|
|
579
1135
|
|
|
580
|
-
class
|
|
1136
|
+
class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
|
|
581
1137
|
pass
|
|
582
1138
|
|
|
583
1139
|
|
|
584
|
-
class
|
|
585
|
-
|
|
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)
|
|
586
1144
|
|
|
587
1145
|
|
|
588
|
-
class
|
|
589
|
-
|
|
1146
|
+
class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
1147
|
+
publishable_key: str = Field(alias="publishableKey")
|
|
590
1148
|
|
|
591
1149
|
|
|
592
1150
|
class CheckoutStateFragment(BaseModel):
|
|
593
|
-
configuration: Optional["CheckoutStateFragmentConfiguration"]
|
|
1151
|
+
configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
|
|
594
1152
|
setup_secret: str = Field(alias="setupSecret")
|
|
595
1153
|
customer: "CheckoutStateFragmentCustomer"
|
|
596
1154
|
active_subscription: Optional["CheckoutStateFragmentActiveSubscription"] = Field(
|
|
597
|
-
alias="activeSubscription"
|
|
1155
|
+
alias="activeSubscription", default=None
|
|
598
1156
|
)
|
|
599
|
-
resource: Optional["CheckoutStateFragmentResource"]
|
|
1157
|
+
resource: Optional["CheckoutStateFragmentResource"] = Field(default=None)
|
|
600
1158
|
plan: "CheckoutStateFragmentPlan"
|
|
601
1159
|
billing_integration: "CheckoutStateFragmentBillingIntegration" = Field(
|
|
602
1160
|
alias="billingIntegration"
|
|
@@ -625,76 +1183,225 @@ class CheckoutStateFragmentPlan(PlanFragment):
|
|
|
625
1183
|
|
|
626
1184
|
class CheckoutStateFragmentBillingIntegration(BaseModel):
|
|
627
1185
|
billing_identifier: BillingVendorIdentifier = Field(alias="billingIdentifier")
|
|
1186
|
+
billing_credentials: Union[
|
|
1187
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
|
|
1188
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
|
|
1189
|
+
] = Field(alias="billingCredentials", discriminator="typename__")
|
|
628
1190
|
credentials: "CheckoutStateFragmentBillingIntegrationCredentials"
|
|
629
1191
|
|
|
630
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
|
+
|
|
631
1205
|
class CheckoutStateFragmentBillingIntegrationCredentials(BaseModel):
|
|
632
|
-
account_id: str = Field(alias="accountId")
|
|
633
|
-
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
|
|
634
1332
|
|
|
635
1333
|
|
|
636
1334
|
class CustomerPortalBillingInformationFragment(BaseModel):
|
|
637
|
-
email: Optional[str]
|
|
638
|
-
name: Optional[str]
|
|
639
|
-
|
|
640
|
-
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
|
|
641
1342
|
)
|
|
642
|
-
default_payment_method_id: Optional[str] = Field(alias="defaultPaymentMethodId")
|
|
643
1343
|
default_payment_expiration_month: Optional[int] = Field(
|
|
644
|
-
alias="defaultPaymentExpirationMonth"
|
|
1344
|
+
alias="defaultPaymentExpirationMonth", default=None
|
|
645
1345
|
)
|
|
646
1346
|
default_payment_expiration_year: Optional[int] = Field(
|
|
647
|
-
alias="defaultPaymentExpirationYear"
|
|
1347
|
+
alias="defaultPaymentExpirationYear", default=None
|
|
1348
|
+
)
|
|
1349
|
+
default_payment_method_type: Optional[PaymentMethodType] = Field(
|
|
1350
|
+
alias="defaultPaymentMethodType", default=None
|
|
648
1351
|
)
|
|
649
1352
|
|
|
650
1353
|
|
|
651
1354
|
class CustomerPortalConfigurationFragment(BaseModel):
|
|
652
|
-
palette: Optional["CustomerPortalConfigurationFragmentPalette"]
|
|
653
|
-
|
|
654
|
-
|
|
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)
|
|
655
1362
|
|
|
656
1363
|
|
|
657
1364
|
class CustomerPortalConfigurationFragmentPalette(BaseModel):
|
|
658
|
-
primary: Optional[str]
|
|
659
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
660
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
661
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
662
|
-
current_plan_background: Optional[str] = Field(
|
|
663
|
-
|
|
664
|
-
|
|
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
|
+
)
|
|
665
1376
|
|
|
666
1377
|
|
|
667
1378
|
class CustomerPortalConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
668
1379
|
pass
|
|
669
1380
|
|
|
670
1381
|
|
|
671
|
-
class FeatureFragment(BaseModel):
|
|
672
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
673
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
674
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
675
|
-
feature_units_plural: Optional[str] = Field(alias="featureUnitsPlural")
|
|
676
|
-
description: Optional[str]
|
|
677
|
-
display_name: str = Field(alias="displayName")
|
|
678
|
-
ref_id: str = Field(alias="refId")
|
|
679
|
-
|
|
680
|
-
|
|
681
1382
|
class CustomerPortalEntitlementFragment(BaseModel):
|
|
682
1383
|
is_granted: bool = Field(alias="isGranted")
|
|
683
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
684
|
-
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)
|
|
685
1386
|
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
686
|
-
|
|
687
|
-
|
|
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
|
+
)
|
|
688
1394
|
reset_period_configuration: Optional[
|
|
689
1395
|
Annotated[
|
|
690
1396
|
Union[
|
|
691
1397
|
"CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
692
1398
|
"CustomerPortalEntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
1399
|
+
"CustomerPortalEntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
693
1400
|
],
|
|
694
1401
|
Field(discriminator="typename__"),
|
|
695
1402
|
]
|
|
696
|
-
] = Field(alias="resetPeriodConfiguration")
|
|
697
|
-
feature: Optional["CustomerPortalEntitlementFragmentFeature"]
|
|
1403
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
1404
|
+
feature: Optional["CustomerPortalEntitlementFragmentFeature"] = Field(default=None)
|
|
698
1405
|
|
|
699
1406
|
|
|
700
1407
|
class CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(
|
|
@@ -702,7 +1409,7 @@ class CustomerPortalEntitlementFragmentResetPeriodConfigurationMonthlyResetPerio
|
|
|
702
1409
|
):
|
|
703
1410
|
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
704
1411
|
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
705
|
-
alias="monthlyAccordingTo"
|
|
1412
|
+
alias="monthlyAccordingTo", default=None
|
|
706
1413
|
)
|
|
707
1414
|
|
|
708
1415
|
|
|
@@ -710,31 +1417,22 @@ class CustomerPortalEntitlementFragmentResetPeriodConfigurationWeeklyResetPeriod
|
|
|
710
1417
|
BaseModel
|
|
711
1418
|
):
|
|
712
1419
|
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
713
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
717
|
-
pass
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
721
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
722
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel")
|
|
723
|
-
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"]
|
|
724
|
-
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"]
|
|
1420
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
1421
|
+
alias="weeklyAccordingTo", default=None
|
|
1422
|
+
)
|
|
725
1423
|
|
|
726
1424
|
|
|
727
|
-
class
|
|
728
|
-
|
|
729
|
-
|
|
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
|
+
)
|
|
730
1432
|
|
|
731
1433
|
|
|
732
|
-
class
|
|
733
|
-
|
|
734
|
-
ref_id: str = Field(alias="refId")
|
|
735
|
-
display_name: str = Field(alias="displayName")
|
|
736
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
737
|
-
feature_units_plural: Optional[str] = Field(alias="featureUnitsPlural")
|
|
1434
|
+
class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
1435
|
+
pass
|
|
738
1436
|
|
|
739
1437
|
|
|
740
1438
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
@@ -745,25 +1443,29 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
|
745
1443
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
746
1444
|
target_package: Optional[
|
|
747
1445
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentTargetPackage"
|
|
748
|
-
] = Field(alias="targetPackage")
|
|
1446
|
+
] = Field(alias="targetPackage", default=None)
|
|
749
1447
|
schedule_variables: Optional[
|
|
750
1448
|
Annotated[
|
|
751
1449
|
Union[
|
|
752
1450
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonChangeVariables",
|
|
1451
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
753
1452
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesBillingPeriodChangeVariables",
|
|
1453
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesCouponChangeVariables",
|
|
754
1454
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariables",
|
|
1455
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanChangeVariables",
|
|
1456
|
+
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
755
1457
|
"CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnitAmountChangeVariables",
|
|
756
1458
|
],
|
|
757
1459
|
Field(discriminator="typename__"),
|
|
758
1460
|
]
|
|
759
|
-
] = Field(alias="scheduleVariables")
|
|
1461
|
+
] = Field(alias="scheduleVariables", default=None)
|
|
760
1462
|
|
|
761
1463
|
|
|
762
1464
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentTargetPackage(BaseModel):
|
|
763
|
-
id:
|
|
1465
|
+
id: Any
|
|
764
1466
|
ref_id: str = Field(alias="refId")
|
|
765
1467
|
display_name: str = Field(alias="displayName")
|
|
766
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
1468
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
767
1469
|
|
|
768
1470
|
|
|
769
1471
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddonChangeVariables(
|
|
@@ -774,55 +1476,197 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesAddo
|
|
|
774
1476
|
new_quantity: float = Field(alias="newQuantity")
|
|
775
1477
|
|
|
776
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
|
+
|
|
777
1487
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesBillingPeriodChangeVariables(
|
|
778
1488
|
BaseModel
|
|
779
1489
|
):
|
|
780
1490
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
781
|
-
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")
|
|
782
1498
|
|
|
783
1499
|
|
|
784
1500
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesDowngradeChangeVariables(
|
|
785
1501
|
BaseModel
|
|
786
1502
|
):
|
|
787
1503
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
788
|
-
addon_ref_ids: Optional[str] = Field(alias="addonRefIds")
|
|
789
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
790
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)
|
|
791
1597
|
|
|
792
1598
|
|
|
793
1599
|
class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnitAmountChangeVariables(
|
|
794
1600
|
BaseModel
|
|
795
1601
|
):
|
|
796
1602
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
797
|
-
new_unit_amount: Optional[float] = Field(alias="newUnitAmount")
|
|
798
|
-
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)
|
|
799
1605
|
|
|
800
1606
|
|
|
801
1607
|
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
802
1608
|
addon_id: str = Field(alias="addonId")
|
|
803
|
-
description: Optional[str]
|
|
1609
|
+
description: Optional[str] = Field(default=None)
|
|
804
1610
|
display_name: str = Field(alias="displayName")
|
|
805
1611
|
quantity: int
|
|
806
1612
|
|
|
807
1613
|
|
|
1614
|
+
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
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
|
+
)
|
|
1627
|
+
|
|
1628
|
+
|
|
1629
|
+
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1630
|
+
amount: float
|
|
1631
|
+
currency: Currency
|
|
1632
|
+
|
|
1633
|
+
|
|
1634
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1635
|
+
amount: float
|
|
1636
|
+
currency_id: str = Field(alias="currencyId")
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1640
|
+
id: Any
|
|
1641
|
+
ref_id: str = Field(alias="refId")
|
|
1642
|
+
display_name: str = Field(alias="displayName")
|
|
1643
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1644
|
+
feature_units_plural: Optional[str] = Field(
|
|
1645
|
+
alias="featureUnitsPlural", default=None
|
|
1646
|
+
)
|
|
1647
|
+
|
|
1648
|
+
|
|
808
1649
|
class CustomerPortalSubscriptionFragment(BaseModel):
|
|
809
1650
|
subscription_id: str = Field(alias="subscriptionId")
|
|
1651
|
+
plan_id: str = Field(alias="planId")
|
|
810
1652
|
plan_name: str = Field(alias="planName")
|
|
811
1653
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
812
1654
|
prices: List["CustomerPortalSubscriptionFragmentPrices"]
|
|
813
1655
|
pricing: "CustomerPortalSubscriptionFragmentPricing"
|
|
814
1656
|
status: SubscriptionStatus
|
|
815
|
-
trial_remaining_days: Optional[int] = Field(
|
|
1657
|
+
trial_remaining_days: Optional[int] = Field(
|
|
1658
|
+
alias="trialRemainingDays", default=None
|
|
1659
|
+
)
|
|
816
1660
|
billing_period_range: Optional[
|
|
817
1661
|
"CustomerPortalSubscriptionFragmentBillingPeriodRange"
|
|
818
|
-
] = Field(alias="billingPeriodRange")
|
|
1662
|
+
] = Field(alias="billingPeriodRange", default=None)
|
|
819
1663
|
total_price: Optional["CustomerPortalSubscriptionFragmentTotalPrice"] = Field(
|
|
820
|
-
alias="totalPrice"
|
|
1664
|
+
alias="totalPrice", default=None
|
|
821
1665
|
)
|
|
822
1666
|
addons: List["CustomerPortalSubscriptionFragmentAddons"]
|
|
823
1667
|
scheduled_updates: Optional[
|
|
824
1668
|
List["CustomerPortalSubscriptionFragmentScheduledUpdates"]
|
|
825
|
-
] = Field(alias="scheduledUpdates")
|
|
1669
|
+
] = Field(alias="scheduledUpdates", default=None)
|
|
826
1670
|
|
|
827
1671
|
|
|
828
1672
|
class CustomerPortalSubscriptionFragmentPrices(CustomerPortalSubscriptionPriceFragment):
|
|
@@ -830,13 +1674,22 @@ class CustomerPortalSubscriptionFragmentPrices(CustomerPortalSubscriptionPriceFr
|
|
|
830
1674
|
|
|
831
1675
|
|
|
832
1676
|
class CustomerPortalSubscriptionFragmentPricing(BaseModel):
|
|
833
|
-
unit_quantity: Optional[int] = Field(alias="unitQuantity")
|
|
834
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod")
|
|
835
|
-
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)
|
|
836
1680
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
837
|
-
usage_based_estimated_bill: Optional[float] = Field(
|
|
838
|
-
|
|
839
|
-
|
|
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
|
+
)
|
|
840
1693
|
|
|
841
1694
|
|
|
842
1695
|
class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
|
|
@@ -844,15 +1697,22 @@ class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
|
|
|
844
1697
|
currency: Currency
|
|
845
1698
|
|
|
846
1699
|
|
|
1700
|
+
class CustomerPortalSubscriptionFragmentPricingCreditRate(BaseModel):
|
|
1701
|
+
amount: float
|
|
1702
|
+
currency_id: str = Field(alias="currencyId")
|
|
1703
|
+
|
|
1704
|
+
|
|
847
1705
|
class CustomerPortalSubscriptionFragmentPricingFeature(BaseModel):
|
|
848
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
849
|
-
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
|
+
)
|
|
850
1710
|
display_name: str = Field(alias="displayName")
|
|
851
1711
|
|
|
852
1712
|
|
|
853
1713
|
class CustomerPortalSubscriptionFragmentBillingPeriodRange(BaseModel):
|
|
854
|
-
start: Optional[Any]
|
|
855
|
-
end: Optional[Any]
|
|
1714
|
+
start: Optional[Any] = Field(default=None)
|
|
1715
|
+
end: Optional[Any] = Field(default=None)
|
|
856
1716
|
|
|
857
1717
|
|
|
858
1718
|
class CustomerPortalSubscriptionFragmentTotalPrice(BaseModel):
|
|
@@ -892,11 +1752,12 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
|
|
|
892
1752
|
|
|
893
1753
|
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
894
1754
|
display_name: str = Field(alias="displayName")
|
|
895
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage")
|
|
896
|
-
|
|
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)
|
|
897
1758
|
period: PromotionalEntitlementPeriod
|
|
898
1759
|
start_date: Any = Field(alias="startDate")
|
|
899
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
1760
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
900
1761
|
|
|
901
1762
|
|
|
902
1763
|
class CustomerPortalFragment(BaseModel):
|
|
@@ -909,10 +1770,10 @@ class CustomerPortalFragment(BaseModel):
|
|
|
909
1770
|
alias="billingInformation"
|
|
910
1771
|
)
|
|
911
1772
|
show_watermark: bool = Field(alias="showWatermark")
|
|
912
|
-
billing_portal_url: Optional[str] = Field(alias="billingPortalUrl")
|
|
1773
|
+
billing_portal_url: Optional[str] = Field(alias="billingPortalUrl", default=None)
|
|
913
1774
|
can_upgrade_subscription: bool = Field(alias="canUpgradeSubscription")
|
|
914
|
-
configuration: Optional["CustomerPortalFragmentConfiguration"]
|
|
915
|
-
resource: Optional["CustomerPortalFragmentResource"]
|
|
1775
|
+
configuration: Optional["CustomerPortalFragmentConfiguration"] = Field(default=None)
|
|
1776
|
+
resource: Optional["CustomerPortalFragmentResource"] = Field(default=None)
|
|
916
1777
|
|
|
917
1778
|
|
|
918
1779
|
class CustomerPortalFragmentSubscriptions(CustomerPortalSubscriptionFragment):
|
|
@@ -943,63 +1804,39 @@ class CustomerPortalFragmentResource(CustomerResourceFragment):
|
|
|
943
1804
|
pass
|
|
944
1805
|
|
|
945
1806
|
|
|
946
|
-
class
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
class CustomerWithSubscriptionsFragmentSubscriptions(SubscriptionFragment):
|
|
951
|
-
pass
|
|
1807
|
+
class CustomerStatisticsFragment(BaseModel):
|
|
1808
|
+
statistics: Optional["CustomerStatisticsFragmentStatistics"] = Field(default=None)
|
|
952
1809
|
|
|
953
1810
|
|
|
954
|
-
class
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
)
|
|
959
|
-
customer_id: Optional[str] = Field(alias="customerId")
|
|
960
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
961
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
962
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
963
|
-
current_usage: Optional[float] = Field(alias="currentUsage")
|
|
964
|
-
requested_usage: Optional[float] = Field(alias="requestedUsage")
|
|
965
|
-
entitlement_updated_at: Optional[Any] = Field(alias="entitlementUpdatedAt")
|
|
966
|
-
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt")
|
|
967
|
-
next_reset_date: Optional[Any] = Field(alias="nextResetDate")
|
|
968
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(alias="resetPeriod")
|
|
969
|
-
reset_period_configuration: Optional[
|
|
970
|
-
Annotated[
|
|
971
|
-
Union[
|
|
972
|
-
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
973
|
-
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
974
|
-
],
|
|
975
|
-
Field(discriminator="typename__"),
|
|
976
|
-
]
|
|
977
|
-
] = Field(alias="resetPeriodConfiguration")
|
|
978
|
-
feature: Optional["EntitlementFragmentFeature"]
|
|
1811
|
+
class CustomerStatisticsFragmentStatistics(BaseModel):
|
|
1812
|
+
active_subscriptions_by_pricing_type: List[
|
|
1813
|
+
"CustomerStatisticsFragmentStatisticsActiveSubscriptionsByPricingType"
|
|
1814
|
+
] = Field(alias="activeSubscriptionsByPricingType")
|
|
979
1815
|
|
|
980
1816
|
|
|
981
|
-
class
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
alias="monthlyAccordingTo"
|
|
985
|
-
)
|
|
1817
|
+
class CustomerStatisticsFragmentStatisticsActiveSubscriptionsByPricingType(BaseModel):
|
|
1818
|
+
pricing_type: PricingType = Field(alias="pricingType")
|
|
1819
|
+
total_count: float = Field(alias="totalCount")
|
|
986
1820
|
|
|
987
1821
|
|
|
988
|
-
class
|
|
989
|
-
|
|
990
|
-
|
|
1822
|
+
class CustomerWithSubscriptionsFragment(CustomerFragment):
|
|
1823
|
+
subscriptions: Optional[
|
|
1824
|
+
List["CustomerWithSubscriptionsFragmentSubscriptions"]
|
|
1825
|
+
] = Field(default=None)
|
|
991
1826
|
|
|
992
1827
|
|
|
993
|
-
class
|
|
1828
|
+
class CustomerWithSubscriptionsFragmentSubscriptions(SubscriptionFragment):
|
|
994
1829
|
pass
|
|
995
1830
|
|
|
996
1831
|
|
|
997
1832
|
class UsageUpdatedFragment(BaseModel):
|
|
998
1833
|
customer_id: str = Field(alias="customerId")
|
|
999
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
1834
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1000
1835
|
feature_id: str = Field(alias="featureId")
|
|
1001
1836
|
current_usage: float = Field(alias="currentUsage")
|
|
1002
|
-
|
|
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)
|
|
1003
1840
|
|
|
1004
1841
|
|
|
1005
1842
|
class EntitlementUsageUpdated(BaseModel):
|
|
@@ -1017,7 +1854,7 @@ class EntitlementUsageUpdatedEntitlement(EntitlementFragment):
|
|
|
1017
1854
|
|
|
1018
1855
|
class EntitlementsUpdatedPayload(BaseModel):
|
|
1019
1856
|
customer_id: str = Field(alias="customerId")
|
|
1020
|
-
resource_id: Optional[str] = Field(alias="resourceId")
|
|
1857
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1021
1858
|
entitlements: List["EntitlementsUpdatedPayloadEntitlements"]
|
|
1022
1859
|
|
|
1023
1860
|
|
|
@@ -1033,16 +1870,24 @@ class ImmediateSubscriptionPreviewInvoiceFragment(BaseModel):
|
|
|
1033
1870
|
total_excluding_tax: "ImmediateSubscriptionPreviewInvoiceFragmentTotalExcludingTax" = Field(
|
|
1034
1871
|
alias="totalExcludingTax"
|
|
1035
1872
|
)
|
|
1036
|
-
tax: Optional["ImmediateSubscriptionPreviewInvoiceFragmentTax"]
|
|
1037
|
-
|
|
1873
|
+
tax: Optional["ImmediateSubscriptionPreviewInvoiceFragmentTax"] = Field(
|
|
1874
|
+
default=None
|
|
1875
|
+
)
|
|
1876
|
+
discount: Optional["ImmediateSubscriptionPreviewInvoiceFragmentDiscount"] = Field(
|
|
1877
|
+
default=None
|
|
1878
|
+
)
|
|
1038
1879
|
tax_details: Optional[
|
|
1039
1880
|
"ImmediateSubscriptionPreviewInvoiceFragmentTaxDetails"
|
|
1040
|
-
] = Field(alias="taxDetails")
|
|
1881
|
+
] = Field(alias="taxDetails", default=None)
|
|
1041
1882
|
discount_details: Optional[
|
|
1042
1883
|
"ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails"
|
|
1043
|
-
] = Field(alias="discountDetails")
|
|
1044
|
-
credits: Optional["ImmediateSubscriptionPreviewInvoiceFragmentCredits"]
|
|
1045
|
-
|
|
1884
|
+
] = Field(alias="discountDetails", default=None)
|
|
1885
|
+
credits: Optional["ImmediateSubscriptionPreviewInvoiceFragmentCredits"] = Field(
|
|
1886
|
+
default=None
|
|
1887
|
+
)
|
|
1888
|
+
proration: Optional["ImmediateSubscriptionPreviewInvoiceFragmentProration"] = Field(
|
|
1889
|
+
default=None
|
|
1890
|
+
)
|
|
1046
1891
|
|
|
1047
1892
|
|
|
1048
1893
|
class ImmediateSubscriptionPreviewInvoiceFragmentTotal(BaseModel):
|
|
@@ -1080,7 +1925,7 @@ class ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails(BaseModel):
|
|
|
1080
1925
|
type: DiscountType
|
|
1081
1926
|
value: float
|
|
1082
1927
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1083
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
1928
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1084
1929
|
|
|
1085
1930
|
|
|
1086
1931
|
class ImmediateSubscriptionPreviewInvoiceFragmentCredits(BaseModel):
|
|
@@ -1106,7 +1951,7 @@ class ImmediateSubscriptionPreviewInvoiceFragmentCreditsRemaining(BaseModel):
|
|
|
1106
1951
|
|
|
1107
1952
|
class ImmediateSubscriptionPreviewInvoiceFragmentProration(BaseModel):
|
|
1108
1953
|
proration_date: Any = Field(alias="prorationDate")
|
|
1109
|
-
has_prorations: Optional[bool] = Field(alias="hasProrations")
|
|
1954
|
+
has_prorations: Optional[bool] = Field(alias="hasProrations", default=None)
|
|
1110
1955
|
credit: "ImmediateSubscriptionPreviewInvoiceFragmentProrationCredit"
|
|
1111
1956
|
debit: "ImmediateSubscriptionPreviewInvoiceFragmentProrationDebit"
|
|
1112
1957
|
net_amount: "ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount" = Field(
|
|
@@ -1130,43 +1975,35 @@ class ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount(BaseModel):
|
|
|
1130
1975
|
|
|
1131
1976
|
|
|
1132
1977
|
class LayoutConfigurationFragment(BaseModel):
|
|
1133
|
-
alignment: Optional[Alignment]
|
|
1134
|
-
plan_width: Optional[float] = Field(alias="planWidth")
|
|
1135
|
-
plan_margin: Optional[float] = Field(alias="planMargin")
|
|
1136
|
-
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)
|
|
1137
1982
|
|
|
1138
1983
|
|
|
1139
|
-
class
|
|
1140
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
1141
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1142
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(alias="resetPeriod")
|
|
1143
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(alias="hiddenFromWidgets")
|
|
1144
|
-
display_name_override: Optional[str] = Field(alias="displayNameOverride")
|
|
1145
|
-
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"]
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1149
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1150
|
-
meter_type: Optional[MeterType] = Field(alias="meterType")
|
|
1151
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1152
|
-
feature_units_plural: Optional[str] = Field(alias="featureUnitsPlural")
|
|
1153
|
-
display_name: str = Field(alias="displayName")
|
|
1154
|
-
description: Optional[str]
|
|
1984
|
+
class MockPaywallAddonDependencyFragment(BaseModel):
|
|
1155
1985
|
ref_id: str = Field(alias="refId")
|
|
1156
|
-
|
|
1986
|
+
display_name: str = Field(alias="displayName")
|
|
1987
|
+
description: Optional[str] = Field(default=None)
|
|
1157
1988
|
|
|
1158
1989
|
|
|
1159
1990
|
class MockPaywallPriceFragment(BaseModel):
|
|
1160
1991
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
1161
1992
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1162
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
1163
|
-
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity")
|
|
1164
|
-
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity")
|
|
1165
|
-
billing_country_code: Optional[str] = Field(
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
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)
|
|
1170
2007
|
|
|
1171
2008
|
|
|
1172
2009
|
class MockPaywallPriceFragmentPrice(BaseModel):
|
|
@@ -1174,26 +2011,81 @@ class MockPaywallPriceFragmentPrice(BaseModel):
|
|
|
1174
2011
|
currency: Currency
|
|
1175
2012
|
|
|
1176
2013
|
|
|
2014
|
+
class MockPaywallPriceFragmentCreditRate(BaseModel):
|
|
2015
|
+
amount: float
|
|
2016
|
+
currency_id: str = Field(alias="currencyId")
|
|
2017
|
+
|
|
2018
|
+
|
|
1177
2019
|
class MockPaywallPriceFragmentTiers(PriceTierFragment):
|
|
1178
2020
|
pass
|
|
1179
2021
|
|
|
1180
2022
|
|
|
1181
|
-
class MockPaywallPriceFragmentFeature(BaseModel):
|
|
1182
|
-
ref_id: str = Field(alias="refId")
|
|
1183
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1184
|
-
feature_units_plural: Optional[str] = Field(
|
|
2023
|
+
class MockPaywallPriceFragmentFeature(BaseModel):
|
|
2024
|
+
ref_id: str = Field(alias="refId")
|
|
2025
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
2026
|
+
feature_units_plural: Optional[str] = Field(
|
|
2027
|
+
alias="featureUnitsPlural", default=None
|
|
2028
|
+
)
|
|
2029
|
+
display_name: str = Field(alias="displayName")
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
2033
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2034
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
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
|
+
)
|
|
2050
|
+
|
|
2051
|
+
|
|
2052
|
+
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
2053
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
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
|
+
)
|
|
1185
2059
|
display_name: str = Field(alias="displayName")
|
|
2060
|
+
description: Optional[str] = Field(default=None)
|
|
2061
|
+
ref_id: str = Field(alias="refId")
|
|
2062
|
+
additional_meta_data: Optional[Any] = Field(
|
|
2063
|
+
alias="additionalMetaData", default=None
|
|
2064
|
+
)
|
|
1186
2065
|
|
|
1187
2066
|
|
|
1188
2067
|
class MockPaywallAddonFragment(BaseModel):
|
|
1189
2068
|
ref_id: str = Field(alias="refId")
|
|
1190
2069
|
display_name: str = Field(alias="displayName")
|
|
1191
|
-
description: Optional[str]
|
|
1192
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1193
|
-
|
|
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
|
+
)
|
|
1194
2082
|
entitlements: List["MockPaywallAddonFragmentEntitlements"]
|
|
1195
2083
|
prices: List["MockPaywallAddonFragmentPrices"]
|
|
1196
|
-
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
|
|
1197
2089
|
|
|
1198
2090
|
|
|
1199
2091
|
class MockPaywallAddonFragmentEntitlements(MockPaywallPackageEntitlementFragment):
|
|
@@ -1204,33 +2096,63 @@ class MockPaywallAddonFragmentPrices(MockPaywallPriceFragment):
|
|
|
1204
2096
|
pass
|
|
1205
2097
|
|
|
1206
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
|
+
|
|
1207
2118
|
class MockPaywallPlanFragment(BaseModel):
|
|
1208
2119
|
ref_id: str = Field(alias="refId")
|
|
1209
|
-
description: Optional[str]
|
|
2120
|
+
description: Optional[str] = Field(default=None)
|
|
1210
2121
|
display_name: str = Field(alias="displayName")
|
|
1211
|
-
billing_id: Optional[str] = Field(alias="billingId")
|
|
1212
|
-
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
|
+
)
|
|
1213
2126
|
product: "MockPaywallPlanFragmentProduct"
|
|
1214
|
-
base_plan: Optional["MockPaywallPlanFragmentBasePlan"] = Field(
|
|
1215
|
-
|
|
2127
|
+
base_plan: Optional["MockPaywallPlanFragmentBasePlan"] = Field(
|
|
2128
|
+
alias="basePlan", default=None
|
|
2129
|
+
)
|
|
2130
|
+
entitlements: Optional[List["MockPaywallPlanFragmentEntitlements"]] = Field(
|
|
2131
|
+
default=None
|
|
2132
|
+
)
|
|
1216
2133
|
inherited_entitlements: Optional[
|
|
1217
2134
|
List["MockPaywallPlanFragmentInheritedEntitlements"]
|
|
1218
|
-
] = Field(alias="inheritedEntitlements")
|
|
2135
|
+
] = Field(alias="inheritedEntitlements", default=None)
|
|
1219
2136
|
prices: List["MockPaywallPlanFragmentPrices"]
|
|
1220
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType")
|
|
2137
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
1221
2138
|
default_trial_config: Optional["MockPaywallPlanFragmentDefaultTrialConfig"] = Field(
|
|
1222
|
-
alias="defaultTrialConfig"
|
|
2139
|
+
alias="defaultTrialConfig", default=None
|
|
1223
2140
|
)
|
|
1224
2141
|
compatible_addons: Optional[
|
|
1225
2142
|
List["MockPaywallPlanFragmentCompatibleAddons"]
|
|
1226
|
-
] = Field(alias="compatibleAddons")
|
|
2143
|
+
] = Field(alias="compatibleAddons", default=None)
|
|
2144
|
+
compatible_package_groups: Optional[
|
|
2145
|
+
List["MockPaywallPlanFragmentCompatiblePackageGroups"]
|
|
2146
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
1227
2147
|
|
|
1228
2148
|
|
|
1229
2149
|
class MockPaywallPlanFragmentProduct(BaseModel):
|
|
1230
2150
|
ref_id: str = Field(alias="refId")
|
|
1231
|
-
display_name: Optional[str] = Field(alias="displayName")
|
|
1232
|
-
description: Optional[str]
|
|
1233
|
-
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
|
+
)
|
|
1234
2156
|
|
|
1235
2157
|
|
|
1236
2158
|
class MockPaywallPlanFragmentBasePlan(BaseModel):
|
|
@@ -1255,45 +2177,89 @@ class MockPaywallPlanFragmentPrices(MockPaywallPriceFragment):
|
|
|
1255
2177
|
class MockPaywallPlanFragmentDefaultTrialConfig(BaseModel):
|
|
1256
2178
|
duration: float
|
|
1257
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
|
|
1258
2190
|
|
|
1259
2191
|
|
|
1260
2192
|
class MockPaywallPlanFragmentCompatibleAddons(MockPaywallAddonFragment):
|
|
1261
2193
|
pass
|
|
1262
2194
|
|
|
1263
2195
|
|
|
2196
|
+
class MockPaywallPlanFragmentCompatiblePackageGroups(
|
|
2197
|
+
MockPaywallPlanCompatiblePackageGroupsFragment
|
|
2198
|
+
):
|
|
2199
|
+
pass
|
|
2200
|
+
|
|
2201
|
+
|
|
2202
|
+
class PackagePublishedPayload(BaseModel):
|
|
2203
|
+
account_id: str = Field(alias="accountId")
|
|
2204
|
+
environment_id: str = Field(alias="environmentId")
|
|
2205
|
+
package_type: str = Field(alias="packageType")
|
|
2206
|
+
package_ref_id: str = Field(alias="packageRefId")
|
|
2207
|
+
package_version: int = Field(alias="packageVersion")
|
|
2208
|
+
migration_type: PublishMigrationType = Field(alias="migrationType")
|
|
2209
|
+
|
|
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
|
+
|
|
1264
2222
|
class PaywallCalculatedPricePointsFragment(BaseModel):
|
|
1265
2223
|
plan_id: str = Field(alias="planId")
|
|
1266
2224
|
additional_charges_may_apply: Optional[bool] = Field(
|
|
1267
|
-
alias="additionalChargesMayApply"
|
|
2225
|
+
alias="additionalChargesMayApply", default=None
|
|
1268
2226
|
)
|
|
1269
2227
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1270
2228
|
amount: float
|
|
1271
2229
|
currency: Currency
|
|
1272
|
-
billing_country_code: Optional[str] = Field(
|
|
1273
|
-
|
|
2230
|
+
billing_country_code: Optional[str] = Field(
|
|
2231
|
+
alias="billingCountryCode", default=None
|
|
2232
|
+
)
|
|
2233
|
+
feature: Optional["PaywallCalculatedPricePointsFragmentFeature"] = Field(
|
|
2234
|
+
default=None
|
|
2235
|
+
)
|
|
1274
2236
|
|
|
1275
2237
|
|
|
1276
2238
|
class PaywallCalculatedPricePointsFragmentFeature(BaseModel):
|
|
1277
2239
|
ref_id: str = Field(alias="refId")
|
|
1278
|
-
feature_units: Optional[str] = Field(alias="featureUnits")
|
|
1279
|
-
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
|
+
)
|
|
1280
2244
|
display_name: str = Field(alias="displayName")
|
|
1281
|
-
description: Optional[str]
|
|
2245
|
+
description: Optional[str] = Field(default=None)
|
|
1282
2246
|
|
|
1283
2247
|
|
|
1284
2248
|
class PaywallConfigurationFragment(BaseModel):
|
|
1285
|
-
palette: Optional["PaywallConfigurationFragmentPalette"]
|
|
1286
|
-
typography: Optional["PaywallConfigurationFragmentTypography"]
|
|
1287
|
-
layout: Optional["PaywallConfigurationFragmentLayout"]
|
|
1288
|
-
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)
|
|
1289
2253
|
|
|
1290
2254
|
|
|
1291
2255
|
class PaywallConfigurationFragmentPalette(BaseModel):
|
|
1292
|
-
primary: Optional[str]
|
|
1293
|
-
text_color: Optional[str] = Field(alias="textColor")
|
|
1294
|
-
background_color: Optional[str] = Field(alias="backgroundColor")
|
|
1295
|
-
border_color: Optional[str] = Field(alias="borderColor")
|
|
1296
|
-
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
|
+
)
|
|
1297
2263
|
|
|
1298
2264
|
|
|
1299
2265
|
class PaywallConfigurationFragmentTypography(TypographyConfigurationFragment):
|
|
@@ -1312,15 +2278,15 @@ class PaywallCurrencyFragment(BaseModel):
|
|
|
1312
2278
|
class PaywallFragment(BaseModel):
|
|
1313
2279
|
plans: List["PaywallFragmentPlans"]
|
|
1314
2280
|
currency: "PaywallFragmentCurrency"
|
|
1315
|
-
configuration: Optional["PaywallFragmentConfiguration"]
|
|
1316
|
-
customer: Optional["PaywallFragmentCustomer"]
|
|
2281
|
+
configuration: Optional["PaywallFragmentConfiguration"] = Field(default=None)
|
|
2282
|
+
customer: Optional["PaywallFragmentCustomer"] = Field(default=None)
|
|
1317
2283
|
active_subscriptions: Optional[List["PaywallFragmentActiveSubscriptions"]] = Field(
|
|
1318
|
-
alias="activeSubscriptions"
|
|
2284
|
+
alias="activeSubscriptions", default=None
|
|
1319
2285
|
)
|
|
1320
|
-
resource: Optional["PaywallFragmentResource"]
|
|
2286
|
+
resource: Optional["PaywallFragmentResource"] = Field(default=None)
|
|
1321
2287
|
paywall_calculated_price_points: Optional[
|
|
1322
2288
|
List["PaywallFragmentPaywallCalculatedPricePoints"]
|
|
1323
|
-
] = Field(alias="paywallCalculatedPricePoints")
|
|
2289
|
+
] = Field(alias="paywallCalculatedPricePoints", default=None)
|
|
1324
2290
|
|
|
1325
2291
|
|
|
1326
2292
|
class PaywallFragmentPlans(PlanFragment):
|
|
@@ -1352,29 +2318,36 @@ class PaywallFragmentPaywallCalculatedPricePoints(PaywallCalculatedPricePointsFr
|
|
|
1352
2318
|
|
|
1353
2319
|
|
|
1354
2320
|
class SlimSubscriptionFragment(BaseModel):
|
|
1355
|
-
id:
|
|
2321
|
+
id: Any
|
|
2322
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
1356
2323
|
ref_id: str = Field(alias="refId")
|
|
1357
2324
|
status: SubscriptionStatus
|
|
1358
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
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
|
+
)
|
|
1363
2335
|
pricing_type: PricingType = Field(alias="pricingType")
|
|
1364
2336
|
latest_invoice: Optional["SlimSubscriptionFragmentLatestInvoice"] = Field(
|
|
1365
|
-
alias="latestInvoice"
|
|
2337
|
+
alias="latestInvoice", default=None
|
|
1366
2338
|
)
|
|
1367
2339
|
payment_collection: PaymentCollection = Field(alias="paymentCollection")
|
|
1368
|
-
|
|
2340
|
+
billing_sync_error: Optional[str] = Field(alias="billingSyncError", default=None)
|
|
2341
|
+
resource: Optional["SlimSubscriptionFragmentResource"] = Field(default=None)
|
|
1369
2342
|
experiment_info: Optional["SlimSubscriptionFragmentExperimentInfo"] = Field(
|
|
1370
|
-
alias="experimentInfo"
|
|
2343
|
+
alias="experimentInfo", default=None
|
|
1371
2344
|
)
|
|
1372
|
-
prices: Optional[List["SlimSubscriptionFragmentPrices"]]
|
|
2345
|
+
prices: Optional[List["SlimSubscriptionFragmentPrices"]] = Field(default=None)
|
|
1373
2346
|
total_price: Optional["SlimSubscriptionFragmentTotalPrice"] = Field(
|
|
1374
|
-
alias="totalPrice"
|
|
2347
|
+
alias="totalPrice", default=None
|
|
1375
2348
|
)
|
|
1376
2349
|
plan: "SlimSubscriptionFragmentPlan"
|
|
1377
|
-
addons: Optional[List["SlimSubscriptionFragmentAddons"]]
|
|
2350
|
+
addons: Optional[List["SlimSubscriptionFragmentAddons"]] = Field(default=None)
|
|
1378
2351
|
customer: "SlimSubscriptionFragmentCustomer"
|
|
1379
2352
|
|
|
1380
2353
|
|
|
@@ -1389,13 +2362,13 @@ class SlimSubscriptionFragmentResource(CustomerResourceFragment):
|
|
|
1389
2362
|
class SlimSubscriptionFragmentExperimentInfo(BaseModel):
|
|
1390
2363
|
name: str
|
|
1391
2364
|
id: str
|
|
1392
|
-
group_name: str = Field(alias="groupName")
|
|
1393
2365
|
group_type: experimentGroupType = Field(alias="groupType")
|
|
2366
|
+
group_name: str = Field(alias="groupName")
|
|
1394
2367
|
|
|
1395
2368
|
|
|
1396
2369
|
class SlimSubscriptionFragmentPrices(BaseModel):
|
|
1397
|
-
usage_limit: Optional[float] = Field(alias="usageLimit")
|
|
1398
|
-
price: Optional["SlimSubscriptionFragmentPricesPrice"]
|
|
2370
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
2371
|
+
price: Optional["SlimSubscriptionFragmentPricesPrice"] = Field(default=None)
|
|
1399
2372
|
|
|
1400
2373
|
|
|
1401
2374
|
class SlimSubscriptionFragmentPricesPrice(PriceFragment):
|
|
@@ -1407,7 +2380,7 @@ class SlimSubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
|
1407
2380
|
|
|
1408
2381
|
|
|
1409
2382
|
class SlimSubscriptionFragmentPlan(BaseModel):
|
|
1410
|
-
id:
|
|
2383
|
+
id: Any
|
|
1411
2384
|
ref_id: str = Field(alias="refId")
|
|
1412
2385
|
|
|
1413
2386
|
|
|
@@ -1417,15 +2390,277 @@ class SlimSubscriptionFragmentAddons(BaseModel):
|
|
|
1417
2390
|
|
|
1418
2391
|
|
|
1419
2392
|
class SlimSubscriptionFragmentAddonsAddon(BaseModel):
|
|
1420
|
-
id:
|
|
2393
|
+
id: Any
|
|
1421
2394
|
ref_id: str = Field(alias="refId")
|
|
1422
2395
|
|
|
1423
2396
|
|
|
1424
2397
|
class SlimSubscriptionFragmentCustomer(BaseModel):
|
|
1425
|
-
id:
|
|
2398
|
+
id: Any
|
|
1426
2399
|
ref_id: str = Field(alias="refId")
|
|
1427
2400
|
|
|
1428
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
|
+
|
|
1429
2664
|
class SubscriptionPreviewFragment(BaseModel):
|
|
1430
2665
|
sub_total: "SubscriptionPreviewFragmentSubTotal" = Field(alias="subTotal")
|
|
1431
2666
|
total_excluding_tax: "SubscriptionPreviewFragmentTotalExcludingTax" = Field(
|
|
@@ -1433,21 +2668,25 @@ class SubscriptionPreviewFragment(BaseModel):
|
|
|
1433
2668
|
)
|
|
1434
2669
|
total: "SubscriptionPreviewFragmentTotal"
|
|
1435
2670
|
discount_amount: Optional["SubscriptionPreviewFragmentDiscountAmount"] = Field(
|
|
1436
|
-
alias="discountAmount"
|
|
2671
|
+
alias="discountAmount", default=None
|
|
1437
2672
|
)
|
|
1438
2673
|
tax_details: Optional["SubscriptionPreviewFragmentTaxDetails"] = Field(
|
|
1439
|
-
alias="taxDetails"
|
|
2674
|
+
alias="taxDetails", default=None
|
|
1440
2675
|
)
|
|
1441
|
-
tax: Optional["SubscriptionPreviewFragmentTax"]
|
|
2676
|
+
tax: Optional["SubscriptionPreviewFragmentTax"] = Field(default=None)
|
|
1442
2677
|
billing_period_range: "SubscriptionPreviewFragmentBillingPeriodRange" = Field(
|
|
1443
2678
|
alias="billingPeriodRange"
|
|
1444
2679
|
)
|
|
1445
|
-
discount: Optional["SubscriptionPreviewFragmentDiscount"]
|
|
1446
|
-
subscription: Optional["SubscriptionPreviewFragmentSubscription"]
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
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)
|
|
1451
2690
|
|
|
1452
2691
|
|
|
1453
2692
|
class SubscriptionPreviewFragmentSubTotal(BaseModel):
|
|
@@ -1482,15 +2721,16 @@ class SubscriptionPreviewFragmentTax(BaseModel):
|
|
|
1482
2721
|
|
|
1483
2722
|
|
|
1484
2723
|
class SubscriptionPreviewFragmentBillingPeriodRange(BaseModel):
|
|
1485
|
-
start: Optional[Any]
|
|
1486
|
-
end: Optional[Any]
|
|
2724
|
+
start: Optional[Any] = Field(default=None)
|
|
2725
|
+
end: Optional[Any] = Field(default=None)
|
|
1487
2726
|
|
|
1488
2727
|
|
|
1489
2728
|
class SubscriptionPreviewFragmentDiscount(BaseModel):
|
|
2729
|
+
name: Optional[str] = Field(default=None)
|
|
1490
2730
|
type: DiscountType
|
|
1491
2731
|
value: float
|
|
1492
2732
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1493
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2733
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1494
2734
|
|
|
1495
2735
|
|
|
1496
2736
|
class SubscriptionPreviewFragmentSubscription(BaseModel):
|
|
@@ -1504,11 +2744,13 @@ class SubscriptionPreviewFragmentSubscription(BaseModel):
|
|
|
1504
2744
|
tax: "SubscriptionPreviewFragmentSubscriptionTax"
|
|
1505
2745
|
discount_amount: Optional[
|
|
1506
2746
|
"SubscriptionPreviewFragmentSubscriptionDiscountAmount"
|
|
1507
|
-
] = Field(alias="discountAmount")
|
|
2747
|
+
] = Field(alias="discountAmount", default=None)
|
|
1508
2748
|
tax_details: Optional["SubscriptionPreviewFragmentSubscriptionTaxDetails"] = Field(
|
|
1509
|
-
alias="taxDetails"
|
|
2749
|
+
alias="taxDetails", default=None
|
|
2750
|
+
)
|
|
2751
|
+
discount: Optional["SubscriptionPreviewFragmentSubscriptionDiscount"] = Field(
|
|
2752
|
+
default=None
|
|
1510
2753
|
)
|
|
1511
|
-
discount: Optional["SubscriptionPreviewFragmentSubscriptionDiscount"]
|
|
1512
2754
|
|
|
1513
2755
|
|
|
1514
2756
|
class SubscriptionPreviewFragmentSubscriptionSubTotal(BaseModel):
|
|
@@ -1543,10 +2785,11 @@ class SubscriptionPreviewFragmentSubscriptionTaxDetails(BaseModel):
|
|
|
1543
2785
|
|
|
1544
2786
|
|
|
1545
2787
|
class SubscriptionPreviewFragmentSubscriptionDiscount(BaseModel):
|
|
2788
|
+
name: Optional[str] = Field(default=None)
|
|
1546
2789
|
type: DiscountType
|
|
1547
2790
|
value: float
|
|
1548
2791
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1549
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2792
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1550
2793
|
|
|
1551
2794
|
|
|
1552
2795
|
class SubscriptionPreviewFragmentProration(BaseModel):
|
|
@@ -1600,14 +2843,16 @@ class SubscriptionPreviewInvoiceFragment(BaseModel):
|
|
|
1600
2843
|
total_excluding_tax: "SubscriptionPreviewInvoiceFragmentTotalExcludingTax" = Field(
|
|
1601
2844
|
alias="totalExcludingTax"
|
|
1602
2845
|
)
|
|
1603
|
-
tax: Optional["SubscriptionPreviewInvoiceFragmentTax"]
|
|
1604
|
-
discount: Optional["SubscriptionPreviewInvoiceFragmentDiscount"]
|
|
2846
|
+
tax: Optional["SubscriptionPreviewInvoiceFragmentTax"] = Field(default=None)
|
|
2847
|
+
discount: Optional["SubscriptionPreviewInvoiceFragmentDiscount"] = Field(
|
|
2848
|
+
default=None
|
|
2849
|
+
)
|
|
1605
2850
|
tax_details: Optional["SubscriptionPreviewInvoiceFragmentTaxDetails"] = Field(
|
|
1606
|
-
alias="taxDetails"
|
|
2851
|
+
alias="taxDetails", default=None
|
|
1607
2852
|
)
|
|
1608
2853
|
discount_details: Optional[
|
|
1609
2854
|
"SubscriptionPreviewInvoiceFragmentDiscountDetails"
|
|
1610
|
-
] = Field(alias="discountDetails")
|
|
2855
|
+
] = Field(alias="discountDetails", default=None)
|
|
1611
2856
|
|
|
1612
2857
|
|
|
1613
2858
|
class SubscriptionPreviewInvoiceFragmentTotal(BaseModel):
|
|
@@ -1645,7 +2890,7 @@ class SubscriptionPreviewInvoiceFragmentDiscountDetails(BaseModel):
|
|
|
1645
2890
|
type: DiscountType
|
|
1646
2891
|
value: float
|
|
1647
2892
|
duration_type: DiscountDurationType = Field(alias="durationType")
|
|
1648
|
-
duration_in_months: Optional[float] = Field(alias="durationInMonths")
|
|
2893
|
+
duration_in_months: Optional[float] = Field(alias="durationInMonths", default=None)
|
|
1649
2894
|
|
|
1650
2895
|
|
|
1651
2896
|
class SubscriptionPreviewV2Fragment(BaseModel):
|
|
@@ -1654,12 +2899,14 @@ class SubscriptionPreviewV2Fragment(BaseModel):
|
|
|
1654
2899
|
)
|
|
1655
2900
|
recurring_invoice: Optional[
|
|
1656
2901
|
"SubscriptionPreviewV2FragmentRecurringInvoice"
|
|
1657
|
-
] = Field(alias="recurringInvoice")
|
|
2902
|
+
] = Field(alias="recurringInvoice", default=None)
|
|
1658
2903
|
billing_period_range: "SubscriptionPreviewV2FragmentBillingPeriodRange" = Field(
|
|
1659
2904
|
alias="billingPeriodRange"
|
|
1660
2905
|
)
|
|
1661
|
-
is_plan_downgrade: Optional[bool] = Field(alias="isPlanDowngrade")
|
|
1662
|
-
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
|
+
)
|
|
1663
2910
|
|
|
1664
2911
|
|
|
1665
2912
|
class SubscriptionPreviewV2FragmentImmediateInvoice(
|
|
@@ -1673,252 +2920,200 @@ class SubscriptionPreviewV2FragmentRecurringInvoice(SubscriptionPreviewInvoiceFr
|
|
|
1673
2920
|
|
|
1674
2921
|
|
|
1675
2922
|
class SubscriptionPreviewV2FragmentBillingPeriodRange(BaseModel):
|
|
1676
|
-
start: Optional[Any]
|
|
1677
|
-
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")
|
|
1678
2976
|
|
|
1679
2977
|
|
|
1680
2978
|
class UsageHistoryFragment(BaseModel):
|
|
1681
2979
|
start_date: Any = Field(alias="startDate")
|
|
1682
|
-
end_date: Optional[Any] = Field(alias="endDate")
|
|
2980
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
2981
|
+
markers: List["UsageHistoryFragmentMarkers"]
|
|
1683
2982
|
usage_measurements: List["UsageHistoryFragmentUsageMeasurements"] = Field(
|
|
1684
2983
|
alias="usageMeasurements"
|
|
1685
2984
|
)
|
|
2985
|
+
groups: Optional[List["UsageHistoryFragmentGroups"]] = Field(default=None)
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
class UsageHistoryFragmentMarkers(BaseModel):
|
|
2989
|
+
type: UsageMarkerType
|
|
2990
|
+
timestamp: Any
|
|
1686
2991
|
|
|
1687
2992
|
|
|
1688
2993
|
class UsageHistoryFragmentUsageMeasurements(BaseModel):
|
|
1689
2994
|
date: Any
|
|
1690
2995
|
value: float
|
|
1691
|
-
is_reset_point:
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
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
|
-
CustomerWithSubscriptionsFragmentSubscriptions.update_forward_refs()
|
|
1816
|
-
EntitlementFragment.update_forward_refs()
|
|
1817
|
-
EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig.update_forward_refs()
|
|
1818
|
-
EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig.update_forward_refs()
|
|
1819
|
-
EntitlementFragmentFeature.update_forward_refs()
|
|
1820
|
-
UsageUpdatedFragment.update_forward_refs()
|
|
1821
|
-
EntitlementUsageUpdated.update_forward_refs()
|
|
1822
|
-
EntitlementUsageUpdatedUsage.update_forward_refs()
|
|
1823
|
-
EntitlementUsageUpdatedEntitlement.update_forward_refs()
|
|
1824
|
-
EntitlementsUpdatedPayload.update_forward_refs()
|
|
1825
|
-
EntitlementsUpdatedPayloadEntitlements.update_forward_refs()
|
|
1826
|
-
ImmediateSubscriptionPreviewInvoiceFragment.update_forward_refs()
|
|
1827
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTotal.update_forward_refs()
|
|
1828
|
-
ImmediateSubscriptionPreviewInvoiceFragmentSubTotal.update_forward_refs()
|
|
1829
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTotalExcludingTax.update_forward_refs()
|
|
1830
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTax.update_forward_refs()
|
|
1831
|
-
ImmediateSubscriptionPreviewInvoiceFragmentDiscount.update_forward_refs()
|
|
1832
|
-
ImmediateSubscriptionPreviewInvoiceFragmentTaxDetails.update_forward_refs()
|
|
1833
|
-
ImmediateSubscriptionPreviewInvoiceFragmentDiscountDetails.update_forward_refs()
|
|
1834
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCredits.update_forward_refs()
|
|
1835
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsInitial.update_forward_refs()
|
|
1836
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsUsed.update_forward_refs()
|
|
1837
|
-
ImmediateSubscriptionPreviewInvoiceFragmentCreditsRemaining.update_forward_refs()
|
|
1838
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProration.update_forward_refs()
|
|
1839
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationCredit.update_forward_refs()
|
|
1840
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationDebit.update_forward_refs()
|
|
1841
|
-
ImmediateSubscriptionPreviewInvoiceFragmentProrationNetAmount.update_forward_refs()
|
|
1842
|
-
LayoutConfigurationFragment.update_forward_refs()
|
|
1843
|
-
MockPaywallPackageEntitlementFragment.update_forward_refs()
|
|
1844
|
-
MockPaywallPackageEntitlementFragmentFeature.update_forward_refs()
|
|
1845
|
-
MockPaywallPriceFragment.update_forward_refs()
|
|
1846
|
-
MockPaywallPriceFragmentPrice.update_forward_refs()
|
|
1847
|
-
MockPaywallPriceFragmentTiers.update_forward_refs()
|
|
1848
|
-
MockPaywallPriceFragmentFeature.update_forward_refs()
|
|
1849
|
-
MockPaywallAddonFragment.update_forward_refs()
|
|
1850
|
-
MockPaywallAddonFragmentEntitlements.update_forward_refs()
|
|
1851
|
-
MockPaywallAddonFragmentPrices.update_forward_refs()
|
|
1852
|
-
MockPaywallPlanFragment.update_forward_refs()
|
|
1853
|
-
MockPaywallPlanFragmentProduct.update_forward_refs()
|
|
1854
|
-
MockPaywallPlanFragmentBasePlan.update_forward_refs()
|
|
1855
|
-
MockPaywallPlanFragmentEntitlements.update_forward_refs()
|
|
1856
|
-
MockPaywallPlanFragmentInheritedEntitlements.update_forward_refs()
|
|
1857
|
-
MockPaywallPlanFragmentPrices.update_forward_refs()
|
|
1858
|
-
MockPaywallPlanFragmentDefaultTrialConfig.update_forward_refs()
|
|
1859
|
-
MockPaywallPlanFragmentCompatibleAddons.update_forward_refs()
|
|
1860
|
-
PaywallCalculatedPricePointsFragment.update_forward_refs()
|
|
1861
|
-
PaywallCalculatedPricePointsFragmentFeature.update_forward_refs()
|
|
1862
|
-
PaywallConfigurationFragment.update_forward_refs()
|
|
1863
|
-
PaywallConfigurationFragmentPalette.update_forward_refs()
|
|
1864
|
-
PaywallConfigurationFragmentTypography.update_forward_refs()
|
|
1865
|
-
PaywallConfigurationFragmentLayout.update_forward_refs()
|
|
1866
|
-
PaywallCurrencyFragment.update_forward_refs()
|
|
1867
|
-
PaywallFragment.update_forward_refs()
|
|
1868
|
-
PaywallFragmentPlans.update_forward_refs()
|
|
1869
|
-
PaywallFragmentCurrency.update_forward_refs()
|
|
1870
|
-
PaywallFragmentConfiguration.update_forward_refs()
|
|
1871
|
-
PaywallFragmentCustomer.update_forward_refs()
|
|
1872
|
-
PaywallFragmentActiveSubscriptions.update_forward_refs()
|
|
1873
|
-
PaywallFragmentResource.update_forward_refs()
|
|
1874
|
-
PaywallFragmentPaywallCalculatedPricePoints.update_forward_refs()
|
|
1875
|
-
SlimSubscriptionFragment.update_forward_refs()
|
|
1876
|
-
SlimSubscriptionFragmentLatestInvoice.update_forward_refs()
|
|
1877
|
-
SlimSubscriptionFragmentResource.update_forward_refs()
|
|
1878
|
-
SlimSubscriptionFragmentExperimentInfo.update_forward_refs()
|
|
1879
|
-
SlimSubscriptionFragmentPrices.update_forward_refs()
|
|
1880
|
-
SlimSubscriptionFragmentPricesPrice.update_forward_refs()
|
|
1881
|
-
SlimSubscriptionFragmentTotalPrice.update_forward_refs()
|
|
1882
|
-
SlimSubscriptionFragmentPlan.update_forward_refs()
|
|
1883
|
-
SlimSubscriptionFragmentAddons.update_forward_refs()
|
|
1884
|
-
SlimSubscriptionFragmentAddonsAddon.update_forward_refs()
|
|
1885
|
-
SlimSubscriptionFragmentCustomer.update_forward_refs()
|
|
1886
|
-
SubscriptionPreviewFragment.update_forward_refs()
|
|
1887
|
-
SubscriptionPreviewFragmentSubTotal.update_forward_refs()
|
|
1888
|
-
SubscriptionPreviewFragmentTotalExcludingTax.update_forward_refs()
|
|
1889
|
-
SubscriptionPreviewFragmentTotal.update_forward_refs()
|
|
1890
|
-
SubscriptionPreviewFragmentDiscountAmount.update_forward_refs()
|
|
1891
|
-
SubscriptionPreviewFragmentTaxDetails.update_forward_refs()
|
|
1892
|
-
SubscriptionPreviewFragmentTax.update_forward_refs()
|
|
1893
|
-
SubscriptionPreviewFragmentBillingPeriodRange.update_forward_refs()
|
|
1894
|
-
SubscriptionPreviewFragmentDiscount.update_forward_refs()
|
|
1895
|
-
SubscriptionPreviewFragmentSubscription.update_forward_refs()
|
|
1896
|
-
SubscriptionPreviewFragmentSubscriptionSubTotal.update_forward_refs()
|
|
1897
|
-
SubscriptionPreviewFragmentSubscriptionTotalExcludingTax.update_forward_refs()
|
|
1898
|
-
SubscriptionPreviewFragmentSubscriptionTotal.update_forward_refs()
|
|
1899
|
-
SubscriptionPreviewFragmentSubscriptionTax.update_forward_refs()
|
|
1900
|
-
SubscriptionPreviewFragmentSubscriptionDiscountAmount.update_forward_refs()
|
|
1901
|
-
SubscriptionPreviewFragmentSubscriptionTaxDetails.update_forward_refs()
|
|
1902
|
-
SubscriptionPreviewFragmentSubscriptionDiscount.update_forward_refs()
|
|
1903
|
-
SubscriptionPreviewFragmentProration.update_forward_refs()
|
|
1904
|
-
SubscriptionPreviewFragmentProrationCredit.update_forward_refs()
|
|
1905
|
-
SubscriptionPreviewFragmentProrationDebit.update_forward_refs()
|
|
1906
|
-
SubscriptionPreviewFragmentProrationNetAmount.update_forward_refs()
|
|
1907
|
-
SubscriptionPreviewFragmentCredits.update_forward_refs()
|
|
1908
|
-
SubscriptionPreviewFragmentCreditsInitial.update_forward_refs()
|
|
1909
|
-
SubscriptionPreviewFragmentCreditsUsed.update_forward_refs()
|
|
1910
|
-
SubscriptionPreviewFragmentCreditsRemaining.update_forward_refs()
|
|
1911
|
-
SubscriptionPreviewInvoiceFragment.update_forward_refs()
|
|
1912
|
-
SubscriptionPreviewInvoiceFragmentTotal.update_forward_refs()
|
|
1913
|
-
SubscriptionPreviewInvoiceFragmentSubTotal.update_forward_refs()
|
|
1914
|
-
SubscriptionPreviewInvoiceFragmentTotalExcludingTax.update_forward_refs()
|
|
1915
|
-
SubscriptionPreviewInvoiceFragmentTax.update_forward_refs()
|
|
1916
|
-
SubscriptionPreviewInvoiceFragmentDiscount.update_forward_refs()
|
|
1917
|
-
SubscriptionPreviewInvoiceFragmentTaxDetails.update_forward_refs()
|
|
1918
|
-
SubscriptionPreviewInvoiceFragmentDiscountDetails.update_forward_refs()
|
|
1919
|
-
SubscriptionPreviewV2Fragment.update_forward_refs()
|
|
1920
|
-
SubscriptionPreviewV2FragmentImmediateInvoice.update_forward_refs()
|
|
1921
|
-
SubscriptionPreviewV2FragmentRecurringInvoice.update_forward_refs()
|
|
1922
|
-
SubscriptionPreviewV2FragmentBillingPeriodRange.update_forward_refs()
|
|
1923
|
-
UsageHistoryFragment.update_forward_refs()
|
|
1924
|
-
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()
|