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

@@ -817,6 +817,7 @@ from .input_types import (
817
817
  RemoveCouponFromCustomerInput,
818
818
  RemoveExperimentFromCustomerInput,
819
819
  RemoveExperimentFromCustomerSubscriptionInput,
820
+ RemoveFeatureGroupFromPackageInput,
820
821
  ReportUsageBaseInput,
821
822
  ReportUsageBulkInput,
822
823
  ReportUsageInput,
@@ -892,6 +893,7 @@ from .input_types import (
892
893
  UnArchiveFeatureInput,
893
894
  UnArchivePlanInput,
894
895
  UnitTransformationInput,
896
+ UnlinkFeatureGroupInput,
895
897
  UpdateAccountInput,
896
898
  UpdateCouponInput,
897
899
  UpdateCustomerInput,
@@ -1576,6 +1578,7 @@ __all__ = [
1576
1578
  "RemoveCouponFromCustomerInput",
1577
1579
  "RemoveExperimentFromCustomerInput",
1578
1580
  "RemoveExperimentFromCustomerSubscriptionInput",
1581
+ "RemoveFeatureGroupFromPackageInput",
1579
1582
  "ReportEntitlementCheckRequested",
1580
1583
  "ReportEvent",
1581
1584
  "ReportUsage",
@@ -1839,6 +1842,7 @@ __all__ = [
1839
1842
  "UnarchiveEnvironmentInput",
1840
1843
  "UnitTransformationInput",
1841
1844
  "UnitTransformationRound",
1845
+ "UnlinkFeatureGroupInput",
1842
1846
  "UpdateAccountInput",
1843
1847
  "UpdateCouponInput",
1844
1848
  "UpdateCustomer",
@@ -859,6 +859,7 @@ class AsyncClient(AsyncBaseClient):
859
859
  hiddenFromWidgets
860
860
  isCustom
861
861
  displayNameOverride
862
+ enumValues
862
863
  feature {
863
864
  featureType
864
865
  meterType
@@ -2989,6 +2990,7 @@ class AsyncClient(AsyncBaseClient):
2989
2990
  hiddenFromWidgets
2990
2991
  isCustom
2991
2992
  displayNameOverride
2993
+ enumValues
2992
2994
  feature {
2993
2995
  featureType
2994
2996
  meterType
@@ -3444,6 +3446,7 @@ class AsyncClient(AsyncBaseClient):
3444
3446
  hiddenFromWidgets
3445
3447
  isCustom
3446
3448
  displayNameOverride
3449
+ enumValues
3447
3450
  feature {
3448
3451
  featureType
3449
3452
  meterType
@@ -3979,6 +3982,7 @@ class AsyncClient(AsyncBaseClient):
3979
3982
  hiddenFromWidgets
3980
3983
  isCustom
3981
3984
  displayNameOverride
3985
+ enumValues
3982
3986
  feature {
3983
3987
  featureType
3984
3988
  meterType
@@ -4494,6 +4498,7 @@ class AsyncClient(AsyncBaseClient):
4494
4498
  hiddenFromWidgets
4495
4499
  isCustom
4496
4500
  displayNameOverride
4501
+ enumValues
4497
4502
  feature {
4498
4503
  featureType
4499
4504
  meterType
@@ -5614,6 +5619,7 @@ class AsyncClient(AsyncBaseClient):
5614
5619
  hiddenFromWidgets
5615
5620
  isCustom
5616
5621
  displayNameOverride
5622
+ enumValues
5617
5623
  feature {
5618
5624
  featureType
5619
5625
  meterType
@@ -6041,6 +6047,7 @@ class AsyncClient(AsyncBaseClient):
6041
6047
  resetPeriod
6042
6048
  hiddenFromWidgets
6043
6049
  displayNameOverride
6050
+ enumValues
6044
6051
  feature {
6045
6052
  featureType
6046
6053
  meterType
stigg/generated/client.py CHANGED
@@ -859,6 +859,7 @@ class Client(BaseClient):
859
859
  hiddenFromWidgets
860
860
  isCustom
861
861
  displayNameOverride
862
+ enumValues
862
863
  feature {
863
864
  featureType
864
865
  meterType
@@ -2987,6 +2988,7 @@ class Client(BaseClient):
2987
2988
  hiddenFromWidgets
2988
2989
  isCustom
2989
2990
  displayNameOverride
2991
+ enumValues
2990
2992
  feature {
2991
2993
  featureType
2992
2994
  meterType
@@ -3442,6 +3444,7 @@ class Client(BaseClient):
3442
3444
  hiddenFromWidgets
3443
3445
  isCustom
3444
3446
  displayNameOverride
3447
+ enumValues
3445
3448
  feature {
3446
3449
  featureType
3447
3450
  meterType
@@ -3977,6 +3980,7 @@ class Client(BaseClient):
3977
3980
  hiddenFromWidgets
3978
3981
  isCustom
3979
3982
  displayNameOverride
3983
+ enumValues
3980
3984
  feature {
3981
3985
  featureType
3982
3986
  meterType
@@ -4492,6 +4496,7 @@ class Client(BaseClient):
4492
4496
  hiddenFromWidgets
4493
4497
  isCustom
4494
4498
  displayNameOverride
4499
+ enumValues
4495
4500
  feature {
4496
4501
  featureType
4497
4502
  meterType
@@ -5612,6 +5617,7 @@ class Client(BaseClient):
5612
5617
  hiddenFromWidgets
5613
5618
  isCustom
5614
5619
  displayNameOverride
5620
+ enumValues
5615
5621
  feature {
5616
5622
  featureType
5617
5623
  meterType
@@ -6037,6 +6043,7 @@ class Client(BaseClient):
6037
6043
  resetPeriod
6038
6044
  hiddenFromWidgets
6039
6045
  displayNameOverride
6046
+ enumValues
6040
6047
  feature {
6041
6048
  featureType
6042
6049
  meterType
stigg/generated/enums.py CHANGED
@@ -418,6 +418,7 @@ class ErrorCode(str, Enum):
418
418
  BillingIntegrationAlreadyExistsError = "BillingIntegrationAlreadyExistsError"
419
419
  BillingIntegrationMissing = "BillingIntegrationMissing"
420
420
  BillingPeriodMissingError = "BillingPeriodMissingError"
421
+ CanNotUpdateEntitlementsFeatureGroup = "CanNotUpdateEntitlementsFeatureGroup"
421
422
  CannotAddOverrideEntitlementToPlan = "CannotAddOverrideEntitlementToPlan"
422
423
  CannotArchiveFeatureError = "CannotArchiveFeatureError"
423
424
  CannotArchiveFeatureGroupError = "CannotArchiveFeatureGroupError"
@@ -469,7 +470,9 @@ class ErrorCode(str, Enum):
469
470
  FailedToImportSubscriptions = "FailedToImportSubscriptions"
470
471
  FailedToResolveBillingIntegration = "FailedToResolveBillingIntegration"
471
472
  FeatureConfigurationExceededLimitError = "FeatureConfigurationExceededLimitError"
473
+ FeatureGroupMissingFeaturesError = "FeatureGroupMissingFeaturesError"
472
474
  FeatureGroupNotFoundError = "FeatureGroupNotFoundError"
475
+ FeatureNotBelongToFeatureGroupError = "FeatureNotBelongToFeatureGroupError"
473
476
  FeatureNotFound = "FeatureNotFound"
474
477
  FetchAllCountriesPricesNotAllowed = "FetchAllCountriesPricesNotAllowed"
475
478
  FreePlanCantHaveCompatiblePackageGroupError = (
@@ -127,6 +127,7 @@ class PackageEntitlementFragment(BaseModel):
127
127
  display_name_override: Optional[str] = Field(
128
128
  alias="displayNameOverride", default=None
129
129
  )
130
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
130
131
  feature: "PackageEntitlementFragmentFeature"
131
132
 
132
133
 
@@ -219,221 +220,89 @@ class AddonFragmentDependencies(AddonDependencyFragment):
219
220
  pass
220
221
 
221
222
 
222
- class SubscriptionFutureUpdateData(BaseModel):
223
- subscription_schedule_type: SubscriptionScheduleType = Field(
224
- alias="subscriptionScheduleType"
225
- )
226
- schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
227
- scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
228
- target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
229
- alias="targetPackage", default=None
223
+ class FeatureFragment(BaseModel):
224
+ typename__: str = Field(alias="__typename")
225
+ feature_type: FeatureType = Field(alias="featureType")
226
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
227
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
228
+ feature_units_plural: Optional[str] = Field(
229
+ alias="featureUnitsPlural", default=None
230
230
  )
231
- schedule_variables: Optional[
232
- Annotated[
233
- Union[
234
- "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
235
- "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
236
- "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
237
- "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
238
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
239
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
240
- "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
241
- "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
242
- ],
243
- Field(discriminator="typename__"),
244
- ]
245
- ] = Field(alias="scheduleVariables", default=None)
246
-
247
-
248
- class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
249
- id: Any
250
- ref_id: str = Field(alias="refId")
231
+ description: Optional[str] = Field(default=None)
251
232
  display_name: str = Field(alias="displayName")
233
+ ref_id: str = Field(alias="refId")
234
+ unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
235
+ alias="unitTransformation", default=None
236
+ )
252
237
 
253
238
 
254
- class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
255
- typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
256
- addon_ref_id: str = Field(alias="addonRefId")
257
- new_quantity: float = Field(alias="newQuantity")
258
-
259
-
260
- class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
261
- BaseModel
262
- ):
263
- typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
264
- addon_ref_id: str = Field(alias="addonRefId")
265
- feature_id: Optional[str] = Field(alias="featureId", default=None)
266
-
267
-
268
- class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
269
- BaseModel
270
- ):
271
- typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
272
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
273
-
274
-
275
- class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
276
- typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
277
-
278
-
279
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
280
- typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
281
- downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
282
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
283
- billable_features: Optional[
284
- List[
285
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
286
- ]
287
- ] = Field(alias="billableFeatures", default=None)
288
- addons: Optional[
289
- List[
290
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
291
- ]
292
- ] = Field(default=None)
293
- price_overrides: Optional[
294
- List[
295
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
296
- ]
297
- ] = Field(alias="priceOverrides", default=None)
298
-
299
-
300
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
301
- BaseModel
302
- ):
303
- feature_id: str = Field(alias="featureId")
304
- quantity: float
305
-
306
-
307
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
308
- BaseModel
309
- ):
310
- addon_ref_id: str = Field(alias="addonRefId")
311
- quantity: float
312
-
313
-
314
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
315
- BaseModel
316
- ):
317
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
318
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
319
- feature_id: Optional[str] = Field(alias="featureId", default=None)
239
+ class FeatureFragmentUnitTransformation(BaseModel):
240
+ divide: float
241
+ round: UnitTransformationRound
320
242
 
321
243
 
322
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
323
- typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
324
- plan_ref_id: str = Field(alias="planRefId")
325
- change_type: PlanChangeType = Field(alias="changeType")
326
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
327
- billable_features: Optional[
328
- List[
329
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
330
- ]
331
- ] = Field(alias="billableFeatures", default=None)
332
- addons: Optional[
333
- List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
334
- ] = Field(default=None)
335
- price_overrides: Optional[
336
- List[
337
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
244
+ class EntitlementFragment(BaseModel):
245
+ typename__: str = Field(alias="__typename")
246
+ is_granted: bool = Field(alias="isGranted")
247
+ access_denied_reason: Optional[AccessDeniedReason] = Field(
248
+ alias="accessDeniedReason", default=None
249
+ )
250
+ customer_id: Optional[str] = Field(alias="customerId", default=None)
251
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
252
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
253
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
254
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
255
+ current_usage: Optional[float] = Field(alias="currentUsage", default=None)
256
+ requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
257
+ requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
258
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
259
+ entitlement_updated_at: Optional[Any] = Field(
260
+ alias="entitlementUpdatedAt", default=None
261
+ )
262
+ usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
263
+ usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
264
+ usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
265
+ usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
266
+ next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
267
+ reset_period: Optional[EntitlementResetPeriod] = Field(
268
+ alias="resetPeriod", default=None
269
+ )
270
+ reset_period_configuration: Optional[
271
+ Annotated[
272
+ Union[
273
+ "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
274
+ "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
275
+ "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
276
+ ],
277
+ Field(discriminator="typename__"),
338
278
  ]
339
- ] = Field(alias="priceOverrides", default=None)
340
-
341
-
342
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
343
- BaseModel
344
- ):
345
- feature_id: str = Field(alias="featureId")
346
- quantity: float
347
-
348
-
349
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
350
- addon_ref_id: str = Field(alias="addonRefId")
351
- quantity: float
352
-
353
-
354
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
355
- BaseModel
356
- ):
357
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
358
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
359
- feature_id: Optional[str] = Field(alias="featureId", default=None)
360
-
361
-
362
- class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
363
- BaseModel
364
- ):
365
- typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
366
- plan_ref_id: str = Field(alias="planRefId")
367
- feature_id: Optional[str] = Field(alias="featureId", default=None)
368
-
369
-
370
- class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
371
- typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
372
- new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
373
- feature_id: Optional[str] = Field(alias="featureId", default=None)
374
-
375
-
376
- class TotalPriceFragment(BaseModel):
377
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
378
- total: "TotalPriceFragmentTotal"
379
-
380
-
381
- class TotalPriceFragmentSubTotal(BaseModel):
382
- amount: float
383
- currency: Currency
279
+ ] = Field(alias="resetPeriodConfiguration", default=None)
280
+ feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
384
281
 
385
282
 
386
- class TotalPriceFragmentTotal(BaseModel):
387
- amount: float
388
- currency: Currency
283
+ class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
284
+ typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
285
+ monthly_according_to: Optional[MonthlyAccordingTo] = Field(
286
+ alias="monthlyAccordingTo", default=None
287
+ )
389
288
 
390
289
 
391
- class SubscriptionInvoiceFragment(BaseModel):
392
- billing_id: str = Field(alias="billingId")
393
- status: SubscriptionInvoiceStatus
394
- created_at: Any = Field(alias="createdAt")
395
- updated_at: Any = Field(alias="updatedAt")
396
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
397
- requires_action: bool = Field(alias="requiresAction")
398
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
399
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
400
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
401
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
402
- alias="billingReason", default=None
403
- )
404
- currency: Optional[str] = Field(default=None)
405
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
406
- sub_total_excluding_tax: Optional[float] = Field(
407
- alias="subTotalExcludingTax", default=None
408
- )
409
- total: Optional[float] = Field(default=None)
410
- total_excluding_tax: Optional[float] = Field(
411
- alias="totalExcludingTax", default=None
290
+ class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
291
+ typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
292
+ weekly_according_to: Optional[WeeklyAccordingTo] = Field(
293
+ alias="weeklyAccordingTo", default=None
412
294
  )
413
- tax: Optional[float] = Field(default=None)
414
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
415
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
416
295
 
417
296
 
418
- class SubscriptionTrialConfigurationFragment(BaseModel):
419
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
297
+ class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
298
+ typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
299
+ yearly_according_to: Optional[YearlyAccordingTo] = Field(
300
+ alias="yearlyAccordingTo", default=None
301
+ )
420
302
 
421
303
 
422
- class SlimCustomerFragment(BaseModel):
423
- id: Any
424
- name: Optional[str] = Field(default=None)
425
- email: Optional[str] = Field(default=None)
426
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
427
- updated_at: Any = Field(alias="updatedAt")
428
- ref_id: str = Field(alias="refId")
429
- customer_id: str = Field(alias="customerId")
430
- billing_id: Optional[str] = Field(alias="billingId", default=None)
431
- additional_meta_data: Optional[Any] = Field(
432
- alias="additionalMetaData", default=None
433
- )
434
- aws_marketplace_customer_id: Optional[str] = Field(
435
- alias="awsMarketplaceCustomerId", default=None
436
- )
304
+ class EntitlementFragmentFeature(FeatureFragment):
305
+ pass
437
306
 
438
307
 
439
308
  class ProductFragment(BaseModel):
@@ -539,62 +408,272 @@ class PlanFragmentPrices(PriceFragment):
539
408
  pass
540
409
 
541
410
 
542
- class PlanFragmentOveragePrices(OveragePriceFragment):
543
- pass
411
+ class PlanFragmentOveragePrices(OveragePriceFragment):
412
+ pass
413
+
414
+
415
+ class PlanFragmentDefaultTrialConfig(BaseModel):
416
+ duration: float
417
+ units: TrialPeriodUnits
418
+ budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
419
+ trial_end_behavior: Optional[TrialEndBehavior] = Field(
420
+ alias="trialEndBehavior", default=None
421
+ )
422
+
423
+
424
+ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
425
+ limit: float
426
+
427
+
428
+ class SubscriptionTrialConfigurationFragment(BaseModel):
429
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
430
+
431
+
432
+ class SlimCustomerFragment(BaseModel):
433
+ id: Any
434
+ name: Optional[str] = Field(default=None)
435
+ email: Optional[str] = Field(default=None)
436
+ created_at: Optional[Any] = Field(alias="createdAt", default=None)
437
+ updated_at: Any = Field(alias="updatedAt")
438
+ ref_id: str = Field(alias="refId")
439
+ customer_id: str = Field(alias="customerId")
440
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
441
+ additional_meta_data: Optional[Any] = Field(
442
+ alias="additionalMetaData", default=None
443
+ )
444
+ aws_marketplace_customer_id: Optional[str] = Field(
445
+ alias="awsMarketplaceCustomerId", default=None
446
+ )
447
+
448
+
449
+ class SubscriptionInvoiceFragment(BaseModel):
450
+ billing_id: str = Field(alias="billingId")
451
+ status: SubscriptionInvoiceStatus
452
+ created_at: Any = Field(alias="createdAt")
453
+ updated_at: Any = Field(alias="updatedAt")
454
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
455
+ requires_action: bool = Field(alias="requiresAction")
456
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
457
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
458
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
459
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
460
+ alias="billingReason", default=None
461
+ )
462
+ currency: Optional[str] = Field(default=None)
463
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
464
+ sub_total_excluding_tax: Optional[float] = Field(
465
+ alias="subTotalExcludingTax", default=None
466
+ )
467
+ total: Optional[float] = Field(default=None)
468
+ total_excluding_tax: Optional[float] = Field(
469
+ alias="totalExcludingTax", default=None
470
+ )
471
+ tax: Optional[float] = Field(default=None)
472
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
473
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
474
+
475
+
476
+ class SubscriptionScheduledUpdateData(BaseModel):
477
+ subscription_schedule_type: SubscriptionScheduleType = Field(
478
+ alias="subscriptionScheduleType"
479
+ )
480
+ schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
481
+ scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
482
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
483
+ alias="targetPackage", default=None
484
+ )
485
+ schedule_variables: Optional[
486
+ Annotated[
487
+ Union[
488
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
489
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
490
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
491
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
492
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
493
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
494
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
495
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
496
+ ],
497
+ Field(discriminator="typename__"),
498
+ ]
499
+ ] = Field(alias="scheduleVariables", default=None)
500
+
501
+
502
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
503
+ id: Any
504
+ ref_id: str = Field(alias="refId")
505
+ display_name: str = Field(alias="displayName")
506
+
507
+
508
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
509
+ typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
510
+ addon_ref_id: str = Field(alias="addonRefId")
511
+ new_quantity: float = Field(alias="newQuantity")
512
+
513
+
514
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
515
+ BaseModel
516
+ ):
517
+ typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
518
+ addon_ref_id: str = Field(alias="addonRefId")
519
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
520
+
521
+
522
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
523
+ BaseModel
524
+ ):
525
+ typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
526
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
527
+
528
+
529
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
530
+ typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
531
+
532
+
533
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
534
+ BaseModel
535
+ ):
536
+ typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
537
+ downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
538
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
539
+ billable_features: Optional[
540
+ List[
541
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
542
+ ]
543
+ ] = Field(alias="billableFeatures", default=None)
544
+ addons: Optional[
545
+ List[
546
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
547
+ ]
548
+ ] = Field(default=None)
549
+ price_overrides: Optional[
550
+ List[
551
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
552
+ ]
553
+ ] = Field(alias="priceOverrides", default=None)
554
+
555
+
556
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
557
+ BaseModel
558
+ ):
559
+ feature_id: str = Field(alias="featureId")
560
+ quantity: float
561
+
562
+
563
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
564
+ BaseModel
565
+ ):
566
+ addon_ref_id: str = Field(alias="addonRefId")
567
+ quantity: float
568
+
569
+
570
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
571
+ BaseModel
572
+ ):
573
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
574
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
575
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
576
+
577
+
578
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
579
+ typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
580
+ plan_ref_id: str = Field(alias="planRefId")
581
+ change_type: PlanChangeType = Field(alias="changeType")
582
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
583
+ billable_features: Optional[
584
+ List[
585
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
586
+ ]
587
+ ] = Field(alias="billableFeatures", default=None)
588
+ addons: Optional[
589
+ List[
590
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
591
+ ]
592
+ ] = Field(default=None)
593
+ price_overrides: Optional[
594
+ List[
595
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
596
+ ]
597
+ ] = Field(alias="priceOverrides", default=None)
598
+
599
+
600
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
601
+ BaseModel
602
+ ):
603
+ feature_id: str = Field(alias="featureId")
604
+ quantity: float
605
+
606
+
607
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
608
+ BaseModel
609
+ ):
610
+ addon_ref_id: str = Field(alias="addonRefId")
611
+ quantity: float
612
+
613
+
614
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
615
+ BaseModel
616
+ ):
617
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
618
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
619
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
544
620
 
545
621
 
546
- class PlanFragmentDefaultTrialConfig(BaseModel):
547
- duration: float
548
- units: TrialPeriodUnits
549
- budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
550
- trial_end_behavior: Optional[TrialEndBehavior] = Field(
551
- alias="trialEndBehavior", default=None
552
- )
622
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
623
+ BaseModel
624
+ ):
625
+ typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
626
+ plan_ref_id: str = Field(alias="planRefId")
627
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
553
628
 
554
629
 
555
- class PlanFragmentDefaultTrialConfigBudget(BaseModel):
556
- limit: float
630
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
631
+ BaseModel
632
+ ):
633
+ typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
634
+ new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
635
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
557
636
 
558
637
 
559
- class SubscriptionScheduledUpdateData(BaseModel):
638
+ class SubscriptionFutureUpdateData(BaseModel):
560
639
  subscription_schedule_type: SubscriptionScheduleType = Field(
561
640
  alias="subscriptionScheduleType"
562
641
  )
563
642
  schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
564
643
  scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
565
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
644
+ target_package: Optional["SubscriptionFutureUpdateDataTargetPackage"] = Field(
566
645
  alias="targetPackage", default=None
567
646
  )
568
647
  schedule_variables: Optional[
569
648
  Annotated[
570
649
  Union[
571
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
572
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
573
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
574
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
575
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
576
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
577
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
578
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
650
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables",
651
+ "SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
652
+ "SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables",
653
+ "SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables",
654
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables",
655
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables",
656
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
657
+ "SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables",
579
658
  ],
580
659
  Field(discriminator="typename__"),
581
660
  ]
582
661
  ] = Field(alias="scheduleVariables", default=None)
583
662
 
584
663
 
585
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
664
+ class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
586
665
  id: Any
587
666
  ref_id: str = Field(alias="refId")
588
667
  display_name: str = Field(alias="displayName")
589
668
 
590
669
 
591
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
670
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
592
671
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
593
672
  addon_ref_id: str = Field(alias="addonRefId")
594
673
  new_quantity: float = Field(alias="newQuantity")
595
674
 
596
675
 
597
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
676
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
598
677
  BaseModel
599
678
  ):
600
679
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -602,55 +681,53 @@ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVa
602
681
  feature_id: Optional[str] = Field(alias="featureId", default=None)
603
682
 
604
683
 
605
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
684
+ class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
606
685
  BaseModel
607
686
  ):
608
687
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
609
688
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
610
689
 
611
690
 
612
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
691
+ class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
613
692
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
614
693
 
615
694
 
616
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
617
- BaseModel
618
- ):
695
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
619
696
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
620
697
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
621
698
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
622
699
  billable_features: Optional[
623
700
  List[
624
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
701
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
625
702
  ]
626
703
  ] = Field(alias="billableFeatures", default=None)
627
704
  addons: Optional[
628
705
  List[
629
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
706
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
630
707
  ]
631
708
  ] = Field(default=None)
632
709
  price_overrides: Optional[
633
710
  List[
634
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
711
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
635
712
  ]
636
713
  ] = Field(alias="priceOverrides", default=None)
637
714
 
638
715
 
639
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
716
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
640
717
  BaseModel
641
718
  ):
642
719
  feature_id: str = Field(alias="featureId")
643
720
  quantity: float
644
721
 
645
722
 
646
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
723
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
647
724
  BaseModel
648
725
  ):
649
726
  addon_ref_id: str = Field(alias="addonRefId")
650
727
  quantity: float
651
728
 
652
729
 
653
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
730
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
654
731
  BaseModel
655
732
  ):
656
733
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -658,43 +735,39 @@ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPr
658
735
  feature_id: Optional[str] = Field(alias="featureId", default=None)
659
736
 
660
737
 
661
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
738
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
662
739
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
663
740
  plan_ref_id: str = Field(alias="planRefId")
664
741
  change_type: PlanChangeType = Field(alias="changeType")
665
742
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
666
743
  billable_features: Optional[
667
744
  List[
668
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
745
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
669
746
  ]
670
747
  ] = Field(alias="billableFeatures", default=None)
671
748
  addons: Optional[
672
- List[
673
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
674
- ]
749
+ List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
675
750
  ] = Field(default=None)
676
751
  price_overrides: Optional[
677
752
  List[
678
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
753
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
679
754
  ]
680
755
  ] = Field(alias="priceOverrides", default=None)
681
756
 
682
757
 
683
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
758
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
684
759
  BaseModel
685
760
  ):
686
761
  feature_id: str = Field(alias="featureId")
687
762
  quantity: float
688
763
 
689
764
 
690
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
691
- BaseModel
692
- ):
765
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
693
766
  addon_ref_id: str = Field(alias="addonRefId")
694
767
  quantity: float
695
768
 
696
769
 
697
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
770
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
698
771
  BaseModel
699
772
  ):
700
773
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -702,7 +775,7 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOv
702
775
  feature_id: Optional[str] = Field(alias="featureId", default=None)
703
776
 
704
777
 
705
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
778
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
706
779
  BaseModel
707
780
  ):
708
781
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -710,14 +783,27 @@ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVar
710
783
  feature_id: Optional[str] = Field(alias="featureId", default=None)
711
784
 
712
785
 
713
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
714
- BaseModel
715
- ):
786
+ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
716
787
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
717
788
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
718
789
  feature_id: Optional[str] = Field(alias="featureId", default=None)
719
790
 
720
791
 
792
+ class TotalPriceFragment(BaseModel):
793
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
794
+ total: "TotalPriceFragmentTotal"
795
+
796
+
797
+ class TotalPriceFragmentSubTotal(BaseModel):
798
+ amount: float
799
+ currency: Currency
800
+
801
+
802
+ class TotalPriceFragmentTotal(BaseModel):
803
+ amount: float
804
+ currency: Currency
805
+
806
+
721
807
  class CustomerResourceFragment(BaseModel):
722
808
  resource_id: str = Field(alias="resourceId")
723
809
 
@@ -831,91 +917,6 @@ class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragm
831
917
  pass
832
918
 
833
919
 
834
- class FeatureFragment(BaseModel):
835
- typename__: str = Field(alias="__typename")
836
- feature_type: FeatureType = Field(alias="featureType")
837
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
838
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
839
- feature_units_plural: Optional[str] = Field(
840
- alias="featureUnitsPlural", default=None
841
- )
842
- description: Optional[str] = Field(default=None)
843
- display_name: str = Field(alias="displayName")
844
- ref_id: str = Field(alias="refId")
845
- unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
846
- alias="unitTransformation", default=None
847
- )
848
-
849
-
850
- class FeatureFragmentUnitTransformation(BaseModel):
851
- divide: float
852
- round: UnitTransformationRound
853
-
854
-
855
- class EntitlementFragment(BaseModel):
856
- typename__: str = Field(alias="__typename")
857
- is_granted: bool = Field(alias="isGranted")
858
- access_denied_reason: Optional[AccessDeniedReason] = Field(
859
- alias="accessDeniedReason", default=None
860
- )
861
- customer_id: Optional[str] = Field(alias="customerId", default=None)
862
- resource_id: Optional[str] = Field(alias="resourceId", default=None)
863
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
864
- has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
865
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
866
- current_usage: Optional[float] = Field(alias="currentUsage", default=None)
867
- requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
868
- requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
869
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
870
- entitlement_updated_at: Optional[Any] = Field(
871
- alias="entitlementUpdatedAt", default=None
872
- )
873
- usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
874
- usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
875
- usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
876
- usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
877
- next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
878
- reset_period: Optional[EntitlementResetPeriod] = Field(
879
- alias="resetPeriod", default=None
880
- )
881
- reset_period_configuration: Optional[
882
- Annotated[
883
- Union[
884
- "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
885
- "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
886
- "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
887
- ],
888
- Field(discriminator="typename__"),
889
- ]
890
- ] = Field(alias="resetPeriodConfiguration", default=None)
891
- feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
892
-
893
-
894
- class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
895
- typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
896
- monthly_according_to: Optional[MonthlyAccordingTo] = Field(
897
- alias="monthlyAccordingTo", default=None
898
- )
899
-
900
-
901
- class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
902
- typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
903
- weekly_according_to: Optional[WeeklyAccordingTo] = Field(
904
- alias="weeklyAccordingTo", default=None
905
- )
906
-
907
-
908
- class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
909
- typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
910
- yearly_according_to: Optional[YearlyAccordingTo] = Field(
911
- alias="yearlyAccordingTo", default=None
912
- )
913
-
914
-
915
- class EntitlementFragmentFeature(FeatureFragment):
916
- pass
917
-
918
-
919
920
  class ApplySubscriptionFragment(BaseModel):
920
921
  subscription: Optional["ApplySubscriptionFragmentSubscription"] = Field(
921
922
  default=None
@@ -1262,16 +1263,6 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1262
1263
  pass
1263
1264
 
1264
1265
 
1265
- class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1266
- display_name: str = Field(alias="displayName")
1267
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1268
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1269
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1270
- period: PromotionalEntitlementPeriod
1271
- start_date: Any = Field(alias="startDate")
1272
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1273
-
1274
-
1275
1266
  class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
1276
1267
  subscription_schedule_type: SubscriptionScheduleType = Field(
1277
1268
  alias="subscriptionScheduleType"
@@ -1441,6 +1432,13 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1441
1432
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1442
1433
 
1443
1434
 
1435
+ class CustomerPortalSubscriptionAddonFragment(BaseModel):
1436
+ addon_id: str = Field(alias="addonId")
1437
+ description: Optional[str] = Field(default=None)
1438
+ display_name: str = Field(alias="displayName")
1439
+ quantity: int
1440
+
1441
+
1444
1442
  class CustomerPortalSubscriptionPriceFragment(BaseModel):
1445
1443
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1446
1444
  billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
@@ -1468,13 +1466,6 @@ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1468
1466
  )
1469
1467
 
1470
1468
 
1471
- class CustomerPortalSubscriptionAddonFragment(BaseModel):
1472
- addon_id: str = Field(alias="addonId")
1473
- description: Optional[str] = Field(default=None)
1474
- display_name: str = Field(alias="displayName")
1475
- quantity: int
1476
-
1477
-
1478
1469
  class CustomerPortalSubscriptionFragment(BaseModel):
1479
1470
  subscription_id: str = Field(alias="subscriptionId")
1480
1471
  plan_id: str = Field(alias="planId")
@@ -1571,6 +1562,16 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
1571
1562
  pass
1572
1563
 
1573
1564
 
1565
+ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1566
+ display_name: str = Field(alias="displayName")
1567
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1568
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1569
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1570
+ period: PromotionalEntitlementPeriod
1571
+ start_date: Any = Field(alias="startDate")
1572
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1573
+
1574
+
1574
1575
  class CustomerPortalFragment(BaseModel):
1575
1576
  subscriptions: List["CustomerPortalFragmentSubscriptions"]
1576
1577
  entitlements: List["CustomerPortalFragmentEntitlements"]
@@ -1845,6 +1846,7 @@ class MockPaywallPackageEntitlementFragment(BaseModel):
1845
1846
  display_name_override: Optional[str] = Field(
1846
1847
  alias="displayNameOverride", default=None
1847
1848
  )
1849
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
1848
1850
  feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
1849
1851
  default=None
1850
1852
  )
@@ -2843,19 +2845,19 @@ OveragePriceFragment.model_rebuild()
2843
2845
  PackageEntitlementFragment.model_rebuild()
2844
2846
  PriceFragment.model_rebuild()
2845
2847
  AddonFragment.model_rebuild()
2846
- SubscriptionFutureUpdateData.model_rebuild()
2847
- TotalPriceFragment.model_rebuild()
2848
- SubscriptionInvoiceFragment.model_rebuild()
2849
- SubscriptionTrialConfigurationFragment.model_rebuild()
2850
- SlimCustomerFragment.model_rebuild()
2848
+ FeatureFragment.model_rebuild()
2849
+ EntitlementFragment.model_rebuild()
2851
2850
  ProductFragment.model_rebuild()
2852
2851
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2853
2852
  PlanFragment.model_rebuild()
2853
+ SubscriptionTrialConfigurationFragment.model_rebuild()
2854
+ SlimCustomerFragment.model_rebuild()
2855
+ SubscriptionInvoiceFragment.model_rebuild()
2854
2856
  SubscriptionScheduledUpdateData.model_rebuild()
2857
+ SubscriptionFutureUpdateData.model_rebuild()
2858
+ TotalPriceFragment.model_rebuild()
2855
2859
  CustomerResourceFragment.model_rebuild()
2856
2860
  SubscriptionFragment.model_rebuild()
2857
- FeatureFragment.model_rebuild()
2858
- EntitlementFragment.model_rebuild()
2859
2861
  ApplySubscriptionFragment.model_rebuild()
2860
2862
  FontVariantFragment.model_rebuild()
2861
2863
  TypographyConfigurationFragment.model_rebuild()
@@ -2867,11 +2869,11 @@ CheckoutStateFragment.model_rebuild()
2867
2869
  CustomerPortalBillingInformationFragment.model_rebuild()
2868
2870
  CustomerPortalConfigurationFragment.model_rebuild()
2869
2871
  CustomerPortalEntitlementFragment.model_rebuild()
2870
- CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2871
2872
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2872
- CustomerPortalSubscriptionPriceFragment.model_rebuild()
2873
2873
  CustomerPortalSubscriptionAddonFragment.model_rebuild()
2874
+ CustomerPortalSubscriptionPriceFragment.model_rebuild()
2874
2875
  CustomerPortalSubscriptionFragment.model_rebuild()
2876
+ CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2875
2877
  CustomerPortalFragment.model_rebuild()
2876
2878
  CustomerStatisticsFragment.model_rebuild()
2877
2879
  CustomerWithSubscriptionsFragment.model_rebuild()
@@ -2372,6 +2372,7 @@ class OverageEntitlementCreateInput(BaseModel):
2372
2372
  alias="displayNameOverride", default=None
2373
2373
  )
2374
2374
  enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
2375
+ feature_group_id: Optional[Any] = Field(alias="featureGroupId", default=None)
2375
2376
  feature_id: Any = Field(alias="featureId")
2376
2377
  has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
2377
2378
  has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
@@ -2532,6 +2533,7 @@ class PackageEntitlementInput(BaseModel):
2532
2533
  )
2533
2534
  enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
2534
2535
  environment_id: Any = Field(alias="environmentId")
2536
+ feature_group_id: Optional[Any] = Field(alias="featureGroupId", default=None)
2535
2537
  feature_id: Any = Field(alias="featureId")
2536
2538
  has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
2537
2539
  has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
@@ -3494,6 +3496,12 @@ class RemoveExperimentFromCustomerSubscriptionInput(BaseModel):
3494
3496
  relation_id: Any = Field(alias="relationId")
3495
3497
 
3496
3498
 
3499
+ class RemoveFeatureGroupFromPackageInput(BaseModel):
3500
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
3501
+ feature_group_id: Any = Field(alias="featureGroupId")
3502
+ package_id: Any = Field(alias="packageId")
3503
+
3504
+
3497
3505
  class ReportUsageBaseInput(BaseModel):
3498
3506
  created_at: Optional[Any] = Field(alias="createdAt", default=None)
3499
3507
  customer_id: str = Field(alias="customerId")
@@ -4451,6 +4459,12 @@ class UnitTransformationInput(BaseModel):
4451
4459
  round: Optional[UnitTransformationRound] = UnitTransformationRound.UP
4452
4460
 
4453
4461
 
4462
+ class UnlinkFeatureGroupInput(BaseModel):
4463
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
4464
+ feature_group_id: Any = Field(alias="featureGroupId")
4465
+ package_id: Any = Field(alias="packageId")
4466
+
4467
+
4454
4468
  class UpdateAccountInput(BaseModel):
4455
4469
  access_method: Optional[AccountAccessMethod] = Field(
4456
4470
  alias="accessMethod", default=None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 2.482.0
3
+ Version: 2.487.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,24 +106,24 @@ stigg/_vendors/pydantic-2.6.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCe
106
106
  stigg/_vendors/pydantic-2.6.4.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
107
107
  stigg/_vendors/pydantic-2.6.4.dist-info/licenses/LICENSE,sha256=qeGG88oWte74QxjnpwFyE1GgDLe4rjpDlLZ7SeNSnvM,1129
108
108
  stigg/client.py,sha256=RWrVnxo9zHFXka8KJVE4sMgyek70ispQk0vqOINCvM0,8335
109
- stigg/generated/__init__.py,sha256=ZqTxHJXrfwLRuzEhiy_goBs-DkH8QafSL5NEa4rczxI,71523
109
+ stigg/generated/__init__.py,sha256=8fT6fyA-MhIGPz6SLGukCkVZlCOedfvWLqu1FiEKewg,71665
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=s46zpVm8ltvC-23UgJDck__1DyPEgrZ4VkpsJ3Xl1d0,173564
113
+ stigg/generated/async_client.py,sha256=rfldCLtIqR4oQunbiTuRjXLdbYjzAn4D08dh5pEQl9s,173739
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=FIRvvpLkBu44ce1V4CJtQ1XFIsWX_tqk2Qh46MPpWIM,172975
118
+ stigg/generated/client.py,sha256=tGqbCewOFV2YP6igue7hQZghW3XraHyV0OXcoKfsssE,173150
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
122
- stigg/generated/enums.py,sha256=KTgzOS_WB86OMovgzudYX1xb40b_-Z_kT96fNwG3TaM,36446
122
+ stigg/generated/enums.py,sha256=UPo_2u9GdUtupXMrqY5cBtlP-lgUyKOU5GF1_jPr7g4,36682
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=V__KilpjDZt2_ICXfumj5m3JwRrRcHYfWO3hmxlNkBA,103692
126
+ stigg/generated/fragments.py,sha256=08DChD71thAqq8bBq9SsymtGrcETXTQUeHH8j9uN7hQ,103850
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
@@ -145,7 +145,7 @@ stigg/generated/grant_promotional_entitlements.py,sha256=72PRYuqecL-0SkWb7deygkh
145
145
  stigg/generated/import_customer.py,sha256=yEtrEB7T-Aykv3AUl-rAQz2XL6hKL0j-7JL3h-xi87o,403
146
146
  stigg/generated/import_customer_bulk.py,sha256=miLn2ScWlPOH1IipltY5Vgd-ZQ_BkBk9t3-EsLvU5ZQ,284
147
147
  stigg/generated/import_subscriptions_bulk.py,sha256=QgitpZkjE7eBhP1o5W0PTVAbKOvz61dNoeBAWupIcgU,297
148
- stigg/generated/input_types.py,sha256=0XNY8g_8m8nX-hbsGzTDnw6HZ4InUooCG66a0eaOwy8,200655
148
+ stigg/generated/input_types.py,sha256=fJq5IRSfMgfbqxDVWZ01YpTJODfcq9x2vbNErY00ArM,201286
149
149
  stigg/generated/migrate_subscription_to_latest.py,sha256=qQDwH7EodYAeJFb62IIl-MAEB5MbthgCJ0v1RMxpdYk,516
150
150
  stigg/generated/preview_next_invoice.py,sha256=MiQ4Gv7Ve1Hv60xhaQi7uj82aq0xLP2UB-gjvcQdOL8,478
151
151
  stigg/generated/preview_subscription.py,sha256=Qo2vlFs7sFzqaE8J_e-EHTRfLvG46lko-dcJMxDSCR0,475
@@ -161,7 +161,7 @@ stigg/generated/transfer_subscription_to_resource.py,sha256=4-N7quYhHpVTGPi6EV-U
161
161
  stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9eW71jND2k,441
162
162
  stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
163
163
  stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
164
- stigg_api_client_v2-2.482.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
- stigg_api_client_v2-2.482.0.dist-info/METADATA,sha256=ZofhZf01zXLgjqcs3vwoVNdcktVoGXT1rNRJifAi5h4,2258
166
- stigg_api_client_v2-2.482.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
- stigg_api_client_v2-2.482.0.dist-info/RECORD,,
164
+ stigg_api_client_v2-2.487.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
+ stigg_api_client_v2-2.487.0.dist-info/METADATA,sha256=euRCEa3_t_gMuOXedlaBqADnSZi7uvKOW8oA7pSU41s,2258
166
+ stigg_api_client_v2-2.487.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
+ stigg_api_client_v2-2.487.0.dist-info/RECORD,,