stigg-api-client 1.177.0__tar.gz → 1.180.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: 1.177.0
3
+ Version: 1.180.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 = "1.177.0"
3
+ version = "1.180.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -175,7 +175,7 @@ class EnvironmentType(sgqlc.types.Enum):
175
175
 
176
176
  class ErrorCode(sgqlc.types.Enum):
177
177
  __schema__ = schema
178
- __choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
178
+ __choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationMissing', 'BillingPeriodMissingError', 'CannotAddOverrideEntitlementToPlan', 'CannotArchiveFeatureError', 'CannotDeleteCustomerError', 'CannotDeleteFeatureError', 'CannotDeleteProductError', 'CannotEditPackageInNonDraftMode', 'CannotRemovePaymentMethodFromCustomerError', 'CannotReportUsageForEntitlementWithMeterError', 'CannotUpsertToPackageThatHasDraft', 'CheckoutIsNotSupported', 'CouponNotFound', 'CustomerAlreadyHaveCustomerCoupon', 'CustomerAlreadyUsesCoupon', 'CustomerHasNoEmailAddress', 'CustomerNoBillingId', 'CustomerNotFound', 'CustomerResourceNotFound', 'DowngradeBillingPeriodNotSupportedError', 'DraftPlanCantBeArchived', 'DuplicateAddonProvisionedError', 'DuplicateProductValidationError', 'DuplicatedEntityNotAllowed', 'EditAllowedOnDraftPackageOnlyError', 'EntitlementLimitExceededError', 'EntitlementUsageOutOfRangeError', 'EntitlementsMustBelongToSamePackage', 'EntityIdDifferentFromRefIdError', 'EntityIsArchivedError', 'EnvironmentMissing', 'ExperimentAlreadyRunning', 'ExperimentNotFoundError', 'ExperimentStatusError', 'FailedToCreateCheckoutSessionError', 'FailedToImportCustomer', 'FeatureNotFound', 'FetchAllCountriesPricesNotAllowed', 'FreePlanCantHaveCompatiblePackageGroupError', 'IdentityForbidden', 'ImportAlreadyInProgress', 'ImportSubscriptionsBulkError', 'InitStripePaymentMethodError', 'IntegrationNotFound', 'IntegrationValidationError', 'IntegrityViolation', 'InvalidAddressError', 'InvalidArgumentError', 'InvalidCancellationDate', 'InvalidEntitlementResetPeriod', 'InvalidMemberDelete', 'InvalidMetadataError', 'InvalidQuantity', 'InvalidSubscriptionStatus', 'InvalidUpdatePriceUnitAmountError', 'MemberInvitationError', 'MemberNotFound', 'MergeEnvironmentValidationError', 'MeterMustBeAssociatedToMeteredFeature', 'MeteringNotAvailableForFeatureType', 'MissingEntityIdError', 'MissingSubscriptionInvoiceError', 'NoFeatureEntitlementInSubscription', 'NoProductsAvailable', 'OperationNotAllowedDuringInProgressExperiment', 'PackageAlreadyPublished', 'PackageGroupMinItemsError', 'PackageGroupNotFound', 'PackagePricingTypeNotSet', 'PaymentMethodNotFoundError', 'PlanCannotBePublishWhenBasePlanIsDraft', 'PlanCannotBePublishWhenCompatibleAddonIsDraft', 'PlanIsUsedAsDefaultStartPlan', 'PlanIsUsedAsDowngradePlan', 'PlanNotFound', 'PlanWithChildCantBeDeleted', 'PlansCircularDependencyError', 'PriceNotFound', 'ProductNotFoundError', 'PromotionCodeCustomerNotFirstPurchase', 'PromotionCodeMaxRedemptionsReached', 'PromotionCodeMinimumAmountNotReached', 'PromotionCodeNotActive', 'PromotionCodeNotForCustomer', 'PromotionCodeNotFound', 'PromotionalEntitlementNotFoundError', 'RateLimitExceeded', 'RecalculateEntitlementsError', 'ResyncAlreadyInProgress', 'ScheduledMigrationAlreadyExistsError', 'SelectedBillingModelDoesntMatchImportedItemError', 'StripeCustomerIsDeleted', 'StripeError', 'SubscriptionAlreadyCanceledOrExpired', 'SubscriptionAlreadyOnLatestPlanError', 'SubscriptionInvoiceStatusError', 'SubscriptionMustHaveSinglePlanError', 'SubscriptionNoBillingId', 'SubscriptionNotFound', 'TooManySubscriptionsPerCustomer', 'TrialMinDateError', 'TrialMustBeCancelledImmediately', 'UnPublishedPackage', 'Unauthenticated', 'UncompatibleSubscriptionAddon', 'UnexpectedError', 'UnsupportedFeatureType', 'UnsupportedSubscriptionScheduleType', 'UnsupportedVendorIdentifier', 'UsageMeasurementDiffOutOfRangeError')
179
179
 
180
180
 
181
181
  class EventLogType(sgqlc.types.Enum):
@@ -239,6 +239,11 @@ class IntegrationSortFields(sgqlc.types.Enum):
239
239
  __choices__ = ('createdAt', 'environmentId', 'id', 'vendorIdentifier')
240
240
 
241
241
 
242
+ class InvoiceLineItemType(sgqlc.types.Enum):
243
+ __schema__ = schema
244
+ __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge')
245
+
246
+
242
247
  class JSON(sgqlc.types.Scalar):
243
248
  __schema__ = schema
244
249
 
@@ -6371,7 +6376,7 @@ class MonthlyResetPeriodConfig(sgqlc.types.Type):
6371
6376
 
6372
6377
  class Mutation(sgqlc.types.Type):
6373
6378
  __schema__ = schema
6374
- __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_overages', 'create_account', 'create_addon_draft', 'create_empty_addon_draft', 'create_empty_plan_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_feature', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_or_update_aws_marketplace_product', 'create_package_group', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_feature', 'delete_one_addon', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'detach_customer_payment_method', 'duplicate_product', 'edit_package_group', 'estimate_subscription', 'estimate_subscription_update', 'grant_promotional_entitlements', 'hide_getting_started_page', 'import_customers_bulk', 'import_one_customer', 'import_subscriptions_bulk', 'init_add_stripe_customer_payment_method', 'invite_members', 'mark_invoice_as_paid', 'merge_environment', 'migrate_subscription_to_latest', 'preview_next_invoice', 'preview_subscription', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'recalculate_entitlements', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'report_event', 'report_usage', 'report_usage_bulk', 'resend_email_verification', 'resync_integration', 'revoke_promotional_entitlement', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_compatible_package_groups', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_group_addons', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'sync_tax_rates', 'transfer_subscription', 'trigger_import_catalog', 'trigger_import_customers', 'trigger_plan_subscription_migration', 'trigger_subscription_billing_month_ends_soon_webhook', 'trigger_subscription_usage_sync', 'unarchive_customer', 'unarchive_environment', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_feature', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6379
+ __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_overages', 'create_account', 'create_addon_draft', 'create_empty_addon_draft', 'create_empty_plan_draft', 'create_feature', 'create_many_package_entitlements', 'create_many_promotional_entitlements', 'create_one_addon', 'create_one_coupon', 'create_one_customer', 'create_one_environment', 'create_one_experiment', 'create_one_feature', 'create_one_hook', 'create_one_integration', 'create_one_plan', 'create_one_product', 'create_or_update_aws_marketplace_product', 'create_package_group', 'create_plan_draft', 'create_subscription', 'create_usage_measurement', 'delete_feature', 'delete_one_addon', 'delete_one_feature', 'delete_one_hook', 'delete_one_integration', 'delete_one_package_entitlement', 'delete_one_price', 'delete_one_product', 'delete_one_promotional_entitlement', 'detach_customer_payment_method', 'duplicate_product', 'edit_package_group', 'estimate_subscription', 'estimate_subscription_update', 'grant_promotional_entitlements', 'hide_getting_started_page', 'import_customers_bulk', 'import_one_customer', 'import_subscriptions_bulk', 'init_add_stripe_customer_payment_method', 'invite_members', 'mark_invoice_as_paid', 'merge_environment', 'migrate_subscription_to_latest', 'preview_next_invoice', 'preview_subscription', 'provision_customer', 'provision_sandbox', 'provision_subscription', 'provision_subscription_v2', 'publish_addon', 'publish_plan', 'purge_customer_cache', 'recalculate_entitlements', 'register_member', 'remove_addon_draft', 'remove_base_plan_from_plan', 'remove_compatible_addons_from_plan', 'remove_coupon_from_customer', 'remove_coupon_from_customer_subscription', 'remove_experiment_from_customer', 'remove_experiment_from_customer_subscription', 'remove_member', 'remove_plan_draft', 'report_entitlement_check_requested', 'report_event', 'report_usage', 'report_usage_bulk', 'resend_email_verification', 'resync_integration', 'revoke_promotional_entitlement', 'set_base_plan_on_plan', 'set_compatible_addons_on_plan', 'set_compatible_package_groups', 'set_coupon_on_customer', 'set_coupon_on_customer_subscription', 'set_experiment_on_customer', 'set_experiment_on_customer_subscription', 'set_package_group_addons', 'set_package_pricing', 'set_widget_configuration', 'start_experiment', 'stop_experiment', 'subscription_maximum_spend', 'sync_tax_rates', 'transfer_subscription', 'trigger_import_catalog', 'trigger_import_customers', 'trigger_plan_subscription_migration', 'trigger_subscription_billing_month_ends_soon_webhook', 'trigger_subscription_usage_sync', 'unarchive_customer', 'unarchive_environment', 'update_account', 'update_entitlements_order', 'update_feature', 'update_one_addon', 'update_one_coupon', 'update_one_customer', 'update_one_environment', 'update_one_experiment', 'update_one_feature', 'update_one_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6375
6380
  add_compatible_addons_to_plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='addCompatibleAddonsToPlan', args=sgqlc.types.ArgDict((
6376
6381
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddCompatibleAddonsToPlanInput), graphql_name='input', default=None)),
6377
6382
  ))
@@ -6604,7 +6609,7 @@ class Mutation(sgqlc.types.Type):
6604
6609
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(SubscriptionMigrationInput), graphql_name='input', default=None)),
6605
6610
  ))
6606
6611
  )
6607
- preview_next_invoice = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionPreviewInvoice'), graphql_name='previewNextInvoice', args=sgqlc.types.ArgDict((
6612
+ preview_next_invoice = sgqlc.types.Field(sgqlc.types.non_null('SubscriptionInvoicePreview'), graphql_name='previewNextInvoice', args=sgqlc.types.ArgDict((
6608
6613
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(PreviewNextInvoiceInput), graphql_name='input', default=None)),
6609
6614
  ))
6610
6615
  )
@@ -6752,6 +6757,10 @@ class Mutation(sgqlc.types.Type):
6752
6757
  )
6753
6758
  stop_experiment = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='stopExperiment', args=sgqlc.types.ArgDict((
6754
6759
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(StopExperimentInput), graphql_name='input', default=None)),
6760
+ ))
6761
+ )
6762
+ subscription_maximum_spend = sgqlc.types.Field('SubscriptionMaximumSpend', graphql_name='subscriptionMaximumSpend', args=sgqlc.types.ArgDict((
6763
+ ('input', sgqlc.types.Arg(sgqlc.types.non_null(PreviewNextInvoiceInput), graphql_name='input', default=None)),
6755
6764
  ))
6756
6765
  )
6757
6766
  sync_tax_rates = sgqlc.types.Field(String, graphql_name='syncTaxRates', args=sgqlc.types.ArgDict((
@@ -8618,6 +8627,75 @@ class SubscriptionInvoice(sgqlc.types.Type):
8618
8627
  updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
8619
8628
 
8620
8629
 
8630
+ class SubscriptionInvoicePreview(sgqlc.types.Type):
8631
+ __schema__ = schema
8632
+ __field_names__ = ('amount_due', 'credits', 'discount', 'discount_details', 'last_updated_at', 'lines', 'minimum_spend_adjustment', 'sub_total', 'sub_total_excluding_tax', 'tax', 'tax_details', 'total', 'total_excluding_tax')
8633
+ amount_due = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amountDue')
8634
+ credits = sgqlc.types.Field('SubscriptionPreviewCredits', graphql_name='credits')
8635
+ discount = sgqlc.types.Field(Money, graphql_name='discount')
8636
+ discount_details = sgqlc.types.Field('SubscriptionPreviewDiscount', graphql_name='discountDetails')
8637
+ last_updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='lastUpdatedAt')
8638
+ lines = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItem'))), graphql_name='lines')
8639
+ minimum_spend_adjustment = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='minimumSpendAdjustment')
8640
+ sub_total = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='subTotal')
8641
+ sub_total_excluding_tax = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='subTotalExcludingTax')
8642
+ tax = sgqlc.types.Field(Money, graphql_name='tax')
8643
+ tax_details = sgqlc.types.Field('SubscriptionPreviewTaxDetails', graphql_name='taxDetails')
8644
+ total = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='total')
8645
+ total_excluding_tax = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='totalExcludingTax')
8646
+
8647
+
8648
+ class SubscriptionInvoicePreviewLineItem(sgqlc.types.Type):
8649
+ __schema__ = schema
8650
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'lines', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8651
+ amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8652
+ cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8653
+ description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8654
+ has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8655
+ lines = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionInvoicePreviewLineItemData')), graphql_name='lines')
8656
+ price = sgqlc.types.Field(Price, graphql_name='price')
8657
+ proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8658
+ quantity = sgqlc.types.Field(Int, graphql_name='quantity')
8659
+ type = sgqlc.types.Field(sgqlc.types.non_null(InvoiceLineItemType), graphql_name='type')
8660
+ unit_price = sgqlc.types.Field(Money, graphql_name='unitPrice')
8661
+ usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
8662
+
8663
+
8664
+ class SubscriptionInvoicePreviewLineItemData(sgqlc.types.Type):
8665
+ __schema__ = schema
8666
+ __field_names__ = ('amount', 'cost_description', 'description', 'has_soft_limit', 'price', 'proration', 'quantity', 'type', 'unit_price', 'usage_limit')
8667
+ amount = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='amount')
8668
+ cost_description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='costDescription')
8669
+ description = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='description')
8670
+ has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
8671
+ price = sgqlc.types.Field(Price, graphql_name='price')
8672
+ proration = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='proration')
8673
+ quantity = sgqlc.types.Field(Int, graphql_name='quantity')
8674
+ type = sgqlc.types.Field(sgqlc.types.non_null(InvoiceLineItemType), graphql_name='type')
8675
+ unit_price = sgqlc.types.Field(Money, graphql_name='unitPrice')
8676
+ usage_limit = sgqlc.types.Field(Float, graphql_name='usageLimit')
8677
+
8678
+
8679
+ class SubscriptionMaximumSpend(sgqlc.types.Type):
8680
+ __schema__ = schema
8681
+ __field_names__ = ('discount', 'discount_details', 'last_updated_at', 'lines', 'maximum_spend', 'sub_total', 'total')
8682
+ discount = sgqlc.types.Field(Money, graphql_name='discount')
8683
+ discount_details = sgqlc.types.Field('SubscriptionMaximumSpendDiscount', graphql_name='discountDetails')
8684
+ last_updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='lastUpdatedAt')
8685
+ lines = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionInvoicePreviewLineItem)), graphql_name='lines')
8686
+ maximum_spend = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='maximumSpend')
8687
+ sub_total = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='subTotal')
8688
+ total = sgqlc.types.Field(sgqlc.types.non_null(Money), graphql_name='total')
8689
+
8690
+
8691
+ class SubscriptionMaximumSpendDiscount(sgqlc.types.Type):
8692
+ __schema__ = schema
8693
+ __field_names__ = ('name', 'type', 'value')
8694
+ name = sgqlc.types.Field(String, graphql_name='name')
8695
+ type = sgqlc.types.Field(DiscountType, graphql_name='type')
8696
+ value = sgqlc.types.Field(Float, graphql_name='value')
8697
+
8698
+
8621
8699
  class SubscriptionMigrationTask(sgqlc.types.Type):
8622
8700
  __schema__ = schema
8623
8701
  __field_names__ = ('affected_customers_count', 'created_at', 'end_date', 'environment_id', 'id', 'initiated_package_id', 'migrated_customers_count', 'packages', 'progress', 'start_date', 'status', 'task_type')
@@ -8708,6 +8786,14 @@ class SubscriptionMustHaveSinglePlanError(sgqlc.types.Type):
8708
8786
  ref_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='refIds')
8709
8787
 
8710
8788
 
8789
+ class SubscriptionNoBillingId(sgqlc.types.Type):
8790
+ __schema__ = schema
8791
+ __field_names__ = ('code', 'is_validation_error', 'ref_id')
8792
+ code = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='code')
8793
+ is_validation_error = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='isValidationError')
8794
+ ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
8795
+
8796
+
8711
8797
  class SubscriptionPreview(sgqlc.types.Type):
8712
8798
  __schema__ = schema
8713
8799
  __field_names__ = ('billing_period_range', 'credits', 'discount', 'discount_amount', 'has_scheduled_updates', 'is_plan_downgrade', 'minimum_spend_adjustment', 'proration', 'sub_total', 'subscription', 'tax', 'tax_details', 'total', 'total_excluding_tax')
@@ -8737,9 +8823,10 @@ class SubscriptionPreviewCredits(sgqlc.types.Type):
8737
8823
 
8738
8824
  class SubscriptionPreviewDiscount(sgqlc.types.Type):
8739
8825
  __schema__ = schema
8740
- __field_names__ = ('duration_in_months', 'duration_type', 'type', 'value')
8826
+ __field_names__ = ('duration_in_months', 'duration_type', 'name', 'type', 'value')
8741
8827
  duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
8742
8828
  duration_type = sgqlc.types.Field(sgqlc.types.non_null(DiscountDurationType), graphql_name='durationType')
8829
+ name = sgqlc.types.Field(String, graphql_name='name')
8743
8830
  type = sgqlc.types.Field(sgqlc.types.non_null(DiscountType), graphql_name='type')
8744
8831
  value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
8745
8832