stigg-api-client-v2 2.442.0__py3-none-any.whl → 2.443.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 +30 -0
- stigg/generated/async_client.py +78 -1
- stigg/generated/client.py +78 -1
- stigg/generated/fragments.py +293 -233
- stigg/generated/subscriptions.py +35 -0
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.443.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.443.0.dist-info}/RECORD +9 -8
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.443.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.443.0.dist-info}/WHEEL +0 -0
stigg/generated/__init__.py
CHANGED
|
@@ -300,6 +300,7 @@ from .fragments import (
|
|
|
300
300
|
PackageEntitlementFragment,
|
|
301
301
|
PackageEntitlementFragmentFeature,
|
|
302
302
|
PackagePublishedPayload,
|
|
303
|
+
PageInfoFragment,
|
|
303
304
|
PaywallCalculatedPricePointsFragment,
|
|
304
305
|
PaywallCalculatedPricePointsFragmentFeature,
|
|
305
306
|
PaywallConfigurationFragment,
|
|
@@ -458,6 +459,14 @@ from .fragments import (
|
|
|
458
459
|
SubscriptionPreviewV2FragmentBillingPeriodRange,
|
|
459
460
|
SubscriptionPreviewV2FragmentImmediateInvoice,
|
|
460
461
|
SubscriptionPreviewV2FragmentRecurringInvoice,
|
|
462
|
+
SubscriptionQueryFragment,
|
|
463
|
+
SubscriptionQueryFragmentAddons,
|
|
464
|
+
SubscriptionQueryFragmentAddonsAddon,
|
|
465
|
+
SubscriptionQueryFragmentCustomer,
|
|
466
|
+
SubscriptionQueryFragmentPayingCustomer,
|
|
467
|
+
SubscriptionQueryFragmentPlan,
|
|
468
|
+
SubscriptionQueryFragmentResource,
|
|
469
|
+
SubscriptionQueryFragmentTrialConfiguration,
|
|
461
470
|
SubscriptionScheduledUpdateData,
|
|
462
471
|
SubscriptionScheduledUpdateDataScheduleVariablesAddonChangeVariables,
|
|
463
472
|
SubscriptionScheduledUpdateDataScheduleVariablesAddonPriceOverrideChangeVariables,
|
|
@@ -929,6 +938,13 @@ from .revoke_promotional_entitlement import (
|
|
|
929
938
|
RevokePromotionalEntitlement,
|
|
930
939
|
RevokePromotionalEntitlementRevokePromotionalEntitlement,
|
|
931
940
|
)
|
|
941
|
+
from .subscriptions import (
|
|
942
|
+
Subscriptions,
|
|
943
|
+
SubscriptionsSubscriptions,
|
|
944
|
+
SubscriptionsSubscriptionsEdges,
|
|
945
|
+
SubscriptionsSubscriptionsEdgesNode,
|
|
946
|
+
SubscriptionsSubscriptionsPageInfo,
|
|
947
|
+
)
|
|
932
948
|
from .transfer_subscription import (
|
|
933
949
|
TransferSubscription,
|
|
934
950
|
TransferSubscriptionTransferSubscription,
|
|
@@ -1423,6 +1439,7 @@ __all__ = [
|
|
|
1423
1439
|
"PackagePublishedPayload",
|
|
1424
1440
|
"PackageStatus",
|
|
1425
1441
|
"PackageStatusFilterComparison",
|
|
1442
|
+
"PageInfoFragment",
|
|
1426
1443
|
"PaymentCollection",
|
|
1427
1444
|
"PaymentCollectionFilterComparison",
|
|
1428
1445
|
"PaymentCollectionMethod",
|
|
@@ -1721,6 +1738,14 @@ __all__ = [
|
|
|
1721
1738
|
"SubscriptionPriceSort",
|
|
1722
1739
|
"SubscriptionPriceSortFields",
|
|
1723
1740
|
"SubscriptionQueryFilter",
|
|
1741
|
+
"SubscriptionQueryFragment",
|
|
1742
|
+
"SubscriptionQueryFragmentAddons",
|
|
1743
|
+
"SubscriptionQueryFragmentAddonsAddon",
|
|
1744
|
+
"SubscriptionQueryFragmentCustomer",
|
|
1745
|
+
"SubscriptionQueryFragmentPayingCustomer",
|
|
1746
|
+
"SubscriptionQueryFragmentPlan",
|
|
1747
|
+
"SubscriptionQueryFragmentResource",
|
|
1748
|
+
"SubscriptionQueryFragmentTrialConfiguration",
|
|
1724
1749
|
"SubscriptionQuerySort",
|
|
1725
1750
|
"SubscriptionQuerySortFields",
|
|
1726
1751
|
"SubscriptionScheduleStatus",
|
|
@@ -1748,6 +1773,11 @@ __all__ = [
|
|
|
1748
1773
|
"SubscriptionUpdateScheduleCancellationInput",
|
|
1749
1774
|
"SubscriptionUpdateUsageCutoffBehavior",
|
|
1750
1775
|
"SubscriptionUpdateUsageResetCutoffRuleInput",
|
|
1776
|
+
"Subscriptions",
|
|
1777
|
+
"SubscriptionsSubscriptions",
|
|
1778
|
+
"SubscriptionsSubscriptionsEdges",
|
|
1779
|
+
"SubscriptionsSubscriptionsEdgesNode",
|
|
1780
|
+
"SubscriptionsSubscriptionsPageInfo",
|
|
1751
1781
|
"SyncStatus",
|
|
1752
1782
|
"SyncTaxRatesInput",
|
|
1753
1783
|
"TaskStatus",
|
stigg/generated/async_client.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Generated by ariadne-codegen
|
|
2
2
|
# Source: operations.graphql
|
|
3
3
|
|
|
4
|
-
from typing import Any, Dict
|
|
4
|
+
from typing import Any, Dict, List, Optional, Union
|
|
5
5
|
|
|
6
6
|
from .apply_subscription import ApplySubscription
|
|
7
7
|
from .archive_customer import ArchiveCustomer
|
|
8
8
|
from .async_base_client import AsyncBaseClient
|
|
9
|
+
from .base_model import UNSET, UnsetType
|
|
9
10
|
from .cancel_subscription import CancelSubscription
|
|
10
11
|
from .cancel_subscription_updates import CancelSubscriptionUpdates
|
|
11
12
|
from .create_subscription import CreateSubscription
|
|
@@ -37,6 +38,7 @@ from .input_types import (
|
|
|
37
38
|
ApplySubscriptionInput,
|
|
38
39
|
ArchiveCustomerInput,
|
|
39
40
|
CheckoutStateInput,
|
|
41
|
+
CursorPaging,
|
|
40
42
|
CustomerPortalInput,
|
|
41
43
|
DelegateSubscriptionToCustomerInput,
|
|
42
44
|
DetachCustomerPaymentMethodInput,
|
|
@@ -63,6 +65,8 @@ from .input_types import (
|
|
|
63
65
|
SubscriptionCancellationInput,
|
|
64
66
|
SubscriptionInput,
|
|
65
67
|
SubscriptionMigrationInput,
|
|
68
|
+
SubscriptionQueryFilter,
|
|
69
|
+
SubscriptionQuerySort,
|
|
66
70
|
SubscriptionUpdateScheduleCancellationInput,
|
|
67
71
|
TransferSubscriptionInput,
|
|
68
72
|
TransferSubscriptionToResourceInput,
|
|
@@ -83,6 +87,7 @@ from .report_event import ReportEvent
|
|
|
83
87
|
from .report_usage import ReportUsage
|
|
84
88
|
from .report_usage_bulk import ReportUsageBulk
|
|
85
89
|
from .revoke_promotional_entitlement import RevokePromotionalEntitlement
|
|
90
|
+
from .subscriptions import Subscriptions
|
|
86
91
|
from .transfer_subscription import TransferSubscription
|
|
87
92
|
from .transfer_subscription_to_resource import TransferSubscriptionToResource
|
|
88
93
|
from .unarchive_customer import UnarchiveCustomer
|
|
@@ -3804,6 +3809,78 @@ class AsyncClient(AsyncBaseClient):
|
|
|
3804
3809
|
data = self.get_data(response)
|
|
3805
3810
|
return GetActiveSubscriptionsList.model_validate(data)
|
|
3806
3811
|
|
|
3812
|
+
async def subscriptions(
|
|
3813
|
+
self,
|
|
3814
|
+
filter: Union[Optional[SubscriptionQueryFilter], UnsetType] = UNSET,
|
|
3815
|
+
paging: Union[Optional[CursorPaging], UnsetType] = UNSET,
|
|
3816
|
+
sorting: Union[Optional[List[SubscriptionQuerySort]], UnsetType] = UNSET,
|
|
3817
|
+
**kwargs: Any
|
|
3818
|
+
) -> Subscriptions:
|
|
3819
|
+
query = gql(
|
|
3820
|
+
"""
|
|
3821
|
+
query Subscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {
|
|
3822
|
+
subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {
|
|
3823
|
+
edges {
|
|
3824
|
+
node {
|
|
3825
|
+
...SubscriptionQueryFragment
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
pageInfo {
|
|
3829
|
+
...PageInfoFragment
|
|
3830
|
+
}
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
|
|
3834
|
+
fragment PageInfoFragment on PageInfo {
|
|
3835
|
+
startCursor
|
|
3836
|
+
endCursor
|
|
3837
|
+
hasNextPage
|
|
3838
|
+
hasPreviousPage
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
fragment SubscriptionQueryFragment on SubscriptionQuery {
|
|
3842
|
+
subscriptionId
|
|
3843
|
+
status
|
|
3844
|
+
pricingType
|
|
3845
|
+
startDate
|
|
3846
|
+
currentBillingPeriodEnd
|
|
3847
|
+
customer {
|
|
3848
|
+
customerId
|
|
3849
|
+
}
|
|
3850
|
+
payingCustomer {
|
|
3851
|
+
customerId
|
|
3852
|
+
}
|
|
3853
|
+
resource {
|
|
3854
|
+
resourceId
|
|
3855
|
+
}
|
|
3856
|
+
plan {
|
|
3857
|
+
planId: refId
|
|
3858
|
+
displayName
|
|
3859
|
+
}
|
|
3860
|
+
addons {
|
|
3861
|
+
quantity
|
|
3862
|
+
addon {
|
|
3863
|
+
addonId: refId
|
|
3864
|
+
}
|
|
3865
|
+
}
|
|
3866
|
+
trialConfiguration {
|
|
3867
|
+
trialEndBehavior
|
|
3868
|
+
}
|
|
3869
|
+
trialEndDate
|
|
3870
|
+
}
|
|
3871
|
+
"""
|
|
3872
|
+
)
|
|
3873
|
+
variables: Dict[str, object] = {
|
|
3874
|
+
"filter": filter,
|
|
3875
|
+
"paging": paging,
|
|
3876
|
+
"sorting": sorting,
|
|
3877
|
+
}
|
|
3878
|
+
response = await self.execute(
|
|
3879
|
+
query=query, operation_name="Subscriptions", variables=variables, **kwargs
|
|
3880
|
+
)
|
|
3881
|
+
data = self.get_data(response)
|
|
3882
|
+
return Subscriptions.model_validate(data)
|
|
3883
|
+
|
|
3807
3884
|
async def get_subscription(
|
|
3808
3885
|
self, input: GetSubscriptionInput, **kwargs: Any
|
|
3809
3886
|
) -> GetSubscription:
|
stigg/generated/client.py
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Generated by ariadne-codegen
|
|
2
2
|
# Source: operations.graphql
|
|
3
3
|
|
|
4
|
-
from typing import Any, Dict
|
|
4
|
+
from typing import Any, Dict, List, Optional, Union
|
|
5
5
|
|
|
6
6
|
from .apply_subscription import ApplySubscription
|
|
7
7
|
from .archive_customer import ArchiveCustomer
|
|
8
8
|
from .base_client import BaseClient
|
|
9
|
+
from .base_model import UNSET, UnsetType
|
|
9
10
|
from .cancel_subscription import CancelSubscription
|
|
10
11
|
from .cancel_subscription_updates import CancelSubscriptionUpdates
|
|
11
12
|
from .create_subscription import CreateSubscription
|
|
@@ -37,6 +38,7 @@ from .input_types import (
|
|
|
37
38
|
ApplySubscriptionInput,
|
|
38
39
|
ArchiveCustomerInput,
|
|
39
40
|
CheckoutStateInput,
|
|
41
|
+
CursorPaging,
|
|
40
42
|
CustomerPortalInput,
|
|
41
43
|
DelegateSubscriptionToCustomerInput,
|
|
42
44
|
DetachCustomerPaymentMethodInput,
|
|
@@ -63,6 +65,8 @@ from .input_types import (
|
|
|
63
65
|
SubscriptionCancellationInput,
|
|
64
66
|
SubscriptionInput,
|
|
65
67
|
SubscriptionMigrationInput,
|
|
68
|
+
SubscriptionQueryFilter,
|
|
69
|
+
SubscriptionQuerySort,
|
|
66
70
|
SubscriptionUpdateScheduleCancellationInput,
|
|
67
71
|
TransferSubscriptionInput,
|
|
68
72
|
TransferSubscriptionToResourceInput,
|
|
@@ -83,6 +87,7 @@ from .report_event import ReportEvent
|
|
|
83
87
|
from .report_usage import ReportUsage
|
|
84
88
|
from .report_usage_bulk import ReportUsageBulk
|
|
85
89
|
from .revoke_promotional_entitlement import RevokePromotionalEntitlement
|
|
90
|
+
from .subscriptions import Subscriptions
|
|
86
91
|
from .transfer_subscription import TransferSubscription
|
|
87
92
|
from .transfer_subscription_to_resource import TransferSubscriptionToResource
|
|
88
93
|
from .unarchive_customer import UnarchiveCustomer
|
|
@@ -3802,6 +3807,78 @@ class Client(BaseClient):
|
|
|
3802
3807
|
data = self.get_data(response)
|
|
3803
3808
|
return GetActiveSubscriptionsList.model_validate(data)
|
|
3804
3809
|
|
|
3810
|
+
def subscriptions(
|
|
3811
|
+
self,
|
|
3812
|
+
filter: Union[Optional[SubscriptionQueryFilter], UnsetType] = UNSET,
|
|
3813
|
+
paging: Union[Optional[CursorPaging], UnsetType] = UNSET,
|
|
3814
|
+
sorting: Union[Optional[List[SubscriptionQuerySort]], UnsetType] = UNSET,
|
|
3815
|
+
**kwargs: Any
|
|
3816
|
+
) -> Subscriptions:
|
|
3817
|
+
query = gql(
|
|
3818
|
+
"""
|
|
3819
|
+
query Subscriptions($filter: SubscriptionQueryFilter, $paging: CursorPaging, $sorting: [SubscriptionQuerySort!]) {
|
|
3820
|
+
subscriptions(filter: $filter, paging: $paging, sorting: $sorting) {
|
|
3821
|
+
edges {
|
|
3822
|
+
node {
|
|
3823
|
+
...SubscriptionQueryFragment
|
|
3824
|
+
}
|
|
3825
|
+
}
|
|
3826
|
+
pageInfo {
|
|
3827
|
+
...PageInfoFragment
|
|
3828
|
+
}
|
|
3829
|
+
}
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
fragment PageInfoFragment on PageInfo {
|
|
3833
|
+
startCursor
|
|
3834
|
+
endCursor
|
|
3835
|
+
hasNextPage
|
|
3836
|
+
hasPreviousPage
|
|
3837
|
+
}
|
|
3838
|
+
|
|
3839
|
+
fragment SubscriptionQueryFragment on SubscriptionQuery {
|
|
3840
|
+
subscriptionId
|
|
3841
|
+
status
|
|
3842
|
+
pricingType
|
|
3843
|
+
startDate
|
|
3844
|
+
currentBillingPeriodEnd
|
|
3845
|
+
customer {
|
|
3846
|
+
customerId
|
|
3847
|
+
}
|
|
3848
|
+
payingCustomer {
|
|
3849
|
+
customerId
|
|
3850
|
+
}
|
|
3851
|
+
resource {
|
|
3852
|
+
resourceId
|
|
3853
|
+
}
|
|
3854
|
+
plan {
|
|
3855
|
+
planId: refId
|
|
3856
|
+
displayName
|
|
3857
|
+
}
|
|
3858
|
+
addons {
|
|
3859
|
+
quantity
|
|
3860
|
+
addon {
|
|
3861
|
+
addonId: refId
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
trialConfiguration {
|
|
3865
|
+
trialEndBehavior
|
|
3866
|
+
}
|
|
3867
|
+
trialEndDate
|
|
3868
|
+
}
|
|
3869
|
+
"""
|
|
3870
|
+
)
|
|
3871
|
+
variables: Dict[str, object] = {
|
|
3872
|
+
"filter": filter,
|
|
3873
|
+
"paging": paging,
|
|
3874
|
+
"sorting": sorting,
|
|
3875
|
+
}
|
|
3876
|
+
response = self.execute(
|
|
3877
|
+
query=query, operation_name="Subscriptions", variables=variables, **kwargs
|
|
3878
|
+
)
|
|
3879
|
+
data = self.get_data(response)
|
|
3880
|
+
return Subscriptions.model_validate(data)
|
|
3881
|
+
|
|
3805
3882
|
def get_subscription(
|
|
3806
3883
|
self, input: GetSubscriptionInput, **kwargs: Any
|
|
3807
3884
|
) -> GetSubscription:
|
stigg/generated/fragments.py
CHANGED
|
@@ -116,38 +116,6 @@ class PriceFragmentFeature(BaseModel):
|
|
|
116
116
|
description: Optional[str] = Field(default=None)
|
|
117
117
|
|
|
118
118
|
|
|
119
|
-
class OveragePriceFragment(BaseModel):
|
|
120
|
-
billing_model: BillingModel = Field(alias="billingModel")
|
|
121
|
-
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
122
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
123
|
-
billing_country_code: Optional[str] = Field(
|
|
124
|
-
alias="billingCountryCode", default=None
|
|
125
|
-
)
|
|
126
|
-
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
127
|
-
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
128
|
-
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
129
|
-
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
class OveragePriceFragmentPrice(BaseModel):
|
|
133
|
-
amount: float
|
|
134
|
-
currency: Currency
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
138
|
-
pass
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
class OveragePriceFragmentFeature(BaseModel):
|
|
142
|
-
ref_id: str = Field(alias="refId")
|
|
143
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
144
|
-
feature_units_plural: Optional[str] = Field(
|
|
145
|
-
alias="featureUnitsPlural", default=None
|
|
146
|
-
)
|
|
147
|
-
display_name: str = Field(alias="displayName")
|
|
148
|
-
description: Optional[str] = Field(default=None)
|
|
149
|
-
|
|
150
|
-
|
|
151
119
|
class PackageEntitlementFragment(BaseModel):
|
|
152
120
|
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
153
121
|
has_unlimited_usage: Optional[bool] = Field(alias="hasUnlimitedUsage", default=None)
|
|
@@ -181,6 +149,38 @@ class PackageEntitlementFragmentFeature(BaseModel):
|
|
|
181
149
|
)
|
|
182
150
|
|
|
183
151
|
|
|
152
|
+
class OveragePriceFragment(BaseModel):
|
|
153
|
+
billing_model: BillingModel = Field(alias="billingModel")
|
|
154
|
+
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
155
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
156
|
+
billing_country_code: Optional[str] = Field(
|
|
157
|
+
alias="billingCountryCode", default=None
|
|
158
|
+
)
|
|
159
|
+
price: Optional["OveragePriceFragmentPrice"] = Field(default=None)
|
|
160
|
+
tiers_mode: Optional[TiersMode] = Field(alias="tiersMode", default=None)
|
|
161
|
+
tiers: Optional[List["OveragePriceFragmentTiers"]] = Field(default=None)
|
|
162
|
+
feature: Optional["OveragePriceFragmentFeature"] = Field(default=None)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
class OveragePriceFragmentPrice(BaseModel):
|
|
166
|
+
amount: float
|
|
167
|
+
currency: Currency
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
class OveragePriceFragmentTiers(PriceTierFragment):
|
|
171
|
+
pass
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
class OveragePriceFragmentFeature(BaseModel):
|
|
175
|
+
ref_id: str = Field(alias="refId")
|
|
176
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
177
|
+
feature_units_plural: Optional[str] = Field(
|
|
178
|
+
alias="featureUnitsPlural", default=None
|
|
179
|
+
)
|
|
180
|
+
display_name: str = Field(alias="displayName")
|
|
181
|
+
description: Optional[str] = Field(default=None)
|
|
182
|
+
|
|
183
|
+
|
|
184
184
|
class AddonFragment(BaseModel):
|
|
185
185
|
id: str
|
|
186
186
|
ref_id: str = Field(alias="refId")
|
|
@@ -216,6 +216,10 @@ class AddonFragmentDependencies(AddonDependencyFragment):
|
|
|
216
216
|
pass
|
|
217
217
|
|
|
218
218
|
|
|
219
|
+
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
220
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
221
|
+
|
|
222
|
+
|
|
219
223
|
class TotalPriceFragment(BaseModel):
|
|
220
224
|
sub_total: "TotalPriceFragmentSubTotal" = Field(alias="subTotal")
|
|
221
225
|
total: "TotalPriceFragmentTotal"
|
|
@@ -248,6 +252,153 @@ class SlimCustomerFragment(BaseModel):
|
|
|
248
252
|
)
|
|
249
253
|
|
|
250
254
|
|
|
255
|
+
class SubscriptionInvoiceFragment(BaseModel):
|
|
256
|
+
billing_id: str = Field(alias="billingId")
|
|
257
|
+
status: SubscriptionInvoiceStatus
|
|
258
|
+
created_at: Any = Field(alias="createdAt")
|
|
259
|
+
updated_at: Any = Field(alias="updatedAt")
|
|
260
|
+
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
261
|
+
requires_action: bool = Field(alias="requiresAction")
|
|
262
|
+
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
263
|
+
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
264
|
+
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
265
|
+
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
266
|
+
alias="billingReason", default=None
|
|
267
|
+
)
|
|
268
|
+
currency: Optional[str] = Field(default=None)
|
|
269
|
+
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
270
|
+
sub_total_excluding_tax: Optional[float] = Field(
|
|
271
|
+
alias="subTotalExcludingTax", default=None
|
|
272
|
+
)
|
|
273
|
+
total: Optional[float] = Field(default=None)
|
|
274
|
+
total_excluding_tax: Optional[float] = Field(
|
|
275
|
+
alias="totalExcludingTax", default=None
|
|
276
|
+
)
|
|
277
|
+
tax: Optional[float] = Field(default=None)
|
|
278
|
+
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
279
|
+
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
class ProductFragment(BaseModel):
|
|
283
|
+
ref_id: str = Field(alias="refId")
|
|
284
|
+
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
285
|
+
description: Optional[str] = Field(default=None)
|
|
286
|
+
additional_meta_data: Optional[Any] = Field(
|
|
287
|
+
alias="additionalMetaData", default=None
|
|
288
|
+
)
|
|
289
|
+
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
class ProductFragmentProductSettings(BaseModel):
|
|
293
|
+
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
294
|
+
alias="downgradePlan", default=None
|
|
295
|
+
)
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
299
|
+
ref_id: str = Field(alias="refId")
|
|
300
|
+
display_name: str = Field(alias="displayName")
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
304
|
+
package_group_id: str = Field(alias="packageGroupId")
|
|
305
|
+
display_name: str = Field(alias="displayName")
|
|
306
|
+
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
307
|
+
default=None
|
|
308
|
+
)
|
|
309
|
+
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
313
|
+
pass
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
317
|
+
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
318
|
+
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
class PlanFragment(BaseModel):
|
|
322
|
+
id: str
|
|
323
|
+
ref_id: str = Field(alias="refId")
|
|
324
|
+
display_name: str = Field(alias="displayName")
|
|
325
|
+
description: Optional[str] = Field(default=None)
|
|
326
|
+
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
327
|
+
version_number: int = Field(alias="versionNumber")
|
|
328
|
+
additional_meta_data: Optional[Any] = Field(
|
|
329
|
+
alias="additionalMetaData", default=None
|
|
330
|
+
)
|
|
331
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
332
|
+
alias="hiddenFromWidgets", default=None
|
|
333
|
+
)
|
|
334
|
+
product: "PlanFragmentProduct"
|
|
335
|
+
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
336
|
+
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
337
|
+
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
338
|
+
alias="inheritedEntitlements", default=None
|
|
339
|
+
)
|
|
340
|
+
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
341
|
+
alias="compatibleAddons", default=None
|
|
342
|
+
)
|
|
343
|
+
compatible_package_groups: Optional[
|
|
344
|
+
List["PlanFragmentCompatiblePackageGroups"]
|
|
345
|
+
] = Field(alias="compatiblePackageGroups", default=None)
|
|
346
|
+
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
347
|
+
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
348
|
+
alias="overagePrices", default=None
|
|
349
|
+
)
|
|
350
|
+
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
351
|
+
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
352
|
+
alias="defaultTrialConfig", default=None
|
|
353
|
+
)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
class PlanFragmentProduct(ProductFragment):
|
|
357
|
+
pass
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
class PlanFragmentBasePlan(BaseModel):
|
|
361
|
+
ref_id: str = Field(alias="refId")
|
|
362
|
+
display_name: str = Field(alias="displayName")
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
366
|
+
pass
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
370
|
+
pass
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
374
|
+
pass
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
378
|
+
pass
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
class PlanFragmentPrices(PriceFragment):
|
|
382
|
+
pass
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
386
|
+
pass
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
390
|
+
duration: float
|
|
391
|
+
units: TrialPeriodUnits
|
|
392
|
+
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
393
|
+
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
394
|
+
alias="trialEndBehavior", default=None
|
|
395
|
+
)
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
399
|
+
limit: float
|
|
400
|
+
|
|
401
|
+
|
|
251
402
|
class SubscriptionScheduledUpdateData(BaseModel):
|
|
252
403
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
253
404
|
alias="subscriptionScheduleType"
|
|
@@ -410,6 +561,10 @@ class SubscriptionScheduledUpdateDataScheduleVariablesUnitAmountChangeVariables(
|
|
|
410
561
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
411
562
|
|
|
412
563
|
|
|
564
|
+
class CustomerResourceFragment(BaseModel):
|
|
565
|
+
resource_id: str = Field(alias="resourceId")
|
|
566
|
+
|
|
567
|
+
|
|
413
568
|
class SubscriptionFutureUpdateData(BaseModel):
|
|
414
569
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
415
570
|
alias="subscriptionScheduleType"
|
|
@@ -564,161 +719,6 @@ class SubscriptionFutureUpdateDataScheduleVariablesUnitAmountChangeVariables(Bas
|
|
|
564
719
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
565
720
|
|
|
566
721
|
|
|
567
|
-
class SubscriptionInvoiceFragment(BaseModel):
|
|
568
|
-
billing_id: str = Field(alias="billingId")
|
|
569
|
-
status: SubscriptionInvoiceStatus
|
|
570
|
-
created_at: Any = Field(alias="createdAt")
|
|
571
|
-
updated_at: Any = Field(alias="updatedAt")
|
|
572
|
-
error_message: Optional[str] = Field(alias="errorMessage", default=None)
|
|
573
|
-
requires_action: bool = Field(alias="requiresAction")
|
|
574
|
-
payment_secret: Optional[str] = Field(alias="paymentSecret", default=None)
|
|
575
|
-
payment_url: Optional[str] = Field(alias="paymentUrl", default=None)
|
|
576
|
-
pdf_url: Optional[str] = Field(alias="pdfUrl", default=None)
|
|
577
|
-
billing_reason: Optional[SubscriptionInvoiceBillingReason] = Field(
|
|
578
|
-
alias="billingReason", default=None
|
|
579
|
-
)
|
|
580
|
-
currency: Optional[str] = Field(default=None)
|
|
581
|
-
sub_total: Optional[float] = Field(alias="subTotal", default=None)
|
|
582
|
-
sub_total_excluding_tax: Optional[float] = Field(
|
|
583
|
-
alias="subTotalExcludingTax", default=None
|
|
584
|
-
)
|
|
585
|
-
total: Optional[float] = Field(default=None)
|
|
586
|
-
total_excluding_tax: Optional[float] = Field(
|
|
587
|
-
alias="totalExcludingTax", default=None
|
|
588
|
-
)
|
|
589
|
-
tax: Optional[float] = Field(default=None)
|
|
590
|
-
amount_due: Optional[float] = Field(alias="amountDue", default=None)
|
|
591
|
-
attempt_count: Optional[float] = Field(alias="attemptCount", default=None)
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
class ProductFragment(BaseModel):
|
|
595
|
-
ref_id: str = Field(alias="refId")
|
|
596
|
-
display_name: Optional[str] = Field(alias="displayName", default=None)
|
|
597
|
-
description: Optional[str] = Field(default=None)
|
|
598
|
-
additional_meta_data: Optional[Any] = Field(
|
|
599
|
-
alias="additionalMetaData", default=None
|
|
600
|
-
)
|
|
601
|
-
product_settings: "ProductFragmentProductSettings" = Field(alias="productSettings")
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
class ProductFragmentProductSettings(BaseModel):
|
|
605
|
-
downgrade_plan: Optional["ProductFragmentProductSettingsDowngradePlan"] = Field(
|
|
606
|
-
alias="downgradePlan", default=None
|
|
607
|
-
)
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
class ProductFragmentProductSettingsDowngradePlan(BaseModel):
|
|
611
|
-
ref_id: str = Field(alias="refId")
|
|
612
|
-
display_name: str = Field(alias="displayName")
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
class PlanCompatiblePackageGroupsFragment(BaseModel):
|
|
616
|
-
package_group_id: str = Field(alias="packageGroupId")
|
|
617
|
-
display_name: str = Field(alias="displayName")
|
|
618
|
-
addons: Optional[List["PlanCompatiblePackageGroupsFragmentAddons"]] = Field(
|
|
619
|
-
default=None
|
|
620
|
-
)
|
|
621
|
-
options: "PlanCompatiblePackageGroupsFragmentOptions"
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
class PlanCompatiblePackageGroupsFragmentAddons(AddonFragment):
|
|
625
|
-
pass
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
class PlanCompatiblePackageGroupsFragmentOptions(BaseModel):
|
|
629
|
-
min_items: Optional[float] = Field(alias="minItems", default=None)
|
|
630
|
-
free_items: Optional[float] = Field(alias="freeItems", default=None)
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
class PlanFragment(BaseModel):
|
|
634
|
-
id: str
|
|
635
|
-
ref_id: str = Field(alias="refId")
|
|
636
|
-
display_name: str = Field(alias="displayName")
|
|
637
|
-
description: Optional[str] = Field(default=None)
|
|
638
|
-
billing_id: Optional[str] = Field(alias="billingId", default=None)
|
|
639
|
-
version_number: int = Field(alias="versionNumber")
|
|
640
|
-
additional_meta_data: Optional[Any] = Field(
|
|
641
|
-
alias="additionalMetaData", default=None
|
|
642
|
-
)
|
|
643
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
644
|
-
alias="hiddenFromWidgets", default=None
|
|
645
|
-
)
|
|
646
|
-
product: "PlanFragmentProduct"
|
|
647
|
-
base_plan: Optional["PlanFragmentBasePlan"] = Field(alias="basePlan", default=None)
|
|
648
|
-
entitlements: Optional[List["PlanFragmentEntitlements"]] = Field(default=None)
|
|
649
|
-
inherited_entitlements: Optional[List["PlanFragmentInheritedEntitlements"]] = Field(
|
|
650
|
-
alias="inheritedEntitlements", default=None
|
|
651
|
-
)
|
|
652
|
-
compatible_addons: Optional[List["PlanFragmentCompatibleAddons"]] = Field(
|
|
653
|
-
alias="compatibleAddons", default=None
|
|
654
|
-
)
|
|
655
|
-
compatible_package_groups: Optional[
|
|
656
|
-
List["PlanFragmentCompatiblePackageGroups"]
|
|
657
|
-
] = Field(alias="compatiblePackageGroups", default=None)
|
|
658
|
-
prices: Optional[List["PlanFragmentPrices"]] = Field(default=None)
|
|
659
|
-
overage_prices: Optional[List["PlanFragmentOveragePrices"]] = Field(
|
|
660
|
-
alias="overagePrices", default=None
|
|
661
|
-
)
|
|
662
|
-
pricing_type: Optional[PricingType] = Field(alias="pricingType", default=None)
|
|
663
|
-
default_trial_config: Optional["PlanFragmentDefaultTrialConfig"] = Field(
|
|
664
|
-
alias="defaultTrialConfig", default=None
|
|
665
|
-
)
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
class PlanFragmentProduct(ProductFragment):
|
|
669
|
-
pass
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
class PlanFragmentBasePlan(BaseModel):
|
|
673
|
-
ref_id: str = Field(alias="refId")
|
|
674
|
-
display_name: str = Field(alias="displayName")
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
class PlanFragmentEntitlements(PackageEntitlementFragment):
|
|
678
|
-
pass
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
class PlanFragmentInheritedEntitlements(PackageEntitlementFragment):
|
|
682
|
-
pass
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
class PlanFragmentCompatibleAddons(AddonFragment):
|
|
686
|
-
pass
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
class PlanFragmentCompatiblePackageGroups(PlanCompatiblePackageGroupsFragment):
|
|
690
|
-
pass
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
class PlanFragmentPrices(PriceFragment):
|
|
694
|
-
pass
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
class PlanFragmentOveragePrices(OveragePriceFragment):
|
|
698
|
-
pass
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
class PlanFragmentDefaultTrialConfig(BaseModel):
|
|
702
|
-
duration: float
|
|
703
|
-
units: TrialPeriodUnits
|
|
704
|
-
budget: Optional["PlanFragmentDefaultTrialConfigBudget"] = Field(default=None)
|
|
705
|
-
trial_end_behavior: Optional[TrialEndBehavior] = Field(
|
|
706
|
-
alias="trialEndBehavior", default=None
|
|
707
|
-
)
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
class PlanFragmentDefaultTrialConfigBudget(BaseModel):
|
|
711
|
-
limit: float
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
class CustomerResourceFragment(BaseModel):
|
|
715
|
-
resource_id: str = Field(alias="resourceId")
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
class SubscriptionTrialConfigurationFragment(BaseModel):
|
|
719
|
-
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
720
|
-
|
|
721
|
-
|
|
722
722
|
class SubscriptionFragment(BaseModel):
|
|
723
723
|
id: str
|
|
724
724
|
subscription_id: str = Field(alias="subscriptionId")
|
|
@@ -1257,13 +1257,6 @@ class CustomerPortalEntitlementFragmentFeature(FeatureFragment):
|
|
|
1257
1257
|
pass
|
|
1258
1258
|
|
|
1259
1259
|
|
|
1260
|
-
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
1261
|
-
addon_id: str = Field(alias="addonId")
|
|
1262
|
-
description: Optional[str] = Field(default=None)
|
|
1263
|
-
display_name: str = Field(alias="displayName")
|
|
1264
|
-
quantity: int
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
1260
|
class CustomerPortalSubscriptionScheduledUpdateDataFragment(BaseModel):
|
|
1268
1261
|
subscription_schedule_type: SubscriptionScheduleType = Field(
|
|
1269
1262
|
alias="subscriptionScheduleType"
|
|
@@ -1433,6 +1426,13 @@ class CustomerPortalSubscriptionScheduledUpdateDataFragmentScheduleVariablesUnit
|
|
|
1433
1426
|
feature_id: Optional[str] = Field(alias="featureId", default=None)
|
|
1434
1427
|
|
|
1435
1428
|
|
|
1429
|
+
class CustomerPortalSubscriptionAddonFragment(BaseModel):
|
|
1430
|
+
addon_id: str = Field(alias="addonId")
|
|
1431
|
+
description: Optional[str] = Field(default=None)
|
|
1432
|
+
display_name: str = Field(alias="displayName")
|
|
1433
|
+
quantity: int
|
|
1434
|
+
|
|
1435
|
+
|
|
1436
1436
|
class CustomerPortalSubscriptionPriceFragment(BaseModel):
|
|
1437
1437
|
billing_period: Optional[BillingPeriod] = Field(alias="billingPeriod", default=None)
|
|
1438
1438
|
billing_model: Optional[BillingModel] = Field(alias="billingModel", default=None)
|
|
@@ -1793,39 +1793,6 @@ class MockPaywallAddonDependencyFragment(BaseModel):
|
|
|
1793
1793
|
description: Optional[str] = Field(default=None)
|
|
1794
1794
|
|
|
1795
1795
|
|
|
1796
|
-
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1797
|
-
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1798
|
-
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1799
|
-
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1800
|
-
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1801
|
-
alias="resetPeriod", default=None
|
|
1802
|
-
)
|
|
1803
|
-
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1804
|
-
alias="hiddenFromWidgets", default=None
|
|
1805
|
-
)
|
|
1806
|
-
display_name_override: Optional[str] = Field(
|
|
1807
|
-
alias="displayNameOverride", default=None
|
|
1808
|
-
)
|
|
1809
|
-
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1810
|
-
default=None
|
|
1811
|
-
)
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1815
|
-
feature_type: FeatureType = Field(alias="featureType")
|
|
1816
|
-
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1817
|
-
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1818
|
-
feature_units_plural: Optional[str] = Field(
|
|
1819
|
-
alias="featureUnitsPlural", default=None
|
|
1820
|
-
)
|
|
1821
|
-
display_name: str = Field(alias="displayName")
|
|
1822
|
-
description: Optional[str] = Field(default=None)
|
|
1823
|
-
ref_id: str = Field(alias="refId")
|
|
1824
|
-
additional_meta_data: Optional[Any] = Field(
|
|
1825
|
-
alias="additionalMetaData", default=None
|
|
1826
|
-
)
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
1796
|
class MockPaywallPriceFragment(BaseModel):
|
|
1830
1797
|
billing_model: BillingModel = Field(alias="billingModel")
|
|
1831
1798
|
billing_period: BillingPeriod = Field(alias="billingPeriod")
|
|
@@ -1860,6 +1827,39 @@ class MockPaywallPriceFragmentFeature(BaseModel):
|
|
|
1860
1827
|
display_name: str = Field(alias="displayName")
|
|
1861
1828
|
|
|
1862
1829
|
|
|
1830
|
+
class MockPaywallPackageEntitlementFragment(BaseModel):
|
|
1831
|
+
usage_limit: Optional[float] = Field(alias="usageLimit", default=None)
|
|
1832
|
+
has_unlimited_usage: bool = Field(alias="hasUnlimitedUsage")
|
|
1833
|
+
has_soft_limit: Optional[bool] = Field(alias="hasSoftLimit", default=None)
|
|
1834
|
+
reset_period: Optional[EntitlementResetPeriod] = Field(
|
|
1835
|
+
alias="resetPeriod", default=None
|
|
1836
|
+
)
|
|
1837
|
+
hidden_from_widgets: Optional[List[WidgetType]] = Field(
|
|
1838
|
+
alias="hiddenFromWidgets", default=None
|
|
1839
|
+
)
|
|
1840
|
+
display_name_override: Optional[str] = Field(
|
|
1841
|
+
alias="displayNameOverride", default=None
|
|
1842
|
+
)
|
|
1843
|
+
feature: Optional["MockPaywallPackageEntitlementFragmentFeature"] = Field(
|
|
1844
|
+
default=None
|
|
1845
|
+
)
|
|
1846
|
+
|
|
1847
|
+
|
|
1848
|
+
class MockPaywallPackageEntitlementFragmentFeature(BaseModel):
|
|
1849
|
+
feature_type: FeatureType = Field(alias="featureType")
|
|
1850
|
+
meter_type: Optional[MeterType] = Field(alias="meterType", default=None)
|
|
1851
|
+
feature_units: Optional[str] = Field(alias="featureUnits", default=None)
|
|
1852
|
+
feature_units_plural: Optional[str] = Field(
|
|
1853
|
+
alias="featureUnitsPlural", default=None
|
|
1854
|
+
)
|
|
1855
|
+
display_name: str = Field(alias="displayName")
|
|
1856
|
+
description: Optional[str] = Field(default=None)
|
|
1857
|
+
ref_id: str = Field(alias="refId")
|
|
1858
|
+
additional_meta_data: Optional[Any] = Field(
|
|
1859
|
+
alias="additionalMetaData", default=None
|
|
1860
|
+
)
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
1863
|
class MockPaywallAddonFragment(BaseModel):
|
|
1864
1864
|
ref_id: str = Field(alias="refId")
|
|
1865
1865
|
display_name: str = Field(alias="displayName")
|
|
@@ -2001,6 +2001,13 @@ class PackagePublishedPayload(BaseModel):
|
|
|
2001
2001
|
migration_type: PublishMigrationType = Field(alias="migrationType")
|
|
2002
2002
|
|
|
2003
2003
|
|
|
2004
|
+
class PageInfoFragment(BaseModel):
|
|
2005
|
+
start_cursor: Optional[Any] = Field(alias="startCursor", default=None)
|
|
2006
|
+
end_cursor: Optional[Any] = Field(alias="endCursor", default=None)
|
|
2007
|
+
has_next_page: Optional[bool] = Field(alias="hasNextPage", default=None)
|
|
2008
|
+
has_previous_page: Optional[bool] = Field(alias="hasPreviousPage", default=None)
|
|
2009
|
+
|
|
2010
|
+
|
|
2004
2011
|
class PaywallCalculatedPricePointsFragment(BaseModel):
|
|
2005
2012
|
plan_id: str = Field(alias="planId")
|
|
2006
2013
|
additional_charges_may_apply: Optional[bool] = Field(
|
|
@@ -2704,6 +2711,57 @@ class SubscriptionPreviewV2FragmentBillingPeriodRange(BaseModel):
|
|
|
2704
2711
|
end: Optional[Any] = Field(default=None)
|
|
2705
2712
|
|
|
2706
2713
|
|
|
2714
|
+
class SubscriptionQueryFragment(BaseModel):
|
|
2715
|
+
subscription_id: str = Field(alias="subscriptionId")
|
|
2716
|
+
status: SubscriptionStatus
|
|
2717
|
+
pricing_type: PricingType = Field(alias="pricingType")
|
|
2718
|
+
start_date: Any = Field(alias="startDate")
|
|
2719
|
+
current_billing_period_end: Optional[Any] = Field(
|
|
2720
|
+
alias="currentBillingPeriodEnd", default=None
|
|
2721
|
+
)
|
|
2722
|
+
customer: "SubscriptionQueryFragmentCustomer"
|
|
2723
|
+
paying_customer: Optional["SubscriptionQueryFragmentPayingCustomer"] = Field(
|
|
2724
|
+
alias="payingCustomer", default=None
|
|
2725
|
+
)
|
|
2726
|
+
resource: Optional["SubscriptionQueryFragmentResource"] = Field(default=None)
|
|
2727
|
+
plan: "SubscriptionQueryFragmentPlan"
|
|
2728
|
+
addons: Optional[List["SubscriptionQueryFragmentAddons"]] = Field(default=None)
|
|
2729
|
+
trial_configuration: Optional[
|
|
2730
|
+
"SubscriptionQueryFragmentTrialConfiguration"
|
|
2731
|
+
] = Field(alias="trialConfiguration", default=None)
|
|
2732
|
+
trial_end_date: Optional[Any] = Field(alias="trialEndDate", default=None)
|
|
2733
|
+
|
|
2734
|
+
|
|
2735
|
+
class SubscriptionQueryFragmentCustomer(BaseModel):
|
|
2736
|
+
customer_id: str = Field(alias="customerId")
|
|
2737
|
+
|
|
2738
|
+
|
|
2739
|
+
class SubscriptionQueryFragmentPayingCustomer(BaseModel):
|
|
2740
|
+
customer_id: str = Field(alias="customerId")
|
|
2741
|
+
|
|
2742
|
+
|
|
2743
|
+
class SubscriptionQueryFragmentResource(BaseModel):
|
|
2744
|
+
resource_id: str = Field(alias="resourceId")
|
|
2745
|
+
|
|
2746
|
+
|
|
2747
|
+
class SubscriptionQueryFragmentPlan(BaseModel):
|
|
2748
|
+
plan_id: str = Field(alias="planId")
|
|
2749
|
+
display_name: str = Field(alias="displayName")
|
|
2750
|
+
|
|
2751
|
+
|
|
2752
|
+
class SubscriptionQueryFragmentAddons(BaseModel):
|
|
2753
|
+
quantity: float
|
|
2754
|
+
addon: "SubscriptionQueryFragmentAddonsAddon"
|
|
2755
|
+
|
|
2756
|
+
|
|
2757
|
+
class SubscriptionQueryFragmentAddonsAddon(BaseModel):
|
|
2758
|
+
addon_id: str = Field(alias="addonId")
|
|
2759
|
+
|
|
2760
|
+
|
|
2761
|
+
class SubscriptionQueryFragmentTrialConfiguration(BaseModel):
|
|
2762
|
+
trial_end_behavior: TrialEndBehavior = Field(alias="trialEndBehavior")
|
|
2763
|
+
|
|
2764
|
+
|
|
2707
2765
|
class UsageHistoryFragment(BaseModel):
|
|
2708
2766
|
start_date: Any = Field(alias="startDate")
|
|
2709
2767
|
end_date: Optional[Any] = Field(alias="endDate", default=None)
|
|
@@ -2772,19 +2830,19 @@ class UsageHistoryV2FragmentSeriesPoints(BaseModel):
|
|
|
2772
2830
|
AddonDependencyFragment.model_rebuild()
|
|
2773
2831
|
PriceTierFragment.model_rebuild()
|
|
2774
2832
|
PriceFragment.model_rebuild()
|
|
2775
|
-
OveragePriceFragment.model_rebuild()
|
|
2776
2833
|
PackageEntitlementFragment.model_rebuild()
|
|
2834
|
+
OveragePriceFragment.model_rebuild()
|
|
2777
2835
|
AddonFragment.model_rebuild()
|
|
2836
|
+
SubscriptionTrialConfigurationFragment.model_rebuild()
|
|
2778
2837
|
TotalPriceFragment.model_rebuild()
|
|
2779
2838
|
SlimCustomerFragment.model_rebuild()
|
|
2780
|
-
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2781
|
-
SubscriptionFutureUpdateData.model_rebuild()
|
|
2782
2839
|
SubscriptionInvoiceFragment.model_rebuild()
|
|
2783
2840
|
ProductFragment.model_rebuild()
|
|
2784
2841
|
PlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2785
2842
|
PlanFragment.model_rebuild()
|
|
2843
|
+
SubscriptionScheduledUpdateData.model_rebuild()
|
|
2786
2844
|
CustomerResourceFragment.model_rebuild()
|
|
2787
|
-
|
|
2845
|
+
SubscriptionFutureUpdateData.model_rebuild()
|
|
2788
2846
|
SubscriptionFragment.model_rebuild()
|
|
2789
2847
|
FeatureFragment.model_rebuild()
|
|
2790
2848
|
EntitlementFragment.model_rebuild()
|
|
@@ -2799,8 +2857,8 @@ CheckoutStateFragment.model_rebuild()
|
|
|
2799
2857
|
CustomerPortalBillingInformationFragment.model_rebuild()
|
|
2800
2858
|
CustomerPortalConfigurationFragment.model_rebuild()
|
|
2801
2859
|
CustomerPortalEntitlementFragment.model_rebuild()
|
|
2802
|
-
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
2803
2860
|
CustomerPortalSubscriptionScheduledUpdateDataFragment.model_rebuild()
|
|
2861
|
+
CustomerPortalSubscriptionAddonFragment.model_rebuild()
|
|
2804
2862
|
CustomerPortalSubscriptionPriceFragment.model_rebuild()
|
|
2805
2863
|
CustomerPortalSubscriptionFragment.model_rebuild()
|
|
2806
2864
|
CustomerPortalPromotionalEntitlementFragment.model_rebuild()
|
|
@@ -2813,12 +2871,13 @@ EntitlementsUpdatedPayload.model_rebuild()
|
|
|
2813
2871
|
ImmediateSubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
2814
2872
|
LayoutConfigurationFragment.model_rebuild()
|
|
2815
2873
|
MockPaywallAddonDependencyFragment.model_rebuild()
|
|
2816
|
-
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
2817
2874
|
MockPaywallPriceFragment.model_rebuild()
|
|
2875
|
+
MockPaywallPackageEntitlementFragment.model_rebuild()
|
|
2818
2876
|
MockPaywallAddonFragment.model_rebuild()
|
|
2819
2877
|
MockPaywallPlanCompatiblePackageGroupsFragment.model_rebuild()
|
|
2820
2878
|
MockPaywallPlanFragment.model_rebuild()
|
|
2821
2879
|
PackagePublishedPayload.model_rebuild()
|
|
2880
|
+
PageInfoFragment.model_rebuild()
|
|
2822
2881
|
PaywallCalculatedPricePointsFragment.model_rebuild()
|
|
2823
2882
|
PaywallConfigurationFragment.model_rebuild()
|
|
2824
2883
|
PaywallCurrencyFragment.model_rebuild()
|
|
@@ -2832,5 +2891,6 @@ SubscriptionInvoicePreviewFragment.model_rebuild()
|
|
|
2832
2891
|
SubscriptionPreviewFragment.model_rebuild()
|
|
2833
2892
|
SubscriptionPreviewInvoiceFragment.model_rebuild()
|
|
2834
2893
|
SubscriptionPreviewV2Fragment.model_rebuild()
|
|
2894
|
+
SubscriptionQueryFragment.model_rebuild()
|
|
2835
2895
|
UsageHistoryFragment.model_rebuild()
|
|
2836
2896
|
UsageHistoryV2Fragment.model_rebuild()
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
|
+
# Source: operations.graphql
|
|
3
|
+
|
|
4
|
+
from typing import List
|
|
5
|
+
|
|
6
|
+
from stigg._vendors.pydantic import Field
|
|
7
|
+
|
|
8
|
+
from .base_model import BaseModel
|
|
9
|
+
from .fragments import PageInfoFragment, SubscriptionQueryFragment
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class Subscriptions(BaseModel):
|
|
13
|
+
subscriptions: "SubscriptionsSubscriptions"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SubscriptionsSubscriptions(BaseModel):
|
|
17
|
+
edges: List["SubscriptionsSubscriptionsEdges"]
|
|
18
|
+
page_info: "SubscriptionsSubscriptionsPageInfo" = Field(alias="pageInfo")
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class SubscriptionsSubscriptionsEdges(BaseModel):
|
|
22
|
+
node: "SubscriptionsSubscriptionsEdgesNode"
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class SubscriptionsSubscriptionsEdgesNode(SubscriptionQueryFragment):
|
|
26
|
+
pass
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class SubscriptionsSubscriptionsPageInfo(PageInfoFragment):
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
Subscriptions.model_rebuild()
|
|
34
|
+
SubscriptionsSubscriptions.model_rebuild()
|
|
35
|
+
SubscriptionsSubscriptionsEdges.model_rebuild()
|
|
@@ -106,16 +106,16 @@ 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=DHl_iE6Bp78GBTUNw0GkI3ZeO0f_y9tIgotpVa32SFA,70891
|
|
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=qW5_U5L86BYtKjVZduELBUP4DtJDHNaWahh4pnrXPs8,172727
|
|
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=rm-E2nr14bSGHcFKdvLlRnEI5TN6VB3k31fZpLhTKd8,172138
|
|
119
119
|
stigg/generated/create_subscription.py,sha256=vbpBJ_daXHcQDtvU3vbwSr2E7s4VGRHxqPavyTV3Mtk,457
|
|
120
120
|
stigg/generated/delegate_subscription_to_customer.py,sha256=0TgQDO0Hk-z7X7PGtqhvciqa8IjkToK9cpiX3Kqu_UY,561
|
|
121
121
|
stigg/generated/detach_customer_payment_method.py,sha256=ACXlC2xsGaUP723OrayFZQ9SbXxe8TtVUYdG1gqcYFc,523
|
|
@@ -123,7 +123,7 @@ stigg/generated/enums.py,sha256=Ax7idhOxqqwhmzBPImea0R-KRcq7j5EQNVAqUFbMl_8,3551
|
|
|
123
123
|
stigg/generated/estimate_subscription.py,sha256=c0_vg0A_Hi8fdjeGudWZ0WziUF9jcjX5rlRitGMAMaQ,479
|
|
124
124
|
stigg/generated/estimate_subscription_update.py,sha256=ZYIFqqHHDfzhrOn95QnMmPNTXZ7JrKWRlUFzk8fWwKA,528
|
|
125
125
|
stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
|
|
126
|
-
stigg/generated/fragments.py,sha256=
|
|
126
|
+
stigg/generated/fragments.py,sha256=WT0kJPiHdGWQ1jPQz-OuEn3Wn0Se7UVpo6sEHssXi7I,103124
|
|
127
127
|
stigg/generated/get_active_subscriptions.py,sha256=ngZ9jr8vzGI59wT8FhUFl46a8j9waoNjeZ1_lrcu2ww,513
|
|
128
128
|
stigg/generated/get_active_subscriptions_list.py,sha256=Awi9al2MXxdt_y7ZnWYZh8U3R9XiX50c7TyO4WZxyhw,541
|
|
129
129
|
stigg/generated/get_checkout_state.py,sha256=SAOXGAND879dwb7R5mr5LPZuPVuMUDwNR5M4mgmHv6w,409
|
|
@@ -155,12 +155,13 @@ stigg/generated/report_event.py,sha256=O_8Y2W-oGNLW0OeH1TtJUFmzTJexoXNoritIH-SUb
|
|
|
155
155
|
stigg/generated/report_usage.py,sha256=5J-nkJoVMi_JYWV50MTl78MHlzsC5035GxSih1S8c_w,377
|
|
156
156
|
stigg/generated/report_usage_bulk.py,sha256=QIJcyfKFe1urtQEzZ3hiVD0fZS00KFGsLTFE3sHnY9U,455
|
|
157
157
|
stigg/generated/revoke_promotional_entitlement.py,sha256=3F9pzVCy2rkjYNzp9RiOjaqoL7_CHXM_NWJLcRsI6e8,478
|
|
158
|
+
stigg/generated/subscriptions.py,sha256=WoeeNthunROOl-KWwOVN9mEj568nAeD3CWRj5AoV-k0,863
|
|
158
159
|
stigg/generated/transfer_subscription.py,sha256=FFYUD-I9EjeU5jvdq3a8fpdc7PmF-zC-9NyLcGXFHw8,473
|
|
159
160
|
stigg/generated/transfer_subscription_to_resource.py,sha256=4-N7quYhHpVTGPi6EV-U_dJRQZYoByALDy-z77UufyE,561
|
|
160
161
|
stigg/generated/unarchive_customer.py,sha256=0OVttDrNNOHp6xIpLfDj--XfZL0ogkSpy9eW71jND2k,441
|
|
161
162
|
stigg/generated/update_customer.py,sha256=DdbIKqG3AxIJie6Wk49m4dSVyXrQbY6UjhReZR6lkIM,403
|
|
162
163
|
stigg/generated/update_subscription.py,sha256=R7RdFcFh1oEz-AHLiMBW5XvpQTi3ucB3Z4r-LvZjHJQ,457
|
|
163
|
-
stigg_api_client_v2-2.
|
|
164
|
-
stigg_api_client_v2-2.
|
|
165
|
-
stigg_api_client_v2-2.
|
|
166
|
-
stigg_api_client_v2-2.
|
|
164
|
+
stigg_api_client_v2-2.443.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
|
|
165
|
+
stigg_api_client_v2-2.443.0.dist-info/METADATA,sha256=MAMv7GRKbxqU7PzcJA8NVeTm68xlUcNbCWbcPjlu_pg,2258
|
|
166
|
+
stigg_api_client_v2-2.443.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
167
|
+
stigg_api_client_v2-2.443.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|