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

@@ -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())
@@ -832,6 +833,10 @@ def fragment_entitlement_fragment():
832
833
  _frag_reset_period_configuration.__fragment__(fragment_reset_period_configuration_fragment())
833
834
  _frag_feature = _frag.feature()
834
835
  _frag_feature.__fragment__(fragment_feature_fragment())
836
+ _frag_credit_rate = _frag.credit_rate()
837
+ _frag_credit_rate.amount()
838
+ _frag_credit_rate.currency_id()
839
+ _frag.valid_until()
835
840
  return _frag
836
841
 
837
842
 
@@ -930,6 +935,25 @@ def fragment_package_published_payload():
930
935
  return _frag
931
936
 
932
937
 
938
+ def fragment_credit_balance_updated_payload():
939
+ _frag = sgqlc.operation.Fragment(_schema.CreditBalanceUpdated, 'CreditBalanceUpdatedPayload')
940
+ _frag_currency = _frag.currency()
941
+ _frag_currency.currency_id()
942
+ _frag_currency.display_name()
943
+ _frag_currency.symbol()
944
+ _frag_currency_units = _frag_currency.units()
945
+ _frag_currency_units.singular()
946
+ _frag_currency_units.plural()
947
+ _frag.currency_id()
948
+ _frag.current_balance()
949
+ _frag.customer_id()
950
+ _frag.valid_until()
951
+ _frag.resource_id()
952
+ _frag.total_consumed()
953
+ _frag.total_granted()
954
+ return _frag
955
+
956
+
933
957
  def fragment_customer_portal_fragment():
934
958
  _frag = sgqlc.operation.Fragment(_schema.CustomerPortal, 'CustomerPortalFragment')
935
959
  _frag_subscriptions = _frag.subscriptions()
@@ -1035,7 +1059,7 @@ def fragment_customer_portal_subscription_price_fragment():
1035
1059
  _frag_price.currency()
1036
1060
  _frag_credit_rate = _frag.credit_rate()
1037
1061
  _frag_credit_rate.amount()
1038
- _frag_credit_rate.custom_currency_id()
1062
+ _frag_credit_rate.currency_id()
1039
1063
  _frag_feature = _frag.feature()
1040
1064
  _frag_feature.id()
1041
1065
  _frag_feature.ref_id()
@@ -1064,7 +1088,7 @@ def fragment_customer_portal_subscription_fragment():
1064
1088
  _frag_pricing_price.currency()
1065
1089
  _frag_pricing_credit_rate = _frag_pricing.credit_rate()
1066
1090
  _frag_pricing_credit_rate.amount()
1067
- _frag_pricing_credit_rate.custom_currency_id()
1091
+ _frag_pricing_credit_rate.currency_id()
1068
1092
  _frag_pricing_feature = _frag_pricing.feature()
1069
1093
  _frag_pricing_feature.feature_units()
1070
1094
  _frag_pricing_feature.feature_units_plural()
@@ -1227,7 +1251,7 @@ def fragment_mock_paywall_price_fragment():
1227
1251
  _frag_price.currency()
1228
1252
  _frag_credit_rate = _frag.credit_rate()
1229
1253
  _frag_credit_rate.amount()
1230
- _frag_credit_rate.custom_currency_id()
1254
+ _frag_credit_rate.currency_id()
1231
1255
  _frag.tiers_mode()
1232
1256
  _frag_tiers = _frag.tiers()
1233
1257
  _frag_tiers.__fragment__(fragment_price_tier_fragment())
@@ -1489,16 +1513,25 @@ def fragment_credits_balance_summary_fragment():
1489
1513
  _frag = sgqlc.operation.Fragment(_schema.CreditBalanceSummary, 'CreditsBalanceSummaryFragment')
1490
1514
  _frag.customer_id()
1491
1515
  _frag_balances = _frag.balances()
1492
- _frag_balances_currency = _frag_balances.currency()
1493
- _frag_balances_currency.currency_id()
1494
- _frag_balances_currency.display_name()
1495
- _frag_balances_currency.symbol()
1496
- _frag_balances_currency_units = _frag_balances_currency.units()
1497
- _frag_balances_currency_units.singular()
1498
- _frag_balances_currency_units.plural()
1499
- _frag_balances.current_balance()
1500
- _frag_balances.total_consumed()
1501
- _frag_balances.total_granted()
1516
+ _frag_balances.__fragment__(fragment_credit_balance_fragment())
1517
+ return _frag
1518
+
1519
+
1520
+ def fragment_credit_balance_fragment():
1521
+ _frag = sgqlc.operation.Fragment(_schema.CreditBalance, 'CreditBalanceFragment')
1522
+ _frag.customer_id()
1523
+ _frag_currency = _frag.currency()
1524
+ _frag_currency.currency_id()
1525
+ _frag_currency.display_name()
1526
+ _frag_currency.symbol()
1527
+ _frag_currency_units = _frag_currency.units()
1528
+ _frag_currency_units.singular()
1529
+ _frag_currency_units.plural()
1530
+ _frag.current_balance()
1531
+ _frag.total_consumed()
1532
+ _frag.total_granted()
1533
+ _frag.resource_id()
1534
+ _frag.valid_until()
1502
1535
  return _frag
1503
1536
 
1504
1537
 
@@ -1539,6 +1572,8 @@ class Fragment:
1539
1572
  checkout_configuration_fragment = fragment_checkout_configuration_fragment()
1540
1573
  checkout_state_fragment = fragment_checkout_state_fragment()
1541
1574
  coupon_fragment = fragment_coupon_fragment()
1575
+ credit_balance_fragment = fragment_credit_balance_fragment()
1576
+ credit_balance_updated_payload = fragment_credit_balance_updated_payload()
1542
1577
  credit_grant_fragment = fragment_credit_grant_fragment()
1543
1578
  credit_ledger_fragment = fragment_credit_ledger_fragment()
1544
1579
  credit_usage_fragment = fragment_credit_usage_fragment()
@@ -2094,7 +2129,15 @@ def subscription_on_package_published():
2094
2129
  return _op
2095
2130
 
2096
2131
 
2132
+ def subscription_on_credit_balance_updated():
2133
+ _op = sgqlc.operation.Operation(_schema_root.subscription_type, name='OnCreditBalanceUpdated')
2134
+ _op_credit_balance_updated = _op.credit_balance_updated()
2135
+ _op_credit_balance_updated.__fragment__(fragment_credit_balance_updated_payload())
2136
+ return _op
2137
+
2138
+
2097
2139
  class Subscription:
2140
+ on_credit_balance_updated = subscription_on_credit_balance_updated()
2098
2141
  on_entitlements_updated = subscription_on_entitlements_updated()
2099
2142
  on_package_published = subscription_on_package_published()
2100
2143
  on_usage_updated = subscription_on_usage_updated()
stigg/generated/schema.py CHANGED
@@ -220,7 +220,7 @@ class EnvironmentType(sgqlc.types.Enum):
220
220
 
221
221
  class ErrorCode(sgqlc.types.Enum):
222
222
  __schema__ = schema
223
- __choices__ = ('AccessDeniedError', 'AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonIsCompatibleWithGroup', 'AddonIsCompatibleWithPlan', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AddonsNotFound', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CanNotUpdateEntitlementsFeatureGroup', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotArchiveFeatureGroupError', 'CannotChangeBillingIntegration', 'CannotDeleteCustomerError', 'CannotDeleteDefaultIntegration', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateExpireAtForExpiredCreditGrantError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'ChangingPayingCustomerIsNotSupportedError', 'CheckoutIsNotSupported', 'CouponNotFound', 'CreditGrantNotFound', 'CustomCurrencyNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DeprecatedEstimateSubscriptionError', 'DowngradeBillingPeriodNotSupportedError', 'DraftAddonCantBeArchived', 'DraftAlreadyExists', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateIntegrationNotAllowed', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementBelongsToFeatureGroupError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'ExpireAtMustBeLaterThanEffectiveAtError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FailedToImportSubscriptions', 'FailedToResolveBillingIntegration', 'FeatureConfigurationExceededLimitError', 'FeatureGroupMissingFeaturesError', 'FeatureGroupNotFoundError', 'FeatureNotBelongToFeatureGroupError', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'GraphQLAliasesLimitExceeded', 'GraphQLBatchedOperationsLimitExceeded', 'GraphQLUnsupportedDirective', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'IncompatibleSubscriptionAddon', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidDoggoSignatureError', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoDraftOfferFound', 'NoFeatureEntitlementError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OfferAlreadyExists', 'OfferNotFound', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'RequiredSsoAuthenticationError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManyCustomCurrencies', 'TooManySubscriptionsPerCustomer', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedParameter', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError', 'VersionExceedsMaxValueError', 'WorkflowTriggerNotFound')
223
+ __choices__ = ('AccessDeniedError', 'AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonIsCompatibleWithGroup', 'AddonIsCompatibleWithPlan', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AddonsNotFound', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AuthCustomerReadonly', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationAlreadyExistsError', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CanNotUpdateEntitlementsFeatureGroup', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotArchiveFeatureGroupError', 'CannotChangeBillingIntegration', 'CannotDeleteCustomerError', 'CannotDeleteDefaultIntegration', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpdateExpireAtForExpiredCreditGrantError', 'CannotUpdateUnitTransformationError', 'CannotUpsertToPackageThatHasDraft', 'ChangingPayingCustomerIsNotSupportedError', 'CheckoutIsNotSupported', 'CouponNotFound', 'CreditGrantNotFound', 'CustomCurrencyNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DeprecatedEstimateSubscriptionError', 'DowngradeBillingPeriodNotSupportedError', 'DraftAddonCantBeArchived', 'DraftAlreadyExists', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateIntegrationNotAllowed', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementBelongsToFeatureGroupError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'ExpireAtMustBeLaterThanEffectiveAtError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FailedToImportSubscriptions', 'FailedToResolveBillingIntegration', 'FeatureConfigurationExceededLimitError', 'FeatureGroupMissingFeaturesError', 'FeatureGroupNotFoundError', 'FeatureNotBelongToFeatureGroupError', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'GraphQLAliasesLimitExceeded', 'GraphQLBatchedOperationsLimitExceeded', 'GraphQLUnsupportedDirective', 'HubspotIntegrationError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'IncompatibleSubscriptionAddon', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidDoggoSignatureError', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'MultiSubscriptionCantBeAutoCancellationSourceError', 'NoActiveSubscriptionForCustomer', 'NoDraftOfferFound', 'NoFeatureEntitlementError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OfferAlreadyExists', 'OfferNotFound', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PreparePaymentMethodFormError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'RequiredSsoAuthenticationError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'SingleSubscriptionCantBeAutoCancellationTargetError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionDoesNotHaveBillingPeriod', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManyCustomCurrencies', 'TooManySubscriptionsPerCustomer', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedParameter', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError', 'VersionExceedsMaxValueError', 'WorkflowTriggerNotFound')
224
224
 
225
225
 
226
226
  class EventActor(sgqlc.types.Enum):
@@ -1378,9 +1378,10 @@ class CreditBalanceSummaryInput(sgqlc.types.Input):
1378
1378
 
1379
1379
  class CreditGrantInput(sgqlc.types.Input):
1380
1380
  __schema__ = schema
1381
- __field_names__ = ('additional_meta_data', 'amount', 'comment', 'cost', 'currency_id', 'customer_id', 'display_name', 'effective_at', 'environment_id', 'expire_at', 'grant_type', 'priority', 'resource_id')
1381
+ __field_names__ = ('additional_meta_data', 'amount', 'await_payment_confirmation', 'comment', 'cost', 'currency_id', 'customer_id', 'display_name', 'effective_at', 'environment_id', 'expire_at', 'grant_type', 'payment_collection_method', 'priority', 'resource_id')
1382
1382
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
1383
1383
  amount = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='amount')
1384
+ await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
1384
1385
  comment = sgqlc.types.Field(String, graphql_name='comment')
1385
1386
  cost = sgqlc.types.Field('MoneyInputDTO', graphql_name='cost')
1386
1387
  currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
@@ -1390,6 +1391,7 @@ class CreditGrantInput(sgqlc.types.Input):
1390
1391
  environment_id = sgqlc.types.Field(UUID, graphql_name='environmentId')
1391
1392
  expire_at = sgqlc.types.Field(DateTime, graphql_name='expireAt')
1392
1393
  grant_type = sgqlc.types.Field(sgqlc.types.non_null(CreditGrantType), graphql_name='grantType')
1394
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
1393
1395
  priority = sgqlc.types.Field(Float, graphql_name='priority')
1394
1396
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
1395
1397
 
@@ -1404,9 +1406,10 @@ class CreditLedgerInput(sgqlc.types.Input):
1404
1406
 
1405
1407
  class CreditRateInput(sgqlc.types.Input):
1406
1408
  __schema__ = schema
1407
- __field_names__ = ('amount', 'custom_currency_id')
1409
+ __field_names__ = ('amount', 'currency_id', 'custom_currency_id')
1408
1410
  amount = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='amount')
1409
- custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
1411
+ currency_id = sgqlc.types.Field(String, graphql_name='currencyId')
1412
+ custom_currency_id = sgqlc.types.Field(UUID, graphql_name='customCurrencyId')
1410
1413
 
1411
1414
 
1412
1415
  class CreditUsageInput(sgqlc.types.Input):
@@ -5767,12 +5770,15 @@ class CouponMinAggregate(sgqlc.types.Type):
5767
5770
 
5768
5771
  class CreditBalance(sgqlc.types.Type):
5769
5772
  __schema__ = schema
5770
- __field_names__ = ('currency', 'currency_id', 'current_balance', 'total_consumed', 'total_granted')
5773
+ __field_names__ = ('currency', 'currency_id', 'current_balance', 'customer_id', 'resource_id', 'total_consumed', 'total_granted', 'valid_until')
5771
5774
  currency = sgqlc.types.Field(sgqlc.types.non_null('SlimCustomCurrency'), graphql_name='currency')
5772
5775
  currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
5773
5776
  current_balance = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='currentBalance')
5777
+ customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
5778
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
5774
5779
  total_consumed = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalConsumed')
5775
5780
  total_granted = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalGranted')
5781
+ valid_until = sgqlc.types.Field(Float, graphql_name='validUntil')
5776
5782
 
5777
5783
 
5778
5784
  class CreditBalanceSummary(sgqlc.types.Type):
@@ -5783,6 +5789,21 @@ class CreditBalanceSummary(sgqlc.types.Type):
5783
5789
  resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
5784
5790
 
5785
5791
 
5792
+ class CreditBalanceUpdated(sgqlc.types.Type):
5793
+ __schema__ = schema
5794
+ __field_names__ = ('account_id', 'currency', 'currency_id', 'current_balance', 'customer_id', 'environment_id', 'resource_id', 'total_consumed', 'total_granted', 'valid_until')
5795
+ account_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='accountId')
5796
+ currency = sgqlc.types.Field(sgqlc.types.non_null('SlimCustomCurrency'), graphql_name='currency')
5797
+ currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
5798
+ current_balance = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='currentBalance')
5799
+ customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
5800
+ environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
5801
+ resource_id = sgqlc.types.Field(String, graphql_name='resourceId')
5802
+ total_consumed = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalConsumed')
5803
+ total_granted = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='totalGranted')
5804
+ valid_until = sgqlc.types.Field(Float, graphql_name='validUntil')
5805
+
5806
+
5786
5807
  class CreditGrant(sgqlc.types.Type):
5787
5808
  __schema__ = schema
5788
5809
  __field_names__ = ('additional_meta_data', 'amount', 'comment', 'consumed_amount', 'cost', 'created_at', 'currency_id', 'customer_id', 'display_name', 'effective_at', 'expire_at', 'grant_id', 'grant_type', 'id', 'priority', 'resource_id', 'updated_at')
@@ -5842,9 +5863,10 @@ class CreditLedgerEvent(sgqlc.types.Type):
5842
5863
 
5843
5864
  class CreditRate(sgqlc.types.Type):
5844
5865
  __schema__ = schema
5845
- __field_names__ = ('amount', 'custom_currency_id')
5866
+ __field_names__ = ('amount', 'currency_id', 'custom_currency_id')
5846
5867
  amount = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='amount')
5847
- custom_currency_id = sgqlc.types.Field(sgqlc.types.non_null(UUID), graphql_name='customCurrencyId')
5868
+ currency_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='currencyId')
5869
+ custom_currency_id = sgqlc.types.Field(UUID, graphql_name='customCurrencyId')
5848
5870
 
5849
5871
 
5850
5872
  class CreditUsage(sgqlc.types.Type):
@@ -6527,8 +6549,9 @@ class EligibleForTrial(sgqlc.types.Type):
6527
6549
 
6528
6550
  class Entitlement(sgqlc.types.Type):
6529
6551
  __schema__ = schema
6530
- __field_names__ = ('access_denied_reason', 'current_usage', 'customer_id', 'display_name_override', 'entitlement_updated_at', 'enum_values', 'feature', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_granted', 'meter_id', 'next_reset_date', 'requested_usage', 'requested_values', 'reset_period', 'reset_period_configuration', 'resource_id', 'usage_limit', 'usage_period_anchor', 'usage_period_end', 'usage_period_start', 'usage_updated_at')
6552
+ __field_names__ = ('access_denied_reason', 'credit_rate', 'current_usage', 'customer_id', 'display_name_override', 'entitlement_updated_at', 'enum_values', 'feature', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_granted', 'meter_id', 'next_reset_date', 'requested_usage', 'requested_values', 'reset_period', 'reset_period_configuration', 'resource_id', 'usage_limit', 'usage_period_anchor', 'usage_period_end', 'usage_period_start', 'usage_updated_at', 'valid_until')
6531
6553
  access_denied_reason = sgqlc.types.Field(AccessDeniedReason, graphql_name='accessDeniedReason')
6554
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
6532
6555
  current_usage = sgqlc.types.Field(Float, graphql_name='currentUsage')
6533
6556
  customer_id = sgqlc.types.Field(String, graphql_name='customerId')
6534
6557
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
@@ -6551,6 +6574,7 @@ class Entitlement(sgqlc.types.Type):
6551
6574
  usage_period_end = sgqlc.types.Field(DateTime, graphql_name='usagePeriodEnd')
6552
6575
  usage_period_start = sgqlc.types.Field(DateTime, graphql_name='usagePeriodStart')
6553
6576
  usage_updated_at = sgqlc.types.Field(DateTime, graphql_name='usageUpdatedAt')
6577
+ valid_until = sgqlc.types.Field(Float, graphql_name='validUntil')
6554
6578
 
6555
6579
 
6556
6580
  class EntitlementFeature(sgqlc.types.Type):
@@ -6592,8 +6616,9 @@ class EntitlementSummary(sgqlc.types.Type):
6592
6616
 
6593
6617
  class EntitlementWithSummary(sgqlc.types.Type):
6594
6618
  __schema__ = schema
6595
- __field_names__ = ('access_denied_reason', 'current_usage', 'customer_id', 'display_name_override', 'entitlement_updated_at', 'enum_values', 'feature', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_granted', 'meter_id', 'next_reset_date', 'requested_usage', 'requested_values', 'reset_period', 'reset_period_configuration', 'resource_id', 'summaries', 'usage_limit', 'usage_period_anchor', 'usage_period_end', 'usage_period_start', 'usage_updated_at')
6619
+ __field_names__ = ('access_denied_reason', 'credit_rate', 'current_usage', 'customer_id', 'display_name_override', 'entitlement_updated_at', 'enum_values', 'feature', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_granted', 'meter_id', 'next_reset_date', 'requested_usage', 'requested_values', 'reset_period', 'reset_period_configuration', 'resource_id', 'summaries', 'usage_limit', 'usage_period_anchor', 'usage_period_end', 'usage_period_start', 'usage_updated_at', 'valid_until')
6596
6620
  access_denied_reason = sgqlc.types.Field(AccessDeniedReason, graphql_name='accessDeniedReason')
6621
+ credit_rate = sgqlc.types.Field(CreditRate, graphql_name='creditRate')
6597
6622
  current_usage = sgqlc.types.Field(Float, graphql_name='currentUsage')
6598
6623
  customer_id = sgqlc.types.Field(String, graphql_name='customerId')
6599
6624
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
@@ -6617,6 +6642,7 @@ class EntitlementWithSummary(sgqlc.types.Type):
6617
6642
  usage_period_end = sgqlc.types.Field(DateTime, graphql_name='usagePeriodEnd')
6618
6643
  usage_period_start = sgqlc.types.Field(DateTime, graphql_name='usagePeriodStart')
6619
6644
  usage_updated_at = sgqlc.types.Field(DateTime, graphql_name='usageUpdatedAt')
6645
+ valid_until = sgqlc.types.Field(Float, graphql_name='validUntil')
6620
6646
 
6621
6647
 
6622
6648
  class EntitlementsState(sgqlc.types.Type):
@@ -8323,6 +8349,14 @@ class Mutation(sgqlc.types.Type):
8323
8349
  )
8324
8350
 
8325
8351
 
8352
+ class NoActiveSubscriptionForCustomerError(sgqlc.types.Type):
8353
+ __schema__ = schema
8354
+ __field_names__ = ('code', 'customer_ref_id', 'is_validation_error')
8355
+ code = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='code')
8356
+ customer_ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerRefId')
8357
+ is_validation_error = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isValidationError')
8358
+
8359
+
8326
8360
  class NumberChange(sgqlc.types.Type):
8327
8361
  __schema__ = schema
8328
8362
  __field_names__ = ('after', 'before', 'change_type')
@@ -10162,7 +10196,8 @@ class StripeSubscriptionSearchResult(sgqlc.types.Type):
10162
10196
 
10163
10197
  class Subscription(sgqlc.types.Type):
10164
10198
  __schema__ = schema
10165
- __field_names__ = ('entitlements_updated', 'package_published', 'usage_updated')
10199
+ __field_names__ = ('credit_balance_updated', 'entitlements_updated', 'package_published', 'usage_updated')
10200
+ credit_balance_updated = sgqlc.types.Field(sgqlc.types.non_null(CreditBalanceUpdated), graphql_name='creditBalanceUpdated')
10166
10201
  entitlements_updated = sgqlc.types.Field(sgqlc.types.non_null(EntitlementsUpdated), graphql_name='entitlementsUpdated')
10167
10202
  package_published = sgqlc.types.Field(sgqlc.types.non_null(PackagePublished), graphql_name='packagePublished')
10168
10203
  usage_updated = sgqlc.types.Field(sgqlc.types.non_null('UsageUpdated'), graphql_name='usageUpdated')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 3.98.1
3
+ Version: 3.101.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=bv6qEelAdfNiTsCRwzUfChTCja1PSx50K5_7SinoLTI,93800
5
+ stigg/generated/schema.py,sha256=8P7qGCQXxSsRmL5Mo7Tk1QMow5yFOv-5VQ1zwJ5scEs,731658
6
+ stigg_api_client-3.101.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-3.101.0.dist-info/METADATA,sha256=8qYPsqFhROY15nw9fLPlV3uo5hpYybzRSFyT2v4yoi8,3198
8
+ stigg_api_client-3.101.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-3.101.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=PdSyFxtjB0eaONXojH8U7OozHcgOKIftPw0rh7AttJU,92352
5
- stigg/generated/schema.py,sha256=zaWDmQbQFfPm_ZhnVFkV8fd8lw8tILg9W8h7MccqTE8,728799
6
- stigg_api_client-3.98.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-3.98.1.dist-info/METADATA,sha256=39FThROOFXNkAla8f9HaxiAnCKcTDiSpGrLZjqxeHRU,3197
8
- stigg_api_client-3.98.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-3.98.1.dist-info/RECORD,,