stigg-api-client 1.146.0__tar.gz → 1.148.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.146.0
3
+ Version: 1.148.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.146.0"
3
+ version = "1.148.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -293,6 +293,11 @@ class PaymentCollection(sgqlc.types.Enum):
293
293
  __choices__ = ('ACTION_REQUIRED', 'FAILED', 'NOT_REQUIRED', 'PROCESSING')
294
294
 
295
295
 
296
+ class PaymentCollectionMethod(sgqlc.types.Enum):
297
+ __schema__ = schema
298
+ __choices__ = ('CHARGE', 'INVOICE')
299
+
300
+
296
301
  class PaymentMethodType(sgqlc.types.Enum):
297
302
  __schema__ = schema
298
303
  __choices__ = ('BANK', 'CARD')
@@ -620,7 +625,7 @@ class ApiKeySort(sgqlc.types.Input):
620
625
 
621
626
  class ApplySubscriptionInput(sgqlc.types.Input):
622
627
  __schema__ = schema
623
- __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'customer_id', 'payment_method_id', 'plan_id', 'price_overrides', 'promotion_code', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'trial_override_configuration', 'unit_quantity')
628
+ __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'customer_id', 'minimum_spend', 'payment_collection_method', 'payment_method_id', 'plan_id', 'price_overrides', 'promotion_code', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'trial_override_configuration', 'unit_quantity')
624
629
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
625
630
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionAddonInput')), graphql_name='addons')
626
631
  await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
@@ -631,6 +636,8 @@ class ApplySubscriptionInput(sgqlc.types.Input):
631
636
  billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
632
637
  budget = sgqlc.types.Field('BudgetConfigurationInput', graphql_name='budget')
633
638
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
639
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpendValueInput', graphql_name='minimumSpend')
640
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
634
641
  payment_method_id = sgqlc.types.Field(String, graphql_name='paymentMethodId')
635
642
  plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
636
643
  price_overrides = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('PriceOverrideInput')), graphql_name='priceOverrides')
@@ -2217,7 +2224,7 @@ class MinimumSpendInput(sgqlc.types.Input):
2217
2224
  __schema__ = schema
2218
2225
  __field_names__ = ('billing_period', 'minimum')
2219
2226
  billing_period = sgqlc.types.Field(sgqlc.types.non_null(BillingPeriod), graphql_name='billingPeriod')
2220
- minimum = sgqlc.types.Field('MoneyInputDTO', graphql_name='minimum')
2227
+ minimum = sgqlc.types.Field(sgqlc.types.non_null('MoneyInputDTO'), graphql_name='minimum')
2221
2228
 
2222
2229
 
2223
2230
  class MoneyInputDTO(sgqlc.types.Input):
@@ -2936,7 +2943,7 @@ class ProvisionCustomerInput(sgqlc.types.Input):
2936
2943
 
2937
2944
  class ProvisionCustomerSubscriptionInput(sgqlc.types.Input):
2938
2945
  __schema__ = schema
2939
- __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
2946
+ __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'minimum_spend', 'payment_collection_method', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
2940
2947
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
2941
2948
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionAddonInput')), graphql_name='addons')
2942
2949
  await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
@@ -2946,6 +2953,8 @@ class ProvisionCustomerSubscriptionInput(sgqlc.types.Input):
2946
2953
  billing_information = sgqlc.types.Field('SubscriptionBillingInfo', graphql_name='billingInformation')
2947
2954
  billing_period = sgqlc.types.Field(BillingPeriod, graphql_name='billingPeriod')
2948
2955
  budget = sgqlc.types.Field(BudgetConfigurationInput, graphql_name='budget')
2956
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpendValueInput', graphql_name='minimumSpend')
2957
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
2949
2958
  plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
2950
2959
  price_overrides = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(PriceOverrideInput)), graphql_name='priceOverrides')
2951
2960
  price_unit_amount = sgqlc.types.Field(Float, graphql_name='priceUnitAmount')
@@ -2969,7 +2978,7 @@ class ProvisionSandboxInput(sgqlc.types.Input):
2969
2978
 
2970
2979
  class ProvisionSubscription(sgqlc.types.Input):
2971
2980
  __schema__ = schema
2972
- __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'checkout_options', 'customer_id', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
2981
+ __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'checkout_options', 'customer_id', 'minimum_spend', 'payment_collection_method', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
2973
2982
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
2974
2983
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionAddonInput')), graphql_name='addons')
2975
2984
  await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
@@ -2981,6 +2990,8 @@ class ProvisionSubscription(sgqlc.types.Input):
2981
2990
  budget = sgqlc.types.Field(BudgetConfigurationInput, graphql_name='budget')
2982
2991
  checkout_options = sgqlc.types.Field(CheckoutOptions, graphql_name='checkoutOptions')
2983
2992
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
2993
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpendValueInput', graphql_name='minimumSpend')
2994
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
2984
2995
  plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
2985
2996
  price_overrides = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(PriceOverrideInput)), graphql_name='priceOverrides')
2986
2997
  price_unit_amount = sgqlc.types.Field(Float, graphql_name='priceUnitAmount')
@@ -2999,7 +3010,7 @@ class ProvisionSubscription(sgqlc.types.Input):
2999
3010
 
3000
3011
  class ProvisionSubscriptionInput(sgqlc.types.Input):
3001
3012
  __schema__ = schema
3002
- __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'checkout_options', 'customer_id', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
3013
+ __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'checkout_options', 'customer_id', 'minimum_spend', 'payment_collection_method', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'skip_trial', 'start_date', 'subscription_entitlements', 'subscription_id', 'trial_override_configuration', 'unit_quantity')
3003
3014
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
3004
3015
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionAddonInput')), graphql_name='addons')
3005
3016
  await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
@@ -3011,6 +3022,8 @@ class ProvisionSubscriptionInput(sgqlc.types.Input):
3011
3022
  budget = sgqlc.types.Field(BudgetConfigurationInput, graphql_name='budget')
3012
3023
  checkout_options = sgqlc.types.Field(CheckoutOptions, graphql_name='checkoutOptions')
3013
3024
  customer_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='customerId')
3025
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpendValueInput', graphql_name='minimumSpend')
3026
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
3014
3027
  plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
3015
3028
  price_overrides = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(PriceOverrideInput)), graphql_name='priceOverrides')
3016
3029
  price_unit_amount = sgqlc.types.Field(Float, graphql_name='priceUnitAmount')
@@ -3503,7 +3516,7 @@ class SubscriptionEntitlementSort(sgqlc.types.Input):
3503
3516
 
3504
3517
  class SubscriptionInput(sgqlc.types.Input):
3505
3518
  __schema__ = schema
3506
- __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'crm_id', 'customer_id', 'end_date', 'environment_id', 'is_custom_price_subscription', 'is_overriding_trial_config', 'is_trial', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'start_date', 'subscription_entitlements', 'subscription_id', 'unit_quantity')
3519
+ __field_names__ = ('additional_meta_data', 'addons', 'await_payment_confirmation', 'billable_features', 'billing_country_code', 'billing_id', 'billing_information', 'billing_period', 'budget', 'crm_id', 'customer_id', 'end_date', 'environment_id', 'is_custom_price_subscription', 'is_overriding_trial_config', 'is_trial', 'minimum_spend', 'payment_collection_method', 'plan_id', 'price_overrides', 'price_unit_amount', 'promotion_code', 'ref_id', 'resource_id', 'salesforce_id', 'schedule_strategy', 'start_date', 'subscription_entitlements', 'subscription_id', 'unit_quantity')
3507
3520
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
3508
3521
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(SubscriptionAddonInput)), graphql_name='addons')
3509
3522
  await_payment_confirmation = sgqlc.types.Field(Boolean, graphql_name='awaitPaymentConfirmation')
@@ -3520,6 +3533,8 @@ class SubscriptionInput(sgqlc.types.Input):
3520
3533
  is_custom_price_subscription = sgqlc.types.Field(Boolean, graphql_name='isCustomPriceSubscription')
3521
3534
  is_overriding_trial_config = sgqlc.types.Field(Boolean, graphql_name='isOverridingTrialConfig')
3522
3535
  is_trial = sgqlc.types.Field(Boolean, graphql_name='isTrial')
3536
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpendValueInput', graphql_name='minimumSpend')
3537
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
3523
3538
  plan_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='planId')
3524
3539
  price_overrides = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(PriceOverrideInput)), graphql_name='priceOverrides')
3525
3540
  price_unit_amount = sgqlc.types.Field(Float, graphql_name='priceUnitAmount')
@@ -3562,6 +3577,12 @@ class SubscriptionMigrationTaskSort(sgqlc.types.Input):
3562
3577
  nulls = sgqlc.types.Field(SortNulls, graphql_name='nulls')
3563
3578
 
3564
3579
 
3580
+ class SubscriptionMinimumSpendValueInput(sgqlc.types.Input):
3581
+ __schema__ = schema
3582
+ __field_names__ = ('minimum',)
3583
+ minimum = sgqlc.types.Field(MoneyInputDTO, graphql_name='minimum')
3584
+
3585
+
3565
3586
  class SubscriptionPriceFilter(sgqlc.types.Input):
3566
3587
  __schema__ = schema
3567
3588
  __field_names__ = ('and_', 'billing_model', 'created_at', 'feature_id', 'has_soft_limit', 'id', 'or_', 'price', 'subscription', 'updated_at', 'usage_limit')
@@ -5026,7 +5047,7 @@ class CustomerStatistics(sgqlc.types.Type):
5026
5047
 
5027
5048
  class CustomerSubscription(sgqlc.types.Type):
5028
5049
  __schema__ = schema
5029
- __field_names__ = ('additional_meta_data', 'addons', 'billing_id', 'billing_link_url', 'billing_sync_error', 'budget', 'budget_exceeded', 'cancel_reason', 'cancellation_date', 'coupon', 'created_at', 'crm_id', 'crm_link_url', 'current_billing_period_end', 'current_billing_period_start', 'customer', 'effective_end_date', 'end_date', 'environment', 'environment_id', 'experiment', 'experiment_info', 'free_items', 'future_updates', 'id', 'is_custom_price_subscription', 'latest_invoice', 'old_billing_id', 'outdated_price_packages', 'payment_collection', 'plan', 'prices', 'pricing_type', 'ref_id', 'resource', 'resource_id', 'salesforce_id', 'scheduled_updates', 'start_date', 'status', 'subscription_entitlements', 'subscription_id', 'sync_states', 'total_price', 'trial_end_date', 'was_in_trial')
5050
+ __field_names__ = ('additional_meta_data', 'addons', 'billing_id', 'billing_link_url', 'billing_sync_error', 'budget', 'budget_exceeded', 'cancel_reason', 'cancellation_date', 'coupon', 'created_at', 'crm_id', 'crm_link_url', 'current_billing_period_end', 'current_billing_period_start', 'customer', 'effective_end_date', 'end_date', 'environment', 'environment_id', 'experiment', 'experiment_info', 'free_items', 'future_updates', 'id', 'is_custom_price_subscription', 'latest_invoice', 'minimum_spend', 'old_billing_id', 'outdated_price_packages', 'payment_collection', 'payment_collection_method', 'plan', 'prices', 'pricing_type', 'ref_id', 'resource', 'resource_id', 'salesforce_id', 'scheduled_updates', 'start_date', 'status', 'subscription_entitlements', 'subscription_id', 'sync_states', 'total_price', 'trial_end_date', 'was_in_trial')
5030
5051
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
5031
5052
  addons = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionAddon')), graphql_name='addons', args=sgqlc.types.ArgDict((
5032
5053
  ('filter', sgqlc.types.Arg(SubscriptionAddonFilter, graphql_name='filter', default={})),
@@ -5058,9 +5079,11 @@ class CustomerSubscription(sgqlc.types.Type):
5058
5079
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
5059
5080
  is_custom_price_subscription = sgqlc.types.Field(Boolean, graphql_name='isCustomPriceSubscription')
5060
5081
  latest_invoice = sgqlc.types.Field('SubscriptionInvoice', graphql_name='latestInvoice')
5082
+ minimum_spend = sgqlc.types.Field('SubscriptionMinimumSpend', graphql_name='minimumSpend')
5061
5083
  old_billing_id = sgqlc.types.Field(String, graphql_name='oldBillingId')
5062
5084
  outdated_price_packages = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(String)), graphql_name='outdatedPricePackages')
5063
5085
  payment_collection = sgqlc.types.Field(sgqlc.types.non_null(PaymentCollection), graphql_name='paymentCollection')
5086
+ payment_collection_method = sgqlc.types.Field(PaymentCollectionMethod, graphql_name='paymentCollectionMethod')
5064
5087
  plan = sgqlc.types.Field(sgqlc.types.non_null('Plan'), graphql_name='plan')
5065
5088
  prices = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SubscriptionPrice')), graphql_name='prices', args=sgqlc.types.ArgDict((
5066
5089
  ('filter', sgqlc.types.Arg(SubscriptionPriceFilter, graphql_name='filter', default={})),
@@ -8606,6 +8629,13 @@ class SubscriptionMigrationTaskMinAggregate(sgqlc.types.Type):
8606
8629
  task_type = sgqlc.types.Field(TaskType, graphql_name='taskType')
8607
8630
 
8608
8631
 
8632
+ class SubscriptionMinimumSpend(sgqlc.types.Type):
8633
+ __schema__ = schema
8634
+ __field_names__ = ('is_override', 'minimum')
8635
+ is_override = sgqlc.types.Field(Boolean, graphql_name='isOverride')
8636
+ minimum = sgqlc.types.Field(Money, graphql_name='minimum')
8637
+
8638
+
8609
8639
  class SubscriptionMustHaveSinglePlanError(sgqlc.types.Type):
8610
8640
  __schema__ = schema
8611
8641
  __field_names__ = ('code', 'is_validation_error', 'ref_ids')