stigg-api-client 3.98.1 → 3.101.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5853a0b2f45e8dc10681d567d993dbc5bdf249d3fabdec5ded7bd76ff18356b
4
- data.tar.gz: b9fb575a3141ba1bef8456d4588a6d89e2f0bd239a3ffa52f02f6aa7a34206f8
3
+ metadata.gz: 606ef5f86320d55e30611bbf337eb18829b4988ee2493676b633d3f7230311f9
4
+ data.tar.gz: 54479759eefb9d0ff9da7b27ea44b14c45863f2999d9940b9602e84aa418e052
5
5
  SHA512:
6
- metadata.gz: 5907a403613c8a4206ac1078d8f2509b99ca30f3f6632213e00af50434d361846c514b18caa5ff14efe96c8d4bd8aebc44607d5fa16f1668c325c3267cd1ed65
7
- data.tar.gz: 18435149415b06657bcadb11496b43c112bac2b7c6441e8cc044ef5e69107ecf35593de2867989f79c5f45dc21f8d1c640785f8b26a9a9370b4c42617e866bf1
6
+ metadata.gz: dde2640abbb0e6a2e83ef28fa5b2cfece6c4a5c50e2985da0eec057f23e52f33289c4f5c72cb697db44f65683b28f2d0f11843beb1f32018f6eae1ec44466f43
7
+ data.tar.gz: d5364b7b08377b850455e1eb862a36872766b5a6cdfa1cf373be1858aea8e1ce8f95477ea81fdac9a4dadba6b28ceb299da7cd553aeb8f3372698c834fcfe890
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (3.98.1)
4
+ stigg-api-client (3.101.0)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -58,6 +58,7 @@ module Stigg
58
58
  creditRate {
59
59
  amount
60
60
  customCurrencyId
61
+ currencyId
61
62
  }
62
63
  tiersMode
63
64
  tiers {
@@ -984,6 +985,11 @@ module Stigg
984
985
  feature {
985
986
  ...FeatureFragment
986
987
  }
988
+ creditRate {
989
+ amount
990
+ currencyId
991
+ }
992
+ validUntil
987
993
  }
988
994
  GRAPHQL
989
995
 
@@ -1094,6 +1100,27 @@ module Stigg
1094
1100
  }
1095
1101
  GRAPHQL
1096
1102
 
1103
+ CreditBalanceUpdatedPayload = <<~GRAPHQL
1104
+ fragment CreditBalanceUpdatedPayload on CreditBalanceUpdated {
1105
+ currency {
1106
+ currencyId
1107
+ displayName
1108
+ symbol
1109
+ units {
1110
+ singular
1111
+ plural
1112
+ }
1113
+ }
1114
+ currencyId
1115
+ currentBalance
1116
+ customerId
1117
+ validUntil
1118
+ resourceId
1119
+ totalConsumed
1120
+ totalGranted
1121
+ }
1122
+ GRAPHQL
1123
+
1097
1124
  CustomerPortalFragment = <<~GRAPHQL
1098
1125
  fragment CustomerPortalFragment on CustomerPortal {
1099
1126
  subscriptions {
@@ -1221,7 +1248,7 @@ module Stigg
1221
1248
  }
1222
1249
  creditRate {
1223
1250
  amount
1224
- customCurrencyId
1251
+ currencyId
1225
1252
  }
1226
1253
  feature {
1227
1254
  id
@@ -1254,7 +1281,7 @@ module Stigg
1254
1281
  }
1255
1282
  creditRate {
1256
1283
  amount
1257
- customCurrencyId
1284
+ currencyId
1258
1285
  }
1259
1286
  feature {
1260
1287
  featureUnits
@@ -1442,7 +1469,7 @@ module Stigg
1442
1469
  }
1443
1470
  creditRate {
1444
1471
  amount
1445
- customCurrencyId
1472
+ currencyId
1446
1473
  }
1447
1474
  tiersMode
1448
1475
  tiers {
@@ -1750,19 +1777,28 @@ module Stigg
1750
1777
  fragment CreditsBalanceSummaryFragment on CreditBalanceSummary {
1751
1778
  customerId
1752
1779
  balances {
1753
- currency {
1754
- currencyId
1755
- displayName
1756
- symbol
1757
- units {
1758
- singular
1759
- plural
1760
- }
1780
+ ...CreditBalanceFragment
1781
+ }
1782
+ }
1783
+ GRAPHQL
1784
+
1785
+ CreditBalanceFragment = <<~GRAPHQL
1786
+ fragment CreditBalanceFragment on CreditBalance {
1787
+ customerId
1788
+ currency {
1789
+ currencyId
1790
+ displayName
1791
+ symbol
1792
+ units {
1793
+ singular
1794
+ plural
1761
1795
  }
1762
- currentBalance
1763
- totalConsumed
1764
- totalGranted
1765
1796
  }
1797
+ currentBalance
1798
+ totalConsumed
1799
+ totalGranted
1800
+ resourceId
1801
+ validUntil
1766
1802
  }
1767
1803
  GRAPHQL
1768
1804
 
@@ -2514,6 +2550,7 @@ module Stigg
2514
2550
  }
2515
2551
  }
2516
2552
  #{Fragment::CreditsBalanceSummaryFragment}
2553
+ #{Fragment::CreditBalanceFragment}
2517
2554
  GRAPHQL
2518
2555
 
2519
2556
  GetCreditGrants = <<~GRAPHQL
@@ -2588,5 +2625,14 @@ module Stigg
2588
2625
  }
2589
2626
  #{Fragment::PackagePublishedPayload}
2590
2627
  GRAPHQL
2628
+
2629
+ OnCreditBalanceUpdated = <<~GRAPHQL
2630
+ subscription OnCreditBalanceUpdated {
2631
+ creditBalanceUpdated {
2632
+ ...CreditBalanceUpdatedPayload
2633
+ }
2634
+ }
2635
+ #{Fragment::CreditBalanceUpdatedPayload}
2636
+ GRAPHQL
2591
2637
  end
2592
2638
  end
@@ -11689,6 +11689,34 @@
11689
11689
  "isDeprecated": false,
11690
11690
  "deprecationReason": null
11691
11691
  },
11692
+ {
11693
+ "name": "customerId",
11694
+ "description": "The customer ID of the credit grant",
11695
+ "args": [],
11696
+ "type": {
11697
+ "kind": "NON_NULL",
11698
+ "name": null,
11699
+ "ofType": {
11700
+ "kind": "SCALAR",
11701
+ "name": "String",
11702
+ "ofType": null
11703
+ }
11704
+ },
11705
+ "isDeprecated": false,
11706
+ "deprecationReason": null
11707
+ },
11708
+ {
11709
+ "name": "resourceId",
11710
+ "description": "The resource ID of the credit grant",
11711
+ "args": [],
11712
+ "type": {
11713
+ "kind": "SCALAR",
11714
+ "name": "String",
11715
+ "ofType": null
11716
+ },
11717
+ "isDeprecated": false,
11718
+ "deprecationReason": null
11719
+ },
11692
11720
  {
11693
11721
  "name": "totalConsumed",
11694
11722
  "description": "Total amount consumed from all grants",
@@ -11720,6 +11748,18 @@
11720
11748
  },
11721
11749
  "isDeprecated": false,
11722
11750
  "deprecationReason": null
11751
+ },
11752
+ {
11753
+ "name": "validUntil",
11754
+ "description": "The next time the balance will be updated (e.g., when a grant expires or becomes effective)",
11755
+ "args": [],
11756
+ "type": {
11757
+ "kind": "SCALAR",
11758
+ "name": "Float",
11759
+ "ofType": null
11760
+ },
11761
+ "isDeprecated": false,
11762
+ "deprecationReason": null
11723
11763
  }
11724
11764
  ],
11725
11765
  "inputFields": null,
@@ -11853,6 +11893,169 @@
11853
11893
  "enumValues": null,
11854
11894
  "possibleTypes": null
11855
11895
  },
11896
+ {
11897
+ "kind": "OBJECT",
11898
+ "name": "CreditBalanceUpdated",
11899
+ "description": "Credit balance update notification",
11900
+ "fields": [
11901
+ {
11902
+ "name": "accountId",
11903
+ "description": "The unique identifier for the account",
11904
+ "args": [],
11905
+ "type": {
11906
+ "kind": "NON_NULL",
11907
+ "name": null,
11908
+ "ofType": {
11909
+ "kind": "SCALAR",
11910
+ "name": "String",
11911
+ "ofType": null
11912
+ }
11913
+ },
11914
+ "isDeprecated": false,
11915
+ "deprecationReason": null
11916
+ },
11917
+ {
11918
+ "name": "currency",
11919
+ "description": "Stigg custom currency object with minimal fields",
11920
+ "args": [],
11921
+ "type": {
11922
+ "kind": "NON_NULL",
11923
+ "name": null,
11924
+ "ofType": {
11925
+ "kind": "OBJECT",
11926
+ "name": "SlimCustomCurrency",
11927
+ "ofType": null
11928
+ }
11929
+ },
11930
+ "isDeprecated": false,
11931
+ "deprecationReason": null
11932
+ },
11933
+ {
11934
+ "name": "currencyId",
11935
+ "description": "The custom currency ID of the credit grant",
11936
+ "args": [],
11937
+ "type": {
11938
+ "kind": "NON_NULL",
11939
+ "name": null,
11940
+ "ofType": {
11941
+ "kind": "SCALAR",
11942
+ "name": "String",
11943
+ "ofType": null
11944
+ }
11945
+ },
11946
+ "isDeprecated": true,
11947
+ "deprecationReason": "Use currency instead"
11948
+ },
11949
+ {
11950
+ "name": "currentBalance",
11951
+ "description": "Current available balance",
11952
+ "args": [],
11953
+ "type": {
11954
+ "kind": "NON_NULL",
11955
+ "name": null,
11956
+ "ofType": {
11957
+ "kind": "SCALAR",
11958
+ "name": "Float",
11959
+ "ofType": null
11960
+ }
11961
+ },
11962
+ "isDeprecated": false,
11963
+ "deprecationReason": null
11964
+ },
11965
+ {
11966
+ "name": "customerId",
11967
+ "description": "The customer ID of the credit grant",
11968
+ "args": [],
11969
+ "type": {
11970
+ "kind": "NON_NULL",
11971
+ "name": null,
11972
+ "ofType": {
11973
+ "kind": "SCALAR",
11974
+ "name": "String",
11975
+ "ofType": null
11976
+ }
11977
+ },
11978
+ "isDeprecated": false,
11979
+ "deprecationReason": null
11980
+ },
11981
+ {
11982
+ "name": "environmentId",
11983
+ "description": "The unique identifier for the environment",
11984
+ "args": [],
11985
+ "type": {
11986
+ "kind": "NON_NULL",
11987
+ "name": null,
11988
+ "ofType": {
11989
+ "kind": "SCALAR",
11990
+ "name": "String",
11991
+ "ofType": null
11992
+ }
11993
+ },
11994
+ "isDeprecated": false,
11995
+ "deprecationReason": null
11996
+ },
11997
+ {
11998
+ "name": "resourceId",
11999
+ "description": "The resource ID of the credit grant",
12000
+ "args": [],
12001
+ "type": {
12002
+ "kind": "SCALAR",
12003
+ "name": "String",
12004
+ "ofType": null
12005
+ },
12006
+ "isDeprecated": false,
12007
+ "deprecationReason": null
12008
+ },
12009
+ {
12010
+ "name": "totalConsumed",
12011
+ "description": "Total amount consumed from all grants",
12012
+ "args": [],
12013
+ "type": {
12014
+ "kind": "NON_NULL",
12015
+ "name": null,
12016
+ "ofType": {
12017
+ "kind": "SCALAR",
12018
+ "name": "Float",
12019
+ "ofType": null
12020
+ }
12021
+ },
12022
+ "isDeprecated": false,
12023
+ "deprecationReason": null
12024
+ },
12025
+ {
12026
+ "name": "totalGranted",
12027
+ "description": "Total amount granted across all active grants",
12028
+ "args": [],
12029
+ "type": {
12030
+ "kind": "NON_NULL",
12031
+ "name": null,
12032
+ "ofType": {
12033
+ "kind": "SCALAR",
12034
+ "name": "Float",
12035
+ "ofType": null
12036
+ }
12037
+ },
12038
+ "isDeprecated": false,
12039
+ "deprecationReason": null
12040
+ },
12041
+ {
12042
+ "name": "validUntil",
12043
+ "description": "The next time the balance will be updated (e.g., when a grant expires or becomes effective)",
12044
+ "args": [],
12045
+ "type": {
12046
+ "kind": "SCALAR",
12047
+ "name": "Float",
12048
+ "ofType": null
12049
+ },
12050
+ "isDeprecated": false,
12051
+ "deprecationReason": null
12052
+ }
12053
+ ],
12054
+ "inputFields": null,
12055
+ "interfaces": [],
12056
+ "enumValues": null,
12057
+ "possibleTypes": null
12058
+ },
11856
12059
  {
11857
12060
  "kind": "OBJECT",
11858
12061
  "name": "CreditGrant",
@@ -12264,6 +12467,18 @@
12264
12467
  "isDeprecated": false,
12265
12468
  "deprecationReason": null
12266
12469
  },
12470
+ {
12471
+ "name": "awaitPaymentConfirmation",
12472
+ "description": "Wait for payment confirmation before returning",
12473
+ "type": {
12474
+ "kind": "SCALAR",
12475
+ "name": "Boolean",
12476
+ "ofType": null
12477
+ },
12478
+ "defaultValue": "false",
12479
+ "isDeprecated": false,
12480
+ "deprecationReason": null
12481
+ },
12267
12482
  {
12268
12483
  "name": "comment",
12269
12484
  "description": "The comment for the credit grant",
@@ -12388,6 +12603,18 @@
12388
12603
  "isDeprecated": false,
12389
12604
  "deprecationReason": null
12390
12605
  },
12606
+ {
12607
+ "name": "paymentCollectionMethod",
12608
+ "description": "The method used to collect payments for the credit grant",
12609
+ "type": {
12610
+ "kind": "ENUM",
12611
+ "name": "PaymentCollectionMethod",
12612
+ "ofType": null
12613
+ },
12614
+ "defaultValue": null,
12615
+ "isDeprecated": false,
12616
+ "deprecationReason": null
12617
+ },
12391
12618
  {
12392
12619
  "name": "priority",
12393
12620
  "description": "The priority of the credit grant",
@@ -12720,20 +12947,32 @@
12720
12947
  "deprecationReason": null
12721
12948
  },
12722
12949
  {
12723
- "name": "customCurrencyId",
12724
- "description": "The custom currency ID for the credit rate",
12950
+ "name": "currencyId",
12951
+ "description": "The custom currency refId for the credit rate",
12725
12952
  "args": [],
12726
12953
  "type": {
12727
12954
  "kind": "NON_NULL",
12728
12955
  "name": null,
12729
12956
  "ofType": {
12730
12957
  "kind": "SCALAR",
12731
- "name": "UUID",
12958
+ "name": "String",
12732
12959
  "ofType": null
12733
12960
  }
12734
12961
  },
12735
12962
  "isDeprecated": false,
12736
12963
  "deprecationReason": null
12964
+ },
12965
+ {
12966
+ "name": "customCurrencyId",
12967
+ "description": "The custom currency ID for the credit rate",
12968
+ "args": [],
12969
+ "type": {
12970
+ "kind": "SCALAR",
12971
+ "name": "UUID",
12972
+ "ofType": null
12973
+ },
12974
+ "isDeprecated": true,
12975
+ "deprecationReason": "use currencyId instead"
12737
12976
  }
12738
12977
  ],
12739
12978
  "inputFields": null,
@@ -12763,17 +13002,25 @@
12763
13002
  "isDeprecated": false,
12764
13003
  "deprecationReason": null
12765
13004
  },
13005
+ {
13006
+ "name": "currencyId",
13007
+ "description": "The custom currency refId for the credit rate",
13008
+ "type": {
13009
+ "kind": "SCALAR",
13010
+ "name": "String",
13011
+ "ofType": null
13012
+ },
13013
+ "defaultValue": null,
13014
+ "isDeprecated": false,
13015
+ "deprecationReason": null
13016
+ },
12766
13017
  {
12767
13018
  "name": "customCurrencyId",
12768
13019
  "description": "The custom currency ID for the credit rate",
12769
13020
  "type": {
12770
- "kind": "NON_NULL",
12771
- "name": null,
12772
- "ofType": {
12773
- "kind": "SCALAR",
12774
- "name": "UUID",
12775
- "ofType": null
12776
- }
13021
+ "kind": "SCALAR",
13022
+ "name": "UUID",
13023
+ "ofType": null
12777
13024
  },
12778
13025
  "defaultValue": null,
12779
13026
  "isDeprecated": false,
@@ -25001,6 +25248,18 @@
25001
25248
  "isDeprecated": false,
25002
25249
  "deprecationReason": null
25003
25250
  },
25251
+ {
25252
+ "name": "creditRate",
25253
+ "description": "The credit rate associated with this entitlement, if applicable.",
25254
+ "args": [],
25255
+ "type": {
25256
+ "kind": "OBJECT",
25257
+ "name": "CreditRate",
25258
+ "ofType": null
25259
+ },
25260
+ "isDeprecated": false,
25261
+ "deprecationReason": null
25262
+ },
25004
25263
  {
25005
25264
  "name": "currentUsage",
25006
25265
  "description": "The amount of the feature the customer has used so far in the current period.",
@@ -25296,6 +25555,18 @@
25296
25555
  },
25297
25556
  "isDeprecated": false,
25298
25557
  "deprecationReason": null
25558
+ },
25559
+ {
25560
+ "name": "validUntil",
25561
+ "description": "The next time the entitlement should be recalculated",
25562
+ "args": [],
25563
+ "type": {
25564
+ "kind": "SCALAR",
25565
+ "name": "Float",
25566
+ "ofType": null
25567
+ },
25568
+ "isDeprecated": false,
25569
+ "deprecationReason": null
25299
25570
  }
25300
25571
  ],
25301
25572
  "inputFields": null,
@@ -26094,6 +26365,18 @@
26094
26365
  "isDeprecated": false,
26095
26366
  "deprecationReason": null
26096
26367
  },
26368
+ {
26369
+ "name": "creditRate",
26370
+ "description": "The credit rate associated with this entitlement, if applicable.",
26371
+ "args": [],
26372
+ "type": {
26373
+ "kind": "OBJECT",
26374
+ "name": "CreditRate",
26375
+ "ofType": null
26376
+ },
26377
+ "isDeprecated": false,
26378
+ "deprecationReason": null
26379
+ },
26097
26380
  {
26098
26381
  "name": "currentUsage",
26099
26382
  "description": "The amount of the feature the customer has used so far in the current period.",
@@ -26409,6 +26692,18 @@
26409
26692
  },
26410
26693
  "isDeprecated": false,
26411
26694
  "deprecationReason": null
26695
+ },
26696
+ {
26697
+ "name": "validUntil",
26698
+ "description": "The next time the entitlement should be recalculated",
26699
+ "args": [],
26700
+ "type": {
26701
+ "kind": "SCALAR",
26702
+ "name": "Float",
26703
+ "ofType": null
26704
+ },
26705
+ "isDeprecated": false,
26706
+ "deprecationReason": null
26412
26707
  }
26413
26708
  ],
26414
26709
  "inputFields": null,
@@ -28431,6 +28726,12 @@
28431
28726
  "isDeprecated": false,
28432
28727
  "deprecationReason": null
28433
28728
  },
28729
+ {
28730
+ "name": "NoActiveSubscriptionForCustomer",
28731
+ "description": null,
28732
+ "isDeprecated": false,
28733
+ "deprecationReason": null
28734
+ },
28434
28735
  {
28435
28736
  "name": "NoDraftOfferFound",
28436
28737
  "description": "No draft offer found to publish",
@@ -49896,6 +50197,65 @@
49896
50197
  "enumValues": null,
49897
50198
  "possibleTypes": null
49898
50199
  },
50200
+ {
50201
+ "kind": "OBJECT",
50202
+ "name": "NoActiveSubscriptionForCustomerError",
50203
+ "description": null,
50204
+ "fields": [
50205
+ {
50206
+ "name": "code",
50207
+ "description": null,
50208
+ "args": [],
50209
+ "type": {
50210
+ "kind": "NON_NULL",
50211
+ "name": null,
50212
+ "ofType": {
50213
+ "kind": "SCALAR",
50214
+ "name": "String",
50215
+ "ofType": null
50216
+ }
50217
+ },
50218
+ "isDeprecated": false,
50219
+ "deprecationReason": null
50220
+ },
50221
+ {
50222
+ "name": "customerRefId",
50223
+ "description": null,
50224
+ "args": [],
50225
+ "type": {
50226
+ "kind": "NON_NULL",
50227
+ "name": null,
50228
+ "ofType": {
50229
+ "kind": "SCALAR",
50230
+ "name": "String",
50231
+ "ofType": null
50232
+ }
50233
+ },
50234
+ "isDeprecated": false,
50235
+ "deprecationReason": null
50236
+ },
50237
+ {
50238
+ "name": "isValidationError",
50239
+ "description": null,
50240
+ "args": [],
50241
+ "type": {
50242
+ "kind": "NON_NULL",
50243
+ "name": null,
50244
+ "ofType": {
50245
+ "kind": "SCALAR",
50246
+ "name": "Boolean",
50247
+ "ofType": null
50248
+ }
50249
+ },
50250
+ "isDeprecated": false,
50251
+ "deprecationReason": null
50252
+ }
50253
+ ],
50254
+ "inputFields": null,
50255
+ "interfaces": [],
50256
+ "enumValues": null,
50257
+ "possibleTypes": null
50258
+ },
49899
50259
  {
49900
50260
  "kind": "OBJECT",
49901
50261
  "name": "NumberChange",
@@ -78434,6 +78794,22 @@
78434
78794
  "name": "Subscription",
78435
78795
  "description": null,
78436
78796
  "fields": [
78797
+ {
78798
+ "name": "creditBalanceUpdated",
78799
+ "description": "Subscription for credit balance updates for a specific customer",
78800
+ "args": [],
78801
+ "type": {
78802
+ "kind": "NON_NULL",
78803
+ "name": null,
78804
+ "ofType": {
78805
+ "kind": "OBJECT",
78806
+ "name": "CreditBalanceUpdated",
78807
+ "ofType": null
78808
+ }
78809
+ },
78810
+ "isDeprecated": false,
78811
+ "deprecationReason": null
78812
+ },
78437
78813
  {
78438
78814
  "name": "entitlementsUpdated",
78439
78815
  "description": "Subscribe to real-time updates when a customers entitlements change.",
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "3.98.1"
4
+ VERSION = "3.101.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.98.1
4
+ version: 3.101.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-09-28 00:00:00.000000000 Z
11
+ date: 2025-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient