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

@@ -876,6 +876,7 @@ class AsyncClient(AsyncBaseClient):
876
876
  isCustom
877
877
  displayNameOverride
878
878
  enumValues
879
+ isGranted
879
880
  feature {
880
881
  featureType
881
882
  meterType
@@ -3087,6 +3088,7 @@ class AsyncClient(AsyncBaseClient):
3087
3088
  isCustom
3088
3089
  displayNameOverride
3089
3090
  enumValues
3091
+ isGranted
3090
3092
  feature {
3091
3093
  featureType
3092
3094
  meterType
@@ -3548,6 +3550,7 @@ class AsyncClient(AsyncBaseClient):
3548
3550
  isCustom
3549
3551
  displayNameOverride
3550
3552
  enumValues
3553
+ isGranted
3551
3554
  feature {
3552
3555
  featureType
3553
3556
  meterType
@@ -4089,6 +4092,7 @@ class AsyncClient(AsyncBaseClient):
4089
4092
  isCustom
4090
4093
  displayNameOverride
4091
4094
  enumValues
4095
+ isGranted
4092
4096
  feature {
4093
4097
  featureType
4094
4098
  meterType
@@ -4610,6 +4614,7 @@ class AsyncClient(AsyncBaseClient):
4610
4614
  isCustom
4611
4615
  displayNameOverride
4612
4616
  enumValues
4617
+ isGranted
4613
4618
  feature {
4614
4619
  featureType
4615
4620
  meterType
@@ -5744,6 +5749,7 @@ class AsyncClient(AsyncBaseClient):
5744
5749
  isCustom
5745
5750
  displayNameOverride
5746
5751
  enumValues
5752
+ isGranted
5747
5753
  feature {
5748
5754
  featureType
5749
5755
  meterType
@@ -6177,6 +6183,7 @@ class AsyncClient(AsyncBaseClient):
6177
6183
  hiddenFromWidgets
6178
6184
  displayNameOverride
6179
6185
  enumValues
6186
+ isGranted
6180
6187
  feature {
6181
6188
  featureType
6182
6189
  meterType
stigg/generated/client.py CHANGED
@@ -876,6 +876,7 @@ class Client(BaseClient):
876
876
  isCustom
877
877
  displayNameOverride
878
878
  enumValues
879
+ isGranted
879
880
  feature {
880
881
  featureType
881
882
  meterType
@@ -3083,6 +3084,7 @@ class Client(BaseClient):
3083
3084
  isCustom
3084
3085
  displayNameOverride
3085
3086
  enumValues
3087
+ isGranted
3086
3088
  feature {
3087
3089
  featureType
3088
3090
  meterType
@@ -3544,6 +3546,7 @@ class Client(BaseClient):
3544
3546
  isCustom
3545
3547
  displayNameOverride
3546
3548
  enumValues
3549
+ isGranted
3547
3550
  feature {
3548
3551
  featureType
3549
3552
  meterType
@@ -4085,6 +4088,7 @@ class Client(BaseClient):
4085
4088
  isCustom
4086
4089
  displayNameOverride
4087
4090
  enumValues
4091
+ isGranted
4088
4092
  feature {
4089
4093
  featureType
4090
4094
  meterType
@@ -4606,6 +4610,7 @@ class Client(BaseClient):
4606
4610
  isCustom
4607
4611
  displayNameOverride
4608
4612
  enumValues
4613
+ isGranted
4609
4614
  feature {
4610
4615
  featureType
4611
4616
  meterType
@@ -5740,6 +5745,7 @@ class Client(BaseClient):
5740
5745
  isCustom
5741
5746
  displayNameOverride
5742
5747
  enumValues
5748
+ isGranted
5743
5749
  feature {
5744
5750
  featureType
5745
5751
  meterType
@@ -6171,6 +6177,7 @@ class Client(BaseClient):
6171
6177
  hiddenFromWidgets
6172
6178
  displayNameOverride
6173
6179
  enumValues
6180
+ isGranted
6174
6181
  feature {
6175
6182
  featureType
6176
6183
  meterType
@@ -81,50 +81,6 @@ class PriceTierFragmentFlatPrice(BaseModel):
81
81
  currency: Currency
82
82
 
83
83
 
84
- class PriceFragment(BaseModel):
85
- billing_model: BillingModel = Field(alias="billingModel")
86
- billing_period: BillingPeriod = Field(alias="billingPeriod")
87
- billing_cadence: BillingCadence = Field(alias="billingCadence")
88
- billing_id: Optional[str] = Field(alias="billingId", default=None)
89
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
90
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
91
- billing_country_code: Optional[str] = Field(
92
- alias="billingCountryCode", default=None
93
- )
94
- price: Optional["PriceFragmentPrice"] = Field(default=None)
95
- credit_rate: Optional["PriceFragmentCreditRate"] = Field(
96
- alias="creditRate", default=None
97
- )
98
- tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
99
- tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
100
- feature: Optional["PriceFragmentFeature"] = Field(default=None)
101
- block_size: Optional[float] = Field(alias="blockSize", default=None)
102
-
103
-
104
- class PriceFragmentPrice(BaseModel):
105
- amount: float
106
- currency: Currency
107
-
108
-
109
- class PriceFragmentCreditRate(BaseModel):
110
- amount: float
111
- custom_currency_id: Any = Field(alias="customCurrencyId")
112
-
113
-
114
- class PriceFragmentTiers(PriceTierFragment):
115
- pass
116
-
117
-
118
- class PriceFragmentFeature(BaseModel):
119
- ref_id: str = Field(alias="refId")
120
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
121
- feature_units_plural: Optional[str] = Field(
122
- alias="featureUnitsPlural", default=None
123
- )
124
- display_name: str = Field(alias="displayName")
125
- description: Optional[str] = Field(default=None)
126
-
127
-
128
84
  class OveragePriceFragment(BaseModel):
129
85
  billing_model: BillingModel = Field(alias="billingModel")
130
86
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -173,6 +129,7 @@ class PackageEntitlementFragment(BaseModel):
173
129
  alias="displayNameOverride", default=None
174
130
  )
175
131
  enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
132
+ is_granted: bool = Field(alias="isGranted")
176
133
  feature: "PackageEntitlementFragmentFeature"
177
134
 
178
135
 
@@ -191,6 +148,50 @@ class PackageEntitlementFragmentFeature(BaseModel):
191
148
  )
192
149
 
193
150
 
151
+ class PriceFragment(BaseModel):
152
+ billing_model: BillingModel = Field(alias="billingModel")
153
+ billing_period: BillingPeriod = Field(alias="billingPeriod")
154
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
155
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
156
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
157
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
158
+ billing_country_code: Optional[str] = Field(
159
+ alias="billingCountryCode", default=None
160
+ )
161
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
162
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
163
+ alias="creditRate", default=None
164
+ )
165
+ tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
166
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
167
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
168
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
169
+
170
+
171
+ class PriceFragmentPrice(BaseModel):
172
+ amount: float
173
+ currency: Currency
174
+
175
+
176
+ class PriceFragmentCreditRate(BaseModel):
177
+ amount: float
178
+ custom_currency_id: Any = Field(alias="customCurrencyId")
179
+
180
+
181
+ class PriceFragmentTiers(PriceTierFragment):
182
+ pass
183
+
184
+
185
+ class PriceFragmentFeature(BaseModel):
186
+ ref_id: str = Field(alias="refId")
187
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
188
+ feature_units_plural: Optional[str] = Field(
189
+ alias="featureUnitsPlural", default=None
190
+ )
191
+ display_name: str = Field(alias="displayName")
192
+ description: Optional[str] = Field(default=None)
193
+
194
+
194
195
  class AddonFragment(BaseModel):
195
196
  id: Any
196
197
  ref_id: str = Field(alias="refId")
@@ -314,6 +315,126 @@ class EntitlementFragmentFeature(FeatureFragment):
314
315
  pass
315
316
 
316
317
 
318
+ class ProductFragment(BaseModel):
319
+ ref_id: str = Field(alias="refId")
320
+ display_name: Optional[str] = Field(alias="displayName", default=None)
321
+ description: Optional[str] = Field(default=None)
322
+ additional_meta_data: Optional[Any] = Field(
323
+ alias="additionalMetaData", default=None
324
+ )
325
+ product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
326
+
327
+
328
+ class ProductFragmentProductSettings(BaseModel):
329
+ downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
330
+ alias="downgradePlan", default=None
331
+ )
332
+
333
+
334
+ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
335
+ ref_id: str = Field(alias="refId")
336
+ display_name: str = Field(alias="displayName")
337
+
338
+
339
+ class PlanCompatiblePackageGroupsFragment(BaseModel):
340
+ package_group_id: str = Field(alias="packageGroupId")
341
+ display_name: str = Field(alias="displayName")
342
+ addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
343
+ default=None
344
+ )
345
+ options: "PlanCompatiblePackageGroupsFragmentOptions"
346
+
347
+
348
+ class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
349
+ pass
350
+
351
+
352
+ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
353
+ min_items: Optional[float] = Field(alias="minItems", default=None)
354
+ free_items: Optional[float] = Field(alias="freeItems", default=None)
355
+
356
+
357
+ class PlanFragment(BaseModel):
358
+ id: Any
359
+ ref_id: str = Field(alias="refId")
360
+ display_name: str = Field(alias="displayName")
361
+ description: Optional[str] = Field(default=None)
362
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
363
+ version_number: int = Field(alias="versionNumber")
364
+ additional_meta_data: Optional[Any] = Field(
365
+ alias="additionalMetaData", default=None
366
+ )
367
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
368
+ alias="hiddenFromWidgets", default=None
369
+ )
370
+ product: "PlanFragmentProduct"
371
+ base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
372
+ entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
373
+ inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
374
+ alias="inheritedEntitlements", default=None
375
+ )
376
+ compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
377
+ alias="compatibleAddons", default=None
378
+ )
379
+ compatible_package_groups: Optional[
380
+ List["PlanFragmentCompatiblePackageGroups"]
381
+ ] = Field(alias="compatiblePackageGroups", default=None)
382
+ prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
383
+ overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
384
+ alias="overagePrices", default=None
385
+ )
386
+ pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
387
+ default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
388
+ alias="defaultTrialConfig", default=None
389
+ )
390
+
391
+
392
+ class PlanFragmentProduct(ProductFragment):
393
+ pass
394
+
395
+
396
+ class PlanFragmentBasePlan(BaseModel):
397
+ ref_id: str = Field(alias="refId")
398
+ display_name: str = Field(alias="displayName")
399
+
400
+
401
+ class PlanFragmentEntitlements(PackageEntitlementFragment):
402
+ pass
403
+
404
+
405
+ class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
406
+ pass
407
+
408
+
409
+ class PlanFragmentCompatibleAddons(AddonFragment):
410
+ pass
411
+
412
+
413
+ class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
414
+ pass
415
+
416
+
417
+ class PlanFragmentPrices(PriceFragment):
418
+ pass
419
+
420
+
421
+ class PlanFragmentOveragePrices(OveragePriceFragment):
422
+ pass
423
+
424
+
425
+ class PlanFragmentDefaultTrialConfig(BaseModel):
426
+ duration: float
427
+ units: TrialPeriodUnits
428
+ budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
429
+ trial_end_behavior: Optional[TrialEndBehavior] = Field(
430
+ alias="trialEndBehavior", default=None
431
+ )
432
+
433
+
434
+ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
435
+ limit: float
436
+
437
+
317
438
  class TotalPriceFragment(BaseModel):
318
439
  sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
319
440
  total: "TotalPriceFragmentTotal"
@@ -346,77 +467,53 @@ class SlimCustomerFragment(BaseModel):
346
467
  )
347
468
 
348
469
 
349
- class SubscriptionTrialConfigurationFragment(BaseModel):
350
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
470
+ class CustomerResourceFragment(BaseModel):
471
+ resource_id: str = Field(alias="resourceId")
351
472
 
352
473
 
353
- class SubscriptionInvoiceFragment(BaseModel):
354
- billing_id: str = Field(alias="billingId")
355
- status: SubscriptionInvoiceStatus
356
- created_at: Any = Field(alias="createdAt")
357
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
358
- updated_at: Any = Field(alias="updatedAt")
359
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
360
- requires_action: bool = Field(alias="requiresAction")
361
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
362
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
363
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
364
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
365
- alias="billingReason", default=None
366
- )
367
- currency: Optional[str] = Field(default=None)
368
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
369
- sub_total_excluding_tax: Optional[float] = Field(
370
- alias="subTotalExcludingTax", default=None
371
- )
372
- total: Optional[float] = Field(default=None)
373
- total_excluding_tax: Optional[float] = Field(
374
- alias="totalExcludingTax", default=None
375
- )
376
- tax: Optional[float] = Field(default=None)
377
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
378
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
474
+ class SubscriptionTrialConfigurationFragment(BaseModel):
475
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
379
476
 
380
477
 
381
- class SubscriptionFutureUpdateData(BaseModel):
478
+ class SubscriptionScheduledUpdateData(BaseModel):
382
479
  subscription_schedule_type: SubscriptionScheduleType = Field(
383
480
  alias="subscriptionScheduleType"
384
481
  )
385
482
  schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
386
483
  scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
387
- target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
484
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
388
485
  alias="targetPackage", default=None
389
486
  )
390
487
  schedule_variables: Optional[
391
488
  Annotated[
392
489
  Union[
393
- "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
394
- "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
395
- "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
396
- "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
397
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
398
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
399
- "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
400
- "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
490
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
491
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
492
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
493
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
494
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
495
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
496
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
497
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
401
498
  ],
402
499
  Field(discriminator="typename__"),
403
500
  ]
404
501
  ] = Field(alias="scheduleVariables", default=None)
405
502
 
406
503
 
407
- class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
504
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
408
505
  id: Any
409
506
  ref_id: str = Field(alias="refId")
410
507
  display_name: str = Field(alias="displayName")
411
508
 
412
509
 
413
- class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
510
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
414
511
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
415
512
  addon_ref_id: str = Field(alias="addonRefId")
416
513
  new_quantity: float = Field(alias="newQuantity")
417
514
 
418
515
 
419
- class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
516
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
420
517
  BaseModel
421
518
  ):
422
519
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -424,53 +521,55 @@ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVaria
424
521
  feature_id: Optional[str] = Field(alias="featureId", default=None)
425
522
 
426
523
 
427
- class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
524
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
428
525
  BaseModel
429
526
  ):
430
527
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
431
528
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
432
529
 
433
530
 
434
- class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
531
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
435
532
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
436
533
 
437
534
 
438
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
535
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
536
+ BaseModel
537
+ ):
439
538
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
440
539
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
441
540
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
442
541
  billable_features: Optional[
443
542
  List[
444
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
543
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
445
544
  ]
446
545
  ] = Field(alias="billableFeatures", default=None)
447
546
  addons: Optional[
448
547
  List[
449
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
548
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
450
549
  ]
451
550
  ] = Field(default=None)
452
551
  price_overrides: Optional[
453
552
  List[
454
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
553
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
455
554
  ]
456
555
  ] = Field(alias="priceOverrides", default=None)
457
556
 
458
557
 
459
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
558
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
460
559
  BaseModel
461
560
  ):
462
561
  feature_id: str = Field(alias="featureId")
463
562
  quantity: float
464
563
 
465
564
 
466
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
565
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
467
566
  BaseModel
468
567
  ):
469
568
  addon_ref_id: str = Field(alias="addonRefId")
470
569
  quantity: float
471
570
 
472
571
 
473
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
572
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
474
573
  BaseModel
475
574
  ):
476
575
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -478,39 +577,43 @@ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPrice
478
577
  feature_id: Optional[str] = Field(alias="featureId", default=None)
479
578
 
480
579
 
481
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
580
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
482
581
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
483
582
  plan_ref_id: str = Field(alias="planRefId")
484
583
  change_type: PlanChangeType = Field(alias="changeType")
485
584
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
486
585
  billable_features: Optional[
487
586
  List[
488
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
587
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
489
588
  ]
490
589
  ] = Field(alias="billableFeatures", default=None)
491
590
  addons: Optional[
492
- List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
591
+ List[
592
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
593
+ ]
493
594
  ] = Field(default=None)
494
595
  price_overrides: Optional[
495
596
  List[
496
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
597
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
497
598
  ]
498
599
  ] = Field(alias="priceOverrides", default=None)
499
600
 
500
601
 
501
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
602
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
502
603
  BaseModel
503
604
  ):
504
605
  feature_id: str = Field(alias="featureId")
505
606
  quantity: float
506
607
 
507
608
 
508
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
609
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
610
+ BaseModel
611
+ ):
509
612
  addon_ref_id: str = Field(alias="addonRefId")
510
613
  quantity: float
511
614
 
512
615
 
513
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
616
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
514
617
  BaseModel
515
618
  ):
516
619
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -518,7 +621,7 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverr
518
621
  feature_id: Optional[str] = Field(alias="featureId", default=None)
519
622
 
520
623
 
521
- class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
624
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
522
625
  BaseModel
523
626
  ):
524
627
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -526,171 +629,53 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariab
526
629
  feature_id: Optional[str] = Field(alias="featureId", default=None)
527
630
 
528
631
 
529
- class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
632
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
633
+ BaseModel
634
+ ):
530
635
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
531
636
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
532
637
  feature_id: Optional[str] = Field(alias="featureId", default=None)
533
638
 
534
639
 
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):
640
+ class SubscriptionFutureUpdateData(BaseModel):
656
641
  subscription_schedule_type: SubscriptionScheduleType = Field(
657
642
  alias="subscriptionScheduleType"
658
643
  )
659
644
  schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
660
645
  scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
661
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
646
+ target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
662
647
  alias="targetPackage", default=None
663
648
  )
664
649
  schedule_variables: Optional[
665
650
  Annotated[
666
651
  Union[
667
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
668
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
669
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
670
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
671
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
672
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
673
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
674
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
652
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
653
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
654
+ "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
655
+ "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
656
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
657
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
658
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
659
+ "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
675
660
  ],
676
661
  Field(discriminator="typename__"),
677
662
  ]
678
663
  ] = Field(alias="scheduleVariables", default=None)
679
664
 
680
665
 
681
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
666
+ class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
682
667
  id: Any
683
668
  ref_id: str = Field(alias="refId")
684
669
  display_name: str = Field(alias="displayName")
685
670
 
686
671
 
687
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
672
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
688
673
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
689
674
  addon_ref_id: str = Field(alias="addonRefId")
690
675
  new_quantity: float = Field(alias="newQuantity")
691
676
 
692
677
 
693
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
678
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
694
679
  BaseModel
695
680
  ):
696
681
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -698,55 +683,53 @@ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVa
698
683
  feature_id: Optional[str] = Field(alias="featureId", default=None)
699
684
 
700
685
 
701
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
686
+ class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
702
687
  BaseModel
703
688
  ):
704
689
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
705
690
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
706
691
 
707
692
 
708
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
693
+ class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
709
694
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
710
695
 
711
696
 
712
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
713
- BaseModel
714
- ):
697
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
715
698
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
716
699
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
717
700
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
718
701
  billable_features: Optional[
719
702
  List[
720
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
703
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
721
704
  ]
722
705
  ] = Field(alias="billableFeatures", default=None)
723
706
  addons: Optional[
724
707
  List[
725
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
708
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
726
709
  ]
727
710
  ] = Field(default=None)
728
711
  price_overrides: Optional[
729
712
  List[
730
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
713
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
731
714
  ]
732
715
  ] = Field(alias="priceOverrides", default=None)
733
716
 
734
717
 
735
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
718
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
736
719
  BaseModel
737
720
  ):
738
721
  feature_id: str = Field(alias="featureId")
739
722
  quantity: float
740
723
 
741
724
 
742
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
725
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
743
726
  BaseModel
744
727
  ):
745
728
  addon_ref_id: str = Field(alias="addonRefId")
746
729
  quantity: float
747
730
 
748
731
 
749
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
732
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
750
733
  BaseModel
751
734
  ):
752
735
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -754,43 +737,39 @@ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPr
754
737
  feature_id: Optional[str] = Field(alias="featureId", default=None)
755
738
 
756
739
 
757
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
740
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
758
741
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
759
742
  plan_ref_id: str = Field(alias="planRefId")
760
743
  change_type: PlanChangeType = Field(alias="changeType")
761
744
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
762
745
  billable_features: Optional[
763
746
  List[
764
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
747
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
765
748
  ]
766
749
  ] = Field(alias="billableFeatures", default=None)
767
750
  addons: Optional[
768
- List[
769
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
770
- ]
751
+ List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
771
752
  ] = Field(default=None)
772
753
  price_overrides: Optional[
773
754
  List[
774
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
755
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
775
756
  ]
776
757
  ] = Field(alias="priceOverrides", default=None)
777
758
 
778
759
 
779
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
760
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
780
761
  BaseModel
781
762
  ):
782
763
  feature_id: str = Field(alias="featureId")
783
764
  quantity: float
784
-
785
-
786
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
787
- BaseModel
788
- ):
765
+
766
+
767
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
789
768
  addon_ref_id: str = Field(alias="addonRefId")
790
769
  quantity: float
791
770
 
792
771
 
793
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
772
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
794
773
  BaseModel
795
774
  ):
796
775
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -798,7 +777,7 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOv
798
777
  feature_id: Optional[str] = Field(alias="featureId", default=None)
799
778
 
800
779
 
801
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
780
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
802
781
  BaseModel
803
782
  ):
804
783
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -806,16 +785,38 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVar
806
785
  feature_id: Optional[str] = Field(alias="featureId", default=None)
807
786
 
808
787
 
809
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
810
- BaseModel
811
- ):
788
+ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
812
789
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
813
790
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
814
791
  feature_id: Optional[str] = Field(alias="featureId", default=None)
815
792
 
816
793
 
817
- class CustomerResourceFragment(BaseModel):
818
- resource_id: str = Field(alias="resourceId")
794
+ class SubscriptionInvoiceFragment(BaseModel):
795
+ billing_id: str = Field(alias="billingId")
796
+ status: SubscriptionInvoiceStatus
797
+ created_at: Any = Field(alias="createdAt")
798
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
799
+ updated_at: Any = Field(alias="updatedAt")
800
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
801
+ requires_action: bool = Field(alias="requiresAction")
802
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
803
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
804
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
805
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
806
+ alias="billingReason", default=None
807
+ )
808
+ currency: Optional[str] = Field(default=None)
809
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
810
+ sub_total_excluding_tax: Optional[float] = Field(
811
+ alias="subTotalExcludingTax", default=None
812
+ )
813
+ total: Optional[float] = Field(default=None)
814
+ total_excluding_tax: Optional[float] = Field(
815
+ alias="totalExcludingTax", default=None
816
+ )
817
+ tax: Optional[float] = Field(default=None)
818
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
819
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
819
820
 
820
821
 
821
822
  class SubscriptionFragment(BaseModel):
@@ -1004,35 +1005,6 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1004
1005
  )
1005
1006
 
1006
1007
 
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
-
1036
1008
  class CouponFragment(BaseModel):
1037
1009
  id: Any
1038
1010
  discount_value: float = Field(alias="discountValue")
@@ -1067,6 +1039,35 @@ class CouponFragmentSyncStates(BaseModel):
1067
1039
  status: SyncStatus
1068
1040
 
1069
1041
 
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
+
1070
1071
  class CustomerFragment(SlimCustomerFragment):
1071
1072
  has_payment_method: bool = Field(alias="hasPaymentMethod")
1072
1073
  has_active_subscription: bool = Field(alias="hasActiveSubscription")
@@ -1327,6 +1328,41 @@ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1327
1328
  end_date: Optional[Any] = Field(alias="endDate", default=None)
1328
1329
 
1329
1330
 
1331
+ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1332
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1333
+ billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1334
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1335
+ price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1336
+ default=None
1337
+ )
1338
+ credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
1339
+ alias="creditRate", default=None
1340
+ )
1341
+ feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1342
+ default=None
1343
+ )
1344
+
1345
+
1346
+ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1347
+ amount: float
1348
+ currency: Currency
1349
+
1350
+
1351
+ class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
1352
+ amount: float
1353
+ custom_currency_id: Any = Field(alias="customCurrencyId")
1354
+
1355
+
1356
+ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1357
+ id: Any
1358
+ ref_id: str = Field(alias="refId")
1359
+ display_name: str = Field(alias="displayName")
1360
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1361
+ feature_units_plural: Optional[str] = Field(
1362
+ alias="featureUnitsPlural", default=None
1363
+ )
1364
+
1365
+
1330
1366
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
1331
1367
  subscription_schedule_type: SubscriptionScheduleType = Field(
1332
1368
  alias="subscriptionScheduleType"
@@ -1496,41 +1532,6 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1496
1532
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1497
1533
 
1498
1534
 
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
1535
  class CustomerPortalSubscriptionAddonFragment(BaseModel):
1535
1536
  addon_id: str = Field(alias="addonId")
1536
1537
  description: Optional[str] = Field(default=None)
@@ -1869,40 +1870,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
1869
1870
  description: Optional[str] = Field(default=None)
1870
1871
 
1871
1872
 
1872
- class MockPaywallPackageEntitlementFragment(BaseModel):
1873
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1874
- has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1875
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1876
- reset_period: Optional[EntitlementResetPeriod] = Field(
1877
- alias="resetPeriod", default=None
1878
- )
1879
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
1880
- alias="hiddenFromWidgets", default=None
1881
- )
1882
- display_name_override: Optional[str] = Field(
1883
- alias="displayNameOverride", default=None
1884
- )
1885
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1886
- feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1887
- default=None
1888
- )
1889
-
1890
-
1891
- class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1892
- feature_type: FeatureType = Field(alias="featureType")
1893
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1894
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1895
- feature_units_plural: Optional[str] = Field(
1896
- alias="featureUnitsPlural", default=None
1897
- )
1898
- display_name: str = Field(alias="displayName")
1899
- description: Optional[str] = Field(default=None)
1900
- ref_id: str = Field(alias="refId")
1901
- additional_meta_data: Optional[Any] = Field(
1902
- alias="additionalMetaData", default=None
1903
- )
1904
-
1905
-
1906
1873
  class MockPaywallPriceFragment(BaseModel):
1907
1874
  billing_model: BillingModel = Field(alias="billingModel")
1908
1875
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -1945,6 +1912,41 @@ class MockPaywallPriceFragmentFeature(BaseModel):
1945
1912
  display_name: str = Field(alias="displayName")
1946
1913
 
1947
1914
 
1915
+ class MockPaywallPackageEntitlementFragment(BaseModel):
1916
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1917
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
1918
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1919
+ reset_period: Optional[EntitlementResetPeriod] = Field(
1920
+ alias="resetPeriod", default=None
1921
+ )
1922
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
1923
+ alias="hiddenFromWidgets", default=None
1924
+ )
1925
+ display_name_override: Optional[str] = Field(
1926
+ alias="displayNameOverride", default=None
1927
+ )
1928
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1929
+ is_granted: bool = Field(alias="isGranted")
1930
+ feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1931
+ default=None
1932
+ )
1933
+
1934
+
1935
+ class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
1936
+ feature_type: FeatureType = Field(alias="featureType")
1937
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
1938
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1939
+ feature_units_plural: Optional[str] = Field(
1940
+ alias="featureUnitsPlural", default=None
1941
+ )
1942
+ display_name: str = Field(alias="displayName")
1943
+ description: Optional[str] = Field(default=None)
1944
+ ref_id: str = Field(alias="refId")
1945
+ additional_meta_data: Optional[Any] = Field(
1946
+ alias="additionalMetaData", default=None
1947
+ )
1948
+
1949
+
1948
1950
  class MockPaywallAddonFragment(BaseModel):
1949
1951
  ref_id: str = Field(alias="refId")
1950
1952
  display_name: str = Field(alias="displayName")
@@ -2919,29 +2921,29 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2919
2921
 
2920
2922
  AddonDependencyFragment.model_rebuild()
2921
2923
  PriceTierFragment.model_rebuild()
2922
- PriceFragment.model_rebuild()
2923
2924
  OveragePriceFragment.model_rebuild()
2924
2925
  PackageEntitlementFragment.model_rebuild()
2926
+ PriceFragment.model_rebuild()
2925
2927
  AddonFragment.model_rebuild()
2926
2928
  FeatureFragment.model_rebuild()
2927
2929
  EntitlementFragment.model_rebuild()
2928
- TotalPriceFragment.model_rebuild()
2929
- SlimCustomerFragment.model_rebuild()
2930
- SubscriptionTrialConfigurationFragment.model_rebuild()
2931
- SubscriptionInvoiceFragment.model_rebuild()
2932
- SubscriptionFutureUpdateData.model_rebuild()
2933
2930
  ProductFragment.model_rebuild()
2934
2931
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2935
2932
  PlanFragment.model_rebuild()
2936
- SubscriptionScheduledUpdateData.model_rebuild()
2933
+ TotalPriceFragment.model_rebuild()
2934
+ SlimCustomerFragment.model_rebuild()
2937
2935
  CustomerResourceFragment.model_rebuild()
2936
+ SubscriptionTrialConfigurationFragment.model_rebuild()
2937
+ SubscriptionScheduledUpdateData.model_rebuild()
2938
+ SubscriptionFutureUpdateData.model_rebuild()
2939
+ SubscriptionInvoiceFragment.model_rebuild()
2938
2940
  SubscriptionFragment.model_rebuild()
2939
2941
  ApplySubscriptionFragment.model_rebuild()
2940
2942
  FontVariantFragment.model_rebuild()
2941
2943
  TypographyConfigurationFragment.model_rebuild()
2942
2944
  CheckoutConfigurationFragment.model_rebuild()
2943
- PromotionalEntitlementFragment.model_rebuild()
2944
2945
  CouponFragment.model_rebuild()
2946
+ PromotionalEntitlementFragment.model_rebuild()
2945
2947
  CustomerFragment.model_rebuild()
2946
2948
  CheckoutStateFragment.model_rebuild()
2947
2949
  CreditGrantFragment.model_rebuild()
@@ -2950,8 +2952,8 @@ CustomerPortalBillingInformationFragment.model_rebuild()
2950
2952
  CustomerPortalConfigurationFragment.model_rebuild()
2951
2953
  CustomerPortalEntitlementFragment.model_rebuild()
2952
2954
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2953
- CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2954
2955
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
2956
+ CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2955
2957
  CustomerPortalSubscriptionAddonFragment.model_rebuild()
2956
2958
  CustomerPortalSubscriptionFragment.model_rebuild()
2957
2959
  CustomerPortalFragment.model_rebuild()
@@ -2963,8 +2965,8 @@ EntitlementsUpdatedPayload.model_rebuild()
2963
2965
  ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
2964
2966
  LayoutConfigurationFragment.model_rebuild()
2965
2967
  MockPaywallAddonDependencyFragment.model_rebuild()
2966
- MockPaywallPackageEntitlementFragment.model_rebuild()
2967
2968
  MockPaywallPriceFragment.model_rebuild()
2969
+ MockPaywallPackageEntitlementFragment.model_rebuild()
2968
2970
  MockPaywallAddonFragment.model_rebuild()
2969
2971
  MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
2970
2972
  MockPaywallPlanFragment.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 3.39.0
3
+ Version: 3.40.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -110,12 +110,12 @@ stigg/generated/__init__.py,sha256=hLdgKGz4fpmi3uPgV3Cqa9PUJKmyHmxaWSQx9DrwspI,7
110
110
  stigg/generated/apply_subscription.py,sha256=Vbs-QZZxN16pUpt3Hp7Jvvcc5o_8xwJK9oTLQQjH0ZA,451
111
111
  stigg/generated/archive_customer.py,sha256=3N3iBiT2Vvzfb0ckV3o57A6lmJ_ef7JNPaMX_Jtcg6c,396
112
112
  stigg/generated/async_base_client.py,sha256=zqd6IhYxpalyA6KQkeGhXgSurC0vXSwSWmSlM2zZ0VM,12593
113
- stigg/generated/async_client.py,sha256=7z92sg368Mhk6qGtyvzUtrJLK18tKn3H3luPZspZ04w,179477
113
+ stigg/generated/async_client.py,sha256=_gbW7HPK1DYZdytT7tfkJVrFfziM-GrB7S29uwSEjGg,179645
114
114
  stigg/generated/base_client.py,sha256=nAto-nOqrOHFTLqdRy2ZDpT1afgsqCzf6hTeBh5MyPQ,6674
115
115
  stigg/generated/base_model.py,sha256=0rs99bmZqPbltlPVMfhExeA5zD6ATQFaNZVsxGNonI4,635
116
116
  stigg/generated/cancel_subscription.py,sha256=pKrMFmKjGIuWvnVCYQ8brWQO9_JeTnfScgGQjztuN-o,457
117
117
  stigg/generated/cancel_subscription_updates.py,sha256=T1C9vyppzZi_91pEnIGkHUL3GEsvtf5EMwr1f01tjbM,241
118
- stigg/generated/client.py,sha256=QgPQpe2QpTR2aYiq0IBtSh-fPTQQub2e5pzyT2uHlDE,178838
118
+ stigg/generated/client.py,sha256=zBvjwKMocm02W2CIXwZ4hXTv983k-xB1B3r5WWBfZ4g,179006
119
119
  stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
120
120
  stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
121
121
  stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
@@ -123,7 +123,7 @@ stigg/generated/enums.py,sha256=cNEhlwd9Vi1-qLpN1-Ru4bSqQli5ND3Yo3VPa6poRsM,3781
123
123
  stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
124
124
  stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
125
125
  stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
126
- stigg/generated/fragments.py,sha256=0opsghgNRas9AUSzPqtsY6-TkDUQ_cQhq4Lt66aUX8o,106695
126
+ stigg/generated/fragments.py,sha256=TvKv9ced_D8r7mvKfGMMgcnP7JU6KsKpG8ks8Ej_zcU,106791
127
127
  stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
128
128
  stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
129
129
  stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
@@ -164,7 +164,7 @@ stigg/generated/transfer_subscription_to_resource.py,sha256=4-N7quYhHpVTGPi6EV-U
164
164
  stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9eW71jND2k,441
165
165
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
166
166
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
167
- stigg_api_client_v2-3.39.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
168
- stigg_api_client_v2-3.39.0.dist-info/METADATA,sha256=JVoAoGkyDoMymqqo1iNBxq6tLcJ28V6ekap48vJ3PUw,2257
169
- stigg_api_client_v2-3.39.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
170
- stigg_api_client_v2-3.39.0.dist-info/RECORD,,
167
+ stigg_api_client_v2-3.40.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
168
+ stigg_api_client_v2-3.40.0.dist-info/METADATA,sha256=e_jG3EVSeR5kcq8JziLRH-gqrDWDyegG9E60X7_EPZ4,2257
169
+ stigg_api_client_v2-3.40.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
170
+ stigg_api_client_v2-3.40.0.dist-info/RECORD,,