stigg-api-client-v2 3.13.0__py3-none-any.whl → 3.16.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.
- stigg/generated/__init__.py +10 -0
- stigg/generated/async_client.py +72 -0
- stigg/generated/client.py +72 -0
- stigg/generated/enums.py +1 -0
- stigg/generated/fragments.py +426 -394
- stigg/generated/input_types.py +7 -0
- {stigg_api_client_v2-3.13.0.dist-info → stigg_api_client_v2-3.16.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.13.0.dist-info → stigg_api_client_v2-3.16.0.dist-info}/RECORD +10 -10
- {stigg_api_client_v2-3.13.0.dist-info → stigg_api_client_v2-3.16.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.13.0.dist-info → stigg_api_client_v2-3.16.0.dist-info}/WHEEL +0 -0
stigg/generated/fragments.py
CHANGED
|
@@ -60,58 +60,6 @@ class AddonDependencyFragment(BaseModel):
|
|
|
60
60
|
description: Optional[str] = Field(default=None)
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
class PriceTierFragment(BaseModel):
|
|
64
|
-
up_to: Optional[float] = Field(alias="upTo", default=None)
|
|
65
|
-
unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
|
|
66
|
-
alias="unitPrice", default=None
|
|
67
|
-
)
|
|
68
|
-
flat_price: Optional["PriceTierFragmentFlatPrice"] = Field(
|
|
69
|
-
alias="flatPrice", default=None
|
|
70
|
-
)
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
class PriceTierFragmentUnitPrice(BaseModel):
|
|
74
|
-
amount: float
|
|
75
|
-
currency: Currency
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
class PriceTierFragmentFlatPrice(BaseModel):
|
|
79
|
-
amount: float
|
|
80
|
-
currency: Currency
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
class OveragePriceFragment(BaseModel):
|
|
84
|
-
billing_model: BillingModel = Field(alias="billingModel")
|
|
85
|
-
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
86
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
87
|
-
billing_country_code: Optional[str] = Field(
|
|
88
|
-
alias="billingCountryCode", default=None
|
|
89
|
-
)
|
|
90
|
-
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
91
|
-
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
92
|
-
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
93
|
-
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
class OveragePriceFragmentPrice(BaseModel):
|
|
97
|
-
amount: float
|
|
98
|
-
currency: Currency
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
102
|
-
pass
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
class OveragePriceFragmentFeature(BaseModel):
|
|
106
|
-
ref_id: str = Field(alias="refId")
|
|
107
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
108
|
-
feature_units_plural: Optional[str] = Field(
|
|
109
|
-
alias="featureUnitsPlural", default=None
|
|
110
|
-
)
|
|
111
|
-
display_name: str = Field(alias="displayName")
|
|
112
|
-
description: Optional[str] = Field(default=None)
|
|
113
|
-
|
|
114
|
-
|
|
115
63
|
class PackageEntitlementFragment(BaseModel):
|
|
116
64
|
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
117
65
|
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
@@ -146,6 +94,26 @@ class PackageEntitlementFragmentFeature(BaseModel):
|
|
|
146
94
|
)
|
|
147
95
|
|
|
148
96
|
|
|
97
|
+
class PriceTierFragment(BaseModel):
|
|
98
|
+
up_to: Optional[float] = Field(alias="upTo", default=None)
|
|
99
|
+
unit_price: Optional["PriceTierFragmentUnitPrice"] = Field(
|
|
100
|
+
alias="unitPrice", default=None
|
|
101
|
+
)
|
|
102
|
+
flat_price: Optional["PriceTierFragmentFlatPrice"] = Field(
|
|
103
|
+
alias="flatPrice", default=None
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
class PriceTierFragmentUnitPrice(BaseModel):
|
|
108
|
+
amount: float
|
|
109
|
+
currency: Currency
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class PriceTierFragmentFlatPrice(BaseModel):
|
|
113
|
+
amount: float
|
|
114
|
+
currency: Currency
|
|
115
|
+
|
|
116
|
+
|
|
149
117
|
class PriceFragment(BaseModel):
|
|
150
118
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
151
119
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -157,6 +125,9 @@ class PriceFragment(BaseModel):
|
|
|
157
125
|
alias="billingCountryCode", default=None
|
|
158
126
|
)
|
|
159
127
|
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
128
|
+
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
129
|
+
alias="creditRate", default=None
|
|
130
|
+
)
|
|
160
131
|
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
161
132
|
tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
|
|
162
133
|
feature: Optional["PriceFragmentFeature"] = Field(default=None)
|
|
@@ -168,6 +139,11 @@ class PriceFragmentPrice(BaseModel):
|
|
|
168
139
|
currency: Currency
|
|
169
140
|
|
|
170
141
|
|
|
142
|
+
class PriceFragmentCreditRate(BaseModel):
|
|
143
|
+
amount: float
|
|
144
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
145
|
+
|
|
146
|
+
|
|
171
147
|
class PriceFragmentTiers(PriceTierFragment):
|
|
172
148
|
pass
|
|
173
149
|
|
|
@@ -182,6 +158,38 @@ class PriceFragmentFeature(BaseModel):
|
|
|
182
158
|
description: Optional[str] = Field(default=None)
|
|
183
159
|
|
|
184
160
|
|
|
161
|
+
class OveragePriceFragment(BaseModel):
|
|
162
|
+
billing_model: BillingModel = Field(alias="billingModel")
|
|
163
|
+
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
164
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
165
|
+
billing_country_code: Optional[str] = Field(
|
|
166
|
+
alias="billingCountryCode", default=None
|
|
167
|
+
)
|
|
168
|
+
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
169
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
170
|
+
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
171
|
+
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
175
|
+
amount: float
|
|
176
|
+
currency: Currency
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
180
|
+
pass
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
184
|
+
ref_id: str = Field(alias="refId")
|
|
185
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
186
|
+
feature_units_plural: Optional[str] = Field(
|
|
187
|
+
alias="featureUnitsPlural", default=None
|
|
188
|
+
)
|
|
189
|
+
display_name: str = Field(alias="displayName")
|
|
190
|
+
description: Optional[str] = Field(default=None)
|
|
191
|
+
|
|
192
|
+
|
|
185
193
|
class AddonFragment(BaseModel):
|
|
186
194
|
id: Any
|
|
187
195
|
ref_id: str = Field(alias="refId")
|
|
@@ -220,6 +228,95 @@ class AddonFragmentDependencies(AddonDependencyFragment):
|
|
|
220
228
|
pass
|
|
221
229
|
|
|
222
230
|
|
|
231
|
+
class FeatureFragment(BaseModel):
|
|
232
|
+
typename__: str = Field(alias="__typename")
|
|
233
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
234
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
235
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
236
|
+
feature_units_plural: Optional[str] = Field(
|
|
237
|
+
alias="featureUnitsPlural", default=None
|
|
238
|
+
)
|
|
239
|
+
description: Optional[str] = Field(default=None)
|
|
240
|
+
display_name: str = Field(alias="displayName")
|
|
241
|
+
ref_id: str = Field(alias="refId")
|
|
242
|
+
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
243
|
+
alias="unitTransformation", default=None
|
|
244
|
+
)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
class FeatureFragmentUnitTransformation(BaseModel):
|
|
248
|
+
divide: float
|
|
249
|
+
round: UnitTransformationRound
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
class EntitlementFragment(BaseModel):
|
|
253
|
+
typename__: str = Field(alias="__typename")
|
|
254
|
+
is_granted: bool = Field(alias="isGranted")
|
|
255
|
+
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
256
|
+
alias="accessDeniedReason", default=None
|
|
257
|
+
)
|
|
258
|
+
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
259
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
260
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
261
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
262
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
263
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
264
|
+
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
265
|
+
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
266
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
267
|
+
entitlement_updated_at: Optional[Any] = Field(
|
|
268
|
+
alias="entitlementUpdatedAt", default=None
|
|
269
|
+
)
|
|
270
|
+
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
271
|
+
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
272
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
273
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
274
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
275
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
276
|
+
alias="resetPeriod", default=None
|
|
277
|
+
)
|
|
278
|
+
reset_period_configuration: Optional[
|
|
279
|
+
Annotated[
|
|
280
|
+
Union[
|
|
281
|
+
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
282
|
+
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
283
|
+
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
284
|
+
],
|
|
285
|
+
Field(discriminator="typename__"),
|
|
286
|
+
]
|
|
287
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
288
|
+
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
292
|
+
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
293
|
+
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
294
|
+
alias="monthlyAccordingTo", default=None
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
299
|
+
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
300
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
301
|
+
alias="weeklyAccordingTo", default=None
|
|
302
|
+
)
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
306
|
+
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
307
|
+
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
308
|
+
alias="yearlyAccordingTo", default=None
|
|
309
|
+
)
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
class EntitlementFragmentFeature(FeatureFragment):
|
|
313
|
+
pass
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
class CustomerResourceFragment(BaseModel):
|
|
317
|
+
resource_id: str = Field(alias="resourceId")
|
|
318
|
+
|
|
319
|
+
|
|
223
320
|
class SlimCustomerFragment(BaseModel):
|
|
224
321
|
id: Any
|
|
225
322
|
name: Optional[str] = Field(default=None)
|
|
@@ -391,53 +488,131 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
391
488
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
392
489
|
|
|
393
490
|
|
|
394
|
-
class
|
|
395
|
-
|
|
396
|
-
|
|
491
|
+
class ProductFragment(BaseModel):
|
|
492
|
+
ref_id: str = Field(alias="refId")
|
|
493
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
494
|
+
description: Optional[str] = Field(default=None)
|
|
495
|
+
additional_meta_data: Optional[Any] = Field(
|
|
496
|
+
alias="additionalMetaData", default=None
|
|
497
|
+
)
|
|
498
|
+
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
397
499
|
|
|
398
500
|
|
|
399
|
-
class
|
|
400
|
-
|
|
401
|
-
|
|
501
|
+
class ProductFragmentProductSettings(BaseModel):
|
|
502
|
+
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
503
|
+
alias="downgradePlan", default=None
|
|
504
|
+
)
|
|
402
505
|
|
|
403
506
|
|
|
404
|
-
class
|
|
405
|
-
|
|
406
|
-
|
|
507
|
+
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
508
|
+
ref_id: str = Field(alias="refId")
|
|
509
|
+
display_name: str = Field(alias="displayName")
|
|
407
510
|
|
|
408
511
|
|
|
409
|
-
class
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
415
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
416
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
417
|
-
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
418
|
-
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
419
|
-
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
420
|
-
alias="billingReason", default=None
|
|
421
|
-
)
|
|
422
|
-
currency: Optional[str] = Field(default=None)
|
|
423
|
-
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
424
|
-
sub_total_excluding_tax: Optional[float] = Field(
|
|
425
|
-
alias="subTotalExcludingTax", default=None
|
|
426
|
-
)
|
|
427
|
-
total: Optional[float] = Field(default=None)
|
|
428
|
-
total_excluding_tax: Optional[float] = Field(
|
|
429
|
-
alias="totalExcludingTax", default=None
|
|
512
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
513
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
514
|
+
display_name: str = Field(alias="displayName")
|
|
515
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
516
|
+
default=None
|
|
430
517
|
)
|
|
431
|
-
|
|
432
|
-
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
433
|
-
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
518
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
434
519
|
|
|
435
520
|
|
|
436
|
-
class
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
521
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
522
|
+
pass
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
526
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
527
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
class PlanFragment(BaseModel):
|
|
531
|
+
id: Any
|
|
532
|
+
ref_id: str = Field(alias="refId")
|
|
533
|
+
display_name: str = Field(alias="displayName")
|
|
534
|
+
description: Optional[str] = Field(default=None)
|
|
535
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
536
|
+
version_number: int = Field(alias="versionNumber")
|
|
537
|
+
additional_meta_data: Optional[Any] = Field(
|
|
538
|
+
alias="additionalMetaData", default=None
|
|
539
|
+
)
|
|
540
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
541
|
+
alias="hiddenFromWidgets", default=None
|
|
542
|
+
)
|
|
543
|
+
product: "PlanFragmentProduct"
|
|
544
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
545
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
546
|
+
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
547
|
+
alias="inheritedEntitlements", default=None
|
|
548
|
+
)
|
|
549
|
+
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
550
|
+
alias="compatibleAddons", default=None
|
|
551
|
+
)
|
|
552
|
+
compatible_package_groups: Optional[
|
|
553
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
554
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
555
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
556
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
557
|
+
alias="overagePrices", default=None
|
|
558
|
+
)
|
|
559
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
560
|
+
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
561
|
+
alias="defaultTrialConfig", default=None
|
|
562
|
+
)
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
class PlanFragmentProduct(ProductFragment):
|
|
566
|
+
pass
|
|
567
|
+
|
|
568
|
+
|
|
569
|
+
class PlanFragmentBasePlan(BaseModel):
|
|
570
|
+
ref_id: str = Field(alias="refId")
|
|
571
|
+
display_name: str = Field(alias="displayName")
|
|
572
|
+
|
|
573
|
+
|
|
574
|
+
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
575
|
+
pass
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
579
|
+
pass
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
583
|
+
pass
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
587
|
+
pass
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
class PlanFragmentPrices(PriceFragment):
|
|
591
|
+
pass
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
595
|
+
pass
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
599
|
+
duration: float
|
|
600
|
+
units: TrialPeriodUnits
|
|
601
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
602
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
603
|
+
alias="trialEndBehavior", default=None
|
|
604
|
+
)
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
608
|
+
limit: float
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
class SubscriptionScheduledUpdateData(BaseModel):
|
|
612
|
+
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
613
|
+
alias="subscriptionScheduleType"
|
|
614
|
+
)
|
|
615
|
+
schedule_status: SubscriptionScheduleStatus = Field(alias="scheduleStatus")
|
|
441
616
|
scheduled_execution_time: Any = Field(alias="scheduledExecutionTime")
|
|
442
617
|
target_package: Optional["SubscriptionScheduledUpdateDataTargetPackage"] = Field(
|
|
443
618
|
alias="targetPackage", default=None
|
|
@@ -595,132 +770,50 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
595
770
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
596
771
|
|
|
597
772
|
|
|
598
|
-
class
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
class ProductFragmentProductSettings(BaseModel):
|
|
613
|
-
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
614
|
-
alias="downgradePlan", default=None
|
|
615
|
-
)
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
619
|
-
ref_id: str = Field(alias="refId")
|
|
620
|
-
display_name: str = Field(alias="displayName")
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
624
|
-
package_group_id: str = Field(alias="packageGroupId")
|
|
625
|
-
display_name: str = Field(alias="displayName")
|
|
626
|
-
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
627
|
-
default=None
|
|
628
|
-
)
|
|
629
|
-
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
633
|
-
pass
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
637
|
-
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
638
|
-
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
class PlanFragment(BaseModel):
|
|
642
|
-
id: Any
|
|
643
|
-
ref_id: str = Field(alias="refId")
|
|
644
|
-
display_name: str = Field(alias="displayName")
|
|
645
|
-
description: Optional[str] = Field(default=None)
|
|
646
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
647
|
-
version_number: int = Field(alias="versionNumber")
|
|
648
|
-
additional_meta_data: Optional[Any] = Field(
|
|
649
|
-
alias="additionalMetaData", default=None
|
|
650
|
-
)
|
|
651
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
652
|
-
alias="hiddenFromWidgets", default=None
|
|
653
|
-
)
|
|
654
|
-
product: "PlanFragmentProduct"
|
|
655
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
656
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
657
|
-
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
658
|
-
alias="inheritedEntitlements", default=None
|
|
659
|
-
)
|
|
660
|
-
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
661
|
-
alias="compatibleAddons", default=None
|
|
773
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
774
|
+
billing_id: str = Field(alias="billingId")
|
|
775
|
+
status: SubscriptionInvoiceStatus
|
|
776
|
+
created_at: Any = Field(alias="createdAt")
|
|
777
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
778
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
779
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
780
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
781
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
782
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
783
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
784
|
+
alias="billingReason", default=None
|
|
662
785
|
)
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
] = Field(
|
|
666
|
-
|
|
667
|
-
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
668
|
-
alias="overagePrices", default=None
|
|
786
|
+
currency: Optional[str] = Field(default=None)
|
|
787
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
788
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
789
|
+
alias="subTotalExcludingTax", default=None
|
|
669
790
|
)
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
alias="
|
|
791
|
+
total: Optional[float] = Field(default=None)
|
|
792
|
+
total_excluding_tax: Optional[float] = Field(
|
|
793
|
+
alias="totalExcludingTax", default=None
|
|
673
794
|
)
|
|
795
|
+
tax: Optional[float] = Field(default=None)
|
|
796
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
797
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
674
798
|
|
|
675
799
|
|
|
676
|
-
class
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
class PlanFragmentBasePlan(BaseModel):
|
|
681
|
-
ref_id: str = Field(alias="refId")
|
|
682
|
-
display_name: str = Field(alias="displayName")
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
686
|
-
pass
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
690
|
-
pass
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
694
|
-
pass
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
698
|
-
pass
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
class PlanFragmentPrices(PriceFragment):
|
|
702
|
-
pass
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
706
|
-
pass
|
|
800
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
801
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
707
802
|
|
|
708
803
|
|
|
709
|
-
class
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
713
|
-
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
714
|
-
alias="trialEndBehavior", default=None
|
|
715
|
-
)
|
|
804
|
+
class TotalPriceFragment(BaseModel):
|
|
805
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
806
|
+
total: "TotalPriceFragmentTotal"
|
|
716
807
|
|
|
717
808
|
|
|
718
|
-
class
|
|
719
|
-
|
|
809
|
+
class TotalPriceFragmentSubTotal(BaseModel):
|
|
810
|
+
amount: float
|
|
811
|
+
currency: Currency
|
|
720
812
|
|
|
721
813
|
|
|
722
|
-
class
|
|
723
|
-
|
|
814
|
+
class TotalPriceFragmentTotal(BaseModel):
|
|
815
|
+
amount: float
|
|
816
|
+
currency: Currency
|
|
724
817
|
|
|
725
818
|
|
|
726
819
|
class SubscriptionFragment(BaseModel):
|
|
@@ -798,122 +891,37 @@ class SubscriptionFragmentPrices(BaseModel):
|
|
|
798
891
|
price: Optional["SubscriptionFragmentPricesPrice"] = Field(default=None)
|
|
799
892
|
|
|
800
893
|
|
|
801
|
-
class SubscriptionFragmentPricesPrice(PriceFragment):
|
|
802
|
-
pass
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
class SubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
806
|
-
pass
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
class SubscriptionFragmentPlan(PlanFragment):
|
|
810
|
-
pass
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
class SubscriptionFragmentAddons(BaseModel):
|
|
814
|
-
id: Any
|
|
815
|
-
quantity: float
|
|
816
|
-
addon: "SubscriptionFragmentAddonsAddon"
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
class SubscriptionFragmentAddonsAddon(AddonFragment):
|
|
820
|
-
pass
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
class SubscriptionFragmentScheduledUpdates(SubscriptionScheduledUpdateData):
|
|
824
|
-
pass
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
class SubscriptionFragmentFutureUpdates(SubscriptionFutureUpdateData):
|
|
828
|
-
pass
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragment):
|
|
832
|
-
pass
|
|
833
|
-
|
|
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
|
-
)
|
|
894
|
+
class SubscriptionFragmentPricesPrice(PriceFragment):
|
|
895
|
+
pass
|
|
849
896
|
|
|
850
897
|
|
|
851
|
-
class
|
|
852
|
-
|
|
853
|
-
round: UnitTransformationRound
|
|
898
|
+
class SubscriptionFragmentTotalPrice(TotalPriceFragment):
|
|
899
|
+
pass
|
|
854
900
|
|
|
855
901
|
|
|
856
|
-
class
|
|
857
|
-
|
|
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)
|
|
902
|
+
class SubscriptionFragmentPlan(PlanFragment):
|
|
903
|
+
pass
|
|
893
904
|
|
|
894
905
|
|
|
895
|
-
class
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
)
|
|
906
|
+
class SubscriptionFragmentAddons(BaseModel):
|
|
907
|
+
id: Any
|
|
908
|
+
quantity: float
|
|
909
|
+
addon: "SubscriptionFragmentAddonsAddon"
|
|
900
910
|
|
|
901
911
|
|
|
902
|
-
class
|
|
903
|
-
|
|
904
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
905
|
-
alias="weeklyAccordingTo", default=None
|
|
906
|
-
)
|
|
912
|
+
class SubscriptionFragmentAddonsAddon(AddonFragment):
|
|
913
|
+
pass
|
|
907
914
|
|
|
908
915
|
|
|
909
|
-
class
|
|
910
|
-
|
|
911
|
-
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
912
|
-
alias="yearlyAccordingTo", default=None
|
|
913
|
-
)
|
|
916
|
+
class SubscriptionFragmentScheduledUpdates(SubscriptionScheduledUpdateData):
|
|
917
|
+
pass
|
|
914
918
|
|
|
915
919
|
|
|
916
|
-
class
|
|
920
|
+
class SubscriptionFragmentFutureUpdates(SubscriptionFutureUpdateData):
|
|
921
|
+
pass
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragment):
|
|
917
925
|
pass
|
|
918
926
|
|
|
919
927
|
|
|
@@ -994,6 +1002,35 @@ class CheckoutConfigurationFragmentContent(BaseModel):
|
|
|
994
1002
|
)
|
|
995
1003
|
|
|
996
1004
|
|
|
1005
|
+
class PromotionalEntitlementFragment(BaseModel):
|
|
1006
|
+
status: PromotionalEntitlementStatus
|
|
1007
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1008
|
+
feature_id: Any = Field(alias="featureId")
|
|
1009
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1010
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1011
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1012
|
+
alias="resetPeriod", default=None
|
|
1013
|
+
)
|
|
1014
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1015
|
+
is_visible: bool = Field(alias="isVisible")
|
|
1016
|
+
feature: "PromotionalEntitlementFragmentFeature"
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1020
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1021
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1022
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1023
|
+
feature_units_plural: Optional[str] = Field(
|
|
1024
|
+
alias="featureUnitsPlural", default=None
|
|
1025
|
+
)
|
|
1026
|
+
display_name: str = Field(alias="displayName")
|
|
1027
|
+
description: Optional[str] = Field(default=None)
|
|
1028
|
+
ref_id: str = Field(alias="refId")
|
|
1029
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1030
|
+
alias="additionalMetaData", default=None
|
|
1031
|
+
)
|
|
1032
|
+
|
|
1033
|
+
|
|
997
1034
|
class CouponFragment(BaseModel):
|
|
998
1035
|
id: Any
|
|
999
1036
|
discount_value: float = Field(alias="discountValue")
|
|
@@ -1028,35 +1065,6 @@ class CouponFragmentSyncStates(BaseModel):
|
|
|
1028
1065
|
status: SyncStatus
|
|
1029
1066
|
|
|
1030
1067
|
|
|
1031
|
-
class PromotionalEntitlementFragment(BaseModel):
|
|
1032
|
-
status: PromotionalEntitlementStatus
|
|
1033
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1034
|
-
feature_id: Any = Field(alias="featureId")
|
|
1035
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1036
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1037
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1038
|
-
alias="resetPeriod", default=None
|
|
1039
|
-
)
|
|
1040
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1041
|
-
is_visible: bool = Field(alias="isVisible")
|
|
1042
|
-
feature: "PromotionalEntitlementFragmentFeature"
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1046
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1047
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1048
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1049
|
-
feature_units_plural: Optional[str] = Field(
|
|
1050
|
-
alias="featureUnitsPlural", default=None
|
|
1051
|
-
)
|
|
1052
|
-
display_name: str = Field(alias="displayName")
|
|
1053
|
-
description: Optional[str] = Field(default=None)
|
|
1054
|
-
ref_id: str = Field(alias="refId")
|
|
1055
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1056
|
-
alias="additionalMetaData", default=None
|
|
1057
|
-
)
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
1068
|
class CustomerFragment(SlimCustomerFragment):
|
|
1061
1069
|
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
1062
1070
|
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
@@ -1263,6 +1271,16 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
|
1263
1271
|
pass
|
|
1264
1272
|
|
|
1265
1273
|
|
|
1274
|
+
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1275
|
+
display_name: str = Field(alias="displayName")
|
|
1276
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1277
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1278
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1279
|
+
period: PromotionalEntitlementPeriod
|
|
1280
|
+
start_date: Any = Field(alias="startDate")
|
|
1281
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1282
|
+
|
|
1283
|
+
|
|
1266
1284
|
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
1267
1285
|
addon_id: str = Field(alias="addonId")
|
|
1268
1286
|
description: Optional[str] = Field(default=None)
|
|
@@ -1277,6 +1295,9 @@ class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
|
1277
1295
|
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1278
1296
|
default=None
|
|
1279
1297
|
)
|
|
1298
|
+
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1299
|
+
alias="creditRate", default=None
|
|
1300
|
+
)
|
|
1280
1301
|
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1281
1302
|
default=None
|
|
1282
1303
|
)
|
|
@@ -1287,6 +1308,11 @@ class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
|
1287
1308
|
currency: Currency
|
|
1288
1309
|
|
|
1289
1310
|
|
|
1311
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1312
|
+
amount: float
|
|
1313
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1314
|
+
|
|
1315
|
+
|
|
1290
1316
|
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1291
1317
|
id: Any
|
|
1292
1318
|
ref_id: str = Field(alias="refId")
|
|
@@ -1504,6 +1530,9 @@ class CustomerPortalSubscriptionFragmentPricing(BaseModel):
|
|
|
1504
1530
|
price: Optional["CustomerPortalSubscriptionFragmentPricingPrice"] = Field(
|
|
1505
1531
|
default=None
|
|
1506
1532
|
)
|
|
1533
|
+
credit_rate: Optional[
|
|
1534
|
+
"CustomerPortalSubscriptionFragmentPricingCreditRate"
|
|
1535
|
+
] = Field(alias="creditRate", default=None)
|
|
1507
1536
|
feature: Optional["CustomerPortalSubscriptionFragmentPricingFeature"] = Field(
|
|
1508
1537
|
default=None
|
|
1509
1538
|
)
|
|
@@ -1514,6 +1543,11 @@ class CustomerPortalSubscriptionFragmentPricingPrice(BaseModel):
|
|
|
1514
1543
|
currency: Currency
|
|
1515
1544
|
|
|
1516
1545
|
|
|
1546
|
+
class CustomerPortalSubscriptionFragmentPricingCreditRate(BaseModel):
|
|
1547
|
+
amount: float
|
|
1548
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1549
|
+
|
|
1550
|
+
|
|
1517
1551
|
class CustomerPortalSubscriptionFragmentPricingFeature(BaseModel):
|
|
1518
1552
|
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1519
1553
|
feature_units_plural: Optional[str] = Field(
|
|
@@ -1562,16 +1596,6 @@ class CustomerPortalSubscriptionFragmentScheduledUpdates(
|
|
|
1562
1596
|
pass
|
|
1563
1597
|
|
|
1564
1598
|
|
|
1565
|
-
class CustomerPortalPromotionalEntitlementFragment(BaseModel):
|
|
1566
|
-
display_name: str = Field(alias="displayName")
|
|
1567
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1568
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1569
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1570
|
-
period: PromotionalEntitlementPeriod
|
|
1571
|
-
start_date: Any = Field(alias="startDate")
|
|
1572
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
1599
|
class CustomerPortalFragment(BaseModel):
|
|
1576
1600
|
subscriptions: List["CustomerPortalFragmentSubscriptions"]
|
|
1577
1601
|
entitlements: List["CustomerPortalFragmentEntitlements"]
|
|
@@ -1799,40 +1823,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
|
|
|
1799
1823
|
description: Optional[str] = Field(default=None)
|
|
1800
1824
|
|
|
1801
1825
|
|
|
1802
|
-
class MockPaywallPriceFragment(BaseModel):
|
|
1803
|
-
billing_model: BillingModel = Field(alias="billingModel")
|
|
1804
|
-
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1805
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
1806
|
-
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
1807
|
-
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
1808
|
-
billing_country_code: Optional[str] = Field(
|
|
1809
|
-
alias="billingCountryCode", default=None
|
|
1810
|
-
)
|
|
1811
|
-
price: Optional["MockPaywallPriceFragmentPrice"] = Field(default=None)
|
|
1812
|
-
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
1813
|
-
tiers: Optional[List["MockPaywallPriceFragmentTiers"]] = Field(default=None)
|
|
1814
|
-
feature: Optional["MockPaywallPriceFragmentFeature"] = Field(default=None)
|
|
1815
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
class MockPaywallPriceFragmentPrice(BaseModel):
|
|
1819
|
-
amount: float
|
|
1820
|
-
currency: Currency
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
class MockPaywallPriceFragmentTiers(PriceTierFragment):
|
|
1824
|
-
pass
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
class MockPaywallPriceFragmentFeature(BaseModel):
|
|
1828
|
-
ref_id: str = Field(alias="refId")
|
|
1829
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1830
|
-
feature_units_plural: Optional[str] = Field(
|
|
1831
|
-
alias="featureUnitsPlural", default=None
|
|
1832
|
-
)
|
|
1833
|
-
display_name: str = Field(alias="displayName")
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
1826
|
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1837
1827
|
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1838
1828
|
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
@@ -1867,6 +1857,48 @@ class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
|
1867
1857
|
)
|
|
1868
1858
|
|
|
1869
1859
|
|
|
1860
|
+
class MockPaywallPriceFragment(BaseModel):
|
|
1861
|
+
billing_model: BillingModel = Field(alias="billingModel")
|
|
1862
|
+
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
1863
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
1864
|
+
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
1865
|
+
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
1866
|
+
billing_country_code: Optional[str] = Field(
|
|
1867
|
+
alias="billingCountryCode", default=None
|
|
1868
|
+
)
|
|
1869
|
+
price: Optional["MockPaywallPriceFragmentPrice"] = Field(default=None)
|
|
1870
|
+
credit_rate: Optional["MockPaywallPriceFragmentCreditRate"] = Field(
|
|
1871
|
+
alias="creditRate", default=None
|
|
1872
|
+
)
|
|
1873
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
1874
|
+
tiers: Optional[List["MockPaywallPriceFragmentTiers"]] = Field(default=None)
|
|
1875
|
+
feature: Optional["MockPaywallPriceFragmentFeature"] = Field(default=None)
|
|
1876
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1877
|
+
|
|
1878
|
+
|
|
1879
|
+
class MockPaywallPriceFragmentPrice(BaseModel):
|
|
1880
|
+
amount: float
|
|
1881
|
+
currency: Currency
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
class MockPaywallPriceFragmentCreditRate(BaseModel):
|
|
1885
|
+
amount: float
|
|
1886
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1887
|
+
|
|
1888
|
+
|
|
1889
|
+
class MockPaywallPriceFragmentTiers(PriceTierFragment):
|
|
1890
|
+
pass
|
|
1891
|
+
|
|
1892
|
+
|
|
1893
|
+
class MockPaywallPriceFragmentFeature(BaseModel):
|
|
1894
|
+
ref_id: str = Field(alias="refId")
|
|
1895
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1896
|
+
feature_units_plural: Optional[str] = Field(
|
|
1897
|
+
alias="featureUnitsPlural", default=None
|
|
1898
|
+
)
|
|
1899
|
+
display_name: str = Field(alias="displayName")
|
|
1900
|
+
|
|
1901
|
+
|
|
1870
1902
|
class MockPaywallAddonFragment(BaseModel):
|
|
1871
1903
|
ref_id: str = Field(alias="refId")
|
|
1872
1904
|
display_name: str = Field(alias="displayName")
|
|
@@ -2840,40 +2872,40 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
2840
2872
|
|
|
2841
2873
|
|
|
2842
2874
|
AddonDependencyFragment.model_rebuild()
|
|
2843
|
-
PriceTierFragment.model_rebuild()
|
|
2844
|
-
OveragePriceFragment.model_rebuild()
|
|
2845
2875
|
PackageEntitlementFragment.model_rebuild()
|
|
2876
|
+
PriceTierFragment.model_rebuild()
|
|
2846
2877
|
PriceFragment.model_rebuild()
|
|
2878
|
+
OveragePriceFragment.model_rebuild()
|
|
2847
2879
|
AddonFragment.model_rebuild()
|
|
2880
|
+
FeatureFragment.model_rebuild()
|
|
2881
|
+
EntitlementFragment.model_rebuild()
|
|
2882
|
+
CustomerResourceFragment.model_rebuild()
|
|
2848
2883
|
SlimCustomerFragment.model_rebuild()
|
|
2849
2884
|
SubscriptionFutureUpdateData.model_rebuild()
|
|
2850
|
-
TotalPriceFragment.model_rebuild()
|
|
2851
|
-
SubscriptionInvoiceFragment.model_rebuild()
|
|
2852
|
-
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2853
|
-
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2854
2885
|
ProductFragment.model_rebuild()
|
|
2855
2886
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2856
2887
|
PlanFragment.model_rebuild()
|
|
2857
|
-
|
|
2888
|
+
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2889
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
2890
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2891
|
+
TotalPriceFragment.model_rebuild()
|
|
2858
2892
|
SubscriptionFragment.model_rebuild()
|
|
2859
|
-
FeatureFragment.model_rebuild()
|
|
2860
|
-
EntitlementFragment.model_rebuild()
|
|
2861
2893
|
ApplySubscriptionFragment.model_rebuild()
|
|
2862
2894
|
FontVariantFragment.model_rebuild()
|
|
2863
2895
|
TypographyConfigurationFragment.model_rebuild()
|
|
2864
2896
|
CheckoutConfigurationFragment.model_rebuild()
|
|
2865
|
-
CouponFragment.model_rebuild()
|
|
2866
2897
|
PromotionalEntitlementFragment.model_rebuild()
|
|
2898
|
+
CouponFragment.model_rebuild()
|
|
2867
2899
|
CustomerFragment.model_rebuild()
|
|
2868
2900
|
CheckoutStateFragment.model_rebuild()
|
|
2869
2901
|
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
2870
2902
|
CustomerPortalConfigurationFragment.model_rebuild()
|
|
2871
2903
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
2904
|
+
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
2872
2905
|
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
2873
2906
|
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2874
2907
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
2875
2908
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
2876
|
-
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
2877
2909
|
CustomerPortalFragment.model_rebuild()
|
|
2878
2910
|
CustomerStatisticsFragment.model_rebuild()
|
|
2879
2911
|
CustomerWithSubscriptionsFragment.model_rebuild()
|
|
@@ -2883,8 +2915,8 @@ EntitlementsUpdatedPayload.model_rebuild()
|
|
|
2883
2915
|
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
2884
2916
|
LayoutConfigurationFragment.model_rebuild()
|
|
2885
2917
|
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
2886
|
-
MockPaywallPriceFragment.model_rebuild()
|
|
2887
2918
|
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
2919
|
+
MockPaywallPriceFragment.model_rebuild()
|
|
2888
2920
|
MockPaywallAddonFragment.model_rebuild()
|
|
2889
2921
|
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2890
2922
|
MockPaywallPlanFragment.model_rebuild()
|