stigg-api-client 3.95.0__tar.gz → 3.97.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.95.0
3
+ Version: 3.97.0
4
4
  Summary:
5
5
  License: STIGG SDK LICENSE
6
6
  Author: Stigg
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "stigg-api-client"
3
- version = "3.95.0"
3
+ version = "3.97.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -1508,6 +1508,18 @@ def fragment_payment_session_fragment():
1508
1508
  return _frag
1509
1509
 
1510
1510
 
1511
+ def fragment_credit_usage_fragment():
1512
+ _frag = sgqlc.operation.Fragment(_schema.CreditUsage, 'CreditUsageFragment')
1513
+ _frag_series = _frag.series()
1514
+ _frag_series.feature_id()
1515
+ _frag_series.feature_name()
1516
+ _frag_series.total_credits()
1517
+ _frag_series_points = _frag_series.points()
1518
+ _frag_series_points.timestamp()
1519
+ _frag_series_points.value()
1520
+ return _frag
1521
+
1522
+
1511
1523
  class Fragment:
1512
1524
  addon_dependency_fragment = fragment_addon_dependency_fragment()
1513
1525
  addon_fragment = fragment_addon_fragment()
@@ -1517,6 +1529,7 @@ class Fragment:
1517
1529
  coupon_fragment = fragment_coupon_fragment()
1518
1530
  credit_grant_fragment = fragment_credit_grant_fragment()
1519
1531
  credit_ledger_fragment = fragment_credit_ledger_fragment()
1532
+ credit_usage_fragment = fragment_credit_usage_fragment()
1520
1533
  credits_balance_summary_fragment = fragment_credits_balance_summary_fragment()
1521
1534
  customer_fragment = fragment_customer_fragment()
1522
1535
  customer_portal_billing_information_fragment = fragment_customer_portal_billing_information_fragment()
@@ -2015,6 +2028,13 @@ def query_get_credit_ledger():
2015
2028
  return _op
2016
2029
 
2017
2030
 
2031
+ def query_get_credit_usage():
2032
+ _op = sgqlc.operation.Operation(_schema_root.query_type, name='GetCreditUsage', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.CreditUsageInput))))
2033
+ _op_credit_usage = _op.credit_usage(input=sgqlc.types.Variable('input'))
2034
+ _op_credit_usage.__fragment__(fragment_credit_usage_fragment())
2035
+ return _op
2036
+
2037
+
2018
2038
  class Query:
2019
2039
  get_active_subscriptions = query_get_active_subscriptions()
2020
2040
  get_active_subscriptions_list = query_get_active_subscriptions_list()
@@ -2023,6 +2043,7 @@ class Query:
2023
2043
  get_credit_balance = query_get_credit_balance()
2024
2044
  get_credit_grants = query_get_credit_grants()
2025
2045
  get_credit_ledger = query_get_credit_ledger()
2046
+ get_credit_usage = query_get_credit_usage()
2026
2047
  get_customer_by_id = query_get_customer_by_id()
2027
2048
  get_customer_portal_by_ref_id = query_get_customer_portal_by_ref_id()
2028
2049
  get_customer_statistics = query_get_customer_statistics()
@@ -2959,12 +2959,13 @@ class OverageEntitlementCreateInput(sgqlc.types.Input):
2959
2959
 
2960
2960
  class OveragePricingModelCreateInput(sgqlc.types.Input):
2961
2961
  __schema__ = schema
2962
- __field_names__ = ('billing_cadence', 'billing_model', 'entitlement', 'feature_id', 'price_periods')
2962
+ __field_names__ = ('billing_cadence', 'billing_model', 'entitlement', 'feature_id', 'price_periods', 'top_up_custom_currency_id')
2963
2963
  billing_cadence = sgqlc.types.Field(BillingCadence, graphql_name='billingCadence')
2964
2964
  billing_model = sgqlc.types.Field(sgqlc.types.non_null(BillingModel), graphql_name='billingModel')
2965
2965
  entitlement = sgqlc.types.Field(OverageEntitlementCreateInput, graphql_name='entitlement')
2966
2966
  feature_id = sgqlc.types.Field(String, graphql_name='featureId')
2967
2967
  price_periods = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('PricePeriodInput'))), graphql_name='pricePeriods')
2968
+ top_up_custom_currency_id = sgqlc.types.Field(String, graphql_name='topUpCustomCurrencyId')
2968
2969
 
2969
2970
 
2970
2971
  class PackageDTOFilter(sgqlc.types.Input):
@@ -3498,7 +3499,7 @@ class PriceTierInput(sgqlc.types.Input):
3498
3499
 
3499
3500
  class PricingModelCreateInput(sgqlc.types.Input):
3500
3501
  __schema__ = schema
3501
- __field_names__ = ('billing_cadence', 'billing_model', 'feature_id', 'max_unit_quantity', 'min_unit_quantity', 'monthly_reset_period_configuration', 'price_periods', 'reset_period', 'tiers_mode', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
3502
+ __field_names__ = ('billing_cadence', 'billing_model', 'feature_id', 'max_unit_quantity', 'min_unit_quantity', 'monthly_reset_period_configuration', 'price_periods', 'reset_period', 'tiers_mode', 'top_up_custom_currency_id', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
3502
3503
  billing_cadence = sgqlc.types.Field(BillingCadence, graphql_name='billingCadence')
3503
3504
  billing_model = sgqlc.types.Field(sgqlc.types.non_null(BillingModel), graphql_name='billingModel')
3504
3505
  feature_id = sgqlc.types.Field(String, graphql_name='featureId')
@@ -3508,6 +3509,7 @@ class PricingModelCreateInput(sgqlc.types.Input):
3508
3509
  price_periods = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(PricePeriodInput))), graphql_name='pricePeriods')
3509
3510
  reset_period = sgqlc.types.Field(EntitlementResetPeriod, graphql_name='resetPeriod')
3510
3511
  tiers_mode = sgqlc.types.Field(TiersMode, graphql_name='tiersMode')
3512
+ top_up_custom_currency_id = sgqlc.types.Field(String, graphql_name='topUpCustomCurrencyId')
3511
3513
  weekly_reset_period_configuration = sgqlc.types.Field('WeeklyResetPeriodConfigInput', graphql_name='weeklyResetPeriodConfiguration')
3512
3514
  yearly_reset_period_configuration = sgqlc.types.Field('YearlyResetPeriodConfigInput', graphql_name='yearlyResetPeriodConfiguration')
3513
3515
 
@@ -9169,7 +9171,7 @@ class PreparedPaymentMethodForm(sgqlc.types.Type):
9169
9171
 
9170
9172
  class Price(sgqlc.types.Type):
9171
9173
  __schema__ = schema
9172
- __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', 'credit_rate', 'crm_id', 'crm_link_url', 'environment_id', 'feature', 'feature_id', 'id', 'is_override_price', 'max_unit_quantity', 'min_unit_quantity', 'package', 'package_id', 'price', 'reset_period', 'reset_period_configuration', 'tiers', 'tiers_mode', 'used_in_subscriptions')
9174
+ __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', 'credit_rate', 'crm_id', 'crm_link_url', 'environment_id', 'feature', 'feature_id', 'id', 'is_override_price', 'max_unit_quantity', 'min_unit_quantity', 'package', 'package_id', 'price', 'reset_period', 'reset_period_configuration', 'tiers', 'tiers_mode', 'top_up_custom_currency_id', 'used_in_subscriptions')
9173
9175
  billing_cadence = sgqlc.types.Field(sgqlc.types.non_null(BillingCadence), graphql_name='billingCadence')
9174
9176
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
9175
9177
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
@@ -9194,6 +9196,7 @@ class Price(sgqlc.types.Type):
9194
9196
  reset_period_configuration = sgqlc.types.Field('ResetPeriodConfiguration', graphql_name='resetPeriodConfiguration')
9195
9197
  tiers = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PriceTier')), graphql_name='tiers')
9196
9198
  tiers_mode = sgqlc.types.Field(TiersMode, graphql_name='tiersMode')
9199
+ top_up_custom_currency_id = sgqlc.types.Field(UUID, graphql_name='topUpCustomCurrencyId')
9197
9200
  used_in_subscriptions = sgqlc.types.Field(Boolean, graphql_name='usedInSubscriptions')
9198
9201
 
9199
9202
 
@@ -9223,7 +9226,7 @@ class PriceCountAggregate(sgqlc.types.Type):
9223
9226
 
9224
9227
  class PriceDeleteResponse(sgqlc.types.Type):
9225
9228
  __schema__ = schema
9226
- __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', 'credit_rate', 'crm_id', 'crm_link_url', 'environment_id', 'feature', 'feature_id', 'id', 'max_unit_quantity', 'min_unit_quantity', 'package_id', 'price', 'reset_period', 'reset_period_configuration', 'tiers', 'tiers_mode', 'used_in_subscriptions')
9229
+ __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', 'credit_rate', 'crm_id', 'crm_link_url', 'environment_id', 'feature', 'feature_id', 'id', 'max_unit_quantity', 'min_unit_quantity', 'package_id', 'price', 'reset_period', 'reset_period_configuration', 'tiers', 'tiers_mode', 'top_up_custom_currency_id', 'used_in_subscriptions')
9227
9230
  billing_cadence = sgqlc.types.Field(BillingCadence, graphql_name='billingCadence')
9228
9231
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
9229
9232
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
@@ -9246,6 +9249,7 @@ class PriceDeleteResponse(sgqlc.types.Type):
9246
9249
  reset_period_configuration = sgqlc.types.Field('ResetPeriodConfiguration', graphql_name='resetPeriodConfiguration')
9247
9250
  tiers = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PriceTier')), graphql_name='tiers')
9248
9251
  tiers_mode = sgqlc.types.Field(TiersMode, graphql_name='tiersMode')
9252
+ top_up_custom_currency_id = sgqlc.types.Field(UUID, graphql_name='topUpCustomCurrencyId')
9249
9253
  used_in_subscriptions = sgqlc.types.Field(Boolean, graphql_name='usedInSubscriptions')
9250
9254
 
9251
9255