stigg-api-client-v2 0.693.0__py3-none-any.whl → 5.9.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.
- stigg/_edge_utils.py +58 -0
- stigg/client.py +97 -21
- stigg/generated/__init__.py +734 -42
- stigg/generated/apply_subscription.py +4 -12
- stigg/generated/archive_customer.py +2 -3
- stigg/generated/async_base_client.py +187 -29
- stigg/generated/async_client.py +3659 -620
- stigg/generated/base_client.py +144 -23
- stigg/generated/base_model.py +16 -47
- stigg/generated/cancel_subscription.py +2 -3
- stigg/generated/cancel_subscription_updates.py +1 -4
- stigg/generated/client.py +3661 -616
- stigg/generated/create_payment_session.py +20 -0
- stigg/generated/create_subscription.py +2 -3
- stigg/generated/delegate_subscription_to_customer.py +22 -0
- stigg/generated/detach_customer_payment_method.py +20 -0
- stigg/generated/enums.py +426 -7
- stigg/generated/estimate_subscription.py +2 -3
- stigg/generated/estimate_subscription_update.py +2 -3
- stigg/generated/exceptions.py +9 -5
- stigg/generated/fragments.py +1864 -701
- stigg/generated/get_active_subscriptions.py +2 -3
- stigg/generated/get_active_subscriptions_list.py +22 -0
- stigg/generated/get_checkout_state.py +2 -3
- stigg/generated/get_coupons.py +4 -5
- stigg/generated/get_credit_balance.py +20 -0
- stigg/generated/get_credit_grants.py +36 -0
- stigg/generated/get_credit_ledger.py +25 -0
- stigg/generated/get_credit_usage.py +18 -0
- stigg/generated/get_customer_by_id.py +2 -3
- stigg/generated/get_customer_portal_by_ref_id.py +2 -3
- stigg/generated/get_customer_statistics.py +2 -3
- stigg/generated/get_entitlement.py +2 -3
- stigg/generated/get_entitlements.py +2 -3
- stigg/generated/get_entitlements_state.py +31 -0
- stigg/generated/get_mock_paywall.py +3 -5
- stigg/generated/get_paywall.py +2 -3
- stigg/generated/get_products.py +4 -5
- stigg/generated/get_sdk_configuration.py +3 -3
- stigg/generated/get_subscription.py +18 -0
- stigg/generated/get_subscriptions.py +35 -0
- stigg/generated/get_usage_history.py +2 -3
- stigg/generated/get_usage_history_v_2.py +18 -0
- stigg/generated/grant_credits.py +20 -0
- stigg/generated/grant_promotional_entitlements.py +2 -3
- stigg/generated/grant_promotional_entitlements_group.py +24 -0
- stigg/generated/import_customer.py +2 -3
- stigg/generated/import_customer_bulk.py +1 -4
- stigg/generated/import_subscriptions_bulk.py +1 -4
- stigg/generated/input_types.py +3871 -1878
- stigg/generated/migrate_subscription_to_latest.py +2 -3
- stigg/generated/preview_next_invoice.py +20 -0
- stigg/generated/preview_subscription.py +2 -3
- stigg/generated/provision_customer.py +4 -22
- stigg/generated/provision_subscription.py +4 -15
- stigg/generated/report_entitlement_check_requested.py +1 -4
- stigg/generated/report_event.py +1 -4
- stigg/generated/report_usage.py +6 -13
- stigg/generated/report_usage_bulk.py +22 -0
- stigg/generated/revoke_promotional_entitlement.py +5 -4
- stigg/generated/revoke_promotional_entitlements_group.py +24 -0
- stigg/generated/transfer_subscription.py +2 -3
- stigg/generated/transfer_subscription_to_resource.py +22 -0
- stigg/generated/unarchive_customer.py +2 -3
- stigg/generated/unlink_promotional_entitlements_group.py +24 -0
- stigg/generated/update_customer.py +2 -3
- stigg/generated/update_subscription.py +2 -3
- stigg/generated/void_credit_grant.py +18 -0
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +3 -4
- stigg_api_client_v2-5.9.0.dist-info/RECORD +73 -0
- stigg/edge_utils.py +0 -28
- stigg/generated/scalars.py +0 -6
- stigg_api_client_v2-0.693.0.dist-info/RECORD +0 -54
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/LICENSE +0 -0
- {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/WHEEL +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Generated by ariadne-codegen
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
2
|
# Source: operations.graphql
|
|
3
3
|
|
|
4
4
|
from pydantic import Field
|
|
@@ -17,5 +17,4 @@ class EstimateSubscriptionEstimateSubscription(SubscriptionPreviewFragment):
|
|
|
17
17
|
pass
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
EstimateSubscription.
|
|
21
|
-
EstimateSubscriptionEstimateSubscription.update_forward_refs()
|
|
20
|
+
EstimateSubscription.model_rebuild()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Generated by ariadne-codegen
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
2
|
# Source: operations.graphql
|
|
3
3
|
|
|
4
4
|
from pydantic import Field
|
|
@@ -17,5 +17,4 @@ class EstimateSubscriptionUpdateEstimateSubscriptionUpdate(SubscriptionPreviewFr
|
|
|
17
17
|
pass
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
EstimateSubscriptionUpdate.
|
|
21
|
-
EstimateSubscriptionUpdateEstimateSubscriptionUpdate.update_forward_refs()
|
|
20
|
+
EstimateSubscriptionUpdate.model_rebuild()
|
stigg/generated/exceptions.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Generated by ariadne-codegen
|
|
1
|
+
# Generated by ariadne-codegen
|
|
2
2
|
|
|
3
3
|
from typing import Any, Dict, List, Optional, Union
|
|
4
4
|
|
|
@@ -18,7 +18,7 @@ class GraphQLClientHttpError(GraphQLClientError):
|
|
|
18
18
|
return f"HTTP status code: {self.status_code}"
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class GraphQLClientInvalidResponseError(GraphQLClientError):
|
|
22
22
|
def __init__(self, response: httpx.Response) -> None:
|
|
23
23
|
self.response = response
|
|
24
24
|
|
|
@@ -45,7 +45,7 @@ class GraphQLClientGraphQLError(GraphQLClientError):
|
|
|
45
45
|
return self.message
|
|
46
46
|
|
|
47
47
|
@classmethod
|
|
48
|
-
def from_dict(cls, error:
|
|
48
|
+
def from_dict(cls, error: Dict[str, Any]) -> "GraphQLClientGraphQLError":
|
|
49
49
|
return cls(
|
|
50
50
|
message=error["message"],
|
|
51
51
|
locations=error.get("locations"),
|
|
@@ -56,7 +56,11 @@ class GraphQLClientGraphQLError(GraphQLClientError):
|
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
class GraphQLClientGraphQLMultiError(GraphQLClientError):
|
|
59
|
-
def __init__(
|
|
59
|
+
def __init__(
|
|
60
|
+
self,
|
|
61
|
+
errors: List[GraphQLClientGraphQLError],
|
|
62
|
+
data: Optional[Dict[str, Any]] = None,
|
|
63
|
+
):
|
|
60
64
|
self.errors = errors
|
|
61
65
|
self.data = data
|
|
62
66
|
|
|
@@ -65,7 +69,7 @@ class GraphQLClientGraphQLMultiError(GraphQLClientError):
|
|
|
65
69
|
|
|
66
70
|
@classmethod
|
|
67
71
|
def from_errors_dicts(
|
|
68
|
-
cls, errors_dicts: List[
|
|
72
|
+
cls, errors_dicts: List[Dict[str, Any]], data: Optional[Dict[str, Any]] = None
|
|
69
73
|
) -> "GraphQLClientGraphQLMultiError":
|
|
70
74
|
return cls(
|
|
71
75
|
errors=[GraphQLClientGraphQLError.from_dict(e) for e in errors_dicts],
|