increase 1.347.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.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/account_create_params.rb +15 -15
  4. data/lib/increase/models/ach_prenotification_create_params.rb +2 -2
  5. data/lib/increase/models/ach_transfer.rb +2 -2
  6. data/lib/increase/models/ach_transfer_create_params.rb +1 -24
  7. data/lib/increase/models/balance_lookup.rb +49 -1
  8. data/lib/increase/models/beneficial_owner_update_params.rb +9 -1
  9. data/lib/increase/models/card.rb +43 -1
  10. data/lib/increase/models/card_create_params.rb +42 -1
  11. data/lib/increase/models/card_dispute.rb +1 -1
  12. data/lib/increase/models/card_dispute_list_params.rb +1 -1
  13. data/lib/increase/models/card_payment.rb +18 -1
  14. data/lib/increase/models/check_transfer.rb +13 -1
  15. data/lib/increase/models/check_transfer_create_params.rb +25 -13
  16. data/lib/increase/models/entity.rb +315 -5
  17. data/lib/increase/models/entity_update_params.rb +754 -1
  18. data/lib/increase/models/event.rb +12 -0
  19. data/lib/increase/models/event_list_params.rb +12 -0
  20. data/lib/increase/models/event_subscription.rb +12 -0
  21. data/lib/increase/models/event_subscription_create_params.rb +12 -0
  22. data/lib/increase/models/file.rb +7 -6
  23. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  24. data/lib/increase/models/inbound_check_deposit.rb +5 -2
  25. data/lib/increase/models/inbound_fednow_transfer.rb +18 -1
  26. data/lib/increase/models/pending_transaction.rb +25 -8
  27. data/lib/increase/models/pending_transaction_list_params.rb +1 -1
  28. data/lib/increase/models/physical_card_create_params.rb +6 -3
  29. data/lib/increase/models/real_time_decision.rb +18 -1
  30. data/lib/increase/models/real_time_payments_transfer.rb +30 -19
  31. data/lib/increase/models/real_time_payments_transfer_create_params.rb +12 -1
  32. data/lib/increase/models/simulations/card_dispute_action_params.rb +30 -1
  33. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -0
  34. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
  35. data/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb +18 -18
  36. data/lib/increase/models/transaction.rb +5 -2
  37. data/lib/increase/models/unwrap_webhook_event.rb +12 -0
  38. data/lib/increase/models/wire_transfer_create_params.rb +100 -42
  39. data/lib/increase/resources/ach_prenotifications.rb +1 -1
  40. data/lib/increase/resources/ach_transfers.rb +1 -4
  41. data/lib/increase/resources/beneficial_owners.rb +3 -1
  42. data/lib/increase/resources/cards.rb +5 -1
  43. data/lib/increase/resources/physical_cards.rb +2 -1
  44. data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
  45. data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
  46. data/lib/increase/version.rb +1 -1
  47. data/rbi/increase/models/account_create_params.rbi +37 -21
  48. data/rbi/increase/models/ach_prenotification_create_params.rbi +2 -2
  49. data/rbi/increase/models/ach_transfer.rbi +2 -2
  50. data/rbi/increase/models/ach_transfer_create_params.rbi +0 -59
  51. data/rbi/increase/models/balance_lookup.rbi +48 -0
  52. data/rbi/increase/models/beneficial_owner_update_params.rbi +11 -0
  53. data/rbi/increase/models/card.rbi +63 -0
  54. data/rbi/increase/models/card_create_params.rbi +65 -0
  55. data/rbi/increase/models/card_dispute.rbi +1 -1
  56. data/rbi/increase/models/card_dispute_list_params.rbi +1 -1
  57. data/rbi/increase/models/card_payment.rbi +16 -0
  58. data/rbi/increase/models/check_transfer.rbi +15 -0
  59. data/rbi/increase/models/check_transfer_create_params.rbi +26 -12
  60. data/rbi/increase/models/entity.rbi +552 -3
  61. data/rbi/increase/models/entity_update_params.rbi +1326 -3
  62. data/rbi/increase/models/event.rbi +28 -0
  63. data/rbi/increase/models/event_list_params.rbi +28 -0
  64. data/rbi/increase/models/event_subscription.rbi +28 -0
  65. data/rbi/increase/models/event_subscription_create_params.rbi +28 -0
  66. data/rbi/increase/models/file.rbi +7 -6
  67. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  68. data/rbi/increase/models/inbound_check_deposit.rbi +4 -2
  69. data/rbi/increase/models/inbound_fednow_transfer.rbi +16 -0
  70. data/rbi/increase/models/pending_transaction.rbi +23 -7
  71. data/rbi/increase/models/pending_transaction_list_params.rbi +1 -1
  72. data/rbi/increase/models/physical_card_create_params.rbi +6 -3
  73. data/rbi/increase/models/real_time_decision.rbi +16 -0
  74. data/rbi/increase/models/real_time_payments_transfer.rbi +29 -18
  75. data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +15 -0
  76. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +60 -0
  77. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +7 -0
  78. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
  79. data/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi +18 -18
  80. data/rbi/increase/models/transaction.rbi +4 -2
  81. data/rbi/increase/models/unwrap_webhook_event.rbi +28 -0
  82. data/rbi/increase/models/wire_transfer_create_params.rbi +146 -62
  83. data/rbi/increase/resources/ach_prenotifications.rbi +1 -1
  84. data/rbi/increase/resources/ach_transfers.rbi +0 -4
  85. data/rbi/increase/resources/beneficial_owners.rbi +3 -0
  86. data/rbi/increase/resources/cards.rbi +4 -0
  87. data/rbi/increase/resources/physical_cards.rbi +2 -1
  88. data/rbi/increase/resources/real_time_payments_transfers.rbi +4 -0
  89. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
  90. data/sig/increase/models/account_create_params.rbs +20 -12
  91. data/sig/increase/models/ach_transfer_create_params.rbs +1 -24
  92. data/sig/increase/models/balance_lookup.rbs +30 -0
  93. data/sig/increase/models/beneficial_owner_update_params.rbs +7 -0
  94. data/sig/increase/models/card.rbs +19 -0
  95. data/sig/increase/models/card_create_params.rbs +25 -0
  96. data/sig/increase/models/card_dispute.rbs +1 -1
  97. data/sig/increase/models/card_dispute_list_params.rbs +1 -1
  98. data/sig/increase/models/card_payment.rbs +5 -0
  99. data/sig/increase/models/check_transfer.rbs +9 -0
  100. data/sig/increase/models/check_transfer_create_params.rbs +7 -0
  101. data/sig/increase/models/entity.rbs +248 -5
  102. data/sig/increase/models/entity_update_params.rbs +585 -3
  103. data/sig/increase/models/event.rbs +16 -0
  104. data/sig/increase/models/event_list_params.rbs +16 -0
  105. data/sig/increase/models/event_subscription.rbs +16 -0
  106. data/sig/increase/models/event_subscription_create_params.rbs +16 -0
  107. data/sig/increase/models/inbound_ach_transfer.rbs +2 -2
  108. data/sig/increase/models/inbound_fednow_transfer.rbs +10 -0
  109. data/sig/increase/models/pending_transaction.rbs +6 -1
  110. data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
  111. data/sig/increase/models/real_time_decision.rbs +5 -0
  112. data/sig/increase/models/real_time_payments_transfer.rbs +23 -18
  113. data/sig/increase/models/real_time_payments_transfer_create_params.rbs +7 -0
  114. data/sig/increase/models/simulations/card_dispute_action_params.rbs +23 -0
  115. data/sig/increase/models/simulations/entity_update_validation_params.rbs +4 -0
  116. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
  117. data/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs +18 -18
  118. data/sig/increase/models/unwrap_webhook_event.rbs +16 -0
  119. data/sig/increase/models/wire_transfer_create_params.rbs +78 -32
  120. data/sig/increase/resources/ach_transfers.rbs +0 -1
  121. data/sig/increase/resources/beneficial_owners.rbs +1 -0
  122. data/sig/increase/resources/cards.rbs +1 -0
  123. data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
  124. 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
@@ -2015,7 +2506,7 @@ module Increase
2015
2506
  attr_accessor :agreed_at
2016
2507
 
2017
2508
  # The IP address the Entity accessed reviewed the terms from.
2018
- sig { returns(String) }
2509
+ sig { returns(T.nilable(String)) }
2019
2510
  attr_accessor :ip_address
2020
2511
 
2021
2512
  # The URL of the terms agreement. This link will be provided by your bank partner.
@@ -2025,7 +2516,7 @@ module Increase
2025
2516
  sig do
2026
2517
  params(
2027
2518
  agreed_at: Time,
2028
- ip_address: String,
2519
+ ip_address: T.nilable(String),
2029
2520
  terms_url: String
2030
2521
  ).returns(T.attached_class)
2031
2522
  end
@@ -2041,7 +2532,11 @@ module Increase
2041
2532
 
2042
2533
  sig do
2043
2534
  override.returns(
2044
- { agreed_at: Time, ip_address: String, terms_url: String }
2535
+ {
2536
+ agreed_at: Time,
2537
+ ip_address: T.nilable(String),
2538
+ terms_url: String
2539
+ }
2045
2540
  )
2046
2541
  end
2047
2542
  def to_hash
@@ -3137,6 +3632,24 @@ module Increase
3137
3632
  end
3138
3633
  attr_writer :entity_address
3139
3634
 
3635
+ # Details when the issue is with the entity's identity verification.
3636
+ sig do
3637
+ returns(
3638
+ T.nilable(Increase::Entity::Validation::Issue::EntityIdentity)
3639
+ )
3640
+ end
3641
+ attr_reader :entity_identity
3642
+
3643
+ sig do
3644
+ params(
3645
+ entity_identity:
3646
+ T.nilable(
3647
+ Increase::Entity::Validation::Issue::EntityIdentity::OrHash
3648
+ )
3649
+ ).void
3650
+ end
3651
+ attr_writer :entity_identity
3652
+
3140
3653
  # Details when the issue is with the entity's tax ID.
3141
3654
  sig do
3142
3655
  returns(
@@ -3172,6 +3685,10 @@ module Increase
3172
3685
  T.nilable(
3173
3686
  Increase::Entity::Validation::Issue::EntityAddress::OrHash
3174
3687
  ),
3688
+ entity_identity:
3689
+ T.nilable(
3690
+ Increase::Entity::Validation::Issue::EntityIdentity::OrHash
3691
+ ),
3175
3692
  entity_tax_identifier:
3176
3693
  T.nilable(
3177
3694
  Increase::Entity::Validation::Issue::EntityTaxIdentifier::OrHash
@@ -3188,6 +3705,8 @@ module Increase
3188
3705
  category:,
3189
3706
  # Details when the issue is with the entity's address.
3190
3707
  entity_address:,
3708
+ # Details when the issue is with the entity's identity verification.
3709
+ entity_identity:,
3191
3710
  # Details when the issue is with the entity's tax ID.
3192
3711
  entity_tax_identifier:
3193
3712
  )
@@ -3208,6 +3727,10 @@ module Increase
3208
3727
  Increase::Entity::Validation::Issue::Category::TaggedSymbol,
3209
3728
  entity_address:
3210
3729
  T.nilable(Increase::Entity::Validation::Issue::EntityAddress),
3730
+ entity_identity:
3731
+ T.nilable(
3732
+ Increase::Entity::Validation::Issue::EntityIdentity
3733
+ ),
3211
3734
  entity_tax_identifier:
3212
3735
  T.nilable(
3213
3736
  Increase::Entity::Validation::Issue::EntityTaxIdentifier
@@ -3352,6 +3875,13 @@ module Increase
3352
3875
  Increase::Entity::Validation::Issue::Category::TaggedSymbol
3353
3876
  )
3354
3877
 
3878
+ # The entity's identity could not be verified. Update the identification with the [update an entity API](/documentation/api/entities#update-an-entity.natural_person.identification).
3879
+ ENTITY_IDENTITY =
3880
+ T.let(
3881
+ :entity_identity,
3882
+ Increase::Entity::Validation::Issue::Category::TaggedSymbol
3883
+ )
3884
+
3355
3885
  # A beneficial owner's identity could not be verified. Update the identification with the [update a beneficial owner API](/documentation/api/beneficial-owners#update-a-beneficial-owner).
3356
3886
  BENEFICIAL_OWNER_IDENTITY =
3357
3887
  T.let(
@@ -3450,6 +3980,25 @@ module Increase
3450
3980
  end
3451
3981
  end
3452
3982
 
3983
+ class EntityIdentity < Increase::Internal::Type::BaseModel
3984
+ OrHash =
3985
+ T.type_alias do
3986
+ T.any(
3987
+ Increase::Entity::Validation::Issue::EntityIdentity,
3988
+ Increase::Internal::AnyHash
3989
+ )
3990
+ end
3991
+
3992
+ # Details when the issue is with the entity's identity verification.
3993
+ sig { returns(T.attached_class) }
3994
+ def self.new
3995
+ end
3996
+
3997
+ sig { override.returns({}) }
3998
+ def to_hash
3999
+ end
4000
+ end
4001
+
3453
4002
  class EntityTaxIdentifier < Increase::Internal::Type::BaseModel
3454
4003
  OrHash =
3455
4004
  T.type_alias do