stigg-api-client-v2 3.66.0__py3-none-any.whl → 3.70.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.

@@ -315,6 +315,10 @@ class EntitlementFragmentFeature(FeatureFragment):
315
315
  pass
316
316
 
317
317
 
318
+ class SubscriptionTrialConfigurationFragment(BaseModel):
319
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
320
+
321
+
318
322
  class SlimCustomerFragment(BaseModel):
319
323
  id: Any
320
324
  name: Optional[str] = Field(default=None)
@@ -332,32 +336,26 @@ class SlimCustomerFragment(BaseModel):
332
336
  )
333
337
 
334
338
 
335
- class SubscriptionInvoiceFragment(BaseModel):
336
- billing_id: str = Field(alias="billingId")
337
- status: SubscriptionInvoiceStatus
338
- created_at: Any = Field(alias="createdAt")
339
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
340
- updated_at: Any = Field(alias="updatedAt")
341
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
342
- requires_action: bool = Field(alias="requiresAction")
343
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
344
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
345
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
346
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
347
- alias="billingReason", default=None
348
- )
349
- currency: Optional[str] = Field(default=None)
350
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
351
- sub_total_excluding_tax: Optional[float] = Field(
352
- alias="subTotalExcludingTax", default=None
353
- )
354
- total: Optional[float] = Field(default=None)
355
- total_excluding_tax: Optional[float] = Field(
356
- alias="totalExcludingTax", default=None
339
+ class CustomerResourceFragment(BaseModel):
340
+ resource_id: str = Field(alias="resourceId")
341
+
342
+
343
+ class PlanCompatiblePackageGroupsFragment(BaseModel):
344
+ package_group_id: str = Field(alias="packageGroupId")
345
+ display_name: str = Field(alias="displayName")
346
+ addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
347
+ default=None
357
348
  )
358
- tax: Optional[float] = Field(default=None)
359
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
360
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
349
+ options: "PlanCompatiblePackageGroupsFragmentOptions"
350
+
351
+
352
+ class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
353
+ pass
354
+
355
+
356
+ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
357
+ min_items: Optional[float] = Field(alias="minItems", default=None)
358
+ free_items: Optional[float] = Field(alias="freeItems", default=None)
361
359
 
362
360
 
363
361
  class ProductFragment(BaseModel):
@@ -381,24 +379,6 @@ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
381
379
  display_name: str = Field(alias="displayName")
382
380
 
383
381
 
384
- class PlanCompatiblePackageGroupsFragment(BaseModel):
385
- package_group_id: str = Field(alias="packageGroupId")
386
- display_name: str = Field(alias="displayName")
387
- addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
388
- default=None
389
- )
390
- options: "PlanCompatiblePackageGroupsFragmentOptions"
391
-
392
-
393
- class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
394
- pass
395
-
396
-
397
- class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
398
- min_items: Optional[float] = Field(alias="minItems", default=None)
399
- free_items: Optional[float] = Field(alias="freeItems", default=None)
400
-
401
-
402
382
  class PlanFragment(BaseModel):
403
383
  id: Any
404
384
  ref_id: str = Field(alias="refId")
@@ -480,45 +460,73 @@ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
480
460
  limit: float
481
461
 
482
462
 
483
- class SubscriptionFutureUpdateData(BaseModel):
463
+ class SubscriptionInvoiceFragment(BaseModel):
464
+ billing_id: str = Field(alias="billingId")
465
+ status: SubscriptionInvoiceStatus
466
+ created_at: Any = Field(alias="createdAt")
467
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
468
+ updated_at: Any = Field(alias="updatedAt")
469
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
470
+ requires_action: bool = Field(alias="requiresAction")
471
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
472
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
473
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
474
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
475
+ alias="billingReason", default=None
476
+ )
477
+ currency: Optional[str] = Field(default=None)
478
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
479
+ sub_total_excluding_tax: Optional[float] = Field(
480
+ alias="subTotalExcludingTax", default=None
481
+ )
482
+ total: Optional[float] = Field(default=None)
483
+ total_excluding_tax: Optional[float] = Field(
484
+ alias="totalExcludingTax", default=None
485
+ )
486
+ tax: Optional[float] = Field(default=None)
487
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
488
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
489
+
490
+
491
+ class SubscriptionScheduledUpdateData(BaseModel):
484
492
  subscription_schedule_type: SubscriptionScheduleType = Field(
485
493
  alias="subscriptionScheduleType"
486
494
  )
487
495
  schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
488
496
  scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
489
- target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
497
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
490
498
  alias="targetPackage", default=None
491
499
  )
492
500
  schedule_variables: Optional[
493
501
  Annotated[
494
502
  Union[
495
- "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
496
- "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
497
- "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
498
- "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
499
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
500
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
501
- "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
502
- "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
503
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
504
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
505
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
506
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
507
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
508
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
509
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
510
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
503
511
  ],
504
512
  Field(discriminator="typename__"),
505
513
  ]
506
514
  ] = Field(alias="scheduleVariables", default=None)
507
515
 
508
516
 
509
- class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
517
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
510
518
  id: Any
511
519
  ref_id: str = Field(alias="refId")
512
520
  display_name: str = Field(alias="displayName")
513
521
 
514
522
 
515
- class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
523
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
516
524
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
517
525
  addon_ref_id: str = Field(alias="addonRefId")
518
526
  new_quantity: float = Field(alias="newQuantity")
519
527
 
520
528
 
521
- class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
529
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
522
530
  BaseModel
523
531
  ):
524
532
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -526,53 +534,55 @@ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVaria
526
534
  feature_id: Optional[str] = Field(alias="featureId", default=None)
527
535
 
528
536
 
529
- class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
537
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
530
538
  BaseModel
531
539
  ):
532
540
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
533
541
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
534
542
 
535
543
 
536
- class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
544
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
537
545
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
538
546
 
539
547
 
540
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
548
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
549
+ BaseModel
550
+ ):
541
551
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
542
552
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
543
553
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
544
554
  billable_features: Optional[
545
555
  List[
546
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
556
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
547
557
  ]
548
558
  ] = Field(alias="billableFeatures", default=None)
549
559
  addons: Optional[
550
560
  List[
551
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
561
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
552
562
  ]
553
563
  ] = Field(default=None)
554
564
  price_overrides: Optional[
555
565
  List[
556
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
566
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
557
567
  ]
558
568
  ] = Field(alias="priceOverrides", default=None)
559
569
 
560
570
 
561
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
571
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
562
572
  BaseModel
563
573
  ):
564
574
  feature_id: str = Field(alias="featureId")
565
575
  quantity: float
566
576
 
567
577
 
568
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
578
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
569
579
  BaseModel
570
580
  ):
571
581
  addon_ref_id: str = Field(alias="addonRefId")
572
582
  quantity: float
573
583
 
574
584
 
575
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
585
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
576
586
  BaseModel
577
587
  ):
578
588
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -580,39 +590,43 @@ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPrice
580
590
  feature_id: Optional[str] = Field(alias="featureId", default=None)
581
591
 
582
592
 
583
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
593
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
584
594
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
585
595
  plan_ref_id: str = Field(alias="planRefId")
586
596
  change_type: PlanChangeType = Field(alias="changeType")
587
597
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
588
598
  billable_features: Optional[
589
599
  List[
590
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
600
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
591
601
  ]
592
602
  ] = Field(alias="billableFeatures", default=None)
593
603
  addons: Optional[
594
- List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
604
+ List[
605
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
606
+ ]
595
607
  ] = Field(default=None)
596
608
  price_overrides: Optional[
597
609
  List[
598
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
610
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
599
611
  ]
600
612
  ] = Field(alias="priceOverrides", default=None)
601
613
 
602
614
 
603
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
615
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
604
616
  BaseModel
605
617
  ):
606
618
  feature_id: str = Field(alias="featureId")
607
619
  quantity: float
608
620
 
609
621
 
610
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
622
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
623
+ BaseModel
624
+ ):
611
625
  addon_ref_id: str = Field(alias="addonRefId")
612
626
  quantity: float
613
627
 
614
628
 
615
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
629
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
616
630
  BaseModel
617
631
  ):
618
632
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -620,7 +634,7 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverr
620
634
  feature_id: Optional[str] = Field(alias="featureId", default=None)
621
635
 
622
636
 
623
- class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
637
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
624
638
  BaseModel
625
639
  ):
626
640
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -628,51 +642,53 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariab
628
642
  feature_id: Optional[str] = Field(alias="featureId", default=None)
629
643
 
630
644
 
631
- class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
645
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
646
+ BaseModel
647
+ ):
632
648
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
633
649
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
634
650
  feature_id: Optional[str] = Field(alias="featureId", default=None)
635
651
 
636
652
 
637
- class SubscriptionScheduledUpdateData(BaseModel):
653
+ class SubscriptionFutureUpdateData(BaseModel):
638
654
  subscription_schedule_type: SubscriptionScheduleType = Field(
639
655
  alias="subscriptionScheduleType"
640
656
  )
641
657
  schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
642
658
  scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
643
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
659
+ target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
644
660
  alias="targetPackage", default=None
645
661
  )
646
662
  schedule_variables: Optional[
647
663
  Annotated[
648
664
  Union[
649
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
650
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
651
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
652
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
653
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
654
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
655
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
656
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
665
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
666
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
667
+ "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
668
+ "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
669
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
670
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
671
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
672
+ "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
657
673
  ],
658
674
  Field(discriminator="typename__"),
659
675
  ]
660
676
  ] = Field(alias="scheduleVariables", default=None)
661
677
 
662
678
 
663
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
679
+ class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
664
680
  id: Any
665
681
  ref_id: str = Field(alias="refId")
666
682
  display_name: str = Field(alias="displayName")
667
683
 
668
684
 
669
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
685
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
670
686
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
671
687
  addon_ref_id: str = Field(alias="addonRefId")
672
688
  new_quantity: float = Field(alias="newQuantity")
673
689
 
674
690
 
675
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
691
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
676
692
  BaseModel
677
693
  ):
678
694
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -680,55 +696,53 @@ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVa
680
696
  feature_id: Optional[str] = Field(alias="featureId", default=None)
681
697
 
682
698
 
683
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
699
+ class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
684
700
  BaseModel
685
701
  ):
686
702
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
687
703
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
688
704
 
689
705
 
690
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
706
+ class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
691
707
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
692
708
 
693
709
 
694
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
695
- BaseModel
696
- ):
710
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
697
711
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
698
712
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
699
713
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
700
714
  billable_features: Optional[
701
715
  List[
702
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
716
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
703
717
  ]
704
718
  ] = Field(alias="billableFeatures", default=None)
705
719
  addons: Optional[
706
720
  List[
707
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
721
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
708
722
  ]
709
723
  ] = Field(default=None)
710
724
  price_overrides: Optional[
711
725
  List[
712
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
726
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
713
727
  ]
714
728
  ] = Field(alias="priceOverrides", default=None)
715
729
 
716
730
 
717
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
731
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
718
732
  BaseModel
719
733
  ):
720
734
  feature_id: str = Field(alias="featureId")
721
735
  quantity: float
722
736
 
723
737
 
724
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
738
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
725
739
  BaseModel
726
740
  ):
727
741
  addon_ref_id: str = Field(alias="addonRefId")
728
742
  quantity: float
729
743
 
730
744
 
731
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
745
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
732
746
  BaseModel
733
747
  ):
734
748
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -736,43 +750,39 @@ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPr
736
750
  feature_id: Optional[str] = Field(alias="featureId", default=None)
737
751
 
738
752
 
739
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
753
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
740
754
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
741
755
  plan_ref_id: str = Field(alias="planRefId")
742
756
  change_type: PlanChangeType = Field(alias="changeType")
743
757
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
744
758
  billable_features: Optional[
745
759
  List[
746
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
760
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
747
761
  ]
748
762
  ] = Field(alias="billableFeatures", default=None)
749
763
  addons: Optional[
750
- List[
751
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
752
- ]
764
+ List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
753
765
  ] = Field(default=None)
754
766
  price_overrides: Optional[
755
767
  List[
756
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
768
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
757
769
  ]
758
770
  ] = Field(alias="priceOverrides", default=None)
759
771
 
760
772
 
761
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
773
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
762
774
  BaseModel
763
775
  ):
764
776
  feature_id: str = Field(alias="featureId")
765
777
  quantity: float
766
778
 
767
779
 
768
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
769
- BaseModel
770
- ):
780
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
771
781
  addon_ref_id: str = Field(alias="addonRefId")
772
782
  quantity: float
773
783
 
774
784
 
775
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
785
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
776
786
  BaseModel
777
787
  ):
778
788
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -780,7 +790,7 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOv
780
790
  feature_id: Optional[str] = Field(alias="featureId", default=None)
781
791
 
782
792
 
783
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
793
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
784
794
  BaseModel
785
795
  ):
786
796
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -788,9 +798,7 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVar
788
798
  feature_id: Optional[str] = Field(alias="featureId", default=None)
789
799
 
790
800
 
791
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
792
- BaseModel
793
- ):
801
+ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
794
802
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
795
803
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
796
804
  feature_id: Optional[str] = Field(alias="featureId", default=None)
@@ -811,14 +819,6 @@ class TotalPriceFragmentTotal(BaseModel):
811
819
  currency: Currency
812
820
 
813
821
 
814
- class CustomerResourceFragment(BaseModel):
815
- resource_id: str = Field(alias="resourceId")
816
-
817
-
818
- class SubscriptionTrialConfigurationFragment(BaseModel):
819
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
820
-
821
-
822
822
  class SubscriptionFragment(BaseModel):
823
823
  id: Any
824
824
  subscription_id: str = Field(alias="subscriptionId")
@@ -1005,6 +1005,45 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1005
1005
  )
1006
1006
 
1007
1007
 
1008
+ class ZuoraCheckoutCredentialsFragment(BaseModel):
1009
+ publishable_key: str = Field(alias="publishableKey")
1010
+
1011
+
1012
+ class StripeCheckoutCredentialsFragment(BaseModel):
1013
+ account_id: Optional[str] = Field(alias="accountId", default=None)
1014
+ setup_secret: str = Field(alias="setupSecret")
1015
+ public_key: Optional[str] = Field(alias="publicKey", default=None)
1016
+
1017
+
1018
+ class PromotionalEntitlementFragment(BaseModel):
1019
+ status: PromotionalEntitlementStatus
1020
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1021
+ feature_id: Any = Field(alias="featureId")
1022
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1023
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1024
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1025
+ alias="resetPeriod", default=None
1026
+ )
1027
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1028
+ is_visible: bool = Field(alias="isVisible")
1029
+ feature: "PromotionalEntitlementFragmentFeature"
1030
+
1031
+
1032
+ class PromotionalEntitlementFragmentFeature(BaseModel):
1033
+ feature_type: FeatureType = Field(alias="featureType")
1034
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1035
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1036
+ feature_units_plural: Optional[str] = Field(
1037
+ alias="featureUnitsPlural", default=None
1038
+ )
1039
+ display_name: str = Field(alias="displayName")
1040
+ description: Optional[str] = Field(default=None)
1041
+ ref_id: str = Field(alias="refId")
1042
+ additional_meta_data: Optional[Any] = Field(
1043
+ alias="additionalMetaData", default=None
1044
+ )
1045
+
1046
+
1008
1047
  class CouponFragment(BaseModel):
1009
1048
  id: Any
1010
1049
  discount_value: float = Field(alias="discountValue")
@@ -1039,35 +1078,6 @@ class CouponFragmentSyncStates(BaseModel):
1039
1078
  status: SyncStatus
1040
1079
 
1041
1080
 
1042
- class PromotionalEntitlementFragment(BaseModel):
1043
- status: PromotionalEntitlementStatus
1044
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1045
- feature_id: Any = Field(alias="featureId")
1046
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1047
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1048
- reset_period: Optional[EntitlementResetPeriod] = Field(
1049
- alias="resetPeriod", default=None
1050
- )
1051
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1052
- is_visible: bool = Field(alias="isVisible")
1053
- feature: "PromotionalEntitlementFragmentFeature"
1054
-
1055
-
1056
- class PromotionalEntitlementFragmentFeature(BaseModel):
1057
- feature_type: FeatureType = Field(alias="featureType")
1058
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1059
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1060
- feature_units_plural: Optional[str] = Field(
1061
- alias="featureUnitsPlural", default=None
1062
- )
1063
- display_name: str = Field(alias="displayName")
1064
- description: Optional[str] = Field(default=None)
1065
- ref_id: str = Field(alias="refId")
1066
- additional_meta_data: Optional[Any] = Field(
1067
- alias="additionalMetaData", default=None
1068
- )
1069
-
1070
-
1071
1081
  class CustomerFragment(SlimCustomerFragment):
1072
1082
  has_payment_method: bool = Field(alias="hasPaymentMethod")
1073
1083
  has_active_subscription: bool = Field(alias="hasActiveSubscription")
@@ -1162,9 +1172,25 @@ class CheckoutStateFragmentPlan(PlanFragment):
1162
1172
 
1163
1173
  class CheckoutStateFragmentBillingIntegration(BaseModel):
1164
1174
  billing_identifier: BillingVendorIdentifier = Field(alias="billingIdentifier")
1175
+ billing_credentials: Union[
1176
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
1177
+ "CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
1178
+ ] = Field(alias="billingCredentials", discriminator="typename__")
1165
1179
  credentials: "CheckoutStateFragmentBillingIntegrationCredentials"
1166
1180
 
1167
1181
 
1182
+ class CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials(
1183
+ StripeCheckoutCredentialsFragment
1184
+ ):
1185
+ typename__: Literal["StripeCheckoutCredentials"] = Field(alias="__typename")
1186
+
1187
+
1188
+ class CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials(
1189
+ ZuoraCheckoutCredentialsFragment
1190
+ ):
1191
+ typename__: Literal["ZuoraCheckoutCredentials"] = Field(alias="__typename")
1192
+
1193
+
1168
1194
  class CheckoutStateFragmentBillingIntegrationCredentials(BaseModel):
1169
1195
  account_id: Optional[str] = Field(alias="accountId", default=None)
1170
1196
  public_key: Optional[str] = Field(alias="publicKey", default=None)
@@ -1336,11 +1362,39 @@ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1336
1362
  end_date: Optional[Any] = Field(alias="endDate", default=None)
1337
1363
 
1338
1364
 
1339
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1340
- addon_id: str = Field(alias="addonId")
1341
- description: Optional[str] = Field(default=None)
1365
+ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1366
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1367
+ billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1368
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1369
+ price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1370
+ default=None
1371
+ )
1372
+ credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1373
+ alias="creditRate", default=None
1374
+ )
1375
+ feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1376
+ default=None
1377
+ )
1378
+
1379
+
1380
+ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1381
+ amount: float
1382
+ currency: Currency
1383
+
1384
+
1385
+ class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1386
+ amount: float
1387
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1388
+
1389
+
1390
+ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1391
+ id: Any
1392
+ ref_id: str = Field(alias="refId")
1342
1393
  display_name: str = Field(alias="displayName")
1343
- quantity: int
1394
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1395
+ feature_units_plural: Optional[str] = Field(
1396
+ alias="featureUnitsPlural", default=None
1397
+ )
1344
1398
 
1345
1399
 
1346
1400
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
@@ -1512,39 +1566,11 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1512
1566
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1513
1567
 
1514
1568
 
1515
- class CustomerPortalSubscriptionPriceFragment(BaseModel):
1516
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1517
- billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1518
- block_size: Optional[float] = Field(alias="blockSize", default=None)
1519
- price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1520
- default=None
1521
- )
1522
- credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1523
- alias="creditRate", default=None
1524
- )
1525
- feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1526
- default=None
1527
- )
1528
-
1529
-
1530
- class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1531
- amount: float
1532
- currency: Currency
1533
-
1534
-
1535
- class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1536
- amount: float
1537
- custom_currency_id: Any = Field(alias="customCurrencyId")
1538
-
1539
-
1540
- class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1541
- id: Any
1542
- ref_id: str = Field(alias="refId")
1569
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1570
+ addon_id: str = Field(alias="addonId")
1571
+ description: Optional[str] = Field(default=None)
1543
1572
  display_name: str = Field(alias="displayName")
1544
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1545
- feature_units_plural: Optional[str] = Field(
1546
- alias="featureUnitsPlural", default=None
1547
- )
1573
+ quantity: int
1548
1574
 
1549
1575
 
1550
1576
  class CustomerPortalSubscriptionFragment(BaseModel):
@@ -2106,6 +2132,10 @@ class PageInfoFragment(BaseModel):
2106
2132
  has_previous_page: Optional[bool] = Field(alias="hasPreviousPage", default=None)
2107
2133
 
2108
2134
 
2135
+ class PaymentSessionFragment(BaseModel):
2136
+ token: str
2137
+
2138
+
2109
2139
  class PaywallCalculatedPricePointsFragment(BaseModel):
2110
2140
  plan_id: str = Field(alias="planId")
2111
2141
  additional_charges_may_apply: Optional[bool] = Field(
@@ -2935,23 +2965,25 @@ PriceFragment.model_rebuild()
2935
2965
  AddonFragment.model_rebuild()
2936
2966
  FeatureFragment.model_rebuild()
2937
2967
  EntitlementFragment.model_rebuild()
2968
+ SubscriptionTrialConfigurationFragment.model_rebuild()
2938
2969
  SlimCustomerFragment.model_rebuild()
2939
- SubscriptionInvoiceFragment.model_rebuild()
2940
- ProductFragment.model_rebuild()
2970
+ CustomerResourceFragment.model_rebuild()
2941
2971
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2972
+ ProductFragment.model_rebuild()
2942
2973
  PlanFragment.model_rebuild()
2943
- SubscriptionFutureUpdateData.model_rebuild()
2974
+ SubscriptionInvoiceFragment.model_rebuild()
2944
2975
  SubscriptionScheduledUpdateData.model_rebuild()
2976
+ SubscriptionFutureUpdateData.model_rebuild()
2945
2977
  TotalPriceFragment.model_rebuild()
2946
- CustomerResourceFragment.model_rebuild()
2947
- SubscriptionTrialConfigurationFragment.model_rebuild()
2948
2978
  SubscriptionFragment.model_rebuild()
2949
2979
  ApplySubscriptionFragment.model_rebuild()
2950
2980
  FontVariantFragment.model_rebuild()
2951
2981
  TypographyConfigurationFragment.model_rebuild()
2952
2982
  CheckoutConfigurationFragment.model_rebuild()
2953
- CouponFragment.model_rebuild()
2983
+ ZuoraCheckoutCredentialsFragment.model_rebuild()
2984
+ StripeCheckoutCredentialsFragment.model_rebuild()
2954
2985
  PromotionalEntitlementFragment.model_rebuild()
2986
+ CouponFragment.model_rebuild()
2955
2987
  CustomerFragment.model_rebuild()
2956
2988
  CheckoutStateFragment.model_rebuild()
2957
2989
  CreditGrantFragment.model_rebuild()
@@ -2960,9 +2992,9 @@ CustomerPortalBillingInformationFragment.model_rebuild()
2960
2992
  CustomerPortalConfigurationFragment.model_rebuild()
2961
2993
  CustomerPortalEntitlementFragment.model_rebuild()
2962
2994
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2963
- CustomerPortalSubscriptionAddonFragment.model_rebuild()
2964
- CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2965
2995
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
2996
+ CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2997
+ CustomerPortalSubscriptionAddonFragment.model_rebuild()
2966
2998
  CustomerPortalSubscriptionFragment.model_rebuild()
2967
2999
  CustomerPortalFragment.model_rebuild()
2968
3000
  CustomerStatisticsFragment.model_rebuild()
@@ -2980,6 +3012,7 @@ MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
2980
3012
  MockPaywallPlanFragment.model_rebuild()
2981
3013
  PackagePublishedPayload.model_rebuild()
2982
3014
  PageInfoFragment.model_rebuild()
3015
+ PaymentSessionFragment.model_rebuild()
2983
3016
  PaywallCalculatedPricePointsFragment.model_rebuild()
2984
3017
  PaywallConfigurationFragment.model_rebuild()
2985
3018
  PaywallCurrencyFragment.model_rebuild()