stigg 0.1.0.pre.alpha.14 → 0.1.0.pre.alpha.15

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: a609c3874048f817a7b4dc65f28da8d3cb666520616c75961f117d84a291a873
4
- data.tar.gz: d232644052a023b74aa9e759c74386d5027d2649f4ba60b5201f9a1593abbe14
3
+ metadata.gz: 1bf10deb5ac90c697e27940afd010a06196ecb38e3f8ee95d5536302df5fef6b
4
+ data.tar.gz: 1b56af44714f378fb8b44c2a69d5cbcc2c7923af6529282b6a05e8446c09f841
5
5
  SHA512:
6
- metadata.gz: b71278d08503949246261620957314759b5152eb49576ba8a2b6c05f7bcf6e509214011a44752bce82dbcb857a41d5029818dd29cce80dca6fa5a26cea079a97
7
- data.tar.gz: 94e3f3d464ad767ec5b7479312ddec7c3322b4541fe0e27b589cef85e8510cfcffa081217d0c11a0232b8c722d8be97593528e0730ec380235af38da0c8ec51b
6
+ metadata.gz: 56240ae9f89167ae24b51499f3047ccd7cb455ac3ae195437cc3fd19ddaa7f789d899347928289070a934a09339268cbd985c99f104e1f3044a571c16b333e71
7
+ data.tar.gz: 76c3f9dd46def0ab92d8a3eaaf0de9f74ca740cc3bcbc60e5bfdb2e46e8f9192129b6ee056cb539b7d6c54b5f879714266210d998919162559618bdc3c832d5c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.15 (2026-03-05)
4
+
5
+ Full Changelog: [v0.1.0-alpha.14...v0.1.0-alpha.15](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.14...v0.1.0-alpha.15)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8f6f8c5](https://github.com/stiggio/stigg-ruby/commit/8f6f8c5601aa612ea42f29724195b58b59bcff8f))
10
+
3
11
  ## 0.1.0-alpha.14 (2026-03-05)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.13...v0.1.0-alpha.14](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.13...v0.1.0-alpha.14)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "stigg", "~> 0.1.0.pre.alpha.14"
27
+ gem "stigg", "~> 0.1.0.pre.alpha.15"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -30,13 +30,23 @@ module Stigg
30
30
  # @return [String, nil]
31
31
  optional :group_by, String
32
32
 
33
+ # @!attribute include_historical_usage
34
+ # When true, includes usage data from the most recent cancelled or expired
35
+ # subscription
36
+ #
37
+ # @return [Boolean, nil]
38
+ optional :include_historical_usage, Stigg::Internal::Type::Boolean
39
+
33
40
  # @!attribute resource_id
34
41
  # Resource id
35
42
  #
36
43
  # @return [String, nil]
37
44
  optional :resource_id, String, nil?: true
38
45
 
39
- # @!method initialize(customer_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
46
+ # @!method initialize(customer_id:, start_date:, end_date: nil, group_by: nil, include_historical_usage: nil, resource_id: nil, request_options: {})
47
+ # Some parameter documentations has been truncated, see
48
+ # {Stigg::Models::V1::UsageHistoryParams} for more details.
49
+ #
40
50
  # @param customer_id [String]
41
51
  #
42
52
  # @param start_date [Time] The start date of the range
@@ -45,6 +55,8 @@ module Stigg
45
55
  #
46
56
  # @param group_by [String]
47
57
  #
58
+ # @param include_historical_usage [Boolean] When true, includes usage data from the most recent cancelled or expired subscri
59
+ #
48
60
  # @param resource_id [String, nil] Resource id
49
61
  #
50
62
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}]
@@ -5,9 +5,12 @@ module Stigg
5
5
  class V1
6
6
  # Operations related to usage & metering
7
7
  class Usage
8
+ # Some parameter documentations has been truncated, see
9
+ # {Stigg::Models::V1::UsageHistoryParams} for more details.
10
+ #
8
11
  # Retrieves historical usage data for a customer's metered feature over time.
9
12
  #
10
- # @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil, resource_id: nil, request_options: {})
13
+ # @overload history(feature_id, customer_id:, start_date:, end_date: nil, group_by: nil, include_historical_usage: nil, resource_id: nil, request_options: {})
11
14
  #
12
15
  # @param feature_id [String] Path param: Feature id
13
16
  #
@@ -19,6 +22,8 @@ module Stigg
19
22
  #
20
23
  # @param group_by [String] Query param
21
24
  #
25
+ # @param include_historical_usage [Boolean] Query param: When true, includes usage data from the most recent cancelled or ex
26
+ #
22
27
  # @param resource_id [String, nil] Query param: Resource id
23
28
  #
24
29
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -40,6 +45,7 @@ module Stigg
40
45
  start_date: "startDate",
41
46
  end_date: "endDate",
42
47
  group_by: "groupBy",
48
+ include_historical_usage: "includeHistoricalUsage",
43
49
  resource_id: "resourceId"
44
50
  ),
45
51
  model: Stigg::Models::V1::UsageHistoryResponse,
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.1.0.pre.alpha.14"
4
+ VERSION = "0.1.0.pre.alpha.15"
5
5
  end
@@ -32,6 +32,14 @@ module Stigg
32
32
  sig { params(group_by: String).void }
33
33
  attr_writer :group_by
34
34
 
35
+ # When true, includes usage data from the most recent cancelled or expired
36
+ # subscription
37
+ sig { returns(T.nilable(T::Boolean)) }
38
+ attr_reader :include_historical_usage
39
+
40
+ sig { params(include_historical_usage: T::Boolean).void }
41
+ attr_writer :include_historical_usage
42
+
35
43
  # Resource id
36
44
  sig { returns(T.nilable(String)) }
37
45
  attr_accessor :resource_id
@@ -42,6 +50,7 @@ module Stigg
42
50
  start_date: Time,
43
51
  end_date: Time,
44
52
  group_by: String,
53
+ include_historical_usage: T::Boolean,
45
54
  resource_id: T.nilable(String),
46
55
  request_options: Stigg::RequestOptions::OrHash
47
56
  ).returns(T.attached_class)
@@ -53,6 +62,9 @@ module Stigg
53
62
  # The end date of the range
54
63
  end_date: nil,
55
64
  group_by: nil,
65
+ # When true, includes usage data from the most recent cancelled or expired
66
+ # subscription
67
+ include_historical_usage: nil,
56
68
  # Resource id
57
69
  resource_id: nil,
58
70
  request_options: {}
@@ -66,6 +78,7 @@ module Stigg
66
78
  start_date: Time,
67
79
  end_date: Time,
68
80
  group_by: String,
81
+ include_historical_usage: T::Boolean,
69
82
  resource_id: T.nilable(String),
70
83
  request_options: Stigg::RequestOptions
71
84
  }
@@ -13,6 +13,7 @@ module Stigg
13
13
  start_date: Time,
14
14
  end_date: Time,
15
15
  group_by: String,
16
+ include_historical_usage: T::Boolean,
16
17
  resource_id: T.nilable(String),
17
18
  request_options: Stigg::RequestOptions::OrHash
18
19
  ).returns(Stigg::Models::V1::UsageHistoryResponse)
@@ -28,6 +29,9 @@ module Stigg
28
29
  end_date: nil,
29
30
  # Query param
30
31
  group_by: nil,
32
+ # Query param: When true, includes usage data from the most recent cancelled or
33
+ # expired subscription
34
+ include_historical_usage: nil,
31
35
  # Query param: Resource id
32
36
  resource_id: nil,
33
37
  request_options: {}
@@ -7,6 +7,7 @@ module Stigg
7
7
  start_date: Time,
8
8
  end_date: Time,
9
9
  group_by: String,
10
+ include_historical_usage: bool,
10
11
  resource_id: String?
11
12
  }
12
13
  & Stigg::Internal::Type::request_parameters
@@ -27,6 +28,10 @@ module Stigg
27
28
 
28
29
  def group_by=: (String) -> String
29
30
 
31
+ attr_reader include_historical_usage: bool?
32
+
33
+ def include_historical_usage=: (bool) -> bool
34
+
30
35
  attr_accessor resource_id: String?
31
36
 
32
37
  def initialize: (
@@ -34,6 +39,7 @@ module Stigg
34
39
  start_date: Time,
35
40
  ?end_date: Time,
36
41
  ?group_by: String,
42
+ ?include_historical_usage: bool,
37
43
  ?resource_id: String?,
38
44
  ?request_options: Stigg::request_opts
39
45
  ) -> void
@@ -43,6 +49,7 @@ module Stigg
43
49
  start_date: Time,
44
50
  end_date: Time,
45
51
  group_by: String,
52
+ include_historical_usage: bool,
46
53
  resource_id: String?,
47
54
  request_options: Stigg::RequestOptions
48
55
  }
@@ -8,6 +8,7 @@ module Stigg
8
8
  start_date: Time,
9
9
  ?end_date: Time,
10
10
  ?group_by: String,
11
+ ?include_historical_usage: bool,
11
12
  ?resource_id: String?,
12
13
  ?request_options: Stigg::request_opts
13
14
  ) -> Stigg::Models::V1::UsageHistoryResponse
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stigg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.alpha.14
4
+ version: 0.1.0.pre.alpha.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg