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
@@ -90,7 +90,7 @@ module Increase
90
90
  sig { params(routing_number: String).void }
91
91
  attr_writer :routing_number
92
92
 
93
- # The ID of an Account Number that will be passed to the wire's recipient
93
+ # The ID of an Account Number that will be passed to the wire's recipient.
94
94
  sig { returns(T.nilable(String)) }
95
95
  attr_reader :source_account_number_id
96
96
 
@@ -139,7 +139,7 @@ module Increase
139
139
  # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
140
140
  # destination account.
141
141
  routing_number: nil,
142
- # The ID of an Account Number that will be passed to the wire's recipient
142
+ # The ID of an Account Number that will be passed to the wire's recipient.
143
143
  source_account_number_id: nil,
144
144
  request_options: {}
145
145
  )
@@ -145,8 +145,8 @@ module Increase
145
145
  )
146
146
  end
147
147
 
148
- # Sensitive details for a Card include the primary account number, expiry, card
149
- # verification code, and PIN.
148
+ # Sensitive details for a Card include the primary account number, expiration,
149
+ # card verification code, and PIN.
150
150
  sig do
151
151
  params(
152
152
  card_id: String,
@@ -52,7 +52,7 @@ module Increase
52
52
  # If provided, the check will be valid on or before this date. After this date,
53
53
  # the check transfer will be automatically stopped and deposits will not be
54
54
  # accepted. For checks printed by Increase, this date is included on the check as
55
- # its expiry.
55
+ # its expiration.
56
56
  valid_until_date: nil,
57
57
  request_options: {}
58
58
  )
@@ -14,6 +14,8 @@ module Increase
14
14
  joint: Increase::EntityCreateParams::Joint::OrHash,
15
15
  natural_person: Increase::EntityCreateParams::NaturalPerson::OrHash,
16
16
  risk_rating: Increase::EntityCreateParams::RiskRating::OrHash,
17
+ sole_proprietorship:
18
+ Increase::EntityCreateParams::SoleProprietorship::OrHash,
17
19
  supplemental_documents:
18
20
  T::Array[
19
21
  Increase::EntityCreateParams::SupplementalDocument::OrHash
@@ -48,6 +50,9 @@ module Increase
48
50
  # An assessment of the entity's potential risk of involvement in financial crimes,
49
51
  # such as money laundering.
50
52
  risk_rating: nil,
53
+ # Details of the sole proprietorship entity to create. Required if `structure` is
54
+ # equal to `sole_proprietorship`.
55
+ sole_proprietorship: nil,
51
56
  # Additional documentation associated with the entity.
52
57
  supplemental_documents: nil,
53
58
  # The terms that the Entity agreed to. Not all programs are required to submit
@@ -88,6 +93,8 @@ module Increase
88
93
  Increase::EntityUpdateParams::GovernmentAuthority::OrHash,
89
94
  natural_person: Increase::EntityUpdateParams::NaturalPerson::OrHash,
90
95
  risk_rating: Increase::EntityUpdateParams::RiskRating::OrHash,
96
+ sole_proprietorship:
97
+ Increase::EntityUpdateParams::SoleProprietorship::OrHash,
91
98
  terms_agreements:
92
99
  T::Array[Increase::EntityUpdateParams::TermsAgreement::OrHash],
93
100
  third_party_verification:
@@ -115,6 +122,9 @@ module Increase
115
122
  # An assessment of the entity’s potential risk of involvement in financial crimes,
116
123
  # such as money laundering.
117
124
  risk_rating: nil,
125
+ # Details of the sole proprietorship entity to update. If you specify this
126
+ # parameter and the entity is not a sole proprietorship, the request will fail.
127
+ sole_proprietorship: nil,
118
128
  # New terms that the Entity agreed to. Not all programs are required to submit
119
129
  # this data. This will not archive previously submitted terms.
120
130
  terms_agreements: nil,
@@ -41,7 +41,7 @@ module Increase
41
41
  )
42
42
  end
43
43
 
44
- # List Entity Onboarding Session
44
+ # List Entity Onboarding Sessions
45
45
  sig do
46
46
  params(
47
47
  cursor: String,
@@ -21,7 +21,7 @@ module Increase
21
21
  lockbox_address_id:,
22
22
  # The description you choose for the Lockbox Recipient.
23
23
  description: nil,
24
- # The name of the Lockbox Recipient
24
+ # The name of the Lockbox Recipient.
25
25
  recipient_name: nil,
26
26
  request_options: {}
27
27
  )
@@ -37,7 +37,7 @@ module Increase
37
37
  merchant_category_code: nil,
38
38
  # The country the merchant resides in.
39
39
  merchant_country: nil,
40
- # The name of the merchant
40
+ # The name of the merchant.
41
41
  merchant_name: nil,
42
42
  # The purchase amount in cents.
43
43
  purchase_amount: nil,
@@ -23,8 +23,8 @@ module Increase
23
23
  # The network of the Card Dispute. Details specific to the network are required
24
24
  # under the sub-object with the same identifier as the network.
25
25
  network:,
26
- # The Visa-specific parameters for the taking action on the dispute. Required if
27
- # and only if `network` is `visa`.
26
+ # The Visa-specific parameters for taking action on the dispute. Required if and
27
+ # only if `network` is `visa`.
28
28
  visa: nil,
29
29
  request_options: {}
30
30
  )
@@ -17,7 +17,7 @@ module Increase
17
17
  ).returns(Increase::Transaction)
18
18
  end
19
19
  def create(
20
- # The identifier of the Account the Interest Payment should be paid to is for.
20
+ # The identifier of the Account the Interest Payment should be paid to.
21
21
  account_id:,
22
22
  # The interest amount in cents. Must be positive.
23
23
  amount:,
@@ -13,7 +13,7 @@ module Increase
13
13
  ).returns(Increase::PendingTransaction)
14
14
  end
15
15
  def release_inbound_funds_hold(
16
- # The pending transaction to release. The pending transaction must have a
16
+ # The pending transaction to release. The pending transaction must have an
17
17
  # `inbound_funds_hold` source.
18
18
  pending_transaction_id,
19
19
  request_options: {}
@@ -37,8 +37,8 @@ module Increase
37
37
  end
38
38
 
39
39
  # This endpoint allows you to simulate advancing the shipment status of a Physical
40
- # Card, to simulate e.g., that a physical card was attempted shipped but then
41
- # failed delivery.
40
+ # Card, to simulate e.g., that a physical card was attempted to be shipped but
41
+ # then failed delivery.
42
42
  sig do
43
43
  params(
44
44
  physical_card_id: String,
@@ -13,6 +13,7 @@ module Increase
13
13
  name: String,
14
14
  bank: Increase::Simulations::ProgramCreateParams::Bank::OrSymbol,
15
15
  lending_maximum_extendable_credit: Integer,
16
+ loan_accounts_require_loan_offers: T::Boolean,
16
17
  reserve_account_id: String,
17
18
  request_options: Increase::RequestOptions::OrHash
18
19
  ).returns(Increase::Program)
@@ -24,7 +25,10 @@ module Increase
24
25
  bank: nil,
25
26
  # The maximum extendable credit of the program being added.
26
27
  lending_maximum_extendable_credit: nil,
27
- # The identifier of the Account the Program should be added to is for.
28
+ # Whether opening a loan Account under this Program requires an accepted Loan
29
+ # Offer. Requires `lending_maximum_extendable_credit`. Defaults to `false`.
30
+ loan_accounts_require_loan_offers: nil,
31
+ # The identifier of the Account the Program should be added to.
28
32
  reserve_account_id: nil,
29
33
  request_options: {}
30
34
  )
@@ -46,7 +46,7 @@ module Increase
46
46
  # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
47
47
  # destination account.
48
48
  routing_number: nil,
49
- # The ID of an Account Number that will be passed to the wire's recipient
49
+ # The ID of an Account Number that will be passed to the wire's recipient.
50
50
  source_account_number_id: nil,
51
51
  request_options: {}
52
52
  )
@@ -3,6 +3,7 @@ module Increase
3
3
  type card_dispute =
4
4
  {
5
5
  id: String,
6
+ account_id: String,
6
7
  amount: Integer,
7
8
  card_id: String,
8
9
  created_at: Time,
@@ -22,6 +23,8 @@ module Increase
22
23
  class CardDispute < Increase::Internal::Type::BaseModel
23
24
  attr_accessor id: String
24
25
 
26
+ attr_accessor account_id: String
27
+
25
28
  attr_accessor amount: Integer
26
29
 
27
30
  attr_accessor card_id: String
@@ -52,6 +55,7 @@ module Increase
52
55
 
53
56
  def initialize: (
54
57
  id: String,
58
+ account_id: String,
55
59
  amount: Integer,
56
60
  card_id: String,
57
61
  created_at: Time,
@@ -70,6 +74,7 @@ module Increase
70
74
 
71
75
  def to_hash: -> {
72
76
  id: String,
77
+ account_id: String,
73
78
  amount: Integer,
74
79
  card_id: String,
75
80
  created_at: Time,
@@ -3,6 +3,7 @@ module Increase
3
3
  type card_purchase_supplement =
4
4
  {
5
5
  id: String,
6
+ account_id: String,
6
7
  card_payment_id: String?,
7
8
  invoice: Increase::CardPurchaseSupplement::Invoice?,
8
9
  line_items: ::Array[Increase::CardPurchaseSupplement::LineItem]?,
@@ -14,6 +15,8 @@ module Increase
14
15
  class CardPurchaseSupplement < Increase::Internal::Type::BaseModel
15
16
  attr_accessor id: String
16
17
 
18
+ attr_accessor account_id: String
19
+
17
20
  attr_accessor card_payment_id: String?
18
21
 
19
22
  attr_accessor invoice: Increase::CardPurchaseSupplement::Invoice?
@@ -28,6 +31,7 @@ module Increase
28
31
 
29
32
  def initialize: (
30
33
  id: String,
34
+ account_id: String,
31
35
  card_payment_id: String?,
32
36
  invoice: Increase::CardPurchaseSupplement::Invoice?,
33
37
  line_items: ::Array[Increase::CardPurchaseSupplement::LineItem]?,
@@ -38,6 +42,7 @@ module Increase
38
42
 
39
43
  def to_hash: -> {
40
44
  id: String,
45
+ account_id: String,
41
46
  card_payment_id: String?,
42
47
  invoice: Increase::CardPurchaseSupplement::Invoice?,
43
48
  line_items: ::Array[Increase::CardPurchaseSupplement::LineItem]?,
@@ -1784,6 +1784,7 @@ module Increase
1784
1784
  | :group_locked
1785
1785
  | :entity_not_active
1786
1786
  | :fednow_not_enabled
1787
+ | :transaction_not_allowed
1787
1788
 
1788
1789
  module Reason
1789
1790
  extend Increase::Internal::Type::Enum
@@ -1806,6 +1807,9 @@ module Increase
1806
1807
  # Your account is not enabled to receive FedNow transfers.
1807
1808
  FEDNOW_NOT_ENABLED: :fednow_not_enabled
1808
1809
 
1810
+ # The transaction is not allowed per Increase's terms.
1811
+ TRANSACTION_NOT_ALLOWED: :transaction_not_allowed
1812
+
1809
1813
  def self?.values: -> ::Array[Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline::reason]
1810
1814
  end
1811
1815
  end
@@ -3,6 +3,7 @@ module Increase
3
3
  type digital_wallet_token =
4
4
  {
5
5
  id: String,
6
+ account_id: String,
6
7
  card_id: String,
7
8
  cardholder: Increase::DigitalWalletToken::Cardholder,
8
9
  created_at: Time,
@@ -18,6 +19,8 @@ module Increase
18
19
  class DigitalWalletToken < Increase::Internal::Type::BaseModel
19
20
  attr_accessor id: String
20
21
 
22
+ attr_accessor account_id: String
23
+
21
24
  attr_accessor card_id: String
22
25
 
23
26
  attr_accessor cardholder: Increase::DigitalWalletToken::Cardholder
@@ -40,6 +43,7 @@ module Increase
40
43
 
41
44
  def initialize: (
42
45
  id: String,
46
+ account_id: String,
43
47
  card_id: String,
44
48
  cardholder: Increase::DigitalWalletToken::Cardholder,
45
49
  created_at: Time,
@@ -54,6 +58,7 @@ module Increase
54
58
 
55
59
  def to_hash: -> {
56
60
  id: String,
61
+ account_id: String,
57
62
  card_id: String,
58
63
  cardholder: Increase::DigitalWalletToken::Cardholder,
59
64
  created_at: Time,
@@ -1707,13 +1707,13 @@ module Increase
1707
1707
  module Category
1708
1708
  extend Increase::Internal::Type::Enum
1709
1709
 
1710
- # The entity's tax identifier could not be verified. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.legal_identifier).
1710
+ # The entity's tax identifier could not be verified. Update the tax ID with the [update an entity API](/documentation/api/entities#update-an-entity).
1711
1711
  ENTITY_TAX_IDENTIFIER: :entity_tax_identifier
1712
1712
 
1713
- # The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity.corporation.address).
1713
+ # The entity's address could not be validated. Update the address with the [update an entity API](/documentation/api/entities#update-an-entity).
1714
1714
  ENTITY_ADDRESS: :entity_address
1715
1715
 
1716
- # 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).
1716
+ # The entity's identity could not be verified. Update the identification with the [update an entity API](/documentation/api/entities#update-an-entity).
1717
1717
  ENTITY_IDENTITY: :entity_identity
1718
1718
 
1719
1719
  # 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).
@@ -9,6 +9,7 @@ module Increase
9
9
  joint: Increase::EntityCreateParams::Joint,
10
10
  natural_person: Increase::EntityCreateParams::NaturalPerson,
11
11
  risk_rating: Increase::EntityCreateParams::RiskRating,
12
+ sole_proprietorship: Increase::EntityCreateParams::SoleProprietorship,
12
13
  supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument],
13
14
  terms_agreements: ::Array[Increase::EntityCreateParams::TermsAgreement],
14
15
  third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification,
@@ -56,6 +57,12 @@ module Increase
56
57
  Increase::EntityCreateParams::RiskRating
57
58
  ) -> Increase::EntityCreateParams::RiskRating
58
59
 
60
+ attr_reader sole_proprietorship: Increase::EntityCreateParams::SoleProprietorship?
61
+
62
+ def sole_proprietorship=: (
63
+ Increase::EntityCreateParams::SoleProprietorship
64
+ ) -> Increase::EntityCreateParams::SoleProprietorship
65
+
59
66
  attr_reader supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument]?
60
67
 
61
68
  def supplemental_documents=: (
@@ -88,6 +95,7 @@ module Increase
88
95
  ?joint: Increase::EntityCreateParams::Joint,
89
96
  ?natural_person: Increase::EntityCreateParams::NaturalPerson,
90
97
  ?risk_rating: Increase::EntityCreateParams::RiskRating,
98
+ ?sole_proprietorship: Increase::EntityCreateParams::SoleProprietorship,
91
99
  ?supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument],
92
100
  ?terms_agreements: ::Array[Increase::EntityCreateParams::TermsAgreement],
93
101
  ?third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification,
@@ -103,6 +111,7 @@ module Increase
103
111
  joint: Increase::EntityCreateParams::Joint,
104
112
  natural_person: Increase::EntityCreateParams::NaturalPerson,
105
113
  risk_rating: Increase::EntityCreateParams::RiskRating,
114
+ sole_proprietorship: Increase::EntityCreateParams::SoleProprietorship,
106
115
  supplemental_documents: ::Array[Increase::EntityCreateParams::SupplementalDocument],
107
116
  terms_agreements: ::Array[Increase::EntityCreateParams::TermsAgreement],
108
117
  third_party_verification: Increase::EntityCreateParams::ThirdPartyVerification,
@@ -111,7 +120,12 @@ module Increase
111
120
  }
112
121
 
113
122
  type structure =
114
- :corporation | :natural_person | :joint | :trust | :government_authority
123
+ :corporation
124
+ | :natural_person
125
+ | :joint
126
+ | :trust
127
+ | :government_authority
128
+ | :sole_proprietorship
115
129
 
116
130
  module Structure
117
131
  extend Increase::Internal::Type::Enum
@@ -131,6 +145,9 @@ module Increase
131
145
  # A government authority.
132
146
  GOVERNMENT_AUTHORITY: :government_authority
133
147
 
148
+ # A sole proprietorship.
149
+ SOLE_PROPRIETORSHIP: :sole_proprietorship
150
+
134
151
  def self?.values: -> ::Array[Increase::Models::EntityCreateParams::structure]
135
152
  end
136
153
 
@@ -1314,6 +1331,220 @@ module Increase
1314
1331
  end
1315
1332
  end
1316
1333
 
1334
+ type sole_proprietorship =
1335
+ {
1336
+ address: Increase::EntityCreateParams::SoleProprietorship::Address,
1337
+ sole_proprietor: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor,
1338
+ doing_business_as_name: String,
1339
+ email: String,
1340
+ industry_code: String,
1341
+ tax_identifier: String,
1342
+ website: String
1343
+ }
1344
+
1345
+ class SoleProprietorship < Increase::Internal::Type::BaseModel
1346
+ attr_accessor address: Increase::EntityCreateParams::SoleProprietorship::Address
1347
+
1348
+ attr_accessor sole_proprietor: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor
1349
+
1350
+ attr_reader doing_business_as_name: String?
1351
+
1352
+ def doing_business_as_name=: (String) -> String
1353
+
1354
+ attr_reader email: String?
1355
+
1356
+ def email=: (String) -> String
1357
+
1358
+ attr_reader industry_code: String?
1359
+
1360
+ def industry_code=: (String) -> String
1361
+
1362
+ attr_reader tax_identifier: String?
1363
+
1364
+ def tax_identifier=: (String) -> String
1365
+
1366
+ attr_reader website: String?
1367
+
1368
+ def website=: (String) -> String
1369
+
1370
+ def initialize: (
1371
+ address: Increase::EntityCreateParams::SoleProprietorship::Address,
1372
+ sole_proprietor: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor,
1373
+ ?doing_business_as_name: String,
1374
+ ?email: String,
1375
+ ?industry_code: String,
1376
+ ?tax_identifier: String,
1377
+ ?website: String
1378
+ ) -> void
1379
+
1380
+ def to_hash: -> {
1381
+ address: Increase::EntityCreateParams::SoleProprietorship::Address,
1382
+ sole_proprietor: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor,
1383
+ doing_business_as_name: String,
1384
+ email: String,
1385
+ industry_code: String,
1386
+ tax_identifier: String,
1387
+ website: String
1388
+ }
1389
+
1390
+ type address =
1391
+ {
1392
+ city: String,
1393
+ :line1 => String,
1394
+ state: String,
1395
+ zip: String,
1396
+ :line2 => String
1397
+ }
1398
+
1399
+ class Address < Increase::Internal::Type::BaseModel
1400
+ attr_accessor city: String
1401
+
1402
+ attr_accessor line1: String
1403
+
1404
+ attr_accessor state: String
1405
+
1406
+ attr_accessor zip: String
1407
+
1408
+ attr_reader line2: String?
1409
+
1410
+ def line2=: (String) -> String
1411
+
1412
+ def initialize: (
1413
+ city: String,
1414
+ line1: String,
1415
+ state: String,
1416
+ zip: String,
1417
+ ?line2: String
1418
+ ) -> void
1419
+
1420
+ def to_hash: -> {
1421
+ city: String,
1422
+ :line1 => String,
1423
+ state: String,
1424
+ zip: String,
1425
+ :line2 => String
1426
+ }
1427
+ end
1428
+
1429
+ type sole_proprietor =
1430
+ {
1431
+ address: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address,
1432
+ date_of_birth: Date,
1433
+ identification: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification,
1434
+ name: String
1435
+ }
1436
+
1437
+ class SoleProprietor < Increase::Internal::Type::BaseModel
1438
+ attr_accessor address: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address
1439
+
1440
+ attr_accessor date_of_birth: Date
1441
+
1442
+ attr_accessor identification: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification
1443
+
1444
+ attr_accessor name: String
1445
+
1446
+ def initialize: (
1447
+ address: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address,
1448
+ date_of_birth: Date,
1449
+ identification: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification,
1450
+ name: String
1451
+ ) -> void
1452
+
1453
+ def to_hash: -> {
1454
+ address: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Address,
1455
+ date_of_birth: Date,
1456
+ identification: Increase::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification,
1457
+ name: String
1458
+ }
1459
+
1460
+ type address =
1461
+ {
1462
+ city: String,
1463
+ country: String,
1464
+ :line1 => String,
1465
+ :line2 => String,
1466
+ state: String,
1467
+ zip: String
1468
+ }
1469
+
1470
+ class Address < Increase::Internal::Type::BaseModel
1471
+ attr_accessor city: String
1472
+
1473
+ attr_accessor country: String
1474
+
1475
+ attr_accessor line1: String
1476
+
1477
+ attr_reader line2: String?
1478
+
1479
+ def line2=: (String) -> String
1480
+
1481
+ attr_reader state: String?
1482
+
1483
+ def state=: (String) -> String
1484
+
1485
+ attr_reader zip: String?
1486
+
1487
+ def zip=: (String) -> String
1488
+
1489
+ def initialize: (
1490
+ city: String,
1491
+ country: String,
1492
+ line1: String,
1493
+ ?line2: String,
1494
+ ?state: String,
1495
+ ?zip: String
1496
+ ) -> void
1497
+
1498
+ def to_hash: -> {
1499
+ city: String,
1500
+ country: String,
1501
+ :line1 => String,
1502
+ :line2 => String,
1503
+ state: String,
1504
+ zip: String
1505
+ }
1506
+ end
1507
+
1508
+ type identification =
1509
+ {
1510
+ method_: Increase::Models::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::method_,
1511
+ number: String
1512
+ }
1513
+
1514
+ class Identification < Increase::Internal::Type::BaseModel
1515
+ attr_accessor method_: Increase::Models::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::method_
1516
+
1517
+ attr_accessor number: String
1518
+
1519
+ def initialize: (
1520
+ method_: Increase::Models::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::method_,
1521
+ number: String
1522
+ ) -> void
1523
+
1524
+ def to_hash: -> {
1525
+ method_: Increase::Models::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::method_,
1526
+ number: String
1527
+ }
1528
+
1529
+ type method_ =
1530
+ :social_security_number
1531
+ | :individual_taxpayer_identification_number
1532
+
1533
+ module Method
1534
+ extend Increase::Internal::Type::Enum
1535
+
1536
+ # A social security number.
1537
+ SOCIAL_SECURITY_NUMBER: :social_security_number
1538
+
1539
+ # An individual taxpayer identification number (ITIN).
1540
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
1541
+
1542
+ def self?.values: -> ::Array[Increase::Models::EntityCreateParams::SoleProprietorship::SoleProprietor::Identification::method_]
1543
+ end
1544
+ end
1545
+ end
1546
+ end
1547
+
1317
1548
  type supplemental_document = { file_id: String }
1318
1549
 
1319
1550
  class SupplementalDocument < Increase::Internal::Type::BaseModel