From ebb31b6d4f44e5148de250a6231a96bdd2d978bd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 01:30:19 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/entity_update_params.rb | 86 ++++++++- lib/increase/resources/entities.rb | 10 +- rbi/increase/models/entity_update_params.rbi | 177 +++++++++++++++++++ rbi/increase/resources/entities.rbi | 13 ++ sig/increase/models/entity_update_params.rbs | 86 ++++++++- sig/increase/resources/entities.rbs | 4 + 7 files changed, 375 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7002ed35c..602fdb7cc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-166f5a60acb9f1b94415e641215f0988dc14a8bce6a0e1a95e521fdbb0b91243.yml -openapi_spec_hash: adbd71ae90ad4559759517a17c4fec08 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6d1cfc3f93b6829318d0905c04d24008ab3576d5c00d8eb17c7d55fc34beef9e.yml +openapi_spec_hash: 12f331a1ebc9c7c8465a850736a8d8c6 config_hash: 2a4a1945e6eefa24fa5b0590cf580fb4 diff --git a/lib/increase/models/entity_update_params.rb b/lib/increase/models/entity_update_params.rb index e6b7ac914..f60cfbb36 100644 --- a/lib/increase/models/entity_update_params.rb +++ b/lib/increase/models/entity_update_params.rb @@ -7,6 +7,24 @@ class EntityUpdateParams < Increase::Internal::Type::BaseModel extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters + # @!attribute corporation + # Details of the corporation entity to update. + # + # @return [Increase::Models::EntityUpdateParams::Corporation, nil] + optional :corporation, -> { Increase::EntityUpdateParams::Corporation } + + # @!attribute government_authority + # Details of the government authority entity to update. + # + # @return [Increase::Models::EntityUpdateParams::GovernmentAuthority, nil] + optional :government_authority, -> { Increase::EntityUpdateParams::GovernmentAuthority } + + # @!attribute natural_person + # Details of the natural person entity to update. + # + # @return [Increase::Models::EntityUpdateParams::NaturalPerson, nil] + optional :natural_person, -> { Increase::EntityUpdateParams::NaturalPerson } + # @!attribute risk_rating # An assessment of the entity’s potential risk of involvement in financial crimes, # such as money laundering. @@ -21,16 +39,69 @@ class EntityUpdateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::EntityUpdateParams::ThirdPartyVerification, nil] optional :third_party_verification, -> { Increase::EntityUpdateParams::ThirdPartyVerification } - # @!method initialize(risk_rating: nil, third_party_verification: nil, request_options: {}) + # @!attribute trust + # Details of the trust entity to update. + # + # @return [Increase::Models::EntityUpdateParams::Trust, nil] + optional :trust, -> { Increase::EntityUpdateParams::Trust } + + # @!method initialize(corporation: nil, government_authority: nil, natural_person: nil, risk_rating: nil, third_party_verification: nil, trust: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::EntityUpdateParams} for more details. # + # @param corporation [Increase::Models::EntityUpdateParams::Corporation] Details of the corporation entity to update. + # + # @param government_authority [Increase::Models::EntityUpdateParams::GovernmentAuthority] Details of the government authority entity to update. + # + # @param natural_person [Increase::Models::EntityUpdateParams::NaturalPerson] Details of the natural person entity to update. + # # @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes, # # @param third_party_verification [Increase::Models::EntityUpdateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati # + # @param trust [Increase::Models::EntityUpdateParams::Trust] Details of the trust entity to update. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + class Corporation < Increase::Internal::Type::BaseModel + # @!attribute name + # The legal name of the corporation. + # + # @return [String, nil] + optional :name, String + + # @!method initialize(name: nil) + # Details of the corporation entity to update. + # + # @param name [String] The legal name of the corporation. + end + + class GovernmentAuthority < Increase::Internal::Type::BaseModel + # @!attribute name + # The legal name of the government authority. + # + # @return [String, nil] + optional :name, String + + # @!method initialize(name: nil) + # Details of the government authority entity to update. + # + # @param name [String] The legal name of the government authority. + end + + class NaturalPerson < Increase::Internal::Type::BaseModel + # @!attribute name + # The legal name of the natural person. + # + # @return [String, nil] + optional :name, String + + # @!method initialize(name: nil) + # Details of the natural person entity to update. + # + # @param name [String] The legal name of the natural person. + end + class RiskRating < Increase::Internal::Type::BaseModel # @!attribute rated_at # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk @@ -116,6 +187,19 @@ module Vendor # @return [Array] end end + + class Trust < Increase::Internal::Type::BaseModel + # @!attribute name + # The legal name of the trust. + # + # @return [String, nil] + optional :name, String + + # @!method initialize(name: nil) + # Details of the trust entity to update. + # + # @param name [String] The legal name of the trust. + end end end end diff --git a/lib/increase/resources/entities.rb b/lib/increase/resources/entities.rb index 958b8205f..4d7139b58 100644 --- a/lib/increase/resources/entities.rb +++ b/lib/increase/resources/entities.rb @@ -71,14 +71,22 @@ def retrieve(entity_id, params = {}) # # Update an Entity # - # @overload update(entity_id, risk_rating: nil, third_party_verification: nil, request_options: {}) + # @overload update(entity_id, corporation: nil, government_authority: nil, natural_person: nil, risk_rating: nil, third_party_verification: nil, trust: nil, request_options: {}) # # @param entity_id [String] The entity identifier. # + # @param corporation [Increase::Models::EntityUpdateParams::Corporation] Details of the corporation entity to update. + # + # @param government_authority [Increase::Models::EntityUpdateParams::GovernmentAuthority] Details of the government authority entity to update. + # + # @param natural_person [Increase::Models::EntityUpdateParams::NaturalPerson] Details of the natural person entity to update. + # # @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes, # # @param third_party_verification [Increase::Models::EntityUpdateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati # + # @param trust [Increase::Models::EntityUpdateParams::Trust] Details of the trust entity to update. + # # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] # # @return [Increase::Models::Entity] diff --git a/rbi/increase/models/entity_update_params.rbi b/rbi/increase/models/entity_update_params.rbi index f2860140f..ea7a59a87 100644 --- a/rbi/increase/models/entity_update_params.rbi +++ b/rbi/increase/models/entity_update_params.rbi @@ -11,6 +11,42 @@ module Increase T.any(Increase::EntityUpdateParams, Increase::Internal::AnyHash) end + # Details of the corporation entity to update. + sig { returns(T.nilable(Increase::EntityUpdateParams::Corporation)) } + attr_reader :corporation + + sig do + params( + corporation: Increase::EntityUpdateParams::Corporation::OrHash + ).void + end + attr_writer :corporation + + # Details of the government authority entity to update. + sig do + returns(T.nilable(Increase::EntityUpdateParams::GovernmentAuthority)) + end + attr_reader :government_authority + + sig do + params( + government_authority: + Increase::EntityUpdateParams::GovernmentAuthority::OrHash + ).void + end + attr_writer :government_authority + + # Details of the natural person entity to update. + sig { returns(T.nilable(Increase::EntityUpdateParams::NaturalPerson)) } + attr_reader :natural_person + + sig do + params( + natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash + ).void + end + attr_writer :natural_person + # An assessment of the entity’s potential risk of involvement in financial crimes, # such as money laundering. sig { returns(T.nilable(Increase::EntityUpdateParams::RiskRating)) } @@ -38,21 +74,41 @@ module Increase end attr_writer :third_party_verification + # Details of the trust entity to update. + sig { returns(T.nilable(Increase::EntityUpdateParams::Trust)) } + attr_reader :trust + + sig { params(trust: Increase::EntityUpdateParams::Trust::OrHash).void } + attr_writer :trust + sig do params( + corporation: Increase::EntityUpdateParams::Corporation::OrHash, + government_authority: + Increase::EntityUpdateParams::GovernmentAuthority::OrHash, + natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash, risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash, third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification::OrHash, + trust: Increase::EntityUpdateParams::Trust::OrHash, request_options: Increase::RequestOptions::OrHash ).returns(T.attached_class) end def self.new( + # Details of the corporation entity to update. + corporation: nil, + # Details of the government authority entity to update. + government_authority: nil, + # Details of the natural person entity to update. + natural_person: nil, # An assessment of the entity’s potential risk of involvement in financial crimes, # such as money laundering. risk_rating: nil, # A reference to data stored in a third-party verification service. Your # integration may or may not use this field. third_party_verification: nil, + # Details of the trust entity to update. + trust: nil, request_options: {} ) end @@ -60,9 +116,14 @@ module Increase sig do override.returns( { + corporation: Increase::EntityUpdateParams::Corporation, + government_authority: + Increase::EntityUpdateParams::GovernmentAuthority, + natural_person: Increase::EntityUpdateParams::NaturalPerson, risk_rating: Increase::EntityUpdateParams::RiskRating, third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + trust: Increase::EntityUpdateParams::Trust, request_options: Increase::RequestOptions } ) @@ -70,6 +131,93 @@ module Increase def to_hash end + class Corporation < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::Corporation, + Increase::Internal::AnyHash + ) + end + + # The legal name of the corporation. + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # Details of the corporation entity to update. + sig { params(name: String).returns(T.attached_class) } + def self.new( + # The legal name of the corporation. + name: nil + ) + end + + sig { override.returns({ name: String }) } + def to_hash + end + end + + class GovernmentAuthority < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::GovernmentAuthority, + Increase::Internal::AnyHash + ) + end + + # The legal name of the government authority. + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # Details of the government authority entity to update. + sig { params(name: String).returns(T.attached_class) } + def self.new( + # The legal name of the government authority. + name: nil + ) + end + + sig { override.returns({ name: String }) } + def to_hash + end + end + + class NaturalPerson < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::NaturalPerson, + Increase::Internal::AnyHash + ) + end + + # The legal name of the natural person. + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # Details of the natural person entity to update. + sig { params(name: String).returns(T.attached_class) } + def self.new( + # The legal name of the natural person. + name: nil + ) + end + + sig { override.returns({ name: String }) } + def to_hash + end + end + class RiskRating < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -256,6 +404,35 @@ module Increase end end end + + class Trust < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::Trust, + Increase::Internal::AnyHash + ) + end + + # The legal name of the trust. + sig { returns(T.nilable(String)) } + attr_reader :name + + sig { params(name: String).void } + attr_writer :name + + # Details of the trust entity to update. + sig { params(name: String).returns(T.attached_class) } + def self.new( + # The legal name of the trust. + name: nil + ) + end + + sig { override.returns({ name: String }) } + def to_hash + end + end end end end diff --git a/rbi/increase/resources/entities.rbi b/rbi/increase/resources/entities.rbi index e2b48f260..4da68b315 100644 --- a/rbi/increase/resources/entities.rbi +++ b/rbi/increase/resources/entities.rbi @@ -76,21 +76,34 @@ module Increase sig do params( entity_id: String, + corporation: Increase::EntityUpdateParams::Corporation::OrHash, + government_authority: + Increase::EntityUpdateParams::GovernmentAuthority::OrHash, + natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash, risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash, third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification::OrHash, + trust: Increase::EntityUpdateParams::Trust::OrHash, request_options: Increase::RequestOptions::OrHash ).returns(Increase::Entity) end def update( # The entity identifier. entity_id, + # Details of the corporation entity to update. + corporation: nil, + # Details of the government authority entity to update. + government_authority: nil, + # Details of the natural person entity to update. + natural_person: nil, # An assessment of the entity’s potential risk of involvement in financial crimes, # such as money laundering. risk_rating: nil, # A reference to data stored in a third-party verification service. Your # integration may or may not use this field. third_party_verification: nil, + # Details of the trust entity to update. + trust: nil, request_options: {} ) end diff --git a/sig/increase/models/entity_update_params.rbs b/sig/increase/models/entity_update_params.rbs index 2cf2548c4..401d5515c 100644 --- a/sig/increase/models/entity_update_params.rbs +++ b/sig/increase/models/entity_update_params.rbs @@ -2,8 +2,12 @@ module Increase module Models type entity_update_params = { + corporation: Increase::EntityUpdateParams::Corporation, + government_authority: Increase::EntityUpdateParams::GovernmentAuthority, + natural_person: Increase::EntityUpdateParams::NaturalPerson, risk_rating: Increase::EntityUpdateParams::RiskRating, - third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification + third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + trust: Increase::EntityUpdateParams::Trust } & Increase::Internal::Type::request_parameters @@ -11,6 +15,24 @@ module Increase extend Increase::Internal::Type::RequestParameters::Converter include Increase::Internal::Type::RequestParameters + attr_reader corporation: Increase::EntityUpdateParams::Corporation? + + def corporation=: ( + Increase::EntityUpdateParams::Corporation + ) -> Increase::EntityUpdateParams::Corporation + + attr_reader government_authority: Increase::EntityUpdateParams::GovernmentAuthority? + + def government_authority=: ( + Increase::EntityUpdateParams::GovernmentAuthority + ) -> Increase::EntityUpdateParams::GovernmentAuthority + + attr_reader natural_person: Increase::EntityUpdateParams::NaturalPerson? + + def natural_person=: ( + Increase::EntityUpdateParams::NaturalPerson + ) -> Increase::EntityUpdateParams::NaturalPerson + attr_reader risk_rating: Increase::EntityUpdateParams::RiskRating? def risk_rating=: ( @@ -23,18 +45,68 @@ module Increase Increase::EntityUpdateParams::ThirdPartyVerification ) -> Increase::EntityUpdateParams::ThirdPartyVerification + attr_reader trust: Increase::EntityUpdateParams::Trust? + + def trust=: ( + Increase::EntityUpdateParams::Trust + ) -> Increase::EntityUpdateParams::Trust + def initialize: ( + ?corporation: Increase::EntityUpdateParams::Corporation, + ?government_authority: Increase::EntityUpdateParams::GovernmentAuthority, + ?natural_person: Increase::EntityUpdateParams::NaturalPerson, ?risk_rating: Increase::EntityUpdateParams::RiskRating, ?third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + ?trust: Increase::EntityUpdateParams::Trust, ?request_options: Increase::request_opts ) -> void def to_hash: -> { + corporation: Increase::EntityUpdateParams::Corporation, + government_authority: Increase::EntityUpdateParams::GovernmentAuthority, + natural_person: Increase::EntityUpdateParams::NaturalPerson, risk_rating: Increase::EntityUpdateParams::RiskRating, third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + trust: Increase::EntityUpdateParams::Trust, request_options: Increase::RequestOptions } + type corporation = { name: String } + + class Corporation < Increase::Internal::Type::BaseModel + attr_reader name: String? + + def name=: (String) -> String + + def initialize: (?name: String) -> void + + def to_hash: -> { name: String } + end + + type government_authority = { name: String } + + class GovernmentAuthority < Increase::Internal::Type::BaseModel + attr_reader name: String? + + def name=: (String) -> String + + def initialize: (?name: String) -> void + + def to_hash: -> { name: String } + end + + type natural_person = { name: String } + + class NaturalPerson < Increase::Internal::Type::BaseModel + attr_reader name: String? + + def name=: (String) -> String + + def initialize: (?name: String) -> void + + def to_hash: -> { name: String } + end + type risk_rating = { rated_at: Time, @@ -112,6 +184,18 @@ module Increase def self?.values: -> ::Array[Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor] end end + + type trust = { name: String } + + class Trust < Increase::Internal::Type::BaseModel + attr_reader name: String? + + def name=: (String) -> String + + def initialize: (?name: String) -> void + + def to_hash: -> { name: String } + end end end end diff --git a/sig/increase/resources/entities.rbs b/sig/increase/resources/entities.rbs index c518c7c9a..6155ca454 100644 --- a/sig/increase/resources/entities.rbs +++ b/sig/increase/resources/entities.rbs @@ -22,8 +22,12 @@ module Increase def update: ( String entity_id, + ?corporation: Increase::EntityUpdateParams::Corporation, + ?government_authority: Increase::EntityUpdateParams::GovernmentAuthority, + ?natural_person: Increase::EntityUpdateParams::NaturalPerson, ?risk_rating: Increase::EntityUpdateParams::RiskRating, ?third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + ?trust: Increase::EntityUpdateParams::Trust, ?request_options: Increase::request_opts ) -> Increase::Entity From 2aca960a3cf5c03b51514fb317ee1dff67ec0093 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 5 Sep 2025 01:30:37 +0000 Subject: [PATCH 2/2] release: 1.65.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 7ef7bb772..045e3819b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.64.0" + ".": "1.65.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cdf33ded7..aa69d8485 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.65.0 (2025-09-05) + +Full Changelog: [v1.64.0...v1.65.0](https://github.com/Increase/increase-ruby/compare/v1.64.0...v1.65.0) + +### Features + +* **api:** api update ([ebb31b6](https://github.com/Increase/increase-ruby/commit/ebb31b6d4f44e5148de250a6231a96bdd2d978bd)) + ## 1.64.0 (2025-09-04) Full Changelog: [v1.63.0...v1.64.0](https://github.com/Increase/increase-ruby/compare/v1.63.0...v1.64.0) diff --git a/Gemfile.lock b/Gemfile.lock index 5ff6193b4..e2604cda1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.64.0) + increase (1.65.0) connection_pool GEM diff --git a/README.md b/README.md index 59746b37f..8b4456e67 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.64.0" +gem "increase", "~> 1.65.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 8cf149cc1..6d05e32ff 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.64.0" + VERSION = "1.65.0" end