diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 7b243c591..7ef7bb772 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.63.0" + ".": "1.64.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 4046227bc..7002ed35c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ -configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fbdfb5721d0c46a176ee6d81936d2710556c39cc486c5de246cc17b0503ee408.yml -openapi_spec_hash: 66c900a94b458e5b796ac1d2a5fceb13 -config_hash: 632b628b59d8f0b717153b3d8133f6cb +configured_endpoints: 217 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-166f5a60acb9f1b94415e641215f0988dc14a8bce6a0e1a95e521fdbb0b91243.yml +openapi_spec_hash: adbd71ae90ad4559759517a17c4fec08 +config_hash: 2a4a1945e6eefa24fa5b0590cf580fb4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a55a00a6..cdf33ded7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 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) + +### Features + +* **api:** api update ([8a7c3b9](https://github.com/Increase/increase-ruby/commit/8a7c3b9792f9aa78a9193f3594ab20f3793de872)) + ## 1.63.0 (2025-09-04) Full Changelog: [v1.62.0...v1.63.0](https://github.com/Increase/increase-ruby/compare/v1.62.0...v1.63.0) diff --git a/Gemfile.lock b/Gemfile.lock index 75f2d67f5..5ff6193b4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.63.0) + increase (1.64.0) connection_pool GEM diff --git a/README.md b/README.md index 98a60c8b2..59746b37f 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.63.0" +gem "increase", "~> 1.64.0" ``` diff --git a/lib/increase.rb b/lib/increase.rb index a5ef81f19..aed6ea993 100644 --- a/lib/increase.rb +++ b/lib/increase.rb @@ -169,6 +169,7 @@ require_relative "increase/models/entity_update_address_params" require_relative "increase/models/entity_update_beneficial_owner_address_params" require_relative "increase/models/entity_update_industry_code_params" +require_relative "increase/models/entity_update_params" require_relative "increase/models/event" require_relative "increase/models/event_list_params" require_relative "increase/models/event_retrieve_params" diff --git a/lib/increase/models.rb b/lib/increase/models.rb index 4b095fe26..8d70eb83c 100644 --- a/lib/increase/models.rb +++ b/lib/increase/models.rb @@ -275,6 +275,8 @@ module Increase EntityUpdateIndustryCodeParams = Increase::Models::EntityUpdateIndustryCodeParams + EntityUpdateParams = Increase::Models::EntityUpdateParams + Event = Increase::Models::Event EventListParams = Increase::Models::EventListParams diff --git a/lib/increase/models/entity.rb b/lib/increase/models/entity.rb index 44d0c362d..9d2902aa2 100644 --- a/lib/increase/models/entity.rb +++ b/lib/increase/models/entity.rb @@ -65,6 +65,13 @@ class Entity < Increase::Internal::Type::BaseModel # @return [Increase::Models::Entity::NaturalPerson, nil] required :natural_person, -> { Increase::Entity::NaturalPerson }, nil?: true + # @!attribute risk_rating + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @return [Increase::Models::Entity::RiskRating, nil] + required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true + # @!attribute status # The status of the entity. # @@ -106,7 +113,7 @@ class Entity < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::Entity::Type] required :type, enum: -> { Increase::Entity::Type } - # @!method initialize(id:, corporation:, created_at:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, status:, structure:, supplemental_documents:, third_party_verification:, trust:, type:) + # @!method initialize(id:, corporation:, created_at:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, status:, structure:, supplemental_documents:, third_party_verification:, trust:, type:) # Some parameter documentations has been truncated, see {Increase::Models::Entity} # for more details. # @@ -131,6 +138,8 @@ class Entity < Increase::Internal::Type::BaseModel # # @param natural_person [Increase::Models::Entity::NaturalPerson, nil] Details of the natural person entity. Will be present if `structure` is equal to # + # @param risk_rating [Increase::Models::Entity::RiskRating, nil] An assessment of the entity’s potential risk of involvement in financial crimes, + # # @param status [Symbol, Increase::Models::Entity::Status] The status of the entity. # # @param structure [Symbol, Increase::Models::Entity::Structure] The entity's legal structure. @@ -919,6 +928,52 @@ module Method end end + # @see Increase::Models::Entity#risk_rating + class RiskRating < Increase::Internal::Type::BaseModel + # @!attribute rated_at + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + # + # @return [Time] + required :rated_at, Time + + # @!attribute rating + # The rating given to this entity. + # + # @return [Symbol, Increase::Models::Entity::RiskRating::Rating] + required :rating, enum: -> { Increase::Entity::RiskRating::Rating } + + # @!method initialize(rated_at:, rating:) + # Some parameter documentations has been truncated, see + # {Increase::Models::Entity::RiskRating} for more details. + # + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra + # + # @param rating [Symbol, Increase::Models::Entity::RiskRating::Rating] The rating given to this entity. + + # The rating given to this entity. + # + # @see Increase::Models::Entity::RiskRating#rating + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW = :low + + # Medium + MEDIUM = :medium + + # High + HIGH = :high + + # @!method self.values + # @return [Array] + end + end + # The status of the entity. # # @see Increase::Models::Entity#status diff --git a/lib/increase/models/entity_create_params.rb b/lib/increase/models/entity_create_params.rb index 79f1bf308..3d4b300b3 100644 --- a/lib/increase/models/entity_create_params.rb +++ b/lib/increase/models/entity_create_params.rb @@ -49,6 +49,13 @@ class EntityCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::EntityCreateParams::NaturalPerson, nil] optional :natural_person, -> { Increase::EntityCreateParams::NaturalPerson } + # @!attribute risk_rating + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @return [Increase::Models::EntityCreateParams::RiskRating, nil] + optional :risk_rating, -> { Increase::EntityCreateParams::RiskRating } + # @!attribute supplemental_documents # Additional documentation associated with the entity. # @@ -70,7 +77,7 @@ class EntityCreateParams < Increase::Internal::Type::BaseModel # @return [Increase::Models::EntityCreateParams::Trust, nil] optional :trust, -> { Increase::EntityCreateParams::Trust } - # @!method initialize(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) + # @!method initialize(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, risk_rating: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) # Some parameter documentations has been truncated, see # {Increase::Models::EntityCreateParams} for more details. # @@ -86,6 +93,8 @@ class EntityCreateParams < Increase::Internal::Type::BaseModel # # @param natural_person [Increase::Models::EntityCreateParams::NaturalPerson] Details of the natural person entity to create. Required if `structure` is equal # + # @param risk_rating [Increase::Models::EntityCreateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes, + # # @param supplemental_documents [Array] Additional documentation associated with the entity. # # @param third_party_verification [Increase::Models::EntityCreateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati @@ -1436,6 +1445,51 @@ class Passport < Increase::Internal::Type::BaseModel end 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 + # rating was performed. + # + # @return [Time] + required :rated_at, Time + + # @!attribute rating + # The rating given to this entity. + # + # @return [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating] + required :rating, enum: -> { Increase::EntityCreateParams::RiskRating::Rating } + + # @!method initialize(rated_at:, rating:) + # Some parameter documentations has been truncated, see + # {Increase::Models::EntityCreateParams::RiskRating} for more details. + # + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra + # + # @param rating [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating] The rating given to this entity. + + # The rating given to this entity. + # + # @see Increase::Models::EntityCreateParams::RiskRating#rating + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW = :low + + # Medium + MEDIUM = :medium + + # High + HIGH = :high + + # @!method self.values + # @return [Array] + end + end + class SupplementalDocument < Increase::Internal::Type::BaseModel # @!attribute file_id # The identifier of the File containing the document. diff --git a/lib/increase/models/entity_update_params.rb b/lib/increase/models/entity_update_params.rb new file mode 100644 index 000000000..e6b7ac914 --- /dev/null +++ b/lib/increase/models/entity_update_params.rb @@ -0,0 +1,121 @@ +# frozen_string_literal: true + +module Increase + module Models + # @see Increase::Resources::Entities#update + class EntityUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + # @!attribute risk_rating + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @return [Increase::Models::EntityUpdateParams::RiskRating, nil] + optional :risk_rating, -> { Increase::EntityUpdateParams::RiskRating } + + # @!attribute third_party_verification + # A reference to data stored in a third-party verification service. Your + # integration may or may not use this field. + # + # @return [Increase::Models::EntityUpdateParams::ThirdPartyVerification, nil] + optional :third_party_verification, -> { Increase::EntityUpdateParams::ThirdPartyVerification } + + # @!method initialize(risk_rating: nil, third_party_verification: nil, request_options: {}) + # Some parameter documentations has been truncated, see + # {Increase::Models::EntityUpdateParams} for more details. + # + # @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 request_options [Increase::RequestOptions, Hash{Symbol=>Object}] + + class RiskRating < Increase::Internal::Type::BaseModel + # @!attribute rated_at + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + # + # @return [Time] + required :rated_at, Time + + # @!attribute rating + # The rating given to this entity. + # + # @return [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating] + required :rating, enum: -> { Increase::EntityUpdateParams::RiskRating::Rating } + + # @!method initialize(rated_at:, rating:) + # Some parameter documentations has been truncated, see + # {Increase::Models::EntityUpdateParams::RiskRating} for more details. + # + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + # + # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra + # + # @param rating [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating] The rating given to this entity. + + # The rating given to this entity. + # + # @see Increase::Models::EntityUpdateParams::RiskRating#rating + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW = :low + + # Medium + MEDIUM = :medium + + # High + HIGH = :high + + # @!method self.values + # @return [Array] + end + end + + class ThirdPartyVerification < Increase::Internal::Type::BaseModel + # @!attribute reference + # The reference identifier for the third party verification. + # + # @return [String] + required :reference, String + + # @!attribute vendor + # The vendor that was used to perform the verification. + # + # @return [Symbol, Increase::Models::EntityUpdateParams::ThirdPartyVerification::Vendor] + required :vendor, enum: -> { Increase::EntityUpdateParams::ThirdPartyVerification::Vendor } + + # @!method initialize(reference:, vendor:) + # A reference to data stored in a third-party verification service. Your + # integration may or may not use this field. + # + # @param reference [String] The reference identifier for the third party verification. + # + # @param vendor [Symbol, Increase::Models::EntityUpdateParams::ThirdPartyVerification::Vendor] The vendor that was used to perform the verification. + + # The vendor that was used to perform the verification. + # + # @see Increase::Models::EntityUpdateParams::ThirdPartyVerification#vendor + module Vendor + extend Increase::Internal::Type::Enum + + # Alloy. See https://alloy.com for more information. + ALLOY = :alloy + + # Middesk. See https://middesk.com for more information. + MIDDESK = :middesk + + # Oscilar. See https://oscilar.com for more information. + OSCILAR = :oscilar + + # @!method self.values + # @return [Array] + end + end + end + end +end diff --git a/lib/increase/resources/entities.rb b/lib/increase/resources/entities.rb index fd89ae74a..958b8205f 100644 --- a/lib/increase/resources/entities.rb +++ b/lib/increase/resources/entities.rb @@ -8,7 +8,7 @@ class Entities # # Create an Entity # - # @overload create(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) + # @overload create(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, risk_rating: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {}) # # @param structure [Symbol, Increase::Models::EntityCreateParams::Structure] The type of Entity to create. # @@ -22,6 +22,8 @@ class Entities # # @param natural_person [Increase::Models::EntityCreateParams::NaturalPerson] Details of the natural person entity to create. Required if `structure` is equal # + # @param risk_rating [Increase::Models::EntityCreateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes, + # # @param supplemental_documents [Array] Additional documentation associated with the entity. # # @param third_party_verification [Increase::Models::EntityCreateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati @@ -64,6 +66,35 @@ def retrieve(entity_id, params = {}) ) end + # Some parameter documentations has been truncated, see + # {Increase::Models::EntityUpdateParams} for more details. + # + # Update an Entity + # + # @overload update(entity_id, risk_rating: nil, third_party_verification: nil, request_options: {}) + # + # @param entity_id [String] The entity identifier. + # + # @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 request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil] + # + # @return [Increase::Models::Entity] + # + # @see Increase::Models::EntityUpdateParams + def update(entity_id, params = {}) + parsed, options = Increase::EntityUpdateParams.dump_request(params) + @client.request( + method: :patch, + path: ["entities/%1$s", entity_id], + body: parsed, + model: Increase::Entity, + options: options + ) + end + # Some parameter documentations has been truncated, see # {Increase::Models::EntityListParams} for more details. # diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 57132c625..8cf149cc1 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.63.0" + VERSION = "1.64.0" end diff --git a/rbi/increase/models.rbi b/rbi/increase/models.rbi index dab9010e8..adb160b87 100644 --- a/rbi/increase/models.rbi +++ b/rbi/increase/models.rbi @@ -265,6 +265,8 @@ module Increase EntityUpdateIndustryCodeParams = Increase::Models::EntityUpdateIndustryCodeParams + EntityUpdateParams = Increase::Models::EntityUpdateParams + Event = Increase::Models::Event EventListParams = Increase::Models::EventListParams diff --git a/rbi/increase/models/entity.rbi b/rbi/increase/models/entity.rbi index 1e73844e8..1c48c09b0 100644 --- a/rbi/increase/models/entity.rbi +++ b/rbi/increase/models/entity.rbi @@ -74,6 +74,18 @@ module Increase 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::Entity::RiskRating)) } + attr_reader :risk_rating + + sig do + params( + risk_rating: T.nilable(Increase::Entity::RiskRating::OrHash) + ).void + end + attr_writer :risk_rating + # The status of the entity. sig { returns(Increase::Entity::Status::TaggedSymbol) } attr_accessor :status @@ -127,6 +139,7 @@ module Increase idempotency_key: T.nilable(String), joint: T.nilable(Increase::Entity::Joint::OrHash), natural_person: T.nilable(Increase::Entity::NaturalPerson::OrHash), + risk_rating: T.nilable(Increase::Entity::RiskRating::OrHash), status: Increase::Entity::Status::OrSymbol, structure: Increase::Entity::Structure::OrSymbol, supplemental_documents: @@ -163,6 +176,9 @@ module Increase # Details of the natural person entity. Will be present if `structure` is equal to # `natural_person`. natural_person:, + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + risk_rating:, # The status of the entity. status:, # The entity's legal structure. @@ -195,6 +211,7 @@ module Increase idempotency_key: T.nilable(String), joint: T.nilable(Increase::Entity::Joint), natural_person: T.nilable(Increase::Entity::NaturalPerson), + risk_rating: T.nilable(Increase::Entity::RiskRating), status: Increase::Entity::Status::TaggedSymbol, structure: Increase::Entity::Structure::TaggedSymbol, supplemental_documents: @@ -1572,6 +1589,78 @@ module Increase end end + class RiskRating < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Increase::Entity::RiskRating, Increase::Internal::AnyHash) + end + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + sig { returns(Time) } + attr_accessor :rated_at + + # The rating given to this entity. + sig { returns(Increase::Entity::RiskRating::Rating::TaggedSymbol) } + attr_accessor :rating + + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + sig do + params( + rated_at: Time, + rating: Increase::Entity::RiskRating::Rating::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + rated_at:, + # The rating given to this entity. + rating: + ) + end + + sig do + override.returns( + { + rated_at: Time, + rating: Increase::Entity::RiskRating::Rating::TaggedSymbol + } + ) + end + def to_hash + end + + # The rating given to this entity. + module Rating + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias { T.all(Symbol, Increase::Entity::RiskRating::Rating) } + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Low + LOW = T.let(:low, Increase::Entity::RiskRating::Rating::TaggedSymbol) + + # Medium + MEDIUM = + T.let(:medium, Increase::Entity::RiskRating::Rating::TaggedSymbol) + + # High + HIGH = + T.let(:high, Increase::Entity::RiskRating::Rating::TaggedSymbol) + + sig do + override.returns( + T::Array[Increase::Entity::RiskRating::Rating::TaggedSymbol] + ) + end + def self.values + end + end + end + # The status of the entity. module Status extend Increase::Internal::Type::Enum diff --git a/rbi/increase/models/entity_create_params.rbi b/rbi/increase/models/entity_create_params.rbi index 05721dc50..de0e10673 100644 --- a/rbi/increase/models/entity_create_params.rbi +++ b/rbi/increase/models/entity_create_params.rbi @@ -71,6 +71,18 @@ module Increase 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::EntityCreateParams::RiskRating)) } + attr_reader :risk_rating + + sig do + params( + risk_rating: Increase::EntityCreateParams::RiskRating::OrHash + ).void + end + attr_writer :risk_rating + # Additional documentation associated with the entity. sig do returns( @@ -121,6 +133,7 @@ module Increase Increase::EntityCreateParams::GovernmentAuthority::OrHash, joint: Increase::EntityCreateParams::Joint::OrHash, natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash, + risk_rating: Increase::EntityCreateParams::RiskRating::OrHash, supplemental_documents: T::Array[ Increase::EntityCreateParams::SupplementalDocument::OrHash @@ -150,6 +163,9 @@ module Increase # `social_security_number` or `individual_taxpayer_identification_number` # identification methods. natural_person: nil, + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + risk_rating: nil, # Additional documentation associated with the entity. supplemental_documents: nil, # A reference to data stored in a third-party verification service. Your @@ -172,6 +188,7 @@ module Increase Increase::EntityCreateParams::GovernmentAuthority, joint: Increase::EntityCreateParams::Joint, natural_person: Increase::EntityCreateParams::NaturalPerson, + risk_rating: Increase::EntityCreateParams::RiskRating, supplemental_documents: T::Array[Increase::EntityCreateParams::SupplementalDocument], third_party_verification: @@ -2630,6 +2647,97 @@ module Increase end end + class RiskRating < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityCreateParams::RiskRating, + Increase::Internal::AnyHash + ) + end + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + sig { returns(Time) } + attr_accessor :rated_at + + # The rating given to this entity. + sig do + returns(Increase::EntityCreateParams::RiskRating::Rating::OrSymbol) + end + attr_accessor :rating + + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + sig do + params( + rated_at: Time, + rating: Increase::EntityCreateParams::RiskRating::Rating::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + rated_at:, + # The rating given to this entity. + rating: + ) + end + + sig do + override.returns( + { + rated_at: Time, + rating: Increase::EntityCreateParams::RiskRating::Rating::OrSymbol + } + ) + end + def to_hash + end + + # The rating given to this entity. + module Rating + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::EntityCreateParams::RiskRating::Rating) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Low + LOW = + T.let( + :low, + Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol + ) + + # Medium + MEDIUM = + T.let( + :medium, + Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol + ) + + # High + HIGH = + T.let( + :high, + Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::EntityCreateParams::RiskRating::Rating::TaggedSymbol + ] + ) + end + def self.values + end + end + end + class SupplementalDocument < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/entity_update_params.rbi b/rbi/increase/models/entity_update_params.rbi new file mode 100644 index 000000000..f2860140f --- /dev/null +++ b/rbi/increase/models/entity_update_params.rbi @@ -0,0 +1,261 @@ +# typed: strong + +module Increase + module Models + class EntityUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + OrHash = + T.type_alias do + T.any(Increase::EntityUpdateParams, Increase::Internal::AnyHash) + end + + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + sig { returns(T.nilable(Increase::EntityUpdateParams::RiskRating)) } + attr_reader :risk_rating + + sig do + params( + risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash + ).void + end + attr_writer :risk_rating + + # A reference to data stored in a third-party verification service. Your + # integration may or may not use this field. + sig do + returns(T.nilable(Increase::EntityUpdateParams::ThirdPartyVerification)) + end + attr_reader :third_party_verification + + sig do + params( + third_party_verification: + Increase::EntityUpdateParams::ThirdPartyVerification::OrHash + ).void + end + attr_writer :third_party_verification + + sig do + params( + risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash, + third_party_verification: + Increase::EntityUpdateParams::ThirdPartyVerification::OrHash, + request_options: Increase::RequestOptions::OrHash + ).returns(T.attached_class) + end + def self.new( + # 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, + request_options: {} + ) + end + + sig do + override.returns( + { + risk_rating: Increase::EntityUpdateParams::RiskRating, + third_party_verification: + Increase::EntityUpdateParams::ThirdPartyVerification, + request_options: Increase::RequestOptions + } + ) + end + def to_hash + end + + class RiskRating < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::RiskRating, + Increase::Internal::AnyHash + ) + end + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + sig { returns(Time) } + attr_accessor :rated_at + + # The rating given to this entity. + sig do + returns(Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol) + end + attr_accessor :rating + + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + sig do + params( + rated_at: Time, + rating: Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk + # rating was performed. + rated_at:, + # The rating given to this entity. + rating: + ) + end + + sig do + override.returns( + { + rated_at: Time, + rating: Increase::EntityUpdateParams::RiskRating::Rating::OrSymbol + } + ) + end + def to_hash + end + + # The rating given to this entity. + module Rating + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::EntityUpdateParams::RiskRating::Rating) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Low + LOW = + T.let( + :low, + Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol + ) + + # Medium + MEDIUM = + T.let( + :medium, + Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol + ) + + # High + HIGH = + T.let( + :high, + Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::EntityUpdateParams::RiskRating::Rating::TaggedSymbol + ] + ) + end + def self.values + end + end + end + + class ThirdPartyVerification < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::EntityUpdateParams::ThirdPartyVerification, + Increase::Internal::AnyHash + ) + end + + # The reference identifier for the third party verification. + sig { returns(String) } + attr_accessor :reference + + # The vendor that was used to perform the verification. + sig do + returns( + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol + ) + end + attr_accessor :vendor + + # A reference to data stored in a third-party verification service. Your + # integration may or may not use this field. + sig do + params( + reference: String, + vendor: + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol + ).returns(T.attached_class) + end + def self.new( + # The reference identifier for the third party verification. + reference:, + # The vendor that was used to perform the verification. + vendor: + ) + end + + sig do + override.returns( + { + reference: String, + vendor: + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::OrSymbol + } + ) + end + def to_hash + end + + # The vendor that was used to perform the verification. + module Vendor + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Alloy. See https://alloy.com for more information. + ALLOY = + T.let( + :alloy, + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol + ) + + # Middesk. See https://middesk.com for more information. + MIDDESK = + T.let( + :middesk, + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol + ) + + # Oscilar. See https://oscilar.com for more information. + OSCILAR = + T.let( + :oscilar, + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::EntityUpdateParams::ThirdPartyVerification::Vendor::TaggedSymbol + ] + ) + end + def self.values + end + end + end + end + end +end diff --git a/rbi/increase/resources/entities.rbi b/rbi/increase/resources/entities.rbi index 93adc03d7..e2b48f260 100644 --- a/rbi/increase/resources/entities.rbi +++ b/rbi/increase/resources/entities.rbi @@ -13,6 +13,7 @@ module Increase Increase::EntityCreateParams::GovernmentAuthority::OrHash, joint: Increase::EntityCreateParams::Joint::OrHash, natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash, + risk_rating: Increase::EntityCreateParams::RiskRating::OrHash, supplemental_documents: T::Array[ Increase::EntityCreateParams::SupplementalDocument::OrHash @@ -42,6 +43,9 @@ module Increase # `social_security_number` or `individual_taxpayer_identification_number` # identification methods. natural_person: nil, + # An assessment of the entity’s potential risk of involvement in financial crimes, + # such as money laundering. + risk_rating: nil, # Additional documentation associated with the entity. supplemental_documents: nil, # A reference to data stored in a third-party verification service. Your @@ -68,6 +72,29 @@ module Increase ) end + # Update an Entity + sig do + params( + entity_id: String, + risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash, + third_party_verification: + Increase::EntityUpdateParams::ThirdPartyVerification::OrHash, + request_options: Increase::RequestOptions::OrHash + ).returns(Increase::Entity) + end + def update( + # The entity identifier. + entity_id, + # 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, + request_options: {} + ) + end + # List Entities sig do params( diff --git a/sig/increase/models.rbs b/sig/increase/models.rbs index d9c1d3c34..8c35b5948 100644 --- a/sig/increase/models.rbs +++ b/sig/increase/models.rbs @@ -235,6 +235,8 @@ module Increase class EntityUpdateIndustryCodeParams = Increase::Models::EntityUpdateIndustryCodeParams + class EntityUpdateParams = Increase::Models::EntityUpdateParams + class Event = Increase::Models::Event class EventListParams = Increase::Models::EventListParams diff --git a/sig/increase/models/entity.rbs b/sig/increase/models/entity.rbs index 8d32618cd..1bd18f90b 100644 --- a/sig/increase/models/entity.rbs +++ b/sig/increase/models/entity.rbs @@ -11,6 +11,7 @@ module Increase idempotency_key: String?, joint: Increase::Entity::Joint?, natural_person: Increase::Entity::NaturalPerson?, + risk_rating: Increase::Entity::RiskRating?, status: Increase::Models::Entity::status, structure: Increase::Models::Entity::structure, supplemental_documents: ::Array[Increase::EntitySupplementalDocument], @@ -38,6 +39,8 @@ module Increase attr_accessor natural_person: Increase::Entity::NaturalPerson? + attr_accessor risk_rating: Increase::Entity::RiskRating? + attr_accessor status: Increase::Models::Entity::status attr_accessor structure: Increase::Models::Entity::structure @@ -60,6 +63,7 @@ module Increase idempotency_key: String?, joint: Increase::Entity::Joint?, natural_person: Increase::Entity::NaturalPerson?, + risk_rating: Increase::Entity::RiskRating?, status: Increase::Models::Entity::status, structure: Increase::Models::Entity::structure, supplemental_documents: ::Array[Increase::EntitySupplementalDocument], @@ -78,6 +82,7 @@ module Increase idempotency_key: String?, joint: Increase::Entity::Joint?, natural_person: Increase::Entity::NaturalPerson?, + risk_rating: Increase::Entity::RiskRating?, status: Increase::Models::Entity::status, structure: Increase::Models::Entity::structure, supplemental_documents: ::Array[Increase::EntitySupplementalDocument], @@ -712,6 +717,42 @@ module Increase end end + type risk_rating = + { rated_at: Time, rating: Increase::Models::Entity::RiskRating::rating } + + class RiskRating < Increase::Internal::Type::BaseModel + attr_accessor rated_at: Time + + attr_accessor rating: Increase::Models::Entity::RiskRating::rating + + def initialize: ( + rated_at: Time, + rating: Increase::Models::Entity::RiskRating::rating + ) -> void + + def to_hash: -> { + rated_at: Time, + rating: Increase::Models::Entity::RiskRating::rating + } + + type rating = :low | :medium | :high + + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW: :low + + # Medium + MEDIUM: :medium + + # High + HIGH: :high + + def self?.values: -> ::Array[Increase::Models::Entity::RiskRating::rating] + end + end + type status = :active | :archived | :disabled module Status diff --git a/sig/increase/models/entity_create_params.rbs b/sig/increase/models/entity_create_params.rbs index 588f9a254..4eb87c9a8 100644 --- a/sig/increase/models/entity_create_params.rbs +++ b/sig/increase/models/entity_create_params.rbs @@ -8,6 +8,7 @@ module Increase government_authority: Increase::EntityCreateParams::GovernmentAuthority, joint: Increase::EntityCreateParams::Joint, natural_person: Increase::EntityCreateParams::NaturalPerson, + risk_rating: Increase::EntityCreateParams::RiskRating, supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument], third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification, trust: Increase::EntityCreateParams::Trust @@ -48,6 +49,12 @@ module Increase Increase::EntityCreateParams::NaturalPerson ) -> Increase::EntityCreateParams::NaturalPerson + attr_reader risk_rating: Increase::EntityCreateParams::RiskRating? + + def risk_rating=: ( + Increase::EntityCreateParams::RiskRating + ) -> Increase::EntityCreateParams::RiskRating + attr_reader supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument]? def supplemental_documents=: ( @@ -73,6 +80,7 @@ module Increase ?government_authority: Increase::EntityCreateParams::GovernmentAuthority, ?joint: Increase::EntityCreateParams::Joint, ?natural_person: Increase::EntityCreateParams::NaturalPerson, + ?risk_rating: Increase::EntityCreateParams::RiskRating, ?supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument], ?third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification, ?trust: Increase::EntityCreateParams::Trust, @@ -86,6 +94,7 @@ module Increase government_authority: Increase::EntityCreateParams::GovernmentAuthority, joint: Increase::EntityCreateParams::Joint, natural_person: Increase::EntityCreateParams::NaturalPerson, + risk_rating: Increase::EntityCreateParams::RiskRating, supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument], third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification, trust: Increase::EntityCreateParams::Trust, @@ -1179,6 +1188,45 @@ module Increase end end + type risk_rating = + { + rated_at: Time, + rating: Increase::Models::EntityCreateParams::RiskRating::rating + } + + class RiskRating < Increase::Internal::Type::BaseModel + attr_accessor rated_at: Time + + attr_accessor rating: Increase::Models::EntityCreateParams::RiskRating::rating + + def initialize: ( + rated_at: Time, + rating: Increase::Models::EntityCreateParams::RiskRating::rating + ) -> void + + def to_hash: -> { + rated_at: Time, + rating: Increase::Models::EntityCreateParams::RiskRating::rating + } + + type rating = :low | :medium | :high + + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW: :low + + # Medium + MEDIUM: :medium + + # High + HIGH: :high + + def self?.values: -> ::Array[Increase::Models::EntityCreateParams::RiskRating::rating] + end + end + type supplemental_document = { file_id: String } class SupplementalDocument < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/entity_update_params.rbs b/sig/increase/models/entity_update_params.rbs new file mode 100644 index 000000000..2cf2548c4 --- /dev/null +++ b/sig/increase/models/entity_update_params.rbs @@ -0,0 +1,117 @@ +module Increase + module Models + type entity_update_params = + { + risk_rating: Increase::EntityUpdateParams::RiskRating, + third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification + } + & Increase::Internal::Type::request_parameters + + class EntityUpdateParams < Increase::Internal::Type::BaseModel + extend Increase::Internal::Type::RequestParameters::Converter + include Increase::Internal::Type::RequestParameters + + attr_reader risk_rating: Increase::EntityUpdateParams::RiskRating? + + def risk_rating=: ( + Increase::EntityUpdateParams::RiskRating + ) -> Increase::EntityUpdateParams::RiskRating + + attr_reader third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification? + + def third_party_verification=: ( + Increase::EntityUpdateParams::ThirdPartyVerification + ) -> Increase::EntityUpdateParams::ThirdPartyVerification + + def initialize: ( + ?risk_rating: Increase::EntityUpdateParams::RiskRating, + ?third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + ?request_options: Increase::request_opts + ) -> void + + def to_hash: -> { + risk_rating: Increase::EntityUpdateParams::RiskRating, + third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + request_options: Increase::RequestOptions + } + + type risk_rating = + { + rated_at: Time, + rating: Increase::Models::EntityUpdateParams::RiskRating::rating + } + + class RiskRating < Increase::Internal::Type::BaseModel + attr_accessor rated_at: Time + + attr_accessor rating: Increase::Models::EntityUpdateParams::RiskRating::rating + + def initialize: ( + rated_at: Time, + rating: Increase::Models::EntityUpdateParams::RiskRating::rating + ) -> void + + def to_hash: -> { + rated_at: Time, + rating: Increase::Models::EntityUpdateParams::RiskRating::rating + } + + type rating = :low | :medium | :high + + module Rating + extend Increase::Internal::Type::Enum + + # Low + LOW: :low + + # Medium + MEDIUM: :medium + + # High + HIGH: :high + + def self?.values: -> ::Array[Increase::Models::EntityUpdateParams::RiskRating::rating] + end + end + + type third_party_verification = + { + reference: String, + vendor: Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor + } + + class ThirdPartyVerification < Increase::Internal::Type::BaseModel + attr_accessor reference: String + + attr_accessor vendor: Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor + + def initialize: ( + reference: String, + vendor: Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor + ) -> void + + def to_hash: -> { + reference: String, + vendor: Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor + } + + type vendor = :alloy | :middesk | :oscilar + + module Vendor + extend Increase::Internal::Type::Enum + + # Alloy. See https://alloy.com for more information. + ALLOY: :alloy + + # Middesk. See https://middesk.com for more information. + MIDDESK: :middesk + + # Oscilar. See https://oscilar.com for more information. + OSCILAR: :oscilar + + def self?.values: -> ::Array[Increase::Models::EntityUpdateParams::ThirdPartyVerification::vendor] + end + end + end + end +end diff --git a/sig/increase/resources/entities.rbs b/sig/increase/resources/entities.rbs index c173c0c1a..c518c7c9a 100644 --- a/sig/increase/resources/entities.rbs +++ b/sig/increase/resources/entities.rbs @@ -8,6 +8,7 @@ module Increase ?government_authority: Increase::EntityCreateParams::GovernmentAuthority, ?joint: Increase::EntityCreateParams::Joint, ?natural_person: Increase::EntityCreateParams::NaturalPerson, + ?risk_rating: Increase::EntityCreateParams::RiskRating, ?supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument], ?third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification, ?trust: Increase::EntityCreateParams::Trust, @@ -19,6 +20,13 @@ module Increase ?request_options: Increase::request_opts ) -> Increase::Entity + def update: ( + String entity_id, + ?risk_rating: Increase::EntityUpdateParams::RiskRating, + ?third_party_verification: Increase::EntityUpdateParams::ThirdPartyVerification, + ?request_options: Increase::request_opts + ) -> Increase::Entity + def list: ( ?created_at: Increase::EntityListParams::CreatedAt, ?cursor: String, diff --git a/test/increase/resources/entities_test.rb b/test/increase/resources/entities_test.rb index deaa1ffdc..dc7e628ae 100644 --- a/test/increase/resources/entities_test.rb +++ b/test/increase/resources/entities_test.rb @@ -21,6 +21,7 @@ def test_create_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -49,6 +50,36 @@ def test_retrieve idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, + status: Increase::Entity::Status, + structure: Increase::Entity::Structure, + supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), + third_party_verification: Increase::Entity::ThirdPartyVerification | nil, + trust: Increase::Entity::Trust | nil, + type: Increase::Entity::Type + } + end + end + + def test_update + response = @increase.entities.update("entity_id") + + assert_pattern do + response => Increase::Entity + end + + assert_pattern do + response => { + id: String, + corporation: Increase::Entity::Corporation | nil, + created_at: Time, + description: String | nil, + details_confirmed_at: Time | nil, + government_authority: Increase::Entity::GovernmentAuthority | nil, + idempotency_key: String | nil, + joint: Increase::Entity::Joint | nil, + natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -84,6 +115,7 @@ def test_list idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -112,6 +144,7 @@ def test_archive idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -144,6 +177,7 @@ def test_archive_beneficial_owner_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -172,6 +206,7 @@ def test_confirm idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -212,6 +247,7 @@ def test_create_beneficial_owner_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -244,6 +280,7 @@ def test_update_address_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -277,6 +314,7 @@ def test_update_beneficial_owner_address_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]), @@ -305,6 +343,7 @@ def test_update_industry_code_required_params idempotency_key: String | nil, joint: Increase::Entity::Joint | nil, natural_person: Increase::Entity::NaturalPerson | nil, + risk_rating: Increase::Entity::RiskRating | nil, status: Increase::Entity::Status, structure: Increase::Entity::Structure, supplemental_documents: ^(Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument]),