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.
Files changed (75) hide show
  1. stigg/_edge_utils.py +58 -0
  2. stigg/client.py +97 -21
  3. stigg/generated/__init__.py +734 -42
  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 +3659 -620
  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 +3661 -616
  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 +426 -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 +1864 -701
  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 +2 -3
  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 +3871 -1878
  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 +2 -3
  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-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/METADATA +3 -4
  70. stigg_api_client_v2-5.9.0.dist-info/RECORD +73 -0
  71. stigg/edge_utils.py +0 -28
  72. stigg/generated/scalars.py +0 -6
  73. stigg_api_client_v2-0.693.0.dist-info/RECORD +0 -54
  74. {stigg_api_client_v2-0.693.0.dist-info → stigg_api_client_v2-5.9.0.dist-info}/LICENSE +0 -0
  75. {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 on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -16,5 +16,4 @@ class MigrateSubscriptionToLatestMigrateSubscriptionToLatest(BaseModel):
16
16
  subscription_id: str = Field(alias="subscriptionId")
17
17
 
18
18
 
19
- MigrateSubscriptionToLatest.update_forward_refs()
20
- MigrateSubscriptionToLatestMigrateSubscriptionToLatest.update_forward_refs()
19
+ MigrateSubscriptionToLatest.model_rebuild()
@@ -0,0 +1,20 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from pydantic import Field
5
+
6
+ from .base_model import BaseModel
7
+ from .fragments import SubscriptionInvoicePreviewFragment
8
+
9
+
10
+ class PreviewNextInvoice(BaseModel):
11
+ preview_next_invoice: "PreviewNextInvoicePreviewNextInvoice" = Field(
12
+ alias="previewNextInvoice"
13
+ )
14
+
15
+
16
+ class PreviewNextInvoicePreviewNextInvoice(SubscriptionInvoicePreviewFragment):
17
+ pass
18
+
19
+
20
+ PreviewNextInvoice.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -17,5 +17,4 @@ class PreviewSubscriptionPreviewSubscription(SubscriptionPreviewV2Fragment):
17
17
  pass
18
18
 
19
19
 
20
- PreviewSubscription.update_forward_refs()
21
- PreviewSubscriptionPreviewSubscription.update_forward_refs()
20
+ PreviewSubscription.model_rebuild()
@@ -1,13 +1,10 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
- from typing import Optional
5
-
6
4
  from pydantic import Field
7
5
 
8
6
  from .base_model import BaseModel
9
- from .enums import SubscriptionDecisionStrategy
10
- from .fragments import SlimCustomerFragment, SlimSubscriptionFragment
7
+ from .fragments import ProvisionCustomerFragment
11
8
 
12
9
 
13
10
  class ProvisionCustomer(BaseModel):
@@ -16,23 +13,8 @@ class ProvisionCustomer(BaseModel):
16
13
  )
17
14
 
18
15
 
19
- class ProvisionCustomerProvisionCustomer(BaseModel):
20
- customer: "ProvisionCustomerProvisionCustomerCustomer"
21
- subscription_decision_strategy: SubscriptionDecisionStrategy = Field(
22
- alias="subscriptionDecisionStrategy"
23
- )
24
- subscription: Optional["ProvisionCustomerProvisionCustomerSubscription"]
25
-
26
-
27
- class ProvisionCustomerProvisionCustomerCustomer(SlimCustomerFragment):
28
- pass
29
-
30
-
31
- class ProvisionCustomerProvisionCustomerSubscription(SlimSubscriptionFragment):
16
+ class ProvisionCustomerProvisionCustomer(ProvisionCustomerFragment):
32
17
  pass
33
18
 
34
19
 
35
- ProvisionCustomer.update_forward_refs()
36
- ProvisionCustomerProvisionCustomer.update_forward_refs()
37
- ProvisionCustomerProvisionCustomerCustomer.update_forward_refs()
38
- ProvisionCustomerProvisionCustomerSubscription.update_forward_refs()
20
+ ProvisionCustomer.model_rebuild()
@@ -1,13 +1,10 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
- from typing import Optional
5
-
6
4
  from pydantic import Field
7
5
 
8
6
  from .base_model import BaseModel
9
- from .enums import ProvisionSubscriptionStatus
10
- from .fragments import SlimSubscriptionFragment
7
+ from .fragments import ProvisionSubscriptionFragment
11
8
 
12
9
 
13
10
  class ProvisionSubscription(BaseModel):
@@ -16,16 +13,8 @@ class ProvisionSubscription(BaseModel):
16
13
  )
17
14
 
18
15
 
19
- class ProvisionSubscriptionProvisionSubscription(BaseModel):
20
- checkout_url: Optional[str] = Field(alias="checkoutUrl")
21
- status: ProvisionSubscriptionStatus
22
- subscription: Optional["ProvisionSubscriptionProvisionSubscriptionSubscription"]
23
-
24
-
25
- class ProvisionSubscriptionProvisionSubscriptionSubscription(SlimSubscriptionFragment):
16
+ class ProvisionSubscriptionProvisionSubscription(ProvisionSubscriptionFragment):
26
17
  pass
27
18
 
28
19
 
29
- ProvisionSubscription.update_forward_refs()
30
- ProvisionSubscriptionProvisionSubscription.update_forward_refs()
31
- ProvisionSubscriptionProvisionSubscriptionSubscription.update_forward_refs()
20
+ ProvisionSubscription.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -10,6 +10,3 @@ class ReportEntitlementCheckRequested(BaseModel):
10
10
  report_entitlement_check_requested: bool = Field(
11
11
  alias="reportEntitlementCheckRequested"
12
12
  )
13
-
14
-
15
- ReportEntitlementCheckRequested.update_forward_refs()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from typing import Optional
@@ -10,6 +10,3 @@ from .base_model import BaseModel
10
10
 
11
11
  class ReportEvent(BaseModel):
12
12
  report_event: Optional[str] = Field(alias="reportEvent")
13
-
14
-
15
- ReportEvent.update_forward_refs()
@@ -1,25 +1,18 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
- from typing import Any, Optional
5
-
6
4
  from pydantic import Field
7
5
 
8
6
  from .base_model import BaseModel
7
+ from .fragments import ReportUsageFragment
9
8
 
10
9
 
11
10
  class ReportUsage(BaseModel):
12
- create_usage_measurement: "ReportUsageCreateUsageMeasurement" = Field(
13
- alias="createUsageMeasurement"
14
- )
11
+ report_usage: "ReportUsageReportUsage" = Field(alias="reportUsage")
15
12
 
16
13
 
17
- class ReportUsageCreateUsageMeasurement(BaseModel):
18
- id: str
19
- current_usage: Optional[float] = Field(alias="currentUsage")
20
- next_reset_date: Optional[Any] = Field(alias="nextResetDate")
21
- timestamp: Any
14
+ class ReportUsageReportUsage(ReportUsageFragment):
15
+ pass
22
16
 
23
17
 
24
- ReportUsage.update_forward_refs()
25
- ReportUsageCreateUsageMeasurement.update_forward_refs()
18
+ ReportUsage.model_rebuild()
@@ -0,0 +1,22 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import ReportUsageFragment
10
+
11
+
12
+ class ReportUsageBulk(BaseModel):
13
+ report_usage_bulk: List["ReportUsageBulkReportUsageBulk"] = Field(
14
+ alias="reportUsageBulk"
15
+ )
16
+
17
+
18
+ class ReportUsageBulkReportUsageBulk(ReportUsageFragment):
19
+ pass
20
+
21
+
22
+ ReportUsageBulk.model_rebuild()
@@ -1,6 +1,8 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
+ from typing import Any
5
+
4
6
  from pydantic import Field
5
7
 
6
8
  from .base_model import BaseModel
@@ -13,8 +15,7 @@ class RevokePromotionalEntitlement(BaseModel):
13
15
 
14
16
 
15
17
  class RevokePromotionalEntitlementRevokePromotionalEntitlement(BaseModel):
16
- id: str
18
+ id: Any
17
19
 
18
20
 
19
- RevokePromotionalEntitlement.update_forward_refs()
20
- RevokePromotionalEntitlementRevokePromotionalEntitlement.update_forward_refs()
21
+ RevokePromotionalEntitlement.model_rebuild()
@@ -0,0 +1,24 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import PromotionalEntitlementFragment
10
+
11
+
12
+ class RevokePromotionalEntitlementsGroup(BaseModel):
13
+ revoke_promotional_entitlements_group: List[
14
+ "RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup"
15
+ ] = Field(alias="revokePromotionalEntitlementsGroup")
16
+
17
+
18
+ class RevokePromotionalEntitlementsGroupRevokePromotionalEntitlementsGroup(
19
+ PromotionalEntitlementFragment
20
+ ):
21
+ pass
22
+
23
+
24
+ RevokePromotionalEntitlementsGroup.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -17,5 +17,4 @@ class TransferSubscriptionTransferSubscription(SlimSubscriptionFragment):
17
17
  pass
18
18
 
19
19
 
20
- TransferSubscription.update_forward_refs()
21
- TransferSubscriptionTransferSubscription.update_forward_refs()
20
+ TransferSubscription.model_rebuild()
@@ -0,0 +1,22 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from pydantic import Field
5
+
6
+ from .base_model import BaseModel
7
+ from .fragments import SlimSubscriptionFragment
8
+
9
+
10
+ class TransferSubscriptionToResource(BaseModel):
11
+ transfer_subscription_to_resource: "TransferSubscriptionToResourceTransferSubscriptionToResource" = Field(
12
+ alias="transferSubscriptionToResource"
13
+ )
14
+
15
+
16
+ class TransferSubscriptionToResourceTransferSubscriptionToResource(
17
+ SlimSubscriptionFragment
18
+ ):
19
+ pass
20
+
21
+
22
+ TransferSubscriptionToResource.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -17,5 +17,4 @@ class UnarchiveCustomerUnarchiveCustomer(SlimCustomerFragment):
17
17
  pass
18
18
 
19
19
 
20
- UnarchiveCustomer.update_forward_refs()
21
- UnarchiveCustomerUnarchiveCustomer.update_forward_refs()
20
+ UnarchiveCustomer.model_rebuild()
@@ -0,0 +1,24 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from typing import List
5
+
6
+ from pydantic import Field
7
+
8
+ from .base_model import BaseModel
9
+ from .fragments import PromotionalEntitlementFragment
10
+
11
+
12
+ class UnlinkPromotionalEntitlementsGroup(BaseModel):
13
+ unlink_promotional_entitlements_group: List[
14
+ "UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup"
15
+ ] = Field(alias="unlinkPromotionalEntitlementsGroup")
16
+
17
+
18
+ class UnlinkPromotionalEntitlementsGroupUnlinkPromotionalEntitlementsGroup(
19
+ PromotionalEntitlementFragment
20
+ ):
21
+ pass
22
+
23
+
24
+ UnlinkPromotionalEntitlementsGroup.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -15,5 +15,4 @@ class UpdateCustomerUpdateCustomer(SlimCustomerFragment):
15
15
  pass
16
16
 
17
17
 
18
- UpdateCustomer.update_forward_refs()
19
- UpdateCustomerUpdateCustomer.update_forward_refs()
18
+ UpdateCustomer.model_rebuild()
@@ -1,4 +1,4 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
1
+ # Generated by ariadne-codegen
2
2
  # Source: operations.graphql
3
3
 
4
4
  from pydantic import Field
@@ -17,5 +17,4 @@ class UpdateSubscriptionUpdateSubscription(SlimSubscriptionFragment):
17
17
  pass
18
18
 
19
19
 
20
- UpdateSubscription.update_forward_refs()
21
- UpdateSubscriptionUpdateSubscription.update_forward_refs()
20
+ UpdateSubscription.model_rebuild()
@@ -0,0 +1,18 @@
1
+ # Generated by ariadne-codegen
2
+ # Source: operations.graphql
3
+
4
+ from pydantic import Field
5
+
6
+ from .base_model import BaseModel
7
+ from .fragments import CreditGrantFragment
8
+
9
+
10
+ class VoidCreditGrant(BaseModel):
11
+ void_credit_grant: "VoidCreditGrantVoidCreditGrant" = Field(alias="voidCreditGrant")
12
+
13
+
14
+ class VoidCreditGrantVoidCreditGrant(CreditGrantFragment):
15
+ pass
16
+
17
+
18
+ VoidCreditGrant.model_rebuild()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 0.693.0
3
+ Version: 5.9.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -11,8 +11,8 @@ Classifier: Programming Language :: Python :: 3
11
11
  Classifier: Programming Language :: Python :: 3.9
12
12
  Classifier: Programming Language :: Python :: 3.10
13
13
  Classifier: Programming Language :: Python :: 3.11
14
- Requires-Dist: httpx (==0.24.1)
15
- Requires-Dist: pydantic (==1.10.8)
14
+ Requires-Dist: httpx (>=0.23)
15
+ Requires-Dist: pydantic (>=2.12,<2.13)
16
16
  Requires-Dist: tenacity (>=8.2.2,<9.0.0)
17
17
  Description-Content-Type: text/markdown
18
18
 
@@ -51,7 +51,6 @@ Provision a customer
51
51
  ```python
52
52
 
53
53
 
54
-
55
54
  import os
56
55
  from stigg import Stigg
57
56
  from stigg.generated import ProvisionCustomerInput
@@ -0,0 +1,73 @@
1
+ stigg/__init__.py,sha256=YwoeMu-4pnPmBuwk_J2WDX650IYLgMlDMnNsKNM-BSk,62
2
+ stigg/_edge_utils.py,sha256=-yInfLe0McvP1CCXQznWlOl9s89AYB9mWOyqKENa5pc,1999
3
+ stigg/client.py,sha256=RWrVnxo9zHFXka8KJVE4sMgyek70ispQk0vqOINCvM0,8335
4
+ stigg/generated/__init__.py,sha256=MK945Wk0_5heAt2k88Jgb-JN2fuc4_jBiEWK5784IYs,78875
5
+ stigg/generated/apply_subscription.py,sha256=L8K3v_Ditw_77l95wkLXKA4lXLRTWyItPr5jRscpiLc,436
6
+ stigg/generated/archive_customer.py,sha256=2JzRosGo-Wz5Pn2964qOG3Isho34BJRgg-xYeHOKc34,381
7
+ stigg/generated/async_base_client.py,sha256=v0KUVwe2_RIQa8Mn7l_yD5McUe7B03vhclJ9SP4XGgw,12578
8
+ stigg/generated/async_client.py,sha256=rc_1ParBesAoV_g5ClRtrDvpNWMgUz_2GE9_9NfQOQA,193629
9
+ stigg/generated/base_client.py,sha256=FkTYIxw4Ia7aeKmMtK6duXGLunZourPfDOAKd44KYh0,6659
10
+ stigg/generated/base_model.py,sha256=o2d-DixASFCGztr3rTiGX0AwgFu7Awr7EgD70FI8a-I,620
11
+ stigg/generated/cancel_subscription.py,sha256=-2IgoBtD4Ly9p31HhRfYB8jf3euYWOsna7xZWM3nV_M,442
12
+ stigg/generated/cancel_subscription_updates.py,sha256=zgITX4sU_F5oO5NsAuCv1NogfBI0dgQRRXV1aHurUT8,226
13
+ stigg/generated/client.py,sha256=0uI-zCHZoJYS1LYkWVAph-m6jc8GGuS7sqnJtTO48ME,192894
14
+ stigg/generated/create_payment_session.py,sha256=pmmKFkoZCmYrGzRkrq7JZ2dcJXa46Sf_EUzLwEDMXao,455
15
+ stigg/generated/create_subscription.py,sha256=MDNR0KcZMpCAWgmImdBp7URYBNkpKO2AprclVQ5xUhI,442
16
+ stigg/generated/delegate_subscription_to_customer.py,sha256=KcY3qY0Ron0VFlgvZxNMt_EJXtbs34AYPHbXF3UObT0,546
17
+ stigg/generated/detach_customer_payment_method.py,sha256=spjlLIjdjECxnMAuDsnxD2QtAGATm_aGfYQ5_IZVDAc,508
18
+ stigg/generated/enums.py,sha256=H7D_QAHxXbpG8Haomm8eG1iA5D0ma2Mu7Czo5e3JERM,40281
19
+ stigg/generated/estimate_subscription.py,sha256=uKvzUmXojLiJ0eYhbanrtNm7bidN6Dv4SyQ27Fkd2Bk,464
20
+ stigg/generated/estimate_subscription_update.py,sha256=dKFqqTJbJ5WqYitdCvB9QAS3-OvVYXlEBUNWOrv3ZGE,513
21
+ stigg/generated/exceptions.py,sha256=OQu-ZYCCV4VyMWTd1HR8gIjIK2CrA_JMlFxqOAJugWY,2411
22
+ stigg/generated/fragments.py,sha256=rcJvd_rHxoMgczBTqr_vV6zbZmjtXqv6gUZdzrV1Ny4,111362
23
+ stigg/generated/get_active_subscriptions.py,sha256=QsP6T8uCm-6ZmXCdsSUceLwygnsO8pz9eQRYiMcgFO0,498
24
+ stigg/generated/get_active_subscriptions_list.py,sha256=-VZfmPubVwdIzkczXMkkrjAvNQpiLhZAskQ_bzgjlZo,526
25
+ stigg/generated/get_checkout_state.py,sha256=FpZZYRC-RevEb6VOwudvH9-up2dEbwzFrHa3X7bgBzo,394
26
+ stigg/generated/get_coupons.py,sha256=KiDyZKrIWLlXCORhEfwjZWw6urYALU6Z7dUn-1xc3j4,547
27
+ stigg/generated/get_credit_balance.py,sha256=3PkRS6G45df5D64TrwhYxww72m43FPwwYx8UwUyAlZg,453
28
+ stigg/generated/get_credit_grants.py,sha256=wTsfSlEP8PB6r3KCGxiYnbK8F5Ddw8z6pbEikD7rRUg,929
29
+ stigg/generated/get_credit_ledger.py,sha256=hLhtjQOA9uyDqtc1ZfMK70QJyzu-ZYhYOEcm9XkrFco,568
30
+ stigg/generated/get_credit_usage.py,sha256=seFXx2f6Wb3VXS87DNJ9kJeFP6SmdgGcXDIAabYGzK0,374
31
+ stigg/generated/get_customer_by_id.py,sha256=XotwuuBJWCZpGK1JIwqJUDCtis8dpUUQRYGZZCK0S6c,490
32
+ stigg/generated/get_customer_portal_by_ref_id.py,sha256=s4OJiHsLf40afo9f6s9lx74dtRObZp0_yJbqJsymbH8,446
33
+ stigg/generated/get_customer_statistics.py,sha256=3OU5Nu2AzzVnYQ7BRe1O8v-7Wa_TmEZa2G1Y5gH1i0I,500
34
+ stigg/generated/get_entitlement.py,sha256=gWJdx41Qu9eYc0ktxkb-r0dtfmdiZJABzPyp2RVHA4w,316
35
+ stigg/generated/get_entitlements.py,sha256=wnCoYCrWWZVgVSpfsXHYgS3agVJADMaZWcUwV7jb3NI,354
36
+ stigg/generated/get_entitlements_state.py,sha256=8akYLbA3eAn_ZU_JPXDLNcIFAbe9hBb8T0q5pm87kik,848
37
+ stigg/generated/get_mock_paywall.py,sha256=uvvF790tb9nsWAEiUPvcM4bZPjeFUnmDPFJ0MphqUJE,747
38
+ stigg/generated/get_paywall.py,sha256=kfgwz9cfpgg4FAcAAhXxOOe5OjAQQraufWNabnAgW5E,280
39
+ stigg/generated/get_products.py,sha256=Zzq8FAAsml-X14PISP9BcS0E8B8J7N5IDSCrnH2vD1g,568
40
+ stigg/generated/get_sdk_configuration.py,sha256=_7Q7QBnYTLuInVJSOm3QUGDB_qrfVO-ylFVIwgF2D0M,632
41
+ stigg/generated/get_subscription.py,sha256=FTH4yn4vhf1Qt6nYygd7bZyNTUkHCb_MGCg22-0jXq8,396
42
+ stigg/generated/get_subscriptions.py,sha256=To0SgvzWEX5MGaC4tPOlcN6Aqqge8qoz2EFFXQfcsVQ,884
43
+ stigg/generated/get_usage_history.py,sha256=3i1bt8hJ2vmKsSyKqQSgWwoxKoersqqlBZu0AI1jE6g,384
44
+ stigg/generated/get_usage_history_v_2.py,sha256=uqNW2yqWK92ncoM218KDBhLgzMJsp61zeJP31eJ0PEk,406
45
+ stigg/generated/grant_credits.py,sha256=1XiHIhnA7-41obWJY2Sc97KZGTfcpWSUiWz0ZwNPpRE,405
46
+ stigg/generated/grant_promotional_entitlements.py,sha256=PTnPpa_c4Wzxwyk34GHx0_a1B0NPIbmmqj9v5J9Yhig,572
47
+ stigg/generated/grant_promotional_entitlements_group.py,sha256=SlRQF1dj2Qd-ZgfO0N6l6bB8d-c8gj47PtjUKU-8EjU,613
48
+ stigg/generated/import_customer.py,sha256=nlBpadvZ1ZWSRkRIX8r-3BB5cFql63DjT3bUNbCHc8o,388
49
+ stigg/generated/import_customer_bulk.py,sha256=VqUmHVpr2yd0fsYPsd-5xf8g3ZF5kWzmKYZpk3cZx3Y,269
50
+ stigg/generated/import_subscriptions_bulk.py,sha256=-ED0T5qBHZ42rlrDXlm8ZN3W10HNU4SCI-CNshCW960,282
51
+ stigg/generated/input_types.py,sha256=885JvbiVlNZ5QpLKGTWaqM7PqG2IiOUTk0KzFK-OYDQ,221102
52
+ stigg/generated/migrate_subscription_to_latest.py,sha256=TN8Qs3ZWHklVzvgVmWsD4MkIhH3Fpb8y6WfwMcNP4mA,501
53
+ stigg/generated/preview_next_invoice.py,sha256=a6OI4wazfkiM_Z7iYQv8pC7twa7mNpBNfM_HBglvXZ8,463
54
+ stigg/generated/preview_subscription.py,sha256=AnbGcOh98oka9_WebjHoDHLvmcVUKOvl6SNtxjueA_g,460
55
+ stigg/generated/provision_customer.py,sha256=vUwS298vqJcTCtOvGfnXD139mJMwitYGQK06zoZaPAM,436
56
+ stigg/generated/provision_subscription.py,sha256=KllXLyW1pCfHiLpYYeyR7SfAkboeOZFjeeAAY8P9n_k,476
57
+ stigg/generated/report_entitlement_check_requested.py,sha256=2m-zvCjJff5YywrkhrZksriJmWGQhifETzBJRRMLx7I,283
58
+ stigg/generated/report_event.py,sha256=W4ypSNRp5_-uyEHczVKlxwZiiYZEMGhU5lFPFstV6Yo,245
59
+ stigg/generated/report_usage.py,sha256=SQUNKVo8SgBt_0zD5aliBCWVIKpGA__knYUnPnCZuPs,362
60
+ stigg/generated/report_usage_bulk.py,sha256=hj-JoNAwMGORGKikzBQxDOnADGVEhw2y8DecgvsgWIU,440
61
+ stigg/generated/revoke_promotional_entitlement.py,sha256=T00IBjWD4O1FhTq243PT2EV-gkLonyU5J6ane2VwloI,487
62
+ stigg/generated/revoke_promotional_entitlements_group.py,sha256=Rcu1x7f1oItmXgLA1PsP4hcZBD8_OxC2DYjOhcrskjA,621
63
+ stigg/generated/transfer_subscription.py,sha256=Ny3RTnUhv4ZWHZYr3LYGS9rN-q96FmPfJ2G8dInZTro,458
64
+ stigg/generated/transfer_subscription_to_resource.py,sha256=_CwjzEnCIHikBE_wXmW4Ofa7SdMcXnE5qmbleYuMkw4,546
65
+ stigg/generated/unarchive_customer.py,sha256=BpGlGufKEPitxppOXOm6Wqlnq0PiQQuZAQBCLDAgNzg,426
66
+ stigg/generated/unlink_promotional_entitlements_group.py,sha256=VSAxCi9eXVBOA7Z2pVPptrEWVuKQa5Rgq_i87flANjY,621
67
+ stigg/generated/update_customer.py,sha256=G08JmLyk_49noDMUqC5hwJ-z64UiNNTEoR6KuZM2am0,388
68
+ stigg/generated/update_subscription.py,sha256=ApK5LmIIwALLaDDvRzluJNDhwYfv3aeeEA2_2zDdmBM,442
69
+ stigg/generated/void_credit_grant.py,sha256=IZPZPzWHDfQa9TBLT2m1It2A5oylyYHywzGooKsBpbY,395
70
+ stigg_api_client_v2-5.9.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
71
+ stigg_api_client_v2-5.9.0.dist-info/METADATA,sha256=8_u3VTbwCU1WE1MStQWdD4isJ13F5z4a4Oq7a1h5yMQ,2217
72
+ stigg_api_client_v2-5.9.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
73
+ stigg_api_client_v2-5.9.0.dist-info/RECORD,,
stigg/edge_utils.py DELETED
@@ -1,28 +0,0 @@
1
- from typing import Tuple, Dict
2
-
3
- from stigg.generated import FetchEntitlementsQuery, GetPaywallInput
4
-
5
-
6
- def build_get_entitlements_data(edge_url: str, query: FetchEntitlementsQuery) -> Tuple[str, Dict]:
7
- url = f"{edge_url}/v1/c/{query.customer_id}/entitlements.json"
8
- params = {}
9
- if query.resource_id is not None:
10
- params["resourceId"] = query.resource_id
11
-
12
- return url, params
13
-
14
-
15
- def build_get_paywall_data(edge_url: str, _input: GetPaywallInput) -> Tuple[str, Dict]:
16
- if _input.product_id is not None:
17
- url = f"{edge_url}/v1/p/{_input.product_id}/paywall.json"
18
- else:
19
- url = f"{edge_url}/v1/paywall.json"
20
-
21
- params = {}
22
- if _input.billing_country_code is not None:
23
- params["billingCountryCode"] = _input.billing_country_code
24
-
25
- if _input.fetch_all_countries_prices is not None:
26
- params["fetchAllCountriesPrices"] = _input.fetch_all_countries_prices
27
-
28
- return url, params
@@ -1,6 +0,0 @@
1
- # Generated by ariadne-codegen on 2023-12-07 19:22
2
-
3
- from typing import Any, Callable, Dict
4
-
5
- SCALARS_PARSE_FUNCTIONS: Dict[Any, Callable[[Any], Any]] = {}
6
- SCALARS_SERIALIZE_FUNCTIONS: Dict[Any, Callable[[Any], Any]] = {}
@@ -1,54 +0,0 @@
1
- stigg/__init__.py,sha256=YwoeMu-4pnPmBuwk_J2WDX650IYLgMlDMnNsKNM-BSk,62
2
- stigg/client.py,sha256=klSJ_BB83IX96gIJur8ZOuecDwgEOBbZZwCHqQrlVaQ,4711
3
- stigg/edge_utils.py,sha256=BTSKub6XtuT8rstNH9TE-GjFMTVdcBFaYCdiN6YRrOs,932
4
- stigg/generated/__init__.py,sha256=28_kBs4IcWP5r2Jysh-Bz6VnprKeagfqgju1dHAgqzo,50094
5
- stigg/generated/apply_subscription.py,sha256=F634toFREmol7hnjedOVSzoaxH5l3tU8xfB-KI__YYY,751
6
- stigg/generated/archive_customer.py,sha256=R7WAHUzIsUtLgyfaHOmxpftZrX8L0Cd9yq9aQ8JMubs,460
7
- stigg/generated/async_base_client.py,sha256=fZF_L2qiRlMPh9pkUptRAfjCu3yt8jKjIdfVSPe-SD4,7303
8
- stigg/generated/async_client.py,sha256=PJ5rcXddnwAWYRwxnr7rOAV-yUMkSudQ978V0b7BFcQ,109537
9
- stigg/generated/base_client.py,sha256=hsPAk5nMVLG1ubInN0BAyem3yrULU6ogGqpacsxzHCQ,2731
10
- stigg/generated/base_model.py,sha256=Zw9Vr-SfHlQ3gNp7OdFYV2Kto4_GP3Ypzd6D2mTTBqk,1951
11
- stigg/generated/cancel_subscription.py,sha256=H5cJPUFpUziRhVUmutm7r-e_XFLkX-NR6bdhnOsWExQ,527
12
- stigg/generated/cancel_subscription_updates.py,sha256=pK0dtKqc4mF_CAM8jzxPtZvYF4ThRTnFCNOiS1WXZQs,296
13
- stigg/generated/client.py,sha256=QR9YyMNuFI70VY0RAzsMgFJUedyuIeBwQnL-Z401qR8,109000
14
- stigg/generated/create_subscription.py,sha256=PI0Q4YFHIb0HDUJN98E_RiXkofutdj5sCh_rotBdwDA,527
15
- stigg/generated/enums.py,sha256=NaYyE_PvA9kQiy-43cukHciBZE3W74SffDm3LujNk_c,26217
16
- stigg/generated/estimate_subscription.py,sha256=q-aqmw1WcK4ShguSyD0tNhsUZsdBkxayL-B3NkB0SIE,553
17
- stigg/generated/estimate_subscription_update.py,sha256=2dwhoABqVHcVdJHZsRKNdVA3X8tIfkdj4bCqFqO3fS8,614
18
- stigg/generated/exceptions.py,sha256=U51SipCnlbSa0aaf6_y9adR5Uek2IJcPNS2EKJg1Zrk,2366
19
- stigg/generated/fragments.py,sha256=jVxQMBviDC2FnqAi8ttkCr7r-O1JFZRaUCLXJty_aSQ,73201
20
- stigg/generated/get_active_subscriptions.py,sha256=RI1N7BqeWdwxqMt-z4umf4ZCWemVN-DI76sphOuGjX0,591
21
- stigg/generated/get_checkout_state.py,sha256=jbAH4vCROAGsL_l4OnkACAnj2qU9vTN9dL5WwGZ-9Vw,472
22
- stigg/generated/get_coupons.py,sha256=RQoBYhPi5nyeEn2LdjzJPmPlMuOGCqxvjJL0PHVI35s,634
23
- stigg/generated/get_customer_by_id.py,sha256=d0jAdw5Qi7dnXp9Sg_5cEFM1dfB5u35hpDNcCtm7Xms,572
24
- stigg/generated/get_customer_portal_by_ref_id.py,sha256=uN8OlPIP9pNyZyPdizjZdaSHDyqNfzyATy6GYCq5Vkg,533
25
- stigg/generated/get_customer_statistics.py,sha256=Tl2KTGSVNq-dGOt-4QfhzneYI1EJNmmjBpMqcJWM-sU,588
26
- stigg/generated/get_entitlement.py,sha256=l2hmVurulYj5KBLilcOsAxw4ntZHCWjarTJQPRI1AH4,390
27
- stigg/generated/get_entitlements.py,sha256=P2gk4hT8Cel8UbD6TXXco9Q25Bov1Tn5hvtC0CydK0E,430
28
- stigg/generated/get_mock_paywall.py,sha256=vQ5RmdK5dW9DzMFaJ0_rx8x6BUQV4mPz-riwn1lve78,893
29
- stigg/generated/get_paywall.py,sha256=A_YJFtRy5Yp-KsKoZYSidzehcCzZUxhXUxjcmZQ8urE,346
30
- stigg/generated/get_products.py,sha256=paGy-hKPeM69vEvAXMacbI97yFPPfIGwmyHLTIdHO_g,657
31
- stigg/generated/get_sdk_configuration.py,sha256=NtJkRab6wpQtpMSC8-JHY_wAlwK8LVdiLa_UK_FJErM,650
32
- stigg/generated/get_usage_history.py,sha256=OhIGrLlFXXcurZBh5NsrN2rPSSLPJ8iyw_JGorSnwIg,460
33
- stigg/generated/grant_promotional_entitlements.py,sha256=6aU7WW4kA1PCgqVlPJsLTSyw9y9KauHeO6SI3DULwRg,677
34
- stigg/generated/import_customer.py,sha256=SbQsi2WJM1McsPrgRhrf66ldcVKk2bKNJv8JmIgkZDk,465
35
- stigg/generated/import_customer_bulk.py,sha256=RmAc-K9BWzg5svCFbLqvsUer6A4xdJzA4gIw81bkr2c,332
36
- stigg/generated/import_subscriptions_bulk.py,sha256=og-z470cCTxaqah02IUOE0nXa0rZRMMGqTuCsO5T2oA,350
37
- stigg/generated/input_types.py,sha256=-8GQAI9M8Fz8HVmawSbTUgW593U4Sf1pOeVJG57J_2A,141873
38
- stigg/generated/migrate_subscription_to_latest.py,sha256=ieXkBEvfd9Jt6fN-fjB2MrqQ4giO8_5iobNHwDXdJp0,604
39
- stigg/generated/preview_subscription.py,sha256=gPLtf7awuD28gPkHk7lPqiMQa7ttkeRLstKGWgPWW98,547
40
- stigg/generated/provision_customer.py,sha256=dxAjxbNMlCXGqaW8UpnOR9JgK3hVOwAJ52pgllL7clk,1161
41
- stigg/generated/provision_subscription.py,sha256=8y1v0_CLz8Rmg53VLnH_2W52CsgWVoAqDnLlyGh9lH4,971
42
- stigg/generated/report_entitlement_check_requested.py,sha256=Q4DK3FgYy6N-Z6aklHthCX-rcDvv6tjhmw1BUWXsvXw,359
43
- stigg/generated/report_event.py,sha256=L0NEgVU8GnbJZe-ogBkdAe1XgRGVskrRPDKpxLigbpo,301
44
- stigg/generated/report_usage.py,sha256=QJDfCKKayDDmhsQjOvHki3C3IDEvUptqZIoDdpTgB5E,637
45
- stigg/generated/revoke_promotional_entitlement.py,sha256=El_bsHrXb2Y4q2ZQZq6tEFFLisbpniI5APERYIo2CjM,568
46
- stigg/generated/scalars.py,sha256=G732kO6xw3amrGZ6J0xYfJTku-0fF-jRUnwnlJgS8g0,220
47
- stigg/generated/transfer_subscription.py,sha256=rTtS_su-UJkZdLhfLH7HIo6LFcgKtoOsOv-fXBvGuZg,547
48
- stigg/generated/unarchive_customer.py,sha256=uUPrZT7rr6-O6UeABAlcE71U_AYMM2PmZFHSkm26HP8,509
49
- stigg/generated/update_customer.py,sha256=_XpeglpqkUQTvB4yKD8YIPqmmcADaWRSfgSUftlWSM8,465
50
- stigg/generated/update_subscription.py,sha256=40IqcXjPszqlvMFNGdvpE3akN5bYepnGy4OofR4iRL4,527
51
- stigg_api_client_v2-0.693.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
52
- stigg_api_client_v2-0.693.0.dist-info/METADATA,sha256=75bTELr6w0c7-19CLJhREMAkG0Q32IJYm-Bf5TA3zl0,2218
53
- stigg_api_client_v2-0.693.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
54
- stigg_api_client_v2-0.693.0.dist-info/RECORD,,