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

@@ -56,6 +56,9 @@ def fragment_price_fragment():
56
56
  _frag_price = _frag.price()
57
57
  _frag_price.amount()
58
58
  _frag_price.currency()
59
+ _frag_credit_rate = _frag.credit_rate()
60
+ _frag_credit_rate.amount()
61
+ _frag_credit_rate.custom_currency_id()
59
62
  _frag.tiers_mode()
60
63
  _frag_tiers = _frag.tiers()
61
64
  _frag_tiers.__fragment__(fragment_price_tier_fragment())
@@ -1009,6 +1012,9 @@ def fragment_customer_portal_subscription_price_fragment():
1009
1012
  _frag_price = _frag.price()
1010
1013
  _frag_price.amount()
1011
1014
  _frag_price.currency()
1015
+ _frag_credit_rate = _frag.credit_rate()
1016
+ _frag_credit_rate.amount()
1017
+ _frag_credit_rate.custom_currency_id()
1012
1018
  _frag_feature = _frag.feature()
1013
1019
  _frag_feature.id()
1014
1020
  _frag_feature.ref_id()
@@ -1035,6 +1041,9 @@ def fragment_customer_portal_subscription_fragment():
1035
1041
  _frag_pricing_price = _frag_pricing.price()
1036
1042
  _frag_pricing_price.amount()
1037
1043
  _frag_pricing_price.currency()
1044
+ _frag_pricing_credit_rate = _frag_pricing.credit_rate()
1045
+ _frag_pricing_credit_rate.amount()
1046
+ _frag_pricing_credit_rate.custom_currency_id()
1038
1047
  _frag_pricing_feature = _frag_pricing.feature()
1039
1048
  _frag_pricing_feature.feature_units()
1040
1049
  _frag_pricing_feature.feature_units_plural()
@@ -1194,6 +1203,9 @@ def fragment_mock_paywall_price_fragment():
1194
1203
  _frag_price = _frag.price()
1195
1204
  _frag_price.amount()
1196
1205
  _frag_price.currency()
1206
+ _frag_credit_rate = _frag.credit_rate()
1207
+ _frag_credit_rate.amount()
1208
+ _frag_credit_rate.custom_currency_id()
1197
1209
  _frag.tiers_mode()
1198
1210
  _frag_tiers = _frag.tiers()
1199
1211
  _frag_tiers.__fragment__(fragment_price_tier_fragment())
stigg/generated/schema.py CHANGED
@@ -77,7 +77,7 @@ class BillingCadence(sgqlc.types.Enum):
77
77
 
78
78
  class BillingModel(sgqlc.types.Enum):
79
79
  __schema__ = schema
80
- __choices__ = ('FLAT_FEE', 'MINIMUM_SPEND', 'PER_UNIT', 'USAGE_BASED')
80
+ __choices__ = ('CREDIT_BASED', 'FLAT_FEE', 'MINIMUM_SPEND', 'PER_UNIT', 'USAGE_BASED')
81
81
 
82
82
 
83
83
  class BillingPeriod(sgqlc.types.Enum):
@@ -1336,6 +1336,13 @@ class CreditGrantInput(sgqlc.types.Input):
1336
1336
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
1337
1337
 
1338
1338
 
1339
+ class CreditRateInput(sgqlc.types.Input):
1340
+ __schema__ = schema
1341
+ __field_names__ = ('amount', 'custom_currency_id')
1342
+ amount = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='amount')
1343
+ custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
1344
+
1345
+
1339
1346
  class CursorPaging(sgqlc.types.Input):
1340
1347
  __schema__ = schema
1341
1348
  __field_names__ = ('after', 'before', 'first', 'last')
@@ -3262,10 +3269,11 @@ class PriceFilterPackageDTOFilter(sgqlc.types.Input):
3262
3269
 
3263
3270
  class PriceOverrideInput(sgqlc.types.Input):
3264
3271
  __schema__ = schema
3265
- __field_names__ = ('addon_id', 'base_charge', 'block_size', 'feature_id', 'price', 'tiers')
3272
+ __field_names__ = ('addon_id', 'base_charge', 'block_size', 'credit_rate', 'feature_id', 'price', 'tiers')
3266
3273
  addon_id = sgqlc.types.Field(String, graphql_name='addonId')
3267
3274
  base_charge = sgqlc.types.Field(Boolean, graphql_name='baseCharge')
3268
3275
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
3276
+ credit_rate = sgqlc.types.Field(CreditRateInput, graphql_name='creditRate')
3269
3277
  feature_id = sgqlc.types.Field(String, graphql_name='featureId')
3270
3278
  price = sgqlc.types.Field(MoneyInputDTO, graphql_name='price')
3271
3279
  tiers = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PriceTierInput')), graphql_name='tiers')
@@ -3273,10 +3281,11 @@ class PriceOverrideInput(sgqlc.types.Input):
3273
3281
 
3274
3282
  class PricePeriodInput(sgqlc.types.Input):
3275
3283
  __schema__ = schema
3276
- __field_names__ = ('billing_country_code', 'billing_period', 'block_size', 'price', 'tiers')
3284
+ __field_names__ = ('billing_country_code', 'billing_period', 'block_size', 'credit_rate', 'price', 'tiers')
3277
3285
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
3278
3286
  billing_period = sgqlc.types.Field(sgqlc.types.non_null(BillingPeriod), graphql_name='billingPeriod')
3279
3287
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
3288
+ credit_rate = sgqlc.types.Field(CreditRateInput, graphql_name='creditRate')
3280
3289
  price = sgqlc.types.Field(MoneyInputDTO, graphql_name='price')
3281
3290
  tiers = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PriceTierInput')), graphql_name='tiers')
3282
3291
 
@@ -5492,19 +5501,20 @@ class CouponMinAggregate(sgqlc.types.Type):
5492
5501
  updated_at = sgqlc.types.Field(DateTime, graphql_name='updatedAt')
5493
5502
 
5494
5503
 
5495
- class CreditBalanceDTO(sgqlc.types.Type):
5504
+ class CreditBalance(sgqlc.types.Type):
5496
5505
  __schema__ = schema
5497
- __field_names__ = ('currency_id', 'current_balance', 'total_consumed', 'total_granted')
5506
+ __field_names__ = ('currency', 'currency_id', 'current_balance', 'total_consumed', 'total_granted')
5507
+ currency = sgqlc.types.Field(sgqlc.types.non_null('SlimCustomCurrency'), graphql_name='currency')
5498
5508
  currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
5499
5509
  current_balance = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='currentBalance')
5500
5510
  total_consumed = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalConsumed')
5501
5511
  total_granted = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalGranted')
5502
5512
 
5503
5513
 
5504
- class CreditBalanceSummaryDTO(sgqlc.types.Type):
5514
+ class CreditBalanceSummary(sgqlc.types.Type):
5505
5515
  __schema__ = schema
5506
5516
  __field_names__ = ('balances', 'customer_id', 'resource_id')
5507
- balances = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditBalanceDTO))), graphql_name='balances')
5517
+ balances = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(CreditBalance))), graphql_name='balances')
5508
5518
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
5509
5519
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
5510
5520
 
@@ -5530,6 +5540,13 @@ class CreditGrant(sgqlc.types.Type):
5530
5540
  updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
5531
5541
 
5532
5542
 
5543
+ class CreditRate(sgqlc.types.Type):
5544
+ __schema__ = schema
5545
+ __field_names__ = ('amount', 'custom_currency_id')
5546
+ amount = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='amount')
5547
+ custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
5548
+
5549
+
5533
5550
  class CustomCurrency(sgqlc.types.Type):
5534
5551
  __schema__ = schema
5535
5552
  __field_names__ = ('additional_meta_data', 'created_at', 'currency_id', 'display_name', 'id', 'symbol', 'updated_at')
@@ -5812,20 +5829,22 @@ class CustomerPortalSubscription(sgqlc.types.Type):
5812
5829
 
5813
5830
  class CustomerPortalSubscriptionPrice(sgqlc.types.Type):
5814
5831
  __schema__ = schema
5815
- __field_names__ = ('billing_model', 'billing_period', 'block_size', 'feature', 'price')
5832
+ __field_names__ = ('billing_model', 'billing_period', 'block_size', 'credit_rate', 'feature', 'price')
5816
5833
  billing_model = sgqlc.types.Field(BillingModel, graphql_name='billingModel')
5817
5834
  billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
5818
5835
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
5836
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
5819
5837
  feature = sgqlc.types.Field(CustomerPortalPricingFeature, graphql_name='feature')
5820
5838
  price = sgqlc.types.Field('Money', graphql_name='price')
5821
5839
 
5822
5840
 
5823
5841
  class CustomerPortalSubscriptionPricing(sgqlc.types.Type):
5824
5842
  __schema__ = schema
5825
- __field_names__ = ('billing_country_code', 'billing_model', 'billing_period', 'feature', 'price', 'pricing_type', 'unit_quantity', 'usage_based_estimated_bill')
5843
+ __field_names__ = ('billing_country_code', 'billing_model', 'billing_period', 'credit_rate', 'feature', 'price', 'pricing_type', 'unit_quantity', 'usage_based_estimated_bill')
5826
5844
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
5827
5845
  billing_model = sgqlc.types.Field(BillingModel, graphql_name='billingModel')
5828
5846
  billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
5847
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
5829
5848
  feature = sgqlc.types.Field(CustomerPortalPricingFeature, graphql_name='feature')
5830
5849
  price = sgqlc.types.Field('Money', graphql_name='price')
5831
5850
  pricing_type = sgqlc.types.Field(sgqlc.types.non_null(PricingType), graphql_name='pricingType')
@@ -8403,12 +8422,13 @@ class PaywallPlanCompatiblePackageGroupOptions(sgqlc.types.Type):
8403
8422
 
8404
8423
  class PaywallPrice(sgqlc.types.Type):
8405
8424
  __schema__ = schema
8406
- __field_names__ = ('billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'feature', 'feature_id', 'max_unit_quantity', 'min_unit_quantity', 'price', 'tiers', 'tiers_mode')
8425
+ __field_names__ = ('billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'credit_rate', 'feature', 'feature_id', 'max_unit_quantity', 'min_unit_quantity', 'price', 'tiers', 'tiers_mode')
8407
8426
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
8408
8427
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
8409
8428
  billing_model = sgqlc.types.Field(sgqlc.types.non_null(BillingModel), graphql_name='billingModel')
8410
8429
  billing_period = sgqlc.types.Field(sgqlc.types.non_null(BillingPeriod), graphql_name='billingPeriod')
8411
8430
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
8431
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
8412
8432
  feature = sgqlc.types.Field(EntitlementFeature, graphql_name='feature')
8413
8433
  feature_id = sgqlc.types.Field(String, graphql_name='featureId')
8414
8434
  max_unit_quantity = sgqlc.types.Field(Float, graphql_name='maxUnitQuantity')
@@ -8666,7 +8686,7 @@ class PreparedPaymentMethodForm(sgqlc.types.Type):
8666
8686
 
8667
8687
  class Price(sgqlc.types.Type):
8668
8688
  __schema__ = schema
8669
- __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', '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')
8689
+ __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')
8670
8690
  billing_cadence = sgqlc.types.Field(sgqlc.types.non_null(BillingCadence), graphql_name='billingCadence')
8671
8691
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
8672
8692
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
@@ -8674,6 +8694,7 @@ class Price(sgqlc.types.Type):
8674
8694
  billing_period = sgqlc.types.Field(sgqlc.types.non_null(BillingPeriod), graphql_name='billingPeriod')
8675
8695
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
8676
8696
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
8697
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
8677
8698
  crm_id = sgqlc.types.Field(String, graphql_name='crmId')
8678
8699
  crm_link_url = sgqlc.types.Field(String, graphql_name='crmLinkUrl')
8679
8700
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
@@ -8719,7 +8740,7 @@ class PriceCountAggregate(sgqlc.types.Type):
8719
8740
 
8720
8741
  class PriceDeleteResponse(sgqlc.types.Type):
8721
8742
  __schema__ = schema
8722
- __field_names__ = ('billing_cadence', 'billing_country_code', 'billing_id', 'billing_model', 'billing_period', 'block_size', 'created_at', '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')
8743
+ __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')
8723
8744
  billing_cadence = sgqlc.types.Field(BillingCadence, graphql_name='billingCadence')
8724
8745
  billing_country_code = sgqlc.types.Field(String, graphql_name='billingCountryCode')
8725
8746
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
@@ -8727,6 +8748,7 @@ class PriceDeleteResponse(sgqlc.types.Type):
8727
8748
  billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
8728
8749
  block_size = sgqlc.types.Field(Float, graphql_name='blockSize')
8729
8750
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
8751
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
8730
8752
  crm_id = sgqlc.types.Field(String, graphql_name='crmId')
8731
8753
  crm_link_url = sgqlc.types.Field(String, graphql_name='crmLinkUrl')
8732
8754
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
@@ -9171,7 +9193,7 @@ class Query(sgqlc.types.Type):
9171
9193
  ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(CouponSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
9172
9194
  ))
9173
9195
  )
9174
- credit_balance_summary = sgqlc.types.Field(sgqlc.types.non_null(CreditBalanceSummaryDTO), graphql_name='creditBalanceSummary', args=sgqlc.types.ArgDict((
9196
+ credit_balance_summary = sgqlc.types.Field(sgqlc.types.non_null(CreditBalanceSummary), graphql_name='creditBalanceSummary', args=sgqlc.types.ArgDict((
9175
9197
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(CreditBalanceSummaryInput), graphql_name='input', default=None)),
9176
9198
  ))
9177
9199
  )
@@ -9495,6 +9517,14 @@ class SdkConfiguration(sgqlc.types.Type):
9495
9517
  sentry_dsn = sgqlc.types.Field(String, graphql_name='sentryDsn')
9496
9518
 
9497
9519
 
9520
+ class SlimCustomCurrency(sgqlc.types.Type):
9521
+ __schema__ = schema
9522
+ __field_names__ = ('currency_id', 'display_name', 'symbol')
9523
+ currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
9524
+ display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='displayName')
9525
+ symbol = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='symbol')
9526
+
9527
+
9498
9528
  class SnowflakeCredentials(sgqlc.types.Type):
9499
9529
  __schema__ = schema
9500
9530
  __field_names__ = ('airbyte_connection_id', 'airbyte_destination_id', 'database', 'host', 'role', 'schema_name', 'username', 'warehouse')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.13.0
3
+ Version: 3.17.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=98C8us4bNsNPxL67CIAxKJ9bc-98zrNN1ttZnDXuxCY,82512
5
+ stigg/generated/schema.py,sha256=9Djx_f1fWB6gYJjVww3hVRG9ugZfMFBKPIp0CEKu83Q,695724
6
+ stigg_api_client-3.17.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-3.17.0.dist-info/METADATA,sha256=h0Z5rqXnuzmmpqel9-6-N7ItW_FIhZP3s_zL-B4B-nc,3197
8
+ stigg_api_client-3.17.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-3.17.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=6upyj_LMavtOecQ_LzXeGpqN5dSZZGDhbZbS_5VdBA8,82008
5
- stigg/generated/schema.py,sha256=oo_S1FaABibYj8uNjfL7iknNlrFru5zVwUfSUmo3fxY,693946
6
- stigg_api_client-3.13.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-3.13.0.dist-info/METADATA,sha256=AcFKBsE5UQRS1XIEc_cRLSLV54hDpCVsv0s2SfmcOLM,3197
8
- stigg_api_client-3.13.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-3.13.0.dist-info/RECORD,,