stigg-api-client 3.84.1__tar.gz → 5.100.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.84.1
3
+ Version: 5.100.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -21,6 +21,8 @@ Description-Content-Type: text/markdown
21
21
 
22
22
  # stigg-api-client
23
23
 
24
+ > ## ⚠️ This package has been deprecated and is no longer actively maintained. Please use [stigg-api-client-v2](https://pypi.org/project/stigg-api-client-v2/) instead.
25
+
24
26
  This library provides a Python wrapper to [Stigg's GraphQL API](https://docs.stigg.io/docs/graphql-api) based on
25
27
  the operations that are in use by the [Stigg's Node.js SDK](https://docs.stigg.io/docs/nodejs-sdk).
26
28
 
@@ -1,5 +1,7 @@
1
1
  # stigg-api-client
2
2
 
3
+ > ## ⚠️ This package has been deprecated and is no longer actively maintained. Please use [stigg-api-client-v2](https://pypi.org/project/stigg-api-client-v2/) instead.
4
+
3
5
  This library provides a Python wrapper to [Stigg's GraphQL API](https://docs.stigg.io/docs/graphql-api) based on
4
6
  the operations that are in use by the [Stigg's Node.js SDK](https://docs.stigg.io/docs/nodejs-sdk).
5
7
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stigg-api-client"
3
- version = "3.84.1"
3
+ version = "5.100.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -29,18 +29,19 @@ class StiggClient:
29
29
 
30
30
  self._EDGE_QUERIES: Dict[Operation, Callable[[Dict], Dict]] = {
31
31
  Operations.query.get_entitlements: self.get_entitlements,
32
+ Operations.query.get_entitlements_state: self.get_entitlements_state,
32
33
  Operations.query.get_paywall: self.get_paywall,
33
34
  }
34
35
 
35
36
  @retry(**RETRY_KWARGS)
36
- def _get_entitlements(self, variables: Dict[str, Dict]) -> Dict:
37
+ def _get_entitlements(self, variables: Dict[str, Dict], endpoint: str) -> Dict:
37
38
  params = variables.get("query")
38
39
  if params is None:
39
40
  raise ValueError('Variables do not include required key "query".')
40
41
 
41
42
  customer_id = params.pop("customerId")
42
43
 
43
- url = f"{self._edge_url}/v1/c/{customer_id}/entitlements.json"
44
+ url = f"{self._edge_url}/v1/c/{customer_id}/{endpoint}"
44
45
 
45
46
  data = requests.get(url, headers=self._endpoint.base_headers, params=params, timeout=self._endpoint.timeout)
46
47
  data.raise_for_status()
@@ -51,7 +52,13 @@ class StiggClient:
51
52
  if self._enable_edge is False:
52
53
  return self.request(Operations.query.get_entitlements, variables, raw_response=True)
53
54
 
54
- return self._get_entitlements(variables)
55
+ return self._get_entitlements(variables, endpoint="entitlements.json")
56
+
57
+ def get_entitlements_state(self, variables: Dict[str, Dict]) -> Dict:
58
+ if self._enable_edge is False:
59
+ return self.request(Operations.query.get_entitlements_state, variables, raw_response=True)
60
+
61
+ return self._get_entitlements(variables, endpoint="entitlements-state.json")
55
62
 
56
63
  @retry(**RETRY_KWARGS)
57
64
  def _get_paywall(self,variables: Dict[str, Dict]) -> Dict:
@@ -59,6 +59,7 @@ def fragment_price_fragment():
59
59
  _frag_credit_rate = _frag.credit_rate()
60
60
  _frag_credit_rate.amount()
61
61
  _frag_credit_rate.custom_currency_id()
62
+ _frag_credit_rate.currency_id()
62
63
  _frag.tiers_mode()
63
64
  _frag_tiers = _frag.tiers()
64
65
  _frag_tiers.__fragment__(fragment_price_tier_fragment())
@@ -193,6 +194,7 @@ def fragment_plan_fragment():
193
194
  _frag_default_trial_config_budget = _frag_default_trial_config.budget()
194
195
  _frag_default_trial_config_budget.limit()
195
196
  _frag_default_trial_config.trial_end_behavior()
197
+ _frag.aws_marketplace_plan_dimension()
196
198
  return _frag
197
199
 
198
200
 
@@ -832,6 +834,10 @@ def fragment_entitlement_fragment():
832
834
  _frag_reset_period_configuration.__fragment__(fragment_reset_period_configuration_fragment())
833
835
  _frag_feature = _frag.feature()
834
836
  _frag_feature.__fragment__(fragment_feature_fragment())
837
+ _frag_credit_rate = _frag.credit_rate()
838
+ _frag_credit_rate.amount()
839
+ _frag_credit_rate.currency_id()
840
+ _frag.valid_until()
835
841
  return _frag
836
842
 
837
843
 
@@ -894,6 +900,7 @@ def fragment_product_fragment():
894
900
  _frag.display_name()
895
901
  _frag.description()
896
902
  _frag.additional_meta_data()
903
+ _frag.aws_marketplace_product_id()
897
904
  _frag_product_settings = _frag.product_settings()
898
905
  _frag_product_settings_downgrade_plan = _frag_product_settings.downgrade_plan()
899
906
  _frag_product_settings_downgrade_plan.ref_id()
@@ -930,6 +937,25 @@ def fragment_package_published_payload():
930
937
  return _frag
931
938
 
932
939
 
940
+ def fragment_credit_balance_updated_payload():
941
+ _frag = sgqlc.operation.Fragment(_schema.CreditBalanceUpdated, 'CreditBalanceUpdatedPayload')
942
+ _frag_currency = _frag.currency()
943
+ _frag_currency.currency_id()
944
+ _frag_currency.display_name()
945
+ _frag_currency.symbol()
946
+ _frag_currency_units = _frag_currency.units()
947
+ _frag_currency_units.singular()
948
+ _frag_currency_units.plural()
949
+ _frag.currency_id()
950
+ _frag.current_balance()
951
+ _frag.customer_id()
952
+ _frag.valid_until()
953
+ _frag.resource_id()
954
+ _frag.total_consumed()
955
+ _frag.total_granted()
956
+ return _frag
957
+
958
+
933
959
  def fragment_customer_portal_fragment():
934
960
  _frag = sgqlc.operation.Fragment(_schema.CustomerPortal, 'CustomerPortalFragment')
935
961
  _frag_subscriptions = _frag.subscriptions()
@@ -1035,7 +1061,7 @@ def fragment_customer_portal_subscription_price_fragment():
1035
1061
  _frag_price.currency()
1036
1062
  _frag_credit_rate = _frag.credit_rate()
1037
1063
  _frag_credit_rate.amount()
1038
- _frag_credit_rate.custom_currency_id()
1064
+ _frag_credit_rate.currency_id()
1039
1065
  _frag_feature = _frag.feature()
1040
1066
  _frag_feature.id()
1041
1067
  _frag_feature.ref_id()
@@ -1064,7 +1090,7 @@ def fragment_customer_portal_subscription_fragment():
1064
1090
  _frag_pricing_price.currency()
1065
1091
  _frag_pricing_credit_rate = _frag_pricing.credit_rate()
1066
1092
  _frag_pricing_credit_rate.amount()
1067
- _frag_pricing_credit_rate.custom_currency_id()
1093
+ _frag_pricing_credit_rate.currency_id()
1068
1094
  _frag_pricing_feature = _frag_pricing.feature()
1069
1095
  _frag_pricing_feature.feature_units()
1070
1096
  _frag_pricing_feature.feature_units_plural()
@@ -1227,7 +1253,7 @@ def fragment_mock_paywall_price_fragment():
1227
1253
  _frag_price.currency()
1228
1254
  _frag_credit_rate = _frag.credit_rate()
1229
1255
  _frag_credit_rate.amount()
1230
- _frag_credit_rate.custom_currency_id()
1256
+ _frag_credit_rate.currency_id()
1231
1257
  _frag.tiers_mode()
1232
1258
  _frag_tiers = _frag.tiers()
1233
1259
  _frag_tiers.__fragment__(fragment_price_tier_fragment())
@@ -1448,6 +1474,30 @@ def fragment_schedule_variables_fragment():
1448
1474
  return _frag
1449
1475
 
1450
1476
 
1477
+ def fragment_credit_grant_invoice_fragment():
1478
+ _frag = sgqlc.operation.Fragment(_schema.CreditGrantInvoice, 'CreditGrantInvoiceFragment')
1479
+ _frag.billing_id()
1480
+ _frag.status()
1481
+ _frag.created_at()
1482
+ _frag.due_date()
1483
+ _frag.updated_at()
1484
+ _frag.error_message()
1485
+ _frag.requires_action()
1486
+ _frag.payment_secret()
1487
+ _frag.payment_url()
1488
+ _frag.pdf_url()
1489
+ _frag.billing_reason()
1490
+ _frag.currency()
1491
+ _frag.sub_total()
1492
+ _frag.sub_total_excluding_tax()
1493
+ _frag.total()
1494
+ _frag.total_excluding_tax()
1495
+ _frag.tax()
1496
+ _frag.amount_due()
1497
+ _frag.attempt_count()
1498
+ return _frag
1499
+
1500
+
1451
1501
  def fragment_credit_grant_fragment():
1452
1502
  _frag = sgqlc.operation.Fragment(_schema.CreditGrant, 'CreditGrantFragment')
1453
1503
  _frag.grant_id()
@@ -1468,6 +1518,26 @@ def fragment_credit_grant_fragment():
1468
1518
  _frag.updated_at()
1469
1519
  _frag.resource_id()
1470
1520
  _frag.additional_meta_data()
1521
+ _frag.automatic_recharge_configuration_id()
1522
+ _frag.status()
1523
+ _frag.payment_collection()
1524
+ _frag.invoice_id()
1525
+ _frag_latest_invoice = _frag.latest_invoice()
1526
+ _frag_latest_invoice.__fragment__(fragment_credit_grant_invoice_fragment())
1527
+ return _frag
1528
+
1529
+
1530
+ def fragment_credit_ledger_fragment():
1531
+ _frag = sgqlc.operation.Fragment(_schema.CreditLedgerEvent, 'CreditLedgerFragment')
1532
+ _frag.timestamp()
1533
+ _frag.event_type()
1534
+ _frag.customer_id()
1535
+ _frag.resource_id()
1536
+ _frag.event_id()
1537
+ _frag.feature_id()
1538
+ _frag.amount()
1539
+ _frag.credit_grant_id()
1540
+ _frag.credit_currency_id()
1471
1541
  return _frag
1472
1542
 
1473
1543
 
@@ -1475,16 +1545,25 @@ def fragment_credits_balance_summary_fragment():
1475
1545
  _frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
1476
1546
  _frag.customer_id()
1477
1547
  _frag_balances = _frag.balances()
1478
- _frag_balances_currency = _frag_balances.currency()
1479
- _frag_balances_currency.currency_id()
1480
- _frag_balances_currency.display_name()
1481
- _frag_balances_currency.symbol()
1482
- _frag_balances_currency_units = _frag_balances_currency.units()
1483
- _frag_balances_currency_units.singular()
1484
- _frag_balances_currency_units.plural()
1485
- _frag_balances.current_balance()
1486
- _frag_balances.total_consumed()
1487
- _frag_balances.total_granted()
1548
+ _frag_balances.__fragment__(fragment_credit_balance_fragment())
1549
+ return _frag
1550
+
1551
+
1552
+ def fragment_credit_balance_fragment():
1553
+ _frag = sgqlc.operation.Fragment(_schema.CreditBalance, 'CreditBalanceFragment')
1554
+ _frag.customer_id()
1555
+ _frag_currency = _frag.currency()
1556
+ _frag_currency.currency_id()
1557
+ _frag_currency.display_name()
1558
+ _frag_currency.symbol()
1559
+ _frag_currency_units = _frag_currency.units()
1560
+ _frag_currency_units.singular()
1561
+ _frag_currency_units.plural()
1562
+ _frag.current_balance()
1563
+ _frag.total_consumed()
1564
+ _frag.total_granted()
1565
+ _frag.resource_id()
1566
+ _frag.valid_until()
1488
1567
  return _frag
1489
1568
 
1490
1569
 
@@ -1494,14 +1573,60 @@ def fragment_payment_session_fragment():
1494
1573
  return _frag
1495
1574
 
1496
1575
 
1576
+ def fragment_slim_custom_currency_fragment():
1577
+ _frag = sgqlc.operation.Fragment(_schema.SlimCustomCurrency, 'SlimCustomCurrencyFragment')
1578
+ _frag.currency_id()
1579
+ _frag.display_name()
1580
+ _frag_units = _frag.units()
1581
+ _frag_units.singular()
1582
+ _frag_units.plural()
1583
+ return _frag
1584
+
1585
+
1586
+ def fragment_credit_usage_fragment():
1587
+ _frag = sgqlc.operation.Fragment(_schema.CreditUsage, 'CreditUsageFragment')
1588
+ _frag_series = _frag.series()
1589
+ _frag_series.feature_id()
1590
+ _frag_series.feature_name()
1591
+ _frag_series.total_credits()
1592
+ _frag_series_points = _frag_series.points()
1593
+ _frag_series_points.timestamp()
1594
+ _frag_series_points.value()
1595
+ _frag_currency = _frag.currency()
1596
+ _frag_currency.__fragment__(fragment_slim_custom_currency_fragment())
1597
+ return _frag
1598
+
1599
+
1600
+ def fragment_auto_recharge_settings_fragment():
1601
+ _frag = sgqlc.operation.Fragment(_schema.AutoRechargeSettingsDTO, 'AutoRechargeSettingsFragment')
1602
+ _frag.customer_id()
1603
+ _frag.currency_id()
1604
+ _frag.is_enabled()
1605
+ _frag.threshold_type()
1606
+ _frag.threshold_value()
1607
+ _frag.target_balance()
1608
+ _frag.max_spend_limit()
1609
+ _frag.grant_expiration_period()
1610
+ _frag.current_monthly_spend()
1611
+ _frag.created_at()
1612
+ _frag.updated_at()
1613
+ return _frag
1614
+
1615
+
1497
1616
  class Fragment:
1498
1617
  addon_dependency_fragment = fragment_addon_dependency_fragment()
1499
1618
  addon_fragment = fragment_addon_fragment()
1500
1619
  apply_subscription_fragment = fragment_apply_subscription_fragment()
1620
+ auto_recharge_settings_fragment = fragment_auto_recharge_settings_fragment()
1501
1621
  checkout_configuration_fragment = fragment_checkout_configuration_fragment()
1502
1622
  checkout_state_fragment = fragment_checkout_state_fragment()
1503
1623
  coupon_fragment = fragment_coupon_fragment()
1624
+ credit_balance_fragment = fragment_credit_balance_fragment()
1625
+ credit_balance_updated_payload = fragment_credit_balance_updated_payload()
1504
1626
  credit_grant_fragment = fragment_credit_grant_fragment()
1627
+ credit_grant_invoice_fragment = fragment_credit_grant_invoice_fragment()
1628
+ credit_ledger_fragment = fragment_credit_ledger_fragment()
1629
+ credit_usage_fragment = fragment_credit_usage_fragment()
1505
1630
  credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
1506
1631
  customer_fragment = fragment_customer_fragment()
1507
1632
  customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
@@ -1549,6 +1674,7 @@ class Fragment:
1549
1674
  report_usage_fragment = fragment_report_usage_fragment()
1550
1675
  reset_period_configuration_fragment = fragment_reset_period_configuration_fragment()
1551
1676
  schedule_variables_fragment = fragment_schedule_variables_fragment()
1677
+ slim_custom_currency_fragment = fragment_slim_custom_currency_fragment()
1552
1678
  slim_customer_fragment = fragment_slim_customer_fragment()
1553
1679
  slim_subscription_fragment = fragment_slim_subscription_fragment()
1554
1680
  slim_subscription_fragment_v2 = fragment_slim_subscription_fragment_v2()
@@ -1797,11 +1923,33 @@ def mutation_create_payment_session():
1797
1923
  return _op
1798
1924
 
1799
1925
 
1926
+ def mutation_void_credit_grant():
1927
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='VoidCreditGrant', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.VoidCreditGrantInput))))
1928
+ _op_void_credit_grant = _op.void_credit_grant(input=sgqlc.types.Variable('input'))
1929
+ _op_void_credit_grant.__fragment__(fragment_credit_grant_fragment())
1930
+ return _op
1931
+
1932
+
1933
+ def mutation_create_coupon():
1934
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='CreateCoupon', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreateCouponInput))))
1935
+ _op_create_one_coupon = _op.create_one_coupon(input=sgqlc.types.Variable('input'))
1936
+ _op_create_one_coupon.__fragment__(fragment_coupon_fragment())
1937
+ return _op
1938
+
1939
+
1940
+ def mutation_save_automatic_recharge_configuration():
1941
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='SaveAutomaticRechargeConfiguration', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SaveAutoRechargeSettingsInput))))
1942
+ _op_save_auto_recharge_settings = _op.save_auto_recharge_settings(input=sgqlc.types.Variable('input'))
1943
+ _op_save_auto_recharge_settings.__fragment__(fragment_auto_recharge_settings_fragment())
1944
+ return _op
1945
+
1946
+
1800
1947
  class Mutation:
1801
1948
  apply_subscription = mutation_apply_subscription()
1802
1949
  archive_customer = mutation_archive_customer()
1803
1950
  cancel_subscription = mutation_cancel_subscription()
1804
1951
  cancel_subscription_updates = mutation_cancel_subscription_updates()
1952
+ create_coupon = mutation_create_coupon()
1805
1953
  create_payment_session = mutation_create_payment_session()
1806
1954
  create_subscription = mutation_create_subscription()
1807
1955
  delegate_subscription_to_customer = mutation_delegate_subscription_to_customer()
@@ -1825,12 +1973,14 @@ class Mutation:
1825
1973
  report_usage_bulk = mutation_report_usage_bulk()
1826
1974
  revoke_promotional_entitlement = mutation_revoke_promotional_entitlement()
1827
1975
  revoke_promotional_entitlements_group = mutation_revoke_promotional_entitlements_group()
1976
+ save_automatic_recharge_configuration = mutation_save_automatic_recharge_configuration()
1828
1977
  transfer_subscription = mutation_transfer_subscription()
1829
1978
  transfer_subscription_to_resource = mutation_transfer_subscription_to_resource()
1830
1979
  unarchive_customer = mutation_unarchive_customer()
1831
1980
  unlink_promotional_entitlements_group = mutation_unlink_promotional_entitlements_group()
1832
1981
  update_customer = mutation_update_customer()
1833
1982
  update_subscription = mutation_update_subscription()
1983
+ void_credit_grant = mutation_void_credit_grant()
1834
1984
 
1835
1985
 
1836
1986
  def query_get_customer_by_id():
@@ -1881,7 +2031,7 @@ def query_get_subscription():
1881
2031
 
1882
2032
  def query_get_coupons():
1883
2033
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCoupons')
1884
- _op_coupons = _op.coupons(filter={'status': {'eq': 'ACTIVE'}}, paging={'first': 50})
2034
+ _op_coupons = _op.coupons(filter={'status': {'eq': 'ACTIVE'}}, paging={'first': 25})
1885
2035
  _op_coupons_edges = _op_coupons.edges()
1886
2036
  _op_coupons_edges_node = _op_coupons_edges.node()
1887
2037
  _op_coupons_edges_node.__fragment__(fragment_coupon_fragment())
@@ -1905,6 +2055,7 @@ def query_get_entitlements():
1905
2055
  def query_get_entitlements_state():
1906
2056
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetEntitlementsState', variables=dict(query=sgqlc.types.Arg(sgqlc.types.non_null(_schema.FetchEntitlementsQuery))))
1907
2057
  _op_entitlements_state = _op.entitlements_state(query=sgqlc.types.Variable('query'))
2058
+ _op_entitlements_state.__typename__()
1908
2059
  _op_entitlements_state_entitlements = _op_entitlements_state.entitlements()
1909
2060
  _op_entitlements_state_entitlements.__fragment__(fragment_entitlement_fragment())
1910
2061
  _op_entitlements_state.access_denied_reason()
@@ -1932,6 +2083,7 @@ def query_get_sdk_configuration():
1932
2083
  _op_sdk_configuration = _op.sdk_configuration()
1933
2084
  _op_sdk_configuration.sentry_dsn()
1934
2085
  _op_sdk_configuration.is_widget_watermark_enabled()
2086
+ _op_sdk_configuration.show_watermark()
1935
2087
  return _op
1936
2088
 
1937
2089
 
@@ -1983,17 +2135,52 @@ def query_get_credit_balance():
1983
2135
  def query_get_credit_grants():
1984
2136
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditGrants', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetCreditGrantsInput))))
1985
2137
  _op_credit_grants = _op.credit_grants(input=sgqlc.types.Variable('input'))
1986
- _op_credit_grants.__fragment__(fragment_credit_grant_fragment())
2138
+ _op_credit_grants_page_info = _op_credit_grants.page_info()
2139
+ _op_credit_grants_page_info.__fragment__(fragment_page_info_fragment())
2140
+ _op_credit_grants_edges = _op_credit_grants.edges()
2141
+ _op_credit_grants_edges_node = _op_credit_grants_edges.node()
2142
+ _op_credit_grants_edges_node.__fragment__(fragment_credit_grant_fragment())
2143
+ _op_credit_grants.total_count()
2144
+ return _op
2145
+
2146
+
2147
+ def query_get_credit_ledger():
2148
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditLedger', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditLedgerInput))))
2149
+ _op_credits_ledger = _op.credits_ledger(input=sgqlc.types.Variable('input'))
2150
+ _op_credits_ledger_page_info = _op_credits_ledger.page_info()
2151
+ _op_credits_ledger_page_info.__fragment__(fragment_page_info_fragment())
2152
+ _op_credits_ledger_edges = _op_credits_ledger.edges()
2153
+ _op_credits_ledger_edges_node = _op_credits_ledger_edges.node()
2154
+ _op_credits_ledger_edges_node.__fragment__(fragment_credit_ledger_fragment())
2155
+ _op_credits_ledger_edges.cursor()
2156
+ _op_credits_ledger.total_count()
2157
+ return _op
2158
+
2159
+
2160
+ def query_get_credit_usage():
2161
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditUsageInput))))
2162
+ _op_credit_usage = _op.credit_usage(input=sgqlc.types.Variable('input'))
2163
+ _op_credit_usage.__fragment__(fragment_credit_usage_fragment())
2164
+ return _op
2165
+
2166
+
2167
+ def query_get_automatic_recharge_configuration():
2168
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetAutomaticRechargeConfiguration', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetAutoRechargeSettingsInput))))
2169
+ _op_get_auto_recharge_settings = _op.get_auto_recharge_settings(input=sgqlc.types.Variable('input'))
2170
+ _op_get_auto_recharge_settings.__fragment__(fragment_auto_recharge_settings_fragment())
1987
2171
  return _op
1988
2172
 
1989
2173
 
1990
2174
  class Query:
1991
2175
  get_active_subscriptions = query_get_active_subscriptions()
1992
2176
  get_active_subscriptions_list = query_get_active_subscriptions_list()
2177
+ get_automatic_recharge_configuration = query_get_automatic_recharge_configuration()
1993
2178
  get_checkout_state = query_get_checkout_state()
1994
2179
  get_coupons = query_get_coupons()
1995
2180
  get_credit_balance = query_get_credit_balance()
1996
2181
  get_credit_grants = query_get_credit_grants()
2182
+ get_credit_ledger = query_get_credit_ledger()
2183
+ get_credit_usage = query_get_credit_usage()
1997
2184
  get_customer_by_id = query_get_customer_by_id()
1998
2185
  get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
1999
2186
  get_customer_statistics = query_get_customer_statistics()
@@ -2031,7 +2218,15 @@ def subscription_on_package_published():
2031
2218
  return _op
2032
2219
 
2033
2220
 
2221
+ def subscription_on_credit_balance_updated():
2222
+ _op = sgqlc.operation.Operation(_schema_root.subscription_type, name='OnCreditBalanceUpdated')
2223
+ _op_credit_balance_updated = _op.credit_balance_updated()
2224
+ _op_credit_balance_updated.__fragment__(fragment_credit_balance_updated_payload())
2225
+ return _op
2226
+
2227
+
2034
2228
  class Subscription:
2229
+ on_credit_balance_updated = subscription_on_credit_balance_updated()
2035
2230
  on_entitlements_updated = subscription_on_entitlements_updated()
2036
2231
  on_package_published = subscription_on_package_published()
2037
2232
  on_usage_updated = subscription_on_usage_updated()