orb-billing 1.20.0 → 1.21.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d233a9d1222a0499c1c31d820e16f278d8e3b69b8109a4e85c957d9ae1f9d4e3
4
- data.tar.gz: 39f6c487d29c575cfce7516bc222e50cf44fa363f4b312cfad0c265935b1ae21
3
+ metadata.gz: 56dea05a2626c19d083f9b5767a79ac2b32da36f6a84ba7806e463ee0e62e4c8
4
+ data.tar.gz: b6f8dc63976b9b34bf44c5f37d9175b86413930e8d72b137fbf05459121ca82c
5
5
  SHA512:
6
- metadata.gz: 34b5b37a78bcd161a21343120d933c9af2fb30611e885e13a39e583113b8b6c0be29ca15dd682fca7396bb5d4f9fd3ba9ef74b33ad31eeb1f156fd34db564ff5
7
- data.tar.gz: e302d847f9c0e21da245d3122dc604c3701173627df5397a0166475189f3404ee2bbf2f5f439e17f5894e999fc3e200e84b4e43caf2e2f7c4b825365be0c5140
6
+ metadata.gz: 373086531e88024277c7c88454ed6312cfd556b3229008f97ba57b7650f17d1e21bdc40ab83016c5582aeead54be1e1e14ff295cb695e1a94d69e461ed7be5a6
7
+ data.tar.gz: e09bccd76c50f24686e94cbebf64f5c58e09386c4a00b10442de233098834fabf23387cca68cb595cee67f97ed5b9d37a48197e55acc1fb2c62d44516b68112a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.21.0](https://github.com/orbcorp/orb-ruby/compare/v1.20.0...v1.21.0) (2026-07-24)
4
+
5
+
6
+ ### Features
7
+
8
+ * **api:** increase max page limit for credit ledger endpoints from 500 to 1000 ([36b7d15](https://github.com/orbcorp/orb-ruby/commit/36b7d15e5ca52c6f81b8035c8f6a117ff35f87ca))
9
+ * **api:** support decimal quantities for fixed fee quantity transitions ([7fd286c](https://github.com/orbcorp/orb-ruby/commit/7fd286ced34bf135fbe25a420bb1fa049fd02ba6))
10
+
3
11
  ## [1.20.0](https://github.com/orbcorp/orb-ruby/compare/v1.19.0...v1.20.0) (2026-07-22)
4
12
 
5
13
 
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "orb-billing", "~> 1.20.0"
18
+ gem "orb-billing", "~> 1.21.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -15,13 +15,13 @@ module Orb
15
15
 
16
16
  # @!attribute quantity
17
17
  #
18
- # @return [Integer]
19
- required :quantity, Integer
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 [Integer]
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 [Integer]
338
- required :quantity, Integer
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 [Integer] The quantity of the fixed fee quantity transition.
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 [Integer]
2811
- required :quantity, Integer
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 [Integer] The quantity of the fixed fee quantity transition.
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/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Orb
4
- VERSION = "1.20.0"
4
+ VERSION = "1.21.0"
5
5
  end
@@ -14,22 +14,20 @@ module Orb
14
14
  sig { returns(String) }
15
15
  attr_accessor :price_id
16
16
 
17
- sig { returns(Integer) }
17
+ sig { returns(Float) }
18
18
  attr_accessor :quantity
19
19
 
20
20
  sig do
21
- params(
22
- effective_date: Time,
23
- price_id: String,
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: Integer }
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(Integer) }
693
+ sig { returns(Float) }
694
694
  attr_accessor :quantity
695
695
 
696
696
  sig do
697
- params(effective_date: Time, quantity: Integer).returns(
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: Integer }) }
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(Integer) }
4915
+ sig { returns(Float) }
4916
4916
  attr_accessor :quantity
4917
4917
 
4918
4918
  sig do
4919
- params(effective_date: Time, quantity: Integer).returns(
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: Integer }) }
4931
+ sig { override.returns({ effective_date: Time, quantity: Float }) }
4932
4932
  def to_hash
4933
4933
  end
4934
4934
  end
@@ -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: Integer }
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: Integer
11
+ attr_accessor quantity: Float
12
12
 
13
13
  def initialize: (
14
14
  effective_date: Time,
15
15
  price_id: String,
16
- quantity: Integer
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: Integer
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: Integer }
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: Integer
234
+ attr_accessor quantity: Float
235
235
 
236
- def initialize: (effective_date: Time, quantity: Integer) -> void
236
+ def initialize: (effective_date: Time, quantity: Float) -> void
237
237
 
238
- def to_hash: -> { effective_date: Time, quantity: Integer }
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: Integer }
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: Integer
1959
+ attr_accessor quantity: Float
1960
1960
 
1961
- def initialize: (effective_date: Time, quantity: Integer) -> void
1961
+ def initialize: (effective_date: Time, quantity: Float) -> void
1962
1962
 
1963
- def to_hash: -> { effective_date: Time, quantity: Integer }
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.20.0
4
+ version: 1.21.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.16
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: []