increase 1.349.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.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/account_number.rb +3 -3
  4. data/lib/increase/models/ach_transfer.rb +12 -12
  5. data/lib/increase/models/balance_lookup.rb +1 -1
  6. data/lib/increase/models/beneficial_owner_create_params.rb +2 -4
  7. data/lib/increase/models/beneficial_owner_update_params.rb +2 -4
  8. data/lib/increase/models/card_dispute.rb +9 -1
  9. data/lib/increase/models/card_dispute_submit_user_submission_params.rb +4 -0
  10. data/lib/increase/models/card_payment.rb +58 -58
  11. data/lib/increase/models/card_purchase_supplement.rb +9 -1
  12. data/lib/increase/models/card_token_capabilities.rb +2 -2
  13. data/lib/increase/models/check_deposit.rb +9 -9
  14. data/lib/increase/models/check_transfer.rb +2 -2
  15. data/lib/increase/models/check_transfer_create_params.rb +9 -4
  16. data/lib/increase/models/declined_transaction.rb +12 -9
  17. data/lib/increase/models/digital_wallet_token.rb +9 -1
  18. data/lib/increase/models/entity.rb +5 -5
  19. data/lib/increase/models/entity_create_params.rb +332 -29
  20. data/lib/increase/models/entity_onboarding_session_list_params.rb +2 -2
  21. data/lib/increase/models/entity_update_params.rb +472 -15
  22. data/lib/increase/models/fednow_transfer.rb +115 -4
  23. data/lib/increase/models/fednow_transfer_list_params.rb +3 -3
  24. data/lib/increase/models/inbound_ach_transfer.rb +2 -2
  25. data/lib/increase/models/inbound_check_deposit.rb +2 -2
  26. data/lib/increase/models/inbound_fednow_transfer.rb +3 -0
  27. data/lib/increase/models/inbound_mail_item.rb +14 -1
  28. data/lib/increase/models/inbound_wire_drawdown_request.rb +12 -1
  29. data/lib/increase/models/inbound_wire_transfer.rb +4 -4
  30. data/lib/increase/models/intrafi_exclusion.rb +4 -4
  31. data/lib/increase/models/lockbox_recipient_create_params.rb +2 -2
  32. data/lib/increase/models/pending_transaction.rb +13 -13
  33. data/lib/increase/models/pending_transaction_list_params.rb +4 -6
  34. data/lib/increase/models/physical_card.rb +9 -1
  35. data/lib/increase/models/real_time_decision.rb +18 -18
  36. data/lib/increase/models/simulations/card_authentication_create_params.rb +2 -2
  37. data/lib/increase/models/simulations/card_dispute_action_params.rb +6 -6
  38. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -3
  39. data/lib/increase/models/simulations/interest_payment_create_params.rb +2 -2
  40. data/lib/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rb +2 -2
  41. data/lib/increase/models/simulations/program_create_params.rb +14 -3
  42. data/lib/increase/models/transaction.rb +141 -17
  43. data/lib/increase/models/transaction_list_params.rb +3 -0
  44. data/lib/increase/models/wire_drawdown_request.rb +12 -1
  45. data/lib/increase/models/wire_transfer_create_params.rb +2 -2
  46. data/lib/increase/resources/cards.rb +2 -2
  47. data/lib/increase/resources/check_transfers.rb +1 -1
  48. data/lib/increase/resources/entities.rb +10 -2
  49. data/lib/increase/resources/entity_onboarding_sessions.rb +1 -1
  50. data/lib/increase/resources/lockbox_recipients.rb +1 -1
  51. data/lib/increase/resources/simulations/card_authentications.rb +1 -1
  52. data/lib/increase/resources/simulations/card_disputes.rb +2 -2
  53. data/lib/increase/resources/simulations/interest_payments.rb +1 -1
  54. data/lib/increase/resources/simulations/pending_transactions.rb +1 -1
  55. data/lib/increase/resources/simulations/physical_cards.rb +2 -2
  56. data/lib/increase/resources/simulations/programs.rb +6 -2
  57. data/lib/increase/resources/wire_transfers.rb +1 -1
  58. data/lib/increase/version.rb +1 -1
  59. data/rbi/increase/models/account_number.rbi +3 -3
  60. data/rbi/increase/models/ach_transfer.rbi +12 -12
  61. data/rbi/increase/models/balance_lookup.rbi +1 -1
  62. data/rbi/increase/models/beneficial_owner_create_params.rbi +2 -4
  63. data/rbi/increase/models/beneficial_owner_update_params.rbi +2 -4
  64. data/rbi/increase/models/card_dispute.rbi +8 -0
  65. data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +3 -0
  66. data/rbi/increase/models/card_payment.rbi +58 -58
  67. data/rbi/increase/models/card_purchase_supplement.rbi +8 -0
  68. data/rbi/increase/models/card_token_capabilities.rbi +2 -2
  69. data/rbi/increase/models/check_deposit.rbi +9 -9
  70. data/rbi/increase/models/check_transfer.rbi +2 -2
  71. data/rbi/increase/models/check_transfer_create_params.rbi +8 -4
  72. data/rbi/increase/models/declined_transaction.rbi +16 -9
  73. data/rbi/increase/models/digital_wallet_token.rbi +8 -0
  74. data/rbi/increase/models/entity.rbi +5 -5
  75. data/rbi/increase/models/entity_create_params.rbi +547 -28
  76. data/rbi/increase/models/entity_onboarding_session_list_params.rbi +2 -2
  77. data/rbi/increase/models/entity_update_params.rbi +814 -14
  78. data/rbi/increase/models/fednow_transfer.rbi +213 -7
  79. data/rbi/increase/models/fednow_transfer_list_params.rbi +7 -7
  80. data/rbi/increase/models/inbound_ach_transfer.rbi +2 -2
  81. data/rbi/increase/models/inbound_check_deposit.rbi +2 -2
  82. data/rbi/increase/models/inbound_fednow_transfer.rbi +7 -0
  83. data/rbi/increase/models/inbound_mail_item.rbi +12 -0
  84. data/rbi/increase/models/inbound_wire_drawdown_request.rbi +10 -0
  85. data/rbi/increase/models/inbound_wire_transfer.rbi +4 -4
  86. data/rbi/increase/models/intrafi_exclusion.rbi +4 -4
  87. data/rbi/increase/models/lockbox_recipient_create_params.rbi +2 -2
  88. data/rbi/increase/models/pending_transaction.rbi +13 -13
  89. data/rbi/increase/models/pending_transaction_list_params.rbi +4 -6
  90. data/rbi/increase/models/physical_card.rbi +8 -0
  91. data/rbi/increase/models/real_time_decision.rbi +18 -18
  92. data/rbi/increase/models/simulations/card_authentication_create_params.rbi +2 -2
  93. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +6 -6
  94. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +3 -3
  95. data/rbi/increase/models/simulations/interest_payment_create_params.rbi +2 -2
  96. data/rbi/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rbi +2 -2
  97. data/rbi/increase/models/simulations/program_create_params.rbi +15 -2
  98. data/rbi/increase/models/transaction.rbi +260 -16
  99. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  100. data/rbi/increase/models/wire_drawdown_request.rbi +10 -0
  101. data/rbi/increase/models/wire_transfer_create_params.rbi +2 -2
  102. data/rbi/increase/resources/cards.rbi +2 -2
  103. data/rbi/increase/resources/check_transfers.rbi +1 -1
  104. data/rbi/increase/resources/entities.rbi +10 -0
  105. data/rbi/increase/resources/entity_onboarding_sessions.rbi +1 -1
  106. data/rbi/increase/resources/lockbox_recipients.rbi +1 -1
  107. data/rbi/increase/resources/simulations/card_authentications.rbi +1 -1
  108. data/rbi/increase/resources/simulations/card_disputes.rbi +2 -2
  109. data/rbi/increase/resources/simulations/interest_payments.rbi +1 -1
  110. data/rbi/increase/resources/simulations/pending_transactions.rbi +1 -1
  111. data/rbi/increase/resources/simulations/physical_cards.rbi +2 -2
  112. data/rbi/increase/resources/simulations/programs.rbi +5 -1
  113. data/rbi/increase/resources/wire_transfers.rbi +1 -1
  114. data/sig/increase/models/card_dispute.rbs +5 -0
  115. data/sig/increase/models/card_purchase_supplement.rbs +5 -0
  116. data/sig/increase/models/declined_transaction.rbs +4 -0
  117. data/sig/increase/models/digital_wallet_token.rbs +5 -0
  118. data/sig/increase/models/entity.rbs +3 -3
  119. data/sig/increase/models/entity_create_params.rbs +232 -1
  120. data/sig/increase/models/entity_update_params.rbs +366 -0
  121. data/sig/increase/models/fednow_transfer.rbs +113 -4
  122. data/sig/increase/models/fednow_transfer_list_params.rbs +4 -4
  123. data/sig/increase/models/inbound_fednow_transfer.rbs +4 -0
  124. data/sig/increase/models/inbound_mail_item.rbs +5 -0
  125. data/sig/increase/models/inbound_wire_drawdown_request.rbs +5 -0
  126. data/sig/increase/models/physical_card.rbs +5 -0
  127. data/sig/increase/models/simulations/entity_update_validation_params.rbs +3 -3
  128. data/sig/increase/models/simulations/program_create_params.rbs +7 -0
  129. data/sig/increase/models/transaction.rbs +113 -0
  130. data/sig/increase/models/transaction_list_params.rbs +4 -0
  131. data/sig/increase/models/wire_drawdown_request.rbs +5 -0
  132. data/sig/increase/resources/entities.rbs +2 -0
  133. data/sig/increase/resources/simulations/programs.rbs +1 -0
  134. metadata +2 -2
@@ -83,6 +83,21 @@ module Increase
83
83
  end
84
84
  attr_writer :risk_rating
85
85
 
86
+ # Details of the sole proprietorship entity to create. Required if `structure` is
87
+ # equal to `sole_proprietorship`.
88
+ sig do
89
+ returns(T.nilable(Increase::EntityCreateParams::SoleProprietorship))
90
+ end
91
+ attr_reader :sole_proprietorship
92
+
93
+ sig do
94
+ params(
95
+ sole_proprietorship:
96
+ Increase::EntityCreateParams::SoleProprietorship::OrHash
97
+ ).void
98
+ end
99
+ attr_writer :sole_proprietorship
100
+
86
101
  # Additional documentation associated with the entity.
87
102
  sig do
88
103
  returns(
@@ -152,6 +167,8 @@ module Increase
152
167
  joint: Increase::EntityCreateParams::Joint::OrHash,
153
168
  natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash,
154
169
  risk_rating: Increase::EntityCreateParams::RiskRating::OrHash,
170
+ sole_proprietorship:
171
+ Increase::EntityCreateParams::SoleProprietorship::OrHash,
155
172
  supplemental_documents:
156
173
  T::Array[
157
174
  Increase::EntityCreateParams::SupplementalDocument::OrHash
@@ -186,6 +203,9 @@ module Increase
186
203
  # An assessment of the entity's potential risk of involvement in financial crimes,
187
204
  # such as money laundering.
188
205
  risk_rating: nil,
206
+ # Details of the sole proprietorship entity to create. Required if `structure` is
207
+ # equal to `sole_proprietorship`.
208
+ sole_proprietorship: nil,
189
209
  # Additional documentation associated with the entity.
190
210
  supplemental_documents: nil,
191
211
  # The terms that the Entity agreed to. Not all programs are required to submit
@@ -213,6 +233,8 @@ module Increase
213
233
  joint: Increase::EntityCreateParams::Joint,
214
234
  natural_person: Increase::EntityCreateParams::NaturalPerson,
215
235
  risk_rating: Increase::EntityCreateParams::RiskRating,
236
+ sole_proprietorship:
237
+ Increase::EntityCreateParams::SoleProprietorship,
216
238
  supplemental_documents:
217
239
  T::Array[Increase::EntityCreateParams::SupplementalDocument],
218
240
  terms_agreements:
@@ -266,6 +288,13 @@ module Increase
266
288
  Increase::EntityCreateParams::Structure::TaggedSymbol
267
289
  )
268
290
 
291
+ # A sole proprietorship.
292
+ SOLE_PROPRIETORSHIP =
293
+ T.let(
294
+ :sole_proprietorship,
295
+ Increase::EntityCreateParams::Structure::TaggedSymbol
296
+ )
297
+
269
298
  sig do
270
299
  override.returns(
271
300
  T::Array[Increase::EntityCreateParams::Structure::TaggedSymbol]
@@ -859,8 +888,7 @@ module Increase
859
888
  # An identification number that can be used to verify the individual's identity,
860
889
  # such as a social security number. For Social Security Numbers and Individual
861
890
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
862
- # separators. When testing in sandbox, use one of our
863
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
891
+ # separators.
864
892
  sig { returns(String) }
865
893
  attr_accessor :number
866
894
 
@@ -943,8 +971,7 @@ module Increase
943
971
  # An identification number that can be used to verify the individual's identity,
944
972
  # such as a social security number. For Social Security Numbers and Individual
945
973
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
946
- # separators. When testing in sandbox, use one of our
947
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
974
+ # separators.
948
975
  number:,
949
976
  # Information about the United States driver's license used for identification.
950
977
  # Required if `method` is equal to `drivers_license`.
@@ -1281,9 +1308,7 @@ module Increase
1281
1308
  end
1282
1309
 
1283
1310
  # The legal identifier itself. For US Employer Identification Numbers, submit nine
1284
- # digits with no dashes or other separators. When testing in sandbox, use one of
1285
- # our
1286
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
1311
+ # digits with no dashes or other separators.
1287
1312
  sig { returns(String) }
1288
1313
  attr_accessor :value
1289
1314
 
@@ -1319,9 +1344,7 @@ module Increase
1319
1344
  end
1320
1345
  def self.new(
1321
1346
  # The legal identifier itself. For US Employer Identification Numbers, submit nine
1322
- # digits with no dashes or other separators. When testing in sandbox, use one of
1323
- # our
1324
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
1347
+ # digits with no dashes or other separators.
1325
1348
  value:,
1326
1349
  # The category of the legal identifier.
1327
1350
  #
@@ -1962,8 +1985,7 @@ module Increase
1962
1985
  # An identification number that can be used to verify the individual's identity,
1963
1986
  # such as a social security number. For Social Security Numbers and Individual
1964
1987
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
1965
- # separators. When testing in sandbox, use one of our
1966
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
1988
+ # separators.
1967
1989
  sig { returns(String) }
1968
1990
  attr_accessor :number
1969
1991
 
@@ -2046,8 +2068,7 @@ module Increase
2046
2068
  # An identification number that can be used to verify the individual's identity,
2047
2069
  # such as a social security number. For Social Security Numbers and Individual
2048
2070
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
2049
- # separators. When testing in sandbox, use one of our
2050
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
2071
+ # separators.
2051
2072
  number:,
2052
2073
  # Information about the United States driver's license used for identification.
2053
2074
  # Required if `method` is equal to `drivers_license`.
@@ -2553,8 +2574,7 @@ module Increase
2553
2574
  # An identification number that can be used to verify the individual's identity,
2554
2575
  # such as a social security number. For Social Security Numbers and Individual
2555
2576
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
2556
- # separators. When testing in sandbox, use one of our
2557
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
2577
+ # separators.
2558
2578
  sig { returns(String) }
2559
2579
  attr_accessor :number
2560
2580
 
@@ -2637,8 +2657,7 @@ module Increase
2637
2657
  # An identification number that can be used to verify the individual's identity,
2638
2658
  # such as a social security number. For Social Security Numbers and Individual
2639
2659
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
2640
- # separators. When testing in sandbox, use one of our
2641
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
2660
+ # separators.
2642
2661
  number:,
2643
2662
  # Information about the United States driver's license used for identification.
2644
2663
  # Required if `method` is equal to `drivers_license`.
@@ -3018,6 +3037,510 @@ module Increase
3018
3037
  end
3019
3038
  end
3020
3039
 
3040
+ class SoleProprietorship < Increase::Internal::Type::BaseModel
3041
+ OrHash =
3042
+ T.type_alias do
3043
+ T.any(
3044
+ Increase::EntityCreateParams::SoleProprietorship,
3045
+ Increase::Internal::AnyHash
3046
+ )
3047
+ end
3048
+
3049
+ # The sole proprietorship's business address. Mail receiving locations like PO
3050
+ # Boxes and PMB's are disallowed.
3051
+ sig do
3052
+ returns(Increase::EntityCreateParams::SoleProprietorship::Address)
3053
+ end
3054
+ attr_reader :address
3055
+
3056
+ sig do
3057
+ params(
3058
+ address:
3059
+ Increase::EntityCreateParams::SoleProprietorship::Address::OrHash
3060
+ ).void
3061
+ end
3062
+ attr_writer :address
3063
+
3064
+ # The individual who operates the sole proprietorship.
3065
+ sig do
3066
+ returns(
3067
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor
3068
+ )
3069
+ end
3070
+ attr_reader :sole_proprietor
3071
+
3072
+ sig do
3073
+ params(
3074
+ sole_proprietor:
3075
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::OrHash
3076
+ ).void
3077
+ end
3078
+ attr_writer :sole_proprietor
3079
+
3080
+ # The name under which the sole proprietorship does business, if it is different
3081
+ # from the name of the sole proprietor.
3082
+ sig { returns(T.nilable(String)) }
3083
+ attr_reader :doing_business_as_name
3084
+
3085
+ sig { params(doing_business_as_name: String).void }
3086
+ attr_writer :doing_business_as_name
3087
+
3088
+ # An email address for the sole proprietorship. Not every program requires an
3089
+ # email for submitted Entities.
3090
+ sig { returns(T.nilable(String)) }
3091
+ attr_reader :email
3092
+
3093
+ sig { params(email: String).void }
3094
+ attr_writer :email
3095
+
3096
+ # The North American Industry Classification System (NAICS) code for the sole
3097
+ # proprietorship's primary line of business. This is a number, like `5132` for
3098
+ # `Software Publishers`. A full list of classification codes is available
3099
+ # [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
3100
+ sig { returns(T.nilable(String)) }
3101
+ attr_reader :industry_code
3102
+
3103
+ sig { params(industry_code: String).void }
3104
+ attr_writer :industry_code
3105
+
3106
+ # The United States Employer Identification Number (EIN) for the sole
3107
+ # proprietorship, if the sole proprietor has one. Submit nine digits with no
3108
+ # dashes or other separators.
3109
+ sig { returns(T.nilable(String)) }
3110
+ attr_reader :tax_identifier
3111
+
3112
+ sig { params(tax_identifier: String).void }
3113
+ attr_writer :tax_identifier
3114
+
3115
+ # A website for the sole proprietorship. Not every program requires a website for
3116
+ # submitted Entities.
3117
+ sig { returns(T.nilable(String)) }
3118
+ attr_reader :website
3119
+
3120
+ sig { params(website: String).void }
3121
+ attr_writer :website
3122
+
3123
+ # Details of the sole proprietorship entity to create. Required if `structure` is
3124
+ # equal to `sole_proprietorship`.
3125
+ sig do
3126
+ params(
3127
+ address:
3128
+ Increase::EntityCreateParams::SoleProprietorship::Address::OrHash,
3129
+ sole_proprietor:
3130
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::OrHash,
3131
+ doing_business_as_name: String,
3132
+ email: String,
3133
+ industry_code: String,
3134
+ tax_identifier: String,
3135
+ website: String
3136
+ ).returns(T.attached_class)
3137
+ end
3138
+ def self.new(
3139
+ # The sole proprietorship's business address. Mail receiving locations like PO
3140
+ # Boxes and PMB's are disallowed.
3141
+ address:,
3142
+ # The individual who operates the sole proprietorship.
3143
+ sole_proprietor:,
3144
+ # The name under which the sole proprietorship does business, if it is different
3145
+ # from the name of the sole proprietor.
3146
+ doing_business_as_name: nil,
3147
+ # An email address for the sole proprietorship. Not every program requires an
3148
+ # email for submitted Entities.
3149
+ email: nil,
3150
+ # The North American Industry Classification System (NAICS) code for the sole
3151
+ # proprietorship's primary line of business. This is a number, like `5132` for
3152
+ # `Software Publishers`. A full list of classification codes is available
3153
+ # [here](https://increase.com/documentation/data-dictionary#north-american-industry-classification-system-codes).
3154
+ industry_code: nil,
3155
+ # The United States Employer Identification Number (EIN) for the sole
3156
+ # proprietorship, if the sole proprietor has one. Submit nine digits with no
3157
+ # dashes or other separators.
3158
+ tax_identifier: nil,
3159
+ # A website for the sole proprietorship. Not every program requires a website for
3160
+ # submitted Entities.
3161
+ website: nil
3162
+ )
3163
+ end
3164
+
3165
+ sig do
3166
+ override.returns(
3167
+ {
3168
+ address:
3169
+ Increase::EntityCreateParams::SoleProprietorship::Address,
3170
+ sole_proprietor:
3171
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor,
3172
+ doing_business_as_name: String,
3173
+ email: String,
3174
+ industry_code: String,
3175
+ tax_identifier: String,
3176
+ website: String
3177
+ }
3178
+ )
3179
+ end
3180
+ def to_hash
3181
+ end
3182
+
3183
+ class Address < Increase::Internal::Type::BaseModel
3184
+ OrHash =
3185
+ T.type_alias do
3186
+ T.any(
3187
+ Increase::EntityCreateParams::SoleProprietorship::Address,
3188
+ Increase::Internal::AnyHash
3189
+ )
3190
+ end
3191
+
3192
+ # The city of the address.
3193
+ sig { returns(String) }
3194
+ attr_accessor :city
3195
+
3196
+ # The first line of the address. This is usually the street number and street.
3197
+ sig { returns(String) }
3198
+ attr_accessor :line1
3199
+
3200
+ # The two-letter United States Postal Service (USPS) abbreviation for the state of
3201
+ # the address.
3202
+ sig { returns(String) }
3203
+ attr_accessor :state
3204
+
3205
+ # The ZIP code of the address.
3206
+ sig { returns(String) }
3207
+ attr_accessor :zip
3208
+
3209
+ # The second line of the address. This might be the floor or room number.
3210
+ sig { returns(T.nilable(String)) }
3211
+ attr_reader :line2
3212
+
3213
+ sig { params(line2: String).void }
3214
+ attr_writer :line2
3215
+
3216
+ # The sole proprietorship's business address. Mail receiving locations like PO
3217
+ # Boxes and PMB's are disallowed.
3218
+ sig do
3219
+ params(
3220
+ city: String,
3221
+ line1: String,
3222
+ state: String,
3223
+ zip: String,
3224
+ line2: String
3225
+ ).returns(T.attached_class)
3226
+ end
3227
+ def self.new(
3228
+ # The city of the address.
3229
+ city:,
3230
+ # The first line of the address. This is usually the street number and street.
3231
+ line1:,
3232
+ # The two-letter United States Postal Service (USPS) abbreviation for the state of
3233
+ # the address.
3234
+ state:,
3235
+ # The ZIP code of the address.
3236
+ zip:,
3237
+ # The second line of the address. This might be the floor or room number.
3238
+ line2: nil
3239
+ )
3240
+ end
3241
+
3242
+ sig do
3243
+ override.returns(
3244
+ {
3245
+ city: String,
3246
+ line1: String,
3247
+ state: String,
3248
+ zip: String,
3249
+ line2: String
3250
+ }
3251
+ )
3252
+ end
3253
+ def to_hash
3254
+ end
3255
+ end
3256
+
3257
+ class SoleProprietor < Increase::Internal::Type::BaseModel
3258
+ OrHash =
3259
+ T.type_alias do
3260
+ T.any(
3261
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor,
3262
+ Increase::Internal::AnyHash
3263
+ )
3264
+ end
3265
+
3266
+ # The individual's physical address. Mail receiving locations like PO Boxes and
3267
+ # PMB's are disallowed.
3268
+ sig do
3269
+ returns(
3270
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address
3271
+ )
3272
+ end
3273
+ attr_reader :address
3274
+
3275
+ sig do
3276
+ params(
3277
+ address:
3278
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address::OrHash
3279
+ ).void
3280
+ end
3281
+ attr_writer :address
3282
+
3283
+ # The person's date of birth in YYYY-MM-DD format.
3284
+ sig { returns(Date) }
3285
+ attr_accessor :date_of_birth
3286
+
3287
+ # A means of verifying the person's identity. Sole proprietors must be identified
3288
+ # with a `social_security_number` or an
3289
+ # `individual_taxpayer_identification_number`.
3290
+ sig do
3291
+ returns(
3292
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification
3293
+ )
3294
+ end
3295
+ attr_reader :identification
3296
+
3297
+ sig do
3298
+ params(
3299
+ identification:
3300
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::OrHash
3301
+ ).void
3302
+ end
3303
+ attr_writer :identification
3304
+
3305
+ # The person's legal name.
3306
+ sig { returns(String) }
3307
+ attr_accessor :name
3308
+
3309
+ # The individual who operates the sole proprietorship.
3310
+ sig do
3311
+ params(
3312
+ address:
3313
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address::OrHash,
3314
+ date_of_birth: Date,
3315
+ identification:
3316
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::OrHash,
3317
+ name: String
3318
+ ).returns(T.attached_class)
3319
+ end
3320
+ def self.new(
3321
+ # The individual's physical address. Mail receiving locations like PO Boxes and
3322
+ # PMB's are disallowed.
3323
+ address:,
3324
+ # The person's date of birth in YYYY-MM-DD format.
3325
+ date_of_birth:,
3326
+ # A means of verifying the person's identity. Sole proprietors must be identified
3327
+ # with a `social_security_number` or an
3328
+ # `individual_taxpayer_identification_number`.
3329
+ identification:,
3330
+ # The person's legal name.
3331
+ name:
3332
+ )
3333
+ end
3334
+
3335
+ sig do
3336
+ override.returns(
3337
+ {
3338
+ address:
3339
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address,
3340
+ date_of_birth: Date,
3341
+ identification:
3342
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification,
3343
+ name: String
3344
+ }
3345
+ )
3346
+ end
3347
+ def to_hash
3348
+ end
3349
+
3350
+ class Address < Increase::Internal::Type::BaseModel
3351
+ OrHash =
3352
+ T.type_alias do
3353
+ T.any(
3354
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address,
3355
+ Increase::Internal::AnyHash
3356
+ )
3357
+ end
3358
+
3359
+ # The city, district, town, or village of the address.
3360
+ sig { returns(String) }
3361
+ attr_accessor :city
3362
+
3363
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
3364
+ #
3365
+ # Defaults to `US`.
3366
+ sig { returns(String) }
3367
+ attr_accessor :country
3368
+
3369
+ # The first line of the address. This is usually the street number and street.
3370
+ sig { returns(String) }
3371
+ attr_accessor :line1
3372
+
3373
+ # The second line of the address. This might be the floor or room number.
3374
+ sig { returns(T.nilable(String)) }
3375
+ attr_reader :line2
3376
+
3377
+ sig { params(line2: String).void }
3378
+ attr_writer :line2
3379
+
3380
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
3381
+ # state, province, or region of the address. Required in certain countries.
3382
+ sig { returns(T.nilable(String)) }
3383
+ attr_reader :state
3384
+
3385
+ sig { params(state: String).void }
3386
+ attr_writer :state
3387
+
3388
+ # The ZIP or postal code of the address. Required in certain countries.
3389
+ sig { returns(T.nilable(String)) }
3390
+ attr_reader :zip
3391
+
3392
+ sig { params(zip: String).void }
3393
+ attr_writer :zip
3394
+
3395
+ # The individual's physical address. Mail receiving locations like PO Boxes and
3396
+ # PMB's are disallowed.
3397
+ sig do
3398
+ params(
3399
+ city: String,
3400
+ country: String,
3401
+ line1: String,
3402
+ line2: String,
3403
+ state: String,
3404
+ zip: String
3405
+ ).returns(T.attached_class)
3406
+ end
3407
+ def self.new(
3408
+ # The city, district, town, or village of the address.
3409
+ city:,
3410
+ # The two-letter ISO 3166-1 alpha-2 code for the country of the address.
3411
+ #
3412
+ # Defaults to `US`.
3413
+ country:,
3414
+ # The first line of the address. This is usually the street number and street.
3415
+ line1:,
3416
+ # The second line of the address. This might be the floor or room number.
3417
+ line2: nil,
3418
+ # The two-letter United States Postal Service (USPS) abbreviation for the US
3419
+ # state, province, or region of the address. Required in certain countries.
3420
+ state: nil,
3421
+ # The ZIP or postal code of the address. Required in certain countries.
3422
+ zip: nil
3423
+ )
3424
+ end
3425
+
3426
+ sig do
3427
+ override.returns(
3428
+ {
3429
+ city: String,
3430
+ country: String,
3431
+ line1: String,
3432
+ line2: String,
3433
+ state: String,
3434
+ zip: String
3435
+ }
3436
+ )
3437
+ end
3438
+ def to_hash
3439
+ end
3440
+ end
3441
+
3442
+ class Identification < Increase::Internal::Type::BaseModel
3443
+ OrHash =
3444
+ T.type_alias do
3445
+ T.any(
3446
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification,
3447
+ Increase::Internal::AnyHash
3448
+ )
3449
+ end
3450
+
3451
+ # A method that can be used to verify the individual's identity.
3452
+ #
3453
+ # Defaults to `social_security_number`.
3454
+ sig do
3455
+ returns(
3456
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::OrSymbol
3457
+ )
3458
+ end
3459
+ attr_accessor :method_
3460
+
3461
+ # An identification number that can be used to verify the individual's identity,
3462
+ # such as a social security number. Submit nine digits with no dashes or other
3463
+ # separators.
3464
+ sig { returns(String) }
3465
+ attr_accessor :number
3466
+
3467
+ # A means of verifying the person's identity. Sole proprietors must be identified
3468
+ # with a `social_security_number` or an
3469
+ # `individual_taxpayer_identification_number`.
3470
+ sig do
3471
+ params(
3472
+ method_:
3473
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::OrSymbol,
3474
+ number: String
3475
+ ).returns(T.attached_class)
3476
+ end
3477
+ def self.new(
3478
+ # A method that can be used to verify the individual's identity.
3479
+ #
3480
+ # Defaults to `social_security_number`.
3481
+ method_:,
3482
+ # An identification number that can be used to verify the individual's identity,
3483
+ # such as a social security number. Submit nine digits with no dashes or other
3484
+ # separators.
3485
+ number:
3486
+ )
3487
+ end
3488
+
3489
+ sig do
3490
+ override.returns(
3491
+ {
3492
+ method_:
3493
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::OrSymbol,
3494
+ number: String
3495
+ }
3496
+ )
3497
+ end
3498
+ def to_hash
3499
+ end
3500
+
3501
+ # A method that can be used to verify the individual's identity.
3502
+ #
3503
+ # Defaults to `social_security_number`.
3504
+ module Method
3505
+ extend Increase::Internal::Type::Enum
3506
+
3507
+ TaggedSymbol =
3508
+ T.type_alias do
3509
+ T.all(
3510
+ Symbol,
3511
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method
3512
+ )
3513
+ end
3514
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3515
+
3516
+ # A social security number.
3517
+ SOCIAL_SECURITY_NUMBER =
3518
+ T.let(
3519
+ :social_security_number,
3520
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
3521
+ )
3522
+
3523
+ # An individual taxpayer identification number (ITIN).
3524
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER =
3525
+ T.let(
3526
+ :individual_taxpayer_identification_number,
3527
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
3528
+ )
3529
+
3530
+ sig do
3531
+ override.returns(
3532
+ T::Array[
3533
+ Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::Method::TaggedSymbol
3534
+ ]
3535
+ )
3536
+ end
3537
+ def self.values
3538
+ end
3539
+ end
3540
+ end
3541
+ end
3542
+ end
3543
+
3021
3544
  class SupplementalDocument < Increase::Internal::Type::BaseModel
3022
3545
  OrHash =
3023
3546
  T.type_alias do
@@ -3056,7 +3579,7 @@ module Increase
3056
3579
  sig { returns(Time) }
3057
3580
  attr_accessor :agreed_at
3058
3581
 
3059
- # The IP address the Entity accessed reviewed the terms from.
3582
+ # The IP address the Entity reviewed the terms from.
3060
3583
  sig { returns(String) }
3061
3584
  attr_accessor :ip_address
3062
3585
 
@@ -3074,7 +3597,7 @@ module Increase
3074
3597
  def self.new(
3075
3598
  # The timestamp of when the Entity agreed to the terms.
3076
3599
  agreed_at:,
3077
- # The IP address the Entity accessed reviewed the terms from.
3600
+ # The IP address the Entity reviewed the terms from.
3078
3601
  ip_address:,
3079
3602
  # The URL of the terms agreement. This link will be provided by your bank partner.
3080
3603
  terms_url:
@@ -3756,8 +4279,7 @@ module Increase
3756
4279
  # An identification number that can be used to verify the individual's identity,
3757
4280
  # such as a social security number. For Social Security Numbers and Individual
3758
4281
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
3759
- # separators. When testing in sandbox, use one of our
3760
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
4282
+ # separators.
3761
4283
  sig { returns(String) }
3762
4284
  attr_accessor :number
3763
4285
 
@@ -3840,8 +4362,7 @@ module Increase
3840
4362
  # An identification number that can be used to verify the individual's identity,
3841
4363
  # such as a social security number. For Social Security Numbers and Individual
3842
4364
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
3843
- # separators. When testing in sandbox, use one of our
3844
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
4365
+ # separators.
3845
4366
  number:,
3846
4367
  # Information about the United States driver's license used for identification.
3847
4368
  # Required if `method` is equal to `drivers_license`.
@@ -4346,8 +4867,7 @@ module Increase
4346
4867
  # An identification number that can be used to verify the individual's identity,
4347
4868
  # such as a social security number. For Social Security Numbers and Individual
4348
4869
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
4349
- # separators. When testing in sandbox, use one of our
4350
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
4870
+ # separators.
4351
4871
  sig { returns(String) }
4352
4872
  attr_accessor :number
4353
4873
 
@@ -4430,8 +4950,7 @@ module Increase
4430
4950
  # An identification number that can be used to verify the individual's identity,
4431
4951
  # such as a social security number. For Social Security Numbers and Individual
4432
4952
  # Taxpayer Identification Numbers, submit nine digits with no dashes or other
4433
- # separators. When testing in sandbox, use one of our
4434
- # [sandbox test values](https://increase.com/documentation/sandbox-test-values).
4953
+ # separators.
4435
4954
  number:,
4436
4955
  # Information about the United States driver's license used for identification.
4437
4956
  # Required if `method` is equal to `drivers_license`.