orb-billing 1.2.1 → 1.3.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: 1fdd3792dd2f4b216b055214e10a34fba8e05e175fefa5106dc44423f55a26c2
4
- data.tar.gz: f6cbbc5b1f5d5c9629275a8b6e86379df399524b22b34626c19dd466525eb88c
3
+ metadata.gz: b601ed5d994e78179694f51ebc0ba0b5311d69b34f79b2e7892c58041578856f
4
+ data.tar.gz: a9b90fc941c06f7d73fd7ef1f4d14da454f565141f810477578fe12734c49149
5
5
  SHA512:
6
- metadata.gz: 073b20f1d91023f3850ed382ce91810d5e17a4a162f676a52f060194ebd1380d07545f382cc34889cc4d1552c9b72b54b52fe1d0af76fd3148cef00642c06762
7
- data.tar.gz: 847e9bdfe877b9473458c0098ae615318b9e045dc5c6c33915fc5627023852402f760d5324e2f8ca4caaf66beda9d6a7b16f950029606f6a7d37708a839a1cf4
6
+ metadata.gz: c17d93b30ccf78c9470d9afcf4b17c1e50e28eea2fb0e185ef9cd6096fbfffcb46f87f851e4df7e7917e3d15bc46f88f9809dadd980e1ac75a330c3000b4109a
7
+ data.tar.gz: 14c41428f656ba2549fc47c7f0d726abaa5650d659f06360e21a17116ce4a408b2a93b16c823182e8e323ac165b3b281e08971cf8f570fc51fed2feed3552afd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.0 (2025-07-04)
4
+
5
+ Full Changelog: [v1.2.2...v1.3.0](https://github.com/orbcorp/orb-ruby/compare/v1.2.2...v1.3.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([e976961](https://github.com/orbcorp/orb-ruby/commit/e97696164b50e2aeb415400058511755a8820de5))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** codegen related update ([388cd64](https://github.com/orbcorp/orb-ruby/commit/388cd6477a69261c676a4e833a37c2554019c105))
15
+
16
+ ## 1.2.2 (2025-06-30)
17
+
18
+ Full Changelog: [v1.2.1...v1.2.2](https://github.com/orbcorp/orb-ruby/compare/v1.2.1...v1.2.2)
19
+
20
+ ### Chores
21
+
22
+ * **ci:** only run for pushes and fork pull requests ([c6f7b50](https://github.com/orbcorp/orb-ruby/commit/c6f7b5036f4a214647af2fa2854d2a6eaf52c128))
23
+ * **internal:** allow streams to also be unwrapped on a per-row basis ([d713b5f](https://github.com/orbcorp/orb-ruby/commit/d713b5f3442bb9842f109ae0cb76e70fdc52506c))
24
+ * **internal:** version bump ([0b13270](https://github.com/orbcorp/orb-ruby/commit/0b132708d6e1294f44e026b249846721e08de2af))
25
+
3
26
  ## 1.2.1 (2025-06-26)
4
27
 
5
28
  Full Changelog: [v1.2.0...v1.2.1](https://github.com/orbcorp/orb-ruby/compare/v1.2.0...v1.2.1)
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.2.1"
18
+ gem "orb-billing", "~> 1.3.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -468,6 +468,7 @@ module Orb
468
468
  self.class.validate!(req)
469
469
  model = req.fetch(:model) { Orb::Internal::Type::Unknown }
470
470
  opts = req[:options].to_h
471
+ unwrap = req[:unwrap]
471
472
  Orb::RequestOptions.validate!(opts)
472
473
  request = build_request(req.except(:options), opts)
473
474
  url = request.fetch(:url)
@@ -484,11 +485,18 @@ module Orb
484
485
  decoded = Orb::Internal::Util.decode_content(response, stream: stream)
485
486
  case req
486
487
  in {stream: Class => st}
487
- st.new(model: model, url: url, status: status, response: response, stream: decoded)
488
+ st.new(
489
+ model: model,
490
+ url: url,
491
+ status: status,
492
+ response: response,
493
+ unwrap: unwrap,
494
+ stream: decoded
495
+ )
488
496
  in {page: Class => page}
489
497
  page.new(client: self, req: req, headers: response, page_data: decoded)
490
498
  else
491
- unwrapped = Orb::Internal::Util.dig(decoded, req[:unwrap])
499
+ unwrapped = Orb::Internal::Util.dig(decoded, unwrap)
492
500
  Orb::Internal::Type::Converter.coerce(model, unwrapped)
493
501
  end
494
502
  end
@@ -60,7 +60,6 @@ module Orb
60
60
  QUARTERLY = :quarterly
61
61
  SEMI_ANNUAL = :semi_annual
62
62
  ANNUAL = :annual
63
- CUSTOM = :custom
64
63
 
65
64
  # @!method self.values
66
65
  # @return [Array<Symbol>]
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.2.1"
4
+ VERSION = "1.3.0"
5
5
  end
@@ -89,7 +89,6 @@ module Orb
89
89
  SEMI_ANNUAL =
90
90
  T.let(:semi_annual, Orb::NewAllocationPrice::Cadence::TaggedSymbol)
91
91
  ANNUAL = T.let(:annual, Orb::NewAllocationPrice::Cadence::TaggedSymbol)
92
- CUSTOM = T.let(:custom, Orb::NewAllocationPrice::Cadence::TaggedSymbol)
93
92
 
94
93
  sig do
95
94
  override.returns(
@@ -36,8 +36,7 @@ module Orb
36
36
  expires_at_end_of_cadence: bool?
37
37
  }
38
38
 
39
- type cadence =
40
- :one_time | :monthly | :quarterly | :semi_annual | :annual | :custom
39
+ type cadence = :one_time | :monthly | :quarterly | :semi_annual | :annual
41
40
 
42
41
  module Cadence
43
42
  extend Orb::Internal::Type::Enum
@@ -47,7 +46,6 @@ module Orb
47
46
  QUARTERLY: :quarterly
48
47
  SEMI_ANNUAL: :semi_annual
49
48
  ANNUAL: :annual
50
- CUSTOM: :custom
51
49
 
52
50
  def self?.values: -> ::Array[Orb::Models::NewAllocationPrice::cadence]
53
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: orb-billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-26 00:00:00.000000000 Z
11
+ date: 2025-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool