stigg-api-client 5.56.0 → 5.61.1

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: 11fe4df1a833b47529c9faa2bd8966a74bac4025b43c76aadae48ba061793b70
4
- data.tar.gz: f501abda96de1abcc90d91df5d7b53fee6b8a081cffb1de877b4d2985a427c44
3
+ metadata.gz: 5af2650bd036ccd22990362a9ed7e9c7ccb258b48ca85b1acddb123c07b9dcaf
4
+ data.tar.gz: 7d8a0fd55decccebdcda7728c3a00807a5cf27adb8f638c4a902aefdd7d7b440
5
5
  SHA512:
6
- metadata.gz: 6c35dc8cf11943c78dc84c61de0f5cac2f06cb68ed98316cca91fa9f38d64a912f10cd79e9291288ef80a7a0178a05eb949f6489ca3f57cd45dd7e9c7c14f49b
7
- data.tar.gz: b68c7ec8076041a70073d475026a7be8911152bb4c0b5f4893c3b75d6346238e55e956d00e96f417b42a65c18e7387a5b902f00cab86ce64c1053bd8e59715f6
6
+ metadata.gz: 257b5db3d6e2b5fcf4e06cfb63dc99ad3b1b321d10a07f7618451da28e2c06c73e2990dad5762a89830e78c61480024cbb25ca20620183a479e5654428ffa2f6
7
+ data.tar.gz: 0cd550a0691756668de67454e7056c36c98fb3388ff123934218c554e924ad7c20b86fbb4927540100babc857289b385b1f96684060353abc622eb5795b014dc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (5.56.0)
4
+ stigg-api-client (5.61.1)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -1737,6 +1737,30 @@ module Stigg
1737
1737
  }
1738
1738
  GRAPHQL
1739
1739
 
1740
+ CreditGrantInvoiceFragment = <<~GRAPHQL
1741
+ fragment CreditGrantInvoiceFragment on CreditGrantInvoice {
1742
+ billingId
1743
+ status
1744
+ createdAt
1745
+ dueDate
1746
+ updatedAt
1747
+ errorMessage
1748
+ requiresAction
1749
+ paymentSecret
1750
+ paymentUrl
1751
+ pdfUrl
1752
+ billingReason
1753
+ currency
1754
+ subTotal
1755
+ subTotalExcludingTax
1756
+ total
1757
+ totalExcludingTax
1758
+ tax
1759
+ amountDue
1760
+ attemptCount
1761
+ }
1762
+ GRAPHQL
1763
+
1740
1764
  CreditGrantFragment = <<~GRAPHQL
1741
1765
  fragment CreditGrantFragment on CreditGrant {
1742
1766
  grantId
@@ -1762,7 +1786,7 @@ module Stigg
1762
1786
  paymentCollection
1763
1787
  invoiceId
1764
1788
  latestInvoice {
1765
- ...SubscriptionInvoiceFragment
1789
+ ...CreditGrantInvoiceFragment
1766
1790
  }
1767
1791
  }
1768
1792
  GRAPHQL
@@ -2192,7 +2216,7 @@ module Stigg
2192
2216
  }
2193
2217
  }
2194
2218
  #{Fragment::CreditGrantFragment}
2195
- #{Fragment::SubscriptionInvoiceFragment}
2219
+ #{Fragment::CreditGrantInvoiceFragment}
2196
2220
  GRAPHQL
2197
2221
 
2198
2222
  GrantPromotionalEntitlementsGroup = <<~GRAPHQL
@@ -2244,7 +2268,7 @@ module Stigg
2244
2268
  }
2245
2269
  }
2246
2270
  #{Fragment::CreditGrantFragment}
2247
- #{Fragment::SubscriptionInvoiceFragment}
2271
+ #{Fragment::CreditGrantInvoiceFragment}
2248
2272
  GRAPHQL
2249
2273
 
2250
2274
  CreateCoupon = <<~GRAPHQL
@@ -2451,6 +2475,7 @@ module Stigg
2451
2475
  GetEntitlementsState = <<~GRAPHQL
2452
2476
  query GetEntitlementsState($query: FetchEntitlementsQuery!) {
2453
2477
  entitlementsState(query: $query) {
2478
+ __typename
2454
2479
  entitlements {
2455
2480
  ...EntitlementFragment
2456
2481
  }
@@ -2622,7 +2647,7 @@ module Stigg
2622
2647
  }
2623
2648
  #{Fragment::PageInfoFragment}
2624
2649
  #{Fragment::CreditGrantFragment}
2625
- #{Fragment::SubscriptionInvoiceFragment}
2650
+ #{Fragment::CreditGrantInvoiceFragment}
2626
2651
  GRAPHQL
2627
2652
 
2628
2653
  GetCreditLedger = <<~GRAPHQL
@@ -12928,7 +12928,7 @@
12928
12928
  "args": [],
12929
12929
  "type": {
12930
12930
  "kind": "OBJECT",
12931
- "name": "SubscriptionInvoice",
12931
+ "name": "CreditGrantInvoice",
12932
12932
  "ofType": null
12933
12933
  },
12934
12934
  "isDeprecated": false,
@@ -13521,6 +13521,367 @@
13521
13521
  "enumValues": null,
13522
13522
  "possibleTypes": null
13523
13523
  },
13524
+ {
13525
+ "kind": "OBJECT",
13526
+ "name": "CreditGrantInvoice",
13527
+ "description": null,
13528
+ "fields": [
13529
+ {
13530
+ "name": "amountDue",
13531
+ "description": null,
13532
+ "args": [],
13533
+ "type": {
13534
+ "kind": "SCALAR",
13535
+ "name": "Float",
13536
+ "ofType": null
13537
+ },
13538
+ "isDeprecated": false,
13539
+ "deprecationReason": null
13540
+ },
13541
+ {
13542
+ "name": "appliedBalance",
13543
+ "description": null,
13544
+ "args": [],
13545
+ "type": {
13546
+ "kind": "SCALAR",
13547
+ "name": "Float",
13548
+ "ofType": null
13549
+ },
13550
+ "isDeprecated": false,
13551
+ "deprecationReason": null
13552
+ },
13553
+ {
13554
+ "name": "attemptCount",
13555
+ "description": "Number of payment attempts made for this invoice, from the perspective of the payment retry schedule.",
13556
+ "args": [],
13557
+ "type": {
13558
+ "kind": "SCALAR",
13559
+ "name": "Float",
13560
+ "ofType": null
13561
+ },
13562
+ "isDeprecated": false,
13563
+ "deprecationReason": null
13564
+ },
13565
+ {
13566
+ "name": "billingId",
13567
+ "description": null,
13568
+ "args": [],
13569
+ "type": {
13570
+ "kind": "NON_NULL",
13571
+ "name": null,
13572
+ "ofType": {
13573
+ "kind": "SCALAR",
13574
+ "name": "String",
13575
+ "ofType": null
13576
+ }
13577
+ },
13578
+ "isDeprecated": false,
13579
+ "deprecationReason": null
13580
+ },
13581
+ {
13582
+ "name": "billingReason",
13583
+ "description": "The billing reason of a credit grant invoice",
13584
+ "args": [],
13585
+ "type": {
13586
+ "kind": "ENUM",
13587
+ "name": "CreditGrantInvoiceBillingReason",
13588
+ "ofType": null
13589
+ },
13590
+ "isDeprecated": false,
13591
+ "deprecationReason": null
13592
+ },
13593
+ {
13594
+ "name": "createdAt",
13595
+ "description": null,
13596
+ "args": [],
13597
+ "type": {
13598
+ "kind": "NON_NULL",
13599
+ "name": null,
13600
+ "ofType": {
13601
+ "kind": "SCALAR",
13602
+ "name": "DateTime",
13603
+ "ofType": null
13604
+ }
13605
+ },
13606
+ "isDeprecated": false,
13607
+ "deprecationReason": null
13608
+ },
13609
+ {
13610
+ "name": "currency",
13611
+ "description": null,
13612
+ "args": [],
13613
+ "type": {
13614
+ "kind": "SCALAR",
13615
+ "name": "String",
13616
+ "ofType": null
13617
+ },
13618
+ "isDeprecated": false,
13619
+ "deprecationReason": null
13620
+ },
13621
+ {
13622
+ "name": "dueDate",
13623
+ "description": null,
13624
+ "args": [],
13625
+ "type": {
13626
+ "kind": "SCALAR",
13627
+ "name": "DateTime",
13628
+ "ofType": null
13629
+ },
13630
+ "isDeprecated": false,
13631
+ "deprecationReason": null
13632
+ },
13633
+ {
13634
+ "name": "endingBalance",
13635
+ "description": null,
13636
+ "args": [],
13637
+ "type": {
13638
+ "kind": "SCALAR",
13639
+ "name": "Float",
13640
+ "ofType": null
13641
+ },
13642
+ "isDeprecated": false,
13643
+ "deprecationReason": null
13644
+ },
13645
+ {
13646
+ "name": "errorMessage",
13647
+ "description": null,
13648
+ "args": [],
13649
+ "type": {
13650
+ "kind": "SCALAR",
13651
+ "name": "String",
13652
+ "ofType": null
13653
+ },
13654
+ "isDeprecated": false,
13655
+ "deprecationReason": null
13656
+ },
13657
+ {
13658
+ "name": "lines",
13659
+ "description": null,
13660
+ "args": [],
13661
+ "type": {
13662
+ "kind": "LIST",
13663
+ "name": null,
13664
+ "ofType": {
13665
+ "kind": "NON_NULL",
13666
+ "name": null,
13667
+ "ofType": {
13668
+ "kind": "OBJECT",
13669
+ "name": "InvoiceLine",
13670
+ "ofType": null
13671
+ }
13672
+ }
13673
+ },
13674
+ "isDeprecated": false,
13675
+ "deprecationReason": null
13676
+ },
13677
+ {
13678
+ "name": "paymentSecret",
13679
+ "description": null,
13680
+ "args": [],
13681
+ "type": {
13682
+ "kind": "SCALAR",
13683
+ "name": "String",
13684
+ "ofType": null
13685
+ },
13686
+ "isDeprecated": false,
13687
+ "deprecationReason": null
13688
+ },
13689
+ {
13690
+ "name": "paymentUrl",
13691
+ "description": null,
13692
+ "args": [],
13693
+ "type": {
13694
+ "kind": "SCALAR",
13695
+ "name": "String",
13696
+ "ofType": null
13697
+ },
13698
+ "isDeprecated": false,
13699
+ "deprecationReason": null
13700
+ },
13701
+ {
13702
+ "name": "pdfUrl",
13703
+ "description": null,
13704
+ "args": [],
13705
+ "type": {
13706
+ "kind": "SCALAR",
13707
+ "name": "String",
13708
+ "ofType": null
13709
+ },
13710
+ "isDeprecated": false,
13711
+ "deprecationReason": null
13712
+ },
13713
+ {
13714
+ "name": "requiresAction",
13715
+ "description": null,
13716
+ "args": [],
13717
+ "type": {
13718
+ "kind": "NON_NULL",
13719
+ "name": null,
13720
+ "ofType": {
13721
+ "kind": "SCALAR",
13722
+ "name": "Boolean",
13723
+ "ofType": null
13724
+ }
13725
+ },
13726
+ "isDeprecated": false,
13727
+ "deprecationReason": null
13728
+ },
13729
+ {
13730
+ "name": "startingBalance",
13731
+ "description": null,
13732
+ "args": [],
13733
+ "type": {
13734
+ "kind": "SCALAR",
13735
+ "name": "Float",
13736
+ "ofType": null
13737
+ },
13738
+ "isDeprecated": false,
13739
+ "deprecationReason": null
13740
+ },
13741
+ {
13742
+ "name": "status",
13743
+ "description": "The status of the credit grant",
13744
+ "args": [],
13745
+ "type": {
13746
+ "kind": "NON_NULL",
13747
+ "name": null,
13748
+ "ofType": {
13749
+ "kind": "ENUM",
13750
+ "name": "CreditGrantInvoiceStatus",
13751
+ "ofType": null
13752
+ }
13753
+ },
13754
+ "isDeprecated": false,
13755
+ "deprecationReason": null
13756
+ },
13757
+ {
13758
+ "name": "subTotal",
13759
+ "description": null,
13760
+ "args": [],
13761
+ "type": {
13762
+ "kind": "SCALAR",
13763
+ "name": "Float",
13764
+ "ofType": null
13765
+ },
13766
+ "isDeprecated": false,
13767
+ "deprecationReason": null
13768
+ },
13769
+ {
13770
+ "name": "subTotalExcludingTax",
13771
+ "description": null,
13772
+ "args": [],
13773
+ "type": {
13774
+ "kind": "SCALAR",
13775
+ "name": "Float",
13776
+ "ofType": null
13777
+ },
13778
+ "isDeprecated": false,
13779
+ "deprecationReason": null
13780
+ },
13781
+ {
13782
+ "name": "tax",
13783
+ "description": null,
13784
+ "args": [],
13785
+ "type": {
13786
+ "kind": "SCALAR",
13787
+ "name": "Float",
13788
+ "ofType": null
13789
+ },
13790
+ "isDeprecated": false,
13791
+ "deprecationReason": null
13792
+ },
13793
+ {
13794
+ "name": "total",
13795
+ "description": null,
13796
+ "args": [],
13797
+ "type": {
13798
+ "kind": "SCALAR",
13799
+ "name": "Float",
13800
+ "ofType": null
13801
+ },
13802
+ "isDeprecated": false,
13803
+ "deprecationReason": null
13804
+ },
13805
+ {
13806
+ "name": "totalExcludingTax",
13807
+ "description": null,
13808
+ "args": [],
13809
+ "type": {
13810
+ "kind": "SCALAR",
13811
+ "name": "Float",
13812
+ "ofType": null
13813
+ },
13814
+ "isDeprecated": false,
13815
+ "deprecationReason": null
13816
+ },
13817
+ {
13818
+ "name": "updatedAt",
13819
+ "description": null,
13820
+ "args": [],
13821
+ "type": {
13822
+ "kind": "NON_NULL",
13823
+ "name": null,
13824
+ "ofType": {
13825
+ "kind": "SCALAR",
13826
+ "name": "DateTime",
13827
+ "ofType": null
13828
+ }
13829
+ },
13830
+ "isDeprecated": false,
13831
+ "deprecationReason": null
13832
+ }
13833
+ ],
13834
+ "inputFields": null,
13835
+ "interfaces": [],
13836
+ "enumValues": null,
13837
+ "possibleTypes": null
13838
+ },
13839
+ {
13840
+ "kind": "ENUM",
13841
+ "name": "CreditGrantInvoiceBillingReason",
13842
+ "description": "The billing reason of a credit grant invoice",
13843
+ "fields": null,
13844
+ "inputFields": null,
13845
+ "interfaces": null,
13846
+ "enumValues": [
13847
+ {
13848
+ "name": "MANUAL",
13849
+ "description": "An invoice was created manually.",
13850
+ "isDeprecated": false,
13851
+ "deprecationReason": null
13852
+ },
13853
+ {
13854
+ "name": "OTHER",
13855
+ "description": "An invoice was created for another reason.",
13856
+ "isDeprecated": false,
13857
+ "deprecationReason": null
13858
+ }
13859
+ ],
13860
+ "possibleTypes": null
13861
+ },
13862
+ {
13863
+ "kind": "ENUM",
13864
+ "name": "CreditGrantInvoiceStatus",
13865
+ "description": "The status of a credit grant invoice",
13866
+ "fields": null,
13867
+ "inputFields": null,
13868
+ "interfaces": null,
13869
+ "enumValues": [
13870
+ {
13871
+ "name": "OPEN",
13872
+ "description": "Invoice is open and waiting for payment",
13873
+ "isDeprecated": false,
13874
+ "deprecationReason": null
13875
+ },
13876
+ {
13877
+ "name": "PAID",
13878
+ "description": "Invoice is paid",
13879
+ "isDeprecated": false,
13880
+ "deprecationReason": null
13881
+ }
13882
+ ],
13883
+ "possibleTypes": null
13884
+ },
13524
13885
  {
13525
13886
  "kind": "OBJECT",
13526
13887
  "name": "CreditGrantPreview",
@@ -13650,31 +14011,31 @@
13650
14011
  "enumValues": [
13651
14012
  {
13652
14013
  "name": "ACTIVE",
13653
- "description": null,
14014
+ "description": "Credit grant is active",
13654
14015
  "isDeprecated": false,
13655
14016
  "deprecationReason": null
13656
14017
  },
13657
14018
  {
13658
14019
  "name": "EXPIRED",
13659
- "description": null,
14020
+ "description": "Credit grant is expired",
13660
14021
  "isDeprecated": false,
13661
14022
  "deprecationReason": null
13662
14023
  },
13663
14024
  {
13664
14025
  "name": "PAYMENT_PENDING",
13665
- "description": null,
14026
+ "description": "Payment is pending",
13666
14027
  "isDeprecated": false,
13667
14028
  "deprecationReason": null
13668
14029
  },
13669
14030
  {
13670
14031
  "name": "SCHEDULED",
13671
- "description": null,
14032
+ "description": "Credit grant is scheduled",
13672
14033
  "isDeprecated": false,
13673
14034
  "deprecationReason": null
13674
14035
  },
13675
14036
  {
13676
14037
  "name": "VOIDED",
13677
- "description": null,
14038
+ "description": "Credit grant is voided",
13678
14039
  "isDeprecated": false,
13679
14040
  "deprecationReason": null
13680
14041
  }
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "5.56.0"
4
+ VERSION = "5.61.1"
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: 5.56.0
4
+ version: 5.61.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-11-30 00:00:00.000000000 Z
11
+ date: 2025-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient