stigg-api-client-v2 3.36.0__py3-none-any.whl → 3.38.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/generated/__init__.py +19 -0
- stigg/generated/async_client.py +124 -0
- stigg/generated/client.py +122 -0
- stigg/generated/fragments.py +468 -421
- stigg/generated/get_credit_balance.py +20 -0
- stigg/generated/get_credit_grants.py +20 -0
- stigg/generated/grant_credits.py +20 -0
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.38.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.38.0.dist-info}/RECORD +11 -8
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.38.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.38.0.dist-info}/WHEEL +0 -0
stigg/generated/fragments.py
CHANGED
|
@@ -15,6 +15,7 @@ from .enums import (
|
|
|
15
15
|
BillingVendorIdentifier,
|
|
16
16
|
CouponStatus,
|
|
17
17
|
CouponType,
|
|
18
|
+
CreditGrantType,
|
|
18
19
|
Currency,
|
|
19
20
|
DiscountDurationType,
|
|
20
21
|
DiscountType,
|
|
@@ -60,6 +61,40 @@ class AddonDependencyFragment(BaseModel):
|
|
|
60
61
|
description: Optional[str] = Field(default=None)
|
|
61
62
|
|
|
62
63
|
|
|
64
|
+
class PackageEntitlementFragment(BaseModel):
|
|
65
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
66
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
67
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
68
|
+
feature_id: str = Field(alias="featureId")
|
|
69
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
70
|
+
alias="resetPeriod", default=None
|
|
71
|
+
)
|
|
72
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
73
|
+
alias="hiddenFromWidgets", default=None
|
|
74
|
+
)
|
|
75
|
+
is_custom: Optional[bool] = Field(alias="isCustom", default=None)
|
|
76
|
+
display_name_override: Optional[str] = Field(
|
|
77
|
+
alias="displayNameOverride", default=None
|
|
78
|
+
)
|
|
79
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
80
|
+
feature: "PackageEntitlementFragmentFeature"
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
class PackageEntitlementFragmentFeature(BaseModel):
|
|
84
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
85
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
86
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
87
|
+
feature_units_plural: Optional[str] = Field(
|
|
88
|
+
alias="featureUnitsPlural", default=None
|
|
89
|
+
)
|
|
90
|
+
display_name: str = Field(alias="displayName")
|
|
91
|
+
description: Optional[str] = Field(default=None)
|
|
92
|
+
ref_id: str = Field(alias="refId")
|
|
93
|
+
additional_meta_data: Optional[Any] = Field(
|
|
94
|
+
alias="additionalMetaData", default=None
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
|
|
63
98
|
class PriceTierFragment(BaseModel):
|
|
64
99
|
up_to: Optional[float] = Field(alias="upTo", default=None)
|
|
65
100
|
unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
|
|
@@ -156,40 +191,6 @@ class OveragePriceFragmentFeature(BaseModel):
|
|
|
156
191
|
description: Optional[str] = Field(default=None)
|
|
157
192
|
|
|
158
193
|
|
|
159
|
-
class PackageEntitlementFragment(BaseModel):
|
|
160
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
161
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
162
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
163
|
-
feature_id: str = Field(alias="featureId")
|
|
164
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
165
|
-
alias="resetPeriod", default=None
|
|
166
|
-
)
|
|
167
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
168
|
-
alias="hiddenFromWidgets", default=None
|
|
169
|
-
)
|
|
170
|
-
is_custom: Optional[bool] = Field(alias="isCustom", default=None)
|
|
171
|
-
display_name_override: Optional[str] = Field(
|
|
172
|
-
alias="displayNameOverride", default=None
|
|
173
|
-
)
|
|
174
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
175
|
-
feature: "PackageEntitlementFragmentFeature"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
class PackageEntitlementFragmentFeature(BaseModel):
|
|
179
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
180
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
181
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
182
|
-
feature_units_plural: Optional[str] = Field(
|
|
183
|
-
alias="featureUnitsPlural", default=None
|
|
184
|
-
)
|
|
185
|
-
display_name: str = Field(alias="displayName")
|
|
186
|
-
description: Optional[str] = Field(default=None)
|
|
187
|
-
ref_id: str = Field(alias="refId")
|
|
188
|
-
additional_meta_data: Optional[Any] = Field(
|
|
189
|
-
alias="additionalMetaData", default=None
|
|
190
|
-
)
|
|
191
|
-
|
|
192
|
-
|
|
193
194
|
class AddonFragment(BaseModel):
|
|
194
195
|
id: Any
|
|
195
196
|
ref_id: str = Field(alias="refId")
|
|
@@ -207,298 +208,25 @@ class AddonFragment(BaseModel):
|
|
|
207
208
|
overage_prices: Optional[List["AddonFragmentOveragePrices"]] = Field(
|
|
208
209
|
alias="overagePrices", default=None
|
|
209
210
|
)
|
|
210
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
211
|
-
max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
|
|
212
|
-
dependencies: Optional[List["AddonFragmentDependencies"]] = Field(default=None)
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
class AddonFragmentEntitlements(PackageEntitlementFragment):
|
|
216
|
-
pass
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
class AddonFragmentPrices(PriceFragment):
|
|
220
|
-
pass
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
class AddonFragmentOveragePrices(OveragePriceFragment):
|
|
224
|
-
pass
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
class AddonFragmentDependencies(AddonDependencyFragment):
|
|
228
|
-
pass
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
class FeatureFragment(BaseModel):
|
|
232
|
-
typename__: str = Field(alias="__typename")
|
|
233
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
234
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
235
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
236
|
-
feature_units_plural: Optional[str] = Field(
|
|
237
|
-
alias="featureUnitsPlural", default=None
|
|
238
|
-
)
|
|
239
|
-
description: Optional[str] = Field(default=None)
|
|
240
|
-
display_name: str = Field(alias="displayName")
|
|
241
|
-
ref_id: str = Field(alias="refId")
|
|
242
|
-
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
243
|
-
alias="unitTransformation", default=None
|
|
244
|
-
)
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
class FeatureFragmentUnitTransformation(BaseModel):
|
|
248
|
-
divide: float
|
|
249
|
-
round: UnitTransformationRound
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
class EntitlementFragment(BaseModel):
|
|
253
|
-
typename__: str = Field(alias="__typename")
|
|
254
|
-
is_granted: bool = Field(alias="isGranted")
|
|
255
|
-
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
256
|
-
alias="accessDeniedReason", default=None
|
|
257
|
-
)
|
|
258
|
-
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
259
|
-
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
260
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
261
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
262
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
263
|
-
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
264
|
-
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
265
|
-
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
266
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
267
|
-
entitlement_updated_at: Optional[Any] = Field(
|
|
268
|
-
alias="entitlementUpdatedAt", default=None
|
|
269
|
-
)
|
|
270
|
-
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
271
|
-
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
272
|
-
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
273
|
-
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
274
|
-
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
275
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
276
|
-
alias="resetPeriod", default=None
|
|
277
|
-
)
|
|
278
|
-
reset_period_configuration: Optional[
|
|
279
|
-
Annotated[
|
|
280
|
-
Union[
|
|
281
|
-
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
282
|
-
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
283
|
-
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
284
|
-
],
|
|
285
|
-
Field(discriminator="typename__"),
|
|
286
|
-
]
|
|
287
|
-
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
288
|
-
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
292
|
-
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
293
|
-
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
294
|
-
alias="monthlyAccordingTo", default=None
|
|
295
|
-
)
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
299
|
-
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
300
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
301
|
-
alias="weeklyAccordingTo", default=None
|
|
302
|
-
)
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
306
|
-
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
307
|
-
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
308
|
-
alias="yearlyAccordingTo", default=None
|
|
309
|
-
)
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
class EntitlementFragmentFeature(FeatureFragment):
|
|
313
|
-
pass
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
317
|
-
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
class TotalPriceFragment(BaseModel):
|
|
321
|
-
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
322
|
-
total: "TotalPriceFragmentTotal"
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
class TotalPriceFragmentSubTotal(BaseModel):
|
|
326
|
-
amount: float
|
|
327
|
-
currency: Currency
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
class TotalPriceFragmentTotal(BaseModel):
|
|
331
|
-
amount: float
|
|
332
|
-
currency: Currency
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
class SlimCustomerFragment(BaseModel):
|
|
336
|
-
id: Any
|
|
337
|
-
name: Optional[str] = Field(default=None)
|
|
338
|
-
email: Optional[str] = Field(default=None)
|
|
339
|
-
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
340
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
341
|
-
ref_id: str = Field(alias="refId")
|
|
342
|
-
customer_id: str = Field(alias="customerId")
|
|
343
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
344
|
-
additional_meta_data: Optional[Any] = Field(
|
|
345
|
-
alias="additionalMetaData", default=None
|
|
346
|
-
)
|
|
347
|
-
aws_marketplace_customer_id: Optional[str] = Field(
|
|
348
|
-
alias="awsMarketplaceCustomerId", default=None
|
|
349
|
-
)
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
class ProductFragment(BaseModel):
|
|
353
|
-
ref_id: str = Field(alias="refId")
|
|
354
|
-
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
355
|
-
description: Optional[str] = Field(default=None)
|
|
356
|
-
additional_meta_data: Optional[Any] = Field(
|
|
357
|
-
alias="additionalMetaData", default=None
|
|
358
|
-
)
|
|
359
|
-
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
class ProductFragmentProductSettings(BaseModel):
|
|
363
|
-
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
364
|
-
alias="downgradePlan", default=None
|
|
365
|
-
)
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
369
|
-
ref_id: str = Field(alias="refId")
|
|
370
|
-
display_name: str = Field(alias="displayName")
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
374
|
-
package_group_id: str = Field(alias="packageGroupId")
|
|
375
|
-
display_name: str = Field(alias="displayName")
|
|
376
|
-
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
377
|
-
default=None
|
|
378
|
-
)
|
|
379
|
-
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
383
|
-
pass
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
387
|
-
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
388
|
-
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
class PlanFragment(BaseModel):
|
|
392
|
-
id: Any
|
|
393
|
-
ref_id: str = Field(alias="refId")
|
|
394
|
-
display_name: str = Field(alias="displayName")
|
|
395
|
-
description: Optional[str] = Field(default=None)
|
|
396
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
397
|
-
version_number: int = Field(alias="versionNumber")
|
|
398
|
-
additional_meta_data: Optional[Any] = Field(
|
|
399
|
-
alias="additionalMetaData", default=None
|
|
400
|
-
)
|
|
401
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
402
|
-
alias="hiddenFromWidgets", default=None
|
|
403
|
-
)
|
|
404
|
-
product: "PlanFragmentProduct"
|
|
405
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
406
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
407
|
-
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
408
|
-
alias="inheritedEntitlements", default=None
|
|
409
|
-
)
|
|
410
|
-
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
411
|
-
alias="compatibleAddons", default=None
|
|
412
|
-
)
|
|
413
|
-
compatible_package_groups: Optional[
|
|
414
|
-
List["PlanFragmentCompatiblePackageGroups"]
|
|
415
|
-
] = Field(alias="compatiblePackageGroups", default=None)
|
|
416
|
-
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
417
|
-
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
418
|
-
alias="overagePrices", default=None
|
|
419
|
-
)
|
|
420
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
421
|
-
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
422
|
-
alias="defaultTrialConfig", default=None
|
|
423
|
-
)
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
class PlanFragmentProduct(ProductFragment):
|
|
427
|
-
pass
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
class PlanFragmentBasePlan(BaseModel):
|
|
431
|
-
ref_id: str = Field(alias="refId")
|
|
432
|
-
display_name: str = Field(alias="displayName")
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
436
|
-
pass
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
440
|
-
pass
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
444
|
-
pass
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
448
|
-
pass
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
class PlanFragmentPrices(PriceFragment):
|
|
452
|
-
pass
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
456
|
-
pass
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
460
|
-
duration: float
|
|
461
|
-
units: TrialPeriodUnits
|
|
462
|
-
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
463
|
-
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
464
|
-
alias="trialEndBehavior", default=None
|
|
465
|
-
)
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
469
|
-
limit: float
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
class SubscriptionInvoiceFragment(BaseModel):
|
|
473
|
-
billing_id: str = Field(alias="billingId")
|
|
474
|
-
status: SubscriptionInvoiceStatus
|
|
475
|
-
created_at: Any = Field(alias="createdAt")
|
|
476
|
-
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
477
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
478
|
-
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
479
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
480
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
481
|
-
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
482
|
-
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
483
|
-
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
484
|
-
alias="billingReason", default=None
|
|
485
|
-
)
|
|
486
|
-
currency: Optional[str] = Field(default=None)
|
|
487
|
-
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
488
|
-
sub_total_excluding_tax: Optional[float] = Field(
|
|
489
|
-
alias="subTotalExcludingTax", default=None
|
|
490
|
-
)
|
|
491
|
-
total: Optional[float] = Field(default=None)
|
|
492
|
-
total_excluding_tax: Optional[float] = Field(
|
|
493
|
-
alias="totalExcludingTax", default=None
|
|
494
|
-
)
|
|
495
|
-
tax: Optional[float] = Field(default=None)
|
|
496
|
-
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
497
|
-
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
211
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
212
|
+
max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
|
|
213
|
+
dependencies: Optional[List["AddonFragmentDependencies"]] = Field(default=None)
|
|
498
214
|
|
|
499
215
|
|
|
500
|
-
class
|
|
501
|
-
|
|
216
|
+
class AddonFragmentEntitlements(PackageEntitlementFragment):
|
|
217
|
+
pass
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
class AddonFragmentPrices(PriceFragment):
|
|
221
|
+
pass
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
class AddonFragmentOveragePrices(OveragePriceFragment):
|
|
225
|
+
pass
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
class AddonFragmentDependencies(AddonDependencyFragment):
|
|
229
|
+
pass
|
|
502
230
|
|
|
503
231
|
|
|
504
232
|
class SubscriptionScheduledUpdateData(BaseModel):
|
|
@@ -663,6 +391,27 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
663
391
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
664
392
|
|
|
665
393
|
|
|
394
|
+
class CustomerResourceFragment(BaseModel):
|
|
395
|
+
resource_id: str = Field(alias="resourceId")
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class SlimCustomerFragment(BaseModel):
|
|
399
|
+
id: Any
|
|
400
|
+
name: Optional[str] = Field(default=None)
|
|
401
|
+
email: Optional[str] = Field(default=None)
|
|
402
|
+
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
403
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
404
|
+
ref_id: str = Field(alias="refId")
|
|
405
|
+
customer_id: str = Field(alias="customerId")
|
|
406
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
407
|
+
additional_meta_data: Optional[Any] = Field(
|
|
408
|
+
alias="additionalMetaData", default=None
|
|
409
|
+
)
|
|
410
|
+
aws_marketplace_customer_id: Optional[str] = Field(
|
|
411
|
+
alias="awsMarketplaceCustomerId", default=None
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
|
|
666
415
|
class SubscriptionFutureUpdateData(BaseModel):
|
|
667
416
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
668
417
|
alias="subscriptionScheduleType"
|
|
@@ -817,6 +566,173 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
817
566
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
818
567
|
|
|
819
568
|
|
|
569
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
570
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
571
|
+
|
|
572
|
+
|
|
573
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
574
|
+
billing_id: str = Field(alias="billingId")
|
|
575
|
+
status: SubscriptionInvoiceStatus
|
|
576
|
+
created_at: Any = Field(alias="createdAt")
|
|
577
|
+
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
578
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
579
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
580
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
581
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
582
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
583
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
584
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
585
|
+
alias="billingReason", default=None
|
|
586
|
+
)
|
|
587
|
+
currency: Optional[str] = Field(default=None)
|
|
588
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
589
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
590
|
+
alias="subTotalExcludingTax", default=None
|
|
591
|
+
)
|
|
592
|
+
total: Optional[float] = Field(default=None)
|
|
593
|
+
total_excluding_tax: Optional[float] = Field(
|
|
594
|
+
alias="totalExcludingTax", default=None
|
|
595
|
+
)
|
|
596
|
+
tax: Optional[float] = Field(default=None)
|
|
597
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
598
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
class ProductFragment(BaseModel):
|
|
602
|
+
ref_id: str = Field(alias="refId")
|
|
603
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
604
|
+
description: Optional[str] = Field(default=None)
|
|
605
|
+
additional_meta_data: Optional[Any] = Field(
|
|
606
|
+
alias="additionalMetaData", default=None
|
|
607
|
+
)
|
|
608
|
+
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
class ProductFragmentProductSettings(BaseModel):
|
|
612
|
+
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
613
|
+
alias="downgradePlan", default=None
|
|
614
|
+
)
|
|
615
|
+
|
|
616
|
+
|
|
617
|
+
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
618
|
+
ref_id: str = Field(alias="refId")
|
|
619
|
+
display_name: str = Field(alias="displayName")
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
623
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
624
|
+
display_name: str = Field(alias="displayName")
|
|
625
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
626
|
+
default=None
|
|
627
|
+
)
|
|
628
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
632
|
+
pass
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
636
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
637
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
638
|
+
|
|
639
|
+
|
|
640
|
+
class PlanFragment(BaseModel):
|
|
641
|
+
id: Any
|
|
642
|
+
ref_id: str = Field(alias="refId")
|
|
643
|
+
display_name: str = Field(alias="displayName")
|
|
644
|
+
description: Optional[str] = Field(default=None)
|
|
645
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
646
|
+
version_number: int = Field(alias="versionNumber")
|
|
647
|
+
additional_meta_data: Optional[Any] = Field(
|
|
648
|
+
alias="additionalMetaData", default=None
|
|
649
|
+
)
|
|
650
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
651
|
+
alias="hiddenFromWidgets", default=None
|
|
652
|
+
)
|
|
653
|
+
product: "PlanFragmentProduct"
|
|
654
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
655
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
656
|
+
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
657
|
+
alias="inheritedEntitlements", default=None
|
|
658
|
+
)
|
|
659
|
+
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
660
|
+
alias="compatibleAddons", default=None
|
|
661
|
+
)
|
|
662
|
+
compatible_package_groups: Optional[
|
|
663
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
664
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
665
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
666
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
667
|
+
alias="overagePrices", default=None
|
|
668
|
+
)
|
|
669
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
670
|
+
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
671
|
+
alias="defaultTrialConfig", default=None
|
|
672
|
+
)
|
|
673
|
+
|
|
674
|
+
|
|
675
|
+
class PlanFragmentProduct(ProductFragment):
|
|
676
|
+
pass
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
class PlanFragmentBasePlan(BaseModel):
|
|
680
|
+
ref_id: str = Field(alias="refId")
|
|
681
|
+
display_name: str = Field(alias="displayName")
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
685
|
+
pass
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
689
|
+
pass
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
693
|
+
pass
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
697
|
+
pass
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
class PlanFragmentPrices(PriceFragment):
|
|
701
|
+
pass
|
|
702
|
+
|
|
703
|
+
|
|
704
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
705
|
+
pass
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
709
|
+
duration: float
|
|
710
|
+
units: TrialPeriodUnits
|
|
711
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
712
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
713
|
+
alias="trialEndBehavior", default=None
|
|
714
|
+
)
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
718
|
+
limit: float
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
class TotalPriceFragment(BaseModel):
|
|
722
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
723
|
+
total: "TotalPriceFragmentTotal"
|
|
724
|
+
|
|
725
|
+
|
|
726
|
+
class TotalPriceFragmentSubTotal(BaseModel):
|
|
727
|
+
amount: float
|
|
728
|
+
currency: Currency
|
|
729
|
+
|
|
730
|
+
|
|
731
|
+
class TotalPriceFragmentTotal(BaseModel):
|
|
732
|
+
amount: float
|
|
733
|
+
currency: Currency
|
|
734
|
+
|
|
735
|
+
|
|
820
736
|
class SubscriptionFragment(BaseModel):
|
|
821
737
|
id: Any
|
|
822
738
|
subscription_id: str = Field(alias="subscriptionId")
|
|
@@ -910,19 +826,104 @@ class SubscriptionFragmentAddons(BaseModel):
|
|
|
910
826
|
addon: "SubscriptionFragmentAddonsAddon"
|
|
911
827
|
|
|
912
828
|
|
|
913
|
-
class SubscriptionFragmentAddonsAddon(AddonFragment):
|
|
914
|
-
pass
|
|
829
|
+
class SubscriptionFragmentAddonsAddon(AddonFragment):
|
|
830
|
+
pass
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
class SubscriptionFragmentScheduledUpdates(SubscriptionScheduledUpdateData):
|
|
834
|
+
pass
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
class SubscriptionFragmentFutureUpdates(SubscriptionFutureUpdateData):
|
|
838
|
+
pass
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragment):
|
|
842
|
+
pass
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
class FeatureFragment(BaseModel):
|
|
846
|
+
typename__: str = Field(alias="__typename")
|
|
847
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
848
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
849
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
850
|
+
feature_units_plural: Optional[str] = Field(
|
|
851
|
+
alias="featureUnitsPlural", default=None
|
|
852
|
+
)
|
|
853
|
+
description: Optional[str] = Field(default=None)
|
|
854
|
+
display_name: str = Field(alias="displayName")
|
|
855
|
+
ref_id: str = Field(alias="refId")
|
|
856
|
+
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
857
|
+
alias="unitTransformation", default=None
|
|
858
|
+
)
|
|
859
|
+
|
|
860
|
+
|
|
861
|
+
class FeatureFragmentUnitTransformation(BaseModel):
|
|
862
|
+
divide: float
|
|
863
|
+
round: UnitTransformationRound
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
class EntitlementFragment(BaseModel):
|
|
867
|
+
typename__: str = Field(alias="__typename")
|
|
868
|
+
is_granted: bool = Field(alias="isGranted")
|
|
869
|
+
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
870
|
+
alias="accessDeniedReason", default=None
|
|
871
|
+
)
|
|
872
|
+
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
873
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
874
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
875
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
876
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
877
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
878
|
+
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
879
|
+
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
880
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
881
|
+
entitlement_updated_at: Optional[Any] = Field(
|
|
882
|
+
alias="entitlementUpdatedAt", default=None
|
|
883
|
+
)
|
|
884
|
+
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
885
|
+
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
886
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
887
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
888
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
889
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
890
|
+
alias="resetPeriod", default=None
|
|
891
|
+
)
|
|
892
|
+
reset_period_configuration: Optional[
|
|
893
|
+
Annotated[
|
|
894
|
+
Union[
|
|
895
|
+
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
896
|
+
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
897
|
+
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
898
|
+
],
|
|
899
|
+
Field(discriminator="typename__"),
|
|
900
|
+
]
|
|
901
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
902
|
+
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
903
|
+
|
|
904
|
+
|
|
905
|
+
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
906
|
+
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
907
|
+
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
908
|
+
alias="monthlyAccordingTo", default=None
|
|
909
|
+
)
|
|
915
910
|
|
|
916
911
|
|
|
917
|
-
class
|
|
918
|
-
|
|
912
|
+
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
913
|
+
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
914
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
915
|
+
alias="weeklyAccordingTo", default=None
|
|
916
|
+
)
|
|
919
917
|
|
|
920
918
|
|
|
921
|
-
class
|
|
922
|
-
|
|
919
|
+
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
920
|
+
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
921
|
+
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
922
|
+
alias="yearlyAccordingTo", default=None
|
|
923
|
+
)
|
|
923
924
|
|
|
924
925
|
|
|
925
|
-
class
|
|
926
|
+
class EntitlementFragmentFeature(FeatureFragment):
|
|
926
927
|
pass
|
|
927
928
|
|
|
928
929
|
|
|
@@ -1003,6 +1004,35 @@ class CheckoutConfigurationFragmentContent(BaseModel):
|
|
|
1003
1004
|
)
|
|
1004
1005
|
|
|
1005
1006
|
|
|
1007
|
+
class PromotionalEntitlementFragment(BaseModel):
|
|
1008
|
+
status: PromotionalEntitlementStatus
|
|
1009
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1010
|
+
feature_id: Any = Field(alias="featureId")
|
|
1011
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1012
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1013
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1014
|
+
alias="resetPeriod", default=None
|
|
1015
|
+
)
|
|
1016
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1017
|
+
is_visible: bool = Field(alias="isVisible")
|
|
1018
|
+
feature: "PromotionalEntitlementFragmentFeature"
|
|
1019
|
+
|
|
1020
|
+
|
|
1021
|
+
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1022
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1023
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1024
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1025
|
+
feature_units_plural: Optional[str] = Field(
|
|
1026
|
+
alias="featureUnitsPlural", default=None
|
|
1027
|
+
)
|
|
1028
|
+
display_name: str = Field(alias="displayName")
|
|
1029
|
+
description: Optional[str] = Field(default=None)
|
|
1030
|
+
ref_id: str = Field(alias="refId")
|
|
1031
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1032
|
+
alias="additionalMetaData", default=None
|
|
1033
|
+
)
|
|
1034
|
+
|
|
1035
|
+
|
|
1006
1036
|
class CouponFragment(BaseModel):
|
|
1007
1037
|
id: Any
|
|
1008
1038
|
discount_value: float = Field(alias="discountValue")
|
|
@@ -1037,35 +1067,6 @@ class CouponFragmentSyncStates(BaseModel):
|
|
|
1037
1067
|
status: SyncStatus
|
|
1038
1068
|
|
|
1039
1069
|
|
|
1040
|
-
class PromotionalEntitlementFragment(BaseModel):
|
|
1041
|
-
status: PromotionalEntitlementStatus
|
|
1042
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1043
|
-
feature_id: Any = Field(alias="featureId")
|
|
1044
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1045
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1046
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1047
|
-
alias="resetPeriod", default=None
|
|
1048
|
-
)
|
|
1049
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1050
|
-
is_visible: bool = Field(alias="isVisible")
|
|
1051
|
-
feature: "PromotionalEntitlementFragmentFeature"
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1055
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1056
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1057
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1058
|
-
feature_units_plural: Optional[str] = Field(
|
|
1059
|
-
alias="featureUnitsPlural", default=None
|
|
1060
|
-
)
|
|
1061
|
-
display_name: str = Field(alias="displayName")
|
|
1062
|
-
description: Optional[str] = Field(default=None)
|
|
1063
|
-
ref_id: str = Field(alias="refId")
|
|
1064
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1065
|
-
alias="additionalMetaData", default=None
|
|
1066
|
-
)
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
1070
|
class CustomerFragment(SlimCustomerFragment):
|
|
1070
1071
|
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
1071
1072
|
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
@@ -1168,6 +1169,50 @@ class CheckoutStateFragmentBillingIntegrationCredentials(BaseModel):
|
|
|
1168
1169
|
public_key: str = Field(alias="publicKey")
|
|
1169
1170
|
|
|
1170
1171
|
|
|
1172
|
+
class CreditGrantFragment(BaseModel):
|
|
1173
|
+
grant_id: str = Field(alias="grantId")
|
|
1174
|
+
amount: float
|
|
1175
|
+
comment: Optional[str] = Field(default=None)
|
|
1176
|
+
currency_id: str = Field(alias="currencyId")
|
|
1177
|
+
customer_id: str = Field(alias="customerId")
|
|
1178
|
+
display_name: str = Field(alias="displayName")
|
|
1179
|
+
effective_at: Any = Field(alias="effectiveAt")
|
|
1180
|
+
expire_at: Optional[Any] = Field(alias="expireAt", default=None)
|
|
1181
|
+
grant_type: CreditGrantType = Field(alias="grantType")
|
|
1182
|
+
priority: float
|
|
1183
|
+
consumed_amount: float = Field(alias="consumedAmount")
|
|
1184
|
+
cost: "CreditGrantFragmentCost"
|
|
1185
|
+
created_at: Any = Field(alias="createdAt")
|
|
1186
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
1187
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
1188
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1189
|
+
alias="additionalMetaData", default=None
|
|
1190
|
+
)
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
class CreditGrantFragmentCost(BaseModel):
|
|
1194
|
+
amount: float
|
|
1195
|
+
currency: Currency
|
|
1196
|
+
|
|
1197
|
+
|
|
1198
|
+
class CreditsBalanceSummaryFragment(BaseModel):
|
|
1199
|
+
customer_id: str = Field(alias="customerId")
|
|
1200
|
+
balances: List["CreditsBalanceSummaryFragmentBalances"]
|
|
1201
|
+
|
|
1202
|
+
|
|
1203
|
+
class CreditsBalanceSummaryFragmentBalances(BaseModel):
|
|
1204
|
+
currency: "CreditsBalanceSummaryFragmentBalancesCurrency"
|
|
1205
|
+
current_balance: float = Field(alias="currentBalance")
|
|
1206
|
+
total_consumed: float = Field(alias="totalConsumed")
|
|
1207
|
+
total_granted: float = Field(alias="totalGranted")
|
|
1208
|
+
|
|
1209
|
+
|
|
1210
|
+
class CreditsBalanceSummaryFragmentBalancesCurrency(BaseModel):
|
|
1211
|
+
currency_id: str = Field(alias="currencyId")
|
|
1212
|
+
display_name: str = Field(alias="displayName")
|
|
1213
|
+
symbol: Optional[str] = Field(default=None)
|
|
1214
|
+
|
|
1215
|
+
|
|
1171
1216
|
class CustomerPortalBillingInformationFragment(BaseModel):
|
|
1172
1217
|
email: Optional[str] = Field(default=None)
|
|
1173
1218
|
name: Optional[str] = Field(default=None)
|
|
@@ -1272,11 +1317,14 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
|
1272
1317
|
pass
|
|
1273
1318
|
|
|
1274
1319
|
|
|
1275
|
-
class
|
|
1276
|
-
addon_id: str = Field(alias="addonId")
|
|
1277
|
-
description: Optional[str] = Field(default=None)
|
|
1320
|
+
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1278
1321
|
display_name: str = Field(alias="displayName")
|
|
1279
|
-
|
|
1322
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1323
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1324
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1325
|
+
period: PromotionalEntitlementPeriod
|
|
1326
|
+
start_date: Any = Field(alias="startDate")
|
|
1327
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1280
1328
|
|
|
1281
1329
|
|
|
1282
1330
|
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
@@ -1483,6 +1531,13 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
|
|
|
1483
1531
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1484
1532
|
|
|
1485
1533
|
|
|
1534
|
+
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
1535
|
+
addon_id: str = Field(alias="addonId")
|
|
1536
|
+
description: Optional[str] = Field(default=None)
|
|
1537
|
+
display_name: str = Field(alias="displayName")
|
|
1538
|
+
quantity: int
|
|
1539
|
+
|
|
1540
|
+
|
|
1486
1541
|
class CustomerPortalSubscriptionFragment(BaseModel):
|
|
1487
1542
|
subscription_id: str = Field(alias="subscriptionId")
|
|
1488
1543
|
plan_id: str = Field(alias="planId")
|
|
@@ -1587,16 +1642,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
|
|
|
1587
1642
|
pass
|
|
1588
1643
|
|
|
1589
1644
|
|
|
1590
|
-
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1591
|
-
display_name: str = Field(alias="displayName")
|
|
1592
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1593
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1594
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1595
|
-
period: PromotionalEntitlementPeriod
|
|
1596
|
-
start_date: Any = Field(alias="startDate")
|
|
1597
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
1645
|
class CustomerPortalFragment(BaseModel):
|
|
1601
1646
|
subscriptions: List["CustomerPortalFragmentSubscriptions"]
|
|
1602
1647
|
entitlements: List["CustomerPortalFragmentEntitlements"]
|
|
@@ -1824,40 +1869,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
|
|
|
1824
1869
|
description: Optional[str] = Field(default=None)
|
|
1825
1870
|
|
|
1826
1871
|
|
|
1827
|
-
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1828
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1829
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1830
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1831
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1832
|
-
alias="resetPeriod", default=None
|
|
1833
|
-
)
|
|
1834
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1835
|
-
alias="hiddenFromWidgets", default=None
|
|
1836
|
-
)
|
|
1837
|
-
display_name_override: Optional[str] = Field(
|
|
1838
|
-
alias="displayNameOverride", default=None
|
|
1839
|
-
)
|
|
1840
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
1841
|
-
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1842
|
-
default=None
|
|
1843
|
-
)
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1847
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1848
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1849
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1850
|
-
feature_units_plural: Optional[str] = Field(
|
|
1851
|
-
alias="featureUnitsPlural", default=None
|
|
1852
|
-
)
|
|
1853
|
-
display_name: str = Field(alias="displayName")
|
|
1854
|
-
description: Optional[str] = Field(default=None)
|
|
1855
|
-
ref_id: str = Field(alias="refId")
|
|
1856
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1857
|
-
alias="additionalMetaData", default=None
|
|
1858
|
-
)
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
1872
|
class MockPaywallPriceFragment(BaseModel):
|
|
1862
1873
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
1863
1874
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -1900,6 +1911,40 @@ class MockPaywallPriceFragmentFeature(BaseModel):
|
|
|
1900
1911
|
display_name: str = Field(alias="displayName")
|
|
1901
1912
|
|
|
1902
1913
|
|
|
1914
|
+
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1915
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1916
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1917
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1918
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1919
|
+
alias="resetPeriod", default=None
|
|
1920
|
+
)
|
|
1921
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1922
|
+
alias="hiddenFromWidgets", default=None
|
|
1923
|
+
)
|
|
1924
|
+
display_name_override: Optional[str] = Field(
|
|
1925
|
+
alias="displayNameOverride", default=None
|
|
1926
|
+
)
|
|
1927
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
1928
|
+
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1929
|
+
default=None
|
|
1930
|
+
)
|
|
1931
|
+
|
|
1932
|
+
|
|
1933
|
+
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1934
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1935
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1936
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1937
|
+
feature_units_plural: Optional[str] = Field(
|
|
1938
|
+
alias="featureUnitsPlural", default=None
|
|
1939
|
+
)
|
|
1940
|
+
display_name: str = Field(alias="displayName")
|
|
1941
|
+
description: Optional[str] = Field(default=None)
|
|
1942
|
+
ref_id: str = Field(alias="refId")
|
|
1943
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1944
|
+
alias="additionalMetaData", default=None
|
|
1945
|
+
)
|
|
1946
|
+
|
|
1947
|
+
|
|
1903
1948
|
class MockPaywallAddonFragment(BaseModel):
|
|
1904
1949
|
ref_id: str = Field(alias="refId")
|
|
1905
1950
|
display_name: str = Field(alias="displayName")
|
|
@@ -2873,40 +2918,42 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
2873
2918
|
|
|
2874
2919
|
|
|
2875
2920
|
AddonDependencyFragment.model_rebuild()
|
|
2921
|
+
PackageEntitlementFragment.model_rebuild()
|
|
2876
2922
|
PriceTierFragment.model_rebuild()
|
|
2877
2923
|
PriceFragment.model_rebuild()
|
|
2878
2924
|
OveragePriceFragment.model_rebuild()
|
|
2879
|
-
PackageEntitlementFragment.model_rebuild()
|
|
2880
2925
|
AddonFragment.model_rebuild()
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2884
|
-
TotalPriceFragment.model_rebuild()
|
|
2926
|
+
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2927
|
+
CustomerResourceFragment.model_rebuild()
|
|
2885
2928
|
SlimCustomerFragment.model_rebuild()
|
|
2929
|
+
SubscriptionFutureUpdateData.model_rebuild()
|
|
2930
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2931
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
2886
2932
|
ProductFragment.model_rebuild()
|
|
2887
2933
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2888
2934
|
PlanFragment.model_rebuild()
|
|
2889
|
-
|
|
2890
|
-
CustomerResourceFragment.model_rebuild()
|
|
2891
|
-
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2892
|
-
SubscriptionFutureUpdateData.model_rebuild()
|
|
2935
|
+
TotalPriceFragment.model_rebuild()
|
|
2893
2936
|
SubscriptionFragment.model_rebuild()
|
|
2937
|
+
FeatureFragment.model_rebuild()
|
|
2938
|
+
EntitlementFragment.model_rebuild()
|
|
2894
2939
|
ApplySubscriptionFragment.model_rebuild()
|
|
2895
2940
|
FontVariantFragment.model_rebuild()
|
|
2896
2941
|
TypographyConfigurationFragment.model_rebuild()
|
|
2897
2942
|
CheckoutConfigurationFragment.model_rebuild()
|
|
2898
|
-
CouponFragment.model_rebuild()
|
|
2899
2943
|
PromotionalEntitlementFragment.model_rebuild()
|
|
2944
|
+
CouponFragment.model_rebuild()
|
|
2900
2945
|
CustomerFragment.model_rebuild()
|
|
2901
2946
|
CheckoutStateFragment.model_rebuild()
|
|
2947
|
+
CreditGrantFragment.model_rebuild()
|
|
2948
|
+
CreditsBalanceSummaryFragment.model_rebuild()
|
|
2902
2949
|
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
2903
2950
|
CustomerPortalConfigurationFragment.model_rebuild()
|
|
2904
2951
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
2905
|
-
|
|
2952
|
+
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
2906
2953
|
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2907
2954
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
2955
|
+
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
2908
2956
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
2909
|
-
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
2910
2957
|
CustomerPortalFragment.model_rebuild()
|
|
2911
2958
|
CustomerStatisticsFragment.model_rebuild()
|
|
2912
2959
|
CustomerWithSubscriptionsFragment.model_rebuild()
|
|
@@ -2916,8 +2963,8 @@ EntitlementsUpdatedPayload.model_rebuild()
|
|
|
2916
2963
|
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
2917
2964
|
LayoutConfigurationFragment.model_rebuild()
|
|
2918
2965
|
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
2919
|
-
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
2920
2966
|
MockPaywallPriceFragment.model_rebuild()
|
|
2967
|
+
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
2921
2968
|
MockPaywallAddonFragment.model_rebuild()
|
|
2922
2969
|
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2923
2970
|
MockPaywallPlanFragment.model_rebuild()
|