orb-billing 1.20.0 → 1.22.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 +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +1 -1
- data/lib/orb/models/fixed_fee_quantity_transition.rb +3 -3
- data/lib/orb/models/subscription_price_intervals_params.rb +6 -6
- data/lib/orb/resources/alerts.rb +2 -2
- data/lib/orb/version.rb +1 -1
- data/rbi/orb/models/fixed_fee_quantity_transition.rbi +5 -7
- data/rbi/orb/models/subscription_price_intervals_params.rbi +6 -6
- data/rbi/orb/resources/alerts.rbi +2 -2
- data/sig/orb/models/fixed_fee_quantity_transition.rbs +4 -4
- data/sig/orb/models/subscription_price_intervals_params.rbs +8 -8
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8881d5c5ce3ce2170690cbd58bf18eb722b2cee0947b4678045716d63e8a0e9
|
|
4
|
+
data.tar.gz: 6d9b9c876db25a171ade9ec9631384299cece32bc5a505e24187df19b4621b4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cbc021724838465722a00f5148f8296de933ef9ea525172aa26a093c9ce2bb148dd3a85a6649e8030490721182c2c2b476b00f5739e50bfd6cfcda7c950807ef
|
|
7
|
+
data.tar.gz: b37b6815005f069aa35c06559e812669260bd3676ca12f33a92ca6e793178459851ad971c41e9d1a48a200404c4587df6ff38f183eda80ad572c7648b0203a9a
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.22.0](https://github.com/orbcorp/orb-ruby/compare/v1.21.0...v1.22.0) (2026-07-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **api:** rename "trash alert" endpoint to "delete alert" ([443fe4e](https://github.com/orbcorp/orb-ruby/commit/443fe4e7f3205805101e81963c6836ead5d5befb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **api:** rename "trash alert" endpoint to "delete alert" ([443fe4e](https://github.com/orbcorp/orb-ruby/commit/443fe4e7f3205805101e81963c6836ead5d5befb))
|
|
14
|
+
|
|
15
|
+
## [1.21.0](https://github.com/orbcorp/orb-ruby/compare/v1.20.0...v1.21.0) (2026-07-24)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **api:** increase max page limit for credit ledger endpoints from 500 to 1000 ([36b7d15](https://github.com/orbcorp/orb-ruby/commit/36b7d15e5ca52c6f81b8035c8f6a117ff35f87ca))
|
|
21
|
+
* **api:** support decimal quantities for fixed fee quantity transitions ([7fd286c](https://github.com/orbcorp/orb-ruby/commit/7fd286ced34bf135fbe25a420bb1fa049fd02ba6))
|
|
22
|
+
|
|
3
23
|
## [1.20.0](https://github.com/orbcorp/orb-ruby/compare/v1.19.0...v1.20.0) (2026-07-22)
|
|
4
24
|
|
|
5
25
|
|
data/README.md
CHANGED
|
@@ -15,13 +15,13 @@ module Orb
|
|
|
15
15
|
|
|
16
16
|
# @!attribute quantity
|
|
17
17
|
#
|
|
18
|
-
# @return [
|
|
19
|
-
required :quantity,
|
|
18
|
+
# @return [Float]
|
|
19
|
+
required :quantity, Float
|
|
20
20
|
|
|
21
21
|
# @!method initialize(effective_date:, price_id:, quantity:)
|
|
22
22
|
# @param effective_date [Time]
|
|
23
23
|
# @param price_id [String]
|
|
24
|
-
# @param quantity [
|
|
24
|
+
# @param quantity [Float]
|
|
25
25
|
end
|
|
26
26
|
end
|
|
27
27
|
end
|
|
@@ -334,13 +334,13 @@ module Orb
|
|
|
334
334
|
# @!attribute quantity
|
|
335
335
|
# The quantity of the fixed fee quantity transition.
|
|
336
336
|
#
|
|
337
|
-
# @return [
|
|
338
|
-
required :quantity,
|
|
337
|
+
# @return [Float]
|
|
338
|
+
required :quantity, Float
|
|
339
339
|
|
|
340
340
|
# @!method initialize(effective_date:, quantity:)
|
|
341
341
|
# @param effective_date [Time] The date that the fixed fee quantity transition should take effect.
|
|
342
342
|
#
|
|
343
|
-
# @param quantity [
|
|
343
|
+
# @param quantity [Float] The quantity of the fixed fee quantity transition.
|
|
344
344
|
end
|
|
345
345
|
|
|
346
346
|
# New floating price request body params.
|
|
@@ -2807,13 +2807,13 @@ module Orb
|
|
|
2807
2807
|
# @!attribute quantity
|
|
2808
2808
|
# The quantity of the fixed fee quantity transition.
|
|
2809
2809
|
#
|
|
2810
|
-
# @return [
|
|
2811
|
-
required :quantity,
|
|
2810
|
+
# @return [Float]
|
|
2811
|
+
required :quantity, Float
|
|
2812
2812
|
|
|
2813
2813
|
# @!method initialize(effective_date:, quantity:)
|
|
2814
2814
|
# @param effective_date [Time] The date that the fixed fee quantity transition should take effect.
|
|
2815
2815
|
#
|
|
2816
|
-
# @param quantity [
|
|
2816
|
+
# @param quantity [Float] The quantity of the fixed fee quantity transition.
|
|
2817
2817
|
end
|
|
2818
2818
|
|
|
2819
2819
|
# The updated start date of this price interval. If not specified, the start date
|
data/lib/orb/resources/alerts.rb
CHANGED
|
@@ -116,11 +116,11 @@ module Orb
|
|
|
116
116
|
)
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
-
# This endpoint
|
|
119
|
+
# This endpoint deletes a subscription or customer-scoped alert. The alert is
|
|
120
120
|
# soft-deleted: it stops firing immediately and no longer appears in fetch or list
|
|
121
121
|
# responses, while the underlying record is retained internally for audit.
|
|
122
122
|
#
|
|
123
|
-
# Plan-level alerts cannot be
|
|
123
|
+
# Plan-level alerts cannot be deleted via the API — disable them instead
|
|
124
124
|
# (`POST /v1/alerts/{alert_configuration_id}/disable`). Their removal would need
|
|
125
125
|
# to be unwound from every subscription the alert was propagated to, which isn't
|
|
126
126
|
# supported yet.
|
data/lib/orb/version.rb
CHANGED
|
@@ -14,22 +14,20 @@ module Orb
|
|
|
14
14
|
sig { returns(String) }
|
|
15
15
|
attr_accessor :price_id
|
|
16
16
|
|
|
17
|
-
sig { returns(
|
|
17
|
+
sig { returns(Float) }
|
|
18
18
|
attr_accessor :quantity
|
|
19
19
|
|
|
20
20
|
sig do
|
|
21
|
-
params(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
quantity: Integer
|
|
25
|
-
).returns(T.attached_class)
|
|
21
|
+
params(effective_date: Time, price_id: String, quantity: Float).returns(
|
|
22
|
+
T.attached_class
|
|
23
|
+
)
|
|
26
24
|
end
|
|
27
25
|
def self.new(effective_date:, price_id:, quantity:)
|
|
28
26
|
end
|
|
29
27
|
|
|
30
28
|
sig do
|
|
31
29
|
override.returns(
|
|
32
|
-
{ effective_date: Time, price_id: String, quantity:
|
|
30
|
+
{ effective_date: Time, price_id: String, quantity: Float }
|
|
33
31
|
)
|
|
34
32
|
end
|
|
35
33
|
def to_hash
|
|
@@ -690,11 +690,11 @@ module Orb
|
|
|
690
690
|
attr_accessor :effective_date
|
|
691
691
|
|
|
692
692
|
# The quantity of the fixed fee quantity transition.
|
|
693
|
-
sig { returns(
|
|
693
|
+
sig { returns(Float) }
|
|
694
694
|
attr_accessor :quantity
|
|
695
695
|
|
|
696
696
|
sig do
|
|
697
|
-
params(effective_date: Time, quantity:
|
|
697
|
+
params(effective_date: Time, quantity: Float).returns(
|
|
698
698
|
T.attached_class
|
|
699
699
|
)
|
|
700
700
|
end
|
|
@@ -706,7 +706,7 @@ module Orb
|
|
|
706
706
|
)
|
|
707
707
|
end
|
|
708
708
|
|
|
709
|
-
sig { override.returns({ effective_date: Time, quantity:
|
|
709
|
+
sig { override.returns({ effective_date: Time, quantity: Float }) }
|
|
710
710
|
def to_hash
|
|
711
711
|
end
|
|
712
712
|
end
|
|
@@ -4912,11 +4912,11 @@ module Orb
|
|
|
4912
4912
|
attr_accessor :effective_date
|
|
4913
4913
|
|
|
4914
4914
|
# The quantity of the fixed fee quantity transition.
|
|
4915
|
-
sig { returns(
|
|
4915
|
+
sig { returns(Float) }
|
|
4916
4916
|
attr_accessor :quantity
|
|
4917
4917
|
|
|
4918
4918
|
sig do
|
|
4919
|
-
params(effective_date: Time, quantity:
|
|
4919
|
+
params(effective_date: Time, quantity: Float).returns(
|
|
4920
4920
|
T.attached_class
|
|
4921
4921
|
)
|
|
4922
4922
|
end
|
|
@@ -4928,7 +4928,7 @@ module Orb
|
|
|
4928
4928
|
)
|
|
4929
4929
|
end
|
|
4930
4930
|
|
|
4931
|
-
sig { override.returns({ effective_date: Time, quantity:
|
|
4931
|
+
sig { override.returns({ effective_date: Time, quantity: Float }) }
|
|
4932
4932
|
def to_hash
|
|
4933
4933
|
end
|
|
4934
4934
|
end
|
|
@@ -92,11 +92,11 @@ module Orb
|
|
|
92
92
|
)
|
|
93
93
|
end
|
|
94
94
|
|
|
95
|
-
# This endpoint
|
|
95
|
+
# This endpoint deletes a subscription or customer-scoped alert. The alert is
|
|
96
96
|
# soft-deleted: it stops firing immediately and no longer appears in fetch or list
|
|
97
97
|
# responses, while the underlying record is retained internally for audit.
|
|
98
98
|
#
|
|
99
|
-
# Plan-level alerts cannot be
|
|
99
|
+
# Plan-level alerts cannot be deleted via the API — disable them instead
|
|
100
100
|
# (`POST /v1/alerts/{alert_configuration_id}/disable`). Their removal would need
|
|
101
101
|
# to be unwound from every subscription the alert was propagated to, which isn't
|
|
102
102
|
# supported yet.
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
module Orb
|
|
2
2
|
module Models
|
|
3
3
|
type fixed_fee_quantity_transition =
|
|
4
|
-
{ effective_date: Time, price_id: String, quantity:
|
|
4
|
+
{ effective_date: Time, price_id: String, quantity: Float }
|
|
5
5
|
|
|
6
6
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
|
7
7
|
attr_accessor effective_date: Time
|
|
8
8
|
|
|
9
9
|
attr_accessor price_id: String
|
|
10
10
|
|
|
11
|
-
attr_accessor quantity:
|
|
11
|
+
attr_accessor quantity: Float
|
|
12
12
|
|
|
13
13
|
def initialize: (
|
|
14
14
|
effective_date: Time,
|
|
15
15
|
price_id: String,
|
|
16
|
-
quantity:
|
|
16
|
+
quantity: Float
|
|
17
17
|
) -> void
|
|
18
18
|
|
|
19
19
|
def to_hash: -> {
|
|
20
20
|
effective_date: Time,
|
|
21
21
|
price_id: String,
|
|
22
|
-
quantity:
|
|
22
|
+
quantity: Float
|
|
23
23
|
}
|
|
24
24
|
end
|
|
25
25
|
end
|
|
@@ -226,16 +226,16 @@ module Orb
|
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
type fixed_fee_quantity_transition =
|
|
229
|
-
{ effective_date: Time, quantity:
|
|
229
|
+
{ effective_date: Time, quantity: Float }
|
|
230
230
|
|
|
231
231
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
|
232
232
|
attr_accessor effective_date: Time
|
|
233
233
|
|
|
234
|
-
attr_accessor quantity:
|
|
234
|
+
attr_accessor quantity: Float
|
|
235
235
|
|
|
236
|
-
def initialize: (effective_date: Time, quantity:
|
|
236
|
+
def initialize: (effective_date: Time, quantity: Float) -> void
|
|
237
237
|
|
|
238
|
-
def to_hash: -> { effective_date: Time, quantity:
|
|
238
|
+
def to_hash: -> { effective_date: Time, quantity: Float }
|
|
239
239
|
end
|
|
240
240
|
|
|
241
241
|
type price =
|
|
@@ -1951,16 +1951,16 @@ module Orb
|
|
|
1951
1951
|
end
|
|
1952
1952
|
|
|
1953
1953
|
type fixed_fee_quantity_transition =
|
|
1954
|
-
{ effective_date: Time, quantity:
|
|
1954
|
+
{ effective_date: Time, quantity: Float }
|
|
1955
1955
|
|
|
1956
1956
|
class FixedFeeQuantityTransition < Orb::Internal::Type::BaseModel
|
|
1957
1957
|
attr_accessor effective_date: Time
|
|
1958
1958
|
|
|
1959
|
-
attr_accessor quantity:
|
|
1959
|
+
attr_accessor quantity: Float
|
|
1960
1960
|
|
|
1961
|
-
def initialize: (effective_date: Time, quantity:
|
|
1961
|
+
def initialize: (effective_date: Time, quantity: Float) -> void
|
|
1962
1962
|
|
|
1963
|
-
def to_hash: -> { effective_date: Time, quantity:
|
|
1963
|
+
def to_hash: -> { effective_date: Time, quantity: Float }
|
|
1964
1964
|
end
|
|
1965
1965
|
|
|
1966
1966
|
type start_date = Time | Orb::Models::billing_cycle_relative_date
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orb-billing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.22.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orb
|
|
@@ -1407,7 +1407,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
1407
1407
|
- !ruby/object:Gem::Version
|
|
1408
1408
|
version: '0'
|
|
1409
1409
|
requirements: []
|
|
1410
|
-
rubygems_version: 4.0.
|
|
1410
|
+
rubygems_version: 4.0.17
|
|
1411
1411
|
specification_version: 4
|
|
1412
1412
|
summary: Ruby library to access the Orb API
|
|
1413
1413
|
test_files: []
|