stigg-api-client-v2 3.81.0__py3-none-any.whl → 3.84.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/__init__.py +10 -0
- stigg/generated/async_client.py +82 -0
- stigg/generated/client.py +82 -0
- stigg/generated/enums.py +5 -0
- stigg/generated/fragments.py +288 -288
- stigg/generated/get_entitlements_state.py +31 -0
- {stigg_api_client_v2-3.81.0.dist-info → stigg_api_client_v2-3.84.1.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.81.0.dist-info → stigg_api_client_v2-3.84.1.dist-info}/RECORD +10 -9
- {stigg_api_client_v2-3.81.0.dist-info → stigg_api_client_v2-3.84.1.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.81.0.dist-info → stigg_api_client_v2-3.84.1.dist-info}/WHEEL +0 -0
stigg/generated/__init__.py
CHANGED
|
@@ -59,6 +59,7 @@ from .enums import (
|
|
|
59
59
|
DiscountType,
|
|
60
60
|
EntitlementBehavior,
|
|
61
61
|
EntitlementResetPeriod,
|
|
62
|
+
EntitlementsStateAccessDeniedReason,
|
|
62
63
|
EntitySelectionMode,
|
|
63
64
|
EnvironmentAccessRole,
|
|
64
65
|
EnvironmentProvisionStatus,
|
|
@@ -559,6 +560,11 @@ from .get_customer_statistics import (
|
|
|
559
560
|
)
|
|
560
561
|
from .get_entitlement import GetEntitlement, GetEntitlementEntitlement
|
|
561
562
|
from .get_entitlements import GetEntitlements, GetEntitlementsEntitlements
|
|
563
|
+
from .get_entitlements_state import (
|
|
564
|
+
GetEntitlementsState,
|
|
565
|
+
GetEntitlementsStateEntitlementsState,
|
|
566
|
+
GetEntitlementsStateEntitlementsStateEntitlements,
|
|
567
|
+
)
|
|
562
568
|
from .get_mock_paywall import (
|
|
563
569
|
GetMockPaywall,
|
|
564
570
|
GetMockPaywallMockPaywall,
|
|
@@ -1311,6 +1317,7 @@ __all__ = [
|
|
|
1311
1317
|
"EntitlementUsageUpdated",
|
|
1312
1318
|
"EntitlementUsageUpdatedEntitlement",
|
|
1313
1319
|
"EntitlementUsageUpdatedUsage",
|
|
1320
|
+
"EntitlementsStateAccessDeniedReason",
|
|
1314
1321
|
"EntitlementsUpdatedPayload",
|
|
1315
1322
|
"EntitlementsUpdatedPayloadEntitlements",
|
|
1316
1323
|
"EntitySelectionMode",
|
|
@@ -1400,6 +1407,9 @@ __all__ = [
|
|
|
1400
1407
|
"GetEntitlementEntitlement",
|
|
1401
1408
|
"GetEntitlements",
|
|
1402
1409
|
"GetEntitlementsEntitlements",
|
|
1410
|
+
"GetEntitlementsState",
|
|
1411
|
+
"GetEntitlementsStateEntitlementsState",
|
|
1412
|
+
"GetEntitlementsStateEntitlementsStateEntitlements",
|
|
1403
1413
|
"GetMockPaywall",
|
|
1404
1414
|
"GetMockPaywallMockPaywall",
|
|
1405
1415
|
"GetMockPaywallMockPaywallConfiguration",
|
stigg/generated/async_client.py
CHANGED
|
@@ -26,6 +26,7 @@ from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
|
|
|
26
26
|
from .get_customer_statistics import GetCustomerStatistics
|
|
27
27
|
from .get_entitlement import GetEntitlement
|
|
28
28
|
from .get_entitlements import GetEntitlements
|
|
29
|
+
from .get_entitlements_state import GetEntitlementsState
|
|
29
30
|
from .get_mock_paywall import GetMockPaywall
|
|
30
31
|
from .get_paywall import GetPaywall
|
|
31
32
|
from .get_products import GetProducts
|
|
@@ -5286,6 +5287,87 @@ class AsyncClient(AsyncBaseClient):
|
|
|
5286
5287
|
data = self.get_data(response)
|
|
5287
5288
|
return GetEntitlements.model_validate(data)
|
|
5288
5289
|
|
|
5290
|
+
async def get_entitlements_state(
|
|
5291
|
+
self, input: FetchEntitlementsQuery, **kwargs: Any
|
|
5292
|
+
) -> GetEntitlementsState:
|
|
5293
|
+
_query = gql(
|
|
5294
|
+
"""
|
|
5295
|
+
query GetEntitlementsState($query: FetchEntitlementsQuery!) {
|
|
5296
|
+
entitlementsState(query: $query) {
|
|
5297
|
+
entitlements {
|
|
5298
|
+
...EntitlementFragment
|
|
5299
|
+
}
|
|
5300
|
+
accessDeniedReason
|
|
5301
|
+
}
|
|
5302
|
+
}
|
|
5303
|
+
|
|
5304
|
+
fragment EntitlementFragment on Entitlement {
|
|
5305
|
+
__typename
|
|
5306
|
+
isGranted
|
|
5307
|
+
accessDeniedReason
|
|
5308
|
+
customerId
|
|
5309
|
+
resourceId
|
|
5310
|
+
usageLimit
|
|
5311
|
+
hasUnlimitedUsage
|
|
5312
|
+
hasSoftLimit
|
|
5313
|
+
currentUsage
|
|
5314
|
+
requestedUsage
|
|
5315
|
+
requestedValues
|
|
5316
|
+
enumValues
|
|
5317
|
+
entitlementUpdatedAt
|
|
5318
|
+
usageUpdatedAt
|
|
5319
|
+
usagePeriodAnchor
|
|
5320
|
+
usagePeriodStart
|
|
5321
|
+
usagePeriodEnd
|
|
5322
|
+
nextResetDate
|
|
5323
|
+
resetPeriod
|
|
5324
|
+
resetPeriodConfiguration {
|
|
5325
|
+
...ResetPeriodConfigurationFragment
|
|
5326
|
+
}
|
|
5327
|
+
feature {
|
|
5328
|
+
...FeatureFragment
|
|
5329
|
+
}
|
|
5330
|
+
}
|
|
5331
|
+
|
|
5332
|
+
fragment FeatureFragment on EntitlementFeature {
|
|
5333
|
+
__typename
|
|
5334
|
+
featureType
|
|
5335
|
+
meterType
|
|
5336
|
+
featureUnits
|
|
5337
|
+
featureUnitsPlural
|
|
5338
|
+
description
|
|
5339
|
+
displayName
|
|
5340
|
+
refId
|
|
5341
|
+
unitTransformation {
|
|
5342
|
+
divide
|
|
5343
|
+
round
|
|
5344
|
+
}
|
|
5345
|
+
}
|
|
5346
|
+
|
|
5347
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
5348
|
+
__typename
|
|
5349
|
+
... on YearlyResetPeriodConfig {
|
|
5350
|
+
yearlyAccordingTo
|
|
5351
|
+
}
|
|
5352
|
+
... on MonthlyResetPeriodConfig {
|
|
5353
|
+
monthlyAccordingTo
|
|
5354
|
+
}
|
|
5355
|
+
... on WeeklyResetPeriodConfig {
|
|
5356
|
+
weeklyAccordingTo
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
"""
|
|
5360
|
+
)
|
|
5361
|
+
variables: Dict[str, object] = {"query": input}
|
|
5362
|
+
response = await self.execute(
|
|
5363
|
+
query=_query,
|
|
5364
|
+
operation_name="GetEntitlementsState",
|
|
5365
|
+
variables=variables,
|
|
5366
|
+
**kwargs
|
|
5367
|
+
)
|
|
5368
|
+
data = self.get_data(response)
|
|
5369
|
+
return GetEntitlementsState.model_validate(data)
|
|
5370
|
+
|
|
5289
5371
|
async def get_entitlement(
|
|
5290
5372
|
self, input: FetchEntitlementQuery, **kwargs: Any
|
|
5291
5373
|
) -> GetEntitlement:
|
stigg/generated/client.py
CHANGED
|
@@ -26,6 +26,7 @@ from .get_customer_portal_by_ref_id import GetCustomerPortalByRefId
|
|
|
26
26
|
from .get_customer_statistics import GetCustomerStatistics
|
|
27
27
|
from .get_entitlement import GetEntitlement
|
|
28
28
|
from .get_entitlements import GetEntitlements
|
|
29
|
+
from .get_entitlements_state import GetEntitlementsState
|
|
29
30
|
from .get_mock_paywall import GetMockPaywall
|
|
30
31
|
from .get_paywall import GetPaywall
|
|
31
32
|
from .get_products import GetProducts
|
|
@@ -5282,6 +5283,87 @@ class Client(BaseClient):
|
|
|
5282
5283
|
data = self.get_data(response)
|
|
5283
5284
|
return GetEntitlements.model_validate(data)
|
|
5284
5285
|
|
|
5286
|
+
def get_entitlements_state(
|
|
5287
|
+
self, input: FetchEntitlementsQuery, **kwargs: Any
|
|
5288
|
+
) -> GetEntitlementsState:
|
|
5289
|
+
_query = gql(
|
|
5290
|
+
"""
|
|
5291
|
+
query GetEntitlementsState($query: FetchEntitlementsQuery!) {
|
|
5292
|
+
entitlementsState(query: $query) {
|
|
5293
|
+
entitlements {
|
|
5294
|
+
...EntitlementFragment
|
|
5295
|
+
}
|
|
5296
|
+
accessDeniedReason
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
|
|
5300
|
+
fragment EntitlementFragment on Entitlement {
|
|
5301
|
+
__typename
|
|
5302
|
+
isGranted
|
|
5303
|
+
accessDeniedReason
|
|
5304
|
+
customerId
|
|
5305
|
+
resourceId
|
|
5306
|
+
usageLimit
|
|
5307
|
+
hasUnlimitedUsage
|
|
5308
|
+
hasSoftLimit
|
|
5309
|
+
currentUsage
|
|
5310
|
+
requestedUsage
|
|
5311
|
+
requestedValues
|
|
5312
|
+
enumValues
|
|
5313
|
+
entitlementUpdatedAt
|
|
5314
|
+
usageUpdatedAt
|
|
5315
|
+
usagePeriodAnchor
|
|
5316
|
+
usagePeriodStart
|
|
5317
|
+
usagePeriodEnd
|
|
5318
|
+
nextResetDate
|
|
5319
|
+
resetPeriod
|
|
5320
|
+
resetPeriodConfiguration {
|
|
5321
|
+
...ResetPeriodConfigurationFragment
|
|
5322
|
+
}
|
|
5323
|
+
feature {
|
|
5324
|
+
...FeatureFragment
|
|
5325
|
+
}
|
|
5326
|
+
}
|
|
5327
|
+
|
|
5328
|
+
fragment FeatureFragment on EntitlementFeature {
|
|
5329
|
+
__typename
|
|
5330
|
+
featureType
|
|
5331
|
+
meterType
|
|
5332
|
+
featureUnits
|
|
5333
|
+
featureUnitsPlural
|
|
5334
|
+
description
|
|
5335
|
+
displayName
|
|
5336
|
+
refId
|
|
5337
|
+
unitTransformation {
|
|
5338
|
+
divide
|
|
5339
|
+
round
|
|
5340
|
+
}
|
|
5341
|
+
}
|
|
5342
|
+
|
|
5343
|
+
fragment ResetPeriodConfigurationFragment on ResetPeriodConfiguration {
|
|
5344
|
+
__typename
|
|
5345
|
+
... on YearlyResetPeriodConfig {
|
|
5346
|
+
yearlyAccordingTo
|
|
5347
|
+
}
|
|
5348
|
+
... on MonthlyResetPeriodConfig {
|
|
5349
|
+
monthlyAccordingTo
|
|
5350
|
+
}
|
|
5351
|
+
... on WeeklyResetPeriodConfig {
|
|
5352
|
+
weeklyAccordingTo
|
|
5353
|
+
}
|
|
5354
|
+
}
|
|
5355
|
+
"""
|
|
5356
|
+
)
|
|
5357
|
+
variables: Dict[str, object] = {"query": input}
|
|
5358
|
+
response = self.execute(
|
|
5359
|
+
query=_query,
|
|
5360
|
+
operation_name="GetEntitlementsState",
|
|
5361
|
+
variables=variables,
|
|
5362
|
+
**kwargs
|
|
5363
|
+
)
|
|
5364
|
+
data = self.get_data(response)
|
|
5365
|
+
return GetEntitlementsState.model_validate(data)
|
|
5366
|
+
|
|
5285
5367
|
def get_entitlement(
|
|
5286
5368
|
self, input: FetchEntitlementQuery, **kwargs: Any
|
|
5287
5369
|
) -> GetEntitlement:
|
stigg/generated/enums.py
CHANGED
|
@@ -377,6 +377,11 @@ class EntitlementResetPeriod(str, Enum):
|
|
|
377
377
|
YEAR = "YEAR"
|
|
378
378
|
|
|
379
379
|
|
|
380
|
+
class EntitlementsStateAccessDeniedReason(str, Enum):
|
|
381
|
+
CustomerNotFound = "CustomerNotFound"
|
|
382
|
+
NoActiveSubscription = "NoActiveSubscription"
|
|
383
|
+
|
|
384
|
+
|
|
380
385
|
class EntitySelectionMode(str, Enum):
|
|
381
386
|
BLACK_LIST = "BLACK_LIST"
|
|
382
387
|
WHITE_LIST = "WHITE_LIST"
|
stigg/generated/fragments.py
CHANGED
|
@@ -81,41 +81,29 @@ class PriceTierFragmentFlatPrice(BaseModel):
|
|
|
81
81
|
currency: Currency
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class OveragePriceFragment(BaseModel):
|
|
85
85
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
86
86
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
87
|
-
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
88
87
|
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
89
|
-
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
90
|
-
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
91
88
|
billing_country_code: Optional[str] = Field(
|
|
92
89
|
alias="billingCountryCode", default=None
|
|
93
90
|
)
|
|
94
|
-
price: Optional["
|
|
95
|
-
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
96
|
-
alias="creditRate", default=None
|
|
97
|
-
)
|
|
91
|
+
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
98
92
|
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
99
|
-
tiers: Optional[List["
|
|
100
|
-
feature: Optional["
|
|
101
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
93
|
+
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
94
|
+
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
102
95
|
|
|
103
96
|
|
|
104
|
-
class
|
|
97
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
105
98
|
amount: float
|
|
106
99
|
currency: Currency
|
|
107
100
|
|
|
108
101
|
|
|
109
|
-
class
|
|
110
|
-
amount: float
|
|
111
|
-
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
class PriceFragmentTiers(PriceTierFragment):
|
|
102
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
115
103
|
pass
|
|
116
104
|
|
|
117
105
|
|
|
118
|
-
class
|
|
106
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
119
107
|
ref_id: str = Field(alias="refId")
|
|
120
108
|
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
121
109
|
feature_units_plural: Optional[str] = Field(
|
|
@@ -160,29 +148,41 @@ class PackageEntitlementFragmentFeature(BaseModel):
|
|
|
160
148
|
)
|
|
161
149
|
|
|
162
150
|
|
|
163
|
-
class
|
|
151
|
+
class PriceFragment(BaseModel):
|
|
164
152
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
165
153
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
154
|
+
billing_cadence: BillingCadence = Field(alias="billingCadence")
|
|
166
155
|
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
156
|
+
min_unit_quantity: Optional[float] = Field(alias="minUnitQuantity", default=None)
|
|
157
|
+
max_unit_quantity: Optional[float] = Field(alias="maxUnitQuantity", default=None)
|
|
167
158
|
billing_country_code: Optional[str] = Field(
|
|
168
159
|
alias="billingCountryCode", default=None
|
|
169
160
|
)
|
|
170
|
-
price: Optional["
|
|
161
|
+
price: Optional["PriceFragmentPrice"] = Field(default=None)
|
|
162
|
+
credit_rate: Optional["PriceFragmentCreditRate"] = Field(
|
|
163
|
+
alias="creditRate", default=None
|
|
164
|
+
)
|
|
171
165
|
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
172
|
-
tiers: Optional[List["
|
|
173
|
-
feature: Optional["
|
|
166
|
+
tiers: Optional[List["PriceFragmentTiers"]] = Field(default=None)
|
|
167
|
+
feature: Optional["PriceFragmentFeature"] = Field(default=None)
|
|
168
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
174
169
|
|
|
175
170
|
|
|
176
|
-
class
|
|
171
|
+
class PriceFragmentPrice(BaseModel):
|
|
177
172
|
amount: float
|
|
178
173
|
currency: Currency
|
|
179
174
|
|
|
180
175
|
|
|
181
|
-
class
|
|
176
|
+
class PriceFragmentCreditRate(BaseModel):
|
|
177
|
+
amount: float
|
|
178
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
class PriceFragmentTiers(PriceTierFragment):
|
|
182
182
|
pass
|
|
183
183
|
|
|
184
184
|
|
|
185
|
-
class
|
|
185
|
+
class PriceFragmentFeature(BaseModel):
|
|
186
186
|
ref_id: str = Field(alias="refId")
|
|
187
187
|
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
188
188
|
feature_units_plural: Optional[str] = Field(
|
|
@@ -315,42 +315,6 @@ class EntitlementFragmentFeature(FeatureFragment):
|
|
|
315
315
|
pass
|
|
316
316
|
|
|
317
317
|
|
|
318
|
-
class SlimCustomerFragment(BaseModel):
|
|
319
|
-
id: Any
|
|
320
|
-
name: Optional[str] = Field(default=None)
|
|
321
|
-
email: Optional[str] = Field(default=None)
|
|
322
|
-
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
323
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
324
|
-
ref_id: str = Field(alias="refId")
|
|
325
|
-
customer_id: str = Field(alias="customerId")
|
|
326
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
327
|
-
additional_meta_data: Optional[Any] = Field(
|
|
328
|
-
alias="additionalMetaData", default=None
|
|
329
|
-
)
|
|
330
|
-
aws_marketplace_customer_id: Optional[str] = Field(
|
|
331
|
-
alias="awsMarketplaceCustomerId", default=None
|
|
332
|
-
)
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
class CustomerResourceFragment(BaseModel):
|
|
336
|
-
resource_id: str = Field(alias="resourceId")
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
class TotalPriceFragment(BaseModel):
|
|
340
|
-
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
341
|
-
total: "TotalPriceFragmentTotal"
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
class TotalPriceFragmentSubTotal(BaseModel):
|
|
345
|
-
amount: float
|
|
346
|
-
currency: Currency
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
class TotalPriceFragmentTotal(BaseModel):
|
|
350
|
-
amount: float
|
|
351
|
-
currency: Currency
|
|
352
|
-
|
|
353
|
-
|
|
354
318
|
class SubscriptionInvoiceFragment(BaseModel):
|
|
355
319
|
billing_id: str = Field(alias="billingId")
|
|
356
320
|
status: SubscriptionInvoiceStatus
|
|
@@ -379,126 +343,23 @@ class SubscriptionInvoiceFragment(BaseModel):
|
|
|
379
343
|
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
380
344
|
|
|
381
345
|
|
|
382
|
-
class
|
|
383
|
-
package_group_id: str = Field(alias="packageGroupId")
|
|
384
|
-
display_name: str = Field(alias="displayName")
|
|
385
|
-
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
386
|
-
default=None
|
|
387
|
-
)
|
|
388
|
-
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
392
|
-
pass
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
396
|
-
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
397
|
-
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
class ProductFragment(BaseModel):
|
|
401
|
-
ref_id: str = Field(alias="refId")
|
|
402
|
-
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
403
|
-
description: Optional[str] = Field(default=None)
|
|
404
|
-
additional_meta_data: Optional[Any] = Field(
|
|
405
|
-
alias="additionalMetaData", default=None
|
|
406
|
-
)
|
|
407
|
-
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
class ProductFragmentProductSettings(BaseModel):
|
|
411
|
-
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
412
|
-
alias="downgradePlan", default=None
|
|
413
|
-
)
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
417
|
-
ref_id: str = Field(alias="refId")
|
|
418
|
-
display_name: str = Field(alias="displayName")
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
class PlanFragment(BaseModel):
|
|
346
|
+
class SlimCustomerFragment(BaseModel):
|
|
422
347
|
id: Any
|
|
348
|
+
name: Optional[str] = Field(default=None)
|
|
349
|
+
email: Optional[str] = Field(default=None)
|
|
350
|
+
created_at: Optional[Any] = Field(alias="createdAt", default=None)
|
|
351
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
423
352
|
ref_id: str = Field(alias="refId")
|
|
424
|
-
|
|
425
|
-
description: Optional[str] = Field(default=None)
|
|
353
|
+
customer_id: str = Field(alias="customerId")
|
|
426
354
|
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
427
|
-
version_number: int = Field(alias="versionNumber")
|
|
428
355
|
additional_meta_data: Optional[Any] = Field(
|
|
429
356
|
alias="additionalMetaData", default=None
|
|
430
357
|
)
|
|
431
|
-
|
|
432
|
-
alias="
|
|
433
|
-
)
|
|
434
|
-
product: "PlanFragmentProduct"
|
|
435
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
436
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
437
|
-
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
438
|
-
alias="inheritedEntitlements", default=None
|
|
439
|
-
)
|
|
440
|
-
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
441
|
-
alias="compatibleAddons", default=None
|
|
442
|
-
)
|
|
443
|
-
compatible_package_groups: Optional[
|
|
444
|
-
List["PlanFragmentCompatiblePackageGroups"]
|
|
445
|
-
] = Field(alias="compatiblePackageGroups", default=None)
|
|
446
|
-
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
447
|
-
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
448
|
-
alias="overagePrices", default=None
|
|
449
|
-
)
|
|
450
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
451
|
-
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
452
|
-
alias="defaultTrialConfig", default=None
|
|
453
|
-
)
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
class PlanFragmentProduct(ProductFragment):
|
|
457
|
-
pass
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
class PlanFragmentBasePlan(BaseModel):
|
|
461
|
-
ref_id: str = Field(alias="refId")
|
|
462
|
-
display_name: str = Field(alias="displayName")
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
466
|
-
pass
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
470
|
-
pass
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
474
|
-
pass
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
478
|
-
pass
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
class PlanFragmentPrices(PriceFragment):
|
|
482
|
-
pass
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
486
|
-
pass
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
490
|
-
duration: float
|
|
491
|
-
units: TrialPeriodUnits
|
|
492
|
-
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
493
|
-
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
494
|
-
alias="trialEndBehavior", default=None
|
|
358
|
+
aws_marketplace_customer_id: Optional[str] = Field(
|
|
359
|
+
alias="awsMarketplaceCustomerId", default=None
|
|
495
360
|
)
|
|
496
361
|
|
|
497
362
|
|
|
498
|
-
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
499
|
-
limit: float
|
|
500
|
-
|
|
501
|
-
|
|
502
363
|
class SubscriptionScheduledUpdateData(BaseModel):
|
|
503
364
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
504
365
|
alias="subscriptionScheduleType"
|
|
@@ -661,6 +522,126 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
661
522
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
662
523
|
|
|
663
524
|
|
|
525
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
526
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
527
|
+
display_name: str = Field(alias="displayName")
|
|
528
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
529
|
+
default=None
|
|
530
|
+
)
|
|
531
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
535
|
+
pass
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
539
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
540
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
class ProductFragment(BaseModel):
|
|
544
|
+
ref_id: str = Field(alias="refId")
|
|
545
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
546
|
+
description: Optional[str] = Field(default=None)
|
|
547
|
+
additional_meta_data: Optional[Any] = Field(
|
|
548
|
+
alias="additionalMetaData", default=None
|
|
549
|
+
)
|
|
550
|
+
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
551
|
+
|
|
552
|
+
|
|
553
|
+
class ProductFragmentProductSettings(BaseModel):
|
|
554
|
+
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
555
|
+
alias="downgradePlan", default=None
|
|
556
|
+
)
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
560
|
+
ref_id: str = Field(alias="refId")
|
|
561
|
+
display_name: str = Field(alias="displayName")
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
class PlanFragment(BaseModel):
|
|
565
|
+
id: Any
|
|
566
|
+
ref_id: str = Field(alias="refId")
|
|
567
|
+
display_name: str = Field(alias="displayName")
|
|
568
|
+
description: Optional[str] = Field(default=None)
|
|
569
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
570
|
+
version_number: int = Field(alias="versionNumber")
|
|
571
|
+
additional_meta_data: Optional[Any] = Field(
|
|
572
|
+
alias="additionalMetaData", default=None
|
|
573
|
+
)
|
|
574
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
575
|
+
alias="hiddenFromWidgets", default=None
|
|
576
|
+
)
|
|
577
|
+
product: "PlanFragmentProduct"
|
|
578
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
579
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
580
|
+
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
581
|
+
alias="inheritedEntitlements", default=None
|
|
582
|
+
)
|
|
583
|
+
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
584
|
+
alias="compatibleAddons", default=None
|
|
585
|
+
)
|
|
586
|
+
compatible_package_groups: Optional[
|
|
587
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
588
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
589
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
590
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
591
|
+
alias="overagePrices", default=None
|
|
592
|
+
)
|
|
593
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
594
|
+
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
595
|
+
alias="defaultTrialConfig", default=None
|
|
596
|
+
)
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
class PlanFragmentProduct(ProductFragment):
|
|
600
|
+
pass
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
class PlanFragmentBasePlan(BaseModel):
|
|
604
|
+
ref_id: str = Field(alias="refId")
|
|
605
|
+
display_name: str = Field(alias="displayName")
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
609
|
+
pass
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
613
|
+
pass
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
617
|
+
pass
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
621
|
+
pass
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
class PlanFragmentPrices(PriceFragment):
|
|
625
|
+
pass
|
|
626
|
+
|
|
627
|
+
|
|
628
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
629
|
+
pass
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
633
|
+
duration: float
|
|
634
|
+
units: TrialPeriodUnits
|
|
635
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
636
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
637
|
+
alias="trialEndBehavior", default=None
|
|
638
|
+
)
|
|
639
|
+
|
|
640
|
+
|
|
641
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
642
|
+
limit: float
|
|
643
|
+
|
|
644
|
+
|
|
664
645
|
class SubscriptionFutureUpdateData(BaseModel):
|
|
665
646
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
666
647
|
alias="subscriptionScheduleType"
|
|
@@ -815,6 +796,25 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
815
796
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
816
797
|
|
|
817
798
|
|
|
799
|
+
class CustomerResourceFragment(BaseModel):
|
|
800
|
+
resource_id: str = Field(alias="resourceId")
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
class TotalPriceFragment(BaseModel):
|
|
804
|
+
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
805
|
+
total: "TotalPriceFragmentTotal"
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
class TotalPriceFragmentSubTotal(BaseModel):
|
|
809
|
+
amount: float
|
|
810
|
+
currency: Currency
|
|
811
|
+
|
|
812
|
+
|
|
813
|
+
class TotalPriceFragmentTotal(BaseModel):
|
|
814
|
+
amount: float
|
|
815
|
+
currency: Currency
|
|
816
|
+
|
|
817
|
+
|
|
818
818
|
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
819
819
|
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
820
820
|
|
|
@@ -1009,6 +1009,41 @@ class ZuoraCheckoutCredentialsFragment(BaseModel):
|
|
|
1009
1009
|
publishable_key: str = Field(alias="publishableKey")
|
|
1010
1010
|
|
|
1011
1011
|
|
|
1012
|
+
class StripeCheckoutCredentialsFragment(BaseModel):
|
|
1013
|
+
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1014
|
+
setup_secret: str = Field(alias="setupSecret")
|
|
1015
|
+
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
class PromotionalEntitlementFragment(BaseModel):
|
|
1019
|
+
status: PromotionalEntitlementStatus
|
|
1020
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1021
|
+
feature_id: Any = Field(alias="featureId")
|
|
1022
|
+
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1023
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1024
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1025
|
+
alias="resetPeriod", default=None
|
|
1026
|
+
)
|
|
1027
|
+
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1028
|
+
is_visible: bool = Field(alias="isVisible")
|
|
1029
|
+
feature: "PromotionalEntitlementFragmentFeature"
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1033
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1034
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1035
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1036
|
+
feature_units_plural: Optional[str] = Field(
|
|
1037
|
+
alias="featureUnitsPlural", default=None
|
|
1038
|
+
)
|
|
1039
|
+
display_name: str = Field(alias="displayName")
|
|
1040
|
+
description: Optional[str] = Field(default=None)
|
|
1041
|
+
ref_id: str = Field(alias="refId")
|
|
1042
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1043
|
+
alias="additionalMetaData", default=None
|
|
1044
|
+
)
|
|
1045
|
+
|
|
1046
|
+
|
|
1012
1047
|
class CouponFragment(BaseModel):
|
|
1013
1048
|
id: Any
|
|
1014
1049
|
discount_value: float = Field(alias="discountValue")
|
|
@@ -1043,35 +1078,6 @@ class CouponFragmentSyncStates(BaseModel):
|
|
|
1043
1078
|
status: SyncStatus
|
|
1044
1079
|
|
|
1045
1080
|
|
|
1046
|
-
class PromotionalEntitlementFragment(BaseModel):
|
|
1047
|
-
status: PromotionalEntitlementStatus
|
|
1048
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1049
|
-
feature_id: Any = Field(alias="featureId")
|
|
1050
|
-
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
1051
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1052
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1053
|
-
alias="resetPeriod", default=None
|
|
1054
|
-
)
|
|
1055
|
-
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
1056
|
-
is_visible: bool = Field(alias="isVisible")
|
|
1057
|
-
feature: "PromotionalEntitlementFragmentFeature"
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
class PromotionalEntitlementFragmentFeature(BaseModel):
|
|
1061
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1062
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1063
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1064
|
-
feature_units_plural: Optional[str] = Field(
|
|
1065
|
-
alias="featureUnitsPlural", default=None
|
|
1066
|
-
)
|
|
1067
|
-
display_name: str = Field(alias="displayName")
|
|
1068
|
-
description: Optional[str] = Field(default=None)
|
|
1069
|
-
ref_id: str = Field(alias="refId")
|
|
1070
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1071
|
-
alias="additionalMetaData", default=None
|
|
1072
|
-
)
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
1081
|
class CustomerFragment(SlimCustomerFragment):
|
|
1076
1082
|
has_payment_method: bool = Field(alias="hasPaymentMethod")
|
|
1077
1083
|
has_active_subscription: bool = Field(alias="hasActiveSubscription")
|
|
@@ -1130,12 +1136,6 @@ class CustomerFragmentPromotionalEntitlements(PromotionalEntitlementFragment):
|
|
|
1130
1136
|
pass
|
|
1131
1137
|
|
|
1132
1138
|
|
|
1133
|
-
class StripeCheckoutCredentialsFragment(BaseModel):
|
|
1134
|
-
account_id: Optional[str] = Field(alias="accountId", default=None)
|
|
1135
|
-
setup_secret: str = Field(alias="setupSecret")
|
|
1136
|
-
public_key: Optional[str] = Field(alias="publicKey", default=None)
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
1139
|
class CheckoutStateFragment(BaseModel):
|
|
1140
1140
|
configuration: Optional["CheckoutStateFragmentConfiguration"] = Field(default=None)
|
|
1141
1141
|
setup_secret: str = Field(alias="setupSecret")
|
|
@@ -1352,41 +1352,6 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
|
1352
1352
|
pass
|
|
1353
1353
|
|
|
1354
1354
|
|
|
1355
|
-
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1356
|
-
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1357
|
-
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1358
|
-
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1359
|
-
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1360
|
-
default=None
|
|
1361
|
-
)
|
|
1362
|
-
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1363
|
-
alias="creditRate", default=None
|
|
1364
|
-
)
|
|
1365
|
-
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1366
|
-
default=None
|
|
1367
|
-
)
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1371
|
-
amount: float
|
|
1372
|
-
currency: Currency
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1376
|
-
amount: float
|
|
1377
|
-
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1381
|
-
id: Any
|
|
1382
|
-
ref_id: str = Field(alias="refId")
|
|
1383
|
-
display_name: str = Field(alias="displayName")
|
|
1384
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1385
|
-
feature_units_plural: Optional[str] = Field(
|
|
1386
|
-
alias="featureUnitsPlural", default=None
|
|
1387
|
-
)
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
1355
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
1391
1356
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
1392
1357
|
alias="subscriptionScheduleType"
|
|
@@ -1556,6 +1521,41 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
|
|
|
1556
1521
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1557
1522
|
|
|
1558
1523
|
|
|
1524
|
+
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1525
|
+
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1526
|
+
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
1527
|
+
block_size: Optional[float] = Field(alias="blockSize", default=None)
|
|
1528
|
+
price: Optional["CustomerPortalSubscriptionPriceFragmentPrice"] = Field(
|
|
1529
|
+
default=None
|
|
1530
|
+
)
|
|
1531
|
+
credit_rate: Optional["CustomerPortalSubscriptionPriceFragmentCreditRate"] = Field(
|
|
1532
|
+
alias="creditRate", default=None
|
|
1533
|
+
)
|
|
1534
|
+
feature: Optional["CustomerPortalSubscriptionPriceFragmentFeature"] = Field(
|
|
1535
|
+
default=None
|
|
1536
|
+
)
|
|
1537
|
+
|
|
1538
|
+
|
|
1539
|
+
class CustomerPortalSubscriptionPriceFragmentPrice(BaseModel):
|
|
1540
|
+
amount: float
|
|
1541
|
+
currency: Currency
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
class CustomerPortalSubscriptionPriceFragmentCreditRate(BaseModel):
|
|
1545
|
+
amount: float
|
|
1546
|
+
custom_currency_id: Any = Field(alias="customCurrencyId")
|
|
1547
|
+
|
|
1548
|
+
|
|
1549
|
+
class CustomerPortalSubscriptionPriceFragmentFeature(BaseModel):
|
|
1550
|
+
id: Any
|
|
1551
|
+
ref_id: str = Field(alias="refId")
|
|
1552
|
+
display_name: str = Field(alias="displayName")
|
|
1553
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1554
|
+
feature_units_plural: Optional[str] = Field(
|
|
1555
|
+
alias="featureUnitsPlural", default=None
|
|
1556
|
+
)
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
1559
|
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
1560
1560
|
addon_id: str = Field(alias="addonId")
|
|
1561
1561
|
description: Optional[str] = Field(default=None)
|
|
@@ -1904,41 +1904,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
|
|
|
1904
1904
|
description: Optional[str] = Field(default=None)
|
|
1905
1905
|
|
|
1906
1906
|
|
|
1907
|
-
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1908
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1909
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1910
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1911
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1912
|
-
alias="resetPeriod", default=None
|
|
1913
|
-
)
|
|
1914
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1915
|
-
alias="hiddenFromWidgets", default=None
|
|
1916
|
-
)
|
|
1917
|
-
display_name_override: Optional[str] = Field(
|
|
1918
|
-
alias="displayNameOverride", default=None
|
|
1919
|
-
)
|
|
1920
|
-
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
1921
|
-
is_granted: bool = Field(alias="isGranted")
|
|
1922
|
-
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1923
|
-
default=None
|
|
1924
|
-
)
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1928
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1929
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1930
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1931
|
-
feature_units_plural: Optional[str] = Field(
|
|
1932
|
-
alias="featureUnitsPlural", default=None
|
|
1933
|
-
)
|
|
1934
|
-
display_name: str = Field(alias="displayName")
|
|
1935
|
-
description: Optional[str] = Field(default=None)
|
|
1936
|
-
ref_id: str = Field(alias="refId")
|
|
1937
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1938
|
-
alias="additionalMetaData", default=None
|
|
1939
|
-
)
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
1907
|
class MockPaywallPriceFragment(BaseModel):
|
|
1943
1908
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
1944
1909
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -1981,6 +1946,41 @@ class MockPaywallPriceFragmentFeature(BaseModel):
|
|
|
1981
1946
|
display_name: str = Field(alias="displayName")
|
|
1982
1947
|
|
|
1983
1948
|
|
|
1949
|
+
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1950
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1951
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1952
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1953
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1954
|
+
alias="resetPeriod", default=None
|
|
1955
|
+
)
|
|
1956
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1957
|
+
alias="hiddenFromWidgets", default=None
|
|
1958
|
+
)
|
|
1959
|
+
display_name_override: Optional[str] = Field(
|
|
1960
|
+
alias="displayNameOverride", default=None
|
|
1961
|
+
)
|
|
1962
|
+
enum_values: Optional[List[str]] = Field(alias="enumValues", default=None)
|
|
1963
|
+
is_granted: bool = Field(alias="isGranted")
|
|
1964
|
+
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1965
|
+
default=None
|
|
1966
|
+
)
|
|
1967
|
+
|
|
1968
|
+
|
|
1969
|
+
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1970
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1971
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1972
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1973
|
+
feature_units_plural: Optional[str] = Field(
|
|
1974
|
+
alias="featureUnitsPlural", default=None
|
|
1975
|
+
)
|
|
1976
|
+
display_name: str = Field(alias="displayName")
|
|
1977
|
+
description: Optional[str] = Field(default=None)
|
|
1978
|
+
ref_id: str = Field(alias="refId")
|
|
1979
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1980
|
+
alias="additionalMetaData", default=None
|
|
1981
|
+
)
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
1984
|
class MockPaywallAddonFragment(BaseModel):
|
|
1985
1985
|
ref_id: str = Field(alias="refId")
|
|
1986
1986
|
display_name: str = Field(alias="displayName")
|
|
@@ -2959,21 +2959,21 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
2959
2959
|
|
|
2960
2960
|
AddonDependencyFragment.model_rebuild()
|
|
2961
2961
|
PriceTierFragment.model_rebuild()
|
|
2962
|
-
PriceFragment.model_rebuild()
|
|
2963
|
-
PackageEntitlementFragment.model_rebuild()
|
|
2964
2962
|
OveragePriceFragment.model_rebuild()
|
|
2963
|
+
PackageEntitlementFragment.model_rebuild()
|
|
2964
|
+
PriceFragment.model_rebuild()
|
|
2965
2965
|
AddonFragment.model_rebuild()
|
|
2966
2966
|
FeatureFragment.model_rebuild()
|
|
2967
2967
|
EntitlementFragment.model_rebuild()
|
|
2968
|
-
SlimCustomerFragment.model_rebuild()
|
|
2969
|
-
CustomerResourceFragment.model_rebuild()
|
|
2970
|
-
TotalPriceFragment.model_rebuild()
|
|
2971
2968
|
SubscriptionInvoiceFragment.model_rebuild()
|
|
2969
|
+
SlimCustomerFragment.model_rebuild()
|
|
2970
|
+
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2972
2971
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2973
2972
|
ProductFragment.model_rebuild()
|
|
2974
2973
|
PlanFragment.model_rebuild()
|
|
2975
|
-
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2976
2974
|
SubscriptionFutureUpdateData.model_rebuild()
|
|
2975
|
+
CustomerResourceFragment.model_rebuild()
|
|
2976
|
+
TotalPriceFragment.model_rebuild()
|
|
2977
2977
|
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2978
2978
|
SubscriptionFragment.model_rebuild()
|
|
2979
2979
|
ApplySubscriptionFragment.model_rebuild()
|
|
@@ -2981,18 +2981,18 @@ FontVariantFragment.model_rebuild()
|
|
|
2981
2981
|
TypographyConfigurationFragment.model_rebuild()
|
|
2982
2982
|
CheckoutConfigurationFragment.model_rebuild()
|
|
2983
2983
|
ZuoraCheckoutCredentialsFragment.model_rebuild()
|
|
2984
|
-
|
|
2984
|
+
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
2985
2985
|
PromotionalEntitlementFragment.model_rebuild()
|
|
2986
|
+
CouponFragment.model_rebuild()
|
|
2986
2987
|
CustomerFragment.model_rebuild()
|
|
2987
|
-
StripeCheckoutCredentialsFragment.model_rebuild()
|
|
2988
2988
|
CheckoutStateFragment.model_rebuild()
|
|
2989
2989
|
CreditGrantFragment.model_rebuild()
|
|
2990
2990
|
CreditsBalanceSummaryFragment.model_rebuild()
|
|
2991
2991
|
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
2992
2992
|
CustomerPortalConfigurationFragment.model_rebuild()
|
|
2993
2993
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
2994
|
-
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2995
2994
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
2995
|
+
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2996
2996
|
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
2997
2997
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
2998
2998
|
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
@@ -3005,8 +3005,8 @@ EntitlementsUpdatedPayload.model_rebuild()
|
|
|
3005
3005
|
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
3006
3006
|
LayoutConfigurationFragment.model_rebuild()
|
|
3007
3007
|
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
3008
|
-
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
3009
3008
|
MockPaywallPriceFragment.model_rebuild()
|
|
3009
|
+
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
3010
3010
|
MockPaywallAddonFragment.model_rebuild()
|
|
3011
3011
|
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
3012
3012
|
MockPaywallPlanFragment.model_rebuild()
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
|
+
# Source: operations.graphql
|
|
3
|
+
|
|
4
|
+
from typing import List, Optional
|
|
5
|
+
|
|
6
|
+
from stigg._vendors.pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
from .enums import EntitlementsStateAccessDeniedReason
|
|
10
|
+
from .fragments import EntitlementFragment
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class GetEntitlementsState(BaseModel):
|
|
14
|
+
entitlements_state: "GetEntitlementsStateEntitlementsState" = Field(
|
|
15
|
+
alias="entitlementsState"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class GetEntitlementsStateEntitlementsState(BaseModel):
|
|
20
|
+
entitlements: List["GetEntitlementsStateEntitlementsStateEntitlements"]
|
|
21
|
+
access_denied_reason: Optional[EntitlementsStateAccessDeniedReason] = Field(
|
|
22
|
+
alias="accessDeniedReason"
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class GetEntitlementsStateEntitlementsStateEntitlements(EntitlementFragment):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
GetEntitlementsState.model_rebuild()
|
|
31
|
+
GetEntitlementsStateEntitlementsState.model_rebuild()
|
|
@@ -106,25 +106,25 @@ stigg/_vendors/pydantic-2.6.4.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
106
106
|
stigg/_vendors/pydantic-2.6.4.dist-info/WHEEL,sha256=TJPnKdtrSue7xZ_AVGkp9YXcvDrobsjBds1du3Nx6dc,87
|
|
107
107
|
stigg/_vendors/pydantic-2.6.4.dist-info/licenses/LICENSE,sha256=qeGG88oWte74QxjnpwFyE1GgDLe4rjpDlLZ7SeNSnvM,1129
|
|
108
108
|
stigg/client.py,sha256=RWrVnxo9zHFXka8KJVE4sMgyek70ispQk0vqOINCvM0,8335
|
|
109
|
-
stigg/generated/__init__.py,sha256=
|
|
109
|
+
stigg/generated/__init__.py,sha256=a2uqgR2h76C6ESmJ8Q6dkxKUNZZwmE8ps7-wCQ8Nwck,76924
|
|
110
110
|
stigg/generated/apply_subscription.py,sha256=Vbs-QZZxN16pUpt3Hp7Jvvcc5o_8xwJK9oTLQQjH0ZA,451
|
|
111
111
|
stigg/generated/archive_customer.py,sha256=3N3iBiT2Vvzfb0ckV3o57A6lmJ_ef7JNPaMX_Jtcg6c,396
|
|
112
112
|
stigg/generated/async_base_client.py,sha256=zqd6IhYxpalyA6KQkeGhXgSurC0vXSwSWmSlM2zZ0VM,12593
|
|
113
|
-
stigg/generated/async_client.py,sha256=
|
|
113
|
+
stigg/generated/async_client.py,sha256=YYS6C8Xy1X-zyM5TIYWKpsyInRq31GH1WR8dUjBaFQo,188348
|
|
114
114
|
stigg/generated/base_client.py,sha256=nAto-nOqrOHFTLqdRy2ZDpT1afgsqCzf6hTeBh5MyPQ,6674
|
|
115
115
|
stigg/generated/base_model.py,sha256=0rs99bmZqPbltlPVMfhExeA5zD6ATQFaNZVsxGNonI4,635
|
|
116
116
|
stigg/generated/cancel_subscription.py,sha256=pKrMFmKjGIuWvnVCYQ8brWQO9_JeTnfScgGQjztuN-o,457
|
|
117
117
|
stigg/generated/cancel_subscription_updates.py,sha256=T1C9vyppzZi_91pEnIGkHUL3GEsvtf5EMwr1f01tjbM,241
|
|
118
|
-
stigg/generated/client.py,sha256=
|
|
118
|
+
stigg/generated/client.py,sha256=gImxn-q8RfJ4_MTDJhSr2JjCRKWVvHgEm5ofvZdUHEM,187649
|
|
119
119
|
stigg/generated/create_payment_session.py,sha256=VRPT8Bbvb_evFHMav9y_pXWHMVbkRy9csf5SJCCUARk,470
|
|
120
120
|
stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
|
|
121
121
|
stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
|
|
122
122
|
stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
|
|
123
|
-
stigg/generated/enums.py,sha256=
|
|
123
|
+
stigg/generated/enums.py,sha256=uz0ELcMolFbn8vz4GbOy1HyzaoIrFkGfJ6t9tcyklmA,39018
|
|
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=q7F9pkVGhN2OYFIoJKiXLL0v36LAbA5DvT2jQm1DUXA,108321
|
|
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
|
|
@@ -136,6 +136,7 @@ stigg/generated/get_customer_portal_by_ref_id.py,sha256=k_P5_2HA4xlr46s6KRJ3Y4wr
|
|
|
136
136
|
stigg/generated/get_customer_statistics.py,sha256=4lchx8yhXTJ_Jtjqnn1BySLrcmla46VBUAxT8Jp5NjQ,515
|
|
137
137
|
stigg/generated/get_entitlement.py,sha256=gWJdx41Qu9eYc0ktxkb-r0dtfmdiZJABzPyp2RVHA4w,316
|
|
138
138
|
stigg/generated/get_entitlements.py,sha256=wnCoYCrWWZVgVSpfsXHYgS3agVJADMaZWcUwV7jb3NI,354
|
|
139
|
+
stigg/generated/get_entitlements_state.py,sha256=6sp2qshAXO7FnjXAOVWSxDdp9e7YRdldctIFjLumIuo,863
|
|
139
140
|
stigg/generated/get_mock_paywall.py,sha256=tAI7sp2LWZm850kmHqKWZKfgGNTa1iChl3BIxKq_JvI,762
|
|
140
141
|
stigg/generated/get_paywall.py,sha256=kfgwz9cfpgg4FAcAAhXxOOe5OjAQQraufWNabnAgW5E,280
|
|
141
142
|
stigg/generated/get_products.py,sha256=Zzq8FAAsml-X14PISP9BcS0E8B8J7N5IDSCrnH2vD1g,568
|
|
@@ -168,7 +169,7 @@ stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9e
|
|
|
168
169
|
stigg/generated/unlink_promotional_entitlements_group.py,sha256=8UIRQ0CNvReRfX0LZmDYkRn9mMjZm9n41YG6-p7Z8qU,636
|
|
169
170
|
stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
|
|
170
171
|
stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
|
|
171
|
-
stigg_api_client_v2-3.
|
|
172
|
-
stigg_api_client_v2-3.
|
|
173
|
-
stigg_api_client_v2-3.
|
|
174
|
-
stigg_api_client_v2-3.
|
|
172
|
+
stigg_api_client_v2-3.84.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
173
|
+
stigg_api_client_v2-3.84.1.dist-info/METADATA,sha256=XnoAaHXCrAR3Il56-yqV6ruDmFTByk-xaCsAdhMLZug,2257
|
|
174
|
+
stigg_api_client_v2-3.84.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
175
|
+
stigg_api_client_v2-3.84.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|