stigg-api-client 0.551.1 → 0.554.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: 76a4ec6a12ccedca74a6889b5a097b13773eaaee4d3dff3584e82d2bdb1cf32a
4
- data.tar.gz: 030ef6e08d1263f4cc2e0240d3dc93e1daebc8c6cdbfd0f657513feb0a5a50b7
3
+ metadata.gz: e49e26ed292d8bd9105e7f8fa866e00caea5b9caddc738707c46f06673ca1f0f
4
+ data.tar.gz: 267c8bf78d7be5ee86360500dd609eead11803e80c73971ab960fe79dcacacab
5
5
  SHA512:
6
- metadata.gz: 4e60a9129082a95437f4fda57dfea860ed12bab4db97e8cdaaedf514db7dd7dc7306c2a4c868dd1f8252faa87e349865f472f14e0f3fc9a1a75a592476506c0c
7
- data.tar.gz: df2d2511cac3a98b78a5ad78fac2773a570e5fc3b002b9d7ddfa2f7ffcfe6d4857f44370bd1d32cca77ae682f797850808930ff413da6ee711ae8acc944a4ba9
6
+ metadata.gz: ff1dee687047cb3a38b26433398511b6857470ba9b2b93b82c8e60edeecd2acf9055d6d10579985c17a713541a7546ec3afbf619a39947487bfdc84924cae108
7
+ data.tar.gz: '03288955984216597452d3bc33b15bec80e41b98a1ce58e532a0e1029ccf41815fc46bc331f1e40d222a111a26b99ab8fcf3e2965c498905d624623326bb365a'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (0.551.1)
4
+ stigg-api-client (0.554.0)
5
5
  graphlient (~> 0.7.0)
6
6
 
7
7
  GEM
@@ -15,7 +15,6 @@ module Stigg
15
15
  updatedAt
16
16
  billingId
17
17
  billingLinkUrl
18
- type
19
18
  status
20
19
  syncStates {
21
20
  vendorIdentifier
@@ -486,6 +485,20 @@ module Stigg
486
485
  }
487
486
  isPlanDowngrade
488
487
  hasScheduledUpdates
488
+ credits {
489
+ initial {
490
+ amount
491
+ currency
492
+ }
493
+ used {
494
+ amount
495
+ currency
496
+ }
497
+ remaining {
498
+ amount
499
+ currency
500
+ }
501
+ }
489
502
  }
490
503
  GRAPHQL
491
504
 
@@ -546,82 +559,6 @@ module Stigg
546
559
  }
547
560
  GRAPHQL
548
561
 
549
- PaywallPackageEntitlementFragment = <<~GRAPHQL
550
- fragment PaywallPackageEntitlementFragment on PackageEntitlement {
551
- usageLimit
552
- hasUnlimitedUsage
553
- featureId
554
- resetPeriod
555
- hiddenFromWidgets
556
- displayNameOverride
557
- feature {
558
- featureType
559
- meterType
560
- featureUnits
561
- featureUnitsPlural
562
- displayName
563
- description
564
- refId
565
- additionalMetaData
566
- }
567
- }
568
- GRAPHQL
569
-
570
- PaywallAddonFragment = <<~GRAPHQL
571
- fragment PaywallAddonFragment on Addon {
572
- id
573
- refId
574
- billingId
575
- displayName
576
- description
577
- additionalMetaData
578
- billingId
579
- entitlements {
580
- ...PaywallPackageEntitlementFragment
581
- }
582
- prices {
583
- ...PriceFragment
584
- }
585
- additionalMetaData
586
- pricingType
587
- }
588
- GRAPHQL
589
-
590
- PaywallPlanFragment = <<~GRAPHQL
591
- fragment PaywallPlanFragment on Plan {
592
- id
593
- refId
594
- description
595
- displayName
596
- billingId
597
- product {
598
- ...ProductFragment
599
- }
600
- basePlan {
601
- refId
602
- displayName
603
- }
604
- entitlements {
605
- ...PaywallPackageEntitlementFragment
606
- }
607
- additionalMetaData
608
- inheritedEntitlements {
609
- ...PaywallPackageEntitlementFragment
610
- }
611
- prices {
612
- ...PriceFragment
613
- }
614
- pricingType
615
- defaultTrialConfig {
616
- duration
617
- units
618
- }
619
- compatibleAddons {
620
- ...PaywallAddonFragment
621
- }
622
- }
623
- GRAPHQL
624
-
625
562
  TypographyConfigurationFragment = <<~GRAPHQL
626
563
  fragment TypographyConfigurationFragment on TypographyConfiguration {
627
564
  fontFamily
@@ -675,8 +612,8 @@ module Stigg
675
612
  }
676
613
  GRAPHQL
677
614
 
678
- PaywallCurrency = <<~GRAPHQL
679
- fragment PaywallCurrency on PaywallCurrency {
615
+ PaywallCurrencyFragment = <<~GRAPHQL
616
+ fragment PaywallCurrencyFragment on PaywallCurrency {
680
617
  code
681
618
  symbol
682
619
  }
@@ -724,13 +661,13 @@ module Stigg
724
661
  ...CustomerPortalSubscriptionFragment
725
662
  }
726
663
  entitlements {
727
- ...CustomerPortalEntitlement
664
+ ...CustomerPortalEntitlementFragment
728
665
  }
729
666
  promotionalEntitlements {
730
- ...CustomerPortalPromotionalEntitlement
667
+ ...CustomerPortalPromotionalEntitlementFragment
731
668
  }
732
669
  billingInformation {
733
- ...CustomerPortalBillingInformation
670
+ ...CustomerPortalBillingInformationFragment
734
671
  }
735
672
  showWatermark
736
673
  billingPortalUrl
@@ -789,7 +726,7 @@ module Stigg
789
726
  }
790
727
  customCss
791
728
  content {
792
- collectPhoneNumber
729
+ collectPhoneNumber
793
730
  }
794
731
  __typename
795
732
  }
@@ -876,16 +813,16 @@ module Stigg
876
813
  }
877
814
  }
878
815
  addons {
879
- ...CustomerPortalSubscriptionAddon
816
+ ...CustomerPortalSubscriptionAddonFragment
880
817
  }
881
818
  scheduledUpdates {
882
- ...CustomerPortalSubscriptionScheduledUpdateData
819
+ ...CustomerPortalSubscriptionScheduledUpdateDataFragment
883
820
  }
884
821
  }
885
822
  GRAPHQL
886
823
 
887
- CustomerPortalSubscriptionAddon = <<~GRAPHQL
888
- fragment CustomerPortalSubscriptionAddon on CustomerPortalAddon {
824
+ CustomerPortalSubscriptionAddonFragment = <<~GRAPHQL
825
+ fragment CustomerPortalSubscriptionAddonFragment on CustomerPortalAddon {
889
826
  addonId
890
827
  description
891
828
  displayName
@@ -893,8 +830,8 @@ module Stigg
893
830
  }
894
831
  GRAPHQL
895
832
 
896
- CustomerPortalSubscriptionScheduledUpdateData = <<~GRAPHQL
897
- fragment CustomerPortalSubscriptionScheduledUpdateData on SubscriptionScheduledUpdate {
833
+ CustomerPortalSubscriptionScheduledUpdateDataFragment = <<~GRAPHQL
834
+ fragment CustomerPortalSubscriptionScheduledUpdateDataFragment on SubscriptionScheduledUpdate {
898
835
  subscriptionScheduleType
899
836
  scheduleStatus
900
837
  scheduledExecutionTime
@@ -925,8 +862,8 @@ module Stigg
925
862
  }
926
863
  GRAPHQL
927
864
 
928
- CustomerPortalEntitlement = <<~GRAPHQL
929
- fragment CustomerPortalEntitlement on Entitlement {
865
+ CustomerPortalEntitlementFragment = <<~GRAPHQL
866
+ fragment CustomerPortalEntitlementFragment on Entitlement {
930
867
  isGranted
931
868
  usageLimit
932
869
  currentUsage
@@ -942,8 +879,8 @@ module Stigg
942
879
  }
943
880
  GRAPHQL
944
881
 
945
- CustomerPortalPromotionalEntitlement = <<~GRAPHQL
946
- fragment CustomerPortalPromotionalEntitlement on CustomerPortalPromotionalEntitlement {
882
+ CustomerPortalPromotionalEntitlementFragment = <<~GRAPHQL
883
+ fragment CustomerPortalPromotionalEntitlementFragment on CustomerPortalPromotionalEntitlement {
947
884
  displayName
948
885
  hasUnlimitedUsage
949
886
  usageLimit
@@ -953,13 +890,12 @@ module Stigg
953
890
  }
954
891
  GRAPHQL
955
892
 
956
- CustomerPortalBillingInformation = <<~GRAPHQL
957
- fragment CustomerPortalBillingInformation on CustomerPortalBillingInformation {
893
+ CustomerPortalBillingInformationFragment = <<~GRAPHQL
894
+ fragment CustomerPortalBillingInformationFragment on CustomerPortalBillingInformation {
958
895
  email
959
896
  name
960
897
  defaultPaymentMethodLast4Digits
961
898
  defaultPaymentMethodId
962
- defaultPaymentMethodLast4Digits
963
899
  defaultPaymentExpirationMonth
964
900
  defaultPaymentExpirationYear
965
901
  }
@@ -1088,7 +1024,7 @@ module Stigg
1088
1024
  ...PlanFragment
1089
1025
  }
1090
1026
  currency {
1091
- ...PaywallCurrency
1027
+ ...PaywallCurrencyFragment
1092
1028
  }
1093
1029
  configuration {
1094
1030
  ...PaywallConfigurationFragment
@@ -1441,7 +1377,7 @@ module Stigg
1441
1377
  #{Fragment::AddonFragment}
1442
1378
  #{Fragment::PriceFragment}
1443
1379
  #{Fragment::PriceTierFragment}
1444
- #{Fragment::PaywallCurrency}
1380
+ #{Fragment::PaywallCurrencyFragment}
1445
1381
  #{Fragment::PaywallConfigurationFragment}
1446
1382
  #{Fragment::TypographyConfigurationFragment}
1447
1383
  #{Fragment::FontVariantFragment}
@@ -1512,20 +1448,20 @@ module Stigg
1512
1448
  #{Fragment::CustomerPortalFragment}
1513
1449
  #{Fragment::CustomerPortalSubscriptionFragment}
1514
1450
  #{Fragment::CustomerPortalSubscriptionPriceFragment}
1515
- #{Fragment::CustomerPortalSubscriptionAddon}
1516
- #{Fragment::CustomerPortalSubscriptionScheduledUpdateData}
1517
- #{Fragment::CustomerPortalEntitlement}
1451
+ #{Fragment::CustomerPortalSubscriptionAddonFragment}
1452
+ #{Fragment::CustomerPortalSubscriptionScheduledUpdateDataFragment}
1453
+ #{Fragment::CustomerPortalEntitlementFragment}
1518
1454
  #{Fragment::ResetPeriodConfigurationFragment}
1519
1455
  #{Fragment::FeatureFragment}
1520
- #{Fragment::CustomerPortalPromotionalEntitlement}
1521
- #{Fragment::CustomerPortalBillingInformation}
1456
+ #{Fragment::CustomerPortalPromotionalEntitlementFragment}
1457
+ #{Fragment::CustomerPortalBillingInformationFragment}
1522
1458
  #{Fragment::CustomerPortalConfigurationFragment}
1523
1459
  #{Fragment::TypographyConfigurationFragment}
1524
1460
  #{Fragment::FontVariantFragment}
1525
1461
  #{Fragment::CustomerResourceFragment}
1526
1462
  GRAPHQL
1527
1463
 
1528
- CheckoutState = <<~GRAPHQL
1464
+ GetCheckoutState = <<~GRAPHQL
1529
1465
  query ($input: CheckoutStateInput!) {
1530
1466
  checkoutState(input: $input) {
1531
1467
  ...CheckoutStateFragment
@@ -1575,7 +1511,7 @@ module Stigg
1575
1511
  #{Fragment::LayoutConfigurationFragment}
1576
1512
  GRAPHQL
1577
1513
 
1578
- UsageHistory = <<~GRAPHQL
1514
+ GetUsageHistory = <<~GRAPHQL
1579
1515
  query ($usageHistoryInput: UsageHistoryInput!) {
1580
1516
  usageHistory(usageHistoryInput: $usageHistoryInput) {
1581
1517
  ...UsageHistoryFragment
@@ -1584,7 +1520,7 @@ module Stigg
1584
1520
  #{Fragment::UsageHistoryFragment}
1585
1521
  GRAPHQL
1586
1522
 
1587
- EntitlementsUpdated = <<~GRAPHQL
1523
+ OnEntitlementsUpdated = <<~GRAPHQL
1588
1524
  subscription {
1589
1525
  entitlementsUpdated {
1590
1526
  ...EntitlementsUpdatedPayload
@@ -1596,7 +1532,7 @@ module Stigg
1596
1532
  #{Fragment::FeatureFragment}
1597
1533
  GRAPHQL
1598
1534
 
1599
- UsageUpdated = <<~GRAPHQL
1535
+ OnUsageUpdated = <<~GRAPHQL
1600
1536
  subscription {
1601
1537
  usageUpdated {
1602
1538
  ...EntitlementUsageUpdated
@@ -58838,6 +58838,18 @@
58838
58838
  "isDeprecated": false,
58839
58839
  "deprecationReason": null
58840
58840
  },
58841
+ {
58842
+ "name": "credits",
58843
+ "description": null,
58844
+ "args": [],
58845
+ "type": {
58846
+ "kind": "OBJECT",
58847
+ "name": "SubscriptionPreviewCredits",
58848
+ "ofType": null
58849
+ },
58850
+ "isDeprecated": false,
58851
+ "deprecationReason": null
58852
+ },
58841
58853
  {
58842
58854
  "name": "discount",
58843
58855
  "description": null,
@@ -58976,6 +58988,65 @@
58976
58988
  "enumValues": null,
58977
58989
  "possibleTypes": null
58978
58990
  },
58991
+ {
58992
+ "kind": "OBJECT",
58993
+ "name": "SubscriptionPreviewCredits",
58994
+ "description": null,
58995
+ "fields": [
58996
+ {
58997
+ "name": "initial",
58998
+ "description": null,
58999
+ "args": [],
59000
+ "type": {
59001
+ "kind": "NON_NULL",
59002
+ "name": null,
59003
+ "ofType": {
59004
+ "kind": "OBJECT",
59005
+ "name": "Money",
59006
+ "ofType": null
59007
+ }
59008
+ },
59009
+ "isDeprecated": false,
59010
+ "deprecationReason": null
59011
+ },
59012
+ {
59013
+ "name": "remaining",
59014
+ "description": null,
59015
+ "args": [],
59016
+ "type": {
59017
+ "kind": "NON_NULL",
59018
+ "name": null,
59019
+ "ofType": {
59020
+ "kind": "OBJECT",
59021
+ "name": "Money",
59022
+ "ofType": null
59023
+ }
59024
+ },
59025
+ "isDeprecated": false,
59026
+ "deprecationReason": null
59027
+ },
59028
+ {
59029
+ "name": "used",
59030
+ "description": null,
59031
+ "args": [],
59032
+ "type": {
59033
+ "kind": "NON_NULL",
59034
+ "name": null,
59035
+ "ofType": {
59036
+ "kind": "OBJECT",
59037
+ "name": "Money",
59038
+ "ofType": null
59039
+ }
59040
+ },
59041
+ "isDeprecated": false,
59042
+ "deprecationReason": null
59043
+ }
59044
+ ],
59045
+ "inputFields": null,
59046
+ "interfaces": [],
59047
+ "enumValues": null,
59048
+ "possibleTypes": null
59049
+ },
58979
59050
  {
58980
59051
  "kind": "OBJECT",
58981
59052
  "name": "SubscriptionPreviewDiscountDTO",
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.551.1"
4
+ VERSION = "0.554.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.551.1
4
+ version: 0.554.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-08-24 00:00:00.000000000 Z
11
+ date: 2023-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient