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

@@ -44,6 +44,7 @@ from .enums import (
44
44
  CouponSource,
45
45
  CouponStatus,
46
46
  CouponType,
47
+ CreditGrantType,
47
48
  Currency,
48
49
  CustomerResourceSortFields,
49
50
  CustomerSortFields,
@@ -630,7 +631,9 @@ from .input_types import (
630
631
  CreateOrUpdateAwsMarketplaceProductInput,
631
632
  CreatePackageGroup,
632
633
  CreateWorkflowTriggerInput,
634
+ CreditGrantInput,
633
635
  CursorPaging,
636
+ CustomCurrencyInput,
634
637
  CustomerBillingInfo,
635
638
  CustomerFilter,
636
639
  CustomerFilterCustomerSubscriptionFilter,
@@ -712,6 +715,7 @@ from .input_types import (
712
715
  FontVariantInput,
713
716
  GetActiveSubscriptionsInput,
714
717
  GetAuth0ApplicationsInput,
718
+ GetCreditGrantsInput,
715
719
  GetCustomerByRefIdInput,
716
720
  GetPackageByRefIdInput,
717
721
  GetPackageGroup,
@@ -893,9 +897,11 @@ from .input_types import (
893
897
  UnArchiveFeatureInput,
894
898
  UnArchivePlanInput,
895
899
  UnitTransformationInput,
896
- UnlinkFeatureGroupInput,
900
+ UnlinkFeatureGroupFromPackageInput,
897
901
  UpdateAccountInput,
898
902
  UpdateCouponInput,
903
+ UpdateCreditGrantInput,
904
+ UpdateCustomCurrencyInput,
899
905
  UpdateCustomerInput,
900
906
  UpdateExperimentInput,
901
907
  UpdateFeatureInput,
@@ -1092,8 +1098,11 @@ __all__ = [
1092
1098
  "CreateSubscription",
1093
1099
  "CreateSubscriptionCreateSubscription",
1094
1100
  "CreateWorkflowTriggerInput",
1101
+ "CreditGrantInput",
1102
+ "CreditGrantType",
1095
1103
  "Currency",
1096
1104
  "CursorPaging",
1105
+ "CustomCurrencyInput",
1097
1106
  "CustomerBillingInfo",
1098
1107
  "CustomerFilter",
1099
1108
  "CustomerFilterCustomerSubscriptionFilter",
@@ -1293,6 +1302,7 @@ __all__ = [
1293
1302
  "GetCouponsCoupons",
1294
1303
  "GetCouponsCouponsEdges",
1295
1304
  "GetCouponsCouponsEdgesNode",
1305
+ "GetCreditGrantsInput",
1296
1306
  "GetCustomerById",
1297
1307
  "GetCustomerByIdGetCustomerByRefId",
1298
1308
  "GetCustomerByRefIdInput",
@@ -1842,9 +1852,11 @@ __all__ = [
1842
1852
  "UnarchiveEnvironmentInput",
1843
1853
  "UnitTransformationInput",
1844
1854
  "UnitTransformationRound",
1845
- "UnlinkFeatureGroupInput",
1855
+ "UnlinkFeatureGroupFromPackageInput",
1846
1856
  "UpdateAccountInput",
1847
1857
  "UpdateCouponInput",
1858
+ "UpdateCreditGrantInput",
1859
+ "UpdateCustomCurrencyInput",
1848
1860
  "UpdateCustomer",
1849
1861
  "UpdateCustomerInput",
1850
1862
  "UpdateCustomerUpdateCustomer",
stigg/generated/enums.py CHANGED
@@ -157,6 +157,11 @@ class CouponType(str, Enum):
157
157
  PERCENTAGE = "PERCENTAGE"
158
158
 
159
159
 
160
+ class CreditGrantType(str, Enum):
161
+ PAID = "PAID"
162
+ PROMOTIONAL = "PROMOTIONAL"
163
+
164
+
160
165
  class Currency(str, Enum):
161
166
  AED = "AED"
162
167
  ALL = "ALL"
@@ -434,6 +439,9 @@ class ErrorCode(str, Enum):
434
439
  CannotReportUsageForEntitlementWithMeterError = (
435
440
  "CannotReportUsageForEntitlementWithMeterError"
436
441
  )
442
+ CannotUpdateExpireAtForExpiredCreditGrantError = (
443
+ "CannotUpdateExpireAtForExpiredCreditGrantError"
444
+ )
437
445
  CannotUpdateUnitTransformationError = "CannotUpdateUnitTransformationError"
438
446
  CannotUpsertToPackageThatHasDraft = "CannotUpsertToPackageThatHasDraft"
439
447
  ChangingPayingCustomerIsNotSupportedError = (
@@ -441,6 +449,8 @@ class ErrorCode(str, Enum):
441
449
  )
442
450
  CheckoutIsNotSupported = "CheckoutIsNotSupported"
443
451
  CouponNotFound = "CouponNotFound"
452
+ CreditGrantNotFound = "CreditGrantNotFound"
453
+ CustomCurrencyNotFound = "CustomCurrencyNotFound"
444
454
  CustomerAlreadyHaveCustomerCoupon = "CustomerAlreadyHaveCustomerCoupon"
445
455
  CustomerAlreadyUsesCoupon = "CustomerAlreadyUsesCoupon"
446
456
  CustomerHasNoEmailAddress = "CustomerHasNoEmailAddress"
@@ -466,6 +476,7 @@ class ErrorCode(str, Enum):
466
476
  ExperimentAlreadyRunning = "ExperimentAlreadyRunning"
467
477
  ExperimentNotFoundError = "ExperimentNotFoundError"
468
478
  ExperimentStatusError = "ExperimentStatusError"
479
+ ExpireAtMustBeLaterThanEffectiveAtError = "ExpireAtMustBeLaterThanEffectiveAtError"
469
480
  FailedToCreateCheckoutSessionError = "FailedToCreateCheckoutSessionError"
470
481
  FailedToImportCustomer = "FailedToImportCustomer"
471
482
  FailedToImportSubscriptions = "FailedToImportSubscriptions"
@@ -561,6 +572,7 @@ class ErrorCode(str, Enum):
561
572
  SubscriptionMustHaveSinglePlanError = "SubscriptionMustHaveSinglePlanError"
562
573
  SubscriptionNoBillingId = "SubscriptionNoBillingId"
563
574
  SubscriptionNotFound = "SubscriptionNotFound"
575
+ TooManyCustomCurrencies = "TooManyCustomCurrencies"
564
576
  TooManySubscriptionsPerCustomer = "TooManySubscriptionsPerCustomer"
565
577
  TrialMustBeCancelledImmediately = "TrialMustBeCancelledImmediately"
566
578
  UnPublishedPackage = "UnPublishedPackage"
@@ -80,42 +80,6 @@ class PriceTierFragmentFlatPrice(BaseModel):
80
80
  currency: Currency
81
81
 
82
82
 
83
- class PriceFragment(BaseModel):
84
- billing_model: BillingModel = Field(alias="billingModel")
85
- billing_period: BillingPeriod = Field(alias="billingPeriod")
86
- billing_cadence: BillingCadence = Field(alias="billingCadence")
87
- billing_id: Optional[str] = Field(alias="billingId", default=None)
88
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
89
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
90
- billing_country_code: Optional[str] = Field(
91
- alias="billingCountryCode", default=None
92
- )
93
- price: Optional["PriceFragmentPrice"] = Field(default=None)
94
- tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
95
- tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
96
- feature: Optional["PriceFragmentFeature"] = Field(default=None)
97
- block_size: Optional[float] = Field(alias="blockSize", default=None)
98
-
99
-
100
- class PriceFragmentPrice(BaseModel):
101
- amount: float
102
- currency: Currency
103
-
104
-
105
- class PriceFragmentTiers(PriceTierFragment):
106
- pass
107
-
108
-
109
- class PriceFragmentFeature(BaseModel):
110
- ref_id: str = Field(alias="refId")
111
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
112
- feature_units_plural: Optional[str] = Field(
113
- alias="featureUnitsPlural", default=None
114
- )
115
- display_name: str = Field(alias="displayName")
116
- description: Optional[str] = Field(default=None)
117
-
118
-
119
83
  class OveragePriceFragment(BaseModel):
120
84
  billing_model: BillingModel = Field(alias="billingModel")
121
85
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -182,6 +146,42 @@ class PackageEntitlementFragmentFeature(BaseModel):
182
146
  )
183
147
 
184
148
 
149
+ class PriceFragment(BaseModel):
150
+ billing_model: BillingModel = Field(alias="billingModel")
151
+ billing_period: BillingPeriod = Field(alias="billingPeriod")
152
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
153
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
154
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
155
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
156
+ billing_country_code: Optional[str] = Field(
157
+ alias="billingCountryCode", default=None
158
+ )
159
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
160
+ tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
161
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
162
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
163
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
164
+
165
+
166
+ class PriceFragmentPrice(BaseModel):
167
+ amount: float
168
+ currency: Currency
169
+
170
+
171
+ class PriceFragmentTiers(PriceTierFragment):
172
+ pass
173
+
174
+
175
+ class PriceFragmentFeature(BaseModel):
176
+ ref_id: str = Field(alias="refId")
177
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
178
+ feature_units_plural: Optional[str] = Field(
179
+ alias="featureUnitsPlural", default=None
180
+ )
181
+ display_name: str = Field(alias="displayName")
182
+ description: Optional[str] = Field(default=None)
183
+
184
+
185
185
  class AddonFragment(BaseModel):
186
186
  id: Any
187
187
  ref_id: str = Field(alias="refId")
@@ -220,245 +220,170 @@ class AddonFragmentDependencies(AddonDependencyFragment):
220
220
  pass
221
221
 
222
222
 
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
- )
231
- description: Optional[str] = Field(default=None)
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
- )
237
-
238
-
239
- class FeatureFragmentUnitTransformation(BaseModel):
240
- divide: float
241
- round: UnitTransformationRound
242
-
243
-
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
223
+ class SubscriptionScheduledUpdateData(BaseModel):
224
+ subscription_schedule_type: SubscriptionScheduleType = Field(
225
+ alias="subscriptionScheduleType"
261
226
  )
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
227
+ schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
228
+ scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
229
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
230
+ alias="targetPackage", default=None
269
231
  )
270
- reset_period_configuration: Optional[
232
+ schedule_variables: Optional[
271
233
  Annotated[
272
234
  Union[
273
- "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
274
- "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
275
- "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
235
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
236
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
237
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
238
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
239
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
240
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
241
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
242
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
276
243
  ],
277
244
  Field(discriminator="typename__"),
278
245
  ]
279
- ] = Field(alias="resetPeriodConfiguration", default=None)
280
- feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
281
-
282
-
283
- class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
284
- typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
285
- monthly_according_to: Optional[MonthlyAccordingTo] = Field(
286
- alias="monthlyAccordingTo", default=None
287
- )
288
-
289
-
290
- class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
291
- typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
292
- weekly_according_to: Optional[WeeklyAccordingTo] = Field(
293
- alias="weeklyAccordingTo", default=None
294
- )
295
-
296
-
297
- class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
298
- typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
299
- yearly_according_to: Optional[YearlyAccordingTo] = Field(
300
- alias="yearlyAccordingTo", default=None
301
- )
302
-
303
-
304
- class EntitlementFragmentFeature(FeatureFragment):
305
- pass
246
+ ] = Field(alias="scheduleVariables", default=None)
306
247
 
307
248
 
308
- class SlimCustomerFragment(BaseModel):
249
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
309
250
  id: Any
310
- name: Optional[str] = Field(default=None)
311
- email: Optional[str] = Field(default=None)
312
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
313
- updated_at: Any = Field(alias="updatedAt")
314
251
  ref_id: str = Field(alias="refId")
315
- customer_id: str = Field(alias="customerId")
316
- billing_id: Optional[str] = Field(alias="billingId", default=None)
317
- additional_meta_data: Optional[Any] = Field(
318
- alias="additionalMetaData", default=None
319
- )
320
- aws_marketplace_customer_id: Optional[str] = Field(
321
- alias="awsMarketplaceCustomerId", default=None
322
- )
323
-
324
-
325
- class SubscriptionTrialConfigurationFragment(BaseModel):
326
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
327
-
328
-
329
- class TotalPriceFragment(BaseModel):
330
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
331
- total: "TotalPriceFragmentTotal"
332
-
333
-
334
- class TotalPriceFragmentSubTotal(BaseModel):
335
- amount: float
336
- currency: Currency
337
-
338
-
339
- class TotalPriceFragmentTotal(BaseModel):
340
- amount: float
341
- currency: Currency
342
-
343
-
344
- class PlanCompatiblePackageGroupsFragment(BaseModel):
345
- package_group_id: str = Field(alias="packageGroupId")
346
252
  display_name: str = Field(alias="displayName")
347
- addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
348
- default=None
349
- )
350
- options: "PlanCompatiblePackageGroupsFragmentOptions"
351
-
352
-
353
- class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
354
- pass
355
253
 
356
254
 
357
- class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
358
- min_items: Optional[float] = Field(alias="minItems", default=None)
359
- free_items: Optional[float] = Field(alias="freeItems", default=None)
255
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
256
+ typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
257
+ addon_ref_id: str = Field(alias="addonRefId")
258
+ new_quantity: float = Field(alias="newQuantity")
360
259
 
361
260
 
362
- class ProductFragment(BaseModel):
363
- ref_id: str = Field(alias="refId")
364
- display_name: Optional[str] = Field(alias="displayName", default=None)
365
- description: Optional[str] = Field(default=None)
366
- additional_meta_data: Optional[Any] = Field(
367
- alias="additionalMetaData", default=None
368
- )
369
- product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
261
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
262
+ BaseModel
263
+ ):
264
+ typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
265
+ addon_ref_id: str = Field(alias="addonRefId")
266
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
370
267
 
371
268
 
372
- class ProductFragmentProductSettings(BaseModel):
373
- downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
374
- alias="downgradePlan", default=None
375
- )
269
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
270
+ BaseModel
271
+ ):
272
+ typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
273
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
376
274
 
377
275
 
378
- class ProductFragmentProductSettingsDowngradePlan(BaseModel):
379
- ref_id: str = Field(alias="refId")
380
- display_name: str = Field(alias="displayName")
276
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
277
+ typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
381
278
 
382
279
 
383
- class PlanFragment(BaseModel):
384
- id: Any
385
- ref_id: str = Field(alias="refId")
386
- display_name: str = Field(alias="displayName")
387
- description: Optional[str] = Field(default=None)
388
- billing_id: Optional[str] = Field(alias="billingId", default=None)
389
- version_number: int = Field(alias="versionNumber")
390
- additional_meta_data: Optional[Any] = Field(
391
- alias="additionalMetaData", default=None
392
- )
393
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
394
- alias="hiddenFromWidgets", default=None
395
- )
396
- product: "PlanFragmentProduct"
397
- base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
398
- entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
399
- inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
400
- alias="inheritedEntitlements", default=None
401
- )
402
- compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
403
- alias="compatibleAddons", default=None
404
- )
405
- compatible_package_groups: Optional[
406
- List["PlanFragmentCompatiblePackageGroups"]
407
- ] = Field(alias="compatiblePackageGroups", default=None)
408
- prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
409
- overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
410
- alias="overagePrices", default=None
411
- )
412
- pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
413
- default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
414
- alias="defaultTrialConfig", default=None
415
- )
280
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
281
+ BaseModel
282
+ ):
283
+ typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
284
+ downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
285
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
286
+ billable_features: Optional[
287
+ List[
288
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
289
+ ]
290
+ ] = Field(alias="billableFeatures", default=None)
291
+ addons: Optional[
292
+ List[
293
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
294
+ ]
295
+ ] = Field(default=None)
296
+ price_overrides: Optional[
297
+ List[
298
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
299
+ ]
300
+ ] = Field(alias="priceOverrides", default=None)
416
301
 
417
302
 
418
- class PlanFragmentProduct(ProductFragment):
419
- pass
303
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
304
+ BaseModel
305
+ ):
306
+ feature_id: str = Field(alias="featureId")
307
+ quantity: float
420
308
 
421
309
 
422
- class PlanFragmentBasePlan(BaseModel):
423
- ref_id: str = Field(alias="refId")
424
- display_name: str = Field(alias="displayName")
310
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
311
+ BaseModel
312
+ ):
313
+ addon_ref_id: str = Field(alias="addonRefId")
314
+ quantity: float
425
315
 
426
316
 
427
- class PlanFragmentEntitlements(PackageEntitlementFragment):
428
- pass
317
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
318
+ BaseModel
319
+ ):
320
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
321
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
322
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
429
323
 
430
324
 
431
- class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
432
- pass
325
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
326
+ typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
327
+ plan_ref_id: str = Field(alias="planRefId")
328
+ change_type: PlanChangeType = Field(alias="changeType")
329
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
330
+ billable_features: Optional[
331
+ List[
332
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
333
+ ]
334
+ ] = Field(alias="billableFeatures", default=None)
335
+ addons: Optional[
336
+ List[
337
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
338
+ ]
339
+ ] = Field(default=None)
340
+ price_overrides: Optional[
341
+ List[
342
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
343
+ ]
344
+ ] = Field(alias="priceOverrides", default=None)
433
345
 
434
346
 
435
- class PlanFragmentCompatibleAddons(AddonFragment):
436
- pass
347
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
348
+ BaseModel
349
+ ):
350
+ feature_id: str = Field(alias="featureId")
351
+ quantity: float
437
352
 
438
353
 
439
- class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
440
- pass
354
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
355
+ BaseModel
356
+ ):
357
+ addon_ref_id: str = Field(alias="addonRefId")
358
+ quantity: float
441
359
 
442
360
 
443
- class PlanFragmentPrices(PriceFragment):
444
- pass
361
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
362
+ BaseModel
363
+ ):
364
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
365
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
366
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
445
367
 
446
368
 
447
- class PlanFragmentOveragePrices(OveragePriceFragment):
448
- pass
369
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
370
+ BaseModel
371
+ ):
372
+ typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
373
+ plan_ref_id: str = Field(alias="planRefId")
374
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
449
375
 
450
376
 
451
- class PlanFragmentDefaultTrialConfig(BaseModel):
452
- duration: float
453
- units: TrialPeriodUnits
454
- budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
455
- trial_end_behavior: Optional[TrialEndBehavior] = Field(
456
- alias="trialEndBehavior", default=None
457
- )
377
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
378
+ BaseModel
379
+ ):
380
+ typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
381
+ new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
382
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
458
383
 
459
384
 
460
- class PlanFragmentDefaultTrialConfigBudget(BaseModel):
461
- limit: float
385
+ class SubscriptionTrialConfigurationFragment(BaseModel):
386
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
462
387
 
463
388
 
464
389
  class SubscriptionFutureUpdateData(BaseModel):
@@ -615,197 +540,187 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
615
540
  feature_id: Optional[str] = Field(alias="featureId", default=None)
616
541
 
617
542
 
618
- class SubscriptionInvoiceFragment(BaseModel):
619
- billing_id: str = Field(alias="billingId")
620
- status: SubscriptionInvoiceStatus
621
- created_at: Any = Field(alias="createdAt")
622
- updated_at: Any = Field(alias="updatedAt")
623
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
624
- requires_action: bool = Field(alias="requiresAction")
625
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
626
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
627
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
628
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
629
- alias="billingReason", default=None
543
+ class PlanCompatiblePackageGroupsFragment(BaseModel):
544
+ package_group_id: str = Field(alias="packageGroupId")
545
+ display_name: str = Field(alias="displayName")
546
+ addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
547
+ default=None
630
548
  )
631
- currency: Optional[str] = Field(default=None)
632
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
633
- sub_total_excluding_tax: Optional[float] = Field(
634
- alias="subTotalExcludingTax", default=None
549
+ options: "PlanCompatiblePackageGroupsFragmentOptions"
550
+
551
+
552
+ class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
553
+ pass
554
+
555
+
556
+ class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
557
+ min_items: Optional[float] = Field(alias="minItems", default=None)
558
+ free_items: Optional[float] = Field(alias="freeItems", default=None)
559
+
560
+
561
+ class ProductFragment(BaseModel):
562
+ ref_id: str = Field(alias="refId")
563
+ display_name: Optional[str] = Field(alias="displayName", default=None)
564
+ description: Optional[str] = Field(default=None)
565
+ additional_meta_data: Optional[Any] = Field(
566
+ alias="additionalMetaData", default=None
635
567
  )
636
- total: Optional[float] = Field(default=None)
637
- total_excluding_tax: Optional[float] = Field(
638
- alias="totalExcludingTax", default=None
568
+ product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
569
+
570
+
571
+ class ProductFragmentProductSettings(BaseModel):
572
+ downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
573
+ alias="downgradePlan", default=None
639
574
  )
640
- tax: Optional[float] = Field(default=None)
641
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
642
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
643
575
 
644
576
 
645
- class CustomerResourceFragment(BaseModel):
646
- resource_id: str = Field(alias="resourceId")
577
+ class ProductFragmentProductSettingsDowngradePlan(BaseModel):
578
+ ref_id: str = Field(alias="refId")
579
+ display_name: str = Field(alias="displayName")
647
580
 
648
581
 
649
- class SubscriptionScheduledUpdateData(BaseModel):
650
- subscription_schedule_type: SubscriptionScheduleType = Field(
651
- alias="subscriptionScheduleType"
582
+ class PlanFragment(BaseModel):
583
+ id: Any
584
+ ref_id: str = Field(alias="refId")
585
+ display_name: str = Field(alias="displayName")
586
+ description: Optional[str] = Field(default=None)
587
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
588
+ version_number: int = Field(alias="versionNumber")
589
+ additional_meta_data: Optional[Any] = Field(
590
+ alias="additionalMetaData", default=None
652
591
  )
653
- schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
654
- scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
655
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
656
- alias="targetPackage", default=None
592
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
593
+ alias="hiddenFromWidgets", default=None
594
+ )
595
+ product: "PlanFragmentProduct"
596
+ base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
597
+ entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
598
+ inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
599
+ alias="inheritedEntitlements", default=None
600
+ )
601
+ compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
602
+ alias="compatibleAddons", default=None
603
+ )
604
+ compatible_package_groups: Optional[
605
+ List["PlanFragmentCompatiblePackageGroups"]
606
+ ] = Field(alias="compatiblePackageGroups", default=None)
607
+ prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
608
+ overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
609
+ alias="overagePrices", default=None
610
+ )
611
+ pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
612
+ default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
613
+ alias="defaultTrialConfig", default=None
657
614
  )
658
- schedule_variables: Optional[
659
- Annotated[
660
- Union[
661
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
662
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
663
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
664
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
665
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
666
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
667
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
668
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
669
- ],
670
- Field(discriminator="typename__"),
671
- ]
672
- ] = Field(alias="scheduleVariables", default=None)
673
615
 
674
616
 
675
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
676
- id: Any
617
+ class PlanFragmentProduct(ProductFragment):
618
+ pass
619
+
620
+
621
+ class PlanFragmentBasePlan(BaseModel):
677
622
  ref_id: str = Field(alias="refId")
678
623
  display_name: str = Field(alias="displayName")
679
624
 
680
625
 
681
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
682
- typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
683
- addon_ref_id: str = Field(alias="addonRefId")
684
- new_quantity: float = Field(alias="newQuantity")
626
+ class PlanFragmentEntitlements(PackageEntitlementFragment):
627
+ pass
685
628
 
686
629
 
687
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
688
- BaseModel
689
- ):
690
- typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
691
- addon_ref_id: str = Field(alias="addonRefId")
692
- feature_id: Optional[str] = Field(alias="featureId", default=None)
630
+ class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
631
+ pass
693
632
 
694
633
 
695
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
696
- BaseModel
697
- ):
698
- typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
699
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
634
+ class PlanFragmentCompatibleAddons(AddonFragment):
635
+ pass
700
636
 
701
637
 
702
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
703
- typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
638
+ class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
639
+ pass
704
640
 
705
641
 
706
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
707
- BaseModel
708
- ):
709
- typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
710
- downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
711
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
712
- billable_features: Optional[
713
- List[
714
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
715
- ]
716
- ] = Field(alias="billableFeatures", default=None)
717
- addons: Optional[
718
- List[
719
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
720
- ]
721
- ] = Field(default=None)
722
- price_overrides: Optional[
723
- List[
724
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
725
- ]
726
- ] = Field(alias="priceOverrides", default=None)
642
+ class PlanFragmentPrices(PriceFragment):
643
+ pass
727
644
 
728
645
 
729
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
730
- BaseModel
731
- ):
732
- feature_id: str = Field(alias="featureId")
733
- quantity: float
646
+ class PlanFragmentOveragePrices(OveragePriceFragment):
647
+ pass
734
648
 
735
649
 
736
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
737
- BaseModel
738
- ):
739
- addon_ref_id: str = Field(alias="addonRefId")
740
- quantity: float
650
+ class PlanFragmentDefaultTrialConfig(BaseModel):
651
+ duration: float
652
+ units: TrialPeriodUnits
653
+ budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
654
+ trial_end_behavior: Optional[TrialEndBehavior] = Field(
655
+ alias="trialEndBehavior", default=None
656
+ )
741
657
 
742
658
 
743
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
744
- BaseModel
745
- ):
746
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
747
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
748
- feature_id: Optional[str] = Field(alias="featureId", default=None)
659
+ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
660
+ limit: float
749
661
 
750
662
 
751
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
752
- typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
753
- plan_ref_id: str = Field(alias="planRefId")
754
- change_type: PlanChangeType = Field(alias="changeType")
755
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
756
- billable_features: Optional[
757
- List[
758
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
759
- ]
760
- ] = Field(alias="billableFeatures", default=None)
761
- addons: Optional[
762
- List[
763
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
764
- ]
765
- ] = Field(default=None)
766
- price_overrides: Optional[
767
- List[
768
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
769
- ]
770
- ] = Field(alias="priceOverrides", default=None)
663
+ class SlimCustomerFragment(BaseModel):
664
+ id: Any
665
+ name: Optional[str] = Field(default=None)
666
+ email: Optional[str] = Field(default=None)
667
+ created_at: Optional[Any] = Field(alias="createdAt", default=None)
668
+ updated_at: Any = Field(alias="updatedAt")
669
+ ref_id: str = Field(alias="refId")
670
+ customer_id: str = Field(alias="customerId")
671
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
672
+ additional_meta_data: Optional[Any] = Field(
673
+ alias="additionalMetaData", default=None
674
+ )
675
+ aws_marketplace_customer_id: Optional[str] = Field(
676
+ alias="awsMarketplaceCustomerId", default=None
677
+ )
771
678
 
772
679
 
773
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
774
- BaseModel
775
- ):
776
- feature_id: str = Field(alias="featureId")
777
- quantity: float
680
+ class CustomerResourceFragment(BaseModel):
681
+ resource_id: str = Field(alias="resourceId")
778
682
 
779
683
 
780
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
781
- BaseModel
782
- ):
783
- addon_ref_id: str = Field(alias="addonRefId")
784
- quantity: float
684
+ class SubscriptionInvoiceFragment(BaseModel):
685
+ billing_id: str = Field(alias="billingId")
686
+ status: SubscriptionInvoiceStatus
687
+ created_at: Any = Field(alias="createdAt")
688
+ updated_at: Any = Field(alias="updatedAt")
689
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
690
+ requires_action: bool = Field(alias="requiresAction")
691
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
692
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
693
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
694
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
695
+ alias="billingReason", default=None
696
+ )
697
+ currency: Optional[str] = Field(default=None)
698
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
699
+ sub_total_excluding_tax: Optional[float] = Field(
700
+ alias="subTotalExcludingTax", default=None
701
+ )
702
+ total: Optional[float] = Field(default=None)
703
+ total_excluding_tax: Optional[float] = Field(
704
+ alias="totalExcludingTax", default=None
705
+ )
706
+ tax: Optional[float] = Field(default=None)
707
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
708
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
785
709
 
786
710
 
787
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
788
- BaseModel
789
- ):
790
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
791
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
792
- feature_id: Optional[str] = Field(alias="featureId", default=None)
711
+ class TotalPriceFragment(BaseModel):
712
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
713
+ total: "TotalPriceFragmentTotal"
793
714
 
794
715
 
795
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
796
- BaseModel
797
- ):
798
- typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
799
- plan_ref_id: str = Field(alias="planRefId")
800
- feature_id: Optional[str] = Field(alias="featureId", default=None)
716
+ class TotalPriceFragmentSubTotal(BaseModel):
717
+ amount: float
718
+ currency: Currency
801
719
 
802
720
 
803
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
804
- BaseModel
805
- ):
806
- typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
807
- new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
808
- feature_id: Optional[str] = Field(alias="featureId", default=None)
721
+ class TotalPriceFragmentTotal(BaseModel):
722
+ amount: float
723
+ currency: Currency
809
724
 
810
725
 
811
726
  class SubscriptionFragment(BaseModel):
@@ -917,6 +832,91 @@ class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragm
917
832
  pass
918
833
 
919
834
 
835
+ class FeatureFragment(BaseModel):
836
+ typename__: str = Field(alias="__typename")
837
+ feature_type: FeatureType = Field(alias="featureType")
838
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
839
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
840
+ feature_units_plural: Optional[str] = Field(
841
+ alias="featureUnitsPlural", default=None
842
+ )
843
+ description: Optional[str] = Field(default=None)
844
+ display_name: str = Field(alias="displayName")
845
+ ref_id: str = Field(alias="refId")
846
+ unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
847
+ alias="unitTransformation", default=None
848
+ )
849
+
850
+
851
+ class FeatureFragmentUnitTransformation(BaseModel):
852
+ divide: float
853
+ round: UnitTransformationRound
854
+
855
+
856
+ class EntitlementFragment(BaseModel):
857
+ typename__: str = Field(alias="__typename")
858
+ is_granted: bool = Field(alias="isGranted")
859
+ access_denied_reason: Optional[AccessDeniedReason] = Field(
860
+ alias="accessDeniedReason", default=None
861
+ )
862
+ customer_id: Optional[str] = Field(alias="customerId", default=None)
863
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
864
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
865
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
866
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
867
+ current_usage: Optional[float] = Field(alias="currentUsage", default=None)
868
+ requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
869
+ requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
870
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
871
+ entitlement_updated_at: Optional[Any] = Field(
872
+ alias="entitlementUpdatedAt", default=None
873
+ )
874
+ usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
875
+ usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
876
+ usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
877
+ usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
878
+ next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
879
+ reset_period: Optional[EntitlementResetPeriod] = Field(
880
+ alias="resetPeriod", default=None
881
+ )
882
+ reset_period_configuration: Optional[
883
+ Annotated[
884
+ Union[
885
+ "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
886
+ "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
887
+ "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
888
+ ],
889
+ Field(discriminator="typename__"),
890
+ ]
891
+ ] = Field(alias="resetPeriodConfiguration", default=None)
892
+ feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
893
+
894
+
895
+ class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
896
+ typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
897
+ monthly_according_to: Optional[MonthlyAccordingTo] = Field(
898
+ alias="monthlyAccordingTo", default=None
899
+ )
900
+
901
+
902
+ class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
903
+ typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
904
+ weekly_according_to: Optional[WeeklyAccordingTo] = Field(
905
+ alias="weeklyAccordingTo", default=None
906
+ )
907
+
908
+
909
+ class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
910
+ typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
911
+ yearly_according_to: Optional[YearlyAccordingTo] = Field(
912
+ alias="yearlyAccordingTo", default=None
913
+ )
914
+
915
+
916
+ class EntitlementFragmentFeature(FeatureFragment):
917
+ pass
918
+
919
+
920
920
  class ApplySubscriptionFragment(BaseModel):
921
921
  subscription: Optional["ApplySubscriptionFragmentSubscription"] = Field(
922
922
  default=None
@@ -1273,33 +1273,6 @@ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1273
1273
  end_date: Optional[Any] = Field(alias="endDate", default=None)
1274
1274
 
1275
1275
 
1276
- class CustomerPortalSubscriptionPriceFragment(BaseModel):
1277
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1278
- billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1279
- block_size: Optional[float] = Field(alias="blockSize", default=None)
1280
- price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1281
- default=None
1282
- )
1283
- feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1284
- default=None
1285
- )
1286
-
1287
-
1288
- class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1289
- amount: float
1290
- currency: Currency
1291
-
1292
-
1293
- class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1294
- id: Any
1295
- ref_id: str = Field(alias="refId")
1296
- display_name: str = Field(alias="displayName")
1297
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1298
- feature_units_plural: Optional[str] = Field(
1299
- alias="featureUnitsPlural", default=None
1300
- )
1301
-
1302
-
1303
1276
  class CustomerPortalSubscriptionAddonFragment(BaseModel):
1304
1277
  addon_id: str = Field(alias="addonId")
1305
1278
  description: Optional[str] = Field(default=None)
@@ -1476,6 +1449,33 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
1476
1449
  feature_id: Optional[str] = Field(alias="featureId", default=None)
1477
1450
 
1478
1451
 
1452
+ class CustomerPortalSubscriptionPriceFragment(BaseModel):
1453
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
1454
+ billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
1455
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
1456
+ price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
1457
+ default=None
1458
+ )
1459
+ feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
1460
+ default=None
1461
+ )
1462
+
1463
+
1464
+ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
1465
+ amount: float
1466
+ currency: Currency
1467
+
1468
+
1469
+ class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
1470
+ id: Any
1471
+ ref_id: str = Field(alias="refId")
1472
+ display_name: str = Field(alias="displayName")
1473
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
1474
+ feature_units_plural: Optional[str] = Field(
1475
+ alias="featureUnitsPlural", default=None
1476
+ )
1477
+
1478
+
1479
1479
  class CustomerPortalSubscriptionFragment(BaseModel):
1480
1480
  subscription_id: str = Field(alias="subscriptionId")
1481
1481
  plan_id: str = Field(alias="planId")
@@ -2841,23 +2841,23 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2841
2841
 
2842
2842
  AddonDependencyFragment.model_rebuild()
2843
2843
  PriceTierFragment.model_rebuild()
2844
- PriceFragment.model_rebuild()
2845
2844
  OveragePriceFragment.model_rebuild()
2846
2845
  PackageEntitlementFragment.model_rebuild()
2846
+ PriceFragment.model_rebuild()
2847
2847
  AddonFragment.model_rebuild()
2848
- FeatureFragment.model_rebuild()
2849
- EntitlementFragment.model_rebuild()
2850
- SlimCustomerFragment.model_rebuild()
2848
+ SubscriptionScheduledUpdateData.model_rebuild()
2851
2849
  SubscriptionTrialConfigurationFragment.model_rebuild()
2852
- TotalPriceFragment.model_rebuild()
2850
+ SubscriptionFutureUpdateData.model_rebuild()
2853
2851
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2854
2852
  ProductFragment.model_rebuild()
2855
2853
  PlanFragment.model_rebuild()
2856
- SubscriptionFutureUpdateData.model_rebuild()
2857
- SubscriptionInvoiceFragment.model_rebuild()
2854
+ SlimCustomerFragment.model_rebuild()
2858
2855
  CustomerResourceFragment.model_rebuild()
2859
- SubscriptionScheduledUpdateData.model_rebuild()
2856
+ SubscriptionInvoiceFragment.model_rebuild()
2857
+ TotalPriceFragment.model_rebuild()
2860
2858
  SubscriptionFragment.model_rebuild()
2859
+ FeatureFragment.model_rebuild()
2860
+ EntitlementFragment.model_rebuild()
2861
2861
  ApplySubscriptionFragment.model_rebuild()
2862
2862
  FontVariantFragment.model_rebuild()
2863
2863
  TypographyConfigurationFragment.model_rebuild()
@@ -2870,9 +2870,9 @@ CustomerPortalBillingInformationFragment.model_rebuild()
2870
2870
  CustomerPortalConfigurationFragment.model_rebuild()
2871
2871
  CustomerPortalEntitlementFragment.model_rebuild()
2872
2872
  CustomerPortalPromotionalEntitlementFragment.model_rebuild()
2873
- CustomerPortalSubscriptionPriceFragment.model_rebuild()
2874
2873
  CustomerPortalSubscriptionAddonFragment.model_rebuild()
2875
2874
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
2875
+ CustomerPortalSubscriptionPriceFragment.model_rebuild()
2876
2876
  CustomerPortalSubscriptionFragment.model_rebuild()
2877
2877
  CustomerPortalFragment.model_rebuild()
2878
2878
  CustomerStatisticsFragment.model_rebuild()
@@ -24,6 +24,7 @@ from .enums import (
24
24
  CouponSource,
25
25
  CouponStatus,
26
26
  CouponType,
27
+ CreditGrantType,
27
28
  Currency,
28
29
  CustomerResourceSortFields,
29
30
  CustomerSortFields,
@@ -790,6 +791,24 @@ class CreateWorkflowTriggerInput(BaseModel):
790
791
  trigger_id: Optional[str] = Field(alias="triggerId", default=None)
791
792
 
792
793
 
794
+ class CreditGrantInput(BaseModel):
795
+ additional_meta_data: Optional[Any] = Field(
796
+ alias="additionalMetaData", default=None
797
+ )
798
+ amount: float
799
+ comment: Optional[str] = None
800
+ cost: Optional["MoneyInputDTO"] = None
801
+ currency_id: str = Field(alias="currencyId")
802
+ customer_id: str = Field(alias="customerId")
803
+ display_name: str = Field(alias="displayName")
804
+ effective_at: Optional[Any] = Field(alias="effectiveAt", default=None)
805
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
806
+ expire_at: Optional[Any] = Field(alias="expireAt", default=None)
807
+ grant_type: CreditGrantType = Field(alias="grantType")
808
+ priority: Optional[float] = None
809
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
810
+
811
+
793
812
  class CursorPaging(BaseModel):
794
813
  after: Optional[Any] = None
795
814
  before: Optional[Any] = None
@@ -797,6 +816,16 @@ class CursorPaging(BaseModel):
797
816
  last: Optional[int] = None
798
817
 
799
818
 
819
+ class CustomCurrencyInput(BaseModel):
820
+ additional_meta_data: Optional[Any] = Field(
821
+ alias="additionalMetaData", default=None
822
+ )
823
+ currency_id: str = Field(alias="currencyId")
824
+ display_name: str = Field(alias="displayName")
825
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
826
+ symbol: str
827
+
828
+
800
829
  class CustomerBillingInfo(BaseModel):
801
830
  billing_address: Optional["Address"] = Field(alias="billingAddress", default=None)
802
831
  currency: Optional[Currency] = None
@@ -1939,6 +1968,13 @@ class GetAuth0ApplicationsInput(BaseModel):
1939
1968
  environment_id: Optional[Any] = Field(alias="environmentId", default=None)
1940
1969
 
1941
1970
 
1971
+ class GetCreditGrantsInput(BaseModel):
1972
+ currency_id: Optional[str] = Field(alias="currencyId", default=None)
1973
+ customer_id: str = Field(alias="customerId")
1974
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
1975
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
1976
+
1977
+
1942
1978
  class GetCustomerByRefIdInput(BaseModel):
1943
1979
  customer_id: str = Field(alias="customerId")
1944
1980
  environment_id: Optional[Any] = Field(alias="environmentId", default=None)
@@ -4462,7 +4498,7 @@ class UnitTransformationInput(BaseModel):
4462
4498
  round: Optional[UnitTransformationRound] = UnitTransformationRound.UP
4463
4499
 
4464
4500
 
4465
- class UnlinkFeatureGroupInput(BaseModel):
4501
+ class UnlinkFeatureGroupFromPackageInput(BaseModel):
4466
4502
  environment_id: Optional[Any] = Field(alias="environmentId", default=None)
4467
4503
  feature_group_id: Any = Field(alias="featureGroupId")
4468
4504
  package_id: Any = Field(alias="packageId")
@@ -4498,6 +4534,29 @@ class UpdateCouponInput(BaseModel):
4498
4534
  ref_id: str = Field(alias="refId")
4499
4535
 
4500
4536
 
4537
+ class UpdateCreditGrantInput(BaseModel):
4538
+ additional_meta_data: Optional[Any] = Field(
4539
+ alias="additionalMetaData", default=None
4540
+ )
4541
+ comment: Optional[str] = None
4542
+ display_name: Optional[str] = Field(alias="displayName", default=None)
4543
+ effective_at: Optional[Any] = Field(alias="effectiveAt", default=None)
4544
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
4545
+ expire_at: Optional[Any] = Field(alias="expireAt", default=None)
4546
+ id: Any
4547
+ priority: Optional[float] = None
4548
+
4549
+
4550
+ class UpdateCustomCurrencyInput(BaseModel):
4551
+ additional_meta_data: Optional[Any] = Field(
4552
+ alias="additionalMetaData", default=None
4553
+ )
4554
+ currency_id: str = Field(alias="currencyId")
4555
+ display_name: Optional[str] = Field(alias="displayName", default=None)
4556
+ environment_id: Optional[Any] = Field(alias="environmentId", default=None)
4557
+ symbol: Optional[str] = None
4558
+
4559
+
4501
4560
  class UpdateCustomerInput(BaseModel):
4502
4561
  additional_meta_data: Optional[Any] = Field(
4503
4562
  alias="additionalMetaData", default=None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 2.491.0
3
+ Version: 2.497.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -106,7 +106,7 @@ 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=8fT6fyA-MhIGPz6SLGukCkVZlCOedfvWLqu1FiEKewg,71665
109
+ stigg/generated/__init__.py,sha256=fDQ9VzudH8JL72sOeBvEmbG4blpGBVeAFQlduCCSW8I,72005
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
@@ -119,11 +119,11 @@ stigg/generated/client.py,sha256=tGqbCewOFV2YP6igue7hQZghW3XraHyV0OXcoKfsssE,173
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=LNYmJArnO1NejmLy-MhcZzdxPIRXDuKv2cYXTMxoDDk,36766
122
+ stigg/generated/enums.py,sha256=7jmrAj5qzR8Hwom_dk_EWSu1ipLtyOscXa6vg9n8zts,37216
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=wffyWMiq-qYPwODG-RVpVV1AvSkzAFzmsMQCperBIR4,103850
126
+ stigg/generated/fragments.py,sha256=n_94G1RshFIiHRJk5F9mnPJHuVuIyDsPtVmdvTkZKJg,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=KTbdT8_LEUUS-Bd9WN1MCzJQHTXWC2dE40slgjzYF-o,201523
148
+ stigg/generated/input_types.py,sha256=c37o276EMmfPjlg9brzcJa7M_syE9KMUQzldBa__QgE,203900
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.491.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
- stigg_api_client_v2-2.491.0.dist-info/METADATA,sha256=IcOIzIGgT85GZbQ9Ywq2_vd69ew_KIds6X7iU2JADqA,2258
166
- stigg_api_client_v2-2.491.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
- stigg_api_client_v2-2.491.0.dist-info/RECORD,,
164
+ stigg_api_client_v2-2.497.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
165
+ stigg_api_client_v2-2.497.0.dist-info/METADATA,sha256=vBouMvMSZ8IaD-mbNB5bh71MbrTrg-C_nRgTvpwablo,2258
166
+ stigg_api_client_v2-2.497.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
167
+ stigg_api_client_v2-2.497.0.dist-info/RECORD,,