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
@@ -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-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 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-09-28 16:21
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-09-28 16:21
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-09-28 16:21
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-09-28 16:21
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-09-28 16:21
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-09-28 16:21
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-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 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()
@@ -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 SlimCustomerFragment
8
+
9
+
10
+ class UnarchiveCustomer(BaseModel):
11
+ unarchive_customer: "UnarchiveCustomerUnarchiveCustomer" = Field(
12
+ alias="unarchiveCustomer"
13
+ )
14
+
15
+
16
+ class UnarchiveCustomerUnarchiveCustomer(SlimCustomerFragment):
17
+ pass
18
+
19
+
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-09-28 16:21
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-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 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()
@@ -0,0 +1,14 @@
1
+ STIGG SDK LICENSE TERMS AND CONDITIONS
2
+
3
+ THESE SDK LICENSE TERMS AND CONDITIONS (THIS "AGREEMENT") CONSTITUTE A BINDING CONTRACT BETWEEN YOU AND STIGG INC. ("Stigg"). BY DOWNLOADING, INSTALLING OR USING THE SDK (DEFINED BELOW), YOU ACKNOWLEDGE THAT YOU HAVE READ AND UNDERSTOOD, AND AGREE TO BE BOUND BY, THIS AGREEMENT. YOU MAY NOT USE THE SDK IF YOU DO NOT ACCEPT THE TERMS OF THIS AGREEMENT.
4
+ License Grant. Stigg grants you a limited, worldwide, royalty-free, non-assignable, non-exclusive, and non-sublicensable license, subject to the restrictions stated below, to install, run and use Stigg's proprietary [ ] software development kit, and specifically including the Stigg system files, packaged APIs, and add-ons (the "SDK"), for the sole purpose of accessing and using Stigg's proprietary, cloud-based software platform (the "Platform") in accordance with a Stigg subscription (whether free, paid or otherwise), and provided that you have an active account with Stigg.
5
+ You may allow your contractor(s) to use the SDK, provided they are acting on your behalf to exercise license rights granted in this Agreement and provided further that you will be responsible for their compliance with this Agreement in such use. You may make copies of the SDK to the extent reasonably necessary to exercise the license rights granted in this Agreement. The SDK is licensed, not sold. Stigg reserves all other rights.
6
+ Restrictions. Unless applicable law gives you more rights despite this limitation, you will not (and have no right to): (a) copy, "frame" or "mirror" the SDK; (b) sell, assign, transfer, lease, rent, sublicense, or otherwise distribute or make available the SDK to any third party (such as offering it as part of a time-sharing, outsourcing or service bureau environment); (c) publicly perform, display or communicate the SDK; (d) modify, alter, adapt, arrange, or translate the SDK; (e) decompile, disassemble, decrypt, reverse engineer, extract, or otherwise attempt to discover the source code or non-literal aspects (such as the underlying structure, sequence, organization, file formats, non-public APIs, ideas, or algorithms) of, the SDK; (f) remove, alter, or conceal any copyright, trademark, or other proprietary rights notices displayed on or in the SDK; (g) circumvent, disable or otherwise interfere with security-related or technical features or protocols of the SDK; (h) make a derivative work of the SDK, or use it to develop any service or product that is the same as (or substantially similar to) it; (i) store or transmit any robot, malware, Trojan horse, spyware, or similar malicious item intended (or that has the potential) to damage or disrupt the SDK.
7
+ Support Services. Stigg is not obligated under this Agreement to provide any support services for the SDK. Without limiting the generality of the foregoing, you may make support services requests to Stigg via email at support@stigg.io. Any support provided is “as is”, “with all faults”, and without warranty of any kind.
8
+ DISCLAIMER OF WARRANTY. THE SDK IS LICENSED “AS IS”, WITHOUT ANY WARRANTIES, GUARANTEES, OR CONDITIONS. STIGG EXCLUDES ALL IMPLIED WARRANTIES, INCLUDING MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.
9
+ LIMITATION OF LIABILITY.
10
+ IN NO EVENT SHALL STIGG, ITS AFFILIATES, OR ITS LICENSORS BE LIABLE UNDER, OR OTHERWISE IN CONNECTION WITH, THIS AGREEMENT FOR ANY CLAIM, DAMAGES (WHETHER DIRECT OR INDIRECT), LOSSES, OR OTHER LIABILITY, REGARDLESS OF THE THEORY OR BASIS OF LIABILITY, INCLUDING WITHOUT LIMITATION BREACH OF WARRANTY, NEGLIGENCE, MISREPRESENTATION, STRICT LIABILITY, OR OTHER CONTRACT, TORT OR STATUTORY LIABILITY.
11
+ THIS SECTION (LIMITATION OF LIABILITY) SHALL APPLY: (i) TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW (SUCH AS, FOR EXAMPLE, IF A JURISDICTION DOES NOT ALLOW THE EXCLUSION OR THE LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OF LIABILITY FOR PERSONAL INJURY OR DEATH CAUSED BY NEGLIGENCE); (ii) EVEN IF STIGG OR ITS AFFILIATES HAVE BEEN ADVISED, OR SHOULD HAVE BEEN AWARE, OF THE POSSIBILITY OF LOSSES, DAMAGES, OR COSTS; AND (iii) EVEN IF ANY REMEDY IN THIS AGREEMENT FAILS OF ITS ESSENTIAL PURPOSE.
12
+ Termination. You may terminate this Agreement by destroying all copies of the SDK. This Agreement shall automatically terminate without notice if (a) you no longer have an active account with Stigg, (b) your subscription to the Platform has expired or terminated; or (c) you fail to comply with any of the terms of this Agreement. Upon termination of this Agreement, you shall promptly destroy all copies of the SDK.
13
+ Entire Agreement. This Agreement is the entire agreement for the SDK.
14
+ Governing Law. This Agreement is governed by the substantive laws of the State of Israel, without regard to any conflicts of laws rules or principles, and you and Stigg agree to submit to the exclusive jurisdiction of, and venue in, the courts of Tel Aviv-Yafo in any dispute arising out of or relating to this Agreement. Notwithstanding the foregoing, equitable relief may be sought at any time in any court of competent jurisdiction.
@@ -1,14 +1,18 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client-v2
3
- Version: 0.579.8
3
+ Version: 5.9.0
4
4
  Summary:
5
+ License: STIGG SDK LICENSE
5
6
  Author: Stigg
6
7
  Author-email: support@stigg.io
7
8
  Requires-Python: >=3.9,<4.0
9
+ Classifier: License :: Other/Proprietary License
8
10
  Classifier: Programming Language :: Python :: 3
9
11
  Classifier: Programming Language :: Python :: 3.9
10
12
  Classifier: Programming Language :: Python :: 3.10
11
13
  Classifier: Programming Language :: Python :: 3.11
14
+ Requires-Dist: httpx (>=0.23)
15
+ Requires-Dist: pydantic (>=2.12,<2.13)
12
16
  Requires-Dist: tenacity (>=8.2.2,<9.0.0)
13
17
  Description-Content-Type: text/markdown
14
18
 
@@ -47,7 +51,6 @@ Provision a customer
47
51
  ```python
48
52
 
49
53
 
50
-
51
54
  import os
52
55
  from stigg import Stigg
53
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-09-28 16:21
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,51 +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=h0EZrht-N8Kv_RZp6ul9zvNYC-cHeAOG12NuXXbDn6w,48610
5
- stigg/generated/apply_subscription.py,sha256=VWfavdZbTsWjO9esA8LKav_uh8pvwsIbLiZXRGCVCmo,751
6
- stigg/generated/archive_customer.py,sha256=tUC_tVUKGJG_pf25a9GmnJgYbuFE6OSu-6op2BFkh1k,460
7
- stigg/generated/async_base_client.py,sha256=bJMn9GOcDUkIdpQNsxuhWE8lG2o6WaL1mR5nAh05XYo,7303
8
- stigg/generated/async_client.py,sha256=LmRZogoKWxpRls8bvDZkUWP4_zjTnh5c6hjih2IbXz4,107203
9
- stigg/generated/base_client.py,sha256=jBWN-7-CcTEgCvblRnRoV8isrES4AeYsYXaTDvsuRIk,2731
10
- stigg/generated/base_model.py,sha256=ni-63l7vvhin-8wsFmEKIlt0BwJfcwGD-vInLO9YZCs,1951
11
- stigg/generated/cancel_subscription.py,sha256=lX6iT3iS0vn18pDOlXVOcUIXPR_AiQq2L8aDUwkaNJg,527
12
- stigg/generated/cancel_subscription_updates.py,sha256=lwYepNjEvhuDM3YXvuDXQ0ML2g03nigJFEUmQVo78qM,296
13
- stigg/generated/client.py,sha256=Lrpj_cY18yJPnOfj37uNjZ_gt65Na08JPkxAqlQbuhA,106704
14
- stigg/generated/create_subscription.py,sha256=RUaj57UdG75WT0X4cUmki7T-4iD2JeS0lUdVtXxiLA8,527
15
- stigg/generated/enums.py,sha256=waaunZ0b0MXFvqcfGmL_4_us7bBwsaRPSq_1zliAy28,25087
16
- stigg/generated/estimate_subscription.py,sha256=VQQtQobbOKQ4-74Nv9oCwP2H4iCw_VfHVGRxHl8J20o,553
17
- stigg/generated/estimate_subscription_update.py,sha256=14rbfkoBIVLk7boFkXpxfZxrqE1N3C9OhuQ7nuhfQ-E,614
18
- stigg/generated/exceptions.py,sha256=jRaHwfnU9Ye-uTfFwUj8pe2bF4m7z_3yN6H9cMW-s1k,2366
19
- stigg/generated/fragments.py,sha256=xTany8jQsSQoZ7x3TPfGzH4pGv7sk88M-LK-KWKpQUw,71806
20
- stigg/generated/get_active_subscriptions.py,sha256=fmYPCILpNI_YxpPx591UsrJt-AEG3ronlH5MrtUew5I,591
21
- stigg/generated/get_checkout_state.py,sha256=u4MWQo497fsyappovpo82CKwWPOKCQrA_GdIWWutNPI,472
22
- stigg/generated/get_coupons.py,sha256=dwdDrT1iMwecxaqu3sAd2Rmg98EmLh9n0afgF0xYU58,634
23
- stigg/generated/get_customer_by_id.py,sha256=Xh0Ll5lfIR5G6sofDwPOgQJBuYM6Y5fsX-OcewCJh48,572
24
- stigg/generated/get_customer_portal_by_ref_id.py,sha256=Yo0k5NcEJdpzCUzz0owIXjQg7CzdcaC0aSolgohKaQA,533
25
- stigg/generated/get_entitlement.py,sha256=eGQNJ-ce8IB4mEgaCjskVm50QeTPLY0D6an-ty_26p8,390
26
- stigg/generated/get_entitlements.py,sha256=LVJwWvcoKsdZf2kKqYGRv_Mpb1HF1ziH2k7x4An2Bsg,430
27
- stigg/generated/get_mock_paywall.py,sha256=i7l7dDHX87L896nM-UXq9zQf47UHeuAnw2-6NJ5hskk,893
28
- stigg/generated/get_paywall.py,sha256=OQsntTMDjWFo1NOpjv_X-mAjojx1B5olfpRZeYnOlQY,346
29
- stigg/generated/get_products.py,sha256=wo8tHvmFTqwJQVXilvBlcz6rOl7ML1_VmDPPxisjK6o,657
30
- stigg/generated/get_sdk_configuration.py,sha256=6YMJV1rD9iagBzFEX7SvpYVu2pbrGMOCqxTrcY0JvlY,650
31
- stigg/generated/get_usage_history.py,sha256=6zz9AsiOrNwRqpccmzDFjSXy2JvnZP7E422Mn8cN0Lw,460
32
- stigg/generated/grant_promotional_entitlements.py,sha256=ibSZ_wZMwyo_5yilLCcTdCyTUfdoTnnokZnDA6sQH1o,677
33
- stigg/generated/import_customer.py,sha256=8ByjWxQyz5LWU2ilKMQunsn_qPkXz938hkZWBtujRe0,465
34
- stigg/generated/import_customer_bulk.py,sha256=c9fkri-aSfoLXJhtCvjkbo3z4_PgeQOH1X44ZlJfdEM,332
35
- stigg/generated/import_subscriptions_bulk.py,sha256=YWrrWgXPCFSw1Y8uhN5JG2clVAL31jFUI4tXqXU__Pw,350
36
- stigg/generated/input_types.py,sha256=ReMq5IdOALxqFZiCed7KBFnTyH6ooq39MV1HtBlQgEc,136606
37
- stigg/generated/migrate_subscription_to_latest.py,sha256=0RPTSPp7cmwxFIylpeZ0vmER96Z2hZ3tTLMzew08IMc,604
38
- stigg/generated/preview_subscription.py,sha256=eCH33NyoyaTjdirnBHKKUC4VWpdTtT-3wOr6EzCVy5Y,547
39
- stigg/generated/provision_customer.py,sha256=znqMbn0YyMTlMkS1gNuNn0Qmg8uO8csWxjHeEQ5EcVk,1161
40
- stigg/generated/provision_subscription.py,sha256=J2aUta7y3zMHTS5GGu7YLykaZSq-7TX_i8KxqrSOs50,971
41
- stigg/generated/report_entitlement_check_requested.py,sha256=AUivYhysQkdukgnJveyMkTKBBoZED0ZSnfB3Q02YnSI,359
42
- stigg/generated/report_event.py,sha256=HAXNTl4ezvrAX_Nmgk9eB6kjcP3xtw59ROeg4m2F1wc,301
43
- stigg/generated/report_usage.py,sha256=sfftjvrc588RRMyjmqrQVI2O13Nj8tQKHI3lCAYZdeo,637
44
- stigg/generated/revoke_promotional_entitlement.py,sha256=dOtW2Xa55vifXPvZMYG2P5BJL2oAiAXEFNL4H21FcSs,568
45
- stigg/generated/scalars.py,sha256=MQNI6C4-EzugjEmlWLX60AnGxv2dMwCBWreZk_wc6iY,220
46
- stigg/generated/transfer_subscription.py,sha256=A_PEe3VEPdppjk_7kZ8T1kHzaBFxkZdYsGo8lxtT_mM,547
47
- stigg/generated/update_customer.py,sha256=69zTXKJSFUeh79BXIjFV_Q-Xn_pmZcU5XktvDsbglSw,465
48
- stigg/generated/update_subscription.py,sha256=5tJBqhXVsrqcILJYdxipjmKMRf4s8W_1NTAo4yZGpxQ,527
49
- stigg_api_client_v2-0.579.8.dist-info/METADATA,sha256=4oJm_qnhE8h048gsV6bSiwqsES7eDfG2NoK17qgmJ-w,2075
50
- stigg_api_client_v2-0.579.8.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
51
- stigg_api_client_v2-0.579.8.dist-info/RECORD,,