stigg-api-client 0.567.0 → 0.569.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: 5cf52cf4e5e2cb3af336e7f932532e648afb6260b7deb1aca08820c4f5a16d6c
4
- data.tar.gz: 11f96ac0669d0e8162b668ab2a80a7a7d2ef2169195d87099c71951424ac7780
3
+ metadata.gz: b3d650269dc541ad8b98946c82a2dfa3ec3b9d6ca3af5e579e6c90fc6d4e471f
4
+ data.tar.gz: 04ce549271590a8225dd84e2be4226730398ed9cdfcbb68cc3d839ab602de45b
5
5
  SHA512:
6
- metadata.gz: 343753f451be12f0d3b4838e04a6b1a4d024fa2ff0bb8ad052ff372b25a00b40025f4b7c3285e242c637a023580ec1e8875a46ffcceb7ffd19d217e4dff83f00
7
- data.tar.gz: 07e7827b63113313a55859bb630073a9a18c043e473e10fd3a633b9bd6d9568ad48b847c64c4759a27f13448e1c37cf5b2560ac13f21877924eb547d49508d99
6
+ metadata.gz: 05f18fe05402ae9d6bbb4db5ccb468737ac37f8b41a4571547082d81e4c145ec759274ec4603c99f402de66d644e544028bc8a8ae87b3468d401e61bd03df06c
7
+ data.tar.gz: 74995f9dd57583cbeb124d403b8d7b647ae30f4a171950dd8f7e68be8fcc308cdd55d60ec1a23f77c1a43c42e47631931708555b6ae07059a496683ed4a30d5e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (0.567.0)
4
+ stigg-api-client (0.569.0)
5
5
  graphlient (~> 0.7.0)
6
6
 
7
7
  GEM
@@ -521,8 +521,44 @@ module Stigg
521
521
  }
522
522
  GRAPHQL
523
523
 
524
- SubscriptionPreviewV2Fragment = <<~GRAPHQL
525
- fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {
524
+ SubscriptionPreviewInvoiceFragment = <<~GRAPHQL
525
+ fragment SubscriptionPreviewInvoiceFragment on SubscriptionPreviewInvoice {
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
+ }
558
+ GRAPHQL
559
+
560
+ ImmediateSubscriptionPreviewInvoiceFragment = <<~GRAPHQL
561
+ fragment ImmediateSubscriptionPreviewInvoiceFragment on ImmediateSubscriptionPreviewInvoice {
526
562
  total {
527
563
  amount
528
564
  currency
@@ -583,44 +619,24 @@ module Stigg
583
619
  currency
584
620
  }
585
621
  }
622
+ }
623
+ GRAPHQL
624
+
625
+ SubscriptionPreviewV2Fragment = <<~GRAPHQL
626
+ fragment SubscriptionPreviewV2Fragment on SubscriptionPreviewV2 {
627
+ immediateInvoice {
628
+ ...ImmediateSubscriptionPreviewInvoiceFragment
629
+ }
586
630
 
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
- }
631
+ recurringInvoice {
632
+ ...SubscriptionPreviewInvoiceFragment
619
633
  }
634
+
620
635
  billingPeriodRange {
621
636
  start
622
637
  end
623
638
  }
639
+
624
640
  isPlanDowngrade
625
641
  hasScheduledUpdates
626
642
  }
@@ -1346,6 +1362,8 @@ module Stigg
1346
1362
  }
1347
1363
  }
1348
1364
  #{Fragment::SubscriptionPreviewV2Fragment}
1365
+ #{Fragment::ImmediateSubscriptionPreviewInvoiceFragment}
1366
+ #{Fragment::SubscriptionPreviewInvoiceFragment}
1349
1367
  GRAPHQL
1350
1368
 
1351
1369
  CancelSubscriptionUpdates = <<~GRAPHQL
@@ -2426,13 +2426,9 @@
2426
2426
  "name": "displayName",
2427
2427
  "description": null,
2428
2428
  "type": {
2429
- "kind": "NON_NULL",
2430
- "name": null,
2431
- "ofType": {
2432
- "kind": "SCALAR",
2433
- "name": "String",
2434
- "ofType": null
2435
- }
2429
+ "kind": "SCALAR",
2430
+ "name": "String",
2431
+ "ofType": null
2436
2432
  },
2437
2433
  "defaultValue": null,
2438
2434
  "isDeprecated": false,
@@ -27399,6 +27395,137 @@
27399
27395
  "enumValues": null,
27400
27396
  "possibleTypes": null
27401
27397
  },
27398
+ {
27399
+ "kind": "OBJECT",
27400
+ "name": "ImmediateSubscriptionPreviewInvoice",
27401
+ "description": null,
27402
+ "fields": [
27403
+ {
27404
+ "name": "credits",
27405
+ "description": null,
27406
+ "args": [],
27407
+ "type": {
27408
+ "kind": "OBJECT",
27409
+ "name": "SubscriptionPreviewCredits",
27410
+ "ofType": null
27411
+ },
27412
+ "isDeprecated": false,
27413
+ "deprecationReason": null
27414
+ },
27415
+ {
27416
+ "name": "discount",
27417
+ "description": null,
27418
+ "args": [],
27419
+ "type": {
27420
+ "kind": "OBJECT",
27421
+ "name": "Money",
27422
+ "ofType": null
27423
+ },
27424
+ "isDeprecated": false,
27425
+ "deprecationReason": null
27426
+ },
27427
+ {
27428
+ "name": "discountDetails",
27429
+ "description": null,
27430
+ "args": [],
27431
+ "type": {
27432
+ "kind": "OBJECT",
27433
+ "name": "SubscriptionPreviewDiscount",
27434
+ "ofType": null
27435
+ },
27436
+ "isDeprecated": false,
27437
+ "deprecationReason": null
27438
+ },
27439
+ {
27440
+ "name": "proration",
27441
+ "description": null,
27442
+ "args": [],
27443
+ "type": {
27444
+ "kind": "OBJECT",
27445
+ "name": "SubscriptionPreviewProrations",
27446
+ "ofType": null
27447
+ },
27448
+ "isDeprecated": false,
27449
+ "deprecationReason": null
27450
+ },
27451
+ {
27452
+ "name": "subTotal",
27453
+ "description": null,
27454
+ "args": [],
27455
+ "type": {
27456
+ "kind": "NON_NULL",
27457
+ "name": null,
27458
+ "ofType": {
27459
+ "kind": "OBJECT",
27460
+ "name": "Money",
27461
+ "ofType": null
27462
+ }
27463
+ },
27464
+ "isDeprecated": false,
27465
+ "deprecationReason": null
27466
+ },
27467
+ {
27468
+ "name": "tax",
27469
+ "description": null,
27470
+ "args": [],
27471
+ "type": {
27472
+ "kind": "OBJECT",
27473
+ "name": "Money",
27474
+ "ofType": null
27475
+ },
27476
+ "isDeprecated": false,
27477
+ "deprecationReason": null
27478
+ },
27479
+ {
27480
+ "name": "taxDetails",
27481
+ "description": null,
27482
+ "args": [],
27483
+ "type": {
27484
+ "kind": "OBJECT",
27485
+ "name": "SubscriptionPreviewTaxDetails",
27486
+ "ofType": null
27487
+ },
27488
+ "isDeprecated": false,
27489
+ "deprecationReason": null
27490
+ },
27491
+ {
27492
+ "name": "total",
27493
+ "description": null,
27494
+ "args": [],
27495
+ "type": {
27496
+ "kind": "NON_NULL",
27497
+ "name": null,
27498
+ "ofType": {
27499
+ "kind": "OBJECT",
27500
+ "name": "Money",
27501
+ "ofType": null
27502
+ }
27503
+ },
27504
+ "isDeprecated": false,
27505
+ "deprecationReason": null
27506
+ },
27507
+ {
27508
+ "name": "totalExcludingTax",
27509
+ "description": null,
27510
+ "args": [],
27511
+ "type": {
27512
+ "kind": "NON_NULL",
27513
+ "name": null,
27514
+ "ofType": {
27515
+ "kind": "OBJECT",
27516
+ "name": "Money",
27517
+ "ofType": null
27518
+ }
27519
+ },
27520
+ "isDeprecated": false,
27521
+ "deprecationReason": null
27522
+ }
27523
+ ],
27524
+ "inputFields": null,
27525
+ "interfaces": [],
27526
+ "enumValues": null,
27527
+ "possibleTypes": null
27528
+ },
27402
27529
  {
27403
27530
  "kind": "OBJECT",
27404
27531
  "name": "ImportAlreadyInProgressError",
@@ -51889,117 +52016,6 @@
51889
52016
  "enumValues": null,
51890
52017
  "possibleTypes": null
51891
52018
  },
51892
- {
51893
- "kind": "OBJECT",
51894
- "name": "RecurringSubscriptionPreview",
51895
- "description": null,
51896
- "fields": [
51897
- {
51898
- "name": "discount",
51899
- "description": null,
51900
- "args": [],
51901
- "type": {
51902
- "kind": "OBJECT",
51903
- "name": "Money",
51904
- "ofType": null
51905
- },
51906
- "isDeprecated": false,
51907
- "deprecationReason": null
51908
- },
51909
- {
51910
- "name": "discountDetails",
51911
- "description": null,
51912
- "args": [],
51913
- "type": {
51914
- "kind": "OBJECT",
51915
- "name": "SubscriptionPreviewDiscount",
51916
- "ofType": null
51917
- },
51918
- "isDeprecated": false,
51919
- "deprecationReason": null
51920
- },
51921
- {
51922
- "name": "subTotal",
51923
- "description": null,
51924
- "args": [],
51925
- "type": {
51926
- "kind": "NON_NULL",
51927
- "name": null,
51928
- "ofType": {
51929
- "kind": "OBJECT",
51930
- "name": "Money",
51931
- "ofType": null
51932
- }
51933
- },
51934
- "isDeprecated": false,
51935
- "deprecationReason": null
51936
- },
51937
- {
51938
- "name": "tax",
51939
- "description": null,
51940
- "args": [],
51941
- "type": {
51942
- "kind": "NON_NULL",
51943
- "name": null,
51944
- "ofType": {
51945
- "kind": "OBJECT",
51946
- "name": "Money",
51947
- "ofType": null
51948
- }
51949
- },
51950
- "isDeprecated": false,
51951
- "deprecationReason": null
51952
- },
51953
- {
51954
- "name": "taxDetails",
51955
- "description": null,
51956
- "args": [],
51957
- "type": {
51958
- "kind": "OBJECT",
51959
- "name": "SubscriptionPreviewTaxDetails",
51960
- "ofType": null
51961
- },
51962
- "isDeprecated": false,
51963
- "deprecationReason": null
51964
- },
51965
- {
51966
- "name": "total",
51967
- "description": null,
51968
- "args": [],
51969
- "type": {
51970
- "kind": "NON_NULL",
51971
- "name": null,
51972
- "ofType": {
51973
- "kind": "OBJECT",
51974
- "name": "Money",
51975
- "ofType": null
51976
- }
51977
- },
51978
- "isDeprecated": false,
51979
- "deprecationReason": null
51980
- },
51981
- {
51982
- "name": "totalExcludingTax",
51983
- "description": null,
51984
- "args": [],
51985
- "type": {
51986
- "kind": "NON_NULL",
51987
- "name": null,
51988
- "ofType": {
51989
- "kind": "OBJECT",
51990
- "name": "Money",
51991
- "ofType": null
51992
- }
51993
- },
51994
- "isDeprecated": false,
51995
- "deprecationReason": null
51996
- }
51997
- ],
51998
- "inputFields": null,
51999
- "interfaces": [],
52000
- "enumValues": null,
52001
- "possibleTypes": null
52002
- },
52003
52019
  {
52004
52020
  "kind": "INPUT_OBJECT",
52005
52021
  "name": "RemoveBasePlanFromPlanInput",
@@ -59357,6 +59373,113 @@
59357
59373
  "enumValues": null,
59358
59374
  "possibleTypes": null
59359
59375
  },
59376
+ {
59377
+ "kind": "OBJECT",
59378
+ "name": "SubscriptionPreviewInvoice",
59379
+ "description": null,
59380
+ "fields": [
59381
+ {
59382
+ "name": "discount",
59383
+ "description": null,
59384
+ "args": [],
59385
+ "type": {
59386
+ "kind": "OBJECT",
59387
+ "name": "Money",
59388
+ "ofType": null
59389
+ },
59390
+ "isDeprecated": false,
59391
+ "deprecationReason": null
59392
+ },
59393
+ {
59394
+ "name": "discountDetails",
59395
+ "description": null,
59396
+ "args": [],
59397
+ "type": {
59398
+ "kind": "OBJECT",
59399
+ "name": "SubscriptionPreviewDiscount",
59400
+ "ofType": null
59401
+ },
59402
+ "isDeprecated": false,
59403
+ "deprecationReason": null
59404
+ },
59405
+ {
59406
+ "name": "subTotal",
59407
+ "description": null,
59408
+ "args": [],
59409
+ "type": {
59410
+ "kind": "NON_NULL",
59411
+ "name": null,
59412
+ "ofType": {
59413
+ "kind": "OBJECT",
59414
+ "name": "Money",
59415
+ "ofType": null
59416
+ }
59417
+ },
59418
+ "isDeprecated": false,
59419
+ "deprecationReason": null
59420
+ },
59421
+ {
59422
+ "name": "tax",
59423
+ "description": null,
59424
+ "args": [],
59425
+ "type": {
59426
+ "kind": "OBJECT",
59427
+ "name": "Money",
59428
+ "ofType": null
59429
+ },
59430
+ "isDeprecated": false,
59431
+ "deprecationReason": null
59432
+ },
59433
+ {
59434
+ "name": "taxDetails",
59435
+ "description": null,
59436
+ "args": [],
59437
+ "type": {
59438
+ "kind": "OBJECT",
59439
+ "name": "SubscriptionPreviewTaxDetails",
59440
+ "ofType": null
59441
+ },
59442
+ "isDeprecated": false,
59443
+ "deprecationReason": null
59444
+ },
59445
+ {
59446
+ "name": "total",
59447
+ "description": null,
59448
+ "args": [],
59449
+ "type": {
59450
+ "kind": "NON_NULL",
59451
+ "name": null,
59452
+ "ofType": {
59453
+ "kind": "OBJECT",
59454
+ "name": "Money",
59455
+ "ofType": null
59456
+ }
59457
+ },
59458
+ "isDeprecated": false,
59459
+ "deprecationReason": null
59460
+ },
59461
+ {
59462
+ "name": "totalExcludingTax",
59463
+ "description": null,
59464
+ "args": [],
59465
+ "type": {
59466
+ "kind": "NON_NULL",
59467
+ "name": null,
59468
+ "ofType": {
59469
+ "kind": "OBJECT",
59470
+ "name": "Money",
59471
+ "ofType": null
59472
+ }
59473
+ },
59474
+ "isDeprecated": false,
59475
+ "deprecationReason": null
59476
+ }
59477
+ ],
59478
+ "inputFields": null,
59479
+ "interfaces": [],
59480
+ "enumValues": null,
59481
+ "possibleTypes": null
59482
+ },
59360
59483
  {
59361
59484
  "kind": "OBJECT",
59362
59485
  "name": "SubscriptionPreviewProrations",
@@ -59512,42 +59635,6 @@
59512
59635
  "isDeprecated": false,
59513
59636
  "deprecationReason": null
59514
59637
  },
59515
- {
59516
- "name": "credits",
59517
- "description": null,
59518
- "args": [],
59519
- "type": {
59520
- "kind": "OBJECT",
59521
- "name": "SubscriptionPreviewCredits",
59522
- "ofType": null
59523
- },
59524
- "isDeprecated": false,
59525
- "deprecationReason": null
59526
- },
59527
- {
59528
- "name": "discount",
59529
- "description": null,
59530
- "args": [],
59531
- "type": {
59532
- "kind": "OBJECT",
59533
- "name": "Money",
59534
- "ofType": null
59535
- },
59536
- "isDeprecated": false,
59537
- "deprecationReason": null
59538
- },
59539
- {
59540
- "name": "discountDetails",
59541
- "description": null,
59542
- "args": [],
59543
- "type": {
59544
- "kind": "OBJECT",
59545
- "name": "SubscriptionPreviewDiscount",
59546
- "ofType": null
59547
- },
59548
- "isDeprecated": false,
59549
- "deprecationReason": null
59550
- },
59551
59638
  {
59552
59639
  "name": "hasScheduledUpdates",
59553
59640
  "description": null,
@@ -59561,43 +59648,7 @@
59561
59648
  "deprecationReason": null
59562
59649
  },
59563
59650
  {
59564
- "name": "isPlanDowngrade",
59565
- "description": null,
59566
- "args": [],
59567
- "type": {
59568
- "kind": "SCALAR",
59569
- "name": "Boolean",
59570
- "ofType": null
59571
- },
59572
- "isDeprecated": false,
59573
- "deprecationReason": null
59574
- },
59575
- {
59576
- "name": "proration",
59577
- "description": null,
59578
- "args": [],
59579
- "type": {
59580
- "kind": "OBJECT",
59581
- "name": "SubscriptionPreviewProrations",
59582
- "ofType": null
59583
- },
59584
- "isDeprecated": false,
59585
- "deprecationReason": null
59586
- },
59587
- {
59588
- "name": "recurringSubscription",
59589
- "description": null,
59590
- "args": [],
59591
- "type": {
59592
- "kind": "OBJECT",
59593
- "name": "RecurringSubscriptionPreview",
59594
- "ofType": null
59595
- },
59596
- "isDeprecated": false,
59597
- "deprecationReason": null
59598
- },
59599
- {
59600
- "name": "subTotal",
59651
+ "name": "immediateInvoice",
59601
59652
  "description": null,
59602
59653
  "args": [],
59603
59654
  "type": {
@@ -59605,7 +59656,7 @@
59605
59656
  "name": null,
59606
59657
  "ofType": {
59607
59658
  "kind": "OBJECT",
59608
- "name": "Money",
59659
+ "name": "ImmediateSubscriptionPreviewInvoice",
59609
59660
  "ofType": null
59610
59661
  }
59611
59662
  },
@@ -59613,60 +59664,28 @@
59613
59664
  "deprecationReason": null
59614
59665
  },
59615
59666
  {
59616
- "name": "tax",
59667
+ "name": "isPlanDowngrade",
59617
59668
  "description": null,
59618
59669
  "args": [],
59619
59670
  "type": {
59620
- "kind": "OBJECT",
59621
- "name": "Money",
59671
+ "kind": "SCALAR",
59672
+ "name": "Boolean",
59622
59673
  "ofType": null
59623
59674
  },
59624
59675
  "isDeprecated": false,
59625
59676
  "deprecationReason": null
59626
59677
  },
59627
59678
  {
59628
- "name": "taxDetails",
59679
+ "name": "recurringInvoice",
59629
59680
  "description": null,
59630
59681
  "args": [],
59631
59682
  "type": {
59632
59683
  "kind": "OBJECT",
59633
- "name": "SubscriptionPreviewTaxDetails",
59684
+ "name": "SubscriptionPreviewInvoice",
59634
59685
  "ofType": null
59635
59686
  },
59636
59687
  "isDeprecated": false,
59637
59688
  "deprecationReason": null
59638
- },
59639
- {
59640
- "name": "total",
59641
- "description": null,
59642
- "args": [],
59643
- "type": {
59644
- "kind": "NON_NULL",
59645
- "name": null,
59646
- "ofType": {
59647
- "kind": "OBJECT",
59648
- "name": "Money",
59649
- "ofType": null
59650
- }
59651
- },
59652
- "isDeprecated": false,
59653
- "deprecationReason": null
59654
- },
59655
- {
59656
- "name": "totalExcludingTax",
59657
- "description": null,
59658
- "args": [],
59659
- "type": {
59660
- "kind": "NON_NULL",
59661
- "name": null,
59662
- "ofType": {
59663
- "kind": "OBJECT",
59664
- "name": "Money",
59665
- "ofType": null
59666
- }
59667
- },
59668
- "isDeprecated": false,
59669
- "deprecationReason": null
59670
59689
  }
59671
59690
  ],
59672
59691
  "inputFields": 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.567.0"
4
+ VERSION = "0.569.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.567.0
4
+ version: 0.569.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-12 00:00:00.000000000 Z
11
+ date: 2023-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient