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

@@ -62,70 +62,6 @@ class AddonDependencyFragment(BaseModel):
62
62
  description: Optional[str] = Field(default=None)
63
63
 
64
64
 
65
- class PriceTierFragment(BaseModel):
66
- up_to: Optional[float] = Field(alias="upTo", default=None)
67
- unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
68
- alias="unitPrice", default=None
69
- )
70
- flat_price: Optional["PriceTierFragmentFlatPrice"] = Field(
71
- alias="flatPrice", default=None
72
- )
73
-
74
-
75
- class PriceTierFragmentUnitPrice(BaseModel):
76
- amount: float
77
- currency: Currency
78
-
79
-
80
- class PriceTierFragmentFlatPrice(BaseModel):
81
- amount: float
82
- currency: Currency
83
-
84
-
85
- class PriceFragment(BaseModel):
86
- billing_model: BillingModel = Field(alias="billingModel")
87
- billing_period: BillingPeriod = Field(alias="billingPeriod")
88
- billing_cadence: BillingCadence = Field(alias="billingCadence")
89
- billing_id: Optional[str] = Field(alias="billingId", default=None)
90
- min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
91
- max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
92
- billing_country_code: Optional[str] = Field(
93
- alias="billingCountryCode", default=None
94
- )
95
- price: Optional["PriceFragmentPrice"] = Field(default=None)
96
- credit_rate: Optional["PriceFragmentCreditRate"] = Field(
97
- alias="creditRate", default=None
98
- )
99
- tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
100
- tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
101
- feature: Optional["PriceFragmentFeature"] = Field(default=None)
102
- block_size: Optional[float] = Field(alias="blockSize", default=None)
103
-
104
-
105
- class PriceFragmentPrice(BaseModel):
106
- amount: float
107
- currency: Currency
108
-
109
-
110
- class PriceFragmentCreditRate(BaseModel):
111
- amount: float
112
- custom_currency_id: Any = Field(alias="customCurrencyId")
113
-
114
-
115
- class PriceFragmentTiers(PriceTierFragment):
116
- pass
117
-
118
-
119
- class PriceFragmentFeature(BaseModel):
120
- ref_id: str = Field(alias="refId")
121
- feature_units: Optional[str] = Field(alias="featureUnits", default=None)
122
- feature_units_plural: Optional[str] = Field(
123
- alias="featureUnitsPlural", default=None
124
- )
125
- display_name: str = Field(alias="displayName")
126
- description: Optional[str] = Field(default=None)
127
-
128
-
129
65
  class PackageEntitlementFragment(BaseModel):
130
66
  usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
131
67
  has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
@@ -161,6 +97,26 @@ class PackageEntitlementFragmentFeature(BaseModel):
161
97
  )
162
98
 
163
99
 
100
+ class PriceTierFragment(BaseModel):
101
+ up_to: Optional[float] = Field(alias="upTo", default=None)
102
+ unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
103
+ alias="unitPrice", default=None
104
+ )
105
+ flat_price: Optional["PriceTierFragmentFlatPrice"] = Field(
106
+ alias="flatPrice", default=None
107
+ )
108
+
109
+
110
+ class PriceTierFragmentUnitPrice(BaseModel):
111
+ amount: float
112
+ currency: Currency
113
+
114
+
115
+ class PriceTierFragmentFlatPrice(BaseModel):
116
+ amount: float
117
+ currency: Currency
118
+
119
+
164
120
  class OveragePriceFragment(BaseModel):
165
121
  billing_model: BillingModel = Field(alias="billingModel")
166
122
  billing_period: BillingPeriod = Field(alias="billingPeriod")
@@ -193,289 +149,135 @@ class OveragePriceFragmentFeature(BaseModel):
193
149
  description: Optional[str] = Field(default=None)
194
150
 
195
151
 
196
- class AddonFragment(BaseModel):
197
- id: Any
198
- ref_id: str = Field(alias="refId")
152
+ class PriceFragment(BaseModel):
153
+ billing_model: BillingModel = Field(alias="billingModel")
154
+ billing_period: BillingPeriod = Field(alias="billingPeriod")
155
+ billing_cadence: BillingCadence = Field(alias="billingCadence")
199
156
  billing_id: Optional[str] = Field(alias="billingId", default=None)
200
- display_name: str = Field(alias="displayName")
201
- description: Optional[str] = Field(default=None)
202
- additional_meta_data: Optional[Any] = Field(
203
- alias="additionalMetaData", default=None
204
- )
205
- hidden_from_widgets: Optional[List[WidgetType]] = Field(
206
- alias="hiddenFromWidgets", default=None
157
+ min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
158
+ max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
159
+ billing_country_code: Optional[str] = Field(
160
+ alias="billingCountryCode", default=None
207
161
  )
208
- entitlements: Optional[List["AddonFragmentEntitlements"]] = Field(default=None)
209
- prices: Optional[List["AddonFragmentPrices"]] = Field(default=None)
210
- overage_prices: Optional[List["AddonFragmentOveragePrices"]] = Field(
211
- alias="overagePrices", default=None
162
+ price: Optional["PriceFragmentPrice"] = Field(default=None)
163
+ credit_rate: Optional["PriceFragmentCreditRate"] = Field(
164
+ alias="creditRate", default=None
212
165
  )
213
- pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
214
- max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
215
- dependencies: Optional[List["AddonFragmentDependencies"]] = Field(default=None)
216
-
217
-
218
- class AddonFragmentEntitlements(PackageEntitlementFragment):
219
- pass
166
+ tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
167
+ tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
168
+ feature: Optional["PriceFragmentFeature"] = Field(default=None)
169
+ block_size: Optional[float] = Field(alias="blockSize", default=None)
220
170
 
221
171
 
222
- class AddonFragmentPrices(PriceFragment):
223
- pass
172
+ class PriceFragmentPrice(BaseModel):
173
+ amount: float
174
+ currency: Currency
224
175
 
225
176
 
226
- class AddonFragmentOveragePrices(OveragePriceFragment):
227
- pass
177
+ class PriceFragmentCreditRate(BaseModel):
178
+ amount: float
179
+ custom_currency_id: Any = Field(alias="customCurrencyId")
228
180
 
229
181
 
230
- class AddonFragmentDependencies(AddonDependencyFragment):
182
+ class PriceFragmentTiers(PriceTierFragment):
231
183
  pass
232
184
 
233
185
 
234
- class FeatureFragment(BaseModel):
235
- typename__: str = Field(alias="__typename")
236
- feature_type: FeatureType = Field(alias="featureType")
237
- meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
186
+ class PriceFragmentFeature(BaseModel):
187
+ ref_id: str = Field(alias="refId")
238
188
  feature_units: Optional[str] = Field(alias="featureUnits", default=None)
239
189
  feature_units_plural: Optional[str] = Field(
240
190
  alias="featureUnitsPlural", default=None
241
191
  )
242
- description: Optional[str] = Field(default=None)
243
192
  display_name: str = Field(alias="displayName")
244
- ref_id: str = Field(alias="refId")
245
- unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
246
- alias="unitTransformation", default=None
247
- )
248
-
249
-
250
- class FeatureFragmentUnitTransformation(BaseModel):
251
- divide: float
252
- round: UnitTransformationRound
253
-
254
-
255
- class EntitlementFragment(BaseModel):
256
- typename__: str = Field(alias="__typename")
257
- is_granted: bool = Field(alias="isGranted")
258
- access_denied_reason: Optional[AccessDeniedReason] = Field(
259
- alias="accessDeniedReason", default=None
260
- )
261
- customer_id: Optional[str] = Field(alias="customerId", default=None)
262
- resource_id: Optional[str] = Field(alias="resourceId", default=None)
263
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
264
- has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
265
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
266
- current_usage: Optional[float] = Field(alias="currentUsage", default=None)
267
- requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
268
- requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
269
- enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
270
- entitlement_updated_at: Optional[Any] = Field(
271
- alias="entitlementUpdatedAt", default=None
272
- )
273
- usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
274
- usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
275
- usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
276
- usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
277
- next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
278
- reset_period: Optional[EntitlementResetPeriod] = Field(
279
- alias="resetPeriod", default=None
280
- )
281
- reset_period_configuration: Optional[
282
- Annotated[
283
- Union[
284
- "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
285
- "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
286
- "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
287
- ],
288
- Field(discriminator="typename__"),
289
- ]
290
- ] = Field(alias="resetPeriodConfiguration", default=None)
291
- feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
292
-
293
-
294
- class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
295
- typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
296
- monthly_according_to: Optional[MonthlyAccordingTo] = Field(
297
- alias="monthlyAccordingTo", default=None
298
- )
299
-
300
-
301
- class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
302
- typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
303
- weekly_according_to: Optional[WeeklyAccordingTo] = Field(
304
- alias="weeklyAccordingTo", default=None
305
- )
306
-
307
-
308
- class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
309
- typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
310
- yearly_according_to: Optional[YearlyAccordingTo] = Field(
311
- alias="yearlyAccordingTo", default=None
312
- )
313
-
314
-
315
- class EntitlementFragmentFeature(FeatureFragment):
316
- pass
317
-
318
-
319
- class SubscriptionScheduledUpdateData(BaseModel):
320
- subscription_schedule_type: SubscriptionScheduleType = Field(
321
- alias="subscriptionScheduleType"
322
- )
323
- schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
324
- scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
325
- target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
326
- alias="targetPackage", default=None
327
- )
328
- schedule_variables: Optional[
329
- Annotated[
330
- Union[
331
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
332
- "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
333
- "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
334
- "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
335
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
336
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
337
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
338
- "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
339
- ],
340
- Field(discriminator="typename__"),
341
- ]
342
- ] = Field(alias="scheduleVariables", default=None)
193
+ description: Optional[str] = Field(default=None)
343
194
 
344
195
 
345
- class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
196
+ class AddonFragment(BaseModel):
346
197
  id: Any
347
198
  ref_id: str = Field(alias="refId")
199
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
348
200
  display_name: str = Field(alias="displayName")
201
+ description: Optional[str] = Field(default=None)
202
+ additional_meta_data: Optional[Any] = Field(
203
+ alias="additionalMetaData", default=None
204
+ )
205
+ hidden_from_widgets: Optional[List[WidgetType]] = Field(
206
+ alias="hiddenFromWidgets", default=None
207
+ )
208
+ entitlements: Optional[List["AddonFragmentEntitlements"]] = Field(default=None)
209
+ prices: Optional[List["AddonFragmentPrices"]] = Field(default=None)
210
+ overage_prices: Optional[List["AddonFragmentOveragePrices"]] = Field(
211
+ alias="overagePrices", default=None
212
+ )
213
+ pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
214
+ max_quantity: Optional[float] = Field(alias="maxQuantity", default=None)
215
+ dependencies: Optional[List["AddonFragmentDependencies"]] = Field(default=None)
349
216
 
350
217
 
351
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
352
- typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
353
- addon_ref_id: str = Field(alias="addonRefId")
354
- new_quantity: float = Field(alias="newQuantity")
355
-
356
-
357
- class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
358
- BaseModel
359
- ):
360
- typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
361
- addon_ref_id: str = Field(alias="addonRefId")
362
- feature_id: Optional[str] = Field(alias="featureId", default=None)
363
-
364
-
365
- class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
366
- BaseModel
367
- ):
368
- typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
369
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
370
-
371
-
372
- class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
373
- typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
374
-
375
-
376
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
377
- BaseModel
378
- ):
379
- typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
380
- downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
381
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
382
- billable_features: Optional[
383
- List[
384
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
385
- ]
386
- ] = Field(alias="billableFeatures", default=None)
387
- addons: Optional[
388
- List[
389
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
390
- ]
391
- ] = Field(default=None)
392
- price_overrides: Optional[
393
- List[
394
- "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
395
- ]
396
- ] = Field(alias="priceOverrides", default=None)
397
-
398
-
399
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
400
- BaseModel
401
- ):
402
- feature_id: str = Field(alias="featureId")
403
- quantity: float
404
-
405
-
406
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
407
- BaseModel
408
- ):
409
- addon_ref_id: str = Field(alias="addonRefId")
410
- quantity: float
411
-
412
-
413
- class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
414
- BaseModel
415
- ):
416
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
417
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
418
- feature_id: Optional[str] = Field(alias="featureId", default=None)
419
-
420
-
421
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
422
- typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
423
- plan_ref_id: str = Field(alias="planRefId")
424
- change_type: PlanChangeType = Field(alias="changeType")
425
- billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
426
- billable_features: Optional[
427
- List[
428
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
429
- ]
430
- ] = Field(alias="billableFeatures", default=None)
431
- addons: Optional[
432
- List[
433
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
434
- ]
435
- ] = Field(default=None)
436
- price_overrides: Optional[
437
- List[
438
- "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
439
- ]
440
- ] = Field(alias="priceOverrides", default=None)
441
-
442
-
443
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
444
- BaseModel
445
- ):
446
- feature_id: str = Field(alias="featureId")
447
- quantity: float
218
+ class AddonFragmentEntitlements(PackageEntitlementFragment):
219
+ pass
448
220
 
449
221
 
450
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
451
- BaseModel
452
- ):
453
- addon_ref_id: str = Field(alias="addonRefId")
454
- quantity: float
222
+ class AddonFragmentPrices(PriceFragment):
223
+ pass
455
224
 
456
225
 
457
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
458
- BaseModel
459
- ):
460
- plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
461
- addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
462
- feature_id: Optional[str] = Field(alias="featureId", default=None)
226
+ class AddonFragmentOveragePrices(OveragePriceFragment):
227
+ pass
463
228
 
464
229
 
465
- class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
466
- BaseModel
467
- ):
468
- typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
469
- plan_ref_id: str = Field(alias="planRefId")
470
- feature_id: Optional[str] = Field(alias="featureId", default=None)
230
+ class AddonFragmentDependencies(AddonDependencyFragment):
231
+ pass
471
232
 
472
233
 
473
- class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
474
- BaseModel
475
- ):
476
- typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
477
- new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
478
- feature_id: Optional[str] = Field(alias="featureId", default=None)
234
+ class SubscriptionInvoiceFragment(BaseModel):
235
+ billing_id: str = Field(alias="billingId")
236
+ status: SubscriptionInvoiceStatus
237
+ created_at: Any = Field(alias="createdAt")
238
+ due_date: Optional[Any] = Field(alias="dueDate", default=None)
239
+ updated_at: Any = Field(alias="updatedAt")
240
+ error_message: Optional[str] = Field(alias="errorMessage", default=None)
241
+ requires_action: bool = Field(alias="requiresAction")
242
+ payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
243
+ payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
244
+ pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
245
+ billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
246
+ alias="billingReason", default=None
247
+ )
248
+ currency: Optional[str] = Field(default=None)
249
+ sub_total: Optional[float] = Field(alias="subTotal", default=None)
250
+ sub_total_excluding_tax: Optional[float] = Field(
251
+ alias="subTotalExcludingTax", default=None
252
+ )
253
+ total: Optional[float] = Field(default=None)
254
+ total_excluding_tax: Optional[float] = Field(
255
+ alias="totalExcludingTax", default=None
256
+ )
257
+ tax: Optional[float] = Field(default=None)
258
+ amount_due: Optional[float] = Field(alias="amountDue", default=None)
259
+ attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
260
+
261
+
262
+ class SlimCustomerFragment(BaseModel):
263
+ id: Any
264
+ name: Optional[str] = Field(default=None)
265
+ email: Optional[str] = Field(default=None)
266
+ created_at: Optional[Any] = Field(alias="createdAt", default=None)
267
+ updated_at: Any = Field(alias="updatedAt")
268
+ ref_id: str = Field(alias="refId")
269
+ customer_id: str = Field(alias="customerId")
270
+ billing_id: Optional[str] = Field(alias="billingId", default=None)
271
+ additional_meta_data: Optional[Any] = Field(
272
+ alias="additionalMetaData", default=None
273
+ )
274
+ aws_marketplace_customer_id: Optional[str] = Field(
275
+ alias="awsMarketplaceCustomerId", default=None
276
+ )
277
+
278
+
279
+ class CustomerResourceFragment(BaseModel):
280
+ resource_id: str = Field(alias="resourceId")
479
281
 
480
282
 
481
283
  class PlanCompatiblePackageGroupsFragment(BaseModel):
@@ -598,8 +400,23 @@ class PlanFragmentDefaultTrialConfigBudget(BaseModel):
598
400
  limit: float
599
401
 
600
402
 
601
- class CustomerResourceFragment(BaseModel):
602
- resource_id: str = Field(alias="resourceId")
403
+ class TotalPriceFragment(BaseModel):
404
+ sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
405
+ total: "TotalPriceFragmentTotal"
406
+
407
+
408
+ class TotalPriceFragmentSubTotal(BaseModel):
409
+ amount: float
410
+ currency: Currency
411
+
412
+
413
+ class TotalPriceFragmentTotal(BaseModel):
414
+ amount: float
415
+ currency: Currency
416
+
417
+
418
+ class SubscriptionTrialConfigurationFragment(BaseModel):
419
+ trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
603
420
 
604
421
 
605
422
  class SubscriptionFutureUpdateData(BaseModel):
@@ -628,19 +445,173 @@ class SubscriptionFutureUpdateData(BaseModel):
628
445
  ] = Field(alias="scheduleVariables", default=None)
629
446
 
630
447
 
631
- class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
448
+ class SubscriptionFutureUpdateDataTargetPackage(BaseModel):
449
+ id: Any
450
+ ref_id: str = Field(alias="refId")
451
+ display_name: str = Field(alias="displayName")
452
+
453
+
454
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
455
+ typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
456
+ addon_ref_id: str = Field(alias="addonRefId")
457
+ new_quantity: float = Field(alias="newQuantity")
458
+
459
+
460
+ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
461
+ BaseModel
462
+ ):
463
+ typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
464
+ addon_ref_id: str = Field(alias="addonRefId")
465
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
466
+
467
+
468
+ class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
469
+ BaseModel
470
+ ):
471
+ typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
472
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
473
+
474
+
475
+ class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
476
+ typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
477
+
478
+
479
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
480
+ typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
481
+ downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
482
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
483
+ billable_features: Optional[
484
+ List[
485
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
486
+ ]
487
+ ] = Field(alias="billableFeatures", default=None)
488
+ addons: Optional[
489
+ List[
490
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
491
+ ]
492
+ ] = Field(default=None)
493
+ price_overrides: Optional[
494
+ List[
495
+ "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
496
+ ]
497
+ ] = Field(alias="priceOverrides", default=None)
498
+
499
+
500
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
501
+ BaseModel
502
+ ):
503
+ feature_id: str = Field(alias="featureId")
504
+ quantity: float
505
+
506
+
507
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
508
+ BaseModel
509
+ ):
510
+ addon_ref_id: str = Field(alias="addonRefId")
511
+ quantity: float
512
+
513
+
514
+ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
515
+ BaseModel
516
+ ):
517
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
518
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
519
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
520
+
521
+
522
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
523
+ typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
524
+ plan_ref_id: str = Field(alias="planRefId")
525
+ change_type: PlanChangeType = Field(alias="changeType")
526
+ billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
527
+ billable_features: Optional[
528
+ List[
529
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
530
+ ]
531
+ ] = Field(alias="billableFeatures", default=None)
532
+ addons: Optional[
533
+ List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
534
+ ] = Field(default=None)
535
+ price_overrides: Optional[
536
+ List[
537
+ "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
538
+ ]
539
+ ] = Field(alias="priceOverrides", default=None)
540
+
541
+
542
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
543
+ BaseModel
544
+ ):
545
+ feature_id: str = Field(alias="featureId")
546
+ quantity: float
547
+
548
+
549
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
550
+ addon_ref_id: str = Field(alias="addonRefId")
551
+ quantity: float
552
+
553
+
554
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
555
+ BaseModel
556
+ ):
557
+ plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
558
+ addon_ref_id: Optional[str] = Field(alias="addonRefId", default=None)
559
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
560
+
561
+
562
+ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
563
+ BaseModel
564
+ ):
565
+ typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
566
+ plan_ref_id: str = Field(alias="planRefId")
567
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
568
+
569
+
570
+ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
571
+ typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
572
+ new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
573
+ feature_id: Optional[str] = Field(alias="featureId", default=None)
574
+
575
+
576
+ class SubscriptionScheduledUpdateData(BaseModel):
577
+ subscription_schedule_type: SubscriptionScheduleType = Field(
578
+ alias="subscriptionScheduleType"
579
+ )
580
+ schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
581
+ scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
582
+ target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
583
+ alias="targetPackage", default=None
584
+ )
585
+ schedule_variables: Optional[
586
+ Annotated[
587
+ Union[
588
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables",
589
+ "SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables",
590
+ "SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables",
591
+ "SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables",
592
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables",
593
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables",
594
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables",
595
+ "SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables",
596
+ ],
597
+ Field(discriminator="typename__"),
598
+ ]
599
+ ] = Field(alias="scheduleVariables", default=None)
600
+
601
+
602
+ class SubscriptionScheduledUpdateDataTargetPackage(BaseModel):
632
603
  id: Any
633
604
  ref_id: str = Field(alias="refId")
634
605
  display_name: str = Field(alias="displayName")
635
606
 
636
607
 
637
- class SubscriptionFutureUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
608
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables(BaseModel):
638
609
  typename__: Literal["AddonChangeVariables"] = Field(alias="__typename")
639
610
  addon_ref_id: str = Field(alias="addonRefId")
640
611
  new_quantity: float = Field(alias="newQuantity")
641
612
 
642
613
 
643
- class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
614
+ class SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables(
644
615
  BaseModel
645
616
  ):
646
617
  typename__: Literal["AddonPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -648,53 +619,55 @@ class SubscriptionFutureUpdateDataScheduleVariablesAddonPriceOverrideChangeVaria
648
619
  feature_id: Optional[str] = Field(alias="featureId", default=None)
649
620
 
650
621
 
651
- class SubscriptionFutureUpdateDataScheduleVariablesBillingPeriodChangeVariables(
622
+ class SubscriptionScheduledUpdateDataScheduleVariablesBillingPeriodChangeVariables(
652
623
  BaseModel
653
624
  ):
654
625
  typename__: Literal["BillingPeriodChangeVariables"] = Field(alias="__typename")
655
626
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
656
627
 
657
628
 
658
- class SubscriptionFutureUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
629
+ class SubscriptionScheduledUpdateDataScheduleVariablesCouponChangeVariables(BaseModel):
659
630
  typename__: Literal["CouponChangeVariables"] = Field(alias="__typename")
660
631
 
661
632
 
662
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariables(BaseModel):
633
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariables(
634
+ BaseModel
635
+ ):
663
636
  typename__: Literal["DowngradeChangeVariables"] = Field(alias="__typename")
664
637
  downgrade_plan_ref_id: str = Field(alias="downgradePlanRefId")
665
638
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
666
639
  billable_features: Optional[
667
640
  List[
668
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
641
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures"
669
642
  ]
670
643
  ] = Field(alias="billableFeatures", default=None)
671
644
  addons: Optional[
672
645
  List[
673
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
646
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons"
674
647
  ]
675
648
  ] = Field(default=None)
676
649
  price_overrides: Optional[
677
650
  List[
678
- "SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
651
+ "SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides"
679
652
  ]
680
653
  ] = Field(alias="priceOverrides", default=None)
681
654
 
682
655
 
683
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
656
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesBillableFeatures(
684
657
  BaseModel
685
658
  ):
686
659
  feature_id: str = Field(alias="featureId")
687
660
  quantity: float
688
661
 
689
662
 
690
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
663
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesAddons(
691
664
  BaseModel
692
665
  ):
693
666
  addon_ref_id: str = Field(alias="addonRefId")
694
667
  quantity: float
695
668
 
696
669
 
697
- class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
670
+ class SubscriptionScheduledUpdateDataScheduleVariablesDowngradeChangeVariablesPriceOverrides(
698
671
  BaseModel
699
672
  ):
700
673
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -702,39 +675,43 @@ class SubscriptionFutureUpdateDataScheduleVariablesDowngradeChangeVariablesPrice
702
675
  feature_id: Optional[str] = Field(alias="featureId", default=None)
703
676
 
704
677
 
705
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
678
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariables(BaseModel):
706
679
  typename__: Literal["PlanChangeVariables"] = Field(alias="__typename")
707
680
  plan_ref_id: str = Field(alias="planRefId")
708
681
  change_type: PlanChangeType = Field(alias="changeType")
709
682
  billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
710
683
  billable_features: Optional[
711
684
  List[
712
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
685
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures"
713
686
  ]
714
687
  ] = Field(alias="billableFeatures", default=None)
715
688
  addons: Optional[
716
- List["SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons"]
689
+ List[
690
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons"
691
+ ]
717
692
  ] = Field(default=None)
718
693
  price_overrides: Optional[
719
694
  List[
720
- "SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
695
+ "SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides"
721
696
  ]
722
697
  ] = Field(alias="priceOverrides", default=None)
723
698
 
724
699
 
725
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
700
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesBillableFeatures(
726
701
  BaseModel
727
702
  ):
728
703
  feature_id: str = Field(alias="featureId")
729
704
  quantity: float
730
705
 
731
706
 
732
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesAddons(BaseModel):
707
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesAddons(
708
+ BaseModel
709
+ ):
733
710
  addon_ref_id: str = Field(alias="addonRefId")
734
711
  quantity: float
735
712
 
736
713
 
737
- class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
714
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanChangeVariablesPriceOverrides(
738
715
  BaseModel
739
716
  ):
740
717
  plan_ref_id: Optional[str] = Field(alias="planRefId", default=None)
@@ -742,7 +719,7 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanChangeVariablesPriceOverr
742
719
  feature_id: Optional[str] = Field(alias="featureId", default=None)
743
720
 
744
721
 
745
- class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
722
+ class SubscriptionScheduledUpdateDataScheduleVariablesPlanPriceOverrideChangeVariables(
746
723
  BaseModel
747
724
  ):
748
725
  typename__: Literal["PlanPriceOverrideChangeVariables"] = Field(alias="__typename")
@@ -750,76 +727,14 @@ class SubscriptionFutureUpdateDataScheduleVariablesPlanPriceOverrideChangeVariab
750
727
  feature_id: Optional[str] = Field(alias="featureId", default=None)
751
728
 
752
729
 
753
- class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(BaseModel):
730
+ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
731
+ BaseModel
732
+ ):
754
733
  typename__: Literal["UnitAmountChangeVariables"] = Field(alias="__typename")
755
734
  new_unit_amount: Optional[float] = Field(alias="newUnitAmount", default=None)
756
735
  feature_id: Optional[str] = Field(alias="featureId", default=None)
757
736
 
758
737
 
759
- class SlimCustomerFragment(BaseModel):
760
- id: Any
761
- name: Optional[str] = Field(default=None)
762
- email: Optional[str] = Field(default=None)
763
- created_at: Optional[Any] = Field(alias="createdAt", default=None)
764
- updated_at: Any = Field(alias="updatedAt")
765
- ref_id: str = Field(alias="refId")
766
- customer_id: str = Field(alias="customerId")
767
- billing_id: Optional[str] = Field(alias="billingId", default=None)
768
- additional_meta_data: Optional[Any] = Field(
769
- alias="additionalMetaData", default=None
770
- )
771
- aws_marketplace_customer_id: Optional[str] = Field(
772
- alias="awsMarketplaceCustomerId", default=None
773
- )
774
-
775
-
776
- class SubscriptionInvoiceFragment(BaseModel):
777
- billing_id: str = Field(alias="billingId")
778
- status: SubscriptionInvoiceStatus
779
- created_at: Any = Field(alias="createdAt")
780
- due_date: Optional[Any] = Field(alias="dueDate", default=None)
781
- updated_at: Any = Field(alias="updatedAt")
782
- error_message: Optional[str] = Field(alias="errorMessage", default=None)
783
- requires_action: bool = Field(alias="requiresAction")
784
- payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
785
- payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
786
- pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
787
- billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
788
- alias="billingReason", default=None
789
- )
790
- currency: Optional[str] = Field(default=None)
791
- sub_total: Optional[float] = Field(alias="subTotal", default=None)
792
- sub_total_excluding_tax: Optional[float] = Field(
793
- alias="subTotalExcludingTax", default=None
794
- )
795
- total: Optional[float] = Field(default=None)
796
- total_excluding_tax: Optional[float] = Field(
797
- alias="totalExcludingTax", default=None
798
- )
799
- tax: Optional[float] = Field(default=None)
800
- amount_due: Optional[float] = Field(alias="amountDue", default=None)
801
- attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
802
-
803
-
804
- class SubscriptionTrialConfigurationFragment(BaseModel):
805
- trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
806
-
807
-
808
- class TotalPriceFragment(BaseModel):
809
- sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
810
- total: "TotalPriceFragmentTotal"
811
-
812
-
813
- class TotalPriceFragmentSubTotal(BaseModel):
814
- amount: float
815
- currency: Currency
816
-
817
-
818
- class TotalPriceFragmentTotal(BaseModel):
819
- amount: float
820
- currency: Currency
821
-
822
-
823
738
  class SubscriptionFragment(BaseModel):
824
739
  id: Any
825
740
  subscription_id: str = Field(alias="subscriptionId")
@@ -929,6 +844,91 @@ class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragm
929
844
  pass
930
845
 
931
846
 
847
+ class FeatureFragment(BaseModel):
848
+ typename__: str = Field(alias="__typename")
849
+ feature_type: FeatureType = Field(alias="featureType")
850
+ meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
851
+ feature_units: Optional[str] = Field(alias="featureUnits", default=None)
852
+ feature_units_plural: Optional[str] = Field(
853
+ alias="featureUnitsPlural", default=None
854
+ )
855
+ description: Optional[str] = Field(default=None)
856
+ display_name: str = Field(alias="displayName")
857
+ ref_id: str = Field(alias="refId")
858
+ unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
859
+ alias="unitTransformation", default=None
860
+ )
861
+
862
+
863
+ class FeatureFragmentUnitTransformation(BaseModel):
864
+ divide: float
865
+ round: UnitTransformationRound
866
+
867
+
868
+ class EntitlementFragment(BaseModel):
869
+ typename__: str = Field(alias="__typename")
870
+ is_granted: bool = Field(alias="isGranted")
871
+ access_denied_reason: Optional[AccessDeniedReason] = Field(
872
+ alias="accessDeniedReason", default=None
873
+ )
874
+ customer_id: Optional[str] = Field(alias="customerId", default=None)
875
+ resource_id: Optional[str] = Field(alias="resourceId", default=None)
876
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
877
+ has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
878
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
879
+ current_usage: Optional[float] = Field(alias="currentUsage", default=None)
880
+ requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
881
+ requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
882
+ enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
883
+ entitlement_updated_at: Optional[Any] = Field(
884
+ alias="entitlementUpdatedAt", default=None
885
+ )
886
+ usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
887
+ usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
888
+ usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
889
+ usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
890
+ next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
891
+ reset_period: Optional[EntitlementResetPeriod] = Field(
892
+ alias="resetPeriod", default=None
893
+ )
894
+ reset_period_configuration: Optional[
895
+ Annotated[
896
+ Union[
897
+ "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
898
+ "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
899
+ "EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
900
+ ],
901
+ Field(discriminator="typename__"),
902
+ ]
903
+ ] = Field(alias="resetPeriodConfiguration", default=None)
904
+ feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
905
+
906
+
907
+ class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
908
+ typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
909
+ monthly_according_to: Optional[MonthlyAccordingTo] = Field(
910
+ alias="monthlyAccordingTo", default=None
911
+ )
912
+
913
+
914
+ class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
915
+ typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
916
+ weekly_according_to: Optional[WeeklyAccordingTo] = Field(
917
+ alias="weeklyAccordingTo", default=None
918
+ )
919
+
920
+
921
+ class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
922
+ typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
923
+ yearly_according_to: Optional[YearlyAccordingTo] = Field(
924
+ alias="yearlyAccordingTo", default=None
925
+ )
926
+
927
+
928
+ class EntitlementFragmentFeature(FeatureFragment):
929
+ pass
930
+
931
+
932
932
  class ApplySubscriptionFragment(BaseModel):
933
933
  subscription: Optional["ApplySubscriptionFragmentSubscription"] = Field(
934
934
  default=None
@@ -1006,16 +1006,16 @@ class CheckoutConfigurationFragmentContent(BaseModel):
1006
1006
  )
1007
1007
 
1008
1008
 
1009
+ class ZuoraCheckoutCredentialsFragment(BaseModel):
1010
+ publishable_key: str = Field(alias="publishableKey")
1011
+
1012
+
1009
1013
  class StripeCheckoutCredentialsFragment(BaseModel):
1010
1014
  account_id: Optional[str] = Field(alias="accountId", default=None)
1011
1015
  setup_secret: str = Field(alias="setupSecret")
1012
1016
  public_key: Optional[str] = Field(alias="publicKey", default=None)
1013
1017
 
1014
1018
 
1015
- class ZuoraCheckoutCredentialsFragment(BaseModel):
1016
- publishable_key: str = Field(alias="publishableKey")
1017
-
1018
-
1019
1019
  class PromotionalEntitlementFragment(BaseModel):
1020
1020
  status: PromotionalEntitlementStatus
1021
1021
  usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
@@ -1365,6 +1365,16 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
1365
1365
  pass
1366
1366
 
1367
1367
 
1368
+ class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1369
+ display_name: str = Field(alias="displayName")
1370
+ has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1371
+ has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1372
+ usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1373
+ period: PromotionalEntitlementPeriod
1374
+ start_date: Any = Field(alias="startDate")
1375
+ end_date: Optional[Any] = Field(alias="endDate", default=None)
1376
+
1377
+
1368
1378
  class CustomerPortalSubscriptionAddonFragment(BaseModel):
1369
1379
  addon_id: str = Field(alias="addonId")
1370
1380
  description: Optional[str] = Field(default=None)
@@ -1680,16 +1690,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
1680
1690
  pass
1681
1691
 
1682
1692
 
1683
- class CustomerPortalPromotionalEntitlementFragment(BaseModel):
1684
- display_name: str = Field(alias="displayName")
1685
- has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
1686
- has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
1687
- usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
1688
- period: PromotionalEntitlementPeriod
1689
- start_date: Any = Field(alias="startDate")
1690
- end_date: Optional[Any] = Field(alias="endDate", default=None)
1691
-
1692
-
1693
1693
  class CustomerPortalFragment(BaseModel):
1694
1694
  subscriptions: List["CustomerPortalFragmentSubscriptions"]
1695
1695
  entitlements: List["CustomerPortalFragmentEntitlements"]
@@ -2971,30 +2971,30 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
2971
2971
 
2972
2972
 
2973
2973
  AddonDependencyFragment.model_rebuild()
2974
- PriceTierFragment.model_rebuild()
2975
- PriceFragment.model_rebuild()
2976
2974
  PackageEntitlementFragment.model_rebuild()
2975
+ PriceTierFragment.model_rebuild()
2977
2976
  OveragePriceFragment.model_rebuild()
2977
+ PriceFragment.model_rebuild()
2978
2978
  AddonFragment.model_rebuild()
2979
- FeatureFragment.model_rebuild()
2980
- EntitlementFragment.model_rebuild()
2981
- SubscriptionScheduledUpdateData.model_rebuild()
2979
+ SubscriptionInvoiceFragment.model_rebuild()
2980
+ SlimCustomerFragment.model_rebuild()
2981
+ CustomerResourceFragment.model_rebuild()
2982
2982
  PlanCompatiblePackageGroupsFragment.model_rebuild()
2983
2983
  ProductFragment.model_rebuild()
2984
2984
  PlanFragment.model_rebuild()
2985
- CustomerResourceFragment.model_rebuild()
2986
- SubscriptionFutureUpdateData.model_rebuild()
2987
- SlimCustomerFragment.model_rebuild()
2988
- SubscriptionInvoiceFragment.model_rebuild()
2989
- SubscriptionTrialConfigurationFragment.model_rebuild()
2990
2985
  TotalPriceFragment.model_rebuild()
2986
+ SubscriptionTrialConfigurationFragment.model_rebuild()
2987
+ SubscriptionFutureUpdateData.model_rebuild()
2988
+ SubscriptionScheduledUpdateData.model_rebuild()
2991
2989
  SubscriptionFragment.model_rebuild()
2990
+ FeatureFragment.model_rebuild()
2991
+ EntitlementFragment.model_rebuild()
2992
2992
  ApplySubscriptionFragment.model_rebuild()
2993
2993
  FontVariantFragment.model_rebuild()
2994
2994
  TypographyConfigurationFragment.model_rebuild()
2995
2995
  CheckoutConfigurationFragment.model_rebuild()
2996
- StripeCheckoutCredentialsFragment.model_rebuild()
2997
2996
  ZuoraCheckoutCredentialsFragment.model_rebuild()
2997
+ StripeCheckoutCredentialsFragment.model_rebuild()
2998
2998
  PromotionalEntitlementFragment.model_rebuild()
2999
2999
  CouponFragment.model_rebuild()
3000
3000
  CustomerFragment.model_rebuild()
@@ -3005,11 +3005,11 @@ CreditsBalanceSummaryFragment.model_rebuild()
3005
3005
  CustomerPortalBillingInformationFragment.model_rebuild()
3006
3006
  CustomerPortalConfigurationFragment.model_rebuild()
3007
3007
  CustomerPortalEntitlementFragment.model_rebuild()
3008
+ CustomerPortalPromotionalEntitlementFragment.model_rebuild()
3008
3009
  CustomerPortalSubscriptionAddonFragment.model_rebuild()
3009
3010
  CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
3010
3011
  CustomerPortalSubscriptionPriceFragment.model_rebuild()
3011
3012
  CustomerPortalSubscriptionFragment.model_rebuild()
3012
- CustomerPortalPromotionalEntitlementFragment.model_rebuild()
3013
3013
  CustomerPortalFragment.model_rebuild()
3014
3014
  CustomerStatisticsFragment.model_rebuild()
3015
3015
  CustomerWithSubscriptionsFragment.model_rebuild()