stigg-api-client-v2 3.36.0__py3-none-any.whl → 3.39.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.
Potentially problematic release.
This version of stigg-api-client-v2 might be problematic. Click here for more details.
- stigg/generated/__init__.py +19 -0
- stigg/generated/async_client.py +124 -0
- stigg/generated/client.py +122 -0
- stigg/generated/enums.py +1 -0
- stigg/generated/fragments.py +329 -282
- 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.39.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.39.0.dist-info}/RECORD +12 -9
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.39.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.36.0.dist-info → stigg_api_client_v2-3.39.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,
|
|
@@ -313,10 +314,6 @@ class EntitlementFragmentFeature(FeatureFragment):
|
|
|
313
314
|
pass
|
|
314
315
|
|
|
315
316
|
|
|
316
|
-
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
317
|
-
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
318
|
-
|
|
319
|
-
|
|
320
317
|
class TotalPriceFragment(BaseModel):
|
|
321
318
|
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
322
319
|
total: "TotalPriceFragmentTotal"
|
|
@@ -349,124 +346,8 @@ class SlimCustomerFragment(BaseModel):
|
|
|
349
346
|
)
|
|
350
347
|
|
|
351
348
|
|
|
352
|
-
class
|
|
353
|
-
|
|
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
|
|
349
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
350
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
470
351
|
|
|
471
352
|
|
|
472
353
|
class SubscriptionInvoiceFragment(BaseModel):
|
|
@@ -497,49 +378,45 @@ class SubscriptionInvoiceFragment(BaseModel):
|
|
|
497
378
|
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
498
379
|
|
|
499
380
|
|
|
500
|
-
class
|
|
501
|
-
resource_id: str = Field(alias="resourceId")
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
class SubscriptionScheduledUpdateData(BaseModel):
|
|
381
|
+
class SubscriptionFutureUpdateData(BaseModel):
|
|
505
382
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
506
383
|
alias="subscriptionScheduleType"
|
|
507
384
|
)
|
|
508
385
|
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
509
386
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
510
|
-
target_package: Optional["
|
|
387
|
+
target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
|
|
511
388
|
alias="targetPackage", default=None
|
|
512
389
|
)
|
|
513
390
|
schedule_variables: Optional[
|
|
514
391
|
Annotated[
|
|
515
392
|
Union[
|
|
516
|
-
"
|
|
517
|
-
"
|
|
518
|
-
"
|
|
519
|
-
"
|
|
520
|
-
"
|
|
521
|
-
"
|
|
522
|
-
"
|
|
523
|
-
"
|
|
393
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
|
|
394
|
+
"SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
395
|
+
"SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
396
|
+
"SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
|
|
397
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
398
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
|
|
399
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
400
|
+
"SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
524
401
|
],
|
|
525
402
|
Field(discriminator="typename__"),
|
|
526
403
|
]
|
|
527
404
|
] = Field(alias="scheduleVariables", default=None)
|
|
528
405
|
|
|
529
406
|
|
|
530
|
-
class
|
|
407
|
+
class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
|
|
531
408
|
id: Any
|
|
532
409
|
ref_id: str = Field(alias="refId")
|
|
533
410
|
display_name: str = Field(alias="displayName")
|
|
534
411
|
|
|
535
412
|
|
|
536
|
-
class
|
|
413
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
537
414
|
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
538
415
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
539
416
|
new_quantity: float = Field(alias="newQuantity")
|
|
540
417
|
|
|
541
418
|
|
|
542
|
-
class
|
|
419
|
+
class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
543
420
|
BaseModel
|
|
544
421
|
):
|
|
545
422
|
typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
@@ -547,55 +424,53 @@ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVa
|
|
|
547
424
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
548
425
|
|
|
549
426
|
|
|
550
|
-
class
|
|
427
|
+
class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
|
|
551
428
|
BaseModel
|
|
552
429
|
):
|
|
553
430
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
554
431
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
555
432
|
|
|
556
433
|
|
|
557
|
-
class
|
|
434
|
+
class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
|
|
558
435
|
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
559
436
|
|
|
560
437
|
|
|
561
|
-
class
|
|
562
|
-
BaseModel
|
|
563
|
-
):
|
|
438
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
|
|
564
439
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
565
440
|
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
566
441
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
567
442
|
billable_features: Optional[
|
|
568
443
|
List[
|
|
569
|
-
"
|
|
444
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
|
|
570
445
|
]
|
|
571
446
|
] = Field(alias="billableFeatures", default=None)
|
|
572
447
|
addons: Optional[
|
|
573
448
|
List[
|
|
574
|
-
"
|
|
449
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
|
|
575
450
|
]
|
|
576
451
|
] = Field(default=None)
|
|
577
452
|
price_overrides: Optional[
|
|
578
453
|
List[
|
|
579
|
-
"
|
|
454
|
+
"SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
|
|
580
455
|
]
|
|
581
456
|
] = Field(alias="priceOverrides", default=None)
|
|
582
457
|
|
|
583
458
|
|
|
584
|
-
class
|
|
459
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
585
460
|
BaseModel
|
|
586
461
|
):
|
|
587
462
|
feature_id: str = Field(alias="featureId")
|
|
588
463
|
quantity: float
|
|
589
464
|
|
|
590
465
|
|
|
591
|
-
class
|
|
466
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
|
|
592
467
|
BaseModel
|
|
593
468
|
):
|
|
594
469
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
595
470
|
quantity: float
|
|
596
471
|
|
|
597
472
|
|
|
598
|
-
class
|
|
473
|
+
class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
|
|
599
474
|
BaseModel
|
|
600
475
|
):
|
|
601
476
|
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
@@ -603,43 +478,39 @@ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPr
|
|
|
603
478
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
604
479
|
|
|
605
480
|
|
|
606
|
-
class
|
|
481
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
|
|
607
482
|
typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
|
|
608
483
|
plan_ref_id: str = Field(alias="planRefId")
|
|
609
484
|
change_type: PlanChangeType = Field(alias="changeType")
|
|
610
485
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
611
486
|
billable_features: Optional[
|
|
612
487
|
List[
|
|
613
|
-
"
|
|
488
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
|
|
614
489
|
]
|
|
615
490
|
] = Field(alias="billableFeatures", default=None)
|
|
616
491
|
addons: Optional[
|
|
617
|
-
List[
|
|
618
|
-
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
|
|
619
|
-
]
|
|
492
|
+
List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
|
|
620
493
|
] = Field(default=None)
|
|
621
494
|
price_overrides: Optional[
|
|
622
495
|
List[
|
|
623
|
-
"
|
|
496
|
+
"SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
624
497
|
]
|
|
625
498
|
] = Field(alias="priceOverrides", default=None)
|
|
626
499
|
|
|
627
500
|
|
|
628
|
-
class
|
|
501
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
629
502
|
BaseModel
|
|
630
503
|
):
|
|
631
504
|
feature_id: str = Field(alias="featureId")
|
|
632
505
|
quantity: float
|
|
633
506
|
|
|
634
507
|
|
|
635
|
-
class
|
|
636
|
-
BaseModel
|
|
637
|
-
):
|
|
508
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
|
|
638
509
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
639
510
|
quantity: float
|
|
640
511
|
|
|
641
512
|
|
|
642
|
-
class
|
|
513
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
643
514
|
BaseModel
|
|
644
515
|
):
|
|
645
516
|
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
@@ -647,7 +518,7 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOv
|
|
|
647
518
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
648
519
|
|
|
649
520
|
|
|
650
|
-
class
|
|
521
|
+
class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
651
522
|
BaseModel
|
|
652
523
|
):
|
|
653
524
|
typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
@@ -655,53 +526,171 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVar
|
|
|
655
526
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
656
527
|
|
|
657
528
|
|
|
658
|
-
class
|
|
659
|
-
BaseModel
|
|
660
|
-
):
|
|
529
|
+
class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
|
|
661
530
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
662
531
|
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
663
532
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
664
533
|
|
|
665
534
|
|
|
666
|
-
class
|
|
535
|
+
class ProductFragment(BaseModel):
|
|
536
|
+
ref_id: str = Field(alias="refId")
|
|
537
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
538
|
+
description: Optional[str] = Field(default=None)
|
|
539
|
+
additional_meta_data: Optional[Any] = Field(
|
|
540
|
+
alias="additionalMetaData", default=None
|
|
541
|
+
)
|
|
542
|
+
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
class ProductFragmentProductSettings(BaseModel):
|
|
546
|
+
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
547
|
+
alias="downgradePlan", default=None
|
|
548
|
+
)
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
552
|
+
ref_id: str = Field(alias="refId")
|
|
553
|
+
display_name: str = Field(alias="displayName")
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
557
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
558
|
+
display_name: str = Field(alias="displayName")
|
|
559
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
560
|
+
default=None
|
|
561
|
+
)
|
|
562
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
566
|
+
pass
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
570
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
571
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
class PlanFragment(BaseModel):
|
|
575
|
+
id: Any
|
|
576
|
+
ref_id: str = Field(alias="refId")
|
|
577
|
+
display_name: str = Field(alias="displayName")
|
|
578
|
+
description: Optional[str] = Field(default=None)
|
|
579
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
580
|
+
version_number: int = Field(alias="versionNumber")
|
|
581
|
+
additional_meta_data: Optional[Any] = Field(
|
|
582
|
+
alias="additionalMetaData", default=None
|
|
583
|
+
)
|
|
584
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
585
|
+
alias="hiddenFromWidgets", default=None
|
|
586
|
+
)
|
|
587
|
+
product: "PlanFragmentProduct"
|
|
588
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
589
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
590
|
+
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
591
|
+
alias="inheritedEntitlements", default=None
|
|
592
|
+
)
|
|
593
|
+
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
594
|
+
alias="compatibleAddons", default=None
|
|
595
|
+
)
|
|
596
|
+
compatible_package_groups: Optional[
|
|
597
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
598
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
599
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
600
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
601
|
+
alias="overagePrices", default=None
|
|
602
|
+
)
|
|
603
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
604
|
+
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
605
|
+
alias="defaultTrialConfig", default=None
|
|
606
|
+
)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
class PlanFragmentProduct(ProductFragment):
|
|
610
|
+
pass
|
|
611
|
+
|
|
612
|
+
|
|
613
|
+
class PlanFragmentBasePlan(BaseModel):
|
|
614
|
+
ref_id: str = Field(alias="refId")
|
|
615
|
+
display_name: str = Field(alias="displayName")
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
619
|
+
pass
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
623
|
+
pass
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
627
|
+
pass
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
631
|
+
pass
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
class PlanFragmentPrices(PriceFragment):
|
|
635
|
+
pass
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
639
|
+
pass
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
643
|
+
duration: float
|
|
644
|
+
units: TrialPeriodUnits
|
|
645
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
646
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
647
|
+
alias="trialEndBehavior", default=None
|
|
648
|
+
)
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
652
|
+
limit: float
|
|
653
|
+
|
|
654
|
+
|
|
655
|
+
class SubscriptionScheduledUpdateData(BaseModel):
|
|
667
656
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
668
657
|
alias="subscriptionScheduleType"
|
|
669
658
|
)
|
|
670
659
|
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
671
660
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
672
|
-
target_package: Optional["
|
|
661
|
+
target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
|
|
673
662
|
alias="targetPackage", default=None
|
|
674
663
|
)
|
|
675
664
|
schedule_variables: Optional[
|
|
676
665
|
Annotated[
|
|
677
666
|
Union[
|
|
678
|
-
"
|
|
679
|
-
"
|
|
680
|
-
"
|
|
681
|
-
"
|
|
682
|
-
"
|
|
683
|
-
"
|
|
684
|
-
"
|
|
685
|
-
"
|
|
667
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
|
|
668
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
|
|
669
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
|
|
670
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
|
|
671
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
|
|
672
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
|
|
673
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
|
|
674
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
|
|
686
675
|
],
|
|
687
676
|
Field(discriminator="typename__"),
|
|
688
677
|
]
|
|
689
678
|
] = Field(alias="scheduleVariables", default=None)
|
|
690
679
|
|
|
691
680
|
|
|
692
|
-
class
|
|
681
|
+
class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
|
|
693
682
|
id: Any
|
|
694
683
|
ref_id: str = Field(alias="refId")
|
|
695
684
|
display_name: str = Field(alias="displayName")
|
|
696
685
|
|
|
697
686
|
|
|
698
|
-
class
|
|
687
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
|
|
699
688
|
typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
|
|
700
689
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
701
690
|
new_quantity: float = Field(alias="newQuantity")
|
|
702
691
|
|
|
703
692
|
|
|
704
|
-
class
|
|
693
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
|
|
705
694
|
BaseModel
|
|
706
695
|
):
|
|
707
696
|
typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
@@ -709,53 +698,55 @@ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVaria
|
|
|
709
698
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
710
699
|
|
|
711
700
|
|
|
712
|
-
class
|
|
701
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
|
|
713
702
|
BaseModel
|
|
714
703
|
):
|
|
715
704
|
typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
|
|
716
705
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
717
706
|
|
|
718
707
|
|
|
719
|
-
class
|
|
708
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
|
|
720
709
|
typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
|
|
721
710
|
|
|
722
711
|
|
|
723
|
-
class
|
|
712
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
|
|
713
|
+
BaseModel
|
|
714
|
+
):
|
|
724
715
|
typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
|
|
725
716
|
downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
|
|
726
717
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
727
718
|
billable_features: Optional[
|
|
728
719
|
List[
|
|
729
|
-
"
|
|
720
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
|
|
730
721
|
]
|
|
731
722
|
] = Field(alias="billableFeatures", default=None)
|
|
732
723
|
addons: Optional[
|
|
733
724
|
List[
|
|
734
|
-
"
|
|
725
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
|
|
735
726
|
]
|
|
736
727
|
] = Field(default=None)
|
|
737
728
|
price_overrides: Optional[
|
|
738
729
|
List[
|
|
739
|
-
"
|
|
730
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
|
|
740
731
|
]
|
|
741
732
|
] = Field(alias="priceOverrides", default=None)
|
|
742
733
|
|
|
743
734
|
|
|
744
|
-
class
|
|
735
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
|
|
745
736
|
BaseModel
|
|
746
737
|
):
|
|
747
738
|
feature_id: str = Field(alias="featureId")
|
|
748
739
|
quantity: float
|
|
749
740
|
|
|
750
741
|
|
|
751
|
-
class
|
|
742
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
|
|
752
743
|
BaseModel
|
|
753
744
|
):
|
|
754
745
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
755
746
|
quantity: float
|
|
756
747
|
|
|
757
748
|
|
|
758
|
-
class
|
|
749
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
|
|
759
750
|
BaseModel
|
|
760
751
|
):
|
|
761
752
|
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
@@ -763,39 +754,43 @@ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPrice
|
|
|
763
754
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
764
755
|
|
|
765
756
|
|
|
766
|
-
class
|
|
757
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
|
|
767
758
|
typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
|
|
768
759
|
plan_ref_id: str = Field(alias="planRefId")
|
|
769
760
|
change_type: PlanChangeType = Field(alias="changeType")
|
|
770
761
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
771
762
|
billable_features: Optional[
|
|
772
763
|
List[
|
|
773
|
-
"
|
|
764
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
|
|
774
765
|
]
|
|
775
766
|
] = Field(alias="billableFeatures", default=None)
|
|
776
767
|
addons: Optional[
|
|
777
|
-
List[
|
|
768
|
+
List[
|
|
769
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
|
|
770
|
+
]
|
|
778
771
|
] = Field(default=None)
|
|
779
772
|
price_overrides: Optional[
|
|
780
773
|
List[
|
|
781
|
-
"
|
|
774
|
+
"SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
|
|
782
775
|
]
|
|
783
776
|
] = Field(alias="priceOverrides", default=None)
|
|
784
777
|
|
|
785
778
|
|
|
786
|
-
class
|
|
779
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
|
|
787
780
|
BaseModel
|
|
788
781
|
):
|
|
789
782
|
feature_id: str = Field(alias="featureId")
|
|
790
783
|
quantity: float
|
|
791
784
|
|
|
792
785
|
|
|
793
|
-
class
|
|
786
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
|
|
787
|
+
BaseModel
|
|
788
|
+
):
|
|
794
789
|
addon_ref_id: str = Field(alias="addonRefId")
|
|
795
790
|
quantity: float
|
|
796
791
|
|
|
797
792
|
|
|
798
|
-
class
|
|
793
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
|
|
799
794
|
BaseModel
|
|
800
795
|
):
|
|
801
796
|
plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
|
|
@@ -803,7 +798,7 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverr
|
|
|
803
798
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
804
799
|
|
|
805
800
|
|
|
806
|
-
class
|
|
801
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
|
|
807
802
|
BaseModel
|
|
808
803
|
):
|
|
809
804
|
typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
|
|
@@ -811,12 +806,18 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariab
|
|
|
811
806
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
812
807
|
|
|
813
808
|
|
|
814
|
-
class
|
|
809
|
+
class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
810
|
+
BaseModel
|
|
811
|
+
):
|
|
815
812
|
typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
|
|
816
813
|
new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
|
|
817
814
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
818
815
|
|
|
819
816
|
|
|
817
|
+
class CustomerResourceFragment(BaseModel):
|
|
818
|
+
resource_id: str = Field(alias="resourceId")
|
|
819
|
+
|
|
820
|
+
|
|
820
821
|
class SubscriptionFragment(BaseModel):
|
|
821
822
|
id: Any
|
|
822
823
|
subscription_id: str = Field(alias="subscriptionId")
|
|
@@ -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,46 +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)
|
|
1278
|
-
display_name: str = Field(alias="displayName")
|
|
1279
|
-
quantity: int
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1283
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1284
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1285
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1286
|
-
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1287
|
-
default=None
|
|
1288
|
-
)
|
|
1289
|
-
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1290
|
-
alias="creditRate", default=None
|
|
1291
|
-
)
|
|
1292
|
-
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1293
|
-
default=None
|
|
1294
|
-
)
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1298
|
-
amount: float
|
|
1299
|
-
currency: Currency
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1303
|
-
amount: float
|
|
1304
|
-
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1308
|
-
id: Any
|
|
1309
|
-
ref_id: str = Field(alias="refId")
|
|
1320
|
+
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1310
1321
|
display_name: str = Field(alias="displayName")
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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)
|
|
1315
1328
|
|
|
1316
1329
|
|
|
1317
1330
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
@@ -1483,6 +1496,48 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
|
|
|
1483
1496
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1484
1497
|
|
|
1485
1498
|
|
|
1499
|
+
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1500
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1501
|
+
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1502
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1503
|
+
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1504
|
+
default=None
|
|
1505
|
+
)
|
|
1506
|
+
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1507
|
+
alias="creditRate", default=None
|
|
1508
|
+
)
|
|
1509
|
+
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1510
|
+
default=None
|
|
1511
|
+
)
|
|
1512
|
+
|
|
1513
|
+
|
|
1514
|
+
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1515
|
+
amount: float
|
|
1516
|
+
currency: Currency
|
|
1517
|
+
|
|
1518
|
+
|
|
1519
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1520
|
+
amount: float
|
|
1521
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1522
|
+
|
|
1523
|
+
|
|
1524
|
+
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1525
|
+
id: Any
|
|
1526
|
+
ref_id: str = Field(alias="refId")
|
|
1527
|
+
display_name: str = Field(alias="displayName")
|
|
1528
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1529
|
+
feature_units_plural: Optional[str] = Field(
|
|
1530
|
+
alias="featureUnitsPlural", default=None
|
|
1531
|
+
)
|
|
1532
|
+
|
|
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"]
|
|
@@ -2880,33 +2925,35 @@ PackageEntitlementFragment.model_rebuild()
|
|
|
2880
2925
|
AddonFragment.model_rebuild()
|
|
2881
2926
|
FeatureFragment.model_rebuild()
|
|
2882
2927
|
EntitlementFragment.model_rebuild()
|
|
2883
|
-
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2884
2928
|
TotalPriceFragment.model_rebuild()
|
|
2885
2929
|
SlimCustomerFragment.model_rebuild()
|
|
2930
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2931
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
2932
|
+
SubscriptionFutureUpdateData.model_rebuild()
|
|
2886
2933
|
ProductFragment.model_rebuild()
|
|
2887
2934
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2888
2935
|
PlanFragment.model_rebuild()
|
|
2889
|
-
SubscriptionInvoiceFragment.model_rebuild()
|
|
2890
|
-
CustomerResourceFragment.model_rebuild()
|
|
2891
2936
|
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2892
|
-
|
|
2937
|
+
CustomerResourceFragment.model_rebuild()
|
|
2893
2938
|
SubscriptionFragment.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
|
-
|
|
2906
|
-
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2952
|
+
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
2907
2953
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
2954
|
+
CustomerPortalSubscriptionPriceFragment.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()
|