stigg-api-client 2.207.0__tar.gz → 2.209.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: 2.207.0
3
+ Version: 2.209.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 = "2.207.0"
3
+ version = "2.209.0"
4
4
  description = ""
5
5
  authors = ["Stigg <support@stigg.io>"]
6
6
  license = "STIGG SDK LICENSE"
@@ -430,6 +430,11 @@ class SubscriptionCancellationTime(sgqlc.types.Enum):
430
430
  __choices__ = ('END_OF_BILLING_PERIOD', 'IMMEDIATE', 'SPECIFIC_DATE')
431
431
 
432
432
 
433
+ class SubscriptionCouponStatus(sgqlc.types.Enum):
434
+ __schema__ = schema
435
+ __choices__ = ('ACTIVE', 'EXPIRED', 'REMOVED')
436
+
437
+
433
438
  class SubscriptionDecisionStrategy(sgqlc.types.Enum):
434
439
  __schema__ = schema
435
440
  __choices__ = ('PREDEFINED_FREE_PLAN', 'PREDEFINED_TRIAL_PLAN', 'REQUESTED_PLAN', 'SKIPPED_SUBSCRIPTION_CREATION')
@@ -1048,11 +1053,12 @@ class CouponTypeFilterComparison(sgqlc.types.Input):
1048
1053
 
1049
1054
  class CreateCouponInput(sgqlc.types.Input):
1050
1055
  __schema__ = schema
1051
- __field_names__ = ('additional_meta_data', 'amounts_off', 'description', 'discount_value', 'environment_id', 'name', 'percent_off', 'ref_id', 'type')
1056
+ __field_names__ = ('additional_meta_data', 'amounts_off', 'description', 'discount_value', 'duration_in_months', 'environment_id', 'name', 'percent_off', 'ref_id', 'type')
1052
1057
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
1053
1058
  amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('MoneyInputDTO')), graphql_name='amountsOff')
1054
1059
  description = sgqlc.types.Field(String, graphql_name='description')
1055
1060
  discount_value = sgqlc.types.Field(Float, graphql_name='discountValue')
1061
+ duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
1056
1062
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
1057
1063
  name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
1058
1064
  percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
@@ -3639,12 +3645,23 @@ class SubscriptionCouponConfigurationInput(sgqlc.types.Input):
3639
3645
  start_date = sgqlc.types.Field(DateTime, graphql_name='startDate')
3640
3646
 
3641
3647
 
3648
+ class SubscriptionCouponDiscountInput(sgqlc.types.Input):
3649
+ __schema__ = schema
3650
+ __field_names__ = ('amounts_off', 'description', 'duration_in_months', 'name', 'percent_off')
3651
+ amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(MoneyInputDTO)), graphql_name='amountsOff')
3652
+ description = sgqlc.types.Field(String, graphql_name='description')
3653
+ duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
3654
+ name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
3655
+ percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
3656
+
3657
+
3642
3658
  class SubscriptionCouponInput(sgqlc.types.Input):
3643
3659
  __schema__ = schema
3644
- __field_names__ = ('billing_coupon_id', 'configuration', 'coupon_id', 'promotion_code')
3660
+ __field_names__ = ('billing_coupon_id', 'configuration', 'coupon_id', 'discount', 'promotion_code')
3645
3661
  billing_coupon_id = sgqlc.types.Field(String, graphql_name='billingCouponId')
3646
3662
  configuration = sgqlc.types.Field(SubscriptionCouponConfigurationInput, graphql_name='configuration')
3647
3663
  coupon_id = sgqlc.types.Field(String, graphql_name='couponId')
3664
+ discount = sgqlc.types.Field(SubscriptionCouponDiscountInput, graphql_name='discount')
3648
3665
  promotion_code = sgqlc.types.Field(String, graphql_name='promotionCode')
3649
3666
 
3650
3667
 
@@ -4848,7 +4865,7 @@ class CheckoutState(sgqlc.types.Type):
4848
4865
 
4849
4866
  class Coupon(sgqlc.types.Type):
4850
4867
  __schema__ = schema
4851
- __field_names__ = ('additional_meta_data', 'amounts_off', 'billing_id', 'billing_link_url', 'created_at', 'customers', 'description', 'discount_value', 'environment', 'environment_id', 'id', 'name', 'percent_off', 'ref_id', 'status', 'sync_states', 'type', 'updated_at')
4868
+ __field_names__ = ('additional_meta_data', 'amounts_off', 'billing_id', 'billing_link_url', 'created_at', 'customers', 'description', 'discount_value', 'duration_in_months', 'environment', 'environment_id', 'id', 'name', 'percent_off', 'ref_id', 'status', 'sync_states', 'type', 'updated_at')
4852
4869
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
4853
4870
  amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Money')), graphql_name='amountsOff')
4854
4871
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
@@ -4861,6 +4878,7 @@ class Coupon(sgqlc.types.Type):
4861
4878
  )
4862
4879
  description = sgqlc.types.Field(String, graphql_name='description')
4863
4880
  discount_value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='discountValue')
4881
+ duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
4864
4882
  environment = sgqlc.types.Field('Environment', graphql_name='environment')
4865
4883
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
4866
4884
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
@@ -8823,14 +8841,18 @@ class SubscriptionAlreadyCanceledOrExpired(sgqlc.types.Type):
8823
8841
 
8824
8842
  class SubscriptionCoupon(sgqlc.types.Type):
8825
8843
  __schema__ = schema
8826
- __field_names__ = ('amounts_off', 'discount_value', 'environment_id', 'id', 'name', 'percent_off', 'ref_id', 'type')
8844
+ __field_names__ = ('amounts_off', 'discount_value', 'duration_in_months', 'environment_id', 'expiration_date', 'id', 'name', 'percent_off', 'ref_id', 'start_date', 'status', 'type')
8827
8845
  amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Money)), graphql_name='amountsOff')
8828
8846
  discount_value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='discountValue')
8847
+ duration_in_months = sgqlc.types.Field(Float, graphql_name='durationInMonths')
8829
8848
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
8849
+ expiration_date = sgqlc.types.Field(DateTime, graphql_name='expirationDate')
8830
8850
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
8831
8851
  name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
8832
8852
  percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
8833
8853
  ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
8854
+ start_date = sgqlc.types.Field(DateTime, graphql_name='startDate')
8855
+ status = sgqlc.types.Field(sgqlc.types.non_null(SubscriptionCouponStatus), graphql_name='status')
8834
8856
  type = sgqlc.types.Field(sgqlc.types.non_null(CouponType), graphql_name='type')
8835
8857
 
8836
8858