stigg-api-client 3.84.1__py3-none-any.whl → 3.93.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.

Potentially problematic release.


This version of stigg-api-client might be problematic. Click here for more details.

@@ -1471,6 +1471,20 @@ def fragment_credit_grant_fragment():
1471
1471
  return _frag
1472
1472
 
1473
1473
 
1474
+ def fragment_credit_ledger_fragment():
1475
+ _frag = sgqlc.operation.Fragment(_schema.CreditLedgerEvent, 'CreditLedgerFragment')
1476
+ _frag.timestamp()
1477
+ _frag.event_type()
1478
+ _frag.customer_id()
1479
+ _frag.resource_id()
1480
+ _frag.event_id()
1481
+ _frag.feature_id()
1482
+ _frag.amount()
1483
+ _frag.credit_grant_id()
1484
+ _frag.credit_currency_id()
1485
+ return _frag
1486
+
1487
+
1474
1488
  def fragment_credits_balance_summary_fragment():
1475
1489
  _frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
1476
1490
  _frag.customer_id()
@@ -1502,6 +1516,7 @@ class Fragment:
1502
1516
  checkout_state_fragment = fragment_checkout_state_fragment()
1503
1517
  coupon_fragment = fragment_coupon_fragment()
1504
1518
  credit_grant_fragment = fragment_credit_grant_fragment()
1519
+ credit_ledger_fragment = fragment_credit_ledger_fragment()
1505
1520
  credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
1506
1521
  customer_fragment = fragment_customer_fragment()
1507
1522
  customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
@@ -1983,7 +1998,20 @@ def query_get_credit_balance():
1983
1998
  def query_get_credit_grants():
1984
1999
  _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditGrants', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.GetCreditGrantsInput))))
1985
2000
  _op_credit_grants = _op.credit_grants(input=sgqlc.types.Variable('input'))
1986
- _op_credit_grants.__fragment__(fragment_credit_grant_fragment())
2001
+ _op_credit_grants_page_info = _op_credit_grants.page_info()
2002
+ _op_credit_grants_page_info.__fragment__(fragment_page_info_fragment())
2003
+ _op_credit_grants_edges = _op_credit_grants.edges()
2004
+ _op_credit_grants_edges_node = _op_credit_grants_edges.node()
2005
+ _op_credit_grants_edges_node.__fragment__(fragment_credit_grant_fragment())
2006
+ _op_credit_grants.total_count()
2007
+ return _op
2008
+
2009
+
2010
+ def query_get_credit_ledger():
2011
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditLedger', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditLedgerInput))))
2012
+ _op_credits_ledger = _op.credits_ledger(input=sgqlc.types.Variable('input'))
2013
+ _op_credits_ledger_events = _op_credits_ledger.events()
2014
+ _op_credits_ledger_events.__fragment__(fragment_credit_ledger_fragment())
1987
2015
  return _op
1988
2016
 
1989
2017
 
@@ -1994,6 +2022,7 @@ class Query:
1994
2022
  get_coupons = query_get_coupons()
1995
2023
  get_credit_balance = query_get_credit_balance()
1996
2024
  get_credit_grants = query_get_credit_grants()
2025
+ get_credit_ledger = query_get_credit_ledger()
1997
2026
  get_customer_by_id = query_get_customer_by_id()
1998
2027
  get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
1999
2028
  get_customer_statistics = query_get_customer_statistics()
stigg/generated/schema.py CHANGED
@@ -2386,10 +2386,11 @@ class GetAuth0ApplicationsInput(sgqlc.types.Input):
2386
2386
 
2387
2387
  class GetCreditGrantsInput(sgqlc.types.Input):
2388
2388
  __schema__ = schema
2389
- __field_names__ = ('currency_id', 'customer_id', 'environment_id', 'resource_id')
2389
+ __field_names__ = ('currency_id', 'customer_id', 'environment_id', 'paging', 'resource_id')
2390
2390
  currency_id = sgqlc.types.Field(String, graphql_name='currencyId')
2391
2391
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
2392
2392
  environment_id = sgqlc.types.Field(UUID, graphql_name='environmentId')
2393
+ paging = sgqlc.types.Field(CursorPaging, graphql_name='paging')
2393
2394
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
2394
2395
 
2395
2396
 
@@ -5787,6 +5788,21 @@ class CreditGrant(sgqlc.types.Type):
5787
5788
  updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
5788
5789
 
5789
5790
 
5791
+ class CreditGrantConnection(sgqlc.types.relay.Connection):
5792
+ __schema__ = schema
5793
+ __field_names__ = ('edges', 'page_info', 'total_count')
5794
+ edges = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('CreditGrantEdge'))), graphql_name='edges')
5795
+ page_info = sgqlc.types.Field(sgqlc.types.non_null('PageInfo'), graphql_name='pageInfo')
5796
+ total_count = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='totalCount')
5797
+
5798
+
5799
+ class CreditGrantEdge(sgqlc.types.Type):
5800
+ __schema__ = schema
5801
+ __field_names__ = ('cursor', 'node')
5802
+ cursor = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='cursor')
5803
+ node = sgqlc.types.Field(sgqlc.types.non_null(CreditGrant), graphql_name='node')
5804
+
5805
+
5790
5806
  class CreditLedger(sgqlc.types.Type):
5791
5807
  __schema__ = schema
5792
5808
  __field_names__ = ('events',)
@@ -9631,7 +9647,7 @@ class Query(sgqlc.types.Type):
9631
9647
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(CreditBalanceSummaryInput), graphql_name='input', default=None)),
9632
9648
  ))
9633
9649
  )
9634
- credit_grants = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditGrant))), graphql_name='creditGrants', args=sgqlc.types.ArgDict((
9650
+ credit_grants = sgqlc.types.Field(sgqlc.types.non_null(CreditGrantConnection), graphql_name='creditGrants', args=sgqlc.types.ArgDict((
9635
9651
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(GetCreditGrantsInput), graphql_name='input', default=None)),
9636
9652
  ))
9637
9653
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.84.1
3
+ Version: 3.93.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -0,0 +1,9 @@
1
+ stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
+ stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
+ stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ stigg/generated/operations.py,sha256=TtZbOvI_x7YYtD6ywdM9OiFDOk4Z8ccPuKH6d3xPdWs,91015
5
+ stigg/generated/schema.py,sha256=0u0jmxJi8o40DCCZ-68RsoisQr0PugalfZe-dmTXxJI,726152
6
+ stigg_api_client-3.93.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-3.93.0.dist-info/METADATA,sha256=fCnp-Uf0zmD0KwdzaTtBoX8bN2OvXW7T7m9d_d2_Mcs,3197
8
+ stigg_api_client-3.93.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-3.93.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- stigg/__init__.py,sha256=uQeM3YjvH1X56xOPknIEQezw0yjNNS-m9gi3B0XlSOM,44
2
- stigg/client.py,sha256=z9u5SptafEM-tN_K0o_zGKYDy6VVS9LWvkH0ZBMO4jc,3721
3
- stigg/generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- stigg/generated/operations.py,sha256=Bb8r4BqUxHn0OR4B5N9RepOBAogZCEgBF_kVMfvyMa4,89792
5
- stigg/generated/schema.py,sha256=7aTatu0R7i_Rbx9qeSarFV7r5-YjNaSz-mFtMyBe2Gg,725366
6
- stigg_api_client-3.84.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-3.84.1.dist-info/METADATA,sha256=-qdobCENDfbkeRMFHyGKGwopZwfGxdcM9MVNF09AwYU,3197
8
- stigg_api_client-3.84.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-3.84.1.dist-info/RECORD,,