stigg-api-client 2.196.0__py3-none-any.whl → 2.198.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.

@@ -12,6 +12,10 @@ def fragment_coupon_fragment():
12
12
  _frag = sgqlc.operation.Fragment(_schema.Coupon, 'CouponFragment')
13
13
  _frag.id()
14
14
  _frag.discount_value()
15
+ _frag.percent_off()
16
+ _frag_amounts_off = _frag.amounts_off()
17
+ _frag_amounts_off.amount()
18
+ _frag_amounts_off.currency()
15
19
  _frag.type()
16
20
  _frag.additional_meta_data()
17
21
  _frag.ref_id()
@@ -1565,12 +1569,27 @@ def mutation_transfer_subscription():
1565
1569
  return _op
1566
1570
 
1567
1571
 
1572
+ def mutation_delegate_subscription_to_customer():
1573
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='DelegateSubscriptionToCustomer', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.DelegateSubscriptionToCustomerInput))))
1574
+ _op_delegate_subscription_to_customer = _op.delegate_subscription_to_customer(input=sgqlc.types.Variable('input'))
1575
+ _op_delegate_subscription_to_customer.__fragment__(fragment_slim_subscription_fragment())
1576
+ return _op
1577
+
1578
+
1579
+ def mutation_transfer_subscription_to_resource():
1580
+ _op = sgqlc.operation.Operation(_schema_root.mutation_type, name='TransferSubscriptionToResource', variables=dict(input=sgqlc.types.Arg(sgqlc.types.non_null(_schema.TransferSubscriptionToResourceInput))))
1581
+ _op_transfer_subscription_to_resource = _op.transfer_subscription_to_resource(input=sgqlc.types.Variable('input'))
1582
+ _op_transfer_subscription_to_resource.__fragment__(fragment_slim_subscription_fragment())
1583
+ return _op
1584
+
1585
+
1568
1586
  class Mutation:
1569
1587
  apply_subscription = mutation_apply_subscription()
1570
1588
  archive_customer = mutation_archive_customer()
1571
1589
  cancel_subscription = mutation_cancel_subscription()
1572
1590
  cancel_subscription_updates = mutation_cancel_subscription_updates()
1573
1591
  create_subscription = mutation_create_subscription()
1592
+ delegate_subscription_to_customer = mutation_delegate_subscription_to_customer()
1574
1593
  detach_customer_payment_method = mutation_detach_customer_payment_method()
1575
1594
  estimate_subscription = mutation_estimate_subscription()
1576
1595
  estimate_subscription_update = mutation_estimate_subscription_update()
@@ -1589,6 +1608,7 @@ class Mutation:
1589
1608
  report_usage_bulk = mutation_report_usage_bulk()
1590
1609
  revoke_promotional_entitlement = mutation_revoke_promotional_entitlement()
1591
1610
  transfer_subscription = mutation_transfer_subscription()
1611
+ transfer_subscription_to_resource = mutation_transfer_subscription_to_resource()
1592
1612
  unarchive_customer = mutation_unarchive_customer()
1593
1613
  update_customer = mutation_update_customer()
1594
1614
  update_subscription = mutation_update_subscription()
stigg/generated/schema.py CHANGED
@@ -1048,14 +1048,16 @@ class CouponTypeFilterComparison(sgqlc.types.Input):
1048
1048
 
1049
1049
  class CreateCouponInput(sgqlc.types.Input):
1050
1050
  __schema__ = schema
1051
- __field_names__ = ('additional_meta_data', 'description', 'discount_value', 'environment_id', 'name', 'ref_id', 'type')
1051
+ __field_names__ = ('additional_meta_data', 'amounts_off', 'description', 'discount_value', 'environment_id', 'name', 'percent_off', 'ref_id', 'type')
1052
1052
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
1053
+ amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('MoneyInputDTO')), graphql_name='amountsOff')
1053
1054
  description = sgqlc.types.Field(String, graphql_name='description')
1054
- discount_value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='discountValue')
1055
+ discount_value = sgqlc.types.Field(Float, graphql_name='discountValue')
1055
1056
  environment_id = sgqlc.types.Field(String, graphql_name='environmentId')
1056
1057
  name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
1058
+ percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
1057
1059
  ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
1058
- type = sgqlc.types.Field(sgqlc.types.non_null(CouponType), graphql_name='type')
1060
+ type = sgqlc.types.Field(CouponType, graphql_name='type')
1059
1061
 
1060
1062
 
1061
1063
  class CreateEnvironment(sgqlc.types.Input):
@@ -4850,8 +4852,9 @@ class CheckoutState(sgqlc.types.Type):
4850
4852
 
4851
4853
  class Coupon(sgqlc.types.Type):
4852
4854
  __schema__ = schema
4853
- __field_names__ = ('additional_meta_data', 'billing_id', 'billing_link_url', 'created_at', 'customers', 'description', 'discount_value', 'environment', 'environment_id', 'id', 'name', 'ref_id', 'status', 'sync_states', 'type', 'updated_at')
4855
+ __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')
4854
4856
  additional_meta_data = sgqlc.types.Field(JSON, graphql_name='additionalMetaData')
4857
+ amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('Money')), graphql_name='amountsOff')
4855
4858
  billing_id = sgqlc.types.Field(String, graphql_name='billingId')
4856
4859
  billing_link_url = sgqlc.types.Field(String, graphql_name='billingLinkUrl')
4857
4860
  created_at = sgqlc.types.Field(sgqlc.types.non_null(DateTime), graphql_name='createdAt')
@@ -4866,6 +4869,7 @@ class Coupon(sgqlc.types.Type):
4866
4869
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
4867
4870
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
4868
4871
  name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
4872
+ percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
4869
4873
  ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
4870
4874
  status = sgqlc.types.Field(sgqlc.types.non_null(CouponStatus), graphql_name='status')
4871
4875
  sync_states = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null('SyncState')), graphql_name='syncStates')
@@ -8834,11 +8838,13 @@ class SubscriptionAlreadyCanceledOrExpired(sgqlc.types.Type):
8834
8838
 
8835
8839
  class SubscriptionCoupon(sgqlc.types.Type):
8836
8840
  __schema__ = schema
8837
- __field_names__ = ('discount_value', 'environment_id', 'id', 'name', 'ref_id', 'type')
8841
+ __field_names__ = ('amounts_off', 'discount_value', 'environment_id', 'id', 'name', 'percent_off', 'ref_id', 'type')
8842
+ amounts_off = sgqlc.types.Field(sgqlc.types.list_of(sgqlc.types.non_null(Money)), graphql_name='amountsOff')
8838
8843
  discount_value = sgqlc.types.Field(sgqlc.types.non_null(Float), graphql_name='discountValue')
8839
8844
  environment_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='environmentId')
8840
8845
  id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='id')
8841
8846
  name = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='name')
8847
+ percent_off = sgqlc.types.Field(Float, graphql_name='percentOff')
8842
8848
  ref_id = sgqlc.types.Field(sgqlc.types.non_null(String), graphql_name='refId')
8843
8849
  type = sgqlc.types.Field(sgqlc.types.non_null(CouponType), graphql_name='type')
8844
8850
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: stigg-api-client
3
- Version: 2.196.0
3
+ Version: 2.198.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=L-KsnUd2mH-izMg1X2CIT-zKJPNVqavXkZAkWPw3FWY,76616
5
+ stigg/generated/schema.py,sha256=x8br21AuILqpFS_NSwy01OPuyWxUDrKNkTUlSZgNQUw,620019
6
+ stigg_api_client-2.198.1.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
+ stigg_api_client-2.198.1.dist-info/METADATA,sha256=ZYv7ZU3mV9tWRHoTjt2Qf6A9W70GBBwIUb1AObxD4Ww,3198
8
+ stigg_api_client-2.198.1.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
+ stigg_api_client-2.198.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=eeUhEtHGg1DVLGmjz06xgBfrYJPy4rN1tvK7LFvFGM4,75336
5
- stigg/generated/schema.py,sha256=uIo44YQdj8ArDpviQuK7TvDE0Nrn_0VUK1hsUBcfNko,619412
6
- stigg_api_client-2.196.0.dist-info/LICENSE,sha256=yhOTQTha61N-7pgHWeRZ0TGF5uq0ifi5U8qU8nHvzME,5127
7
- stigg_api_client-2.196.0.dist-info/METADATA,sha256=-_8267JY_e5g8JfuI0hYQeH7RMd24HbB4Wj_9VoawK8,3198
8
- stigg_api_client-2.196.0.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
9
- stigg_api_client-2.196.0.dist-info/RECORD,,