stigg-api-client-v2 3.100.0__py3-none-any.whl → 3.105.0__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-v2 might be problematic. Click here for more details.

@@ -193,13 +193,17 @@ from .fragments import (
193
193
  CouponFragment,
194
194
  CouponFragmentAmountsOff,
195
195
  CouponFragmentSyncStates,
196
+ CreditBalanceFragment,
197
+ CreditBalanceFragmentCurrency,
198
+ CreditBalanceFragmentCurrencyUnits,
199
+ CreditBalanceUpdatedPayload,
200
+ CreditBalanceUpdatedPayloadCurrency,
201
+ CreditBalanceUpdatedPayloadCurrencyUnits,
196
202
  CreditGrantFragment,
197
203
  CreditGrantFragmentCost,
198
204
  CreditLedgerFragment,
199
205
  CreditsBalanceSummaryFragment,
200
206
  CreditsBalanceSummaryFragmentBalances,
201
- CreditsBalanceSummaryFragmentBalancesCurrency,
202
- CreditsBalanceSummaryFragmentBalancesCurrencyUnits,
203
207
  CreditUsageFragment,
204
208
  CreditUsageFragmentCurrency,
205
209
  CreditUsageFragmentSeries,
@@ -268,6 +272,7 @@ from .fragments import (
268
272
  CustomerWithSubscriptionsFragment,
269
273
  CustomerWithSubscriptionsFragmentSubscriptions,
270
274
  EntitlementFragment,
275
+ EntitlementFragmentCreditRate,
271
276
  EntitlementFragmentFeature,
272
277
  EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig,
273
278
  EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig,
@@ -1194,7 +1199,13 @@ __all__ = [
1194
1199
  "CreateSubscription",
1195
1200
  "CreateSubscriptionCreateSubscription",
1196
1201
  "CreateWorkflowTriggerInput",
1202
+ "CreditBalanceFragment",
1203
+ "CreditBalanceFragmentCurrency",
1204
+ "CreditBalanceFragmentCurrencyUnits",
1197
1205
  "CreditBalanceSummaryInput",
1206
+ "CreditBalanceUpdatedPayload",
1207
+ "CreditBalanceUpdatedPayloadCurrency",
1208
+ "CreditBalanceUpdatedPayloadCurrencyUnits",
1198
1209
  "CreditGrantFragment",
1199
1210
  "CreditGrantFragmentCost",
1200
1211
  "CreditGrantInput",
@@ -1211,8 +1222,6 @@ __all__ = [
1211
1222
  "CreditUsageTimeRange",
1212
1223
  "CreditsBalanceSummaryFragment",
1213
1224
  "CreditsBalanceSummaryFragmentBalances",
1214
- "CreditsBalanceSummaryFragmentBalancesCurrency",
1215
- "CreditsBalanceSummaryFragmentBalancesCurrencyUnits",
1216
1225
  "Currency",
1217
1226
  "CursorPaging",
1218
1227
  "CustomCurrencyInput",
@@ -1336,6 +1345,7 @@ __all__ = [
1336
1345
  "EntitlementCheckRequested",
1337
1346
  "EntitlementCheckResult",
1338
1347
  "EntitlementFragment",
1348
+ "EntitlementFragmentCreditRate",
1339
1349
  "EntitlementFragmentFeature",
1340
1350
  "EntitlementFragmentResetPeriodConfigurationMonthlyResetPeriodConfig",
1341
1351
  "EntitlementFragmentResetPeriodConfigurationWeeklyResetPeriodConfig",
@@ -160,6 +160,11 @@ class AsyncClient(AsyncBaseClient):
160
160
  feature {
161
161
  ...FeatureFragment
162
162
  }
163
+ creditRate {
164
+ amount
165
+ currencyId
166
+ }
167
+ validUntil
163
168
  }
164
169
 
165
170
  fragment FeatureFragment on EntitlementFeature {
@@ -192,6 +197,7 @@ class AsyncClient(AsyncBaseClient):
192
197
  creditRate {
193
198
  amount
194
199
  customCurrencyId
200
+ currencyId
195
201
  }
196
202
  tiersMode
197
203
  tiers {
@@ -579,6 +585,11 @@ class AsyncClient(AsyncBaseClient):
579
585
  feature {
580
586
  ...FeatureFragment
581
587
  }
588
+ creditRate {
589
+ amount
590
+ currencyId
591
+ }
592
+ validUntil
582
593
  }
583
594
 
584
595
  fragment FeatureFragment on EntitlementFeature {
@@ -611,6 +622,7 @@ class AsyncClient(AsyncBaseClient):
611
622
  creditRate {
612
623
  amount
613
624
  customCurrencyId
625
+ currencyId
614
626
  }
615
627
  tiersMode
616
628
  tiers {
@@ -840,6 +852,11 @@ class AsyncClient(AsyncBaseClient):
840
852
  feature {
841
853
  ...FeatureFragment
842
854
  }
855
+ creditRate {
856
+ amount
857
+ currencyId
858
+ }
859
+ validUntil
843
860
  }
844
861
 
845
862
  fragment FeatureFragment on EntitlementFeature {
@@ -974,6 +991,7 @@ class AsyncClient(AsyncBaseClient):
974
991
  creditRate {
975
992
  amount
976
993
  customCurrencyId
994
+ currencyId
977
995
  }
978
996
  tiersMode
979
997
  tiers {
@@ -1287,6 +1305,7 @@ class AsyncClient(AsyncBaseClient):
1287
1305
  creditRate {
1288
1306
  amount
1289
1307
  customCurrencyId
1308
+ currencyId
1290
1309
  }
1291
1310
  tiersMode
1292
1311
  tiers {
@@ -1440,6 +1459,7 @@ class AsyncClient(AsyncBaseClient):
1440
1459
  creditRate {
1441
1460
  amount
1442
1461
  customCurrencyId
1462
+ currencyId
1443
1463
  }
1444
1464
  tiersMode
1445
1465
  tiers {
@@ -1976,6 +1996,7 @@ class AsyncClient(AsyncBaseClient):
1976
1996
  creditRate {
1977
1997
  amount
1978
1998
  customCurrencyId
1999
+ currencyId
1979
2000
  }
1980
2001
  tiersMode
1981
2002
  tiers {
@@ -2260,6 +2281,7 @@ class AsyncClient(AsyncBaseClient):
2260
2281
  creditRate {
2261
2282
  amount
2262
2283
  customCurrencyId
2284
+ currencyId
2263
2285
  }
2264
2286
  tiersMode
2265
2287
  tiers {
@@ -2489,6 +2511,7 @@ class AsyncClient(AsyncBaseClient):
2489
2511
  creditRate {
2490
2512
  amount
2491
2513
  customCurrencyId
2514
+ currencyId
2492
2515
  }
2493
2516
  tiersMode
2494
2517
  tiers {
@@ -2642,6 +2665,7 @@ class AsyncClient(AsyncBaseClient):
2642
2665
  creditRate {
2643
2666
  amount
2644
2667
  customCurrencyId
2668
+ currencyId
2645
2669
  }
2646
2670
  tiersMode
2647
2671
  tiers {
@@ -2795,6 +2819,7 @@ class AsyncClient(AsyncBaseClient):
2795
2819
  creditRate {
2796
2820
  amount
2797
2821
  customCurrencyId
2822
+ currencyId
2798
2823
  }
2799
2824
  tiersMode
2800
2825
  tiers {
@@ -3341,6 +3366,7 @@ class AsyncClient(AsyncBaseClient):
3341
3366
  creditRate {
3342
3367
  amount
3343
3368
  customCurrencyId
3369
+ currencyId
3344
3370
  }
3345
3371
  tiersMode
3346
3372
  tiers {
@@ -3803,6 +3829,7 @@ class AsyncClient(AsyncBaseClient):
3803
3829
  creditRate {
3804
3830
  amount
3805
3831
  customCurrencyId
3832
+ currencyId
3806
3833
  }
3807
3834
  tiersMode
3808
3835
  tiers {
@@ -4345,6 +4372,7 @@ class AsyncClient(AsyncBaseClient):
4345
4372
  creditRate {
4346
4373
  amount
4347
4374
  customCurrencyId
4375
+ currencyId
4348
4376
  }
4349
4377
  tiersMode
4350
4378
  tiers {
@@ -4929,6 +4957,7 @@ class AsyncClient(AsyncBaseClient):
4929
4957
  creditRate {
4930
4958
  amount
4931
4959
  customCurrencyId
4960
+ currencyId
4932
4961
  }
4933
4962
  tiersMode
4934
4963
  tiers {
@@ -5250,6 +5279,11 @@ class AsyncClient(AsyncBaseClient):
5250
5279
  feature {
5251
5280
  ...FeatureFragment
5252
5281
  }
5282
+ creditRate {
5283
+ amount
5284
+ currencyId
5285
+ }
5286
+ validUntil
5253
5287
  }
5254
5288
 
5255
5289
  fragment FeatureFragment on EntitlementFeature {
@@ -5331,6 +5365,11 @@ class AsyncClient(AsyncBaseClient):
5331
5365
  feature {
5332
5366
  ...FeatureFragment
5333
5367
  }
5368
+ creditRate {
5369
+ amount
5370
+ currencyId
5371
+ }
5372
+ validUntil
5334
5373
  }
5335
5374
 
5336
5375
  fragment FeatureFragment on EntitlementFeature {
@@ -5409,6 +5448,11 @@ class AsyncClient(AsyncBaseClient):
5409
5448
  feature {
5410
5449
  ...FeatureFragment
5411
5450
  }
5451
+ creditRate {
5452
+ amount
5453
+ currencyId
5454
+ }
5455
+ validUntil
5412
5456
  }
5413
5457
 
5414
5458
  fragment FeatureFragment on EntitlementFeature {
@@ -5618,7 +5662,7 @@ class AsyncClient(AsyncBaseClient):
5618
5662
  }
5619
5663
  creditRate {
5620
5664
  amount
5621
- customCurrencyId
5665
+ currencyId
5622
5666
  }
5623
5667
  feature {
5624
5668
  featureUnits
@@ -5664,7 +5708,7 @@ class AsyncClient(AsyncBaseClient):
5664
5708
  }
5665
5709
  creditRate {
5666
5710
  amount
5667
- customCurrencyId
5711
+ currencyId
5668
5712
  }
5669
5713
  feature {
5670
5714
  id
@@ -6091,6 +6135,7 @@ class AsyncClient(AsyncBaseClient):
6091
6135
  creditRate {
6092
6136
  amount
6093
6137
  customCurrencyId
6138
+ currencyId
6094
6139
  }
6095
6140
  tiersMode
6096
6141
  tiers {
@@ -6531,7 +6576,7 @@ class AsyncClient(AsyncBaseClient):
6531
6576
  }
6532
6577
  creditRate {
6533
6578
  amount
6534
- customCurrencyId
6579
+ currencyId
6535
6580
  }
6536
6581
  tiersMode
6537
6582
  tiers {
@@ -6694,21 +6739,28 @@ class AsyncClient(AsyncBaseClient):
6694
6739
  }
6695
6740
  }
6696
6741
 
6742
+ fragment CreditBalanceFragment on CreditBalance {
6743
+ customerId
6744
+ currency {
6745
+ currencyId
6746
+ displayName
6747
+ symbol
6748
+ units {
6749
+ singular
6750
+ plural
6751
+ }
6752
+ }
6753
+ currentBalance
6754
+ totalConsumed
6755
+ totalGranted
6756
+ resourceId
6757
+ validUntil
6758
+ }
6759
+
6697
6760
  fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {
6698
6761
  customerId
6699
6762
  balances {
6700
- currency {
6701
- currencyId
6702
- displayName
6703
- symbol
6704
- units {
6705
- singular
6706
- plural
6707
- }
6708
- }
6709
- currentBalance
6710
- totalConsumed
6711
- totalGranted
6763
+ ...CreditBalanceFragment
6712
6764
  }
6713
6765
  }
6714
6766
  """
stigg/generated/client.py CHANGED
@@ -160,6 +160,11 @@ class Client(BaseClient):
160
160
  feature {
161
161
  ...FeatureFragment
162
162
  }
163
+ creditRate {
164
+ amount
165
+ currencyId
166
+ }
167
+ validUntil
163
168
  }
164
169
 
165
170
  fragment FeatureFragment on EntitlementFeature {
@@ -192,6 +197,7 @@ class Client(BaseClient):
192
197
  creditRate {
193
198
  amount
194
199
  customCurrencyId
200
+ currencyId
195
201
  }
196
202
  tiersMode
197
203
  tiers {
@@ -579,6 +585,11 @@ class Client(BaseClient):
579
585
  feature {
580
586
  ...FeatureFragment
581
587
  }
588
+ creditRate {
589
+ amount
590
+ currencyId
591
+ }
592
+ validUntil
582
593
  }
583
594
 
584
595
  fragment FeatureFragment on EntitlementFeature {
@@ -611,6 +622,7 @@ class Client(BaseClient):
611
622
  creditRate {
612
623
  amount
613
624
  customCurrencyId
625
+ currencyId
614
626
  }
615
627
  tiersMode
616
628
  tiers {
@@ -840,6 +852,11 @@ class Client(BaseClient):
840
852
  feature {
841
853
  ...FeatureFragment
842
854
  }
855
+ creditRate {
856
+ amount
857
+ currencyId
858
+ }
859
+ validUntil
843
860
  }
844
861
 
845
862
  fragment FeatureFragment on EntitlementFeature {
@@ -974,6 +991,7 @@ class Client(BaseClient):
974
991
  creditRate {
975
992
  amount
976
993
  customCurrencyId
994
+ currencyId
977
995
  }
978
996
  tiersMode
979
997
  tiers {
@@ -1287,6 +1305,7 @@ class Client(BaseClient):
1287
1305
  creditRate {
1288
1306
  amount
1289
1307
  customCurrencyId
1308
+ currencyId
1290
1309
  }
1291
1310
  tiersMode
1292
1311
  tiers {
@@ -1440,6 +1459,7 @@ class Client(BaseClient):
1440
1459
  creditRate {
1441
1460
  amount
1442
1461
  customCurrencyId
1462
+ currencyId
1443
1463
  }
1444
1464
  tiersMode
1445
1465
  tiers {
@@ -1976,6 +1996,7 @@ class Client(BaseClient):
1976
1996
  creditRate {
1977
1997
  amount
1978
1998
  customCurrencyId
1999
+ currencyId
1979
2000
  }
1980
2001
  tiersMode
1981
2002
  tiers {
@@ -2258,6 +2279,7 @@ class Client(BaseClient):
2258
2279
  creditRate {
2259
2280
  amount
2260
2281
  customCurrencyId
2282
+ currencyId
2261
2283
  }
2262
2284
  tiersMode
2263
2285
  tiers {
@@ -2487,6 +2509,7 @@ class Client(BaseClient):
2487
2509
  creditRate {
2488
2510
  amount
2489
2511
  customCurrencyId
2512
+ currencyId
2490
2513
  }
2491
2514
  tiersMode
2492
2515
  tiers {
@@ -2640,6 +2663,7 @@ class Client(BaseClient):
2640
2663
  creditRate {
2641
2664
  amount
2642
2665
  customCurrencyId
2666
+ currencyId
2643
2667
  }
2644
2668
  tiersMode
2645
2669
  tiers {
@@ -2793,6 +2817,7 @@ class Client(BaseClient):
2793
2817
  creditRate {
2794
2818
  amount
2795
2819
  customCurrencyId
2820
+ currencyId
2796
2821
  }
2797
2822
  tiersMode
2798
2823
  tiers {
@@ -3337,6 +3362,7 @@ class Client(BaseClient):
3337
3362
  creditRate {
3338
3363
  amount
3339
3364
  customCurrencyId
3365
+ currencyId
3340
3366
  }
3341
3367
  tiersMode
3342
3368
  tiers {
@@ -3799,6 +3825,7 @@ class Client(BaseClient):
3799
3825
  creditRate {
3800
3826
  amount
3801
3827
  customCurrencyId
3828
+ currencyId
3802
3829
  }
3803
3830
  tiersMode
3804
3831
  tiers {
@@ -4341,6 +4368,7 @@ class Client(BaseClient):
4341
4368
  creditRate {
4342
4369
  amount
4343
4370
  customCurrencyId
4371
+ currencyId
4344
4372
  }
4345
4373
  tiersMode
4346
4374
  tiers {
@@ -4925,6 +4953,7 @@ class Client(BaseClient):
4925
4953
  creditRate {
4926
4954
  amount
4927
4955
  customCurrencyId
4956
+ currencyId
4928
4957
  }
4929
4958
  tiersMode
4930
4959
  tiers {
@@ -5246,6 +5275,11 @@ class Client(BaseClient):
5246
5275
  feature {
5247
5276
  ...FeatureFragment
5248
5277
  }
5278
+ creditRate {
5279
+ amount
5280
+ currencyId
5281
+ }
5282
+ validUntil
5249
5283
  }
5250
5284
 
5251
5285
  fragment FeatureFragment on EntitlementFeature {
@@ -5327,6 +5361,11 @@ class Client(BaseClient):
5327
5361
  feature {
5328
5362
  ...FeatureFragment
5329
5363
  }
5364
+ creditRate {
5365
+ amount
5366
+ currencyId
5367
+ }
5368
+ validUntil
5330
5369
  }
5331
5370
 
5332
5371
  fragment FeatureFragment on EntitlementFeature {
@@ -5405,6 +5444,11 @@ class Client(BaseClient):
5405
5444
  feature {
5406
5445
  ...FeatureFragment
5407
5446
  }
5447
+ creditRate {
5448
+ amount
5449
+ currencyId
5450
+ }
5451
+ validUntil
5408
5452
  }
5409
5453
 
5410
5454
  fragment FeatureFragment on EntitlementFeature {
@@ -5614,7 +5658,7 @@ class Client(BaseClient):
5614
5658
  }
5615
5659
  creditRate {
5616
5660
  amount
5617
- customCurrencyId
5661
+ currencyId
5618
5662
  }
5619
5663
  feature {
5620
5664
  featureUnits
@@ -5660,7 +5704,7 @@ class Client(BaseClient):
5660
5704
  }
5661
5705
  creditRate {
5662
5706
  amount
5663
- customCurrencyId
5707
+ currencyId
5664
5708
  }
5665
5709
  feature {
5666
5710
  id
@@ -6087,6 +6131,7 @@ class Client(BaseClient):
6087
6131
  creditRate {
6088
6132
  amount
6089
6133
  customCurrencyId
6134
+ currencyId
6090
6135
  }
6091
6136
  tiersMode
6092
6137
  tiers {
@@ -6525,7 +6570,7 @@ class Client(BaseClient):
6525
6570
  }
6526
6571
  creditRate {
6527
6572
  amount
6528
- customCurrencyId
6573
+ currencyId
6529
6574
  }
6530
6575
  tiersMode
6531
6576
  tiers {
@@ -6688,21 +6733,28 @@ class Client(BaseClient):
6688
6733
  }
6689
6734
  }
6690
6735
 
6736
+ fragment CreditBalanceFragment on CreditBalance {
6737
+ customerId
6738
+ currency {
6739
+ currencyId
6740
+ displayName
6741
+ symbol
6742
+ units {
6743
+ singular
6744
+ plural
6745
+ }
6746
+ }
6747
+ currentBalance
6748
+ totalConsumed
6749
+ totalGranted
6750
+ resourceId
6751
+ validUntil
6752
+ }
6753
+
6691
6754
  fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {
6692
6755
  customerId
6693
6756
  balances {
6694
- currency {
6695
- currencyId
6696
- displayName
6697
- symbol
6698
- units {
6699
- singular
6700
- plural
6701
- }
6702
- }
6703
- currentBalance
6704
- totalConsumed
6705
- totalGranted
6757
+ ...CreditBalanceFragment
6706
6758
  }
6707
6759
  }
6708
6760
  """
stigg/generated/enums.py CHANGED
@@ -666,13 +666,20 @@ class EventLogType(str, Enum):
666
666
  COUPON_CREATED = "COUPON_CREATED"
667
667
  COUPON_UPDATED = "COUPON_UPDATED"
668
668
  CREATE_SUBSCRIPTION_FAILED = "CREATE_SUBSCRIPTION_FAILED"
669
- CREDITS_BALANCE_DEPLETED = "CREDITS_BALANCE_DEPLETED"
670
- CREDITS_BALANCE_USAGE_LOW = "CREDITS_BALANCE_USAGE_LOW"
671
- CREDITS_GRANT_DEPLETED = "CREDITS_GRANT_DEPLETED"
672
- CREDITS_GRANT_EXPIRED = "CREDITS_GRANT_EXPIRED"
673
- CREDITS_GRANT_GRANTED = "CREDITS_GRANT_GRANTED"
674
- CREDITS_GRANT_UPDATED = "CREDITS_GRANT_UPDATED"
675
- CREDITS_GRANT_USAGE_LOW = "CREDITS_GRANT_USAGE_LOW"
669
+ CREDITS_BALANCE_DEPLETED_OLD = "CREDITS_BALANCE_DEPLETED_OLD"
670
+ CREDITS_BALANCE_LOW_OLD = "CREDITS_BALANCE_LOW_OLD"
671
+ CREDITS_GRANT_BALANCE_LOW_OLD = "CREDITS_GRANT_BALANCE_LOW_OLD"
672
+ CREDITS_GRANT_DEPLETED_OLD = "CREDITS_GRANT_DEPLETED_OLD"
673
+ CREDITS_GRANT_EXPIRED_OLD = "CREDITS_GRANT_EXPIRED_OLD"
674
+ CREDITS_GRANT_GRANTED_OLD = "CREDITS_GRANT_GRANTED_OLD"
675
+ CREDITS_GRANT_UPDATED_OLD = "CREDITS_GRANT_UPDATED_OLD"
676
+ CREDIT_BALANCE_DEPLETED = "CREDIT_BALANCE_DEPLETED"
677
+ CREDIT_BALANCE_LOW = "CREDIT_BALANCE_LOW"
678
+ CREDIT_GRANT_BALANCE_LOW = "CREDIT_GRANT_BALANCE_LOW"
679
+ CREDIT_GRANT_CREATED = "CREDIT_GRANT_CREATED"
680
+ CREDIT_GRANT_DEPLETED = "CREDIT_GRANT_DEPLETED"
681
+ CREDIT_GRANT_EXPIRED = "CREDIT_GRANT_EXPIRED"
682
+ CREDIT_GRANT_UPDATED = "CREDIT_GRANT_UPDATED"
676
683
  CUSTOMER_CREATED = "CUSTOMER_CREATED"
677
684
  CUSTOMER_DELETED = "CUSTOMER_DELETED"
678
685
  CUSTOMER_ENTITLEMENT_CALCULATION_TRIGGERED = (