increase 1.348.0 → 1.349.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/entity.rb +293 -1
- 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/inbound_check_deposit.rb +5 -2
- data/lib/increase/models/inbound_fednow_transfer.rb +18 -1
- data/lib/increase/models/pending_transaction.rb +7 -7
- data/lib/increase/models/pending_transaction_list_params.rb +1 -1
- data/lib/increase/models/physical_card_create_params.rb +6 -3
- data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
- data/lib/increase/models/transaction.rb +5 -2
- data/lib/increase/models/unwrap_webhook_event.rb +3 -0
- data/lib/increase/resources/physical_cards.rb +2 -1
- data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/account_create_params.rbi +37 -21
- data/rbi/increase/models/entity.rbi +491 -0
- 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/inbound_check_deposit.rbi +4 -2
- data/rbi/increase/models/inbound_fednow_transfer.rbi +16 -0
- data/rbi/increase/models/pending_transaction.rbi +7 -7
- data/rbi/increase/models/pending_transaction_list_params.rbi +1 -1
- data/rbi/increase/models/physical_card_create_params.rbi +6 -3
- data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
- data/rbi/increase/models/transaction.rbi +4 -2
- data/rbi/increase/models/unwrap_webhook_event.rbi +7 -0
- data/rbi/increase/resources/physical_cards.rbi +2 -1
- data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
- data/sig/increase/models/account_create_params.rbs +20 -12
- data/sig/increase/models/entity.rbs +227 -1
- 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/inbound_fednow_transfer.rbs +10 -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/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
- data/sig/increase/models/unwrap_webhook_event.rbs +4 -0
- metadata +2 -2
|
@@ -369,6 +369,9 @@ module Increase
|
|
|
369
369
|
# Occurs whenever a Physical Check is updated.
|
|
370
370
|
PHYSICAL_CHECK_UPDATED = :"physical_check.updated"
|
|
371
371
|
|
|
372
|
+
# Occurs whenever a Plaid Processor Token is created.
|
|
373
|
+
PLAID_PROCESSOR_TOKEN_CREATED = :"plaid_processor_token.created"
|
|
374
|
+
|
|
372
375
|
# Occurs whenever a Checkbook is created.
|
|
373
376
|
CHECKBOOK_CREATED = :"checkbook.created"
|
|
374
377
|
|
|
@@ -10,7 +10,8 @@ module Increase
|
|
|
10
10
|
# @param card_id [String] The underlying card representing this physical card.
|
|
11
11
|
#
|
|
12
12
|
# @param cardholder [Increase::Models::PhysicalCardCreateParams::Cardholder]
|
|
13
|
-
# Details about the cardholder, as it will appear on the physical card.
|
|
13
|
+
# Details about the cardholder, as it will appear on the physical card. The
|
|
14
|
+
# combined first name and last name cannot exceed 25 characters.
|
|
14
15
|
#
|
|
15
16
|
# @param shipment [Increase::Models::PhysicalCardCreateParams::Shipment]
|
|
16
17
|
# The details used to ship this physical card.
|
|
@@ -50,7 +50,10 @@ module Increase
|
|
|
50
50
|
# @param inbound_check_deposit_id [String] The identifier of the Inbound Check Deposit to adjust.
|
|
51
51
|
#
|
|
52
52
|
# @param amount [Integer]
|
|
53
|
-
# The adjustment amount in cents.
|
|
53
|
+
# The adjustment amount in cents. A positive amount means that the funds are being
|
|
54
|
+
# returned to you by the other bank and is a credit to your account, as happens
|
|
55
|
+
# for a `wrong_payee_credit`. A negative amount is a debit to your account, as
|
|
56
|
+
# happens for a `late_return`. Defaults to the amount of the Inbound Check
|
|
54
57
|
# Deposit.
|
|
55
58
|
#
|
|
56
59
|
# @param reason [Symbol, Increase::Models::Simulations::InboundCheckDepositAdjustmentParams::Reason]
|
data/lib/increase/version.rb
CHANGED
|
@@ -144,37 +144,53 @@ module Increase
|
|
|
144
144
|
|
|
145
145
|
# The number of days after the statement date that the Account can be past due
|
|
146
146
|
# before being considered delinquent.
|
|
147
|
-
sig { returns(Integer) }
|
|
148
|
-
|
|
147
|
+
sig { returns(T.nilable(Integer)) }
|
|
148
|
+
attr_reader :grace_period_days
|
|
149
|
+
|
|
150
|
+
sig { params(grace_period_days: Integer).void }
|
|
151
|
+
attr_writer :grace_period_days
|
|
152
|
+
|
|
153
|
+
# The date on which the loan matures.
|
|
154
|
+
sig { returns(T.nilable(Date)) }
|
|
155
|
+
attr_reader :maturity_date
|
|
156
|
+
|
|
157
|
+
sig { params(maturity_date: Date).void }
|
|
158
|
+
attr_writer :maturity_date
|
|
149
159
|
|
|
150
160
|
# The day of the month on which the loan statement is generated.
|
|
151
|
-
sig { returns(Integer) }
|
|
152
|
-
|
|
161
|
+
sig { returns(T.nilable(Integer)) }
|
|
162
|
+
attr_reader :statement_day_of_month
|
|
163
|
+
|
|
164
|
+
sig { params(statement_day_of_month: Integer).void }
|
|
165
|
+
attr_writer :statement_day_of_month
|
|
153
166
|
|
|
154
167
|
# The type of statement payment for the account.
|
|
155
168
|
sig do
|
|
156
169
|
returns(
|
|
157
|
-
|
|
170
|
+
T.nilable(
|
|
171
|
+
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
172
|
+
)
|
|
158
173
|
)
|
|
159
174
|
end
|
|
160
|
-
|
|
175
|
+
attr_reader :statement_payment_type
|
|
161
176
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
177
|
+
sig do
|
|
178
|
+
params(
|
|
179
|
+
statement_payment_type:
|
|
180
|
+
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
181
|
+
).void
|
|
182
|
+
end
|
|
183
|
+
attr_writer :statement_payment_type
|
|
168
184
|
|
|
169
185
|
# The loan details for the account.
|
|
170
186
|
sig do
|
|
171
187
|
params(
|
|
172
188
|
credit_limit: Integer,
|
|
173
189
|
grace_period_days: Integer,
|
|
190
|
+
maturity_date: Date,
|
|
174
191
|
statement_day_of_month: Integer,
|
|
175
192
|
statement_payment_type:
|
|
176
|
-
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
177
|
-
maturity_date: Date
|
|
193
|
+
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
178
194
|
).returns(T.attached_class)
|
|
179
195
|
end
|
|
180
196
|
def self.new(
|
|
@@ -182,13 +198,13 @@ module Increase
|
|
|
182
198
|
credit_limit:,
|
|
183
199
|
# The number of days after the statement date that the Account can be past due
|
|
184
200
|
# before being considered delinquent.
|
|
185
|
-
grace_period_days
|
|
201
|
+
grace_period_days: nil,
|
|
202
|
+
# The date on which the loan matures.
|
|
203
|
+
maturity_date: nil,
|
|
186
204
|
# The day of the month on which the loan statement is generated.
|
|
187
|
-
statement_day_of_month
|
|
205
|
+
statement_day_of_month: nil,
|
|
188
206
|
# The type of statement payment for the account.
|
|
189
|
-
statement_payment_type
|
|
190
|
-
# The date on which the loan matures.
|
|
191
|
-
maturity_date: nil
|
|
207
|
+
statement_payment_type: nil
|
|
192
208
|
)
|
|
193
209
|
end
|
|
194
210
|
|
|
@@ -197,10 +213,10 @@ module Increase
|
|
|
197
213
|
{
|
|
198
214
|
credit_limit: Integer,
|
|
199
215
|
grace_period_days: Integer,
|
|
216
|
+
maturity_date: Date,
|
|
200
217
|
statement_day_of_month: Integer,
|
|
201
218
|
statement_payment_type:
|
|
202
|
-
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
203
|
-
maturity_date: Date
|
|
219
|
+
Increase::AccountCreateParams::Loan::StatementPaymentType::OrSymbol
|
|
204
220
|
}
|
|
205
221
|
)
|
|
206
222
|
end
|
|
@@ -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
|
|
@@ -735,6 +735,13 @@ module Increase
|
|
|
735
735
|
Increase::Event::Category::TaggedSymbol
|
|
736
736
|
)
|
|
737
737
|
|
|
738
|
+
# Occurs whenever a Plaid Processor Token is created.
|
|
739
|
+
PLAID_PROCESSOR_TOKEN_CREATED =
|
|
740
|
+
T.let(
|
|
741
|
+
:"plaid_processor_token.created",
|
|
742
|
+
Increase::Event::Category::TaggedSymbol
|
|
743
|
+
)
|
|
744
|
+
|
|
738
745
|
# Occurs whenever a Checkbook is created.
|
|
739
746
|
CHECKBOOK_CREATED =
|
|
740
747
|
T.let(:"checkbook.created", Increase::Event::Category::TaggedSymbol)
|