stigg-api-client 0.557.0 → 0.566.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: 2b3344c66c09d45666219a0a6d118f86eadfaee676e2f50a59ae3ae6a952592d
4
- data.tar.gz: 2979c383e270e89fc1f3351a1b2d2f9f9d5dcdbe25b905c80f0b208f42dd7557
3
+ metadata.gz: 67dd961cd415d170e05217c8b04150b16447a6ac400b92a1ff16ae95a9f8bbb1
4
+ data.tar.gz: d0a19d102ebe34f825c8e6b01d2d6e4602e73f901d008b0157140738d5219a99
5
5
  SHA512:
6
- metadata.gz: e5e8746a73482fc693f7d3ee167787fd58350664f5a163449449b43750ee6dc07d20d3355560b2d81dedda849a05a0a253caf0fa0f6b793550304c7d6fe8943a
7
- data.tar.gz: 5c751d690e7a369530841560ecc7f46473d4ec8397b6281e68a34b1546f5b3fcd0152fa6f7001d5a90a65b2e4b2181f5f0f38a13a75f47bb54b84d218a981636
6
+ metadata.gz: 489d8364458f13ef9c10d8b3e39e05f67b06086aa44561697ffa85dddd33af90fe32516d258f6753d144da83efb78f97f7f55d9d9ec11b55fc8073b6d08a5f1a
7
+ data.tar.gz: 7008db99340ce5ef4f8dbb7be3e7baefe53ba59bbedc17a20f8fda079d1373db7cbb87d42208a44a6669d819e68f07bf6e9e729c3eafa7fb14ba94560a0f2a9a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (0.557.0)
4
+ stigg-api-client (0.566.0)
5
5
  graphlient (~> 0.7.0)
6
6
 
7
7
  GEM
@@ -431,6 +431,10 @@ module Stigg
431
431
  amount
432
432
  currency
433
433
  }
434
+ discountAmount {
435
+ amount
436
+ currency
437
+ }
434
438
  taxDetails {
435
439
  displayName
436
440
  percentage
@@ -467,6 +471,21 @@ module Stigg
467
471
  amount
468
472
  currency
469
473
  }
474
+ discountAmount {
475
+ amount
476
+ currency
477
+ }
478
+ taxDetails {
479
+ displayName
480
+ percentage
481
+ inclusive
482
+ }
483
+ discount {
484
+ type
485
+ value
486
+ durationType
487
+ durationInMonths
488
+ }
470
489
  }
471
490
  proration {
472
491
  prorationDate
@@ -502,6 +521,111 @@ module Stigg
502
521
  }
503
522
  GRAPHQL
504
523
 
524
+ SubscriptionPreviewV2Fragment = <<~GRAPHQL
525
+ fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {
526
+ total {
527
+ amount
528
+ currency
529
+ }
530
+ subTotal {
531
+ amount
532
+ currency
533
+ }
534
+ totalExcludingTax {
535
+ amount
536
+ currency
537
+ }
538
+ tax {
539
+ amount
540
+ currency
541
+ }
542
+ discount {
543
+ amount
544
+ currency
545
+ }
546
+ taxDetails {
547
+ displayName
548
+ percentage
549
+ inclusive
550
+ }
551
+ discountDetails {
552
+ type
553
+ value
554
+ durationType
555
+ durationInMonths
556
+ }
557
+ credits {
558
+ initial {
559
+ amount
560
+ currency
561
+ }
562
+ used {
563
+ amount
564
+ currency
565
+ }
566
+ remaining {
567
+ amount
568
+ currency
569
+ }
570
+ }
571
+ proration {
572
+ prorationDate
573
+ credit {
574
+ amount
575
+ currency
576
+ }
577
+ debit {
578
+ amount
579
+ currency
580
+ }
581
+ netAmount {
582
+ amount
583
+ currency
584
+ }
585
+ }
586
+
587
+ recurringSubscription {
588
+ subTotal {
589
+ amount
590
+ currency
591
+ }
592
+ totalExcludingTax {
593
+ amount
594
+ currency
595
+ }
596
+ total {
597
+ amount
598
+ currency
599
+ }
600
+ tax {
601
+ amount
602
+ currency
603
+ }
604
+ discount {
605
+ amount
606
+ currency
607
+ }
608
+ taxDetails {
609
+ displayName
610
+ percentage
611
+ inclusive
612
+ }
613
+ discountDetails {
614
+ type
615
+ value
616
+ durationType
617
+ durationInMonths
618
+ }
619
+ }
620
+ billingPeriodRange {
621
+ start
622
+ end
623
+ }
624
+ isPlanDowngrade
625
+ hasScheduledUpdates
626
+ }
627
+ GRAPHQL
628
+
505
629
  FeatureFragment = <<~GRAPHQL
506
630
  fragment FeatureFragment on EntitlementFeature {
507
631
  featureType
@@ -1218,10 +1342,10 @@ module Stigg
1218
1342
  PreviewSubscription = <<~GRAPHQL
1219
1343
  mutation ($input: PreviewSubscriptionInput!) {
1220
1344
  previewSubscription(input: $input) {
1221
- ...SubscriptionPreviewFragment
1345
+ ...SubscriptionPreviewV2Fragment
1222
1346
  }
1223
1347
  }
1224
- #{Fragment::SubscriptionPreviewFragment}
1348
+ #{Fragment::SubscriptionPreviewV2Fragment}
1225
1349
  GRAPHQL
1226
1350
 
1227
1351
  CancelSubscriptionUpdates = <<~GRAPHQL
@@ -33338,7 +33338,7 @@
33338
33338
  "name": null,
33339
33339
  "ofType": {
33340
33340
  "kind": "OBJECT",
33341
- "name": "SubscriptionPreview",
33341
+ "name": "SubscriptionPreviewV2",
33342
33342
  "ofType": null
33343
33343
  }
33344
33344
  },
@@ -51856,6 +51856,117 @@
51856
51856
  "enumValues": null,
51857
51857
  "possibleTypes": null
51858
51858
  },
51859
+ {
51860
+ "kind": "OBJECT",
51861
+ "name": "RecurringSubscriptionPreview",
51862
+ "description": null,
51863
+ "fields": [
51864
+ {
51865
+ "name": "discount",
51866
+ "description": null,
51867
+ "args": [],
51868
+ "type": {
51869
+ "kind": "OBJECT",
51870
+ "name": "Money",
51871
+ "ofType": null
51872
+ },
51873
+ "isDeprecated": false,
51874
+ "deprecationReason": null
51875
+ },
51876
+ {
51877
+ "name": "discountDetails",
51878
+ "description": null,
51879
+ "args": [],
51880
+ "type": {
51881
+ "kind": "OBJECT",
51882
+ "name": "SubscriptionPreviewDiscount",
51883
+ "ofType": null
51884
+ },
51885
+ "isDeprecated": false,
51886
+ "deprecationReason": null
51887
+ },
51888
+ {
51889
+ "name": "subTotal",
51890
+ "description": null,
51891
+ "args": [],
51892
+ "type": {
51893
+ "kind": "NON_NULL",
51894
+ "name": null,
51895
+ "ofType": {
51896
+ "kind": "OBJECT",
51897
+ "name": "Money",
51898
+ "ofType": null
51899
+ }
51900
+ },
51901
+ "isDeprecated": false,
51902
+ "deprecationReason": null
51903
+ },
51904
+ {
51905
+ "name": "tax",
51906
+ "description": null,
51907
+ "args": [],
51908
+ "type": {
51909
+ "kind": "NON_NULL",
51910
+ "name": null,
51911
+ "ofType": {
51912
+ "kind": "OBJECT",
51913
+ "name": "Money",
51914
+ "ofType": null
51915
+ }
51916
+ },
51917
+ "isDeprecated": false,
51918
+ "deprecationReason": null
51919
+ },
51920
+ {
51921
+ "name": "taxDetails",
51922
+ "description": null,
51923
+ "args": [],
51924
+ "type": {
51925
+ "kind": "OBJECT",
51926
+ "name": "SubscriptionPreviewTaxDetails",
51927
+ "ofType": null
51928
+ },
51929
+ "isDeprecated": false,
51930
+ "deprecationReason": null
51931
+ },
51932
+ {
51933
+ "name": "total",
51934
+ "description": null,
51935
+ "args": [],
51936
+ "type": {
51937
+ "kind": "NON_NULL",
51938
+ "name": null,
51939
+ "ofType": {
51940
+ "kind": "OBJECT",
51941
+ "name": "Money",
51942
+ "ofType": null
51943
+ }
51944
+ },
51945
+ "isDeprecated": false,
51946
+ "deprecationReason": null
51947
+ },
51948
+ {
51949
+ "name": "totalExcludingTax",
51950
+ "description": null,
51951
+ "args": [],
51952
+ "type": {
51953
+ "kind": "NON_NULL",
51954
+ "name": null,
51955
+ "ofType": {
51956
+ "kind": "OBJECT",
51957
+ "name": "Money",
51958
+ "ofType": null
51959
+ }
51960
+ },
51961
+ "isDeprecated": false,
51962
+ "deprecationReason": null
51963
+ }
51964
+ ],
51965
+ "inputFields": null,
51966
+ "interfaces": [],
51967
+ "enumValues": null,
51968
+ "possibleTypes": null
51969
+ },
51859
51970
  {
51860
51971
  "kind": "INPUT_OBJECT",
51861
51972
  "name": "RemoveBasePlanFromPlanInput",
@@ -55400,6 +55511,18 @@
55400
55511
  "isDeprecated": false,
55401
55512
  "deprecationReason": null
55402
55513
  },
55514
+ {
55515
+ "name": "metadata",
55516
+ "description": null,
55517
+ "type": {
55518
+ "kind": "SCALAR",
55519
+ "name": "JSON",
55520
+ "ofType": null
55521
+ },
55522
+ "defaultValue": null,
55523
+ "isDeprecated": false,
55524
+ "deprecationReason": null
55525
+ },
55403
55526
  {
55404
55527
  "name": "taxPercentage",
55405
55528
  "description": null,
@@ -58927,7 +59050,19 @@
58927
59050
  "args": [],
58928
59051
  "type": {
58929
59052
  "kind": "OBJECT",
58930
- "name": "SubscriptionPreviewDiscountDTO",
59053
+ "name": "SubscriptionPreviewDiscount",
59054
+ "ofType": null
59055
+ },
59056
+ "isDeprecated": false,
59057
+ "deprecationReason": null
59058
+ },
59059
+ {
59060
+ "name": "discountAmount",
59061
+ "description": null,
59062
+ "args": [],
59063
+ "type": {
59064
+ "kind": "OBJECT",
59065
+ "name": "Money",
58931
59066
  "ofType": null
58932
59067
  },
58933
59068
  "isDeprecated": false,
@@ -59120,7 +59255,7 @@
59120
59255
  },
59121
59256
  {
59122
59257
  "kind": "OBJECT",
59123
- "name": "SubscriptionPreviewDiscountDTO",
59258
+ "name": "SubscriptionPreviewDiscount",
59124
59259
  "description": null,
59125
59260
  "fields": [
59126
59261
  {
@@ -59323,6 +59458,189 @@
59323
59458
  "enumValues": null,
59324
59459
  "possibleTypes": null
59325
59460
  },
59461
+ {
59462
+ "kind": "OBJECT",
59463
+ "name": "SubscriptionPreviewV2",
59464
+ "description": null,
59465
+ "fields": [
59466
+ {
59467
+ "name": "billingPeriodRange",
59468
+ "description": null,
59469
+ "args": [],
59470
+ "type": {
59471
+ "kind": "NON_NULL",
59472
+ "name": null,
59473
+ "ofType": {
59474
+ "kind": "OBJECT",
59475
+ "name": "DateRange",
59476
+ "ofType": null
59477
+ }
59478
+ },
59479
+ "isDeprecated": false,
59480
+ "deprecationReason": null
59481
+ },
59482
+ {
59483
+ "name": "credits",
59484
+ "description": null,
59485
+ "args": [],
59486
+ "type": {
59487
+ "kind": "OBJECT",
59488
+ "name": "SubscriptionPreviewCredits",
59489
+ "ofType": null
59490
+ },
59491
+ "isDeprecated": false,
59492
+ "deprecationReason": null
59493
+ },
59494
+ {
59495
+ "name": "discount",
59496
+ "description": null,
59497
+ "args": [],
59498
+ "type": {
59499
+ "kind": "OBJECT",
59500
+ "name": "Money",
59501
+ "ofType": null
59502
+ },
59503
+ "isDeprecated": false,
59504
+ "deprecationReason": null
59505
+ },
59506
+ {
59507
+ "name": "discountDetails",
59508
+ "description": null,
59509
+ "args": [],
59510
+ "type": {
59511
+ "kind": "OBJECT",
59512
+ "name": "SubscriptionPreviewDiscount",
59513
+ "ofType": null
59514
+ },
59515
+ "isDeprecated": false,
59516
+ "deprecationReason": null
59517
+ },
59518
+ {
59519
+ "name": "hasScheduledUpdates",
59520
+ "description": null,
59521
+ "args": [],
59522
+ "type": {
59523
+ "kind": "SCALAR",
59524
+ "name": "Boolean",
59525
+ "ofType": null
59526
+ },
59527
+ "isDeprecated": false,
59528
+ "deprecationReason": null
59529
+ },
59530
+ {
59531
+ "name": "isPlanDowngrade",
59532
+ "description": null,
59533
+ "args": [],
59534
+ "type": {
59535
+ "kind": "SCALAR",
59536
+ "name": "Boolean",
59537
+ "ofType": null
59538
+ },
59539
+ "isDeprecated": false,
59540
+ "deprecationReason": null
59541
+ },
59542
+ {
59543
+ "name": "proration",
59544
+ "description": null,
59545
+ "args": [],
59546
+ "type": {
59547
+ "kind": "OBJECT",
59548
+ "name": "SubscriptionPreviewProrations",
59549
+ "ofType": null
59550
+ },
59551
+ "isDeprecated": false,
59552
+ "deprecationReason": null
59553
+ },
59554
+ {
59555
+ "name": "recurringSubscription",
59556
+ "description": null,
59557
+ "args": [],
59558
+ "type": {
59559
+ "kind": "OBJECT",
59560
+ "name": "RecurringSubscriptionPreview",
59561
+ "ofType": null
59562
+ },
59563
+ "isDeprecated": false,
59564
+ "deprecationReason": null
59565
+ },
59566
+ {
59567
+ "name": "subTotal",
59568
+ "description": null,
59569
+ "args": [],
59570
+ "type": {
59571
+ "kind": "NON_NULL",
59572
+ "name": null,
59573
+ "ofType": {
59574
+ "kind": "OBJECT",
59575
+ "name": "Money",
59576
+ "ofType": null
59577
+ }
59578
+ },
59579
+ "isDeprecated": false,
59580
+ "deprecationReason": null
59581
+ },
59582
+ {
59583
+ "name": "tax",
59584
+ "description": null,
59585
+ "args": [],
59586
+ "type": {
59587
+ "kind": "OBJECT",
59588
+ "name": "Money",
59589
+ "ofType": null
59590
+ },
59591
+ "isDeprecated": false,
59592
+ "deprecationReason": null
59593
+ },
59594
+ {
59595
+ "name": "taxDetails",
59596
+ "description": null,
59597
+ "args": [],
59598
+ "type": {
59599
+ "kind": "OBJECT",
59600
+ "name": "SubscriptionPreviewTaxDetails",
59601
+ "ofType": null
59602
+ },
59603
+ "isDeprecated": false,
59604
+ "deprecationReason": null
59605
+ },
59606
+ {
59607
+ "name": "total",
59608
+ "description": null,
59609
+ "args": [],
59610
+ "type": {
59611
+ "kind": "NON_NULL",
59612
+ "name": null,
59613
+ "ofType": {
59614
+ "kind": "OBJECT",
59615
+ "name": "Money",
59616
+ "ofType": null
59617
+ }
59618
+ },
59619
+ "isDeprecated": false,
59620
+ "deprecationReason": null
59621
+ },
59622
+ {
59623
+ "name": "totalExcludingTax",
59624
+ "description": null,
59625
+ "args": [],
59626
+ "type": {
59627
+ "kind": "NON_NULL",
59628
+ "name": null,
59629
+ "ofType": {
59630
+ "kind": "OBJECT",
59631
+ "name": "Money",
59632
+ "ofType": null
59633
+ }
59634
+ },
59635
+ "isDeprecated": false,
59636
+ "deprecationReason": null
59637
+ }
59638
+ ],
59639
+ "inputFields": null,
59640
+ "interfaces": [],
59641
+ "enumValues": null,
59642
+ "possibleTypes": null
59643
+ },
59326
59644
  {
59327
59645
  "kind": "OBJECT",
59328
59646
  "name": "SubscriptionPrice",
@@ -60394,6 +60712,30 @@
60394
60712
  "name": "SubscriptionPricePreviewDTO",
60395
60713
  "description": null,
60396
60714
  "fields": [
60715
+ {
60716
+ "name": "discount",
60717
+ "description": null,
60718
+ "args": [],
60719
+ "type": {
60720
+ "kind": "OBJECT",
60721
+ "name": "SubscriptionPreviewDiscount",
60722
+ "ofType": null
60723
+ },
60724
+ "isDeprecated": false,
60725
+ "deprecationReason": null
60726
+ },
60727
+ {
60728
+ "name": "discountAmount",
60729
+ "description": null,
60730
+ "args": [],
60731
+ "type": {
60732
+ "kind": "OBJECT",
60733
+ "name": "Money",
60734
+ "ofType": null
60735
+ },
60736
+ "isDeprecated": false,
60737
+ "deprecationReason": null
60738
+ },
60397
60739
  {
60398
60740
  "name": "subTotal",
60399
60741
  "description": null,
@@ -60426,6 +60768,18 @@
60426
60768
  "isDeprecated": false,
60427
60769
  "deprecationReason": null
60428
60770
  },
60771
+ {
60772
+ "name": "taxDetails",
60773
+ "description": null,
60774
+ "args": [],
60775
+ "type": {
60776
+ "kind": "OBJECT",
60777
+ "name": "SubscriptionPreviewTaxDetails",
60778
+ "ofType": null
60779
+ },
60780
+ "isDeprecated": false,
60781
+ "deprecationReason": null
60782
+ },
60429
60783
  {
60430
60784
  "name": "total",
60431
60785
  "description": null,
@@ -64224,6 +64578,18 @@
64224
64578
  "isDeprecated": false,
64225
64579
  "deprecationReason": null
64226
64580
  },
64581
+ {
64582
+ "name": "billingInformation",
64583
+ "description": null,
64584
+ "type": {
64585
+ "kind": "INPUT_OBJECT",
64586
+ "name": "SubscriptionBillingInfo",
64587
+ "ofType": null
64588
+ },
64589
+ "defaultValue": null,
64590
+ "isDeprecated": false,
64591
+ "deprecationReason": null
64592
+ },
64227
64593
  {
64228
64594
  "name": "billingPeriod",
64229
64595
  "description": null,
data/lib/stigg/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stigg
4
- VERSION = "0.557.0"
4
+ VERSION = "0.566.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: 0.557.0
4
+ version: 0.566.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-07 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient