stigg 0.1.0.pre.alpha.5 → 0.1.0.pre.alpha.6

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: 3f90c89d191c5711d5c9633830e2125edbfc466735c6d72470987f6aa48df789
4
- data.tar.gz: 0eb02c0d7780d93712a8b4ff26e06e35a870e36290d6274b78661453a17ac66b
3
+ metadata.gz: 7563f623b279a895f8adaeb1930c06ac8109943b974d11e3eab18c9e4a8c76a5
4
+ data.tar.gz: 8278a63fb41446d80565e8db4b53edf52866f1a189152c5ec62f2f9ff6590aa0
5
5
  SHA512:
6
- metadata.gz: 861c11390d630be24406caac29f077dc6df06e7b00d662efd9303d2c95604c0f69cfaf85ee689637e91c33ad8ba3cb06c82d2d00319a0052f217d796b4dc9c83
7
- data.tar.gz: 7e46b0f020581956da11e9bb630539ced1d45d62dfc362ca6f079ef6d6edacee6e260c09dfe324e9e3cdbbbf6f5c76b7e1b884aa71769de69925cef4a48af284
6
+ metadata.gz: 2798a57cdb52b237088fe01a38edcb69add41e428d605e9d16d33f00790bf8c7d07f6e84e0c2b3757ed83fd4fe47c21479bf6d2d8b631c3966cee137e9b26bf4
7
+ data.tar.gz: d80b0719367b58ce15213aa89ade60b5348bf54cb586326d5d18beb33f26fe941fead0765695aaeebdd93519bac1bcdabc0728c9189afa607d6dad62b82d0587
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.6 (2026-02-18)
4
+
5
+ Full Changelog: [v0.1.0-alpha.5...v0.1.0-alpha.6](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.5...v0.1.0-alpha.6)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([b9ca5b0](https://github.com/stiggio/stigg-ruby/commit/b9ca5b002c5008febae30e9b06b30237c5b48331))
10
+ * **api:** manual updates ([b9ca5b0](https://github.com/stiggio/stigg-ruby/commit/b9ca5b002c5008febae30e9b06b30237c5b48331))
11
+ * **api:** trigger release ([46bc971](https://github.com/stiggio/stigg-ruby/commit/46bc971191c8b10362ef7a9a0a3cf1a7f1cd7305))
12
+ * **api:** trigger release ([46bc971](https://github.com/stiggio/stigg-ruby/commit/46bc971191c8b10362ef7a9a0a3cf1a7f1cd7305))
13
+
3
14
  ## 0.1.0-alpha.5 (2026-02-18)
4
15
 
5
16
  Full Changelog: [v0.1.0-alpha.4...v0.1.0-alpha.5](https://github.com/stiggio/stigg-ruby/compare/v0.1.0-alpha.4...v0.1.0-alpha.5)
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.5"
27
+ gem "stigg", "~> 0.1.0.pre.alpha.6"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -4,8 +4,8 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Subscriptions
7
- # @see Stigg::Resources::V1::Subscriptions::Usage#sync_usage
8
- class UsageSyncUsageParams < Stigg::Internal::Type::BaseModel
7
+ # @see Stigg::Resources::V1::Subscriptions::Usage#sync
8
+ class UsageSyncParams < Stigg::Internal::Type::BaseModel
9
9
  extend Stigg::Internal::Type::RequestParameters::Converter
10
10
  include Stigg::Internal::Type::RequestParameters
11
11
 
@@ -4,20 +4,20 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Subscriptions
7
- # @see Stigg::Resources::V1::Subscriptions::Usage#sync_usage
8
- class UsageSyncUsageResponse < Stigg::Internal::Type::BaseModel
7
+ # @see Stigg::Resources::V1::Subscriptions::Usage#sync
8
+ class UsageSyncResponse < Stigg::Internal::Type::BaseModel
9
9
  # @!attribute data
10
10
  # Result of triggering a subscription usage sync.
11
11
  #
12
- # @return [Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data]
13
- required :data, -> { Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data }
12
+ # @return [Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data]
13
+ required :data, -> { Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data }
14
14
 
15
15
  # @!method initialize(data:)
16
16
  # Response object
17
17
  #
18
- # @param data [Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data] Result of triggering a subscription usage sync.
18
+ # @param data [Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data] Result of triggering a subscription usage sync.
19
19
 
20
- # @see Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse#data
20
+ # @see Stigg::Models::V1::Subscriptions::UsageSyncResponse#data
21
21
  class Data < Stigg::Internal::Type::BaseModel
22
22
  # @!attribute triggered
23
23
  # Whether usage was synced to the billing provider
@@ -33,20 +33,20 @@ module Stigg
33
33
  # Triggers a usage sync for a subscription, reporting current usage to the billing
34
34
  # provider.
35
35
  #
36
- # @overload sync_usage(id, request_options: {})
36
+ # @overload sync(id, request_options: {})
37
37
  #
38
38
  # @param id [String] The unique identifier of the entity
39
39
  #
40
40
  # @param request_options [Stigg::RequestOptions, Hash{Symbol=>Object}, nil]
41
41
  #
42
- # @return [Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse]
42
+ # @return [Stigg::Models::V1::Subscriptions::UsageSyncResponse]
43
43
  #
44
- # @see Stigg::Models::V1::Subscriptions::UsageSyncUsageParams
45
- def sync_usage(id, params = {})
44
+ # @see Stigg::Models::V1::Subscriptions::UsageSyncParams
45
+ def sync(id, params = {})
46
46
  @client.request(
47
47
  method: :post,
48
48
  path: ["api/v1/subscriptions/%1$s/usage/sync", id],
49
- model: Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse,
49
+ model: Stigg::Models::V1::Subscriptions::UsageSyncResponse,
50
50
  options: params[:request_options]
51
51
  )
52
52
  end
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.5"
4
+ VERSION = "0.1.0.pre.alpha.6"
5
5
  end
data/lib/stigg.rb CHANGED
@@ -142,8 +142,8 @@ require_relative "stigg/models/v1/subscriptions/invoice_mark_as_paid_params"
142
142
  require_relative "stigg/models/v1/subscriptions/invoice_mark_as_paid_response"
143
143
  require_relative "stigg/models/v1/subscriptions/usage_charge_usage_params"
144
144
  require_relative "stigg/models/v1/subscriptions/usage_charge_usage_response"
145
- require_relative "stigg/models/v1/subscriptions/usage_sync_usage_params"
146
- require_relative "stigg/models/v1/subscriptions/usage_sync_usage_response"
145
+ require_relative "stigg/models/v1/subscriptions/usage_sync_params"
146
+ require_relative "stigg/models/v1/subscriptions/usage_sync_response"
147
147
  require_relative "stigg/models/v1/subscription_transfer_params"
148
148
  require_relative "stigg/models/v1/subscription_update_params"
149
149
  require_relative "stigg/models/v1/usage_history_params"
@@ -4,14 +4,14 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Subscriptions
7
- class UsageSyncUsageParams < Stigg::Internal::Type::BaseModel
7
+ class UsageSyncParams < Stigg::Internal::Type::BaseModel
8
8
  extend Stigg::Internal::Type::RequestParameters::Converter
9
9
  include Stigg::Internal::Type::RequestParameters
10
10
 
11
11
  OrHash =
12
12
  T.type_alias do
13
13
  T.any(
14
- Stigg::V1::Subscriptions::UsageSyncUsageParams,
14
+ Stigg::V1::Subscriptions::UsageSyncParams,
15
15
  Stigg::Internal::AnyHash
16
16
  )
17
17
  end
@@ -4,27 +4,25 @@ module Stigg
4
4
  module Models
5
5
  module V1
6
6
  module Subscriptions
7
- class UsageSyncUsageResponse < Stigg::Internal::Type::BaseModel
7
+ class UsageSyncResponse < Stigg::Internal::Type::BaseModel
8
8
  OrHash =
9
9
  T.type_alias do
10
10
  T.any(
11
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse,
11
+ Stigg::Models::V1::Subscriptions::UsageSyncResponse,
12
12
  Stigg::Internal::AnyHash
13
13
  )
14
14
  end
15
15
 
16
16
  # Result of triggering a subscription usage sync.
17
17
  sig do
18
- returns(
19
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
20
- )
18
+ returns(Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data)
21
19
  end
22
20
  attr_reader :data
23
21
 
24
22
  sig do
25
23
  params(
26
24
  data:
27
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data::OrHash
25
+ Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data::OrHash
28
26
  ).void
29
27
  end
30
28
  attr_writer :data
@@ -33,7 +31,7 @@ module Stigg
33
31
  sig do
34
32
  params(
35
33
  data:
36
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data::OrHash
34
+ Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data::OrHash
37
35
  ).returns(T.attached_class)
38
36
  end
39
37
  def self.new(
@@ -45,8 +43,7 @@ module Stigg
45
43
  sig do
46
44
  override.returns(
47
45
  {
48
- data:
49
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
46
+ data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data
50
47
  }
51
48
  )
52
49
  end
@@ -57,7 +54,7 @@ module Stigg
57
54
  OrHash =
58
55
  T.type_alias do
59
56
  T.any(
60
- Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data,
57
+ Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data,
61
58
  Stigg::Internal::AnyHash
62
59
  )
63
60
  end
@@ -31,9 +31,9 @@ module Stigg
31
31
  params(
32
32
  id: String,
33
33
  request_options: Stigg::RequestOptions::OrHash
34
- ).returns(Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse)
34
+ ).returns(Stigg::Models::V1::Subscriptions::UsageSyncResponse)
35
35
  end
36
- def sync_usage(
36
+ def sync(
37
37
  # The unique identifier of the entity
38
38
  id,
39
39
  request_options: {}
@@ -2,10 +2,10 @@ module Stigg
2
2
  module Models
3
3
  module V1
4
4
  module Subscriptions
5
- type usage_sync_usage_params =
5
+ type usage_sync_params =
6
6
  { } & Stigg::Internal::Type::request_parameters
7
7
 
8
- class UsageSyncUsageParams < Stigg::Internal::Type::BaseModel
8
+ class UsageSyncParams < Stigg::Internal::Type::BaseModel
9
9
  extend Stigg::Internal::Type::RequestParameters::Converter
10
10
  include Stigg::Internal::Type::RequestParameters
11
11
 
@@ -2,20 +2,18 @@ module Stigg
2
2
  module Models
3
3
  module V1
4
4
  module Subscriptions
5
- type usage_sync_usage_response =
6
- {
7
- data: Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
8
- }
5
+ type usage_sync_response =
6
+ { data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data }
9
7
 
10
- class UsageSyncUsageResponse < Stigg::Internal::Type::BaseModel
11
- attr_accessor data: Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
8
+ class UsageSyncResponse < Stigg::Internal::Type::BaseModel
9
+ attr_accessor data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data
12
10
 
13
11
  def initialize: (
14
- data: Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
12
+ data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data
15
13
  ) -> void
16
14
 
17
15
  def to_hash: -> {
18
- data: Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse::Data
16
+ data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data
19
17
  }
20
18
 
21
19
  type data = { triggered: bool }
@@ -9,10 +9,10 @@ module Stigg
9
9
  ?request_options: Stigg::request_opts
10
10
  ) -> Stigg::Models::V1::Subscriptions::UsageChargeUsageResponse
11
11
 
12
- def sync_usage: (
12
+ def sync: (
13
13
  String id,
14
14
  ?request_options: Stigg::request_opts
15
- ) -> Stigg::Models::V1::Subscriptions::UsageSyncUsageResponse
15
+ ) -> Stigg::Models::V1::Subscriptions::UsageSyncResponse
16
16
 
17
17
  def initialize: (client: Stigg::Client) -> void
18
18
  end
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.5
4
+ version: 0.1.0.pre.alpha.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stigg
@@ -161,8 +161,8 @@ files:
161
161
  - lib/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rb
162
162
  - lib/stigg/models/v1/subscriptions/usage_charge_usage_params.rb
163
163
  - lib/stigg/models/v1/subscriptions/usage_charge_usage_response.rb
164
- - lib/stigg/models/v1/subscriptions/usage_sync_usage_params.rb
165
- - lib/stigg/models/v1/subscriptions/usage_sync_usage_response.rb
164
+ - lib/stigg/models/v1/subscriptions/usage_sync_params.rb
165
+ - lib/stigg/models/v1/subscriptions/usage_sync_response.rb
166
166
  - lib/stigg/models/v1/usage_history_params.rb
167
167
  - lib/stigg/models/v1/usage_history_response.rb
168
168
  - lib/stigg/models/v1/usage_report_params.rb
@@ -296,8 +296,8 @@ files:
296
296
  - rbi/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbi
297
297
  - rbi/stigg/models/v1/subscriptions/usage_charge_usage_params.rbi
298
298
  - rbi/stigg/models/v1/subscriptions/usage_charge_usage_response.rbi
299
- - rbi/stigg/models/v1/subscriptions/usage_sync_usage_params.rbi
300
- - rbi/stigg/models/v1/subscriptions/usage_sync_usage_response.rbi
299
+ - rbi/stigg/models/v1/subscriptions/usage_sync_params.rbi
300
+ - rbi/stigg/models/v1/subscriptions/usage_sync_response.rbi
301
301
  - rbi/stigg/models/v1/usage_history_params.rbi
302
302
  - rbi/stigg/models/v1/usage_history_response.rbi
303
303
  - rbi/stigg/models/v1/usage_report_params.rbi
@@ -430,8 +430,8 @@ files:
430
430
  - sig/stigg/models/v1/subscriptions/invoice_mark_as_paid_response.rbs
431
431
  - sig/stigg/models/v1/subscriptions/usage_charge_usage_params.rbs
432
432
  - sig/stigg/models/v1/subscriptions/usage_charge_usage_response.rbs
433
- - sig/stigg/models/v1/subscriptions/usage_sync_usage_params.rbs
434
- - sig/stigg/models/v1/subscriptions/usage_sync_usage_response.rbs
433
+ - sig/stigg/models/v1/subscriptions/usage_sync_params.rbs
434
+ - sig/stigg/models/v1/subscriptions/usage_sync_response.rbs
435
435
  - sig/stigg/models/v1/usage_history_params.rbs
436
436
  - sig/stigg/models/v1/usage_history_response.rbs
437
437
  - sig/stigg/models/v1/usage_report_params.rbs