stigg-api-client 1.176.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.176.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.176.0"
3
+ version = "1.180.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -143,6 +143,11 @@ class DiscountType(sgqlc.types.Enum):
143
143
  __choices__ = ('FIXED', 'PERCENTAGE')
144
144
 
145
145
 
146
+ class EntitlementBehavior(sgqlc.types.Enum):
147
+ __schema__ = schema
148
+ __choices__ = ('Increment', 'Override')
149
+
150
+
146
151
  class EntitlementResetPeriod(sgqlc.types.Enum):
147
152
  __schema__ = schema
148
153
  __choices__ = ('DAY', 'HOUR', 'MONTH', 'WEEK', 'YEAR')
@@ -170,7 +175,7 @@ class EnvironmentType(sgqlc.types.Enum):
170
175
 
171
176
  class ErrorCode(sgqlc.types.Enum):
172
177
  __schema__ = schema
173
- __choices__ = ('AccountNotFoundError', 'AddonDependencyMissingError', 'AddonHasToHavePriceError', 'AddonNotFound', 'AddonQuantityExceedsLimitError', 'AddonWithDraftCannotBeDeletedError', 'AmountTooLarge', 'ArchivedCouponCantBeApplied', 'AuthCustomerMismatch', 'AwsMarketplaceIntegrationError', 'AwsMarketplaceIntegrationValidationError', 'BadUserInput', 'BillingIntegrationMissing', 'BillingPeriodMissingError', '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')
174
179
 
175
180
 
176
181
  class EventLogType(sgqlc.types.Enum):
@@ -234,6 +239,11 @@ class IntegrationSortFields(sgqlc.types.Enum):
234
239
  __choices__ = ('createdAt', 'environmentId', 'id', 'vendorIdentifier')
235
240
 
236
241
 
242
+ class InvoiceLineItemType(sgqlc.types.Enum):
243
+ __schema__ = schema
244
+ __choices__ = ('AddonCharge', 'BaseCharge', 'InAdvanceCommitmentCharge', 'MinimumSpendAdjustmentCharge', 'OverageCharge', 'PayAsYouGoCharge', 'TierCharge')
245
+
246
+
237
247
  class JSON(sgqlc.types.Scalar):
238
248
  __schema__ = schema
239
249
 
@@ -2291,7 +2301,8 @@ class NumberFieldComparisonBetween(sgqlc.types.Input):
2291
2301
 
2292
2302
  class OverageEntitlementCreateInput(sgqlc.types.Input):
2293
2303
  __schema__ = schema
2294
- __field_names__ = ('description', 'display_name_override', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2304
+ __field_names__ = ('behavior', 'description', 'display_name_override', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2305
+ behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
2295
2306
  description = sgqlc.types.Field(String, graphql_name='description')
2296
2307
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
2297
2308
  feature_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='featureId')
@@ -2398,7 +2409,8 @@ class PackageEntitlementFilterPackageDTOFilter(sgqlc.types.Input):
2398
2409
 
2399
2410
  class PackageEntitlementInput(sgqlc.types.Input):
2400
2411
  __schema__ = schema
2401
- __field_names__ = ('description', 'display_name_override', 'environment_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2412
+ __field_names__ = ('behavior', 'description', 'display_name_override', 'environment_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'package_id', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2413
+ behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
2402
2414
  description = sgqlc.types.Field(String, graphql_name='description')
2403
2415
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
2404
2416
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
@@ -2426,7 +2438,8 @@ class PackageEntitlementSort(sgqlc.types.Input):
2426
2438
 
2427
2439
  class PackageEntitlementUpdateInput(sgqlc.types.Input):
2428
2440
  __schema__ = schema
2429
- __field_names__ = ('description', 'display_name_override', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2441
+ __field_names__ = ('behavior', 'description', 'display_name_override', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'is_custom', 'monthly_reset_period_configuration', 'order', 'reset_period', 'usage_limit', 'weekly_reset_period_configuration', 'yearly_reset_period_configuration')
2442
+ behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
2430
2443
  description = sgqlc.types.Field(String, graphql_name='description')
2431
2444
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
2432
2445
  has_soft_limit = sgqlc.types.Field(Boolean, graphql_name='hasSoftLimit')
@@ -6363,7 +6376,7 @@ class MonthlyResetPeriodConfig(sgqlc.types.Type):
6363
6376
 
6364
6377
  class Mutation(sgqlc.types.Type):
6365
6378
  __schema__ = schema
6366
- __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')
6367
6380
  add_compatible_addons_to_plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='addCompatibleAddonsToPlan', args=sgqlc.types.ArgDict((
6368
6381
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddCompatibleAddonsToPlanInput), graphql_name='input', default=None)),
6369
6382
  ))
@@ -6596,7 +6609,7 @@ class Mutation(sgqlc.types.Type):
6596
6609
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(SubscriptionMigrationInput), graphql_name='input', default=None)),
6597
6610
  ))
6598
6611
  )
6599
- 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((
6600
6613
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(PreviewNextInvoiceInput), graphql_name='input', default=None)),
6601
6614
  ))
6602
6615
  )
@@ -6744,6 +6757,10 @@ class Mutation(sgqlc.types.Type):
6744
6757
  )
6745
6758
  stop_experiment = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='stopExperiment', args=sgqlc.types.ArgDict((
6746
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)),
6747
6764
  ))
6748
6765
  )
6749
6766
  sync_tax_rates = sgqlc.types.Field(String, graphql_name='syncTaxRates', args=sgqlc.types.ArgDict((
@@ -6946,7 +6963,8 @@ class PackageDraftSummary(sgqlc.types.Type):
6946
6963
 
6947
6964
  class PackageEntitlement(sgqlc.types.Type):
6948
6965
  __schema__ = schema
6949
- __field_names__ = ('created_at', 'description', 'display_name_override', 'environment_id', 'feature', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'meter', 'order', 'package', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
6966
+ __field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'environment_id', 'feature', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'meter', 'order', 'package', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
6967
+ behavior = sgqlc.types.Field(sgqlc.types.non_null(EntitlementBehavior), graphql_name='behavior')
6950
6968
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
6951
6969
  description = sgqlc.types.Field(String, graphql_name='description')
6952
6970
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
@@ -7006,7 +7024,8 @@ class PackageEntitlementCountAggregate(sgqlc.types.Type):
7006
7024
 
7007
7025
  class PackageEntitlementDeleteResponse(sgqlc.types.Type):
7008
7026
  __schema__ = schema
7009
- __field_names__ = ('created_at', 'description', 'display_name_override', 'environment_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'order', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
7027
+ __field_names__ = ('behavior', 'created_at', 'description', 'display_name_override', 'environment_id', 'feature_id', 'has_soft_limit', 'has_unlimited_usage', 'hidden_from_widgets', 'id', 'is_custom', 'order', 'package_id', 'reset_period', 'reset_period_configuration', 'updated_at', 'usage_limit')
7028
+ behavior = sgqlc.types.Field(EntitlementBehavior, graphql_name='behavior')
7010
7029
  created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
7011
7030
  description = sgqlc.types.Field(String, graphql_name='description')
7012
7031
  display_name_override = sgqlc.types.Field(String, graphql_name='displayNameOverride')
@@ -8608,6 +8627,75 @@ class SubscriptionInvoice(sgqlc.types.Type):
8608
8627
  updated_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='updatedAt')
8609
8628
 
8610
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
+
8611
8699
  class SubscriptionMigrationTask(sgqlc.types.Type):
8612
8700
  __schema__ = schema
8613
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')
@@ -8698,6 +8786,14 @@ class SubscriptionMustHaveSinglePlanError(sgqlc.types.Type):
8698
8786
  ref_ids = sgqlc.types.Field(sgqlc.types.non_null(sgqlc.types.list_of(sgqlc.types.non_null(String))), graphql_name='refIds')
8699
8787
 
8700
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
+
8701
8797
  class SubscriptionPreview(sgqlc.types.Type):
8702
8798
  __schema__ = schema
8703
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')
@@ -8727,9 +8823,10 @@ class SubscriptionPreviewCredits(sgqlc.types.Type):
8727
8823
 
8728
8824
  class SubscriptionPreviewDiscount(sgqlc.types.Type):
8729
8825
  __schema__ = schema
8730
- __field_names__ = ('duration_in_months', 'duration_type', 'type', 'value')
8826
+ __field_names__ = ('duration_in_months', 'duration_type', 'name', 'type', 'value')
8731
8827
  duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
8732
8828
  duration_type = sgqlc.types.Field(sgqlc.types.non_null(DiscountDurationType), graphql_name='durationType')
8829
+ name = sgqlc.types.Field(String, graphql_name='name')
8733
8830
  type = sgqlc.types.Field(sgqlc.types.non_null(DiscountType), graphql_name='type')
8734
8831
  value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='value')
8735
8832