stigg-api-client 0.568.0 → 0.569.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d4a68906bfc61863e4b41d58c0abfb310f40494113ea0274872c4ae09e78a3f
4
- data.tar.gz: e78596fde27c15f7745292f98b8fe4f47080e5b228d60dd5e0fa5ff2dc652400
3
+ metadata.gz: b3d650269dc541ad8b98946c82a2dfa3ec3b9d6ca3af5e579e6c90fc6d4e471f
4
+ data.tar.gz: 04ce549271590a8225dd84e2be4226730398ed9cdfcbb68cc3d839ab602de45b
5
5
  SHA512:
6
- metadata.gz: f1d01f77418704d508e8ec40c132ff7d74e3a899d2f4c103956b2c69aca5b2f6b857dc712fe6206a209472eeb857a768b20b92c4b12d17ae23ad2ab7a3e38976
7
- data.tar.gz: a7756ccc3deff9f579addbe2a8db36d55e5548d67f4b4181766327a67aa98cfa0f3f9cf60ae843211b83696a4f00ac34c423b17f0bdf8fc43cb3e7ad13fd9cb7
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.568.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
@@ -27395,6 +27395,137 @@
27395
27395
  "enumValues": null,
27396
27396
  "possibleTypes": null
27397
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
+ },
27398
27529
  {
27399
27530
  "kind": "OBJECT",
27400
27531
  "name": "ImportAlreadyInProgressError",
@@ -51885,117 +52016,6 @@
51885
52016
  "enumValues": null,
51886
52017
  "possibleTypes": null
51887
52018
  },
51888
- {
51889
- "kind": "OBJECT",
51890
- "name": "RecurringSubscriptionPreview",
51891
- "description": null,
51892
- "fields": [
51893
- {
51894
- "name": "discount",
51895
- "description": null,
51896
- "args": [],
51897
- "type": {
51898
- "kind": "OBJECT",
51899
- "name": "Money",
51900
- "ofType": null
51901
- },
51902
- "isDeprecated": false,
51903
- "deprecationReason": null
51904
- },
51905
- {
51906
- "name": "discountDetails",
51907
- "description": null,
51908
- "args": [],
51909
- "type": {
51910
- "kind": "OBJECT",
51911
- "name": "SubscriptionPreviewDiscount",
51912
- "ofType": null
51913
- },
51914
- "isDeprecated": false,
51915
- "deprecationReason": null
51916
- },
51917
- {
51918
- "name": "subTotal",
51919
- "description": null,
51920
- "args": [],
51921
- "type": {
51922
- "kind": "NON_NULL",
51923
- "name": null,
51924
- "ofType": {
51925
- "kind": "OBJECT",
51926
- "name": "Money",
51927
- "ofType": null
51928
- }
51929
- },
51930
- "isDeprecated": false,
51931
- "deprecationReason": null
51932
- },
51933
- {
51934
- "name": "tax",
51935
- "description": null,
51936
- "args": [],
51937
- "type": {
51938
- "kind": "NON_NULL",
51939
- "name": null,
51940
- "ofType": {
51941
- "kind": "OBJECT",
51942
- "name": "Money",
51943
- "ofType": null
51944
- }
51945
- },
51946
- "isDeprecated": false,
51947
- "deprecationReason": null
51948
- },
51949
- {
51950
- "name": "taxDetails",
51951
- "description": null,
51952
- "args": [],
51953
- "type": {
51954
- "kind": "OBJECT",
51955
- "name": "SubscriptionPreviewTaxDetails",
51956
- "ofType": null
51957
- },
51958
- "isDeprecated": false,
51959
- "deprecationReason": null
51960
- },
51961
- {
51962
- "name": "total",
51963
- "description": null,
51964
- "args": [],
51965
- "type": {
51966
- "kind": "NON_NULL",
51967
- "name": null,
51968
- "ofType": {
51969
- "kind": "OBJECT",
51970
- "name": "Money",
51971
- "ofType": null
51972
- }
51973
- },
51974
- "isDeprecated": false,
51975
- "deprecationReason": null
51976
- },
51977
- {
51978
- "name": "totalExcludingTax",
51979
- "description": null,
51980
- "args": [],
51981
- "type": {
51982
- "kind": "NON_NULL",
51983
- "name": null,
51984
- "ofType": {
51985
- "kind": "OBJECT",
51986
- "name": "Money",
51987
- "ofType": null
51988
- }
51989
- },
51990
- "isDeprecated": false,
51991
- "deprecationReason": null
51992
- }
51993
- ],
51994
- "inputFields": null,
51995
- "interfaces": [],
51996
- "enumValues": null,
51997
- "possibleTypes": null
51998
- },
51999
52019
  {
52000
52020
  "kind": "INPUT_OBJECT",
52001
52021
  "name": "RemoveBasePlanFromPlanInput",
@@ -59353,6 +59373,113 @@
59353
59373
  "enumValues": null,
59354
59374
  "possibleTypes": null
59355
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
+ },
59356
59483
  {
59357
59484
  "kind": "OBJECT",
59358
59485
  "name": "SubscriptionPreviewProrations",
@@ -59508,42 +59635,6 @@
59508
59635
  "isDeprecated": false,
59509
59636
  "deprecationReason": null
59510
59637
  },
59511
- {
59512
- "name": "credits",
59513
- "description": null,
59514
- "args": [],
59515
- "type": {
59516
- "kind": "OBJECT",
59517
- "name": "SubscriptionPreviewCredits",
59518
- "ofType": null
59519
- },
59520
- "isDeprecated": false,
59521
- "deprecationReason": null
59522
- },
59523
- {
59524
- "name": "discount",
59525
- "description": null,
59526
- "args": [],
59527
- "type": {
59528
- "kind": "OBJECT",
59529
- "name": "Money",
59530
- "ofType": null
59531
- },
59532
- "isDeprecated": false,
59533
- "deprecationReason": null
59534
- },
59535
- {
59536
- "name": "discountDetails",
59537
- "description": null,
59538
- "args": [],
59539
- "type": {
59540
- "kind": "OBJECT",
59541
- "name": "SubscriptionPreviewDiscount",
59542
- "ofType": null
59543
- },
59544
- "isDeprecated": false,
59545
- "deprecationReason": null
59546
- },
59547
59638
  {
59548
59639
  "name": "hasScheduledUpdates",
59549
59640
  "description": null,
@@ -59557,43 +59648,7 @@
59557
59648
  "deprecationReason": null
59558
59649
  },
59559
59650
  {
59560
- "name": "isPlanDowngrade",
59561
- "description": null,
59562
- "args": [],
59563
- "type": {
59564
- "kind": "SCALAR",
59565
- "name": "Boolean",
59566
- "ofType": null
59567
- },
59568
- "isDeprecated": false,
59569
- "deprecationReason": null
59570
- },
59571
- {
59572
- "name": "proration",
59573
- "description": null,
59574
- "args": [],
59575
- "type": {
59576
- "kind": "OBJECT",
59577
- "name": "SubscriptionPreviewProrations",
59578
- "ofType": null
59579
- },
59580
- "isDeprecated": false,
59581
- "deprecationReason": null
59582
- },
59583
- {
59584
- "name": "recurringSubscription",
59585
- "description": null,
59586
- "args": [],
59587
- "type": {
59588
- "kind": "OBJECT",
59589
- "name": "RecurringSubscriptionPreview",
59590
- "ofType": null
59591
- },
59592
- "isDeprecated": false,
59593
- "deprecationReason": null
59594
- },
59595
- {
59596
- "name": "subTotal",
59651
+ "name": "immediateInvoice",
59597
59652
  "description": null,
59598
59653
  "args": [],
59599
59654
  "type": {
@@ -59601,7 +59656,7 @@
59601
59656
  "name": null,
59602
59657
  "ofType": {
59603
59658
  "kind": "OBJECT",
59604
- "name": "Money",
59659
+ "name": "ImmediateSubscriptionPreviewInvoice",
59605
59660
  "ofType": null
59606
59661
  }
59607
59662
  },
@@ -59609,60 +59664,28 @@
59609
59664
  "deprecationReason": null
59610
59665
  },
59611
59666
  {
59612
- "name": "tax",
59667
+ "name": "isPlanDowngrade",
59613
59668
  "description": null,
59614
59669
  "args": [],
59615
59670
  "type": {
59616
- "kind": "OBJECT",
59617
- "name": "Money",
59671
+ "kind": "SCALAR",
59672
+ "name": "Boolean",
59618
59673
  "ofType": null
59619
59674
  },
59620
59675
  "isDeprecated": false,
59621
59676
  "deprecationReason": null
59622
59677
  },
59623
59678
  {
59624
- "name": "taxDetails",
59679
+ "name": "recurringInvoice",
59625
59680
  "description": null,
59626
59681
  "args": [],
59627
59682
  "type": {
59628
59683
  "kind": "OBJECT",
59629
- "name": "SubscriptionPreviewTaxDetails",
59684
+ "name": "SubscriptionPreviewInvoice",
59630
59685
  "ofType": null
59631
59686
  },
59632
59687
  "isDeprecated": false,
59633
59688
  "deprecationReason": null
59634
- },
59635
- {
59636
- "name": "total",
59637
- "description": null,
59638
- "args": [],
59639
- "type": {
59640
- "kind": "NON_NULL",
59641
- "name": null,
59642
- "ofType": {
59643
- "kind": "OBJECT",
59644
- "name": "Money",
59645
- "ofType": null
59646
- }
59647
- },
59648
- "isDeprecated": false,
59649
- "deprecationReason": null
59650
- },
59651
- {
59652
- "name": "totalExcludingTax",
59653
- "description": null,
59654
- "args": [],
59655
- "type": {
59656
- "kind": "NON_NULL",
59657
- "name": null,
59658
- "ofType": {
59659
- "kind": "OBJECT",
59660
- "name": "Money",
59661
- "ofType": null
59662
- }
59663
- },
59664
- "isDeprecated": false,
59665
- "deprecationReason": null
59666
59689
  }
59667
59690
  ],
59668
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.568.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.568.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-13 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