stigg-api-client 2.49.0__py3-none-any.whl → 2.71.1__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.

@@ -180,6 +180,8 @@ def fragment_plan_fragment():
180
180
  _frag_default_trial_config = _frag.default_trial_config()
181
181
  _frag_default_trial_config.duration()
182
182
  _frag_default_trial_config.units()
183
+ _frag_default_trial_config_budget = _frag_default_trial_config.budget()
184
+ _frag_default_trial_config_budget.limit()
183
185
  return _frag
184
186
 
185
187
 
@@ -620,6 +622,83 @@ def fragment_subscription_preview_v2_fragment():
620
622
  return _frag
621
623
 
622
624
 
625
+ def fragment_subscription_invoice_preview_fragment():
626
+ _frag = sgqlc.operation.Fragment(_schema.SubscriptionInvoicePreview, 'SubscriptionInvoicePreviewFragment')
627
+ _frag_amount_due = _frag.amount_due()
628
+ _frag_amount_due.amount()
629
+ _frag_amount_due.currency()
630
+ _frag_minimum_spend_adjustment = _frag.minimum_spend_adjustment()
631
+ _frag_minimum_spend_adjustment.amount()
632
+ _frag_minimum_spend_adjustment.currency()
633
+ _frag_total = _frag.total()
634
+ _frag_total.amount()
635
+ _frag_total.currency()
636
+ _frag_total_excluding_tax = _frag.total_excluding_tax()
637
+ _frag_total_excluding_tax.amount()
638
+ _frag_total_excluding_tax.currency()
639
+ _frag_sub_total = _frag.sub_total()
640
+ _frag_sub_total.amount()
641
+ _frag_sub_total.currency()
642
+ _frag_sub_total_excluding_tax = _frag.sub_total_excluding_tax()
643
+ _frag_sub_total_excluding_tax.amount()
644
+ _frag_sub_total_excluding_tax.currency()
645
+ _frag_tax = _frag.tax()
646
+ _frag_tax.amount()
647
+ _frag_tax.currency()
648
+ _frag_tax_details = _frag.tax_details()
649
+ _frag_tax_details.display_name()
650
+ _frag_tax_details.percentage()
651
+ _frag_tax_details.inclusive()
652
+ _frag_discount = _frag.discount()
653
+ _frag_discount.amount()
654
+ _frag_discount.currency()
655
+ _frag_discount_details = _frag.discount_details()
656
+ _frag_discount_details.name()
657
+ _frag_discount_details.type()
658
+ _frag_discount_details.value()
659
+ _frag_discount_details.duration_type()
660
+ _frag_discount_details.duration_in_months()
661
+ _frag_credits = _frag.credits()
662
+ _frag_credits_initial = _frag_credits.initial()
663
+ _frag_credits_initial.amount()
664
+ _frag_credits_initial.currency()
665
+ _frag_credits_used = _frag_credits.used()
666
+ _frag_credits_used.amount()
667
+ _frag_credits_used.currency()
668
+ _frag_credits_remaining = _frag_credits.remaining()
669
+ _frag_credits_remaining.amount()
670
+ _frag_credits_remaining.currency()
671
+ _frag.last_updated_at()
672
+ _frag_lines = _frag.lines()
673
+ _frag_lines.type()
674
+ _frag_lines.description()
675
+ _frag_lines.cost_description()
676
+ _frag_lines_amount = _frag_lines.amount()
677
+ _frag_lines_amount.amount()
678
+ _frag_lines_amount.currency()
679
+ _frag_lines_unit_price = _frag_lines.unit_price()
680
+ _frag_lines_unit_price.amount()
681
+ _frag_lines_unit_price.currency()
682
+ _frag_lines.quantity()
683
+ _frag_lines.proration()
684
+ _frag_lines_price = _frag_lines.price()
685
+ _frag_lines_price.__fragment__(fragment_price_fragment())
686
+ _frag_lines.usage_limit()
687
+ _frag_lines_period = _frag_lines.period()
688
+ _frag_lines_period.start()
689
+ _frag_lines_period.end()
690
+ _frag_lines.has_soft_limit()
691
+ _frag_lines_lines = _frag_lines.lines()
692
+ _frag_lines_lines.type()
693
+ _frag_lines_lines.description()
694
+ _frag_lines_lines.cost_description()
695
+ _frag_lines_lines.quantity()
696
+ _frag_lines_lines.proration()
697
+ _frag_lines_lines.usage_limit()
698
+ _frag_lines_lines.has_soft_limit()
699
+ return _frag
700
+
701
+
623
702
  def fragment_feature_fragment():
624
703
  _frag = sgqlc.operation.Fragment(_schema.EntitlementFeature, 'FeatureFragment')
625
704
  _frag.__typename__()
@@ -996,6 +1075,8 @@ def fragment_mock_paywall_plan_fragment():
996
1075
  _frag_default_trial_config = _frag.default_trial_config()
997
1076
  _frag_default_trial_config.duration()
998
1077
  _frag_default_trial_config.units()
1078
+ _frag_default_trial_config_budget = _frag_default_trial_config.budget()
1079
+ _frag_default_trial_config_budget.limit()
999
1080
  _frag_compatible_addons = _frag.compatible_addons()
1000
1081
  _frag_compatible_addons.__fragment__(fragment_mock_paywall_addon_fragment())
1001
1082
  _frag_compatible_package_groups = _frag.compatible_package_groups()
@@ -1275,6 +1356,7 @@ class Fragment:
1275
1356
  subscription_fragment = fragment_subscription_fragment()
1276
1357
  subscription_future_update_data = fragment_subscription_future_update_data()
1277
1358
  subscription_invoice_fragment = fragment_subscription_invoice_fragment()
1359
+ subscription_invoice_preview_fragment = fragment_subscription_invoice_preview_fragment()
1278
1360
  subscription_preview_fragment = fragment_subscription_preview_fragment()
1279
1361
  subscription_preview_invoice_fragment = fragment_subscription_preview_invoice_fragment()
1280
1362
  subscription_preview_v2_fragment = fragment_subscription_preview_v2_fragment()
@@ -1388,6 +1470,13 @@ def mutation_preview_subscription():
1388
1470
  return _op
1389
1471
 
1390
1472
 
1473
+ def mutation_preview_next_invoice():
1474
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='PreviewNextInvoice', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.PreviewNextInvoiceInput))))
1475
+ _op_preview_next_invoice = _op.preview_next_invoice(input=sgqlc.types.Variable('input'))
1476
+ _op_preview_next_invoice.__fragment__(fragment_subscription_invoice_preview_fragment())
1477
+ return _op
1478
+
1479
+
1391
1480
  def mutation_cancel_subscription_updates():
1392
1481
  _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='CancelSubscriptionUpdates', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.SubscriptionUpdateScheduleCancellationInput))))
1393
1482
  _op.cancel_schedule(input=sgqlc.types.Variable('input'))
@@ -1469,6 +1558,7 @@ class Mutation:
1469
1558
  import_customer_bulk = mutation_import_customer_bulk()
1470
1559
  import_subscriptions_bulk = mutation_import_subscriptions_bulk()
1471
1560
  migrate_subscription_to_latest = mutation_migrate_subscription_to_latest()
1561
+ preview_next_invoice = mutation_preview_next_invoice()
1472
1562
  preview_subscription = mutation_preview_subscription()
1473
1563
  provision_customer = mutation_provision_customer()
1474
1564
  provision_subscription = mutation_provision_subscription()
stigg/generated/schema.py CHANGED
@@ -1550,12 +1550,6 @@ class DeleteFeatureInput(sgqlc.types.Input):
1550
1550
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
1551
1551
 
1552
1552
 
1553
- class DeleteOneAddonInput(sgqlc.types.Input):
1554
- __schema__ = schema
1555
- __field_names__ = ('id',)
1556
- id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
1557
-
1558
-
1559
1553
  class DeleteOneHookInput(sgqlc.types.Input):
1560
1554
  __schema__ = schema
1561
1555
  __field_names__ = ('id',)
@@ -4477,44 +4471,6 @@ class AddonCountAggregate(sgqlc.types.Type):
4477
4471
  version_number = sgqlc.types.Field(Int, graphql_name='versionNumber')
4478
4472
 
4479
4473
 
4480
- class AddonDeleteResponse(sgqlc.types.Type):
4481
- __schema__ = schema
4482
- __field_names__ = ('additional_meta_data', 'billing_id', 'billing_link_url', 'created_at', 'dependencies', 'description', 'display_name', 'draft_details', 'draft_summary', 'entitlements', 'environment', 'environment_id', 'has_subscriptions', 'hidden_from_widgets', 'id', 'is_latest', 'max_quantity', 'overage_billing_period', 'overage_prices', 'prices', 'pricing_type', 'product', 'product_id', 'ref_id', 'status', 'sync_states', 'type', 'updated_at', 'version_number')
4483
- additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
4484
- billing_id = sgqlc.types.Field(String, graphql_name='billingId')
4485
- billing_link_url = sgqlc.types.Field(String, graphql_name='billingLinkUrl')
4486
- created_at = sgqlc.types.Field(DateTime, graphql_name='createdAt')
4487
- dependencies = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Addon)), graphql_name='dependencies')
4488
- description = sgqlc.types.Field(String, graphql_name='description')
4489
- display_name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='displayName')
4490
- draft_details = sgqlc.types.Field('PackageDraftDetails', graphql_name='draftDetails')
4491
- draft_summary = sgqlc.types.Field('PackageDraftSummary', graphql_name='draftSummary')
4492
- entitlements = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PackageEntitlement')), graphql_name='entitlements')
4493
- environment = sgqlc.types.Field(sgqlc.types.non_null('Environment'), graphql_name='environment')
4494
- environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
4495
- has_subscriptions = sgqlc.types.Field(sgqlc.types.non_null(Boolean), graphql_name='hasSubscriptions')
4496
- hidden_from_widgets = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(WidgetType)), graphql_name='hiddenFromWidgets')
4497
- id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
4498
- is_latest = sgqlc.types.Field(Boolean, graphql_name='isLatest')
4499
- max_quantity = sgqlc.types.Field(Float, graphql_name='maxQuantity')
4500
- overage_billing_period = sgqlc.types.Field(OverageBillingPeriod, graphql_name='overageBillingPeriod')
4501
- overage_prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Price')), graphql_name='overagePrices')
4502
- prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Price')), graphql_name='prices', args=sgqlc.types.ArgDict((
4503
- ('filter', sgqlc.types.Arg(PriceFilter, graphql_name='filter', default={})),
4504
- ('sorting', sgqlc.types.Arg(sgqlc.types.list_of(sgqlc.types.non_null(PriceSort)), graphql_name='sorting', default=[{'direction': 'DESC', 'field': 'createdAt'}])),
4505
- ))
4506
- )
4507
- pricing_type = sgqlc.types.Field(PricingType, graphql_name='pricingType')
4508
- product = sgqlc.types.Field('Product', graphql_name='product')
4509
- product_id = sgqlc.types.Field(String, graphql_name='productId')
4510
- ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
4511
- status = sgqlc.types.Field(sgqlc.types.non_null(PackageStatus), graphql_name='status')
4512
- sync_states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SyncState')), graphql_name='syncStates')
4513
- type = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='type')
4514
- updated_at = sgqlc.types.Field(DateTime, graphql_name='updatedAt')
4515
- version_number = sgqlc.types.Field(sgqlc.types.non_null(Int), graphql_name='versionNumber')
4516
-
4517
-
4518
4474
  class AddonDependencyChange(sgqlc.types.Type):
4519
4475
  __schema__ = schema
4520
4476
  __field_names__ = ('after', 'before', 'change_type')
@@ -6554,7 +6510,7 @@ class MonthlyResetPeriodConfig(sgqlc.types.Type):
6554
6510
 
6555
6511
  class Mutation(sgqlc.types.Type):
6556
6512
  __schema__ = schema
6557
- __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_addon', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_usage', '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_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', 'prepare_payment_method_form', '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_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6513
+ __field_names__ = ('add_compatible_addons_to_plan', 'apply_subscription', 'archive_addon', 'archive_customer', 'archive_environment', 'archive_feature', 'archive_one_coupon', 'archive_package_group', 'archive_plan', 'attach_customer_payment_method', 'cancel_schedule', 'cancel_subscription', 'charge_subscription_usage', '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_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_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', 'prepare_payment_method_form', '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_hook', 'update_one_integration', 'update_one_package_entitlement', 'update_one_plan', 'update_one_product', 'update_one_promotional_entitlement', 'update_one_subscription', 'update_user')
6558
6514
  add_compatible_addons_to_plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='addCompatibleAddonsToPlan', args=sgqlc.types.ArgDict((
6559
6515
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(AddCompatibleAddonsToPlanInput), graphql_name='input', default=None)),
6560
6516
  ))
@@ -6693,10 +6649,6 @@ class Mutation(sgqlc.types.Type):
6693
6649
  )
6694
6650
  delete_feature = sgqlc.types.Field(sgqlc.types.non_null(Feature), graphql_name='deleteFeature', args=sgqlc.types.ArgDict((
6695
6651
  ('input', sgqlc.types.Arg(sgqlc.types.non_null(DeleteFeatureInput), graphql_name='input', default=None)),
6696
- ))
6697
- )
6698
- delete_one_addon = sgqlc.types.Field(sgqlc.types.non_null(AddonDeleteResponse), graphql_name='deleteOneAddon', args=sgqlc.types.ArgDict((
6699
- ('input', sgqlc.types.Arg(sgqlc.types.non_null(DeleteOneAddonInput), graphql_name='input', default=None)),
6700
6652
  ))
6701
6653
  )
6702
6654
  delete_one_feature = sgqlc.types.Field(sgqlc.types.non_null(Feature), graphql_name='deleteOneFeature', args=sgqlc.types.ArgDict((
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.49.0
3
+ Version: 2.71.1
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=z6QOL3x6hTuFJYRdYI5kHoHewZwIibtpfA8s-5EsEtc,74512
5
+ stigg/generated/schema.py,sha256=IDSQ-KpKUp7tUFSGI-OD9s1YgnqUi2dbDhLj6AOO7-4,605282
6
+ stigg_api_client-2.71.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-2.71.1.dist-info/METADATA,sha256=n2-Pmp3olY64bxpl_PD5Yg0dsedCzLFTPqC06z9KFBI,3197
8
+ stigg_api_client-2.71.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-2.71.1.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=s5a3iAo4xzr1Xa-gM0Vfc0dXc9CV-4h8-wX4kxFppFY,70780
5
- stigg/generated/schema.py,sha256=xJbp_J3PZx9ZU4JGl88PK5DwlZl1PtAGOZqKeucgor8,609225
6
- stigg_api_client-2.49.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-2.49.0.dist-info/METADATA,sha256=3-JH9zzrf6HbaMAgcyi5YlozvvQ6_8om4VkXKvN4UM8,3197
8
- stigg_api_client-2.49.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-2.49.0.dist-info/RECORD,,