orb-billing 1.28.0 → 1.28.1

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: e696c92aadec856a97cadfc85a5efaa55b51947b6d261e23afb9b038fc291203
4
- data.tar.gz: b5fb963b9ab31969d11a701a07e188843e5f4f19560ddea000223f3bbd95f16f
3
+ metadata.gz: f08e40cee1132ccfdf37c2ca335239dca8012678897c474d325c9eb180953502
4
+ data.tar.gz: 1d2a73ae5808fccab65086206ccefaea08ae1e8e507cb2d5d3d5e23a59093ab5
5
5
  SHA512:
6
- metadata.gz: 22f4131bc53e513d7d4a9735bd04ef912b276aec5abe2fb8653ee4ff02f6ff471123a20d296bcb8c226bd6a4b1a623ff03eeb1678dfac39fc5b9edb751c1fcaa
7
- data.tar.gz: 37ad33761702700de24810b0a5bb8b4df17cb21543bf8f9362405392dc2d28521fdfcc37f2dae1fe129df459301c3be044af577427d6d04322a3dfd936d3c243
6
+ metadata.gz: c5ac4d9687e33fe77a4bbdf07fc4ef84e5cceee491d14f9dc6c9a3c36ef0c244bc02a77c59fecb0ba8c49e7fbb30b4d1d8d94686c539eae58966734635ee277f
7
+ data.tar.gz: 884291fba079ed20ef2afa070f84fbe1a156eb5d088bcfba97914ea17c02c9d17a9176bc1c2acb957f15f27a84be92bbe81e584b4c4e3ff3388b81227fa9246e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.28.1](https://github.com/orbcorp/orb-ruby/compare/v1.28.0...v1.28.1) (2026-08-28)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **api:** require non-empty `country` in customer address input ([39ecbcc](https://github.com/orbcorp/orb-ruby/commit/39ecbcc5d8ca7f60e4aeced6c4cc744c7c4892aa))
9
+
3
10
  ## [1.28.0](https://github.com/orbcorp/orb-ruby/compare/v1.27.0...v1.28.0) (2026-08-25)
4
11
 
5
12
 
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.28.0"
18
+ gem "orb-billing", "~> 1.28.1"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -3,15 +3,15 @@
3
3
  module Orb
4
4
  module Models
5
5
  class AddressInput < Orb::Internal::Type::BaseModel
6
- # @!attribute city
6
+ # @!attribute country
7
7
  #
8
- # @return [String, nil]
9
- optional :city, String, nil?: true
8
+ # @return [String]
9
+ required :country, String
10
10
 
11
- # @!attribute country
11
+ # @!attribute city
12
12
  #
13
13
  # @return [String, nil]
14
- optional :country, String, nil?: true
14
+ optional :city, String, nil?: true
15
15
 
16
16
  # @!attribute line1
17
17
  #
@@ -33,9 +33,9 @@ module Orb
33
33
  # @return [String, nil]
34
34
  optional :state, String, nil?: true
35
35
 
36
- # @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
36
+ # @!method initialize(country:, city: nil, line1: nil, line2: nil, postal_code: nil, state: nil)
37
+ # @param country [String]
37
38
  # @param city [String, nil]
38
- # @param country [String, nil]
39
39
  # @param line1 [String, nil]
40
40
  # @param line2 [String, nil]
41
41
  # @param postal_code [String, nil]
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.28.0"
4
+ VERSION = "1.28.1"
5
5
  end
@@ -5,11 +5,11 @@ module Orb
5
5
  class AddressInput < Orb::Internal::Type::BaseModel
6
6
  OrHash = T.type_alias { T.any(Orb::AddressInput, Orb::Internal::AnyHash) }
7
7
 
8
- sig { returns(T.nilable(String)) }
9
- attr_accessor :city
8
+ sig { returns(String) }
9
+ attr_accessor :country
10
10
 
11
11
  sig { returns(T.nilable(String)) }
12
- attr_accessor :country
12
+ attr_accessor :city
13
13
 
14
14
  sig { returns(T.nilable(String)) }
15
15
  attr_accessor :line1
@@ -25,8 +25,8 @@ module Orb
25
25
 
26
26
  sig do
27
27
  params(
28
+ country: String,
28
29
  city: T.nilable(String),
29
- country: T.nilable(String),
30
30
  line1: T.nilable(String),
31
31
  line2: T.nilable(String),
32
32
  postal_code: T.nilable(String),
@@ -34,8 +34,8 @@ module Orb
34
34
  ).returns(T.attached_class)
35
35
  end
36
36
  def self.new(
37
+ country:,
37
38
  city: nil,
38
- country: nil,
39
39
  line1: nil,
40
40
  line2: nil,
41
41
  postal_code: nil,
@@ -46,8 +46,8 @@ module Orb
46
46
  sig do
47
47
  override.returns(
48
48
  {
49
+ country: String,
49
50
  city: T.nilable(String),
50
- country: T.nilable(String),
51
51
  line1: T.nilable(String),
52
52
  line2: T.nilable(String),
53
53
  postal_code: T.nilable(String),
@@ -2,8 +2,8 @@ module Orb
2
2
  module Models
3
3
  type address_input =
4
4
  {
5
+ country: String,
5
6
  city: String?,
6
- country: String?,
7
7
  :line1 => String?,
8
8
  :line2 => String?,
9
9
  postal_code: String?,
@@ -11,9 +11,9 @@ module Orb
11
11
  }
12
12
 
13
13
  class AddressInput < Orb::Internal::Type::BaseModel
14
- attr_accessor city: String?
14
+ attr_accessor country: String
15
15
 
16
- attr_accessor country: String?
16
+ attr_accessor city: String?
17
17
 
18
18
  attr_accessor line1: String?
19
19
 
@@ -24,8 +24,8 @@ module Orb
24
24
  attr_accessor state: String?
25
25
 
26
26
  def initialize: (
27
+ country: String,
27
28
  ?city: String?,
28
- ?country: String?,
29
29
  ?line1: String?,
30
30
  ?line2: String?,
31
31
  ?postal_code: String?,
@@ -33,8 +33,8 @@ module Orb
33
33
  ) -> void
34
34
 
35
35
  def to_hash: -> {
36
+ country: String,
36
37
  city: String?,
37
- country: String?,
38
38
  :line1 => String?,
39
39
  :line2 => String?,
40
40
  postal_code: String?,
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.28.0
4
+ version: 1.28.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orb