stigg-api-client-v2 2.442.0__py3-none-any.whl → 2.446.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 +30 -0
- stigg/generated/async_client.py +78 -1
- stigg/generated/client.py +78 -1
- stigg/generated/fragments.py +494 -434
- stigg/generated/subscriptions.py +35 -0
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.446.1.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.446.1.dist-info}/RECORD +9 -8
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.446.1.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-2.442.0.dist-info → stigg_api_client_v2-2.446.1.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:
|