stigg-api-client-v2 3.123.0__py3-none-any.whl → 3.124.1__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/fragments.py +264 -264
- {stigg_api_client_v2-3.123.0.dist-info → stigg_api_client_v2-3.124.1.dist-info}/METADATA +2 -2
- {stigg_api_client_v2-3.123.0.dist-info → stigg_api_client_v2-3.124.1.dist-info}/RECORD +5 -5
- {stigg_api_client_v2-3.123.0.dist-info → stigg_api_client_v2-3.124.1.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.123.0.dist-info → stigg_api_client_v2-3.124.1.dist-info}/WHEEL +0 -0
stigg/generated/fragments.py
CHANGED
|
@@ -82,29 +82,42 @@ class PriceTierFragmentFlatPrice(BaseModel):
|
|
|
82
82
|
currency: Currency
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class PriceFragment(BaseModel):
|
|
86
86
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
87
87
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
88
|
+
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
88
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)
|
|
89
92
|
billing_country_code: Optional[str] = Field(
|
|
90
93
|
alias="billingCountryCode", default=None
|
|
91
94
|
)
|
|
92
|
-
price: Optional["
|
|
95
|
+
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
96
|
+
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
97
|
+
alias="creditRate", default=None
|
|
98
|
+
)
|
|
93
99
|
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
94
|
-
tiers: Optional[List["
|
|
95
|
-
feature: Optional["
|
|
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)
|
|
96
103
|
|
|
97
104
|
|
|
98
|
-
class
|
|
105
|
+
class PriceFragmentPrice(BaseModel):
|
|
99
106
|
amount: float
|
|
100
107
|
currency: Currency
|
|
101
108
|
|
|
102
109
|
|
|
103
|
-
class
|
|
110
|
+
class PriceFragmentCreditRate(BaseModel):
|
|
111
|
+
amount: float
|
|
112
|
+
custom_currency_id: Optional[Any] = Field(alias="customCurrencyId", default=None)
|
|
113
|
+
currency_id: str = Field(alias="currencyId")
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class PriceFragmentTiers(PriceTierFragment):
|
|
104
117
|
pass
|
|
105
118
|
|
|
106
119
|
|
|
107
|
-
class
|
|
120
|
+
class PriceFragmentFeature(BaseModel):
|
|
108
121
|
ref_id: str = Field(alias="refId")
|
|
109
122
|
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
110
123
|
feature_units_plural: Optional[str] = Field(
|
|
@@ -149,42 +162,29 @@ class PackageEntitlementFragmentFeature(BaseModel):
|
|
|
149
162
|
)
|
|
150
163
|
|
|
151
164
|
|
|
152
|
-
class
|
|
165
|
+
class OveragePriceFragment(BaseModel):
|
|
153
166
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
154
167
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
155
|
-
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
156
168
|
billing_id: Optional[str] = Field(alias="billingId", 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
169
|
billing_country_code: Optional[str] = Field(
|
|
160
170
|
alias="billingCountryCode", default=None
|
|
161
171
|
)
|
|
162
|
-
price: Optional["
|
|
163
|
-
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
164
|
-
alias="creditRate", default=None
|
|
165
|
-
)
|
|
172
|
+
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
166
173
|
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
167
|
-
tiers: Optional[List["
|
|
168
|
-
feature: Optional["
|
|
169
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
174
|
+
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
175
|
+
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
170
176
|
|
|
171
177
|
|
|
172
|
-
class
|
|
178
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
173
179
|
amount: float
|
|
174
180
|
currency: Currency
|
|
175
181
|
|
|
176
182
|
|
|
177
|
-
class
|
|
178
|
-
amount: float
|
|
179
|
-
custom_currency_id: Optional[Any] = Field(alias="customCurrencyId", default=None)
|
|
180
|
-
currency_id: str = Field(alias="currencyId")
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
class PriceFragmentTiers(PriceTierFragment):
|
|
183
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
184
184
|
pass
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
class
|
|
187
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
188
188
|
ref_id: str = Field(alias="refId")
|
|
189
189
|
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
190
190
|
feature_units_plural: Optional[str] = Field(
|
|
@@ -232,151 +232,19 @@ class AddonFragmentDependencies(AddonDependencyFragment):
|
|
|
232
232
|
pass
|
|
233
233
|
|
|
234
234
|
|
|
235
|
-
class
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
239
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
240
|
-
feature_units_plural: Optional[str] = Field(
|
|
241
|
-
alias="featureUnitsPlural", default=None
|
|
242
|
-
)
|
|
243
|
-
description: Optional[str] = Field(default=None)
|
|
244
|
-
display_name: str = Field(alias="displayName")
|
|
245
|
-
ref_id: str = Field(alias="refId")
|
|
246
|
-
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
247
|
-
alias="unitTransformation", default=None
|
|
248
|
-
)
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
class FeatureFragmentUnitTransformation(BaseModel):
|
|
252
|
-
divide: float
|
|
253
|
-
round: UnitTransformationRound
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
class EntitlementFragment(BaseModel):
|
|
257
|
-
typename__: str = Field(alias="__typename")
|
|
258
|
-
is_granted: bool = Field(alias="isGranted")
|
|
259
|
-
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
260
|
-
alias="accessDeniedReason", default=None
|
|
261
|
-
)
|
|
262
|
-
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
263
|
-
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
264
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
265
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
266
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
267
|
-
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
268
|
-
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
269
|
-
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
270
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
271
|
-
entitlement_updated_at: Optional[Any] = Field(
|
|
272
|
-
alias="entitlementUpdatedAt", default=None
|
|
273
|
-
)
|
|
274
|
-
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
275
|
-
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
276
|
-
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
277
|
-
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
278
|
-
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
279
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
280
|
-
alias="resetPeriod", default=None
|
|
281
|
-
)
|
|
282
|
-
reset_period_configuration: Optional[
|
|
283
|
-
Annotated[
|
|
284
|
-
Union[
|
|
285
|
-
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
286
|
-
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
287
|
-
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
288
|
-
],
|
|
289
|
-
Field(discriminator="typename__"),
|
|
290
|
-
]
|
|
291
|
-
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
292
|
-
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
293
|
-
credit_rate: Optional["EntitlementFragmentCreditRate"] = Field(
|
|
294
|
-
alias="creditRate", default=None
|
|
295
|
-
)
|
|
296
|
-
valid_until: Optional[float] = Field(alias="validUntil", default=None)
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
300
|
-
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
301
|
-
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
302
|
-
alias="monthlyAccordingTo", default=None
|
|
303
|
-
)
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
307
|
-
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
308
|
-
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
309
|
-
alias="weeklyAccordingTo", default=None
|
|
310
|
-
)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
314
|
-
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
315
|
-
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
316
|
-
alias="yearlyAccordingTo", default=None
|
|
317
|
-
)
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
class EntitlementFragmentFeature(FeatureFragment):
|
|
321
|
-
pass
|
|
235
|
+
class TotalPriceFragment(BaseModel):
|
|
236
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
237
|
+
total: "TotalPriceFragmentTotal"
|
|
322
238
|
|
|
323
239
|
|
|
324
|
-
class
|
|
240
|
+
class TotalPriceFragmentSubTotal(BaseModel):
|
|
325
241
|
amount: float
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
class CustomerResourceFragment(BaseModel):
|
|
330
|
-
resource_id: str = Field(alias="resourceId")
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
class SubscriptionInvoiceFragment(BaseModel):
|
|
334
|
-
billing_id: str = Field(alias="billingId")
|
|
335
|
-
status: SubscriptionInvoiceStatus
|
|
336
|
-
created_at: Any = Field(alias="createdAt")
|
|
337
|
-
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
338
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
339
|
-
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
340
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
341
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
342
|
-
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
343
|
-
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
344
|
-
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
345
|
-
alias="billingReason", default=None
|
|
346
|
-
)
|
|
347
|
-
currency: Optional[str] = Field(default=None)
|
|
348
|
-
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
349
|
-
sub_total_excluding_tax: Optional[float] = Field(
|
|
350
|
-
alias="subTotalExcludingTax", default=None
|
|
351
|
-
)
|
|
352
|
-
total: Optional[float] = Field(default=None)
|
|
353
|
-
total_excluding_tax: Optional[float] = Field(
|
|
354
|
-
alias="totalExcludingTax", default=None
|
|
355
|
-
)
|
|
356
|
-
tax: Optional[float] = Field(default=None)
|
|
357
|
-
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
358
|
-
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
362
|
-
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
242
|
+
currency: Currency
|
|
363
243
|
|
|
364
244
|
|
|
365
|
-
class
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
email: Optional[str] = Field(default=None)
|
|
369
|
-
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
370
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
371
|
-
ref_id: str = Field(alias="refId")
|
|
372
|
-
customer_id: str = Field(alias="customerId")
|
|
373
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
374
|
-
additional_meta_data: Optional[Any] = Field(
|
|
375
|
-
alias="additionalMetaData", default=None
|
|
376
|
-
)
|
|
377
|
-
aws_marketplace_customer_id: Optional[str] = Field(
|
|
378
|
-
alias="awsMarketplaceCustomerId", default=None
|
|
379
|
-
)
|
|
245
|
+
class TotalPriceFragmentTotal(BaseModel):
|
|
246
|
+
amount: float
|
|
247
|
+
currency: Currency
|
|
380
248
|
|
|
381
249
|
|
|
382
250
|
class SubscriptionScheduledUpdateData(BaseModel):
|
|
@@ -541,6 +409,42 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
541
409
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
542
410
|
|
|
543
411
|
|
|
412
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
413
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
417
|
+
billing_id: str = Field(alias="billingId")
|
|
418
|
+
status: SubscriptionInvoiceStatus
|
|
419
|
+
created_at: Any = Field(alias="createdAt")
|
|
420
|
+
due_date: Optional[Any] = Field(alias="dueDate", default=None)
|
|
421
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
422
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
423
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
424
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
425
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
426
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
427
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
428
|
+
alias="billingReason", default=None
|
|
429
|
+
)
|
|
430
|
+
currency: Optional[str] = Field(default=None)
|
|
431
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
432
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
433
|
+
alias="subTotalExcludingTax", default=None
|
|
434
|
+
)
|
|
435
|
+
total: Optional[float] = Field(default=None)
|
|
436
|
+
total_excluding_tax: Optional[float] = Field(
|
|
437
|
+
alias="totalExcludingTax", default=None
|
|
438
|
+
)
|
|
439
|
+
tax: Optional[float] = Field(default=None)
|
|
440
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
441
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
class CustomerResourceFragment(BaseModel):
|
|
445
|
+
resource_id: str = Field(alias="resourceId")
|
|
446
|
+
|
|
447
|
+
|
|
544
448
|
class SubscriptionFutureUpdateData(BaseModel):
|
|
545
449
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
546
450
|
alias="subscriptionScheduleType"
|
|
@@ -695,21 +599,6 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
695
599
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
696
600
|
|
|
697
601
|
|
|
698
|
-
class TotalPriceFragment(BaseModel):
|
|
699
|
-
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
700
|
-
total: "TotalPriceFragmentTotal"
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
class TotalPriceFragmentSubTotal(BaseModel):
|
|
704
|
-
amount: float
|
|
705
|
-
currency: Currency
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
class TotalPriceFragmentTotal(BaseModel):
|
|
709
|
-
amount: float
|
|
710
|
-
currency: Currency
|
|
711
|
-
|
|
712
|
-
|
|
713
602
|
class ProductFragment(BaseModel):
|
|
714
603
|
ref_id: str = Field(alias="refId")
|
|
715
604
|
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
@@ -826,10 +715,27 @@ class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
|
826
715
|
)
|
|
827
716
|
|
|
828
717
|
|
|
829
|
-
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
830
|
-
limit: float
|
|
831
|
-
|
|
832
|
-
|
|
718
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
719
|
+
limit: float
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
class SlimCustomerFragment(BaseModel):
|
|
723
|
+
id: Any
|
|
724
|
+
name: Optional[str] = Field(default=None)
|
|
725
|
+
email: Optional[str] = Field(default=None)
|
|
726
|
+
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
727
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
728
|
+
ref_id: str = Field(alias="refId")
|
|
729
|
+
customer_id: str = Field(alias="customerId")
|
|
730
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
731
|
+
additional_meta_data: Optional[Any] = Field(
|
|
732
|
+
alias="additionalMetaData", default=None
|
|
733
|
+
)
|
|
734
|
+
aws_marketplace_customer_id: Optional[str] = Field(
|
|
735
|
+
alias="awsMarketplaceCustomerId", default=None
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
|
|
833
739
|
class SubscriptionFragment(BaseModel):
|
|
834
740
|
id: Any
|
|
835
741
|
subscription_id: str = Field(alias="subscriptionId")
|
|
@@ -939,6 +845,100 @@ class SubscriptionFragmentTrialConfiguration(SubscriptionTrialConfigurationFragm
|
|
|
939
845
|
pass
|
|
940
846
|
|
|
941
847
|
|
|
848
|
+
class FeatureFragment(BaseModel):
|
|
849
|
+
typename__: str = Field(alias="__typename")
|
|
850
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
851
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
852
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
853
|
+
feature_units_plural: Optional[str] = Field(
|
|
854
|
+
alias="featureUnitsPlural", default=None
|
|
855
|
+
)
|
|
856
|
+
description: Optional[str] = Field(default=None)
|
|
857
|
+
display_name: str = Field(alias="displayName")
|
|
858
|
+
ref_id: str = Field(alias="refId")
|
|
859
|
+
unit_transformation: Optional["FeatureFragmentUnitTransformation"] = Field(
|
|
860
|
+
alias="unitTransformation", default=None
|
|
861
|
+
)
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
class FeatureFragmentUnitTransformation(BaseModel):
|
|
865
|
+
divide: float
|
|
866
|
+
round: UnitTransformationRound
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
class EntitlementFragment(BaseModel):
|
|
870
|
+
typename__: str = Field(alias="__typename")
|
|
871
|
+
is_granted: bool = Field(alias="isGranted")
|
|
872
|
+
access_denied_reason: Optional[AccessDeniedReason] = Field(
|
|
873
|
+
alias="accessDeniedReason", default=None
|
|
874
|
+
)
|
|
875
|
+
customer_id: Optional[str] = Field(alias="customerId", default=None)
|
|
876
|
+
resource_id: Optional[str] = Field(alias="resourceId", default=None)
|
|
877
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
878
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
879
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
880
|
+
current_usage: Optional[float] = Field(alias="currentUsage", default=None)
|
|
881
|
+
requested_usage: Optional[float] = Field(alias="requestedUsage", default=None)
|
|
882
|
+
requested_values: Optional[List[str]] = Field(alias="requestedValues", default=None)
|
|
883
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
884
|
+
entitlement_updated_at: Optional[Any] = Field(
|
|
885
|
+
alias="entitlementUpdatedAt", default=None
|
|
886
|
+
)
|
|
887
|
+
usage_updated_at: Optional[Any] = Field(alias="usageUpdatedAt", default=None)
|
|
888
|
+
usage_period_anchor: Optional[Any] = Field(alias="usagePeriodAnchor", default=None)
|
|
889
|
+
usage_period_start: Optional[Any] = Field(alias="usagePeriodStart", default=None)
|
|
890
|
+
usage_period_end: Optional[Any] = Field(alias="usagePeriodEnd", default=None)
|
|
891
|
+
next_reset_date: Optional[Any] = Field(alias="nextResetDate", default=None)
|
|
892
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
893
|
+
alias="resetPeriod", default=None
|
|
894
|
+
)
|
|
895
|
+
reset_period_configuration: Optional[
|
|
896
|
+
Annotated[
|
|
897
|
+
Union[
|
|
898
|
+
"EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
|
|
899
|
+
"EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
|
|
900
|
+
"EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig",
|
|
901
|
+
],
|
|
902
|
+
Field(discriminator="typename__"),
|
|
903
|
+
]
|
|
904
|
+
] = Field(alias="resetPeriodConfiguration", default=None)
|
|
905
|
+
feature: Optional["EntitlementFragmentFeature"] = Field(default=None)
|
|
906
|
+
credit_rate: Optional["EntitlementFragmentCreditRate"] = Field(
|
|
907
|
+
alias="creditRate", default=None
|
|
908
|
+
)
|
|
909
|
+
valid_until: Optional[float] = Field(alias="validUntil", default=None)
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
class EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig(BaseModel):
|
|
913
|
+
typename__: Literal["MonthlyResetPeriodConfig"] = Field(alias="__typename")
|
|
914
|
+
monthly_according_to: Optional[MonthlyAccordingTo] = Field(
|
|
915
|
+
alias="monthlyAccordingTo", default=None
|
|
916
|
+
)
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
class EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig(BaseModel):
|
|
920
|
+
typename__: Literal["WeeklyResetPeriodConfig"] = Field(alias="__typename")
|
|
921
|
+
weekly_according_to: Optional[WeeklyAccordingTo] = Field(
|
|
922
|
+
alias="weeklyAccordingTo", default=None
|
|
923
|
+
)
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
class EntitlementFragmentResetPeriodConfigurationYearlyResetPeriodConfig(BaseModel):
|
|
927
|
+
typename__: Literal["YearlyResetPeriodConfig"] = Field(alias="__typename")
|
|
928
|
+
yearly_according_to: Optional[YearlyAccordingTo] = Field(
|
|
929
|
+
alias="yearlyAccordingTo", default=None
|
|
930
|
+
)
|
|
931
|
+
|
|
932
|
+
|
|
933
|
+
class EntitlementFragmentFeature(FeatureFragment):
|
|
934
|
+
pass
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
class EntitlementFragmentCreditRate(BaseModel):
|
|
938
|
+
amount: float
|
|
939
|
+
currency_id: str = Field(alias="currencyId")
|
|
940
|
+
|
|
941
|
+
|
|
942
942
|
class ApplySubscriptionFragment(BaseModel):
|
|
943
943
|
subscription: Optional["ApplySubscriptionFragmentSubscription"] = Field(
|
|
944
944
|
default=None
|
|
@@ -1016,8 +1016,33 @@ class CheckoutConfigurationFragmentContent(BaseModel):
|
|
|
1016
1016
|
)
|
|
1017
1017
|
|
|
1018
1018
|
|
|
1019
|
-
class
|
|
1020
|
-
|
|
1019
|
+
class PromotionalEntitlementFragment(BaseModel):
|
|
1020
|
+
status: PromotionalEntitlementStatus
|
|
1021
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1022
|
+
feature_id: Any = Field(alias="featureId")
|
|
1023
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1024
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1025
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1026
|
+
alias="resetPeriod", default=None
|
|
1027
|
+
)
|
|
1028
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1029
|
+
is_visible: bool = Field(alias="isVisible")
|
|
1030
|
+
feature: "PromotionalEntitlementFragmentFeature"
|
|
1031
|
+
|
|
1032
|
+
|
|
1033
|
+
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1034
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1035
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1036
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1037
|
+
feature_units_plural: Optional[str] = Field(
|
|
1038
|
+
alias="featureUnitsPlural", default=None
|
|
1039
|
+
)
|
|
1040
|
+
display_name: str = Field(alias="displayName")
|
|
1041
|
+
description: Optional[str] = Field(default=None)
|
|
1042
|
+
ref_id: str = Field(alias="refId")
|
|
1043
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1044
|
+
alias="additionalMetaData", default=None
|
|
1045
|
+
)
|
|
1021
1046
|
|
|
1022
1047
|
|
|
1023
1048
|
class CouponFragment(BaseModel):
|
|
@@ -1054,35 +1079,6 @@ class CouponFragmentSyncStates(BaseModel):
|
|
|
1054
1079
|
status: SyncStatus
|
|
1055
1080
|
|
|
1056
1081
|
|
|
1057
|
-
class PromotionalEntitlementFragment(BaseModel):
|
|
1058
|
-
status: PromotionalEntitlementStatus
|
|
1059
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1060
|
-
feature_id: Any = Field(alias="featureId")
|
|
1061
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1062
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1063
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1064
|
-
alias="resetPeriod", default=None
|
|
1065
|
-
)
|
|
1066
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1067
|
-
is_visible: bool = Field(alias="isVisible")
|
|
1068
|
-
feature: "PromotionalEntitlementFragmentFeature"
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1072
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1073
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1074
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1075
|
-
feature_units_plural: Optional[str] = Field(
|
|
1076
|
-
alias="featureUnitsPlural", default=None
|
|
1077
|
-
)
|
|
1078
|
-
display_name: str = Field(alias="displayName")
|
|
1079
|
-
description: Optional[str] = Field(default=None)
|
|
1080
|
-
ref_id: str = Field(alias="refId")
|
|
1081
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1082
|
-
alias="additionalMetaData", default=None
|
|
1083
|
-
)
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
1082
|
class CustomerFragment(SlimCustomerFragment):
|
|
1087
1083
|
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
1088
1084
|
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
@@ -1147,6 +1143,10 @@ class StripeCheckoutCredentialsFragment(BaseModel):
|
|
|
1147
1143
|
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1148
1144
|
|
|
1149
1145
|
|
|
1146
|
+
class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
1147
|
+
publishable_key: str = Field(alias="publishableKey")
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
1150
|
class CheckoutStateFragment(BaseModel):
|
|
1151
1151
|
configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
|
|
1152
1152
|
setup_secret: str = Field(alias="setupSecret")
|
|
@@ -1452,41 +1452,6 @@ class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
|
1452
1452
|
quantity: int
|
|
1453
1453
|
|
|
1454
1454
|
|
|
1455
|
-
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1456
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1457
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1458
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1459
|
-
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1460
|
-
default=None
|
|
1461
|
-
)
|
|
1462
|
-
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1463
|
-
alias="creditRate", default=None
|
|
1464
|
-
)
|
|
1465
|
-
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1466
|
-
default=None
|
|
1467
|
-
)
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1471
|
-
amount: float
|
|
1472
|
-
currency: Currency
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1476
|
-
amount: float
|
|
1477
|
-
currency_id: str = Field(alias="currencyId")
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1481
|
-
id: Any
|
|
1482
|
-
ref_id: str = Field(alias="refId")
|
|
1483
|
-
display_name: str = Field(alias="displayName")
|
|
1484
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1485
|
-
feature_units_plural: Optional[str] = Field(
|
|
1486
|
-
alias="featureUnitsPlural", default=None
|
|
1487
|
-
)
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
1455
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
1491
1456
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
1492
1457
|
alias="subscriptionScheduleType"
|
|
@@ -1656,6 +1621,41 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
|
|
|
1656
1621
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1657
1622
|
|
|
1658
1623
|
|
|
1624
|
+
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1625
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1626
|
+
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1627
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1628
|
+
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1629
|
+
default=None
|
|
1630
|
+
)
|
|
1631
|
+
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1632
|
+
alias="creditRate", default=None
|
|
1633
|
+
)
|
|
1634
|
+
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1635
|
+
default=None
|
|
1636
|
+
)
|
|
1637
|
+
|
|
1638
|
+
|
|
1639
|
+
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1640
|
+
amount: float
|
|
1641
|
+
currency: Currency
|
|
1642
|
+
|
|
1643
|
+
|
|
1644
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1645
|
+
amount: float
|
|
1646
|
+
currency_id: str = Field(alias="currencyId")
|
|
1647
|
+
|
|
1648
|
+
|
|
1649
|
+
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1650
|
+
id: Any
|
|
1651
|
+
ref_id: str = Field(alias="refId")
|
|
1652
|
+
display_name: str = Field(alias="displayName")
|
|
1653
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1654
|
+
feature_units_plural: Optional[str] = Field(
|
|
1655
|
+
alias="featureUnitsPlural", default=None
|
|
1656
|
+
)
|
|
1657
|
+
|
|
1658
|
+
|
|
1659
1659
|
class CustomerPortalSubscriptionFragment(BaseModel):
|
|
1660
1660
|
subscription_id: str = Field(alias="subscriptionId")
|
|
1661
1661
|
plan_id: str = Field(alias="planId")
|
|
@@ -3042,32 +3042,32 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
3042
3042
|
|
|
3043
3043
|
AddonDependencyFragment.model_rebuild()
|
|
3044
3044
|
PriceTierFragment.model_rebuild()
|
|
3045
|
-
OveragePriceFragment.model_rebuild()
|
|
3046
|
-
PackageEntitlementFragment.model_rebuild()
|
|
3047
3045
|
PriceFragment.model_rebuild()
|
|
3046
|
+
PackageEntitlementFragment.model_rebuild()
|
|
3047
|
+
OveragePriceFragment.model_rebuild()
|
|
3048
3048
|
AddonFragment.model_rebuild()
|
|
3049
|
-
|
|
3050
|
-
EntitlementFragment.model_rebuild()
|
|
3051
|
-
CustomerResourceFragment.model_rebuild()
|
|
3052
|
-
SubscriptionInvoiceFragment.model_rebuild()
|
|
3053
|
-
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
3054
|
-
SlimCustomerFragment.model_rebuild()
|
|
3049
|
+
TotalPriceFragment.model_rebuild()
|
|
3055
3050
|
SubscriptionScheduledUpdateData.model_rebuild()
|
|
3051
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
3052
|
+
SubscriptionInvoiceFragment.model_rebuild()
|
|
3053
|
+
CustomerResourceFragment.model_rebuild()
|
|
3056
3054
|
SubscriptionFutureUpdateData.model_rebuild()
|
|
3057
|
-
TotalPriceFragment.model_rebuild()
|
|
3058
3055
|
ProductFragment.model_rebuild()
|
|
3059
3056
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3060
3057
|
PlanFragment.model_rebuild()
|
|
3058
|
+
SlimCustomerFragment.model_rebuild()
|
|
3061
3059
|
SubscriptionFragment.model_rebuild()
|
|
3060
|
+
FeatureFragment.model_rebuild()
|
|
3061
|
+
EntitlementFragment.model_rebuild()
|
|
3062
3062
|
ApplySubscriptionFragment.model_rebuild()
|
|
3063
3063
|
FontVariantFragment.model_rebuild()
|
|
3064
3064
|
TypographyConfigurationFragment.model_rebuild()
|
|
3065
3065
|
CheckoutConfigurationFragment.model_rebuild()
|
|
3066
|
-
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
3067
|
-
CouponFragment.model_rebuild()
|
|
3068
3066
|
PromotionalEntitlementFragment.model_rebuild()
|
|
3067
|
+
CouponFragment.model_rebuild()
|
|
3069
3068
|
CustomerFragment.model_rebuild()
|
|
3070
3069
|
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
3070
|
+
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
3071
3071
|
CheckoutStateFragment.model_rebuild()
|
|
3072
3072
|
CreditBalanceFragment.model_rebuild()
|
|
3073
3073
|
CreditBalanceUpdatedPayload.model_rebuild()
|
|
@@ -3081,8 +3081,8 @@ CustomerPortalConfigurationFragment.model_rebuild()
|
|
|
3081
3081
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
3082
3082
|
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
3083
3083
|
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
3084
|
-
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
3085
3084
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
3085
|
+
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
3086
3086
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
3087
3087
|
CustomerPortalFragment.model_rebuild()
|
|
3088
3088
|
CustomerStatisticsFragment.model_rebuild()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: stigg-api-client-v2
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.124.1
|
|
4
4
|
Summary:
|
|
5
5
|
License: STIGG SDK LICENSE
|
|
6
6
|
Author: Stigg
|
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Requires-Dist: annotated-types (>=0.6)
|
|
15
15
|
Requires-Dist: httpx (>=0.23)
|
|
16
|
-
Requires-Dist: pydantic-core (>=2.16)
|
|
16
|
+
Requires-Dist: pydantic-core (>=2.16,<2.17)
|
|
17
17
|
Requires-Dist: tenacity (>=8.2.2,<9.0.0)
|
|
18
18
|
Description-Content-Type: text/markdown
|
|
19
19
|
|
|
@@ -124,7 +124,7 @@ stigg/generated/enums.py,sha256=yOboGgUVS7wmn812LV-fgQh478Ry3VtuFFl7G5cZe4U,4013
|
|
|
124
124
|
stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
|
|
125
125
|
stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
|
|
126
126
|
stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
|
|
127
|
-
stigg/generated/fragments.py,sha256=
|
|
127
|
+
stigg/generated/fragments.py,sha256=4TuI0y8lH4hyst_uohQzYRY_ekVYKBk3cSDgXm-axrk,111377
|
|
128
128
|
stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
|
|
129
129
|
stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
|
|
130
130
|
stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
|
|
@@ -172,7 +172,7 @@ stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0L
|
|
|
172
172
|
stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
|
|
173
173
|
stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
|
|
174
174
|
stigg/generated/void_credit_grant.py,sha256=uQ22Xb2vwMOJfqh48GU2fhZ6Dcv9nHNIx_UJpjmJSBU,410
|
|
175
|
-
stigg_api_client_v2-3.
|
|
176
|
-
stigg_api_client_v2-3.
|
|
177
|
-
stigg_api_client_v2-3.
|
|
178
|
-
stigg_api_client_v2-3.
|
|
175
|
+
stigg_api_client_v2-3.124.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
176
|
+
stigg_api_client_v2-3.124.1.dist-info/METADATA,sha256=YxbStX3JSy2zYbj_MdaZ75LKGHbDNw3YX0J5vyCQyDA,2264
|
|
177
|
+
stigg_api_client_v2-3.124.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
178
|
+
stigg_api_client_v2-3.124.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|