increase 1.348.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 (163) 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/account_number.rb +3 -3
  5. data/lib/increase/models/ach_transfer.rb +12 -12
  6. data/lib/increase/models/balance_lookup.rb +1 -1
  7. data/lib/increase/models/beneficial_owner_create_params.rb +2 -4
  8. data/lib/increase/models/beneficial_owner_update_params.rb +2 -4
  9. data/lib/increase/models/card_dispute.rb +9 -1
  10. data/lib/increase/models/card_dispute_submit_user_submission_params.rb +4 -0
  11. data/lib/increase/models/card_payment.rb +58 -58
  12. data/lib/increase/models/card_purchase_supplement.rb +9 -1
  13. data/lib/increase/models/card_token_capabilities.rb +2 -2
  14. data/lib/increase/models/check_deposit.rb +9 -9
  15. data/lib/increase/models/check_transfer.rb +2 -2
  16. data/lib/increase/models/check_transfer_create_params.rb +9 -4
  17. data/lib/increase/models/declined_transaction.rb +12 -9
  18. data/lib/increase/models/digital_wallet_token.rb +9 -1
  19. data/lib/increase/models/entity.rb +298 -6
  20. data/lib/increase/models/entity_create_params.rb +332 -29
  21. data/lib/increase/models/entity_onboarding_session_list_params.rb +2 -2
  22. data/lib/increase/models/entity_update_params.rb +472 -15
  23. data/lib/increase/models/event.rb +3 -0
  24. data/lib/increase/models/event_list_params.rb +3 -0
  25. data/lib/increase/models/event_subscription.rb +3 -0
  26. data/lib/increase/models/event_subscription_create_params.rb +3 -0
  27. data/lib/increase/models/fednow_transfer.rb +115 -4
  28. data/lib/increase/models/fednow_transfer_list_params.rb +3 -3
  29. data/lib/increase/models/inbound_ach_transfer.rb +2 -2
  30. data/lib/increase/models/inbound_check_deposit.rb +7 -4
  31. data/lib/increase/models/inbound_fednow_transfer.rb +21 -1
  32. data/lib/increase/models/inbound_mail_item.rb +14 -1
  33. data/lib/increase/models/inbound_wire_drawdown_request.rb +12 -1
  34. data/lib/increase/models/inbound_wire_transfer.rb +4 -4
  35. data/lib/increase/models/intrafi_exclusion.rb +4 -4
  36. data/lib/increase/models/lockbox_recipient_create_params.rb +2 -2
  37. data/lib/increase/models/pending_transaction.rb +20 -20
  38. data/lib/increase/models/pending_transaction_list_params.rb +5 -7
  39. data/lib/increase/models/physical_card.rb +9 -1
  40. data/lib/increase/models/physical_card_create_params.rb +6 -3
  41. data/lib/increase/models/real_time_decision.rb +18 -18
  42. data/lib/increase/models/simulations/card_authentication_create_params.rb +2 -2
  43. data/lib/increase/models/simulations/card_dispute_action_params.rb +6 -6
  44. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -3
  45. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
  46. data/lib/increase/models/simulations/interest_payment_create_params.rb +2 -2
  47. data/lib/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rb +2 -2
  48. data/lib/increase/models/simulations/program_create_params.rb +14 -3
  49. data/lib/increase/models/transaction.rb +146 -19
  50. data/lib/increase/models/transaction_list_params.rb +3 -0
  51. data/lib/increase/models/unwrap_webhook_event.rb +3 -0
  52. data/lib/increase/models/wire_drawdown_request.rb +12 -1
  53. data/lib/increase/models/wire_transfer_create_params.rb +2 -2
  54. data/lib/increase/resources/cards.rb +2 -2
  55. data/lib/increase/resources/check_transfers.rb +1 -1
  56. data/lib/increase/resources/entities.rb +10 -2
  57. data/lib/increase/resources/entity_onboarding_sessions.rb +1 -1
  58. data/lib/increase/resources/lockbox_recipients.rb +1 -1
  59. data/lib/increase/resources/physical_cards.rb +2 -1
  60. data/lib/increase/resources/simulations/card_authentications.rb +1 -1
  61. data/lib/increase/resources/simulations/card_disputes.rb +2 -2
  62. data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
  63. data/lib/increase/resources/simulations/interest_payments.rb +1 -1
  64. data/lib/increase/resources/simulations/pending_transactions.rb +1 -1
  65. data/lib/increase/resources/simulations/physical_cards.rb +2 -2
  66. data/lib/increase/resources/simulations/programs.rb +6 -2
  67. data/lib/increase/resources/wire_transfers.rb +1 -1
  68. data/lib/increase/version.rb +1 -1
  69. data/rbi/increase/models/account_create_params.rbi +37 -21
  70. data/rbi/increase/models/account_number.rbi +3 -3
  71. data/rbi/increase/models/ach_transfer.rbi +12 -12
  72. data/rbi/increase/models/balance_lookup.rbi +1 -1
  73. data/rbi/increase/models/beneficial_owner_create_params.rbi +2 -4
  74. data/rbi/increase/models/beneficial_owner_update_params.rbi +2 -4
  75. data/rbi/increase/models/card_dispute.rbi +8 -0
  76. data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +3 -0
  77. data/rbi/increase/models/card_payment.rbi +58 -58
  78. data/rbi/increase/models/card_purchase_supplement.rbi +8 -0
  79. data/rbi/increase/models/card_token_capabilities.rbi +2 -2
  80. data/rbi/increase/models/check_deposit.rbi +9 -9
  81. data/rbi/increase/models/check_transfer.rbi +2 -2
  82. data/rbi/increase/models/check_transfer_create_params.rbi +8 -4
  83. data/rbi/increase/models/declined_transaction.rbi +16 -9
  84. data/rbi/increase/models/digital_wallet_token.rbi +8 -0
  85. data/rbi/increase/models/entity.rbi +496 -5
  86. data/rbi/increase/models/entity_create_params.rbi +547 -28
  87. data/rbi/increase/models/entity_onboarding_session_list_params.rbi +2 -2
  88. data/rbi/increase/models/entity_update_params.rbi +814 -14
  89. data/rbi/increase/models/event.rbi +7 -0
  90. data/rbi/increase/models/event_list_params.rbi +7 -0
  91. data/rbi/increase/models/event_subscription.rbi +7 -0
  92. data/rbi/increase/models/event_subscription_create_params.rbi +7 -0
  93. data/rbi/increase/models/fednow_transfer.rbi +213 -7
  94. data/rbi/increase/models/fednow_transfer_list_params.rbi +7 -7
  95. data/rbi/increase/models/inbound_ach_transfer.rbi +2 -2
  96. data/rbi/increase/models/inbound_check_deposit.rbi +6 -4
  97. data/rbi/increase/models/inbound_fednow_transfer.rbi +23 -0
  98. data/rbi/increase/models/inbound_mail_item.rbi +12 -0
  99. data/rbi/increase/models/inbound_wire_drawdown_request.rbi +10 -0
  100. data/rbi/increase/models/inbound_wire_transfer.rbi +4 -4
  101. data/rbi/increase/models/intrafi_exclusion.rbi +4 -4
  102. data/rbi/increase/models/lockbox_recipient_create_params.rbi +2 -2
  103. data/rbi/increase/models/pending_transaction.rbi +20 -20
  104. data/rbi/increase/models/pending_transaction_list_params.rbi +5 -7
  105. data/rbi/increase/models/physical_card.rbi +8 -0
  106. data/rbi/increase/models/physical_card_create_params.rbi +6 -3
  107. data/rbi/increase/models/real_time_decision.rbi +18 -18
  108. data/rbi/increase/models/simulations/card_authentication_create_params.rbi +2 -2
  109. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +6 -6
  110. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +3 -3
  111. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
  112. data/rbi/increase/models/simulations/interest_payment_create_params.rbi +2 -2
  113. data/rbi/increase/models/simulations/pending_transaction_release_inbound_funds_hold_params.rbi +2 -2
  114. data/rbi/increase/models/simulations/program_create_params.rbi +15 -2
  115. data/rbi/increase/models/transaction.rbi +264 -18
  116. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  117. data/rbi/increase/models/unwrap_webhook_event.rbi +7 -0
  118. data/rbi/increase/models/wire_drawdown_request.rbi +10 -0
  119. data/rbi/increase/models/wire_transfer_create_params.rbi +2 -2
  120. data/rbi/increase/resources/cards.rbi +2 -2
  121. data/rbi/increase/resources/check_transfers.rbi +1 -1
  122. data/rbi/increase/resources/entities.rbi +10 -0
  123. data/rbi/increase/resources/entity_onboarding_sessions.rbi +1 -1
  124. data/rbi/increase/resources/lockbox_recipients.rbi +1 -1
  125. data/rbi/increase/resources/physical_cards.rbi +2 -1
  126. data/rbi/increase/resources/simulations/card_authentications.rbi +1 -1
  127. data/rbi/increase/resources/simulations/card_disputes.rbi +2 -2
  128. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
  129. data/rbi/increase/resources/simulations/interest_payments.rbi +1 -1
  130. data/rbi/increase/resources/simulations/pending_transactions.rbi +1 -1
  131. data/rbi/increase/resources/simulations/physical_cards.rbi +2 -2
  132. data/rbi/increase/resources/simulations/programs.rbi +5 -1
  133. data/rbi/increase/resources/wire_transfers.rbi +1 -1
  134. data/sig/increase/models/account_create_params.rbs +20 -12
  135. data/sig/increase/models/card_dispute.rbs +5 -0
  136. data/sig/increase/models/card_purchase_supplement.rbs +5 -0
  137. data/sig/increase/models/declined_transaction.rbs +4 -0
  138. data/sig/increase/models/digital_wallet_token.rbs +5 -0
  139. data/sig/increase/models/entity.rbs +230 -4
  140. data/sig/increase/models/entity_create_params.rbs +232 -1
  141. data/sig/increase/models/entity_update_params.rbs +366 -0
  142. data/sig/increase/models/event.rbs +4 -0
  143. data/sig/increase/models/event_list_params.rbs +4 -0
  144. data/sig/increase/models/event_subscription.rbs +4 -0
  145. data/sig/increase/models/event_subscription_create_params.rbs +4 -0
  146. data/sig/increase/models/fednow_transfer.rbs +113 -4
  147. data/sig/increase/models/fednow_transfer_list_params.rbs +4 -4
  148. data/sig/increase/models/inbound_fednow_transfer.rbs +14 -0
  149. data/sig/increase/models/inbound_mail_item.rbs +5 -0
  150. data/sig/increase/models/inbound_wire_drawdown_request.rbs +5 -0
  151. data/sig/increase/models/pending_transaction.rbs +1 -1
  152. data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
  153. data/sig/increase/models/physical_card.rbs +5 -0
  154. data/sig/increase/models/simulations/entity_update_validation_params.rbs +3 -3
  155. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
  156. data/sig/increase/models/simulations/program_create_params.rbs +7 -0
  157. data/sig/increase/models/transaction.rbs +113 -0
  158. data/sig/increase/models/transaction_list_params.rbs +4 -0
  159. data/sig/increase/models/unwrap_webhook_event.rbs +4 -0
  160. data/sig/increase/models/wire_drawdown_request.rbs +5 -0
  161. data/sig/increase/resources/entities.rbs +2 -0
  162. data/sig/increase/resources/simulations/programs.rbs +1 -0
  163. metadata +2 -2
@@ -735,6 +735,13 @@ module Increase
735
735
  Increase::Event::Category::TaggedSymbol
736
736
  )
737
737
 
738
+ # Occurs whenever a Plaid Processor Token is created.
739
+ PLAID_PROCESSOR_TOKEN_CREATED =
740
+ T.let(
741
+ :"plaid_processor_token.created",
742
+ Increase::Event::Category::TaggedSymbol
743
+ )
744
+
738
745
  # Occurs whenever a Checkbook is created.
739
746
  CHECKBOOK_CREATED =
740
747
  T.let(:"checkbook.created", Increase::Event::Category::TaggedSymbol)
@@ -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(
@@ -118,6 +118,12 @@ module Increase
118
118
  end
119
119
  attr_writer :rejection
120
120
 
121
+ # If the transfer is returned by the recipient's bank, this will contain details
122
+ # of each return. FedNow allows returning part of a transfer, so a transfer can be
123
+ # returned more than once.
124
+ sig { returns(T::Array[Increase::FednowTransfer::Return]) }
125
+ attr_accessor :returns
126
+
121
127
  # The destination American Bankers' Association (ABA) Routing Transit Number
122
128
  # (RTN).
123
129
  sig { returns(String) }
@@ -185,6 +191,7 @@ module Increase
185
191
  idempotency_key: T.nilable(String),
186
192
  pending_transaction_id: T.nilable(String),
187
193
  rejection: T.nilable(Increase::FednowTransfer::Rejection::OrHash),
194
+ returns: T::Array[Increase::FednowTransfer::Return::OrHash],
188
195
  routing_number: String,
189
196
  source_account_number_id: String,
190
197
  status: Increase::FednowTransfer::Status::OrSymbol,
@@ -236,6 +243,10 @@ module Increase
236
243
  # If the transfer is rejected by FedNow or the destination financial institution,
237
244
  # this will contain supplemental details.
238
245
  rejection:,
246
+ # If the transfer is returned by the recipient's bank, this will contain details
247
+ # of each return. FedNow allows returning part of a transfer, so a transfer can be
248
+ # returned more than once.
249
+ returns:,
239
250
  # The destination American Bankers' Association (ABA) Routing Transit Number
240
251
  # (RTN).
241
252
  routing_number:,
@@ -281,6 +292,7 @@ module Increase
281
292
  idempotency_key: T.nilable(String),
282
293
  pending_transaction_id: T.nilable(String),
283
294
  rejection: T.nilable(Increase::FednowTransfer::Rejection),
295
+ returns: T::Array[Increase::FednowTransfer::Return],
284
296
  routing_number: String,
285
297
  source_account_number_id: String,
286
298
  status: Increase::FednowTransfer::Status::TaggedSymbol,
@@ -877,6 +889,203 @@ module Increase
877
889
  end
878
890
  end
879
891
 
892
+ class Return < Increase::Internal::Type::BaseModel
893
+ OrHash =
894
+ T.type_alias do
895
+ T.any(Increase::FednowTransfer::Return, Increase::Internal::AnyHash)
896
+ end
897
+
898
+ # The returned amount in USD cents. This is always a positive number.
899
+ sig { returns(Integer) }
900
+ attr_accessor :amount
901
+
902
+ # Additional information about the return provided by the recipient's bank.
903
+ sig { returns(T.nilable(String)) }
904
+ attr_accessor :return_reason_additional_information
905
+
906
+ # The reason the transfer was returned as provided by the recipient's bank.
907
+ sig do
908
+ returns(
909
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
910
+ )
911
+ end
912
+ attr_accessor :return_reason_code
913
+
914
+ # The identifier of the FedNow Transfer that led to this Transaction.
915
+ sig { returns(String) }
916
+ attr_accessor :transfer_id
917
+
918
+ # A FedNow Transfer Return is created when a FedNow Transfer sent from Increase is
919
+ # returned by the recipient's bank.
920
+ sig do
921
+ params(
922
+ amount: Integer,
923
+ return_reason_additional_information: T.nilable(String),
924
+ return_reason_code:
925
+ Increase::FednowTransfer::Return::ReturnReasonCode::OrSymbol,
926
+ transfer_id: String
927
+ ).returns(T.attached_class)
928
+ end
929
+ def self.new(
930
+ # The returned amount in USD cents. This is always a positive number.
931
+ amount:,
932
+ # Additional information about the return provided by the recipient's bank.
933
+ return_reason_additional_information:,
934
+ # The reason the transfer was returned as provided by the recipient's bank.
935
+ return_reason_code:,
936
+ # The identifier of the FedNow Transfer that led to this Transaction.
937
+ transfer_id:
938
+ )
939
+ end
940
+
941
+ sig do
942
+ override.returns(
943
+ {
944
+ amount: Integer,
945
+ return_reason_additional_information: T.nilable(String),
946
+ return_reason_code:
947
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol,
948
+ transfer_id: String
949
+ }
950
+ )
951
+ end
952
+ def to_hash
953
+ end
954
+
955
+ # The reason the transfer was returned as provided by the recipient's bank.
956
+ module ReturnReasonCode
957
+ extend Increase::Internal::Type::Enum
958
+
959
+ TaggedSymbol =
960
+ T.type_alias do
961
+ T.all(Symbol, Increase::FednowTransfer::Return::ReturnReasonCode)
962
+ end
963
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
964
+
965
+ # The destination account is closed. Corresponds to the FedNow reason codes `AC04` and `AC07`.
966
+ ACCOUNT_CLOSED =
967
+ T.let(
968
+ :account_closed,
969
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
970
+ )
971
+
972
+ # The destination account is currently blocked from receiving transactions. Corresponds to the FedNow reason code `AC06`.
973
+ ACCOUNT_BLOCKED =
974
+ T.let(
975
+ :account_blocked,
976
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
977
+ )
978
+
979
+ # The recipient's bank was not a valid agent for this transfer. Corresponds to the FedNow reason codes `AC14` and `AGNT`.
980
+ INVALID_AGENT =
981
+ T.let(
982
+ :invalid_agent,
983
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
984
+ )
985
+
986
+ # The destination account does not exist. Corresponds to the FedNow reason code `AC03`.
987
+ INVALID_CREDITOR_ACCOUNT_NUMBER =
988
+ T.let(
989
+ :invalid_creditor_account_number,
990
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
991
+ )
992
+
993
+ # The destination account number was incorrect. Corresponds to the FedNow reason code `AC01`.
994
+ INCORRECT_ACCOUNT_NUMBER =
995
+ T.let(
996
+ :incorrect_account_number,
997
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
998
+ )
999
+
1000
+ # The destination account holder is deceased. Corresponds to the FedNow reason code `MD07`.
1001
+ END_CUSTOMER_DECEASED =
1002
+ T.let(
1003
+ :end_customer_deceased,
1004
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1005
+ )
1006
+
1007
+ # The transfer was not permitted by the recipient's bank. Corresponds to the FedNow reason code `AG01`.
1008
+ TRANSACTION_FORBIDDEN =
1009
+ T.let(
1010
+ :transaction_forbidden,
1011
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1012
+ )
1013
+
1014
+ # The transfer was returned for a regulatory reason at the recipient's bank. Corresponds to the FedNow reason code `RR04`.
1015
+ REGULATORY_REASON =
1016
+ T.let(
1017
+ :regulatory_reason,
1018
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1019
+ )
1020
+
1021
+ # The transfer was reported as fraudulent. Corresponds to the FedNow reason code `FR01`.
1022
+ FRAUD =
1023
+ T.let(
1024
+ :fraud,
1025
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1026
+ )
1027
+
1028
+ # The transfer duplicated another transfer. Corresponds to the FedNow reason codes `AM05` and `DUPL`.
1029
+ DUPLICATION =
1030
+ T.let(
1031
+ :duplication,
1032
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1033
+ )
1034
+
1035
+ # The transfer amount was incorrect. Corresponds to the FedNow reason code `AM09`.
1036
+ WRONG_AMOUNT =
1037
+ T.let(
1038
+ :wrong_amount,
1039
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1040
+ )
1041
+
1042
+ # The transfer was returned at the request of the recipient's customer. Corresponds to the FedNow reason code `CUST`.
1043
+ REQUESTED_BY_CUSTOMER =
1044
+ T.let(
1045
+ :requested_by_customer,
1046
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1047
+ )
1048
+
1049
+ # The recipient's bank could not apply the funds. Corresponds to the FedNow reason code `RUTA`.
1050
+ UNABLE_TO_APPLY =
1051
+ T.let(
1052
+ :unable_to_apply,
1053
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1054
+ )
1055
+
1056
+ # The recipient's bank did not specify a reason. Corresponds to the FedNow reason codes `MS02` and `MS03`.
1057
+ NOT_SPECIFIED =
1058
+ T.let(
1059
+ :not_specified,
1060
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1061
+ )
1062
+
1063
+ # The reason is provided as narrative information in the additional information field. Corresponds to the FedNow reason code `NARR`.
1064
+ NARRATIVE =
1065
+ T.let(
1066
+ :narrative,
1067
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1068
+ )
1069
+
1070
+ # The transfer was returned for some other reason.
1071
+ OTHER =
1072
+ T.let(
1073
+ :other,
1074
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1075
+ )
1076
+
1077
+ sig do
1078
+ override.returns(
1079
+ T::Array[
1080
+ Increase::FednowTransfer::Return::ReturnReasonCode::TaggedSymbol
1081
+ ]
1082
+ )
1083
+ end
1084
+ def self.values
1085
+ end
1086
+ end
1087
+ end
1088
+
880
1089
  # The lifecycle status of the transfer.
881
1090
  module Status
882
1091
  extend Increase::Internal::Type::Enum
@@ -903,13 +1112,6 @@ module Increase
903
1112
  CANCELED =
904
1113
  T.let(:canceled, Increase::FednowTransfer::Status::TaggedSymbol)
905
1114
 
906
- # The transfer has been rejected by Increase.
907
- REVIEWING_REJECTED =
908
- T.let(
909
- :reviewing_rejected,
910
- Increase::FednowTransfer::Status::TaggedSymbol
911
- )
912
-
913
1115
  # The transfer requires attention from an Increase operator.
914
1116
  REQUIRES_ATTENTION =
915
1117
  T.let(
@@ -939,6 +1141,10 @@ module Increase
939
1141
  REJECTED =
940
1142
  T.let(:rejected, Increase::FednowTransfer::Status::TaggedSymbol)
941
1143
 
1144
+ # The transfer was returned by the recipient's bank.
1145
+ RETURNED =
1146
+ T.let(:returned, Increase::FednowTransfer::Status::TaggedSymbol)
1147
+
942
1148
  sig do
943
1149
  override.returns(
944
1150
  T::Array[Increase::FednowTransfer::Status::TaggedSymbol]
@@ -280,13 +280,6 @@ module Increase
280
280
  Increase::FednowTransferListParams::Status::In::TaggedSymbol
281
281
  )
282
282
 
283
- # The transfer has been rejected by Increase.
284
- REVIEWING_REJECTED =
285
- T.let(
286
- :reviewing_rejected,
287
- Increase::FednowTransferListParams::Status::In::TaggedSymbol
288
- )
289
-
290
283
  # The transfer requires attention from an Increase operator.
291
284
  REQUIRES_ATTENTION =
292
285
  T.let(
@@ -322,6 +315,13 @@ module Increase
322
315
  Increase::FednowTransferListParams::Status::In::TaggedSymbol
323
316
  )
324
317
 
318
+ # The transfer was returned by the recipient's bank.
319
+ RETURNED =
320
+ T.let(
321
+ :returned,
322
+ Increase::FednowTransferListParams::Status::In::TaggedSymbol
323
+ )
324
+
325
325
  sig do
326
326
  override.returns(
327
327
  T::Array[
@@ -130,7 +130,7 @@ module Increase
130
130
  sig { returns(String) }
131
131
  attr_accessor :originator_company_name
132
132
 
133
- # The American Banking Association (ABA) routing number of the bank originating
133
+ # The American Bankers' Association (ABA) routing number of the bank originating
134
134
  # the transfer.
135
135
  sig { returns(String) }
136
136
  attr_accessor :originator_routing_number
@@ -274,7 +274,7 @@ module Increase
274
274
  originator_company_id:,
275
275
  # The name of the company that initiated the transfer.
276
276
  originator_company_name:,
277
- # The American Banking Association (ABA) routing number of the bank originating
277
+ # The American Bankers' Association (ABA) routing number of the bank originating
278
278
  # the transfer.
279
279
  originator_routing_number:,
280
280
  # The id of the receiver of the transfer.
@@ -47,7 +47,7 @@ module Increase
47
47
 
48
48
  # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
49
49
  # bank depositing this check. In some rare cases, this is not transmitted via
50
- # Check21 and the value will be null.
50
+ # Check 21 and the value will be null.
51
51
  sig { returns(T.nilable(String)) }
52
52
  attr_accessor :bank_of_first_deposit_routing_number
53
53
 
@@ -172,7 +172,7 @@ module Increase
172
172
  back_image_file_id:,
173
173
  # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
174
174
  # bank depositing this check. In some rare cases, this is not transmitted via
175
- # Check21 and the value will be null.
175
+ # Check 21 and the value will be null.
176
176
  bank_of_first_deposit_routing_number:,
177
177
  # The check number printed on the check being deposited.
178
178
  check_number:,
@@ -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)
@@ -342,6 +358,13 @@ module Increase
342
358
  Increase::InboundFednowTransfer::Decline::Reason::TaggedSymbol
343
359
  )
344
360
 
361
+ # The transaction is not allowed per Increase's terms.
362
+ TRANSACTION_NOT_ALLOWED =
363
+ T.let(
364
+ :transaction_not_allowed,
365
+ Increase::InboundFednowTransfer::Decline::Reason::TaggedSymbol
366
+ )
367
+
345
368
  sig do
346
369
  override.returns(
347
370
  T::Array[
@@ -12,6 +12,12 @@ module Increase
12
12
  sig { returns(String) }
13
13
  attr_accessor :id
14
14
 
15
+ # The identifier for the Account that checks in this mail item are deposited into.
16
+ # For mail items that could not be routed to a Lockbox Recipient, this will be
17
+ # null.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_accessor :account_id
20
+
15
21
  # The checks in the mail item.
16
22
  sig { returns(T::Array[Increase::InboundMailItem::Check]) }
17
23
  attr_accessor :checks
@@ -62,6 +68,7 @@ module Increase
62
68
  sig do
63
69
  params(
64
70
  id: String,
71
+ account_id: T.nilable(String),
65
72
  checks: T::Array[Increase::InboundMailItem::Check::OrHash],
66
73
  created_at: Time,
67
74
  file_id: String,
@@ -77,6 +84,10 @@ module Increase
77
84
  def self.new(
78
85
  # The Inbound Mail Item identifier.
79
86
  id:,
87
+ # The identifier for the Account that checks in this mail item are deposited into.
88
+ # For mail items that could not be routed to a Lockbox Recipient, this will be
89
+ # null.
90
+ account_id:,
80
91
  # The checks in the mail item.
81
92
  checks:,
82
93
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Inbound
@@ -105,6 +116,7 @@ module Increase
105
116
  override.returns(
106
117
  {
107
118
  id: String,
119
+ account_id: T.nilable(String),
108
120
  checks: T::Array[Increase::InboundMailItem::Check],
109
121
  created_at: Time,
110
122
  file_id: String,
@@ -15,6 +15,11 @@ module Increase
15
15
  sig { returns(String) }
16
16
  attr_accessor :id
17
17
 
18
+ # The Account from which the recipient of this request is being requested to send
19
+ # funds.
20
+ sig { returns(String) }
21
+ attr_accessor :account_id
22
+
18
23
  # The amount being requested in cents.
19
24
  sig { returns(Integer) }
20
25
  attr_accessor :amount
@@ -110,6 +115,7 @@ module Increase
110
115
  sig do
111
116
  params(
112
117
  id: String,
118
+ account_id: String,
113
119
  amount: Integer,
114
120
  created_at: Time,
115
121
  creditor_account_number: String,
@@ -135,6 +141,9 @@ module Increase
135
141
  def self.new(
136
142
  # The Wire drawdown request identifier.
137
143
  id:,
144
+ # The Account from which the recipient of this request is being requested to send
145
+ # funds.
146
+ account_id:,
138
147
  # The amount being requested in cents.
139
148
  amount:,
140
149
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -191,6 +200,7 @@ module Increase
191
200
  override.returns(
192
201
  {
193
202
  id: String,
203
+ account_id: String,
194
204
  amount: Integer,
195
205
  created_at: Time,
196
206
  creditor_account_number: String,
@@ -77,7 +77,7 @@ module Increase
77
77
  sig { returns(T.nilable(String)) }
78
78
  attr_accessor :debtor_name
79
79
 
80
- # The American Banking Association (ABA) routing number of the sender.
80
+ # The American Bankers' Association (ABA) routing number of the sender.
81
81
  sig { returns(T.nilable(String)) }
82
82
  attr_accessor :debtor_routing_number
83
83
 
@@ -95,7 +95,7 @@ module Increase
95
95
  sig { returns(T.nilable(String)) }
96
96
  attr_accessor :input_message_accountability_data
97
97
 
98
- # The American Banking Association (ABA) routing number of the bank that sent the
98
+ # The American Bankers' Association (ABA) routing number of the bank that sent the
99
99
  # wire.
100
100
  sig { returns(T.nilable(String)) }
101
101
  attr_accessor :instructing_agent_routing_number
@@ -209,7 +209,7 @@ module Increase
209
209
  debtor_address_line3:,
210
210
  # A name set by the sender.
211
211
  debtor_name:,
212
- # The American Banking Association (ABA) routing number of the sender.
212
+ # The American Bankers' Association (ABA) routing number of the sender.
213
213
  debtor_routing_number:,
214
214
  # An Increase-constructed description of the transfer.
215
215
  description:,
@@ -219,7 +219,7 @@ module Increase
219
219
  # abbreviated as IMAD. It is created when the wire is submitted to the Fedwire
220
220
  # service and is helpful when debugging wires with the originating bank.
221
221
  input_message_accountability_data:,
222
- # The American Banking Association (ABA) routing number of the bank that sent the
222
+ # The American Bankers' Association (ABA) routing number of the bank that sent the
223
223
  # wire.
224
224
  instructing_agent_routing_number:,
225
225
  # The sending bank's identifier for the wire transfer.
@@ -25,7 +25,7 @@ module Increase
25
25
  sig { returns(String) }
26
26
  attr_accessor :entity_id
27
27
 
28
- # When this was exclusion was confirmed by IntraFi.
28
+ # When this exclusion was confirmed by IntraFi.
29
29
  sig { returns(T.nilable(Time)) }
30
30
  attr_accessor :excluded_at
31
31
 
@@ -44,7 +44,7 @@ module Increase
44
44
  sig { returns(Increase::IntrafiExclusion::Status::TaggedSymbol) }
45
45
  attr_accessor :status
46
46
 
47
- # When this was exclusion was submitted to IntraFi by Increase.
47
+ # When this exclusion was submitted to IntraFi by Increase.
48
48
  sig { returns(T.nilable(Time)) }
49
49
  attr_accessor :submitted_at
50
50
 
@@ -81,7 +81,7 @@ module Increase
81
81
  created_at:,
82
82
  # The entity for which this institution is excluded.
83
83
  entity_id:,
84
- # When this was exclusion was confirmed by IntraFi.
84
+ # When this exclusion was confirmed by IntraFi.
85
85
  excluded_at:,
86
86
  # The Federal Deposit Insurance Corporation's certificate number for the
87
87
  # institution.
@@ -92,7 +92,7 @@ module Increase
92
92
  idempotency_key:,
93
93
  # The status of the exclusion request.
94
94
  status:,
95
- # When this was exclusion was submitted to IntraFi by Increase.
95
+ # When this exclusion was submitted to IntraFi by Increase.
96
96
  submitted_at:,
97
97
  # A constant representing the object's type. For this resource it will always be
98
98
  # `intrafi_exclusion`.
@@ -30,7 +30,7 @@ module Increase
30
30
  sig { params(description: String).void }
31
31
  attr_writer :description
32
32
 
33
- # The name of the Lockbox Recipient
33
+ # The name of the Lockbox Recipient.
34
34
  sig { returns(T.nilable(String)) }
35
35
  attr_reader :recipient_name
36
36
 
@@ -54,7 +54,7 @@ module Increase
54
54
  lockbox_address_id:,
55
55
  # The description you choose for the Lockbox Recipient.
56
56
  description: nil,
57
- # The name of the Lockbox Recipient
57
+ # The name of the Lockbox Recipient.
58
58
  recipient_name: nil,
59
59
  request_options: {}
60
60
  )