From 3a7dff16065381bd9a3f2e8d49e87749679d9409 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 05:55:48 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../entity_create_beneficial_owner_params.rb | 19 ++++++++--------- lib/increase/models/entity_create_params.rb | 19 ++++++++--------- ..._update_beneficial_owner_address_params.rb | 19 ++++++++--------- .../entity_create_beneficial_owner_params.rbi | 21 +++++++------------ rbi/increase/models/entity_create_params.rbi | 21 +++++++------------ ...update_beneficial_owner_address_params.rbi | 21 +++++++------------ .../entity_create_beneficial_owner_params.rbs | 12 +++++------ sig/increase/models/entity_create_params.rbs | 12 +++++------ ...update_beneficial_owner_address_params.rbs | 12 +++++------ test/increase/resources/entities_test.rb | 4 ++-- 11 files changed, 70 insertions(+), 94 deletions(-) diff --git a/.stats.yml b/.stats.yml index 4e2a1cd4e..c3a436da3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-86536168d84b951766d3c56adf7b371f15e15de83fff1de4b8052f55bb98034d.yml -openapi_spec_hash: 28053671bf8df1b93086dbe6123f8163 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-06c4af41ee358cc77681ee9eb3e3997fb985c94baa60639f3b21bba1a73dd990.yml +openapi_spec_hash: 636b35479a21d9be089b2d9b95646ba9 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/lib/increase/models/entity_create_beneficial_owner_params.rb b/lib/increase/models/entity_create_beneficial_owner_params.rb index 009216c57..04ec45fef 100644 --- a/lib/increase/models/entity_create_beneficial_owner_params.rb +++ b/lib/increase/models/entity_create_beneficial_owner_params.rb @@ -119,6 +119,12 @@ class Individual < Increase::Internal::Type::BaseModel # @see Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual#address class Address < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -131,13 +137,6 @@ class Address < Increase::Internal::Type::BaseModel # @return [String] required :line1, String - # @!attribute city - # The city, district, town, or village of the address. Required in certain - # countries. - # - # @return [String, nil] - optional :city, String - # @!attribute line2 # The second line of the address. This might be the floor or room number. # @@ -157,7 +156,7 @@ class Address < Increase::Internal::Type::BaseModel # @return [String, nil] optional :zip, String - # @!method initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil) + # @!method initialize(city:, country:, line1:, line2: nil, state: nil, zip: nil) # Some parameter documentations has been truncated, see # {Increase::Models::EntityCreateBeneficialOwnerParams::BeneficialOwner::Individual::Address} # for more details. @@ -165,12 +164,12 @@ class Address < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. # + # @param city [String] The city, district, town, or village of the address. + # # @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address. # # @param line1 [String] The first line of the address. This is usually the street number and street. # - # @param city [String] The city, district, town, or village of the address. Required in certain countri - # # @param line2 [String] The second line of the address. This might be the floor or room number. # # @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the US state diff --git a/lib/increase/models/entity_create_params.rb b/lib/increase/models/entity_create_params.rb index d3cb94ef5..3648dca1f 100644 --- a/lib/increase/models/entity_create_params.rb +++ b/lib/increase/models/entity_create_params.rb @@ -349,6 +349,12 @@ class Individual < Increase::Internal::Type::BaseModel # @see Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual#address class Address < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -361,13 +367,6 @@ class Address < Increase::Internal::Type::BaseModel # @return [String] required :line1, String - # @!attribute city - # The city, district, town, or village of the address. Required in certain - # countries. - # - # @return [String, nil] - optional :city, String - # @!attribute line2 # The second line of the address. This might be the floor or room number. # @@ -387,7 +386,7 @@ class Address < Increase::Internal::Type::BaseModel # @return [String, nil] optional :zip, String - # @!method initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil) + # @!method initialize(city:, country:, line1:, line2: nil, state: nil, zip: nil) # Some parameter documentations has been truncated, see # {Increase::Models::EntityCreateParams::Corporation::BeneficialOwner::Individual::Address} # for more details. @@ -395,12 +394,12 @@ class Address < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. # + # @param city [String] The city, district, town, or village of the address. + # # @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address. # # @param line1 [String] The first line of the address. This is usually the street number and street. # - # @param city [String] The city, district, town, or village of the address. Required in certain countri - # # @param line2 [String] The second line of the address. This might be the floor or room number. # # @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the US state diff --git a/lib/increase/models/entity_update_beneficial_owner_address_params.rb b/lib/increase/models/entity_update_beneficial_owner_address_params.rb index 869d062ef..dcc203138 100644 --- a/lib/increase/models/entity_update_beneficial_owner_address_params.rb +++ b/lib/increase/models/entity_update_beneficial_owner_address_params.rb @@ -32,6 +32,12 @@ class EntityUpdateBeneficialOwnerAddressParams < Increase::Internal::Type::BaseM # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] class Address < Increase::Internal::Type::BaseModel + # @!attribute city + # The city, district, town, or village of the address. + # + # @return [String] + required :city, String + # @!attribute country # The two-letter ISO 3166-1 alpha-2 code for the country of the address. # @@ -44,13 +50,6 @@ class Address < Increase::Internal::Type::BaseModel # @return [String] required :line1, String - # @!attribute city - # The city, district, town, or village of the address. Required in certain - # countries. - # - # @return [String, nil] - optional :city, String - # @!attribute line2 # The second line of the address. This might be the floor or room number. # @@ -70,7 +69,7 @@ class Address < Increase::Internal::Type::BaseModel # @return [String, nil] optional :zip, String - # @!method initialize(country:, line1:, city: nil, line2: nil, state: nil, zip: nil) + # @!method initialize(city:, country:, line1:, line2: nil, state: nil, zip: nil) # Some parameter documentations has been truncated, see # {Increase::Models::EntityUpdateBeneficialOwnerAddressParams::Address} for more # details. @@ -78,12 +77,12 @@ class Address < Increase::Internal::Type::BaseModel # The individual's physical address. Mail receiving locations like PO Boxes and # PMB's are disallowed. # + # @param city [String] The city, district, town, or village of the address. + # # @param country [String] The two-letter ISO 3166-1 alpha-2 code for the country of the address. # # @param line1 [String] The first line of the address. This is usually the street number and street. # - # @param city [String] The city, district, town, or village of the address. Required in certain countri - # # @param line2 [String] The second line of the address. This might be the floor or room number. # # @param state [String] The two-letter United States Postal Service (USPS) abbreviation for the US state diff --git a/rbi/increase/models/entity_create_beneficial_owner_params.rbi b/rbi/increase/models/entity_create_beneficial_owner_params.rbi index 22f6b651d..c69259b24 100644 --- a/rbi/increase/models/entity_create_beneficial_owner_params.rbi +++ b/rbi/increase/models/entity_create_beneficial_owner_params.rbi @@ -256,6 +256,10 @@ module Increase ) end + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country @@ -264,14 +268,6 @@ module Increase sig { returns(String) } attr_accessor :line1 - # The city, district, town, or village of the address. Required in certain - # countries. - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - # The second line of the address. This might be the floor or room number. sig { returns(T.nilable(String)) } attr_reader :line2 @@ -298,22 +294,21 @@ module Increase # PMB's are disallowed. sig do params( + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String ).returns(T.attached_class) end def self.new( + # The city, district, town, or village of the address. + city:, # The two-letter ISO 3166-1 alpha-2 code for the country of the address. country:, # The first line of the address. This is usually the street number and street. line1:, - # The city, district, town, or village of the address. Required in certain - # countries. - city: nil, # The second line of the address. This might be the floor or room number. line2: nil, # The two-letter United States Postal Service (USPS) abbreviation for the US @@ -327,9 +322,9 @@ module Increase sig do override.returns( { + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String diff --git a/rbi/increase/models/entity_create_params.rbi b/rbi/increase/models/entity_create_params.rbi index be3febee3..bb8254060 100644 --- a/rbi/increase/models/entity_create_params.rbi +++ b/rbi/increase/models/entity_create_params.rbi @@ -656,6 +656,10 @@ module Increase ) end + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country @@ -664,14 +668,6 @@ module Increase sig { returns(String) } attr_accessor :line1 - # The city, district, town, or village of the address. Required in certain - # countries. - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - # The second line of the address. This might be the floor or room number. sig { returns(T.nilable(String)) } attr_reader :line2 @@ -698,22 +694,21 @@ module Increase # PMB's are disallowed. sig do params( + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String ).returns(T.attached_class) end def self.new( + # The city, district, town, or village of the address. + city:, # The two-letter ISO 3166-1 alpha-2 code for the country of the address. country:, # The first line of the address. This is usually the street number and street. line1:, - # The city, district, town, or village of the address. Required in certain - # countries. - city: nil, # The second line of the address. This might be the floor or room number. line2: nil, # The two-letter United States Postal Service (USPS) abbreviation for the US @@ -727,9 +722,9 @@ module Increase sig do override.returns( { + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String diff --git a/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi b/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi index 579889713..9d613aa2a 100644 --- a/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi +++ b/rbi/increase/models/entity_update_beneficial_owner_address_params.rbi @@ -75,6 +75,10 @@ module Increase ) end + # The city, district, town, or village of the address. + sig { returns(String) } + attr_accessor :city + # The two-letter ISO 3166-1 alpha-2 code for the country of the address. sig { returns(String) } attr_accessor :country @@ -83,14 +87,6 @@ module Increase sig { returns(String) } attr_accessor :line1 - # The city, district, town, or village of the address. Required in certain - # countries. - sig { returns(T.nilable(String)) } - attr_reader :city - - sig { params(city: String).void } - attr_writer :city - # The second line of the address. This might be the floor or room number. sig { returns(T.nilable(String)) } attr_reader :line2 @@ -117,22 +113,21 @@ module Increase # PMB's are disallowed. sig do params( + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String ).returns(T.attached_class) end def self.new( + # The city, district, town, or village of the address. + city:, # The two-letter ISO 3166-1 alpha-2 code for the country of the address. country:, # The first line of the address. This is usually the street number and street. line1:, - # The city, district, town, or village of the address. Required in certain - # countries. - city: nil, # The second line of the address. This might be the floor or room number. line2: nil, # The two-letter United States Postal Service (USPS) abbreviation for the US @@ -146,9 +141,9 @@ module Increase sig do override.returns( { + city: String, country: String, line1: String, - city: String, line2: String, state: String, zip: String diff --git a/sig/increase/models/entity_create_beneficial_owner_params.rbs b/sig/increase/models/entity_create_beneficial_owner_params.rbs index 8aabda88f..3409e5a7f 100644 --- a/sig/increase/models/entity_create_beneficial_owner_params.rbs +++ b/sig/increase/models/entity_create_beneficial_owner_params.rbs @@ -90,23 +90,21 @@ module Increase type address = { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String } class Address < Increase::Internal::Type::BaseModel + attr_accessor city: String + attr_accessor country: String attr_accessor line1: String - attr_reader city: String? - - def city=: (String) -> String - attr_reader line2: String? def line2=: (String) -> String @@ -120,18 +118,18 @@ module Increase def zip=: (String) -> String def initialize: ( + city: String, country: String, line1: String, - ?city: String, ?line2: String, ?state: String, ?zip: String ) -> void def to_hash: -> { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String diff --git a/sig/increase/models/entity_create_params.rbs b/sig/increase/models/entity_create_params.rbs index bd883fd1b..588f9a254 100644 --- a/sig/increase/models/entity_create_params.rbs +++ b/sig/increase/models/entity_create_params.rbs @@ -284,23 +284,21 @@ module Increase type address = { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String } class Address < Increase::Internal::Type::BaseModel + attr_accessor city: String + attr_accessor country: String attr_accessor line1: String - attr_reader city: String? - - def city=: (String) -> String - attr_reader line2: String? def line2=: (String) -> String @@ -314,18 +312,18 @@ module Increase def zip=: (String) -> String def initialize: ( + city: String, country: String, line1: String, - ?city: String, ?line2: String, ?state: String, ?zip: String ) -> void def to_hash: -> { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String diff --git a/sig/increase/models/entity_update_beneficial_owner_address_params.rbs b/sig/increase/models/entity_update_beneficial_owner_address_params.rbs index 7116b2be9..50e025474 100644 --- a/sig/increase/models/entity_update_beneficial_owner_address_params.rbs +++ b/sig/increase/models/entity_update_beneficial_owner_address_params.rbs @@ -29,23 +29,21 @@ module Increase type address = { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String } class Address < Increase::Internal::Type::BaseModel + attr_accessor city: String + attr_accessor country: String attr_accessor line1: String - attr_reader city: String? - - def city=: (String) -> String - attr_reader line2: String? def line2=: (String) -> String @@ -59,18 +57,18 @@ module Increase def zip=: (String) -> String def initialize: ( + city: String, country: String, line1: String, - ?city: String, ?line2: String, ?state: String, ?zip: String ) -> void def to_hash: -> { + city: String, country: String, :line1 => String, - city: String, :line2 => String, state: String, zip: String diff --git a/test/increase/resources/entities_test.rb b/test/increase/resources/entities_test.rb index 401a5cd64..deaa1ffdc 100644 --- a/test/increase/resources/entities_test.rb +++ b/test/increase/resources/entities_test.rb @@ -188,7 +188,7 @@ def test_create_beneficial_owner_required_params "entity_id", beneficial_owner: { individual: { - address: {country: "US", line1: "33 Liberty Street"}, + address: {city: "New York", country: "US", line1: "33 Liberty Street"}, date_of_birth: "1970-01-31", identification: {method: :social_security_number, number: "078051120"}, name: "Ian Crease" @@ -258,7 +258,7 @@ def test_update_beneficial_owner_address_required_params response = @increase.entities.update_beneficial_owner_address( "entity_id", - address: {country: "US", line1: "33 Liberty Street"}, + address: {city: "New York", country: "US", line1: "33 Liberty Street"}, beneficial_owner_id: "entity_setup_beneficial_owner_submission_vgkyk7dj5eb4sfhdbkx7" ) From 34b2cd7c566907403e77d528d737537d44167e0f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 14 Aug 2025 05:56:09 +0000 Subject: [PATCH 2/2] release: 1.33.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 592b0e152..5334cb411 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.32.0" + ".": "1.33.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ec8beadd..e47241841 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.33.0 (2025-08-14) + +Full Changelog: [v1.32.0...v1.33.0](https://github.com/Increase/increase-ruby/compare/v1.32.0...v1.33.0) + +### Features + +* **api:** api update ([3a7dff1](https://github.com/Increase/increase-ruby/commit/3a7dff16065381bd9a3f2e8d49e87749679d9409)) + ## 1.32.0 (2025-08-13) Full Changelog: [v1.31.0...v1.32.0](https://github.com/Increase/increase-ruby/compare/v1.31.0...v1.32.0) diff --git a/Gemfile.lock b/Gemfile.lock index aed35f317..1194dd2bf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.32.0) + increase (1.33.0) connection_pool GEM diff --git a/README.md b/README.md index 55c5aa258..48a310189 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.32.0" +gem "increase", "~> 1.33.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index e8f681e33..60387332f 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.32.0" + VERSION = "1.33.0" end