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 +4 -4
- data/CHANGELOG.md +11 -0
- data/README.md +1 -1
- data/lib/stigg/models/v1/subscriptions/{usage_sync_usage_params.rb → usage_sync_params.rb} +2 -2
- data/lib/stigg/models/v1/subscriptions/{usage_sync_usage_response.rb → usage_sync_response.rb} +6 -6
- data/lib/stigg/resources/v1/subscriptions/usage.rb +5 -5
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +2 -2
- data/rbi/stigg/models/v1/subscriptions/{usage_sync_usage_params.rbi → usage_sync_params.rbi} +2 -2
- data/rbi/stigg/models/v1/subscriptions/{usage_sync_usage_response.rbi → usage_sync_response.rbi} +7 -10
- data/rbi/stigg/resources/v1/subscriptions/usage.rbi +2 -2
- data/sig/stigg/models/v1/subscriptions/{usage_sync_usage_params.rbs → usage_sync_params.rbs} +2 -2
- data/sig/stigg/models/v1/subscriptions/{usage_sync_usage_response.rbs → usage_sync_response.rbs} +6 -8
- data/sig/stigg/resources/v1/subscriptions/usage.rbs +2 -2
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7563f623b279a895f8adaeb1930c06ac8109943b974d11e3eab18c9e4a8c76a5
|
|
4
|
+
data.tar.gz: 8278a63fb41446d80565e8db4b53edf52866f1a189152c5ec62f2f9ff6590aa0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -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#
|
|
8
|
-
class
|
|
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
|
|
data/lib/stigg/models/v1/subscriptions/{usage_sync_usage_response.rb → usage_sync_response.rb}
RENAMED
|
@@ -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#
|
|
8
|
-
class
|
|
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::
|
|
13
|
-
required :data, -> { Stigg::Models::V1::Subscriptions::
|
|
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::
|
|
18
|
+
# @param data [Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data] Result of triggering a subscription usage sync.
|
|
19
19
|
|
|
20
|
-
# @see Stigg::Models::V1::Subscriptions::
|
|
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
|
|
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::
|
|
42
|
+
# @return [Stigg::Models::V1::Subscriptions::UsageSyncResponse]
|
|
43
43
|
#
|
|
44
|
-
# @see Stigg::Models::V1::Subscriptions::
|
|
45
|
-
def
|
|
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::
|
|
49
|
+
model: Stigg::Models::V1::Subscriptions::UsageSyncResponse,
|
|
50
50
|
options: params[:request_options]
|
|
51
51
|
)
|
|
52
52
|
end
|
data/lib/stigg/version.rb
CHANGED
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/
|
|
146
|
-
require_relative "stigg/models/v1/subscriptions/
|
|
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"
|
data/rbi/stigg/models/v1/subscriptions/{usage_sync_usage_params.rbi → usage_sync_params.rbi}
RENAMED
|
@@ -4,14 +4,14 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Subscriptions
|
|
7
|
-
class
|
|
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::
|
|
14
|
+
Stigg::V1::Subscriptions::UsageSyncParams,
|
|
15
15
|
Stigg::Internal::AnyHash
|
|
16
16
|
)
|
|
17
17
|
end
|
data/rbi/stigg/models/v1/subscriptions/{usage_sync_usage_response.rbi → usage_sync_response.rbi}
RENAMED
|
@@ -4,27 +4,25 @@ module Stigg
|
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
6
|
module Subscriptions
|
|
7
|
-
class
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
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::
|
|
34
|
+
).returns(Stigg::Models::V1::Subscriptions::UsageSyncResponse)
|
|
35
35
|
end
|
|
36
|
-
def
|
|
36
|
+
def sync(
|
|
37
37
|
# The unique identifier of the entity
|
|
38
38
|
id,
|
|
39
39
|
request_options: {}
|
data/sig/stigg/models/v1/subscriptions/{usage_sync_usage_params.rbs → usage_sync_params.rbs}
RENAMED
|
@@ -2,10 +2,10 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
module Subscriptions
|
|
5
|
-
type
|
|
5
|
+
type usage_sync_params =
|
|
6
6
|
{ } & Stigg::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
|
-
class
|
|
8
|
+
class UsageSyncParams < Stigg::Internal::Type::BaseModel
|
|
9
9
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Stigg::Internal::Type::RequestParameters
|
|
11
11
|
|
data/sig/stigg/models/v1/subscriptions/{usage_sync_usage_response.rbs → usage_sync_response.rbs}
RENAMED
|
@@ -2,20 +2,18 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
module Subscriptions
|
|
5
|
-
type
|
|
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
|
|
11
|
-
attr_accessor data: Stigg::Models::V1::Subscriptions::
|
|
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::
|
|
12
|
+
data: Stigg::Models::V1::Subscriptions::UsageSyncResponse::Data
|
|
15
13
|
) -> void
|
|
16
14
|
|
|
17
15
|
def to_hash: -> {
|
|
18
|
-
data: Stigg::Models::V1::Subscriptions::
|
|
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
|
|
12
|
+
def sync: (
|
|
13
13
|
String id,
|
|
14
14
|
?request_options: Stigg::request_opts
|
|
15
|
-
) -> Stigg::Models::V1::Subscriptions::
|
|
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.
|
|
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/
|
|
165
|
-
- lib/stigg/models/v1/subscriptions/
|
|
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/
|
|
300
|
-
- rbi/stigg/models/v1/subscriptions/
|
|
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/
|
|
434
|
-
- sig/stigg/models/v1/subscriptions/
|
|
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
|