increase 1.348.0 → 1.349.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) 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/entity.rb +293 -1
  5. data/lib/increase/models/event.rb +3 -0
  6. data/lib/increase/models/event_list_params.rb +3 -0
  7. data/lib/increase/models/event_subscription.rb +3 -0
  8. data/lib/increase/models/event_subscription_create_params.rb +3 -0
  9. data/lib/increase/models/inbound_check_deposit.rb +5 -2
  10. data/lib/increase/models/inbound_fednow_transfer.rb +18 -1
  11. data/lib/increase/models/pending_transaction.rb +7 -7
  12. data/lib/increase/models/pending_transaction_list_params.rb +1 -1
  13. data/lib/increase/models/physical_card_create_params.rb +6 -3
  14. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
  15. data/lib/increase/models/transaction.rb +5 -2
  16. data/lib/increase/models/unwrap_webhook_event.rb +3 -0
  17. data/lib/increase/resources/physical_cards.rb +2 -1
  18. data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
  19. data/lib/increase/version.rb +1 -1
  20. data/rbi/increase/models/account_create_params.rbi +37 -21
  21. data/rbi/increase/models/entity.rbi +491 -0
  22. data/rbi/increase/models/event.rbi +7 -0
  23. data/rbi/increase/models/event_list_params.rbi +7 -0
  24. data/rbi/increase/models/event_subscription.rbi +7 -0
  25. data/rbi/increase/models/event_subscription_create_params.rbi +7 -0
  26. data/rbi/increase/models/inbound_check_deposit.rbi +4 -2
  27. data/rbi/increase/models/inbound_fednow_transfer.rbi +16 -0
  28. data/rbi/increase/models/pending_transaction.rbi +7 -7
  29. data/rbi/increase/models/pending_transaction_list_params.rbi +1 -1
  30. data/rbi/increase/models/physical_card_create_params.rbi +6 -3
  31. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
  32. data/rbi/increase/models/transaction.rbi +4 -2
  33. data/rbi/increase/models/unwrap_webhook_event.rbi +7 -0
  34. data/rbi/increase/resources/physical_cards.rbi +2 -1
  35. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
  36. data/sig/increase/models/account_create_params.rbs +20 -12
  37. data/sig/increase/models/entity.rbs +227 -1
  38. data/sig/increase/models/event.rbs +4 -0
  39. data/sig/increase/models/event_list_params.rbs +4 -0
  40. data/sig/increase/models/event_subscription.rbs +4 -0
  41. data/sig/increase/models/event_subscription_create_params.rbs +4 -0
  42. data/sig/increase/models/inbound_fednow_transfer.rbs +10 -0
  43. data/sig/increase/models/pending_transaction.rbs +1 -1
  44. data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
  45. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
  46. data/sig/increase/models/unwrap_webhook_event.rbs +4 -0
  47. metadata +2 -2
@@ -850,6 +850,13 @@ module Increase
850
850
  Increase::EventListParams::Category::In::TaggedSymbol
851
851
  )
852
852
 
853
+ # Occurs whenever a Plaid Processor Token is created.
854
+ PLAID_PROCESSOR_TOKEN_CREATED =
855
+ T.let(
856
+ :"plaid_processor_token.created",
857
+ Increase::EventListParams::Category::In::TaggedSymbol
858
+ )
859
+
853
860
  # Occurs whenever a Checkbook is created.
854
861
  CHECKBOOK_CREATED =
855
862
  T.let(
@@ -871,6 +871,13 @@ module Increase
871
871
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
872
872
  )
873
873
 
874
+ # Occurs whenever a Plaid Processor Token is created.
875
+ PLAID_PROCESSOR_TOKEN_CREATED =
876
+ T.let(
877
+ :"plaid_processor_token.created",
878
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
879
+ )
880
+
874
881
  # Occurs whenever a Checkbook is created.
875
882
  CHECKBOOK_CREATED =
876
883
  T.let(
@@ -869,6 +869,13 @@ module Increase
869
869
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
870
870
  )
871
871
 
872
+ # Occurs whenever a Plaid Processor Token is created.
873
+ PLAID_PROCESSOR_TOKEN_CREATED =
874
+ T.let(
875
+ :"plaid_processor_token.created",
876
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
877
+ )
878
+
872
879
  # Occurs whenever a Checkbook is created.
873
880
  CHECKBOOK_CREATED =
874
881
  T.let(
@@ -255,7 +255,8 @@ module Increase
255
255
  sig { returns(Time) }
256
256
  attr_accessor :adjusted_at
257
257
 
258
- # The amount of the adjustment.
258
+ # The amount of the adjustment in USD cents. A positive amount is a credit to your
259
+ # account and a negative amount is a debit.
259
260
  sig { returns(Integer) }
260
261
  attr_accessor :amount
261
262
 
@@ -282,7 +283,8 @@ module Increase
282
283
  def self.new(
283
284
  # The time at which the return adjustment was received.
284
285
  adjusted_at:,
285
- # The amount of the adjustment.
286
+ # The amount of the adjustment in USD cents. A positive amount is a credit to your
287
+ # account and a negative amount is a debit.
286
288
  amount:,
287
289
  # The reason for the adjustment.
288
290
  reason:,
@@ -73,6 +73,10 @@ module Increase
73
73
  end
74
74
  attr_writer :decline
75
75
 
76
+ # A free-form reference string set by the sender, to help identify the transfer.
77
+ sig { returns(T.nilable(String)) }
78
+ attr_accessor :end_to_end_identification
79
+
76
80
  # The lifecycle status of the transfer.
77
81
  sig { returns(Increase::InboundFednowTransfer::Status::TaggedSymbol) }
78
82
  attr_accessor :status
@@ -82,6 +86,10 @@ module Increase
82
86
  sig { returns(T.nilable(String)) }
83
87
  attr_accessor :transaction_id
84
88
 
89
+ # The FedNow network identification of the transfer.
90
+ sig { returns(T.nilable(String)) }
91
+ attr_accessor :transaction_identification
92
+
85
93
  # A constant representing the object's type. For this resource it will always be
86
94
  # `inbound_fednow_transfer`.
87
95
  sig { returns(Increase::InboundFednowTransfer::Type::TaggedSymbol) }
@@ -114,8 +122,10 @@ module Increase
114
122
  debtor_name: String,
115
123
  debtor_routing_number: String,
116
124
  decline: T.nilable(Increase::InboundFednowTransfer::Decline::OrHash),
125
+ end_to_end_identification: T.nilable(String),
117
126
  status: Increase::InboundFednowTransfer::Status::OrSymbol,
118
127
  transaction_id: T.nilable(String),
128
+ transaction_identification: T.nilable(String),
119
129
  type: Increase::InboundFednowTransfer::Type::OrSymbol,
120
130
  unique_end_to_end_transaction_reference: T.nilable(String),
121
131
  unstructured_remittance_information: T.nilable(String)
@@ -148,11 +158,15 @@ module Increase
148
158
  debtor_routing_number:,
149
159
  # If your transfer is declined, this will contain details of the decline.
150
160
  decline:,
161
+ # A free-form reference string set by the sender, to help identify the transfer.
162
+ end_to_end_identification:,
151
163
  # The lifecycle status of the transfer.
152
164
  status:,
153
165
  # The identifier of the Transaction object created when the transfer was
154
166
  # confirmed.
155
167
  transaction_id:,
168
+ # The FedNow network identification of the transfer.
169
+ transaction_identification:,
156
170
  # A constant representing the object's type. For this resource it will always be
157
171
  # `inbound_fednow_transfer`.
158
172
  type:,
@@ -181,8 +195,10 @@ module Increase
181
195
  debtor_name: String,
182
196
  debtor_routing_number: String,
183
197
  decline: T.nilable(Increase::InboundFednowTransfer::Decline),
198
+ end_to_end_identification: T.nilable(String),
184
199
  status: Increase::InboundFednowTransfer::Status::TaggedSymbol,
185
200
  transaction_id: T.nilable(String),
201
+ transaction_identification: T.nilable(String),
186
202
  type: Increase::InboundFednowTransfer::Type::TaggedSymbol,
187
203
  unique_end_to_end_transaction_reference: T.nilable(String),
188
204
  unstructured_remittance_information: T.nilable(String)
@@ -17,9 +17,9 @@ module Increase
17
17
  attr_accessor :account_id
18
18
 
19
19
  # The Pending Transaction amount in the minor unit of its currency. For dollars,
20
- # for example, this is cents. This amount does not change after the Pending
21
- # Transaction is created. If a card authorization settles for a different amount,
22
- # the settled amount is available on the resulting Transaction and on the Card
20
+ # for example, this is cents. For a card authorization this is the amount still
21
+ # held: it decreases when the merchant reverses part of the authorization. The
22
+ # amount that settled is available on the resulting Transaction and on the Card
23
23
  # Payment's `state.settled_amount`.
24
24
  sig { returns(Integer) }
25
25
  attr_accessor :amount
@@ -112,9 +112,9 @@ module Increase
112
112
  # The identifier for the account this Pending Transaction belongs to.
113
113
  account_id:,
114
114
  # The Pending Transaction amount in the minor unit of its currency. For dollars,
115
- # for example, this is cents. This amount does not change after the Pending
116
- # Transaction is created. If a card authorization settles for a different amount,
117
- # the settled amount is available on the resulting Transaction and on the Card
115
+ # for example, this is cents. For a card authorization this is the amount still
116
+ # held: it decreases when the merchant reverses part of the authorization. The
117
+ # amount that settled is available on the resulting Transaction and on the Card
118
118
  # Payment's `state.settled_amount`.
119
119
  amount:,
120
120
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
@@ -5004,7 +5004,7 @@ module Increase
5004
5004
  PENDING =
5005
5005
  T.let(:pending, Increase::PendingTransaction::Status::TaggedSymbol)
5006
5006
 
5007
- # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
5007
+ # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
5008
5008
  COMPLETE =
5009
5009
  T.let(:complete, Increase::PendingTransaction::Status::TaggedSymbol)
5010
5010
 
@@ -477,7 +477,7 @@ module Increase
477
477
  Increase::PendingTransactionListParams::Status::In::TaggedSymbol
478
478
  )
479
479
 
480
- # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
480
+ # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
481
481
  COMPLETE =
482
482
  T.let(
483
483
  :complete,
@@ -15,7 +15,8 @@ module Increase
15
15
  sig { returns(String) }
16
16
  attr_accessor :card_id
17
17
 
18
- # Details about the cardholder, as it will appear on the physical card.
18
+ # Details about the cardholder, as it will appear on the physical card. The
19
+ # combined first name and last name cannot exceed 25 characters.
19
20
  sig { returns(Increase::PhysicalCardCreateParams::Cardholder) }
20
21
  attr_reader :cardholder
21
22
 
@@ -57,7 +58,8 @@ module Increase
57
58
  def self.new(
58
59
  # The underlying card representing this physical card.
59
60
  card_id:,
60
- # Details about the cardholder, as it will appear on the physical card.
61
+ # Details about the cardholder, as it will appear on the physical card. The
62
+ # combined first name and last name cannot exceed 25 characters.
61
63
  cardholder:,
62
64
  # The details used to ship this physical card.
63
65
  shipment:,
@@ -99,7 +101,8 @@ module Increase
99
101
  sig { returns(String) }
100
102
  attr_accessor :last_name
101
103
 
102
- # Details about the cardholder, as it will appear on the physical card.
104
+ # Details about the cardholder, as it will appear on the physical card. The
105
+ # combined first name and last name cannot exceed 25 characters.
103
106
  sig do
104
107
  params(first_name: String, last_name: String).returns(
105
108
  T.attached_class
@@ -19,7 +19,10 @@ module Increase
19
19
  sig { returns(String) }
20
20
  attr_accessor :inbound_check_deposit_id
21
21
 
22
- # The adjustment amount in cents. Defaults to the amount of the Inbound Check
22
+ # The adjustment amount in cents. A positive amount means that the funds are being
23
+ # returned to you by the other bank and is a credit to your account, as happens
24
+ # for a `wrong_payee_credit`. A negative amount is a debit to your account, as
25
+ # happens for a `late_return`. Defaults to the amount of the Inbound Check
23
26
  # Deposit.
24
27
  sig { returns(T.nilable(Integer)) }
25
28
  attr_reader :amount
@@ -57,7 +60,10 @@ module Increase
57
60
  def self.new(
58
61
  # The identifier of the Inbound Check Deposit to adjust.
59
62
  inbound_check_deposit_id:,
60
- # The adjustment amount in cents. Defaults to the amount of the Inbound Check
63
+ # The adjustment amount in cents. A positive amount means that the funds are being
64
+ # returned to you by the other bank and is a credit to your account, as happens
65
+ # for a `wrong_payee_credit`. A negative amount is a debit to your account, as
66
+ # happens for a `late_return`. Defaults to the amount of the Inbound Check
61
67
  # Deposit.
62
68
  amount: nil,
63
69
  # The reason for the adjustment. Defaults to `wrong_payee_credit`.
@@ -107,27 +113,6 @@ module Increase
107
113
  Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
108
114
  )
109
115
 
110
- # The check was deposited with a different amount than what was written on the check.
111
- ADJUSTED_AMOUNT =
112
- T.let(
113
- :adjusted_amount,
114
- Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
115
- )
116
-
117
- # The recipient was not able to process the check. This usually happens for e.g., low quality images.
118
- NON_CONFORMING_ITEM =
119
- T.let(
120
- :non_conforming_item,
121
- Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
122
- )
123
-
124
- # The check has already been deposited elsewhere and so this is a duplicate.
125
- PAID =
126
- T.let(
127
- :paid,
128
- Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
129
- )
130
-
131
116
  sig do
132
117
  override.returns(
133
118
  T::Array[
@@ -12808,7 +12808,8 @@ module Increase
12808
12808
  sig { returns(String) }
12809
12809
  attr_accessor :adjusted_transaction_id
12810
12810
 
12811
- # The amount of the check adjustment.
12811
+ # The amount of the check adjustment in USD cents. A positive amount is a credit
12812
+ # to your account and a negative amount is a debit.
12812
12813
  sig { returns(Integer) }
12813
12814
  attr_accessor :amount
12814
12815
 
@@ -12835,7 +12836,8 @@ module Increase
12835
12836
  def self.new(
12836
12837
  # The ID of the transaction that was adjusted.
12837
12838
  adjusted_transaction_id:,
12838
- # The amount of the check adjustment.
12839
+ # The amount of the check adjustment in USD cents. A positive amount is a credit
12840
+ # to your account and a negative amount is a debit.
12839
12841
  amount:,
12840
12842
  # The reason for the adjustment.
12841
12843
  reason:
@@ -783,6 +783,13 @@ module Increase
783
783
  Increase::UnwrapWebhookEvent::Category::TaggedSymbol
784
784
  )
785
785
 
786
+ # Occurs whenever a Plaid Processor Token is created.
787
+ PLAID_PROCESSOR_TOKEN_CREATED =
788
+ T.let(
789
+ :"plaid_processor_token.created",
790
+ Increase::UnwrapWebhookEvent::Category::TaggedSymbol
791
+ )
792
+
786
793
  # Occurs whenever a Checkbook is created.
787
794
  CHECKBOOK_CREATED =
788
795
  T.let(
@@ -16,7 +16,8 @@ module Increase
16
16
  def create(
17
17
  # The underlying card representing this physical card.
18
18
  card_id:,
19
- # Details about the cardholder, as it will appear on the physical card.
19
+ # Details about the cardholder, as it will appear on the physical card. The
20
+ # combined first name and last name cannot exceed 25 characters.
20
21
  cardholder:,
21
22
  # The details used to ship this physical card.
22
23
  shipment:,
@@ -50,7 +50,10 @@ module Increase
50
50
  def adjustment(
51
51
  # The identifier of the Inbound Check Deposit to adjust.
52
52
  inbound_check_deposit_id,
53
- # The adjustment amount in cents. Defaults to the amount of the Inbound Check
53
+ # The adjustment amount in cents. A positive amount means that the funds are being
54
+ # returned to you by the other bank and is a credit to your account, as happens
55
+ # for a `wrong_payee_credit`. A negative amount is a debit to your account, as
56
+ # happens for a `late_return`. Defaults to the amount of the Inbound Check
54
57
  # Deposit.
55
58
  amount: nil,
56
59
  # The reason for the adjustment. Defaults to `wrong_payee_credit`.
@@ -79,38 +79,46 @@ module Increase
79
79
  {
80
80
  credit_limit: Integer,
81
81
  grace_period_days: Integer,
82
+ maturity_date: Date,
82
83
  statement_day_of_month: Integer,
83
- statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
84
- maturity_date: Date
84
+ statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type
85
85
  }
86
86
 
87
87
  class Loan < Increase::Internal::Type::BaseModel
88
88
  attr_accessor credit_limit: Integer
89
89
 
90
- attr_accessor grace_period_days: Integer
90
+ attr_reader grace_period_days: Integer?
91
91
 
92
- attr_accessor statement_day_of_month: Integer
93
-
94
- attr_accessor statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type
92
+ def grace_period_days=: (Integer) -> Integer
95
93
 
96
94
  attr_reader maturity_date: Date?
97
95
 
98
96
  def maturity_date=: (Date) -> Date
99
97
 
98
+ attr_reader statement_day_of_month: Integer?
99
+
100
+ def statement_day_of_month=: (Integer) -> Integer
101
+
102
+ attr_reader statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type?
103
+
104
+ def statement_payment_type=: (
105
+ Increase::Models::AccountCreateParams::Loan::statement_payment_type
106
+ ) -> Increase::Models::AccountCreateParams::Loan::statement_payment_type
107
+
100
108
  def initialize: (
101
109
  credit_limit: Integer,
102
- grace_period_days: Integer,
103
- statement_day_of_month: Integer,
104
- statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
105
- ?maturity_date: Date
110
+ ?grace_period_days: Integer,
111
+ ?maturity_date: Date,
112
+ ?statement_day_of_month: Integer,
113
+ ?statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type
106
114
  ) -> void
107
115
 
108
116
  def to_hash: -> {
109
117
  credit_limit: Integer,
110
118
  grace_period_days: Integer,
119
+ maturity_date: Date,
111
120
  statement_day_of_month: Integer,
112
- statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type,
113
- maturity_date: Date
121
+ statement_payment_type: Increase::Models::AccountCreateParams::Loan::statement_payment_type
114
122
  }
115
123
 
116
124
  type statement_payment_type = :balance | :interest_until_maturity
@@ -13,6 +13,7 @@ module Increase
13
13
  joint: Increase::Entity::Joint?,
14
14
  natural_person: Increase::Entity::NaturalPerson?,
15
15
  risk_rating: Increase::Entity::RiskRating?,
16
+ sole_proprietorship: Increase::Entity::SoleProprietorship?,
16
17
  status: Increase::Models::Entity::status,
17
18
  structure: Increase::Models::Entity::structure,
18
19
  supplemental_documents: ::Array[Increase::EntitySupplementalDocument],
@@ -46,6 +47,8 @@ module Increase
46
47
 
47
48
  attr_accessor risk_rating: Increase::Entity::RiskRating?
48
49
 
50
+ attr_accessor sole_proprietorship: Increase::Entity::SoleProprietorship?
51
+
49
52
  attr_accessor status: Increase::Models::Entity::status
50
53
 
51
54
  attr_accessor structure: Increase::Models::Entity::structure
@@ -74,6 +77,7 @@ module Increase
74
77
  joint: Increase::Entity::Joint?,
75
78
  natural_person: Increase::Entity::NaturalPerson?,
76
79
  risk_rating: Increase::Entity::RiskRating?,
80
+ sole_proprietorship: Increase::Entity::SoleProprietorship?,
77
81
  status: Increase::Models::Entity::status,
78
82
  structure: Increase::Models::Entity::structure,
79
83
  supplemental_documents: ::Array[Increase::EntitySupplementalDocument],
@@ -96,6 +100,7 @@ module Increase
96
100
  joint: Increase::Entity::Joint?,
97
101
  natural_person: Increase::Entity::NaturalPerson?,
98
102
  risk_rating: Increase::Entity::RiskRating?,
103
+ sole_proprietorship: Increase::Entity::SoleProprietorship?,
99
104
  status: Increase::Models::Entity::status,
100
105
  structure: Increase::Models::Entity::structure,
101
106
  supplemental_documents: ::Array[Increase::EntitySupplementalDocument],
@@ -858,6 +863,219 @@ module Increase
858
863
  end
859
864
  end
860
865
 
866
+ type sole_proprietorship =
867
+ {
868
+ address: Increase::Entity::SoleProprietorship::Address,
869
+ doing_business_as_name: String?,
870
+ email: String?,
871
+ industry_code: String?,
872
+ sole_proprietor: Increase::Entity::SoleProprietorship::SoleProprietor,
873
+ tax_identifier: String?,
874
+ website: String?
875
+ }
876
+
877
+ class SoleProprietorship < Increase::Internal::Type::BaseModel
878
+ attr_accessor address: Increase::Entity::SoleProprietorship::Address
879
+
880
+ attr_accessor doing_business_as_name: String?
881
+
882
+ attr_accessor email: String?
883
+
884
+ attr_accessor industry_code: String?
885
+
886
+ attr_accessor sole_proprietor: Increase::Entity::SoleProprietorship::SoleProprietor
887
+
888
+ attr_accessor tax_identifier: String?
889
+
890
+ attr_accessor website: String?
891
+
892
+ def initialize: (
893
+ address: Increase::Entity::SoleProprietorship::Address,
894
+ doing_business_as_name: String?,
895
+ email: String?,
896
+ industry_code: String?,
897
+ sole_proprietor: Increase::Entity::SoleProprietorship::SoleProprietor,
898
+ tax_identifier: String?,
899
+ website: String?
900
+ ) -> void
901
+
902
+ def to_hash: -> {
903
+ address: Increase::Entity::SoleProprietorship::Address,
904
+ doing_business_as_name: String?,
905
+ email: String?,
906
+ industry_code: String?,
907
+ sole_proprietor: Increase::Entity::SoleProprietorship::SoleProprietor,
908
+ tax_identifier: String?,
909
+ website: String?
910
+ }
911
+
912
+ type address =
913
+ {
914
+ city: String?,
915
+ country: String,
916
+ :line1 => String,
917
+ :line2 => String?,
918
+ state: String?,
919
+ zip: String?
920
+ }
921
+
922
+ class Address < Increase::Internal::Type::BaseModel
923
+ attr_accessor city: String?
924
+
925
+ attr_accessor country: String
926
+
927
+ attr_accessor line1: String
928
+
929
+ attr_accessor line2: String?
930
+
931
+ attr_accessor state: String?
932
+
933
+ attr_accessor zip: String?
934
+
935
+ def initialize: (
936
+ city: String?,
937
+ country: String,
938
+ line1: String,
939
+ line2: String?,
940
+ state: String?,
941
+ zip: String?
942
+ ) -> void
943
+
944
+ def to_hash: -> {
945
+ city: String?,
946
+ country: String,
947
+ :line1 => String,
948
+ :line2 => String?,
949
+ state: String?,
950
+ zip: String?
951
+ }
952
+ end
953
+
954
+ type sole_proprietor =
955
+ {
956
+ address: Increase::Entity::SoleProprietorship::SoleProprietor::Address,
957
+ date_of_birth: Date,
958
+ identification: Increase::Entity::SoleProprietorship::SoleProprietor::Identification?,
959
+ name: String
960
+ }
961
+
962
+ class SoleProprietor < Increase::Internal::Type::BaseModel
963
+ attr_accessor address: Increase::Entity::SoleProprietorship::SoleProprietor::Address
964
+
965
+ attr_accessor date_of_birth: Date
966
+
967
+ attr_accessor identification: Increase::Entity::SoleProprietorship::SoleProprietor::Identification?
968
+
969
+ attr_accessor name: String
970
+
971
+ def initialize: (
972
+ address: Increase::Entity::SoleProprietorship::SoleProprietor::Address,
973
+ date_of_birth: Date,
974
+ identification: Increase::Entity::SoleProprietorship::SoleProprietor::Identification?,
975
+ name: String
976
+ ) -> void
977
+
978
+ def to_hash: -> {
979
+ address: Increase::Entity::SoleProprietorship::SoleProprietor::Address,
980
+ date_of_birth: Date,
981
+ identification: Increase::Entity::SoleProprietorship::SoleProprietor::Identification?,
982
+ name: String
983
+ }
984
+
985
+ type address =
986
+ {
987
+ city: String?,
988
+ country: String,
989
+ :line1 => String,
990
+ :line2 => String?,
991
+ state: String?,
992
+ zip: String?
993
+ }
994
+
995
+ class Address < Increase::Internal::Type::BaseModel
996
+ attr_accessor city: String?
997
+
998
+ attr_accessor country: String
999
+
1000
+ attr_accessor line1: String
1001
+
1002
+ attr_accessor line2: String?
1003
+
1004
+ attr_accessor state: String?
1005
+
1006
+ attr_accessor zip: String?
1007
+
1008
+ def initialize: (
1009
+ city: String?,
1010
+ country: String,
1011
+ line1: String,
1012
+ line2: String?,
1013
+ state: String?,
1014
+ zip: String?
1015
+ ) -> void
1016
+
1017
+ def to_hash: -> {
1018
+ city: String?,
1019
+ country: String,
1020
+ :line1 => String,
1021
+ :line2 => String?,
1022
+ state: String?,
1023
+ zip: String?
1024
+ }
1025
+ end
1026
+
1027
+ type identification =
1028
+ {
1029
+ method_: Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::method_,
1030
+ :number_last4 => String
1031
+ }
1032
+
1033
+ class Identification < Increase::Internal::Type::BaseModel
1034
+ attr_accessor method_: Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::method_
1035
+
1036
+ attr_accessor number_last4: String
1037
+
1038
+ def initialize: (
1039
+ method_: Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::method_,
1040
+ number_last4: String
1041
+ ) -> void
1042
+
1043
+ def to_hash: -> {
1044
+ method_: Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::method_,
1045
+ :number_last4 => String
1046
+ }
1047
+
1048
+ type method_ =
1049
+ :social_security_number
1050
+ | :individual_taxpayer_identification_number
1051
+ | :passport
1052
+ | :drivers_license
1053
+ | :other
1054
+
1055
+ module Method
1056
+ extend Increase::Internal::Type::Enum
1057
+
1058
+ # A social security number.
1059
+ SOCIAL_SECURITY_NUMBER: :social_security_number
1060
+
1061
+ # An individual taxpayer identification number (ITIN).
1062
+ INDIVIDUAL_TAXPAYER_IDENTIFICATION_NUMBER: :individual_taxpayer_identification_number
1063
+
1064
+ # A passport number.
1065
+ PASSPORT: :passport
1066
+
1067
+ # A driver's license number.
1068
+ DRIVERS_LICENSE: :drivers_license
1069
+
1070
+ # Another identifying document.
1071
+ OTHER: :other
1072
+
1073
+ def self?.values: -> ::Array[Increase::Models::Entity::SoleProprietorship::SoleProprietor::Identification::method_]
1074
+ end
1075
+ end
1076
+ end
1077
+ end
1078
+
861
1079
  type status = :active | :archived | :disabled
862
1080
 
863
1081
  module Status
@@ -876,7 +1094,12 @@ module Increase
876
1094
  end
877
1095
 
878
1096
  type structure =
879
- :corporation | :natural_person | :joint | :trust | :government_authority
1097
+ :corporation
1098
+ | :natural_person
1099
+ | :joint
1100
+ | :trust
1101
+ | :government_authority
1102
+ | :sole_proprietorship
880
1103
 
881
1104
  module Structure
882
1105
  extend Increase::Internal::Type::Enum
@@ -896,6 +1119,9 @@ module Increase
896
1119
  # A government authority.
897
1120
  GOVERNMENT_AUTHORITY: :government_authority
898
1121
 
1122
+ # A sole proprietorship.
1123
+ SOLE_PROPRIETORSHIP: :sole_proprietorship
1124
+
899
1125
  def self?.values: -> ::Array[Increase::Models::Entity::structure]
900
1126
  end
901
1127
 
@@ -141,6 +141,7 @@ module Increase
141
141
  | :"physical_card_profile.updated"
142
142
  | :"physical_check.created"
143
143
  | :"physical_check.updated"
144
+ | :"plaid_processor_token.created"
144
145
  | :"checkbook.created"
145
146
  | :"checkbook.updated"
146
147
  | :"program.created"
@@ -465,6 +466,9 @@ module Increase
465
466
  # Occurs whenever a Physical Check is updated.
466
467
  PHYSICAL_CHECK_UPDATED: :"physical_check.updated"
467
468
 
469
+ # Occurs whenever a Plaid Processor Token is created.
470
+ PLAID_PROCESSOR_TOKEN_CREATED: :"plaid_processor_token.created"
471
+
468
472
  # Occurs whenever a Checkbook is created.
469
473
  CHECKBOOK_CREATED: :"checkbook.created"
470
474