stigg-api-client-v2 0.579.8__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.
Files changed (75) hide show
  1. stigg/_edge_utils.py +58 -0
  2. stigg/client.py +97 -21
  3. stigg/generated/__init__.py +777 -44
  4. stigg/generated/apply_subscription.py +4 -12
  5. stigg/generated/archive_customer.py +2 -3
  6. stigg/generated/async_base_client.py +187 -29
  7. stigg/generated/async_client.py +3701 -587
  8. stigg/generated/base_client.py +144 -23
  9. stigg/generated/base_model.py +16 -47
  10. stigg/generated/cancel_subscription.py +2 -3
  11. stigg/generated/cancel_subscription_updates.py +1 -4
  12. stigg/generated/client.py +3703 -585
  13. stigg/generated/create_payment_session.py +20 -0
  14. stigg/generated/create_subscription.py +2 -3
  15. stigg/generated/delegate_subscription_to_customer.py +22 -0
  16. stigg/generated/detach_customer_payment_method.py +20 -0
  17. stigg/generated/enums.py +449 -7
  18. stigg/generated/estimate_subscription.py +2 -3
  19. stigg/generated/estimate_subscription_update.py +2 -3
  20. stigg/generated/exceptions.py +9 -5
  21. stigg/generated/fragments.py +1983 -788
  22. stigg/generated/get_active_subscriptions.py +2 -3
  23. stigg/generated/get_active_subscriptions_list.py +22 -0
  24. stigg/generated/get_checkout_state.py +2 -3
  25. stigg/generated/get_coupons.py +4 -5
  26. stigg/generated/get_credit_balance.py +20 -0
  27. stigg/generated/get_credit_grants.py +36 -0
  28. stigg/generated/get_credit_ledger.py +25 -0
  29. stigg/generated/get_credit_usage.py +18 -0
  30. stigg/generated/get_customer_by_id.py +2 -3
  31. stigg/generated/get_customer_portal_by_ref_id.py +2 -3
  32. stigg/generated/get_customer_statistics.py +22 -0
  33. stigg/generated/get_entitlement.py +2 -3
  34. stigg/generated/get_entitlements.py +2 -3
  35. stigg/generated/get_entitlements_state.py +31 -0
  36. stigg/generated/get_mock_paywall.py +3 -5
  37. stigg/generated/get_paywall.py +2 -3
  38. stigg/generated/get_products.py +4 -5
  39. stigg/generated/get_sdk_configuration.py +3 -3
  40. stigg/generated/get_subscription.py +18 -0
  41. stigg/generated/get_subscriptions.py +35 -0
  42. stigg/generated/get_usage_history.py +2 -3
  43. stigg/generated/get_usage_history_v_2.py +18 -0
  44. stigg/generated/grant_credits.py +20 -0
  45. stigg/generated/grant_promotional_entitlements.py +2 -3
  46. stigg/generated/grant_promotional_entitlements_group.py +24 -0
  47. stigg/generated/import_customer.py +2 -3
  48. stigg/generated/import_customer_bulk.py +1 -4
  49. stigg/generated/import_subscriptions_bulk.py +1 -4
  50. stigg/generated/input_types.py +3950 -1825
  51. stigg/generated/migrate_subscription_to_latest.py +2 -3
  52. stigg/generated/preview_next_invoice.py +20 -0
  53. stigg/generated/preview_subscription.py +2 -3
  54. stigg/generated/provision_customer.py +4 -22
  55. stigg/generated/provision_subscription.py +4 -15
  56. stigg/generated/report_entitlement_check_requested.py +1 -4
  57. stigg/generated/report_event.py +1 -4
  58. stigg/generated/report_usage.py +6 -13
  59. stigg/generated/report_usage_bulk.py +22 -0
  60. stigg/generated/revoke_promotional_entitlement.py +5 -4
  61. stigg/generated/revoke_promotional_entitlements_group.py +24 -0
  62. stigg/generated/transfer_subscription.py +2 -3
  63. stigg/generated/transfer_subscription_to_resource.py +22 -0
  64. stigg/generated/unarchive_customer.py +20 -0
  65. stigg/generated/unlink_promotional_entitlements_group.py +24 -0
  66. stigg/generated/update_customer.py +2 -3
  67. stigg/generated/update_subscription.py +2 -3
  68. stigg/generated/void_credit_grant.py +18 -0
  69. stigg_api_client_v2-5.9.0.dist-info/LICENSE +14 -0
  70. {stigg_api_client_v2-0.579.8.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +5 -2
  71. stigg_api_client_v2-5.9.0.dist-info/RECORD +73 -0
  72. stigg/edge_utils.py +0 -28
  73. stigg/generated/scalars.py +0 -6
  74. stigg_api_client_v2-0.579.8.dist-info/RECORD +0 -51
  75. {stigg_api_client_v2-0.579.8.dist-info → stigg_api_client_v2-5.9.0.dist-info}/WHEEL +0 -0
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-09-28 16:21
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.update_forward_refs()
21
- EstimateSubscriptionEstimateSubscription.update_forward_refs()
20
+ EstimateSubscription.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-09-28 16:21
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.update_forward_refs()
21
- EstimateSubscriptionUpdateEstimateSubscriptionUpdate.update_forward_refs()
20
+ EstimateSubscriptionUpdate.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-09-28 16:21
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 GraphQlClientInvalidResponseError(GraphQLClientError):
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: dict[str, Any]) -> "GraphQLClientGraphQLError":
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__(self, errors: List[GraphQLClientGraphQLError], data: dict[str, Any]):
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[dict[str, Any]], data: dict[str, Any]
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],