stigg-api-client 3.36.0__tar.gz → 3.38.0__tar.gz
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 might be problematic. Click here for more details.
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/PKG-INFO +1 -1
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/pyproject.toml +1 -1
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/stigg/generated/operations.py +63 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/LICENSE +0 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/README.md +0 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/stigg/__init__.py +0 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/stigg/client.py +0 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/stigg/generated/__init__.py +0 -0
- {stigg_api_client-3.36.0 → stigg_api_client-3.38.0}/stigg/generated/schema.py +0 -0
|
@@ -1427,6 +1427,43 @@ def fragment_schedule_variables_fragment():
|
|
|
1427
1427
|
return _frag
|
|
1428
1428
|
|
|
1429
1429
|
|
|
1430
|
+
def fragment_credit_grant_fragment():
|
|
1431
|
+
_frag = sgqlc.operation.Fragment(_schema.CreditGrant, 'CreditGrantFragment')
|
|
1432
|
+
_frag.grant_id()
|
|
1433
|
+
_frag.amount()
|
|
1434
|
+
_frag.comment()
|
|
1435
|
+
_frag.currency_id()
|
|
1436
|
+
_frag.customer_id()
|
|
1437
|
+
_frag.display_name()
|
|
1438
|
+
_frag.effective_at()
|
|
1439
|
+
_frag.expire_at()
|
|
1440
|
+
_frag.grant_type()
|
|
1441
|
+
_frag.priority()
|
|
1442
|
+
_frag.consumed_amount()
|
|
1443
|
+
_frag_cost = _frag.cost()
|
|
1444
|
+
_frag_cost.amount()
|
|
1445
|
+
_frag_cost.currency()
|
|
1446
|
+
_frag.created_at()
|
|
1447
|
+
_frag.updated_at()
|
|
1448
|
+
_frag.resource_id()
|
|
1449
|
+
_frag.additional_meta_data()
|
|
1450
|
+
return _frag
|
|
1451
|
+
|
|
1452
|
+
|
|
1453
|
+
def fragment_credits_balance_summary_fragment():
|
|
1454
|
+
_frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
|
|
1455
|
+
_frag.customer_id()
|
|
1456
|
+
_frag_balances = _frag.balances()
|
|
1457
|
+
_frag_balances_currency = _frag_balances.currency()
|
|
1458
|
+
_frag_balances_currency.currency_id()
|
|
1459
|
+
_frag_balances_currency.display_name()
|
|
1460
|
+
_frag_balances_currency.symbol()
|
|
1461
|
+
_frag_balances.current_balance()
|
|
1462
|
+
_frag_balances.total_consumed()
|
|
1463
|
+
_frag_balances.total_granted()
|
|
1464
|
+
return _frag
|
|
1465
|
+
|
|
1466
|
+
|
|
1430
1467
|
class Fragment:
|
|
1431
1468
|
addon_dependency_fragment = fragment_addon_dependency_fragment()
|
|
1432
1469
|
addon_fragment = fragment_addon_fragment()
|
|
@@ -1434,6 +1471,8 @@ class Fragment:
|
|
|
1434
1471
|
checkout_configuration_fragment = fragment_checkout_configuration_fragment()
|
|
1435
1472
|
checkout_state_fragment = fragment_checkout_state_fragment()
|
|
1436
1473
|
coupon_fragment = fragment_coupon_fragment()
|
|
1474
|
+
credit_grant_fragment = fragment_credit_grant_fragment()
|
|
1475
|
+
credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
|
|
1437
1476
|
customer_fragment = fragment_customer_fragment()
|
|
1438
1477
|
customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
|
|
1439
1478
|
customer_portal_configuration_fragment = fragment_customer_portal_configuration_fragment()
|
|
@@ -1690,6 +1729,13 @@ def mutation_transfer_subscription_to_resource():
|
|
|
1690
1729
|
return _op
|
|
1691
1730
|
|
|
1692
1731
|
|
|
1732
|
+
def mutation_grant_credits():
|
|
1733
|
+
_op = sgqlc.operation.Operation(_schema_root.mutation_type, name='GrantCredits', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditGrantInput))))
|
|
1734
|
+
_op_create_credit_grant = _op.create_credit_grant(input=sgqlc.types.Variable('input'))
|
|
1735
|
+
_op_create_credit_grant.__fragment__(fragment_credit_grant_fragment())
|
|
1736
|
+
return _op
|
|
1737
|
+
|
|
1738
|
+
|
|
1693
1739
|
class Mutation:
|
|
1694
1740
|
apply_subscription = mutation_apply_subscription()
|
|
1695
1741
|
archive_customer = mutation_archive_customer()
|
|
@@ -1700,6 +1746,7 @@ class Mutation:
|
|
|
1700
1746
|
detach_customer_payment_method = mutation_detach_customer_payment_method()
|
|
1701
1747
|
estimate_subscription = mutation_estimate_subscription()
|
|
1702
1748
|
estimate_subscription_update = mutation_estimate_subscription_update()
|
|
1749
|
+
grant_credits = mutation_grant_credits()
|
|
1703
1750
|
grant_promotional_entitlements = mutation_grant_promotional_entitlements()
|
|
1704
1751
|
import_customer = mutation_import_customer()
|
|
1705
1752
|
import_customer_bulk = mutation_import_customer_bulk()
|
|
@@ -1852,11 +1899,27 @@ def query_get_usage_history_v2():
|
|
|
1852
1899
|
return _op
|
|
1853
1900
|
|
|
1854
1901
|
|
|
1902
|
+
def query_get_credit_balance():
|
|
1903
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditBalance', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditBalanceSummaryInput))))
|
|
1904
|
+
_op_credit_balance_summary = _op.credit_balance_summary(input=sgqlc.types.Variable('input'))
|
|
1905
|
+
_op_credit_balance_summary.__fragment__(fragment_credits_balance_summary_fragment())
|
|
1906
|
+
return _op
|
|
1907
|
+
|
|
1908
|
+
|
|
1909
|
+
def query_get_credit_grants():
|
|
1910
|
+
_op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditGrants', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetCreditGrantsInput))))
|
|
1911
|
+
_op_credit_grants = _op.credit_grants(input=sgqlc.types.Variable('input'))
|
|
1912
|
+
_op_credit_grants.__fragment__(fragment_credit_grant_fragment())
|
|
1913
|
+
return _op
|
|
1914
|
+
|
|
1915
|
+
|
|
1855
1916
|
class Query:
|
|
1856
1917
|
get_active_subscriptions = query_get_active_subscriptions()
|
|
1857
1918
|
get_active_subscriptions_list = query_get_active_subscriptions_list()
|
|
1858
1919
|
get_checkout_state = query_get_checkout_state()
|
|
1859
1920
|
get_coupons = query_get_coupons()
|
|
1921
|
+
get_credit_balance = query_get_credit_balance()
|
|
1922
|
+
get_credit_grants = query_get_credit_grants()
|
|
1860
1923
|
get_customer_by_id = query_get_customer_by_id()
|
|
1861
1924
|
get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
|
|
1862
1925
|
get_customer_statistics = query_get_customer_statistics()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|