stigg-api-client-v2 3.66.0__py3-none-any.whl → 3.68.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 +16 -0
- stigg/generated/async_client.py +46 -0
- stigg/generated/client.py +46 -0
- stigg/generated/create_payment_session.py +20 -0
- stigg/generated/fragments.py +432 -399
- {stigg_api_client_v2-3.66.0.dist-info → stigg_api_client_v2-3.68.0.dist-info}/METADATA +1 -1
- {stigg_api_client_v2-3.66.0.dist-info → stigg_api_client_v2-3.68.0.dist-info}/RECORD +9 -8
- {stigg_api_client_v2-3.66.0.dist-info → stigg_api_client_v2-3.68.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-3.66.0.dist-info → stigg_api_client_v2-3.68.0.dist-info}/WHEEL +0 -0
stigg/generated/__init__.py
CHANGED
|
@@ -10,6 +10,10 @@ from .cancel_subscription import (
|
|
|
10
10
|
CancelSubscriptionCancelSubscription,
|
|
11
11
|
)
|
|
12
12
|
from .cancel_subscription_updates import CancelSubscriptionUpdates
|
|
13
|
+
from .create_payment_session import (
|
|
14
|
+
CreatePaymentSession,
|
|
15
|
+
CreatePaymentSessionCreatePaymentSession,
|
|
16
|
+
)
|
|
13
17
|
from .create_subscription import (
|
|
14
18
|
CreateSubscription,
|
|
15
19
|
CreateSubscriptionCreateSubscription,
|
|
@@ -175,6 +179,8 @@ from .fragments import (
|
|
|
175
179
|
CheckoutStateFragment,
|
|
176
180
|
CheckoutStateFragmentActiveSubscription,
|
|
177
181
|
CheckoutStateFragmentBillingIntegration,
|
|
182
|
+
CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials,
|
|
183
|
+
CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials,
|
|
178
184
|
CheckoutStateFragmentBillingIntegrationCredentials,
|
|
179
185
|
CheckoutStateFragmentConfiguration,
|
|
180
186
|
CheckoutStateFragmentCustomer,
|
|
@@ -315,6 +321,7 @@ from .fragments import (
|
|
|
315
321
|
PackageEntitlementFragmentFeature,
|
|
316
322
|
PackagePublishedPayload,
|
|
317
323
|
PageInfoFragment,
|
|
324
|
+
PaymentSessionFragment,
|
|
318
325
|
PaywallCalculatedPricePointsFragment,
|
|
319
326
|
PaywallCalculatedPricePointsFragmentFeature,
|
|
320
327
|
PaywallConfigurationFragment,
|
|
@@ -385,6 +392,7 @@ from .fragments import (
|
|
|
385
392
|
SlimSubscriptionFragmentV2Plan,
|
|
386
393
|
SlimSubscriptionFragmentV2Resource,
|
|
387
394
|
SlimSubscriptionFragmentV2TrialConfiguration,
|
|
395
|
+
StripeCheckoutCredentialsFragment,
|
|
388
396
|
SubscriptionFragment,
|
|
389
397
|
SubscriptionFragmentAddons,
|
|
390
398
|
SubscriptionFragmentAddonsAddon,
|
|
@@ -519,6 +527,7 @@ from .fragments import (
|
|
|
519
527
|
UsageHistoryV2FragmentSeriesPoints,
|
|
520
528
|
UsageHistoryV2FragmentSeriesTags,
|
|
521
529
|
UsageUpdatedFragment,
|
|
530
|
+
ZuoraCheckoutCredentialsFragment,
|
|
522
531
|
)
|
|
523
532
|
from .get_active_subscriptions import (
|
|
524
533
|
GetActiveSubscriptions,
|
|
@@ -1096,6 +1105,8 @@ __all__ = [
|
|
|
1096
1105
|
"CheckoutStateFragment",
|
|
1097
1106
|
"CheckoutStateFragmentActiveSubscription",
|
|
1098
1107
|
"CheckoutStateFragmentBillingIntegration",
|
|
1108
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsStripeCheckoutCredentials",
|
|
1109
|
+
"CheckoutStateFragmentBillingIntegrationBillingCredentialsZuoraCheckoutCredentials",
|
|
1099
1110
|
"CheckoutStateFragmentBillingIntegrationCredentials",
|
|
1100
1111
|
"CheckoutStateFragmentConfiguration",
|
|
1101
1112
|
"CheckoutStateFragmentCustomer",
|
|
@@ -1133,6 +1144,8 @@ __all__ = [
|
|
|
1133
1144
|
"CreateOneProductInput",
|
|
1134
1145
|
"CreateOrUpdateAwsMarketplaceProductInput",
|
|
1135
1146
|
"CreatePackageGroup",
|
|
1147
|
+
"CreatePaymentSession",
|
|
1148
|
+
"CreatePaymentSessionCreatePaymentSession",
|
|
1136
1149
|
"CreateSubscription",
|
|
1137
1150
|
"CreateSubscriptionCreateSubscription",
|
|
1138
1151
|
"CreateWorkflowTriggerInput",
|
|
@@ -1542,6 +1555,7 @@ __all__ = [
|
|
|
1542
1555
|
"PaymentCollectionFilterComparison",
|
|
1543
1556
|
"PaymentCollectionMethod",
|
|
1544
1557
|
"PaymentMethodType",
|
|
1558
|
+
"PaymentSessionFragment",
|
|
1545
1559
|
"PaymentSessionInput",
|
|
1546
1560
|
"PaywallCalculatedPricePointsFragment",
|
|
1547
1561
|
"PaywallCalculatedPricePointsFragmentFeature",
|
|
@@ -1710,6 +1724,7 @@ __all__ = [
|
|
|
1710
1724
|
"StartExperimentInput",
|
|
1711
1725
|
"StopExperimentInput",
|
|
1712
1726
|
"StringFieldComparison",
|
|
1727
|
+
"StripeCheckoutCredentialsFragment",
|
|
1713
1728
|
"StripeCredentialsInput",
|
|
1714
1729
|
"StripeCustomerSearchInput",
|
|
1715
1730
|
"StripeProductSearchInput",
|
|
@@ -1988,6 +2003,7 @@ __all__ = [
|
|
|
1988
2003
|
"WorkflowsLoginInput",
|
|
1989
2004
|
"YearlyAccordingTo",
|
|
1990
2005
|
"YearlyResetPeriodConfigInput",
|
|
2006
|
+
"ZuoraCheckoutCredentialsFragment",
|
|
1991
2007
|
"ZuoraCredentialsInput",
|
|
1992
2008
|
"experimentGroupType",
|
|
1993
2009
|
]
|
stigg/generated/async_client.py
CHANGED
|
@@ -9,6 +9,7 @@ from .async_base_client import AsyncBaseClient
|
|
|
9
9
|
from .base_model import UNSET, UnsetType
|
|
10
10
|
from .cancel_subscription import CancelSubscription
|
|
11
11
|
from .cancel_subscription_updates import CancelSubscriptionUpdates
|
|
12
|
+
from .create_payment_session import CreatePaymentSession
|
|
12
13
|
from .create_subscription import CreateSubscription
|
|
13
14
|
from .delegate_subscription_to_customer import DelegateSubscriptionToCustomer
|
|
14
15
|
from .detach_customer_payment_method import DetachCustomerPaymentMethod
|
|
@@ -64,6 +65,7 @@ from .input_types import (
|
|
|
64
65
|
ImportCustomerBulkInput,
|
|
65
66
|
ImportCustomerInput,
|
|
66
67
|
ImportSubscriptionsBulkInput,
|
|
68
|
+
PaymentSessionInput,
|
|
67
69
|
PreviewNextInvoiceInput,
|
|
68
70
|
PreviewSubscriptionInput,
|
|
69
71
|
ProvisionCustomerInput,
|
|
@@ -3081,6 +3083,32 @@ class AsyncClient(AsyncBaseClient):
|
|
|
3081
3083
|
data = self.get_data(response)
|
|
3082
3084
|
return UnlinkPromotionalEntitlementsGroup.model_validate(data)
|
|
3083
3085
|
|
|
3086
|
+
async def create_payment_session(
|
|
3087
|
+
self, input: PaymentSessionInput, **kwargs: Any
|
|
3088
|
+
) -> CreatePaymentSession:
|
|
3089
|
+
query = gql(
|
|
3090
|
+
"""
|
|
3091
|
+
mutation CreatePaymentSession($input: PaymentSessionInput!) {
|
|
3092
|
+
createPaymentSession(input: $input) {
|
|
3093
|
+
...PaymentSessionFragment
|
|
3094
|
+
}
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
fragment PaymentSessionFragment on PaymentSession {
|
|
3098
|
+
token
|
|
3099
|
+
}
|
|
3100
|
+
"""
|
|
3101
|
+
)
|
|
3102
|
+
variables: Dict[str, object] = {"input": input}
|
|
3103
|
+
response = await self.execute(
|
|
3104
|
+
query=query,
|
|
3105
|
+
operation_name="CreatePaymentSession",
|
|
3106
|
+
variables=variables,
|
|
3107
|
+
**kwargs
|
|
3108
|
+
)
|
|
3109
|
+
data = self.get_data(response)
|
|
3110
|
+
return CreatePaymentSession.model_validate(data)
|
|
3111
|
+
|
|
3084
3112
|
async def get_customer_by_id(
|
|
3085
3113
|
self, input: GetCustomerByRefIdInput, **kwargs: Any
|
|
3086
3114
|
) -> GetCustomerById:
|
|
@@ -5779,6 +5807,14 @@ class AsyncClient(AsyncBaseClient):
|
|
|
5779
5807
|
}
|
|
5780
5808
|
billingIntegration {
|
|
5781
5809
|
billingIdentifier
|
|
5810
|
+
billingCredentials {
|
|
5811
|
+
... on StripeCheckoutCredentials {
|
|
5812
|
+
...StripeCheckoutCredentialsFragment
|
|
5813
|
+
}
|
|
5814
|
+
... on ZuoraCheckoutCredentials {
|
|
5815
|
+
...ZuoraCheckoutCredentialsFragment
|
|
5816
|
+
}
|
|
5817
|
+
}
|
|
5782
5818
|
credentials {
|
|
5783
5819
|
accountId
|
|
5784
5820
|
publicKey
|
|
@@ -6101,6 +6137,12 @@ class AsyncClient(AsyncBaseClient):
|
|
|
6101
6137
|
awsMarketplaceCustomerId
|
|
6102
6138
|
}
|
|
6103
6139
|
|
|
6140
|
+
fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {
|
|
6141
|
+
accountId
|
|
6142
|
+
setupSecret
|
|
6143
|
+
publicKey
|
|
6144
|
+
}
|
|
6145
|
+
|
|
6104
6146
|
fragment SubscriptionFragment on CustomerSubscription {
|
|
6105
6147
|
id
|
|
6106
6148
|
subscriptionId
|
|
@@ -6244,6 +6286,10 @@ class AsyncClient(AsyncBaseClient):
|
|
|
6244
6286
|
...FontVariantFragment
|
|
6245
6287
|
}
|
|
6246
6288
|
}
|
|
6289
|
+
|
|
6290
|
+
fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {
|
|
6291
|
+
publishableKey
|
|
6292
|
+
}
|
|
6247
6293
|
"""
|
|
6248
6294
|
)
|
|
6249
6295
|
variables: Dict[str, object] = {"input": input}
|
stigg/generated/client.py
CHANGED
|
@@ -9,6 +9,7 @@ from .base_client import BaseClient
|
|
|
9
9
|
from .base_model import UNSET, UnsetType
|
|
10
10
|
from .cancel_subscription import CancelSubscription
|
|
11
11
|
from .cancel_subscription_updates import CancelSubscriptionUpdates
|
|
12
|
+
from .create_payment_session import CreatePaymentSession
|
|
12
13
|
from .create_subscription import CreateSubscription
|
|
13
14
|
from .delegate_subscription_to_customer import DelegateSubscriptionToCustomer
|
|
14
15
|
from .detach_customer_payment_method import DetachCustomerPaymentMethod
|
|
@@ -64,6 +65,7 @@ from .input_types import (
|
|
|
64
65
|
ImportCustomerBulkInput,
|
|
65
66
|
ImportCustomerInput,
|
|
66
67
|
ImportSubscriptionsBulkInput,
|
|
68
|
+
PaymentSessionInput,
|
|
67
69
|
PreviewNextInvoiceInput,
|
|
68
70
|
PreviewSubscriptionInput,
|
|
69
71
|
ProvisionCustomerInput,
|
|
@@ -3077,6 +3079,32 @@ class Client(BaseClient):
|
|
|
3077
3079
|
data = self.get_data(response)
|
|
3078
3080
|
return UnlinkPromotionalEntitlementsGroup.model_validate(data)
|
|
3079
3081
|
|
|
3082
|
+
def create_payment_session(
|
|
3083
|
+
self, input: PaymentSessionInput, **kwargs: Any
|
|
3084
|
+
) -> CreatePaymentSession:
|
|
3085
|
+
query = gql(
|
|
3086
|
+
"""
|
|
3087
|
+
mutation CreatePaymentSession($input: PaymentSessionInput!) {
|
|
3088
|
+
createPaymentSession(input: $input) {
|
|
3089
|
+
...PaymentSessionFragment
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
3092
|
+
|
|
3093
|
+
fragment PaymentSessionFragment on PaymentSession {
|
|
3094
|
+
token
|
|
3095
|
+
}
|
|
3096
|
+
"""
|
|
3097
|
+
)
|
|
3098
|
+
variables: Dict[str, object] = {"input": input}
|
|
3099
|
+
response = self.execute(
|
|
3100
|
+
query=query,
|
|
3101
|
+
operation_name="CreatePaymentSession",
|
|
3102
|
+
variables=variables,
|
|
3103
|
+
**kwargs
|
|
3104
|
+
)
|
|
3105
|
+
data = self.get_data(response)
|
|
3106
|
+
return CreatePaymentSession.model_validate(data)
|
|
3107
|
+
|
|
3080
3108
|
def get_customer_by_id(
|
|
3081
3109
|
self, input: GetCustomerByRefIdInput, **kwargs: Any
|
|
3082
3110
|
) -> GetCustomerById:
|
|
@@ -5775,6 +5803,14 @@ class Client(BaseClient):
|
|
|
5775
5803
|
}
|
|
5776
5804
|
billingIntegration {
|
|
5777
5805
|
billingIdentifier
|
|
5806
|
+
billingCredentials {
|
|
5807
|
+
... on StripeCheckoutCredentials {
|
|
5808
|
+
...StripeCheckoutCredentialsFragment
|
|
5809
|
+
}
|
|
5810
|
+
... on ZuoraCheckoutCredentials {
|
|
5811
|
+
...ZuoraCheckoutCredentialsFragment
|
|
5812
|
+
}
|
|
5813
|
+
}
|
|
5778
5814
|
credentials {
|
|
5779
5815
|
accountId
|
|
5780
5816
|
publicKey
|
|
@@ -6097,6 +6133,12 @@ class Client(BaseClient):
|
|
|
6097
6133
|
awsMarketplaceCustomerId
|
|
6098
6134
|
}
|
|
6099
6135
|
|
|
6136
|
+
fragment StripeCheckoutCredentialsFragment on StripeCheckoutCredentials {
|
|
6137
|
+
accountId
|
|
6138
|
+
setupSecret
|
|
6139
|
+
publicKey
|
|
6140
|
+
}
|
|
6141
|
+
|
|
6100
6142
|
fragment SubscriptionFragment on CustomerSubscription {
|
|
6101
6143
|
id
|
|
6102
6144
|
subscriptionId
|
|
@@ -6240,6 +6282,10 @@ class Client(BaseClient):
|
|
|
6240
6282
|
...FontVariantFragment
|
|
6241
6283
|
}
|
|
6242
6284
|
}
|
|
6285
|
+
|
|
6286
|
+
fragment ZuoraCheckoutCredentialsFragment on ZuoraCheckoutCredentials {
|
|
6287
|
+
publishableKey
|
|
6288
|
+
}
|
|
6243
6289
|
"""
|
|
6244
6290
|
)
|
|
6245
6291
|
variables: Dict[str, object] = {"input": input}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
|
+
# Source: operations.graphql
|
|
3
|
+
|
|
4
|
+
from stigg._vendors.pydantic import Field
|
|
5
|
+
|
|
6
|
+
from .base_model import BaseModel
|
|
7
|
+
from .fragments import PaymentSessionFragment
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class CreatePaymentSession(BaseModel):
|
|
11
|
+
create_payment_session: "CreatePaymentSessionCreatePaymentSession" = Field(
|
|
12
|
+
alias="createPaymentSession"
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class CreatePaymentSessionCreatePaymentSession(PaymentSessionFragment):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
CreatePaymentSession.model_rebuild()
|