Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 239
openapi_spec_hash: 85e424bee4fe449466ceada88117613e
openapi_spec_hash: 49d468466a752f8ea72af00d00683f50
config_hash: 1ca082e374ef7000e2a5971e8da740e0
294 changes: 293 additions & 1 deletion lib/increase/models/entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ class Entity < Increase::Internal::Type::BaseModel
# @return [Increase::Models::Entity::RiskRating, nil]
required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true

# @!attribute sole_proprietorship
# Details of the sole proprietorship entity. Will be present if `structure` is
# equal to `sole_proprietorship`.
#
# @return [Increase::Models::Entity::SoleProprietorship, nil]
required :sole_proprietorship, -> { Increase::Entity::SoleProprietorship }, nil?: true

# @!attribute status
# The status of the entity.
#
Expand Down Expand Up @@ -135,7 +142,7 @@ class Entity < Increase::Internal::Type::BaseModel
# @return [Increase::Models::Entity::Validation, nil]
required :validation, -> { Increase::Entity::Validation }, nil?: true

# @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
# @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, sole_proprietorship:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
# Entities are the legal entities that own accounts. They can be people,
# corporations, joint accounts, trusts, or government authorities. To learn more,
# see [Entities](/documentation/entities).
Expand Down Expand Up @@ -180,6 +187,10 @@ class Entity < Increase::Internal::Type::BaseModel
# An assessment of the entity’s potential risk of involvement in financial crimes,
# such as money laundering.
#
# @param sole_proprietorship [Increase::Models::Entity::SoleProprietorship, nil]
# Details of the sole proprietorship entity. Will be present if `structure` is
# equal to `sole_proprietorship`.
#
# @param status [Symbol, Increase::Models::Entity::Status] The status of the entity.
#
# @param structure [Symbol, Increase::Models::Entity::Structure] The entity's legal structure.
Expand Down Expand Up @@ -1154,6 +1165,284 @@ module Rating
end
end

# @see Increase::Models::Entity#sole_proprietorship
class SoleProprietorship < Increase::Internal::Type::BaseModel
# @!attribute address
# The sole proprietorship's address.
#
# @return [Increase::Models::Entity::SoleProprietorship::Address]
required :address, -> { Increase::Entity::SoleProprietorship::Address }

# @!attribute doing_business_as_name
# The name under which the sole proprietorship does business.
#
# @return [String, nil]
required :doing_business_as_name, String, nil?: true

# @!attribute email
# An email address for the sole proprietorship.
#
# @return [String, nil]
required :email, String, nil?: true

# @!attribute industry_code
# The numeric North American Industry Classification System (NAICS) code submitted
# for the sole proprietorship.
#
# @return [String, nil]
required :industry_code, String, nil?: true

# @!attribute sole_proprietor
# The individual who operates the sole proprietorship.
#
# @return [Increase::Models::Entity::SoleProprietorship::SoleProprietor]
required :sole_proprietor, -> { Increase::Entity::SoleProprietorship::SoleProprietor }

# @!attribute tax_identifier
# The Employer Identification Number (EIN) for the sole proprietorship.
#
# @return [String, nil]
required :tax_identifier, String, nil?: true

# @!attribute website
# The sole proprietorship's website.
#
# @return [String, nil]
required :website, String, nil?: true

# @!method initialize(address:, doing_business_as_name:, email:, industry_code:, sole_proprietor:, tax_identifier:, website:)
# Details of the sole proprietorship entity. Will be present if `structure` is
# equal to `sole_proprietorship`.
#
# @param address [Increase::Models::Entity::SoleProprietorship::Address] The sole proprietorship's address.
#
# @param doing_business_as_name [String, nil] The name under which the sole proprietorship does business.
#
# @param email [String, nil] An email address for the sole proprietorship.
#
# @param industry_code [String, nil]
# The numeric North American Industry Classification System (NAICS) code submitted
# for the sole proprietorship.
#
# @param sole_proprietor [Increase::Models::Entity::SoleProprietorship::SoleProprietor]
# The individual who operates the sole proprietorship.
#
# @param tax_identifier [String, nil] The Employer Identification Number (EIN) for the sole proprietorship.
#
# @param website [String, nil] The sole proprietorship's website.

# @see Increase::Models::Entity::SoleProprietorship#address
class Address < Increase::Internal::Type::BaseModel
# @!attribute city
# The city, district, town, or village of the address.
#
# @return [String, nil]
required :city, String, nil?: true

# @!attribute country
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
#
# @return [String]
required :country, String

# @!attribute line1
# The first line of the address.
#
# @return [String]
required :line1, String

# @!attribute line2
# The second line of the address.
#
# @return [String, nil]
required :line2, String, nil?: true

# @!attribute state
# The two-letter United States Postal Service (USPS) abbreviation for the US
# state, province, or region of the address.
#
# @return [String, nil]
required :state, String, nil?: true

# @!attribute zip
# The ZIP or postal code of the address.
#
# @return [String, nil]
required :zip, String, nil?: true

# @!method initialize(city:, country:, line1:, line2:, state:, zip:)
# The sole proprietorship's address.
#
# @param city [String, nil] 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.
#
# @param line2 [String, nil] The second line of the address.
#
# @param state [String, nil]
# The two-letter United States Postal Service (USPS) abbreviation for the US
# state, province, or region of the address.
#
# @param zip [String, nil] The ZIP or postal code of the address.
end

# @see Increase::Models::Entity::SoleProprietorship#sole_proprietor
class SoleProprietor < Increase::Internal::Type::BaseModel
# @!attribute address
# The person's address.
#
# @return [Increase::Models::Entity::SoleProprietorship::SoleProprietor::Address]
required :address, -> { Increase::Entity::SoleProprietorship::SoleProprietor::Address }

# @!attribute date_of_birth
# The person's date of birth in YYYY-MM-DD format.
#
# @return [Date]
required :date_of_birth, Date

# @!attribute identification
# A means of verifying the person's identity.
#
# @return [Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification, nil]
required :identification,
-> { Increase::Entity::SoleProprietorship::SoleProprietor::Identification },
nil?: true

# @!attribute name
# The person's legal name.
#
# @return [String]
required :name, String

# @!method initialize(address:, date_of_birth:, identification:, name:)
# The individual who operates the sole proprietorship.
#
# @param address [Increase::Models::Entity::SoleProprietorship::SoleProprietor::Address]
# The person's address.
#
# @param date_of_birth [Date] The person's date of birth in YYYY-MM-DD format.
#
# @param identification [Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification, nil]
# A means of verifying the person's identity.
#
# @param name [String] The person's legal name.

# @see Increase::Models::Entity::SoleProprietorship::SoleProprietor#address
class Address < Increase::Internal::Type::BaseModel
# @!attribute city
# The city, district, town, or village of the address.
#
# @return [String, nil]
required :city, String, nil?: true

# @!attribute country
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
#
# @return [String]
required :country, String

# @!attribute line1
# The first line of the address.
#
# @return [String]
required :line1, String

# @!attribute line2
# The second line of the address.
#
# @return [String, nil]
required :line2, String, nil?: true

# @!attribute state
# The two-letter United States Postal Service (USPS) abbreviation for the US
# state, province, or region of the address.
#
# @return [String, nil]
required :state, String, nil?: true

# @!attribute zip
# The ZIP or postal code of the address.
#
# @return [String, nil]
required :zip, String, nil?: true

# @!method initialize(city:, country:, line1:, line2:, state:, zip:)
# The person's address.
#
# @param city [String, nil] 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.
#
# @param line2 [String, nil] The second line of the address.
#
# @param state [String, nil]
# The two-letter United States Postal Service (USPS) abbreviation for the US
# state, province, or region of the address.
#
# @param zip [String, nil] The ZIP or postal code of the address.
end

# @see Increase::Models::Entity::SoleProprietorship::SoleProprietor#identification
class Identification < Increase::Internal::Type::BaseModel
# @!attribute method_
# A method that can be used to verify the individual's identity.
#
# @return [Symbol, Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::Method]
required :method_,
enum: -> {
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method
},
api_name: :method

# @!attribute number_last4
# The last 4 digits of the identification number that can be used to verify the
# individual's identity.
#
# @return [String]
required :number_last4, String

# @!method initialize(method_:, number_last4:)
# A means of verifying the person's identity.
#
# @param method_ [Symbol, Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::Method]
# A method that can be used to verify the individual's identity.
#
# @param number_last4 [String]
# The last 4 digits of the identification number that can be used to verify the
# individual's identity.

# A method that can be used to verify the individual's identity.
#
# @see Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification#method_
module Method
extend Increase::Internal::Type::Enum

# A social security number.
SOCIAL_SECURITY_NUMBER = :social_security_number

# An individual taxpayer identification number (ITIN).
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER = :individual_taxpayer_identification_number

# A passport number.
PASSPORT = :passport

# A driver's license number.
DRIVERS_LICENSE = :drivers_license

# Another identifying document.
OTHER = :other

# @!method self.values
# @return [Array<Symbol>]
end
end
end
end

# The status of the entity.
#
# @see Increase::Models::Entity#status
Expand Down Expand Up @@ -1194,6 +1483,9 @@ module Structure
# A government authority.
GOVERNMENT_AUTHORITY = :government_authority

# A sole proprietorship.
SOLE_PROPRIETORSHIP = :sole_proprietorship

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
7 changes: 5 additions & 2 deletions lib/increase/models/inbound_check_deposit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ class Adjustment < Increase::Internal::Type::BaseModel
required :adjusted_at, Time

# @!attribute amount
# The amount of the adjustment.
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
#
# @return [Integer]
required :amount, Integer
Expand All @@ -251,7 +252,9 @@ class Adjustment < Increase::Internal::Type::BaseModel
# @!method initialize(adjusted_at:, amount:, reason:, transaction_id:)
# @param adjusted_at [Time] The time at which the return adjustment was received.
#
# @param amount [Integer] The amount of the adjustment.
# @param amount [Integer]
# The amount of the adjustment in USD cents. A positive amount is a credit to your
# account and a negative amount is a debit.
#
# @param reason [Symbol, Increase::Models::InboundCheckDeposit::Adjustment::Reason]
# The reason for the adjustment.
Expand Down
Loading