stigg-api-client 2.49.0 → 2.71.1

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: 9d85c103110643858deac86c6ad273da6866d784fb9f0711b7f1173130d472c8
4
- data.tar.gz: e0c7c4d64bc888a49620abc9d191cc63b67f3fb69acd522f80b0490e088d85ee
3
+ metadata.gz: e74052375584e72e0b30bfd8dc70fc95e795b972661521c544f2ce3144907934
4
+ data.tar.gz: ef77b19e35704e227bdcdcca709b99615b22eaee8cfb17f010ce5a9c1242f5a8
5
5
  SHA512:
6
- metadata.gz: 869dda37905dbe90a75de16bec02f3c56c84ae67899f8177c9b73ad2a8392b173d8a462857415491a63817663b1f26b921db76d777dff7c6e760ba3b530684ed
7
- data.tar.gz: 709327919f31a15602605df0e00c426f343c7f70bf0475aff75f0b21a35be58f020ba3b6a56a4816f804d56150af5f147e261bb7b5c997185d75ef91f9b11f0b
6
+ metadata.gz: 74b68b15cac15c61faad568c68f8db8f39ca5d3b22e7ca846cfd93343d5dfc88ee813135ddc1025e9314858a28785de33350ae448c02a7cd5c0a0c6483355762
7
+ data.tar.gz: 96500c261c0e5342468e47e876e871140e87b3c0cb22420ed823db2e20279e68b16cac6ede9b194e350dc59320a54ab85d07d26d25c1093b294e1bc41c344852
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stigg-api-client (2.49.0)
4
+ stigg-api-client (2.71.1)
5
5
  graphlient (>= 0.6.0, < 1.0)
6
6
  graphql-client (>= 0.19, < 1.0)
7
7
 
@@ -198,6 +198,9 @@ module Stigg
198
198
  defaultTrialConfig {
199
199
  duration
200
200
  units
201
+ budget {
202
+ limit
203
+ }
201
204
  }
202
205
  }
203
206
  GRAPHQL
@@ -732,6 +735,103 @@ module Stigg
732
735
  }
733
736
  GRAPHQL
734
737
 
738
+ SubscriptionInvoicePreviewFragment = <<~GRAPHQL
739
+ fragment SubscriptionInvoicePreviewFragment on SubscriptionInvoicePreview {
740
+ amountDue {
741
+ amount
742
+ currency
743
+ }
744
+ minimumSpendAdjustment {
745
+ amount
746
+ currency
747
+ }
748
+ total {
749
+ amount
750
+ currency
751
+ }
752
+ totalExcludingTax {
753
+ amount
754
+ currency
755
+ }
756
+ subTotal {
757
+ amount
758
+ currency
759
+ }
760
+ subTotalExcludingTax {
761
+ amount
762
+ currency
763
+ }
764
+ tax {
765
+ amount
766
+ currency
767
+ }
768
+ taxDetails {
769
+ displayName
770
+ percentage
771
+ inclusive
772
+ }
773
+ discount {
774
+ amount
775
+ currency
776
+ }
777
+ discountDetails {
778
+ name
779
+ type
780
+ value
781
+ durationType
782
+ durationInMonths
783
+ }
784
+ credits {
785
+ initial {
786
+ amount
787
+ currency
788
+ }
789
+ used {
790
+ amount
791
+ currency
792
+ }
793
+ remaining {
794
+ amount
795
+ currency
796
+ }
797
+ }
798
+ lastUpdatedAt
799
+ lines {
800
+ type
801
+ description
802
+ costDescription
803
+ amount {
804
+ amount
805
+ currency
806
+ }
807
+ unitPrice {
808
+ amount
809
+ currency
810
+ }
811
+ quantity
812
+ proration
813
+ price {
814
+ ...PriceFragment
815
+ }
816
+ usageLimit
817
+ period {
818
+ start
819
+ end
820
+ }
821
+ hasSoftLimit
822
+ lines {
823
+ type
824
+ description
825
+ costDescription
826
+ quantity
827
+ proration
828
+ usageLimit
829
+ hasSoftLimit
830
+ }
831
+ }
832
+ }
833
+ GRAPHQL
834
+
735
835
  FeatureFragment = <<~GRAPHQL
736
836
  fragment FeatureFragment on EntitlementFeature {
737
837
  __typename
@@ -1165,6 +1265,9 @@ module Stigg
1165
1265
  defaultTrialConfig {
1166
1266
  duration
1167
1267
  units
1268
+ budget {
1269
+ limit
1270
+ }
1168
1271
  }
1169
1272
  compatibleAddons {
1170
1273
  ...MockPaywallAddonFragment
@@ -1611,6 +1714,17 @@ module Stigg
1611
1714
  #{Fragment::SubscriptionPreviewInvoiceFragment}
1612
1715
  GRAPHQL
1613
1716
 
1717
+ PreviewNextInvoice = <<~GRAPHQL
1718
+ mutation PreviewNextInvoice($input: PreviewNextInvoiceInput!) {
1719
+ previewNextInvoice(input: $input) {
1720
+ ...SubscriptionInvoicePreviewFragment
1721
+ }
1722
+ }
1723
+ #{Fragment::SubscriptionInvoicePreviewFragment}
1724
+ #{Fragment::PriceFragment}
1725
+ #{Fragment::PriceTierFragment}
1726
+ GRAPHQL
1727
+
1614
1728
  CancelSubscriptionUpdates = <<~GRAPHQL
1615
1729
  mutation CancelSubscriptionUpdates(
1616
1730
  $input: SubscriptionUpdateScheduleCancellationInput!
@@ -1747,482 +1747,6 @@
1747
1747
  "enumValues": null,
1748
1748
  "possibleTypes": null
1749
1749
  },
1750
- {
1751
- "kind": "OBJECT",
1752
- "name": "AddonDeleteResponse",
1753
- "description": null,
1754
- "fields": [
1755
- {
1756
- "name": "additionalMetaData",
1757
- "description": null,
1758
- "args": [],
1759
- "type": {
1760
- "kind": "SCALAR",
1761
- "name": "JSON",
1762
- "ofType": null
1763
- },
1764
- "isDeprecated": false,
1765
- "deprecationReason": null
1766
- },
1767
- {
1768
- "name": "billingId",
1769
- "description": null,
1770
- "args": [],
1771
- "type": {
1772
- "kind": "SCALAR",
1773
- "name": "String",
1774
- "ofType": null
1775
- },
1776
- "isDeprecated": false,
1777
- "deprecationReason": null
1778
- },
1779
- {
1780
- "name": "billingLinkUrl",
1781
- "description": null,
1782
- "args": [],
1783
- "type": {
1784
- "kind": "SCALAR",
1785
- "name": "String",
1786
- "ofType": null
1787
- },
1788
- "isDeprecated": false,
1789
- "deprecationReason": null
1790
- },
1791
- {
1792
- "name": "createdAt",
1793
- "description": null,
1794
- "args": [],
1795
- "type": {
1796
- "kind": "SCALAR",
1797
- "name": "DateTime",
1798
- "ofType": null
1799
- },
1800
- "isDeprecated": false,
1801
- "deprecationReason": null
1802
- },
1803
- {
1804
- "name": "dependencies",
1805
- "description": "List of addons this addon is dependant on",
1806
- "args": [],
1807
- "type": {
1808
- "kind": "LIST",
1809
- "name": null,
1810
- "ofType": {
1811
- "kind": "NON_NULL",
1812
- "name": null,
1813
- "ofType": {
1814
- "kind": "OBJECT",
1815
- "name": "Addon",
1816
- "ofType": null
1817
- }
1818
- }
1819
- },
1820
- "isDeprecated": false,
1821
- "deprecationReason": null
1822
- },
1823
- {
1824
- "name": "description",
1825
- "description": null,
1826
- "args": [],
1827
- "type": {
1828
- "kind": "SCALAR",
1829
- "name": "String",
1830
- "ofType": null
1831
- },
1832
- "isDeprecated": false,
1833
- "deprecationReason": null
1834
- },
1835
- {
1836
- "name": "displayName",
1837
- "description": null,
1838
- "args": [],
1839
- "type": {
1840
- "kind": "NON_NULL",
1841
- "name": null,
1842
- "ofType": {
1843
- "kind": "SCALAR",
1844
- "name": "String",
1845
- "ofType": null
1846
- }
1847
- },
1848
- "isDeprecated": false,
1849
- "deprecationReason": null
1850
- },
1851
- {
1852
- "name": "draftDetails",
1853
- "description": null,
1854
- "args": [],
1855
- "type": {
1856
- "kind": "OBJECT",
1857
- "name": "PackageDraftDetails",
1858
- "ofType": null
1859
- },
1860
- "isDeprecated": false,
1861
- "deprecationReason": null
1862
- },
1863
- {
1864
- "name": "draftSummary",
1865
- "description": null,
1866
- "args": [],
1867
- "type": {
1868
- "kind": "OBJECT",
1869
- "name": "PackageDraftSummary",
1870
- "ofType": null
1871
- },
1872
- "isDeprecated": false,
1873
- "deprecationReason": null
1874
- },
1875
- {
1876
- "name": "entitlements",
1877
- "description": null,
1878
- "args": [],
1879
- "type": {
1880
- "kind": "LIST",
1881
- "name": null,
1882
- "ofType": {
1883
- "kind": "NON_NULL",
1884
- "name": null,
1885
- "ofType": {
1886
- "kind": "OBJECT",
1887
- "name": "PackageEntitlement",
1888
- "ofType": null
1889
- }
1890
- }
1891
- },
1892
- "isDeprecated": false,
1893
- "deprecationReason": null
1894
- },
1895
- {
1896
- "name": "environment",
1897
- "description": null,
1898
- "args": [],
1899
- "type": {
1900
- "kind": "NON_NULL",
1901
- "name": null,
1902
- "ofType": {
1903
- "kind": "OBJECT",
1904
- "name": "Environment",
1905
- "ofType": null
1906
- }
1907
- },
1908
- "isDeprecated": false,
1909
- "deprecationReason": null
1910
- },
1911
- {
1912
- "name": "environmentId",
1913
- "description": null,
1914
- "args": [],
1915
- "type": {
1916
- "kind": "NON_NULL",
1917
- "name": null,
1918
- "ofType": {
1919
- "kind": "SCALAR",
1920
- "name": "String",
1921
- "ofType": null
1922
- }
1923
- },
1924
- "isDeprecated": false,
1925
- "deprecationReason": null
1926
- },
1927
- {
1928
- "name": "hasSubscriptions",
1929
- "description": "Indicates if the addon has subscriptions",
1930
- "args": [],
1931
- "type": {
1932
- "kind": "NON_NULL",
1933
- "name": null,
1934
- "ofType": {
1935
- "kind": "SCALAR",
1936
- "name": "Boolean",
1937
- "ofType": null
1938
- }
1939
- },
1940
- "isDeprecated": false,
1941
- "deprecationReason": null
1942
- },
1943
- {
1944
- "name": "hiddenFromWidgets",
1945
- "description": null,
1946
- "args": [],
1947
- "type": {
1948
- "kind": "LIST",
1949
- "name": null,
1950
- "ofType": {
1951
- "kind": "NON_NULL",
1952
- "name": null,
1953
- "ofType": {
1954
- "kind": "ENUM",
1955
- "name": "WidgetType",
1956
- "ofType": null
1957
- }
1958
- }
1959
- },
1960
- "isDeprecated": false,
1961
- "deprecationReason": null
1962
- },
1963
- {
1964
- "name": "id",
1965
- "description": null,
1966
- "args": [],
1967
- "type": {
1968
- "kind": "NON_NULL",
1969
- "name": null,
1970
- "ofType": {
1971
- "kind": "SCALAR",
1972
- "name": "String",
1973
- "ofType": null
1974
- }
1975
- },
1976
- "isDeprecated": false,
1977
- "deprecationReason": null
1978
- },
1979
- {
1980
- "name": "isLatest",
1981
- "description": null,
1982
- "args": [],
1983
- "type": {
1984
- "kind": "SCALAR",
1985
- "name": "Boolean",
1986
- "ofType": null
1987
- },
1988
- "isDeprecated": false,
1989
- "deprecationReason": null
1990
- },
1991
- {
1992
- "name": "maxQuantity",
1993
- "description": "The maximum quantity of this addon that can be added to a subscription",
1994
- "args": [],
1995
- "type": {
1996
- "kind": "SCALAR",
1997
- "name": "Float",
1998
- "ofType": null
1999
- },
2000
- "isDeprecated": false,
2001
- "deprecationReason": null
2002
- },
2003
- {
2004
- "name": "overageBillingPeriod",
2005
- "description": null,
2006
- "args": [],
2007
- "type": {
2008
- "kind": "ENUM",
2009
- "name": "OverageBillingPeriod",
2010
- "ofType": null
2011
- },
2012
- "isDeprecated": false,
2013
- "deprecationReason": null
2014
- },
2015
- {
2016
- "name": "overagePrices",
2017
- "description": null,
2018
- "args": [],
2019
- "type": {
2020
- "kind": "LIST",
2021
- "name": null,
2022
- "ofType": {
2023
- "kind": "NON_NULL",
2024
- "name": null,
2025
- "ofType": {
2026
- "kind": "OBJECT",
2027
- "name": "Price",
2028
- "ofType": null
2029
- }
2030
- }
2031
- },
2032
- "isDeprecated": false,
2033
- "deprecationReason": null
2034
- },
2035
- {
2036
- "name": "prices",
2037
- "description": null,
2038
- "args": [
2039
- {
2040
- "name": "filter",
2041
- "description": "Specify to filter the records returned.",
2042
- "type": {
2043
- "kind": "INPUT_OBJECT",
2044
- "name": "PriceFilter",
2045
- "ofType": null
2046
- },
2047
- "defaultValue": "{}",
2048
- "isDeprecated": false,
2049
- "deprecationReason": null
2050
- },
2051
- {
2052
- "name": "sorting",
2053
- "description": "Specify to sort results.",
2054
- "type": {
2055
- "kind": "LIST",
2056
- "name": null,
2057
- "ofType": {
2058
- "kind": "NON_NULL",
2059
- "name": null,
2060
- "ofType": {
2061
- "kind": "INPUT_OBJECT",
2062
- "name": "PriceSort",
2063
- "ofType": null
2064
- }
2065
- }
2066
- },
2067
- "defaultValue": "[{direction: DESC, field: createdAt}]",
2068
- "isDeprecated": false,
2069
- "deprecationReason": null
2070
- }
2071
- ],
2072
- "type": {
2073
- "kind": "LIST",
2074
- "name": null,
2075
- "ofType": {
2076
- "kind": "NON_NULL",
2077
- "name": null,
2078
- "ofType": {
2079
- "kind": "OBJECT",
2080
- "name": "Price",
2081
- "ofType": null
2082
- }
2083
- }
2084
- },
2085
- "isDeprecated": false,
2086
- "deprecationReason": null
2087
- },
2088
- {
2089
- "name": "pricingType",
2090
- "description": null,
2091
- "args": [],
2092
- "type": {
2093
- "kind": "ENUM",
2094
- "name": "PricingType",
2095
- "ofType": null
2096
- },
2097
- "isDeprecated": false,
2098
- "deprecationReason": null
2099
- },
2100
- {
2101
- "name": "product",
2102
- "description": null,
2103
- "args": [],
2104
- "type": {
2105
- "kind": "OBJECT",
2106
- "name": "Product",
2107
- "ofType": null
2108
- },
2109
- "isDeprecated": false,
2110
- "deprecationReason": null
2111
- },
2112
- {
2113
- "name": "productId",
2114
- "description": null,
2115
- "args": [],
2116
- "type": {
2117
- "kind": "SCALAR",
2118
- "name": "String",
2119
- "ofType": null
2120
- },
2121
- "isDeprecated": false,
2122
- "deprecationReason": null
2123
- },
2124
- {
2125
- "name": "refId",
2126
- "description": null,
2127
- "args": [],
2128
- "type": {
2129
- "kind": "NON_NULL",
2130
- "name": null,
2131
- "ofType": {
2132
- "kind": "SCALAR",
2133
- "name": "String",
2134
- "ofType": null
2135
- }
2136
- },
2137
- "isDeprecated": false,
2138
- "deprecationReason": null
2139
- },
2140
- {
2141
- "name": "status",
2142
- "description": null,
2143
- "args": [],
2144
- "type": {
2145
- "kind": "NON_NULL",
2146
- "name": null,
2147
- "ofType": {
2148
- "kind": "ENUM",
2149
- "name": "PackageStatus",
2150
- "ofType": null
2151
- }
2152
- },
2153
- "isDeprecated": false,
2154
- "deprecationReason": null
2155
- },
2156
- {
2157
- "name": "syncStates",
2158
- "description": null,
2159
- "args": [],
2160
- "type": {
2161
- "kind": "LIST",
2162
- "name": null,
2163
- "ofType": {
2164
- "kind": "NON_NULL",
2165
- "name": null,
2166
- "ofType": {
2167
- "kind": "OBJECT",
2168
- "name": "SyncState",
2169
- "ofType": null
2170
- }
2171
- }
2172
- },
2173
- "isDeprecated": false,
2174
- "deprecationReason": null
2175
- },
2176
- {
2177
- "name": "type",
2178
- "description": null,
2179
- "args": [],
2180
- "type": {
2181
- "kind": "NON_NULL",
2182
- "name": null,
2183
- "ofType": {
2184
- "kind": "SCALAR",
2185
- "name": "String",
2186
- "ofType": null
2187
- }
2188
- },
2189
- "isDeprecated": false,
2190
- "deprecationReason": null
2191
- },
2192
- {
2193
- "name": "updatedAt",
2194
- "description": null,
2195
- "args": [],
2196
- "type": {
2197
- "kind": "SCALAR",
2198
- "name": "DateTime",
2199
- "ofType": null
2200
- },
2201
- "isDeprecated": false,
2202
- "deprecationReason": null
2203
- },
2204
- {
2205
- "name": "versionNumber",
2206
- "description": null,
2207
- "args": [],
2208
- "type": {
2209
- "kind": "NON_NULL",
2210
- "name": null,
2211
- "ofType": {
2212
- "kind": "SCALAR",
2213
- "name": "Int",
2214
- "ofType": null
2215
- }
2216
- },
2217
- "isDeprecated": false,
2218
- "deprecationReason": null
2219
- }
2220
- ],
2221
- "inputFields": null,
2222
- "interfaces": [],
2223
- "enumValues": null,
2224
- "possibleTypes": null
2225
- },
2226
1750
  {
2227
1751
  "kind": "OBJECT",
2228
1752
  "name": "AddonDependencyChange",
@@ -20477,33 +20001,6 @@
20477
20001
  "enumValues": null,
20478
20002
  "possibleTypes": null
20479
20003
  },
20480
- {
20481
- "kind": "INPUT_OBJECT",
20482
- "name": "DeleteOneAddonInput",
20483
- "description": null,
20484
- "fields": null,
20485
- "inputFields": [
20486
- {
20487
- "name": "id",
20488
- "description": "The id of the record to delete.",
20489
- "type": {
20490
- "kind": "NON_NULL",
20491
- "name": null,
20492
- "ofType": {
20493
- "kind": "SCALAR",
20494
- "name": "String",
20495
- "ofType": null
20496
- }
20497
- },
20498
- "defaultValue": null,
20499
- "isDeprecated": false,
20500
- "deprecationReason": null
20501
- }
20502
- ],
20503
- "interfaces": null,
20504
- "enumValues": null,
20505
- "possibleTypes": null
20506
- },
20507
20004
  {
20508
20005
  "kind": "INPUT_OBJECT",
20509
20006
  "name": "DeleteOneHookInput",
@@ -39168,39 +38665,6 @@
39168
38665
  "isDeprecated": false,
39169
38666
  "deprecationReason": null
39170
38667
  },
39171
- {
39172
- "name": "deleteOneAddon",
39173
- "description": null,
39174
- "args": [
39175
- {
39176
- "name": "input",
39177
- "description": null,
39178
- "type": {
39179
- "kind": "NON_NULL",
39180
- "name": null,
39181
- "ofType": {
39182
- "kind": "INPUT_OBJECT",
39183
- "name": "DeleteOneAddonInput",
39184
- "ofType": null
39185
- }
39186
- },
39187
- "defaultValue": null,
39188
- "isDeprecated": false,
39189
- "deprecationReason": null
39190
- }
39191
- ],
39192
- "type": {
39193
- "kind": "NON_NULL",
39194
- "name": null,
39195
- "ofType": {
39196
- "kind": "OBJECT",
39197
- "name": "AddonDeleteResponse",
39198
- "ofType": null
39199
- }
39200
- },
39201
- "isDeprecated": false,
39202
- "deprecationReason": null
39203
- },
39204
38668
  {
39205
38669
  "name": "deleteOneFeature",
39206
38670
  "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 = "2.49.0"
4
+ VERSION = "2.71.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: 2.49.0
4
+ version: 2.71.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-07-28 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphlient