increase 1.347.0 → 1.349.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/account_create_params.rb +15 -15
  4. data/lib/increase/models/ach_prenotification_create_params.rb +2 -2
  5. data/lib/increase/models/ach_transfer.rb +2 -2
  6. data/lib/increase/models/ach_transfer_create_params.rb +1 -24
  7. data/lib/increase/models/balance_lookup.rb +49 -1
  8. data/lib/increase/models/beneficial_owner_update_params.rb +9 -1
  9. data/lib/increase/models/card.rb +43 -1
  10. data/lib/increase/models/card_create_params.rb +42 -1
  11. data/lib/increase/models/card_dispute.rb +1 -1
  12. data/lib/increase/models/card_dispute_list_params.rb +1 -1
  13. data/lib/increase/models/card_payment.rb +18 -1
  14. data/lib/increase/models/check_transfer.rb +13 -1
  15. data/lib/increase/models/check_transfer_create_params.rb +25 -13
  16. data/lib/increase/models/entity.rb +315 -5
  17. data/lib/increase/models/entity_update_params.rb +754 -1
  18. data/lib/increase/models/event.rb +12 -0
  19. data/lib/increase/models/event_list_params.rb +12 -0
  20. data/lib/increase/models/event_subscription.rb +12 -0
  21. data/lib/increase/models/event_subscription_create_params.rb +12 -0
  22. data/lib/increase/models/file.rb +7 -6
  23. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  24. data/lib/increase/models/inbound_check_deposit.rb +5 -2
  25. data/lib/increase/models/inbound_fednow_transfer.rb +18 -1
  26. data/lib/increase/models/pending_transaction.rb +25 -8
  27. data/lib/increase/models/pending_transaction_list_params.rb +1 -1
  28. data/lib/increase/models/physical_card_create_params.rb +6 -3
  29. data/lib/increase/models/real_time_decision.rb +18 -1
  30. data/lib/increase/models/real_time_payments_transfer.rb +30 -19
  31. data/lib/increase/models/real_time_payments_transfer_create_params.rb +12 -1
  32. data/lib/increase/models/simulations/card_dispute_action_params.rb +30 -1
  33. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -0
  34. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
  35. data/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb +18 -18
  36. data/lib/increase/models/transaction.rb +5 -2
  37. data/lib/increase/models/unwrap_webhook_event.rb +12 -0
  38. data/lib/increase/models/wire_transfer_create_params.rb +100 -42
  39. data/lib/increase/resources/ach_prenotifications.rb +1 -1
  40. data/lib/increase/resources/ach_transfers.rb +1 -4
  41. data/lib/increase/resources/beneficial_owners.rb +3 -1
  42. data/lib/increase/resources/cards.rb +5 -1
  43. data/lib/increase/resources/physical_cards.rb +2 -1
  44. data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
  45. data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
  46. data/lib/increase/version.rb +1 -1
  47. data/rbi/increase/models/account_create_params.rbi +37 -21
  48. data/rbi/increase/models/ach_prenotification_create_params.rbi +2 -2
  49. data/rbi/increase/models/ach_transfer.rbi +2 -2
  50. data/rbi/increase/models/ach_transfer_create_params.rbi +0 -59
  51. data/rbi/increase/models/balance_lookup.rbi +48 -0
  52. data/rbi/increase/models/beneficial_owner_update_params.rbi +11 -0
  53. data/rbi/increase/models/card.rbi +63 -0
  54. data/rbi/increase/models/card_create_params.rbi +65 -0
  55. data/rbi/increase/models/card_dispute.rbi +1 -1
  56. data/rbi/increase/models/card_dispute_list_params.rbi +1 -1
  57. data/rbi/increase/models/card_payment.rbi +16 -0
  58. data/rbi/increase/models/check_transfer.rbi +15 -0
  59. data/rbi/increase/models/check_transfer_create_params.rbi +26 -12
  60. data/rbi/increase/models/entity.rbi +552 -3
  61. data/rbi/increase/models/entity_update_params.rbi +1326 -3
  62. data/rbi/increase/models/event.rbi +28 -0
  63. data/rbi/increase/models/event_list_params.rbi +28 -0
  64. data/rbi/increase/models/event_subscription.rbi +28 -0
  65. data/rbi/increase/models/event_subscription_create_params.rbi +28 -0
  66. data/rbi/increase/models/file.rbi +7 -6
  67. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  68. data/rbi/increase/models/inbound_check_deposit.rbi +4 -2
  69. data/rbi/increase/models/inbound_fednow_transfer.rbi +16 -0
  70. data/rbi/increase/models/pending_transaction.rbi +23 -7
  71. data/rbi/increase/models/pending_transaction_list_params.rbi +1 -1
  72. data/rbi/increase/models/physical_card_create_params.rbi +6 -3
  73. data/rbi/increase/models/real_time_decision.rbi +16 -0
  74. data/rbi/increase/models/real_time_payments_transfer.rbi +29 -18
  75. data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +15 -0
  76. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +60 -0
  77. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +7 -0
  78. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
  79. data/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi +18 -18
  80. data/rbi/increase/models/transaction.rbi +4 -2
  81. data/rbi/increase/models/unwrap_webhook_event.rbi +28 -0
  82. data/rbi/increase/models/wire_transfer_create_params.rbi +146 -62
  83. data/rbi/increase/resources/ach_prenotifications.rbi +1 -1
  84. data/rbi/increase/resources/ach_transfers.rbi +0 -4
  85. data/rbi/increase/resources/beneficial_owners.rbi +3 -0
  86. data/rbi/increase/resources/cards.rbi +4 -0
  87. data/rbi/increase/resources/physical_cards.rbi +2 -1
  88. data/rbi/increase/resources/real_time_payments_transfers.rbi +4 -0
  89. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
  90. data/sig/increase/models/account_create_params.rbs +20 -12
  91. data/sig/increase/models/ach_transfer_create_params.rbs +1 -24
  92. data/sig/increase/models/balance_lookup.rbs +30 -0
  93. data/sig/increase/models/beneficial_owner_update_params.rbs +7 -0
  94. data/sig/increase/models/card.rbs +19 -0
  95. data/sig/increase/models/card_create_params.rbs +25 -0
  96. data/sig/increase/models/card_dispute.rbs +1 -1
  97. data/sig/increase/models/card_dispute_list_params.rbs +1 -1
  98. data/sig/increase/models/card_payment.rbs +5 -0
  99. data/sig/increase/models/check_transfer.rbs +9 -0
  100. data/sig/increase/models/check_transfer_create_params.rbs +7 -0
  101. data/sig/increase/models/entity.rbs +248 -5
  102. data/sig/increase/models/entity_update_params.rbs +585 -3
  103. data/sig/increase/models/event.rbs +16 -0
  104. data/sig/increase/models/event_list_params.rbs +16 -0
  105. data/sig/increase/models/event_subscription.rbs +16 -0
  106. data/sig/increase/models/event_subscription_create_params.rbs +16 -0
  107. data/sig/increase/models/inbound_ach_transfer.rbs +2 -2
  108. data/sig/increase/models/inbound_fednow_transfer.rbs +10 -0
  109. data/sig/increase/models/pending_transaction.rbs +6 -1
  110. data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
  111. data/sig/increase/models/real_time_decision.rbs +5 -0
  112. data/sig/increase/models/real_time_payments_transfer.rbs +23 -18
  113. data/sig/increase/models/real_time_payments_transfer_create_params.rbs +7 -0
  114. data/sig/increase/models/simulations/card_dispute_action_params.rbs +23 -0
  115. data/sig/increase/models/simulations/entity_update_validation_params.rbs +4 -0
  116. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
  117. data/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs +18 -18
  118. data/sig/increase/models/unwrap_webhook_event.rbs +16 -0
  119. data/sig/increase/models/wire_transfer_create_params.rbs +78 -32
  120. data/sig/increase/resources/ach_transfers.rbs +0 -1
  121. data/sig/increase/resources/beneficial_owners.rbs +1 -0
  122. data/sig/increase/resources/cards.rbs +1 -0
  123. data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
  124. metadata +2 -2
@@ -7,6 +7,7 @@ module Increase
7
7
  authorization_controls: Increase::Card::AuthorizationControls?,
8
8
  billing_address: Increase::Card::BillingAddress,
9
9
  bin: String,
10
+ cardholder_name: Increase::Card::CardholderName?,
10
11
  created_at: Time,
11
12
  description: String?,
12
13
  digital_wallet: Increase::Card::DigitalWallet?,
@@ -30,6 +31,8 @@ module Increase
30
31
 
31
32
  attr_accessor bin: String
32
33
 
34
+ attr_accessor cardholder_name: Increase::Card::CardholderName?
35
+
33
36
  attr_accessor created_at: Time
34
37
 
35
38
  attr_accessor description: String?
@@ -56,6 +59,7 @@ module Increase
56
59
  authorization_controls: Increase::Card::AuthorizationControls?,
57
60
  billing_address: Increase::Card::BillingAddress,
58
61
  bin: String,
62
+ cardholder_name: Increase::Card::CardholderName?,
59
63
  created_at: Time,
60
64
  description: String?,
61
65
  digital_wallet: Increase::Card::DigitalWallet?,
@@ -74,6 +78,7 @@ module Increase
74
78
  authorization_controls: Increase::Card::AuthorizationControls?,
75
79
  billing_address: Increase::Card::BillingAddress,
76
80
  bin: String,
81
+ cardholder_name: Increase::Card::CardholderName?,
77
82
  created_at: Time,
78
83
  description: String?,
79
84
  digital_wallet: Increase::Card::DigitalWallet?,
@@ -453,6 +458,20 @@ module Increase
453
458
  }
454
459
  end
455
460
 
461
+ type cardholder_name = { first: String, last: String, middle: String? }
462
+
463
+ class CardholderName < Increase::Internal::Type::BaseModel
464
+ attr_accessor first: String
465
+
466
+ attr_accessor last: String
467
+
468
+ attr_accessor middle: String?
469
+
470
+ def initialize: (first: String, last: String, middle: String?) -> void
471
+
472
+ def to_hash: -> { first: String, last: String, middle: String? }
473
+ end
474
+
456
475
  type digital_wallet =
457
476
  { digital_card_profile_id: String?, email: String?, phone: String? }
458
477
 
@@ -5,6 +5,7 @@ module Increase
5
5
  account_id: String,
6
6
  authorization_controls: Increase::CardCreateParams::AuthorizationControls,
7
7
  billing_address: Increase::CardCreateParams::BillingAddress,
8
+ cardholder_name: Increase::CardCreateParams::CardholderName,
8
9
  description: String,
9
10
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
10
11
  entity_id: String
@@ -29,6 +30,12 @@ module Increase
29
30
  Increase::CardCreateParams::BillingAddress
30
31
  ) -> Increase::CardCreateParams::BillingAddress
31
32
 
33
+ attr_reader cardholder_name: Increase::CardCreateParams::CardholderName?
34
+
35
+ def cardholder_name=: (
36
+ Increase::CardCreateParams::CardholderName
37
+ ) -> Increase::CardCreateParams::CardholderName
38
+
32
39
  attr_reader description: String?
33
40
 
34
41
  def description=: (String) -> String
@@ -47,6 +54,7 @@ module Increase
47
54
  account_id: String,
48
55
  ?authorization_controls: Increase::CardCreateParams::AuthorizationControls,
49
56
  ?billing_address: Increase::CardCreateParams::BillingAddress,
57
+ ?cardholder_name: Increase::CardCreateParams::CardholderName,
50
58
  ?description: String,
51
59
  ?digital_wallet: Increase::CardCreateParams::DigitalWallet,
52
60
  ?entity_id: String,
@@ -57,6 +65,7 @@ module Increase
57
65
  account_id: String,
58
66
  authorization_controls: Increase::CardCreateParams::AuthorizationControls,
59
67
  billing_address: Increase::CardCreateParams::BillingAddress,
68
+ cardholder_name: Increase::CardCreateParams::CardholderName,
60
69
  description: String,
61
70
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
62
71
  entity_id: String,
@@ -488,6 +497,22 @@ module Increase
488
497
  }
489
498
  end
490
499
 
500
+ type cardholder_name = { first: String, last: String, middle: String }
501
+
502
+ class CardholderName < Increase::Internal::Type::BaseModel
503
+ attr_accessor first: String
504
+
505
+ attr_accessor last: String
506
+
507
+ attr_reader middle: String?
508
+
509
+ def middle=: (String) -> String
510
+
511
+ def initialize: (first: String, last: String, ?middle: String) -> void
512
+
513
+ def to_hash: -> { first: String, last: String, middle: String }
514
+ end
515
+
491
516
  type digital_wallet =
492
517
  { digital_card_profile_id: String, email: String, phone: String }
493
518
 
@@ -179,7 +179,7 @@ module Increase
179
179
  # The Card Dispute has been won and no further action can be taken.
180
180
  WON: :won
181
181
 
182
- # The Card Dispute has been reviewed and rejected, please review the explanation for more details.
182
+ # The Card Dispute was rejected before it was submitted to the network, either by Increase or because the user withdrew it. Please review the explanation for more details.
183
183
  REJECTED: :rejected
184
184
 
185
185
  def self?.values: -> ::Array[Increase::Models::CardDispute::status]
@@ -143,7 +143,7 @@ module Increase
143
143
  # The Card Dispute has been won and no further action can be taken.
144
144
  WON: :won
145
145
 
146
- # The Card Dispute has been reviewed and rejected, please review the explanation for more details.
146
+ # The Card Dispute was rejected before it was submitted to the network, either by Increase or because the user withdrew it. Please review the explanation for more details.
147
147
  REJECTED: :rejected
148
148
 
149
149
  def self?.values: -> ::Array[Increase::Models::CardDisputeListParams::Status::in_]
@@ -998,6 +998,7 @@ module Increase
998
998
  network_details: Increase::CardPayment::Element::CardAuthorization::NetworkDetails,
999
999
  network_identifiers: Increase::CardPayment::Element::CardAuthorization::NetworkIdentifiers,
1000
1000
  network_risk_score: Integer?,
1001
+ original_card_payment_id: String?,
1001
1002
  pending_transaction_id: String?,
1002
1003
  physical_card_id: String?,
1003
1004
  presentment_amount: Integer,
@@ -1051,6 +1052,8 @@ module Increase
1051
1052
 
1052
1053
  attr_accessor network_risk_score: Integer?
1053
1054
 
1055
+ attr_accessor original_card_payment_id: String?
1056
+
1054
1057
  attr_accessor pending_transaction_id: String?
1055
1058
 
1056
1059
  attr_accessor physical_card_id: String?
@@ -1092,6 +1095,7 @@ module Increase
1092
1095
  network_details: Increase::CardPayment::Element::CardAuthorization::NetworkDetails,
1093
1096
  network_identifiers: Increase::CardPayment::Element::CardAuthorization::NetworkIdentifiers,
1094
1097
  network_risk_score: Integer?,
1098
+ original_card_payment_id: String?,
1095
1099
  pending_transaction_id: String?,
1096
1100
  physical_card_id: String?,
1097
1101
  presentment_amount: Integer,
@@ -1125,6 +1129,7 @@ module Increase
1125
1129
  network_details: Increase::CardPayment::Element::CardAuthorization::NetworkDetails,
1126
1130
  network_identifiers: Increase::CardPayment::Element::CardAuthorization::NetworkIdentifiers,
1127
1131
  network_risk_score: Integer?,
1132
+ original_card_payment_id: String?,
1128
1133
  pending_transaction_id: String?,
1129
1134
  physical_card_id: String?,
1130
1135
  presentment_amount: Integer,
@@ -296,6 +296,7 @@ module Increase
296
296
  memo: String?,
297
297
  note: String?,
298
298
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
299
+ physical_check_batch_id: String?,
299
300
  recipient_name: String,
300
301
  return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
301
302
  return_address_name: String?,
@@ -317,6 +318,8 @@ module Increase
317
318
 
318
319
  attr_accessor payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer]
319
320
 
321
+ attr_accessor physical_check_batch_id: String?
322
+
320
323
  attr_accessor recipient_name: String
321
324
 
322
325
  attr_accessor return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?
@@ -336,6 +339,7 @@ module Increase
336
339
  memo: String?,
337
340
  note: String?,
338
341
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
342
+ physical_check_batch_id: String?,
339
343
  recipient_name: String,
340
344
  return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
341
345
  return_address_name: String?,
@@ -351,6 +355,7 @@ module Increase
351
355
  memo: String?,
352
356
  note: String?,
353
357
  payer: ::Array[Increase::CheckTransfer::PhysicalCheck::Payer],
358
+ physical_check_batch_id: String?,
354
359
  recipient_name: String,
355
360
  return_address: Increase::CheckTransfer::PhysicalCheck::ReturnAddress?,
356
361
  return_address_name: String?,
@@ -562,6 +567,7 @@ module Increase
562
567
  type status =
563
568
  :pending_approval
564
569
  | :canceled
570
+ | :pending_batch_completing
565
571
  | :pending_submission
566
572
  | :pending_reviewing
567
573
  | :requires_attention
@@ -581,6 +587,9 @@ module Increase
581
587
  # The transfer has been canceled.
582
588
  CANCELED: :canceled
583
589
 
590
+ # The transfer is waiting for its Physical Check Batch to be completed.
591
+ PENDING_BATCH_COMPLETING: :pending_batch_completing
592
+
584
593
  # The transfer is pending submission.
585
594
  PENDING_SUBMISSION: :pending_submission
586
595
 
@@ -122,6 +122,7 @@ module Increase
122
122
  attachment_file_id: String,
123
123
  check_voucher_image_file_id: String,
124
124
  note: String,
125
+ physical_check_batch_id: String,
125
126
  return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
126
127
  return_address_name: String,
127
128
  shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
@@ -149,6 +150,10 @@ module Increase
149
150
 
150
151
  def note=: (String) -> String
151
152
 
153
+ attr_reader physical_check_batch_id: String?
154
+
155
+ def physical_check_batch_id=: (String) -> String
156
+
152
157
  attr_reader return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress?
153
158
 
154
159
  def return_address=: (
@@ -179,6 +184,7 @@ module Increase
179
184
  ?attachment_file_id: String,
180
185
  ?check_voucher_image_file_id: String,
181
186
  ?note: String,
187
+ ?physical_check_batch_id: String,
182
188
  ?return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
183
189
  ?return_address_name: String,
184
190
  ?shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
@@ -193,6 +199,7 @@ module Increase
193
199
  attachment_file_id: String,
194
200
  check_voucher_image_file_id: String,
195
201
  note: String,
202
+ physical_check_batch_id: String,
196
203
  return_address: Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
197
204
  return_address_name: String,
198
205
  shipping_method: Increase::Models::CheckTransferCreateParams::PhysicalCheck::shipping_method,
@@ -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,28 +1119,31 @@ 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
 
902
1128
  type terms_agreement =
903
- { agreed_at: Time, ip_address: String, terms_url: String }
1129
+ { agreed_at: Time, ip_address: String?, terms_url: String }
904
1130
 
905
1131
  class TermsAgreement < Increase::Internal::Type::BaseModel
906
1132
  attr_accessor agreed_at: Time
907
1133
 
908
- attr_accessor ip_address: String
1134
+ attr_accessor ip_address: String?
909
1135
 
910
1136
  attr_accessor terms_url: String
911
1137
 
912
1138
  def initialize: (
913
1139
  agreed_at: Time,
914
- ip_address: String,
1140
+ ip_address: String?,
915
1141
  terms_url: String
916
1142
  ) -> void
917
1143
 
918
1144
  def to_hash: -> {
919
1145
  agreed_at: Time,
920
- ip_address: String,
1146
+ ip_address: String?,
921
1147
  terms_url: String
922
1148
  }
923
1149
  end
@@ -1393,6 +1619,7 @@ module Increase
1393
1619
  beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
1394
1620
  category: Increase::Models::Entity::Validation::Issue::category,
1395
1621
  entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
1622
+ entity_identity: Increase::Entity::Validation::Issue::EntityIdentity?,
1396
1623
  entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
1397
1624
  }
1398
1625
 
@@ -1405,6 +1632,8 @@ module Increase
1405
1632
 
1406
1633
  attr_accessor entity_address: Increase::Entity::Validation::Issue::EntityAddress?
1407
1634
 
1635
+ attr_accessor entity_identity: Increase::Entity::Validation::Issue::EntityIdentity?
1636
+
1408
1637
  attr_accessor entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
1409
1638
 
1410
1639
  def initialize: (
@@ -1412,6 +1641,7 @@ module Increase
1412
1641
  beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
1413
1642
  category: Increase::Models::Entity::Validation::Issue::category,
1414
1643
  entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
1644
+ entity_identity: Increase::Entity::Validation::Issue::EntityIdentity?,
1415
1645
  entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
1416
1646
  ) -> void
1417
1647
 
@@ -1420,6 +1650,7 @@ module Increase
1420
1650
  beneficial_owner_identity: Increase::Entity::Validation::Issue::BeneficialOwnerIdentity?,
1421
1651
  category: Increase::Models::Entity::Validation::Issue::category,
1422
1652
  entity_address: Increase::Entity::Validation::Issue::EntityAddress?,
1653
+ entity_identity: Increase::Entity::Validation::Issue::EntityIdentity?,
1423
1654
  entity_tax_identifier: Increase::Entity::Validation::Issue::EntityTaxIdentifier?
1424
1655
  }
1425
1656
 
@@ -1469,6 +1700,7 @@ module Increase
1469
1700
  type category =
1470
1701
  :entity_tax_identifier
1471
1702
  | :entity_address
1703
+ | :entity_identity
1472
1704
  | :beneficial_owner_identity
1473
1705
  | :beneficial_owner_address
1474
1706
 
@@ -1481,6 +1713,9 @@ module Increase
1481
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).
1482
1714
  ENTITY_ADDRESS: :entity_address
1483
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).
1717
+ ENTITY_IDENTITY: :entity_identity
1718
+
1484
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).
1485
1720
  BENEFICIAL_OWNER_IDENTITY: :beneficial_owner_identity
1486
1721
 
@@ -1518,6 +1753,14 @@ module Increase
1518
1753
  end
1519
1754
  end
1520
1755
 
1756
+ type entity_identity = { }
1757
+
1758
+ class EntityIdentity < Increase::Internal::Type::BaseModel
1759
+ def initialize: -> void
1760
+
1761
+ def to_hash: -> { }
1762
+ end
1763
+
1521
1764
  type entity_tax_identifier = { }
1522
1765
 
1523
1766
  class EntityTaxIdentifier < Increase::Internal::Type::BaseModel