increase 1.348.0 → 1.350.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/models/account_create_params.rb +15 -15
- data/lib/increase/models/account_number.rb +3 -3
- data/lib/increase/models/ach_transfer.rb +12 -12
- data/lib/increase/models/balance_lookup.rb +1 -1
- data/lib/increase/models/beneficial_owner_create_params.rb +2 -4
- data/lib/increase/models/beneficial_owner_update_params.rb +2 -4
- data/lib/increase/models/card_dispute.rb +9 -1
- data/lib/increase/models/card_dispute_submit_user_submission_params.rb +4 -0
- data/lib/increase/models/card_payment.rb +58 -58
- data/lib/increase/models/card_purchase_supplement.rb +9 -1
- data/lib/increase/models/card_token_capabilities.rb +2 -2
- data/lib/increase/models/check_deposit.rb +9 -9
- data/lib/increase/models/check_transfer.rb +2 -2
- data/lib/increase/models/check_transfer_create_params.rb +9 -4
- data/lib/increase/models/declined_transaction.rb +12 -9
- data/lib/increase/models/digital_wallet_token.rb +9 -1
- data/lib/increase/models/entity.rb +298 -6
- data/lib/increase/models/entity_create_params.rb +332 -29
- data/lib/increase/models/entity_onboarding_session_list_params.rb +2 -2
- data/lib/increase/models/entity_update_params.rb +472 -15
- data/lib/increase/models/event.rb +3 -0
- data/lib/increase/models/event_list_params.rb +3 -0
- data/lib/increase/models/event_subscription.rb +3 -0
- data/lib/increase/models/event_subscription_create_params.rb +3 -0
- data/lib/increase/models/fednow_transfer.rb +115 -4
- data/lib/increase/models/fednow_transfer_list_params.rb +3 -3
- data/lib/increase/models/inbound_ach_transfer.rb +2 -2
- data/lib/increase/models/inbound_check_deposit.rb +7 -4
- data/lib/increase/models/inbound_fednow_transfer.rb +21 -1
- data/lib/increase/models/inbound_mail_item.rb +14 -1
- data/lib/increase/models/inbound_wire_drawdown_request.rb +12 -1
- data/lib/increase/models/inbound_wire_transfer.rb +4 -4
- data/lib/increase/models/intrafi_exclusion.rb +4 -4
- data/lib/increase/models/lockbox_recipient_create_params.rb +2 -2
- data/lib/increase/models/pending_transaction.rb +20 -20
- data/lib/increase/models/pending_transaction_list_params.rb +5 -7
- data/lib/increase/models/physical_card.rb +9 -1
- data/lib/increase/models/physical_card_create_params.rb +6 -3
- data/lib/increase/models/real_time_decision.rb +18 -18
- data/lib/increase/models/simulations/card_authentication_create_params.rb +2 -2
- data/lib/increase/models/simulations/card_dispute_action_params.rb +6 -6
- data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -3
- data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
- data/lib/increase/models/simulations/interest_payment_create_params.rb +2 -2
- data/lib/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rb +2 -2
- data/lib/increase/models/simulations/program_create_params.rb +14 -3
- data/lib/increase/models/transaction.rb +146 -19
- data/lib/increase/models/transaction_list_params.rb +3 -0
- data/lib/increase/models/unwrap_webhook_event.rb +3 -0
- data/lib/increase/models/wire_drawdown_request.rb +12 -1
- data/lib/increase/models/wire_transfer_create_params.rb +2 -2
- data/lib/increase/resources/cards.rb +2 -2
- data/lib/increase/resources/check_transfers.rb +1 -1
- data/lib/increase/resources/entities.rb +10 -2
- data/lib/increase/resources/entity_onboarding_sessions.rb +1 -1
- data/lib/increase/resources/lockbox_recipients.rb +1 -1
- data/lib/increase/resources/physical_cards.rb +2 -1
- data/lib/increase/resources/simulations/card_authentications.rb +1 -1
- data/lib/increase/resources/simulations/card_disputes.rb +2 -2
- data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
- data/lib/increase/resources/simulations/interest_payments.rb +1 -1
- data/lib/increase/resources/simulations/pending_transactions.rb +1 -1
- data/lib/increase/resources/simulations/physical_cards.rb +2 -2
- data/lib/increase/resources/simulations/programs.rb +6 -2
- data/lib/increase/resources/wire_transfers.rb +1 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/account_create_params.rbi +37 -21
- data/rbi/increase/models/account_number.rbi +3 -3
- data/rbi/increase/models/ach_transfer.rbi +12 -12
- data/rbi/increase/models/balance_lookup.rbi +1 -1
- data/rbi/increase/models/beneficial_owner_create_params.rbi +2 -4
- data/rbi/increase/models/beneficial_owner_update_params.rbi +2 -4
- data/rbi/increase/models/card_dispute.rbi +8 -0
- data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +3 -0
- data/rbi/increase/models/card_payment.rbi +58 -58
- data/rbi/increase/models/card_purchase_supplement.rbi +8 -0
- data/rbi/increase/models/card_token_capabilities.rbi +2 -2
- data/rbi/increase/models/check_deposit.rbi +9 -9
- data/rbi/increase/models/check_transfer.rbi +2 -2
- data/rbi/increase/models/check_transfer_create_params.rbi +8 -4
- data/rbi/increase/models/declined_transaction.rbi +16 -9
- data/rbi/increase/models/digital_wallet_token.rbi +8 -0
- data/rbi/increase/models/entity.rbi +496 -5
- data/rbi/increase/models/entity_create_params.rbi +547 -28
- data/rbi/increase/models/entity_onboarding_session_list_params.rbi +2 -2
- data/rbi/increase/models/entity_update_params.rbi +814 -14
- data/rbi/increase/models/event.rbi +7 -0
- data/rbi/increase/models/event_list_params.rbi +7 -0
- data/rbi/increase/models/event_subscription.rbi +7 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +7 -0
- data/rbi/increase/models/fednow_transfer.rbi +213 -7
- data/rbi/increase/models/fednow_transfer_list_params.rbi +7 -7
- data/rbi/increase/models/inbound_ach_transfer.rbi +2 -2
- data/rbi/increase/models/inbound_check_deposit.rbi +6 -4
- data/rbi/increase/models/inbound_fednow_transfer.rbi +23 -0
- data/rbi/increase/models/inbound_mail_item.rbi +12 -0
- data/rbi/increase/models/inbound_wire_drawdown_request.rbi +10 -0
- data/rbi/increase/models/inbound_wire_transfer.rbi +4 -4
- data/rbi/increase/models/intrafi_exclusion.rbi +4 -4
- data/rbi/increase/models/lockbox_recipient_create_params.rbi +2 -2
- data/rbi/increase/models/pending_transaction.rbi +20 -20
- data/rbi/increase/models/pending_transaction_list_params.rbi +5 -7
- data/rbi/increase/models/physical_card.rbi +8 -0
- data/rbi/increase/models/physical_card_create_params.rbi +6 -3
- data/rbi/increase/models/real_time_decision.rbi +18 -18
- data/rbi/increase/models/simulations/card_authentication_create_params.rbi +2 -2
- data/rbi/increase/models/simulations/card_dispute_action_params.rbi +6 -6
- data/rbi/increase/models/simulations/entity_update_validation_params.rbi +3 -3
- data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
- data/rbi/increase/models/simulations/interest_payment_create_params.rbi +2 -2
- data/rbi/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rbi +2 -2
- data/rbi/increase/models/simulations/program_create_params.rbi +15 -2
- data/rbi/increase/models/transaction.rbi +264 -18
- data/rbi/increase/models/transaction_list_params.rbi +7 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +7 -0
- data/rbi/increase/models/wire_drawdown_request.rbi +10 -0
- data/rbi/increase/models/wire_transfer_create_params.rbi +2 -2
- data/rbi/increase/resources/cards.rbi +2 -2
- data/rbi/increase/resources/check_transfers.rbi +1 -1
- data/rbi/increase/resources/entities.rbi +10 -0
- data/rbi/increase/resources/entity_onboarding_sessions.rbi +1 -1
- data/rbi/increase/resources/lockbox_recipients.rbi +1 -1
- data/rbi/increase/resources/physical_cards.rbi +2 -1
- data/rbi/increase/resources/simulations/card_authentications.rbi +1 -1
- data/rbi/increase/resources/simulations/card_disputes.rbi +2 -2
- data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
- data/rbi/increase/resources/simulations/interest_payments.rbi +1 -1
- data/rbi/increase/resources/simulations/pending_transactions.rbi +1 -1
- data/rbi/increase/resources/simulations/physical_cards.rbi +2 -2
- data/rbi/increase/resources/simulations/programs.rbi +5 -1
- data/rbi/increase/resources/wire_transfers.rbi +1 -1
- data/sig/increase/models/account_create_params.rbs +20 -12
- data/sig/increase/models/card_dispute.rbs +5 -0
- data/sig/increase/models/card_purchase_supplement.rbs +5 -0
- data/sig/increase/models/declined_transaction.rbs +4 -0
- data/sig/increase/models/digital_wallet_token.rbs +5 -0
- data/sig/increase/models/entity.rbs +230 -4
- data/sig/increase/models/entity_create_params.rbs +232 -1
- data/sig/increase/models/entity_update_params.rbs +366 -0
- data/sig/increase/models/event.rbs +4 -0
- data/sig/increase/models/event_list_params.rbs +4 -0
- data/sig/increase/models/event_subscription.rbs +4 -0
- data/sig/increase/models/event_subscription_create_params.rbs +4 -0
- data/sig/increase/models/fednow_transfer.rbs +113 -4
- data/sig/increase/models/fednow_transfer_list_params.rbs +4 -4
- data/sig/increase/models/inbound_fednow_transfer.rbs +14 -0
- data/sig/increase/models/inbound_mail_item.rbs +5 -0
- data/sig/increase/models/inbound_wire_drawdown_request.rbs +5 -0
- data/sig/increase/models/pending_transaction.rbs +1 -1
- data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
- data/sig/increase/models/physical_card.rbs +5 -0
- data/sig/increase/models/simulations/entity_update_validation_params.rbs +3 -3
- data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
- data/sig/increase/models/simulations/program_create_params.rbs +7 -0
- data/sig/increase/models/transaction.rbs +113 -0
- data/sig/increase/models/transaction_list_params.rbs +4 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +4 -0
- data/sig/increase/models/wire_drawdown_request.rbs +5 -0
- data/sig/increase/resources/entities.rbs +2 -0
- data/sig/increase/resources/simulations/programs.rbs +1 -0
- metadata +2 -2
|
@@ -91,6 +91,19 @@ module Increase
|
|
|
91
91
|
end
|
|
92
92
|
attr_writer :risk_rating
|
|
93
93
|
|
|
94
|
+
# Details of the sole proprietorship entity. Will be present if `structure` is
|
|
95
|
+
# equal to `sole_proprietorship`.
|
|
96
|
+
sig { returns(T.nilable(Increase::Entity::SoleProprietorship)) }
|
|
97
|
+
attr_reader :sole_proprietorship
|
|
98
|
+
|
|
99
|
+
sig do
|
|
100
|
+
params(
|
|
101
|
+
sole_proprietorship:
|
|
102
|
+
T.nilable(Increase::Entity::SoleProprietorship::OrHash)
|
|
103
|
+
).void
|
|
104
|
+
end
|
|
105
|
+
attr_writer :sole_proprietorship
|
|
106
|
+
|
|
94
107
|
# The status of the entity.
|
|
95
108
|
sig { returns(Increase::Entity::Status::TaggedSymbol) }
|
|
96
109
|
attr_accessor :status
|
|
@@ -163,6 +176,8 @@ module Increase
|
|
|
163
176
|
joint: T.nilable(Increase::Entity::Joint::OrHash),
|
|
164
177
|
natural_person: T.nilable(Increase::Entity::NaturalPerson::OrHash),
|
|
165
178
|
risk_rating: T.nilable(Increase::Entity::RiskRating::OrHash),
|
|
179
|
+
sole_proprietorship:
|
|
180
|
+
T.nilable(Increase::Entity::SoleProprietorship::OrHash),
|
|
166
181
|
status: Increase::Entity::Status::OrSymbol,
|
|
167
182
|
structure: Increase::Entity::Structure::OrSymbol,
|
|
168
183
|
supplemental_documents:
|
|
@@ -207,6 +222,9 @@ module Increase
|
|
|
207
222
|
# An assessment of the entity’s potential risk of involvement in financial crimes,
|
|
208
223
|
# such as money laundering.
|
|
209
224
|
risk_rating:,
|
|
225
|
+
# Details of the sole proprietorship entity. Will be present if `structure` is
|
|
226
|
+
# equal to `sole_proprietorship`.
|
|
227
|
+
sole_proprietorship:,
|
|
210
228
|
# The status of the entity.
|
|
211
229
|
status:,
|
|
212
230
|
# The entity's legal structure.
|
|
@@ -248,6 +266,8 @@ module Increase
|
|
|
248
266
|
joint: T.nilable(Increase::Entity::Joint),
|
|
249
267
|
natural_person: T.nilable(Increase::Entity::NaturalPerson),
|
|
250
268
|
risk_rating: T.nilable(Increase::Entity::RiskRating),
|
|
269
|
+
sole_proprietorship:
|
|
270
|
+
T.nilable(Increase::Entity::SoleProprietorship),
|
|
251
271
|
status: Increase::Entity::Status::TaggedSymbol,
|
|
252
272
|
structure: Increase::Entity::Structure::TaggedSymbol,
|
|
253
273
|
supplemental_documents:
|
|
@@ -1945,6 +1965,473 @@ module Increase
|
|
|
1945
1965
|
end
|
|
1946
1966
|
end
|
|
1947
1967
|
|
|
1968
|
+
class SoleProprietorship < Increase::Internal::Type::BaseModel
|
|
1969
|
+
OrHash =
|
|
1970
|
+
T.type_alias do
|
|
1971
|
+
T.any(
|
|
1972
|
+
Increase::Entity::SoleProprietorship,
|
|
1973
|
+
Increase::Internal::AnyHash
|
|
1974
|
+
)
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# The sole proprietorship's address.
|
|
1978
|
+
sig { returns(Increase::Entity::SoleProprietorship::Address) }
|
|
1979
|
+
attr_reader :address
|
|
1980
|
+
|
|
1981
|
+
sig do
|
|
1982
|
+
params(
|
|
1983
|
+
address: Increase::Entity::SoleProprietorship::Address::OrHash
|
|
1984
|
+
).void
|
|
1985
|
+
end
|
|
1986
|
+
attr_writer :address
|
|
1987
|
+
|
|
1988
|
+
# The name under which the sole proprietorship does business.
|
|
1989
|
+
sig { returns(T.nilable(String)) }
|
|
1990
|
+
attr_accessor :doing_business_as_name
|
|
1991
|
+
|
|
1992
|
+
# An email address for the sole proprietorship.
|
|
1993
|
+
sig { returns(T.nilable(String)) }
|
|
1994
|
+
attr_accessor :email
|
|
1995
|
+
|
|
1996
|
+
# The numeric North American Industry Classification System (NAICS) code submitted
|
|
1997
|
+
# for the sole proprietorship.
|
|
1998
|
+
sig { returns(T.nilable(String)) }
|
|
1999
|
+
attr_accessor :industry_code
|
|
2000
|
+
|
|
2001
|
+
# The individual who operates the sole proprietorship.
|
|
2002
|
+
sig { returns(Increase::Entity::SoleProprietorship::SoleProprietor) }
|
|
2003
|
+
attr_reader :sole_proprietor
|
|
2004
|
+
|
|
2005
|
+
sig do
|
|
2006
|
+
params(
|
|
2007
|
+
sole_proprietor:
|
|
2008
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::OrHash
|
|
2009
|
+
).void
|
|
2010
|
+
end
|
|
2011
|
+
attr_writer :sole_proprietor
|
|
2012
|
+
|
|
2013
|
+
# The Employer Identification Number (EIN) for the sole proprietorship.
|
|
2014
|
+
sig { returns(T.nilable(String)) }
|
|
2015
|
+
attr_accessor :tax_identifier
|
|
2016
|
+
|
|
2017
|
+
# The sole proprietorship's website.
|
|
2018
|
+
sig { returns(T.nilable(String)) }
|
|
2019
|
+
attr_accessor :website
|
|
2020
|
+
|
|
2021
|
+
# Details of the sole proprietorship entity. Will be present if `structure` is
|
|
2022
|
+
# equal to `sole_proprietorship`.
|
|
2023
|
+
sig do
|
|
2024
|
+
params(
|
|
2025
|
+
address: Increase::Entity::SoleProprietorship::Address::OrHash,
|
|
2026
|
+
doing_business_as_name: T.nilable(String),
|
|
2027
|
+
email: T.nilable(String),
|
|
2028
|
+
industry_code: T.nilable(String),
|
|
2029
|
+
sole_proprietor:
|
|
2030
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::OrHash,
|
|
2031
|
+
tax_identifier: T.nilable(String),
|
|
2032
|
+
website: T.nilable(String)
|
|
2033
|
+
).returns(T.attached_class)
|
|
2034
|
+
end
|
|
2035
|
+
def self.new(
|
|
2036
|
+
# The sole proprietorship's address.
|
|
2037
|
+
address:,
|
|
2038
|
+
# The name under which the sole proprietorship does business.
|
|
2039
|
+
doing_business_as_name:,
|
|
2040
|
+
# An email address for the sole proprietorship.
|
|
2041
|
+
email:,
|
|
2042
|
+
# The numeric North American Industry Classification System (NAICS) code submitted
|
|
2043
|
+
# for the sole proprietorship.
|
|
2044
|
+
industry_code:,
|
|
2045
|
+
# The individual who operates the sole proprietorship.
|
|
2046
|
+
sole_proprietor:,
|
|
2047
|
+
# The Employer Identification Number (EIN) for the sole proprietorship.
|
|
2048
|
+
tax_identifier:,
|
|
2049
|
+
# The sole proprietorship's website.
|
|
2050
|
+
website:
|
|
2051
|
+
)
|
|
2052
|
+
end
|
|
2053
|
+
|
|
2054
|
+
sig do
|
|
2055
|
+
override.returns(
|
|
2056
|
+
{
|
|
2057
|
+
address: Increase::Entity::SoleProprietorship::Address,
|
|
2058
|
+
doing_business_as_name: T.nilable(String),
|
|
2059
|
+
email: T.nilable(String),
|
|
2060
|
+
industry_code: T.nilable(String),
|
|
2061
|
+
sole_proprietor:
|
|
2062
|
+
Increase::Entity::SoleProprietorship::SoleProprietor,
|
|
2063
|
+
tax_identifier: T.nilable(String),
|
|
2064
|
+
website: T.nilable(String)
|
|
2065
|
+
}
|
|
2066
|
+
)
|
|
2067
|
+
end
|
|
2068
|
+
def to_hash
|
|
2069
|
+
end
|
|
2070
|
+
|
|
2071
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
2072
|
+
OrHash =
|
|
2073
|
+
T.type_alias do
|
|
2074
|
+
T.any(
|
|
2075
|
+
Increase::Entity::SoleProprietorship::Address,
|
|
2076
|
+
Increase::Internal::AnyHash
|
|
2077
|
+
)
|
|
2078
|
+
end
|
|
2079
|
+
|
|
2080
|
+
# The city, district, town, or village of the address.
|
|
2081
|
+
sig { returns(T.nilable(String)) }
|
|
2082
|
+
attr_accessor :city
|
|
2083
|
+
|
|
2084
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2085
|
+
sig { returns(String) }
|
|
2086
|
+
attr_accessor :country
|
|
2087
|
+
|
|
2088
|
+
# The first line of the address.
|
|
2089
|
+
sig { returns(String) }
|
|
2090
|
+
attr_accessor :line1
|
|
2091
|
+
|
|
2092
|
+
# The second line of the address.
|
|
2093
|
+
sig { returns(T.nilable(String)) }
|
|
2094
|
+
attr_accessor :line2
|
|
2095
|
+
|
|
2096
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
2097
|
+
# state, province, or region of the address.
|
|
2098
|
+
sig { returns(T.nilable(String)) }
|
|
2099
|
+
attr_accessor :state
|
|
2100
|
+
|
|
2101
|
+
# The ZIP or postal code of the address.
|
|
2102
|
+
sig { returns(T.nilable(String)) }
|
|
2103
|
+
attr_accessor :zip
|
|
2104
|
+
|
|
2105
|
+
# The sole proprietorship's address.
|
|
2106
|
+
sig do
|
|
2107
|
+
params(
|
|
2108
|
+
city: T.nilable(String),
|
|
2109
|
+
country: String,
|
|
2110
|
+
line1: String,
|
|
2111
|
+
line2: T.nilable(String),
|
|
2112
|
+
state: T.nilable(String),
|
|
2113
|
+
zip: T.nilable(String)
|
|
2114
|
+
).returns(T.attached_class)
|
|
2115
|
+
end
|
|
2116
|
+
def self.new(
|
|
2117
|
+
# The city, district, town, or village of the address.
|
|
2118
|
+
city:,
|
|
2119
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2120
|
+
country:,
|
|
2121
|
+
# The first line of the address.
|
|
2122
|
+
line1:,
|
|
2123
|
+
# The second line of the address.
|
|
2124
|
+
line2:,
|
|
2125
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
2126
|
+
# state, province, or region of the address.
|
|
2127
|
+
state:,
|
|
2128
|
+
# The ZIP or postal code of the address.
|
|
2129
|
+
zip:
|
|
2130
|
+
)
|
|
2131
|
+
end
|
|
2132
|
+
|
|
2133
|
+
sig do
|
|
2134
|
+
override.returns(
|
|
2135
|
+
{
|
|
2136
|
+
city: T.nilable(String),
|
|
2137
|
+
country: String,
|
|
2138
|
+
line1: String,
|
|
2139
|
+
line2: T.nilable(String),
|
|
2140
|
+
state: T.nilable(String),
|
|
2141
|
+
zip: T.nilable(String)
|
|
2142
|
+
}
|
|
2143
|
+
)
|
|
2144
|
+
end
|
|
2145
|
+
def to_hash
|
|
2146
|
+
end
|
|
2147
|
+
end
|
|
2148
|
+
|
|
2149
|
+
class SoleProprietor < Increase::Internal::Type::BaseModel
|
|
2150
|
+
OrHash =
|
|
2151
|
+
T.type_alias do
|
|
2152
|
+
T.any(
|
|
2153
|
+
Increase::Entity::SoleProprietorship::SoleProprietor,
|
|
2154
|
+
Increase::Internal::AnyHash
|
|
2155
|
+
)
|
|
2156
|
+
end
|
|
2157
|
+
|
|
2158
|
+
# The person's address.
|
|
2159
|
+
sig do
|
|
2160
|
+
returns(
|
|
2161
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Address
|
|
2162
|
+
)
|
|
2163
|
+
end
|
|
2164
|
+
attr_reader :address
|
|
2165
|
+
|
|
2166
|
+
sig do
|
|
2167
|
+
params(
|
|
2168
|
+
address:
|
|
2169
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Address::OrHash
|
|
2170
|
+
).void
|
|
2171
|
+
end
|
|
2172
|
+
attr_writer :address
|
|
2173
|
+
|
|
2174
|
+
# The person's date of birth in YYYY-MM-DD format.
|
|
2175
|
+
sig { returns(Date) }
|
|
2176
|
+
attr_accessor :date_of_birth
|
|
2177
|
+
|
|
2178
|
+
# A means of verifying the person's identity.
|
|
2179
|
+
sig do
|
|
2180
|
+
returns(
|
|
2181
|
+
T.nilable(
|
|
2182
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification
|
|
2183
|
+
)
|
|
2184
|
+
)
|
|
2185
|
+
end
|
|
2186
|
+
attr_reader :identification
|
|
2187
|
+
|
|
2188
|
+
sig do
|
|
2189
|
+
params(
|
|
2190
|
+
identification:
|
|
2191
|
+
T.nilable(
|
|
2192
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::OrHash
|
|
2193
|
+
)
|
|
2194
|
+
).void
|
|
2195
|
+
end
|
|
2196
|
+
attr_writer :identification
|
|
2197
|
+
|
|
2198
|
+
# The person's legal name.
|
|
2199
|
+
sig { returns(String) }
|
|
2200
|
+
attr_accessor :name
|
|
2201
|
+
|
|
2202
|
+
# The individual who operates the sole proprietorship.
|
|
2203
|
+
sig do
|
|
2204
|
+
params(
|
|
2205
|
+
address:
|
|
2206
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Address::OrHash,
|
|
2207
|
+
date_of_birth: Date,
|
|
2208
|
+
identification:
|
|
2209
|
+
T.nilable(
|
|
2210
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::OrHash
|
|
2211
|
+
),
|
|
2212
|
+
name: String
|
|
2213
|
+
).returns(T.attached_class)
|
|
2214
|
+
end
|
|
2215
|
+
def self.new(
|
|
2216
|
+
# The person's address.
|
|
2217
|
+
address:,
|
|
2218
|
+
# The person's date of birth in YYYY-MM-DD format.
|
|
2219
|
+
date_of_birth:,
|
|
2220
|
+
# A means of verifying the person's identity.
|
|
2221
|
+
identification:,
|
|
2222
|
+
# The person's legal name.
|
|
2223
|
+
name:
|
|
2224
|
+
)
|
|
2225
|
+
end
|
|
2226
|
+
|
|
2227
|
+
sig do
|
|
2228
|
+
override.returns(
|
|
2229
|
+
{
|
|
2230
|
+
address:
|
|
2231
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Address,
|
|
2232
|
+
date_of_birth: Date,
|
|
2233
|
+
identification:
|
|
2234
|
+
T.nilable(
|
|
2235
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification
|
|
2236
|
+
),
|
|
2237
|
+
name: String
|
|
2238
|
+
}
|
|
2239
|
+
)
|
|
2240
|
+
end
|
|
2241
|
+
def to_hash
|
|
2242
|
+
end
|
|
2243
|
+
|
|
2244
|
+
class Address < Increase::Internal::Type::BaseModel
|
|
2245
|
+
OrHash =
|
|
2246
|
+
T.type_alias do
|
|
2247
|
+
T.any(
|
|
2248
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Address,
|
|
2249
|
+
Increase::Internal::AnyHash
|
|
2250
|
+
)
|
|
2251
|
+
end
|
|
2252
|
+
|
|
2253
|
+
# The city, district, town, or village of the address.
|
|
2254
|
+
sig { returns(T.nilable(String)) }
|
|
2255
|
+
attr_accessor :city
|
|
2256
|
+
|
|
2257
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2258
|
+
sig { returns(String) }
|
|
2259
|
+
attr_accessor :country
|
|
2260
|
+
|
|
2261
|
+
# The first line of the address.
|
|
2262
|
+
sig { returns(String) }
|
|
2263
|
+
attr_accessor :line1
|
|
2264
|
+
|
|
2265
|
+
# The second line of the address.
|
|
2266
|
+
sig { returns(T.nilable(String)) }
|
|
2267
|
+
attr_accessor :line2
|
|
2268
|
+
|
|
2269
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
2270
|
+
# state, province, or region of the address.
|
|
2271
|
+
sig { returns(T.nilable(String)) }
|
|
2272
|
+
attr_accessor :state
|
|
2273
|
+
|
|
2274
|
+
# The ZIP or postal code of the address.
|
|
2275
|
+
sig { returns(T.nilable(String)) }
|
|
2276
|
+
attr_accessor :zip
|
|
2277
|
+
|
|
2278
|
+
# The person's address.
|
|
2279
|
+
sig do
|
|
2280
|
+
params(
|
|
2281
|
+
city: T.nilable(String),
|
|
2282
|
+
country: String,
|
|
2283
|
+
line1: String,
|
|
2284
|
+
line2: T.nilable(String),
|
|
2285
|
+
state: T.nilable(String),
|
|
2286
|
+
zip: T.nilable(String)
|
|
2287
|
+
).returns(T.attached_class)
|
|
2288
|
+
end
|
|
2289
|
+
def self.new(
|
|
2290
|
+
# The city, district, town, or village of the address.
|
|
2291
|
+
city:,
|
|
2292
|
+
# The two-letter ISO 3166-1 alpha-2 code for the country of the address.
|
|
2293
|
+
country:,
|
|
2294
|
+
# The first line of the address.
|
|
2295
|
+
line1:,
|
|
2296
|
+
# The second line of the address.
|
|
2297
|
+
line2:,
|
|
2298
|
+
# The two-letter United States Postal Service (USPS) abbreviation for the US
|
|
2299
|
+
# state, province, or region of the address.
|
|
2300
|
+
state:,
|
|
2301
|
+
# The ZIP or postal code of the address.
|
|
2302
|
+
zip:
|
|
2303
|
+
)
|
|
2304
|
+
end
|
|
2305
|
+
|
|
2306
|
+
sig do
|
|
2307
|
+
override.returns(
|
|
2308
|
+
{
|
|
2309
|
+
city: T.nilable(String),
|
|
2310
|
+
country: String,
|
|
2311
|
+
line1: String,
|
|
2312
|
+
line2: T.nilable(String),
|
|
2313
|
+
state: T.nilable(String),
|
|
2314
|
+
zip: T.nilable(String)
|
|
2315
|
+
}
|
|
2316
|
+
)
|
|
2317
|
+
end
|
|
2318
|
+
def to_hash
|
|
2319
|
+
end
|
|
2320
|
+
end
|
|
2321
|
+
|
|
2322
|
+
class Identification < Increase::Internal::Type::BaseModel
|
|
2323
|
+
OrHash =
|
|
2324
|
+
T.type_alias do
|
|
2325
|
+
T.any(
|
|
2326
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification,
|
|
2327
|
+
Increase::Internal::AnyHash
|
|
2328
|
+
)
|
|
2329
|
+
end
|
|
2330
|
+
|
|
2331
|
+
# A method that can be used to verify the individual's identity.
|
|
2332
|
+
sig do
|
|
2333
|
+
returns(
|
|
2334
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2335
|
+
)
|
|
2336
|
+
end
|
|
2337
|
+
attr_accessor :method_
|
|
2338
|
+
|
|
2339
|
+
# The last 4 digits of the identification number that can be used to verify the
|
|
2340
|
+
# individual's identity.
|
|
2341
|
+
sig { returns(String) }
|
|
2342
|
+
attr_accessor :number_last4
|
|
2343
|
+
|
|
2344
|
+
# A means of verifying the person's identity.
|
|
2345
|
+
sig do
|
|
2346
|
+
params(
|
|
2347
|
+
method_:
|
|
2348
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::OrSymbol,
|
|
2349
|
+
number_last4: String
|
|
2350
|
+
).returns(T.attached_class)
|
|
2351
|
+
end
|
|
2352
|
+
def self.new(
|
|
2353
|
+
# A method that can be used to verify the individual's identity.
|
|
2354
|
+
method_:,
|
|
2355
|
+
# The last 4 digits of the identification number that can be used to verify the
|
|
2356
|
+
# individual's identity.
|
|
2357
|
+
number_last4:
|
|
2358
|
+
)
|
|
2359
|
+
end
|
|
2360
|
+
|
|
2361
|
+
sig do
|
|
2362
|
+
override.returns(
|
|
2363
|
+
{
|
|
2364
|
+
method_:
|
|
2365
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol,
|
|
2366
|
+
number_last4: String
|
|
2367
|
+
}
|
|
2368
|
+
)
|
|
2369
|
+
end
|
|
2370
|
+
def to_hash
|
|
2371
|
+
end
|
|
2372
|
+
|
|
2373
|
+
# A method that can be used to verify the individual's identity.
|
|
2374
|
+
module Method
|
|
2375
|
+
extend Increase::Internal::Type::Enum
|
|
2376
|
+
|
|
2377
|
+
TaggedSymbol =
|
|
2378
|
+
T.type_alias do
|
|
2379
|
+
T.all(
|
|
2380
|
+
Symbol,
|
|
2381
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method
|
|
2382
|
+
)
|
|
2383
|
+
end
|
|
2384
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
2385
|
+
|
|
2386
|
+
# A social security number.
|
|
2387
|
+
SOCIAL_SECURITY_NUMBER =
|
|
2388
|
+
T.let(
|
|
2389
|
+
:social_security_number,
|
|
2390
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2391
|
+
)
|
|
2392
|
+
|
|
2393
|
+
# An individual taxpayer identification number (ITIN).
|
|
2394
|
+
INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER =
|
|
2395
|
+
T.let(
|
|
2396
|
+
:individual_taxpayer_identification_number,
|
|
2397
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2398
|
+
)
|
|
2399
|
+
|
|
2400
|
+
# A passport number.
|
|
2401
|
+
PASSPORT =
|
|
2402
|
+
T.let(
|
|
2403
|
+
:passport,
|
|
2404
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2405
|
+
)
|
|
2406
|
+
|
|
2407
|
+
# A driver's license number.
|
|
2408
|
+
DRIVERS_LICENSE =
|
|
2409
|
+
T.let(
|
|
2410
|
+
:drivers_license,
|
|
2411
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2412
|
+
)
|
|
2413
|
+
|
|
2414
|
+
# Another identifying document.
|
|
2415
|
+
OTHER =
|
|
2416
|
+
T.let(
|
|
2417
|
+
:other,
|
|
2418
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2419
|
+
)
|
|
2420
|
+
|
|
2421
|
+
sig do
|
|
2422
|
+
override.returns(
|
|
2423
|
+
T::Array[
|
|
2424
|
+
Increase::Entity::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
|
|
2425
|
+
]
|
|
2426
|
+
)
|
|
2427
|
+
end
|
|
2428
|
+
def self.values
|
|
2429
|
+
end
|
|
2430
|
+
end
|
|
2431
|
+
end
|
|
2432
|
+
end
|
|
2433
|
+
end
|
|
2434
|
+
|
|
1948
2435
|
# The status of the entity.
|
|
1949
2436
|
module Status
|
|
1950
2437
|
extend Increase::Internal::Type::Enum
|
|
@@ -1997,6 +2484,10 @@ module Increase
|
|
|
1997
2484
|
Increase::Entity::Structure::TaggedSymbol
|
|
1998
2485
|
)
|
|
1999
2486
|
|
|
2487
|
+
# A sole proprietorship.
|
|
2488
|
+
SOLE_PROPRIETORSHIP =
|
|
2489
|
+
T.let(:sole_proprietorship, Increase::Entity::Structure::TaggedSymbol)
|
|
2490
|
+
|
|
2000
2491
|
sig do
|
|
2001
2492
|
override.returns(T::Array[Increase::Entity::Structure::TaggedSymbol])
|
|
2002
2493
|
end
|
|
@@ -2014,7 +2505,7 @@ module Increase
|
|
|
2014
2505
|
sig { returns(Time) }
|
|
2015
2506
|
attr_accessor :agreed_at
|
|
2016
2507
|
|
|
2017
|
-
# The IP address the Entity
|
|
2508
|
+
# The IP address the Entity reviewed the terms from.
|
|
2018
2509
|
sig { returns(T.nilable(String)) }
|
|
2019
2510
|
attr_accessor :ip_address
|
|
2020
2511
|
|
|
@@ -2032,7 +2523,7 @@ module Increase
|
|
|
2032
2523
|
def self.new(
|
|
2033
2524
|
# The timestamp of when the Entity agreed to the terms.
|
|
2034
2525
|
agreed_at:,
|
|
2035
|
-
# The IP address the Entity
|
|
2526
|
+
# The IP address the Entity reviewed the terms from.
|
|
2036
2527
|
ip_address:,
|
|
2037
2528
|
# The URL of the terms agreement. This link will be provided by your bank partner.
|
|
2038
2529
|
terms_url:
|
|
@@ -3370,21 +3861,21 @@ module Increase
|
|
|
3370
3861
|
end
|
|
3371
3862
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
3372
3863
|
|
|
3373
|
-
# The entity's tax identifier could not be verified. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity
|
|
3864
|
+
# The entity's tax identifier could not be verified. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity).
|
|
3374
3865
|
ENTITY_TAX_IDENTIFIER =
|
|
3375
3866
|
T.let(
|
|
3376
3867
|
:entity_tax_identifier,
|
|
3377
3868
|
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3378
3869
|
)
|
|
3379
3870
|
|
|
3380
|
-
# The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity
|
|
3871
|
+
# The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity).
|
|
3381
3872
|
ENTITY_ADDRESS =
|
|
3382
3873
|
T.let(
|
|
3383
3874
|
:entity_address,
|
|
3384
3875
|
Increase::Entity::Validation::Issue::Category::TaggedSymbol
|
|
3385
3876
|
)
|
|
3386
3877
|
|
|
3387
|
-
# The entity's identity could not be verified. Update the identification with the [update an entity API](/documentation/api/entities#update-an-entity
|
|
3878
|
+
# The entity's identity could not be verified. Update the identification with the [update an entity API](/documentation/api/entities#update-an-entity).
|
|
3388
3879
|
ENTITY_IDENTITY =
|
|
3389
3880
|
T.let(
|
|
3390
3881
|
:entity_identity,
|