increase 1.203.0 → 1.204.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/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/account_transfer.rb +25 -25
  5. data/lib/increase/models/ach_transfer.rb +28 -28
  6. data/lib/increase/models/card_dispute.rb +79 -79
  7. data/lib/increase/models/card_payment.rb +82 -82
  8. data/lib/increase/models/card_push_transfer.rb +25 -25
  9. data/lib/increase/models/card_validation.rb +25 -25
  10. data/lib/increase/models/check_transfer.rb +25 -25
  11. data/lib/increase/models/declined_transaction.rb +53 -53
  12. data/lib/increase/models/fednow_transfer.rb +25 -25
  13. data/lib/increase/models/pending_transaction.rb +85 -85
  14. data/lib/increase/models/real_time_payments_transfer.rb +25 -25
  15. data/lib/increase/models/swift_transfer.rb +25 -25
  16. data/lib/increase/models/transaction.rb +173 -173
  17. data/lib/increase/models/wire_transfer.rb +28 -28
  18. data/lib/increase/version.rb +1 -1
  19. data/rbi/increase/models/account_transfer.rbi +40 -40
  20. data/rbi/increase/models/ach_transfer.rbi +42 -42
  21. data/rbi/increase/models/card_dispute.rbi +141 -141
  22. data/rbi/increase/models/card_payment.rbi +144 -144
  23. data/rbi/increase/models/card_push_transfer.rbi +40 -40
  24. data/rbi/increase/models/card_validation.rbi +40 -40
  25. data/rbi/increase/models/check_transfer.rbi +40 -40
  26. data/rbi/increase/models/declined_transaction.rbi +99 -99
  27. data/rbi/increase/models/fednow_transfer.rbi +40 -40
  28. data/rbi/increase/models/pending_transaction.rbi +163 -163
  29. data/rbi/increase/models/real_time_payments_transfer.rbi +44 -44
  30. data/rbi/increase/models/swift_transfer.rbi +40 -40
  31. data/rbi/increase/models/transaction.rbi +534 -534
  32. data/rbi/increase/models/wire_transfer.rbi +42 -42
  33. data/sig/increase/models/account_transfer.rbs +17 -17
  34. data/sig/increase/models/ach_transfer.rbs +19 -19
  35. data/sig/increase/models/card_dispute.rbs +56 -56
  36. data/sig/increase/models/card_payment.rbs +81 -81
  37. data/sig/increase/models/card_push_transfer.rbs +17 -17
  38. data/sig/increase/models/card_validation.rbs +17 -17
  39. data/sig/increase/models/check_transfer.rbs +17 -17
  40. data/sig/increase/models/declined_transaction.rbs +52 -52
  41. data/sig/increase/models/fednow_transfer.rbs +17 -17
  42. data/sig/increase/models/pending_transaction.rbs +92 -92
  43. data/sig/increase/models/real_time_payments_transfer.rbs +17 -17
  44. data/sig/increase/models/swift_transfer.rbs +17 -17
  45. data/sig/increase/models/transaction.rbs +202 -202
  46. data/sig/increase/models/wire_transfer.rbs +19 -19
  47. metadata +2 -2
@@ -190,6 +190,11 @@ module Increase
190
190
  T.any(Increase::Transaction::Source, Increase::Internal::AnyHash)
191
191
  end
192
192
 
193
+ # The type of the resource. We may add additional possible values for this enum
194
+ # over time; your application should be able to handle such additions gracefully.
195
+ sig { returns(Increase::Transaction::Source::Category::TaggedSymbol) }
196
+ attr_accessor :category
197
+
193
198
  # An Account Revenue Payment object. This field will be present in the JSON
194
199
  # response if and only if `category` is equal to `account_revenue_payment`. An
195
200
  # Account Revenue Payment represents a payment made to an account from the bank.
@@ -499,11 +504,6 @@ module Increase
499
504
  end
500
505
  attr_writer :cashback_payment
501
506
 
502
- # The type of the resource. We may add additional possible values for this enum
503
- # over time; your application should be able to handle such additions gracefully.
504
- sig { returns(Increase::Transaction::Source::Category::TaggedSymbol) }
505
- attr_accessor :category
506
-
507
507
  # A Check Deposit Acceptance object. This field will be present in the JSON
508
508
  # response if and only if `category` is equal to `check_deposit_acceptance`. A
509
509
  # Check Deposit Acceptance is created when a Check Deposit is processed and its
@@ -951,6 +951,7 @@ module Increase
951
951
  # deprecated and will be removed in the future.
952
952
  sig do
953
953
  params(
954
+ category: Increase::Transaction::Source::Category::OrSymbol,
954
955
  account_revenue_payment:
955
956
  T.nilable(
956
957
  Increase::Transaction::Source::AccountRevenuePayment::OrHash
@@ -1005,7 +1006,6 @@ module Increase
1005
1006
  T.nilable(Increase::Transaction::Source::CardSettlement::OrHash),
1006
1007
  cashback_payment:
1007
1008
  T.nilable(Increase::Transaction::Source::CashbackPayment::OrHash),
1008
- category: Increase::Transaction::Source::Category::OrSymbol,
1009
1009
  check_deposit_acceptance:
1010
1010
  T.nilable(
1011
1011
  Increase::Transaction::Source::CheckDepositAcceptance::OrHash
@@ -1086,204 +1086,205 @@ module Increase
1086
1086
  ).returns(T.attached_class)
1087
1087
  end
1088
1088
  def self.new(
1089
+ # The type of the resource. We may add additional possible values for this enum
1090
+ # over time; your application should be able to handle such additions gracefully.
1091
+ category:,
1089
1092
  # An Account Revenue Payment object. This field will be present in the JSON
1090
1093
  # response if and only if `category` is equal to `account_revenue_payment`. An
1091
1094
  # Account Revenue Payment represents a payment made to an account from the bank.
1092
1095
  # Account revenue is a type of non-interest income.
1093
- account_revenue_payment:,
1096
+ account_revenue_payment: nil,
1094
1097
  # An Account Transfer Intention object. This field will be present in the JSON
1095
1098
  # response if and only if `category` is equal to `account_transfer_intention`. Two
1096
1099
  # Account Transfer Intentions are created from each Account Transfer. One
1097
1100
  # decrements the source account, and the other increments the destination account.
1098
- account_transfer_intention:,
1101
+ account_transfer_intention: nil,
1099
1102
  # An ACH Transfer Intention object. This field will be present in the JSON
1100
1103
  # response if and only if `category` is equal to `ach_transfer_intention`. An ACH
1101
1104
  # Transfer Intention is created from an ACH Transfer. It reflects the intention to
1102
1105
  # move money into or out of an Increase account via the ACH network.
1103
- ach_transfer_intention:,
1106
+ ach_transfer_intention: nil,
1104
1107
  # An ACH Transfer Rejection object. This field will be present in the JSON
1105
1108
  # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH
1106
1109
  # Transfer Rejection is created when an ACH Transfer is rejected by Increase. It
1107
1110
  # offsets the ACH Transfer Intention. These rejections are rare.
1108
- ach_transfer_rejection:,
1111
+ ach_transfer_rejection: nil,
1109
1112
  # An ACH Transfer Return object. This field will be present in the JSON response
1110
1113
  # if and only if `category` is equal to `ach_transfer_return`. An ACH Transfer
1111
1114
  # Return is created when an ACH Transfer is returned by the receiving bank. It
1112
1115
  # offsets the ACH Transfer Intention. ACH Transfer Returns usually occur within
1113
1116
  # the first two business days after the transfer is initiated, but can occur much
1114
1117
  # later.
1115
- ach_transfer_return:,
1118
+ ach_transfer_return: nil,
1116
1119
  # A Blockchain Off-Ramp Transfer Settlement object. This field will be present in
1117
1120
  # the JSON response if and only if `category` is equal to
1118
1121
  # `blockchain_offramp_transfer_settlement`.
1119
- blockchain_offramp_transfer_settlement:,
1122
+ blockchain_offramp_transfer_settlement: nil,
1120
1123
  # A Blockchain On-Ramp Transfer Intention object. This field will be present in
1121
1124
  # the JSON response if and only if `category` is equal to
1122
1125
  # `blockchain_onramp_transfer_intention`.
1123
- blockchain_onramp_transfer_intention:,
1126
+ blockchain_onramp_transfer_intention: nil,
1124
1127
  # A Legacy Card Dispute Acceptance object. This field will be present in the JSON
1125
1128
  # response if and only if `category` is equal to `card_dispute_acceptance`.
1126
1129
  # Contains the details of a successful Card Dispute.
1127
- card_dispute_acceptance:,
1130
+ card_dispute_acceptance: nil,
1128
1131
  # A Card Dispute Financial object. This field will be present in the JSON response
1129
1132
  # if and only if `category` is equal to `card_dispute_financial`. Financial event
1130
1133
  # related to a Card Dispute.
1131
- card_dispute_financial:,
1134
+ card_dispute_financial: nil,
1132
1135
  # A Legacy Card Dispute Loss object. This field will be present in the JSON
1133
1136
  # response if and only if `category` is equal to `card_dispute_loss`. Contains the
1134
1137
  # details of a lost Card Dispute.
1135
- card_dispute_loss:,
1138
+ card_dispute_loss: nil,
1136
1139
  # A Card Financial object. This field will be present in the JSON response if and
1137
1140
  # only if `category` is equal to `card_financial`. Card Financials are temporary
1138
1141
  # holds placed on a customers funds with the intent to later clear a transaction.
1139
- card_financial:,
1142
+ card_financial: nil,
1140
1143
  # A Card Push Transfer Acceptance object. This field will be present in the JSON
1141
1144
  # response if and only if `category` is equal to `card_push_transfer_acceptance`.
1142
1145
  # A Card Push Transfer Acceptance is created when an Outbound Card Push Transfer
1143
1146
  # sent from Increase is accepted by the receiving bank.
1144
- card_push_transfer_acceptance:,
1147
+ card_push_transfer_acceptance: nil,
1145
1148
  # A Card Refund object. This field will be present in the JSON response if and
1146
1149
  # only if `category` is equal to `card_refund`. Card Refunds move money back to
1147
1150
  # the cardholder. While they are usually connected to a Card Settlement an
1148
1151
  # acquirer can also refund money directly to a card without relation to a
1149
1152
  # transaction.
1150
- card_refund:,
1153
+ card_refund: nil,
1151
1154
  # A Card Revenue Payment object. This field will be present in the JSON response
1152
1155
  # if and only if `category` is equal to `card_revenue_payment`. Card Revenue
1153
1156
  # Payments reflect earnings from fees on card transactions.
1154
- card_revenue_payment:,
1157
+ card_revenue_payment: nil,
1155
1158
  # A Card Settlement object. This field will be present in the JSON response if and
1156
1159
  # only if `category` is equal to `card_settlement`. Card Settlements are card
1157
1160
  # transactions that have cleared and settled. While a settlement is usually
1158
1161
  # preceded by an authorization, an acquirer can also directly clear a transaction
1159
1162
  # without first authorizing it.
1160
- card_settlement:,
1163
+ card_settlement: nil,
1161
1164
  # A Cashback Payment object. This field will be present in the JSON response if
1162
1165
  # and only if `category` is equal to `cashback_payment`. A Cashback Payment
1163
1166
  # represents the cashback paid to a cardholder for a given period. Cashback is
1164
1167
  # usually paid monthly for the prior month's transactions.
1165
- cashback_payment:,
1166
- # The type of the resource. We may add additional possible values for this enum
1167
- # over time; your application should be able to handle such additions gracefully.
1168
- category:,
1168
+ cashback_payment: nil,
1169
1169
  # A Check Deposit Acceptance object. This field will be present in the JSON
1170
1170
  # response if and only if `category` is equal to `check_deposit_acceptance`. A
1171
1171
  # Check Deposit Acceptance is created when a Check Deposit is processed and its
1172
1172
  # details confirmed. Check Deposits may be returned by the receiving bank, which
1173
1173
  # will appear as a Check Deposit Return.
1174
- check_deposit_acceptance:,
1174
+ check_deposit_acceptance: nil,
1175
1175
  # A Check Deposit Return object. This field will be present in the JSON response
1176
1176
  # if and only if `category` is equal to `check_deposit_return`. A Check Deposit
1177
1177
  # Return is created when a Check Deposit is returned by the bank holding the
1178
1178
  # account it was drawn against. Check Deposits may be returned for a variety of
1179
1179
  # reasons, including insufficient funds or a mismatched account number. Usually,
1180
1180
  # checks are returned within the first 7 days after the deposit is made.
1181
- check_deposit_return:,
1181
+ check_deposit_return: nil,
1182
1182
  # A Check Transfer Deposit object. This field will be present in the JSON response
1183
1183
  # if and only if `category` is equal to `check_transfer_deposit`. An Inbound Check
1184
1184
  # is a check drawn on an Increase account that has been deposited by an external
1185
1185
  # bank account. These types of checks are not pre-registered.
1186
- check_transfer_deposit:,
1186
+ check_transfer_deposit: nil,
1187
1187
  # A FedNow Transfer Acknowledgement object. This field will be present in the JSON
1188
1188
  # response if and only if `category` is equal to
1189
1189
  # `fednow_transfer_acknowledgement`. A FedNow Transfer Acknowledgement is created
1190
1190
  # when a FedNow Transfer sent from Increase is acknowledged by the receiving bank.
1191
- fednow_transfer_acknowledgement:,
1191
+ fednow_transfer_acknowledgement: nil,
1192
1192
  # A Fee Payment object. This field will be present in the JSON response if and
1193
1193
  # only if `category` is equal to `fee_payment`. A Fee Payment represents a payment
1194
1194
  # made to Increase.
1195
- fee_payment:,
1195
+ fee_payment: nil,
1196
1196
  # An Inbound ACH Transfer Intention object. This field will be present in the JSON
1197
1197
  # response if and only if `category` is equal to `inbound_ach_transfer`. An
1198
1198
  # Inbound ACH Transfer Intention is created when an ACH transfer is initiated at
1199
1199
  # another bank and received by Increase.
1200
- inbound_ach_transfer:,
1200
+ inbound_ach_transfer: nil,
1201
1201
  # An Inbound ACH Transfer Return Intention object. This field will be present in
1202
1202
  # the JSON response if and only if `category` is equal to
1203
1203
  # `inbound_ach_transfer_return_intention`. An Inbound ACH Transfer Return
1204
1204
  # Intention is created when an ACH transfer is initiated at another bank and
1205
1205
  # returned by Increase.
1206
- inbound_ach_transfer_return_intention:,
1206
+ inbound_ach_transfer_return_intention: nil,
1207
1207
  # An Inbound Check Adjustment object. This field will be present in the JSON
1208
1208
  # response if and only if `category` is equal to `inbound_check_adjustment`. An
1209
1209
  # Inbound Check Adjustment is created when Increase receives an adjustment for a
1210
1210
  # check or return deposited through Check21.
1211
- inbound_check_adjustment:,
1211
+ inbound_check_adjustment: nil,
1212
1212
  # An Inbound Check Deposit Return Intention object. This field will be present in
1213
1213
  # the JSON response if and only if `category` is equal to
1214
1214
  # `inbound_check_deposit_return_intention`. An Inbound Check Deposit Return
1215
1215
  # Intention is created when Increase receives an Inbound Check and the User
1216
1216
  # requests that it be returned.
1217
- inbound_check_deposit_return_intention:,
1217
+ inbound_check_deposit_return_intention: nil,
1218
1218
  # An Inbound FedNow Transfer Confirmation object. This field will be present in
1219
1219
  # the JSON response if and only if `category` is equal to
1220
1220
  # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
1221
1221
  # is created when a FedNow transfer is initiated at another bank and received by
1222
1222
  # Increase.
1223
- inbound_fednow_transfer_confirmation:,
1223
+ inbound_fednow_transfer_confirmation: nil,
1224
1224
  # An Inbound Real-Time Payments Transfer Confirmation object. This field will be
1225
1225
  # present in the JSON response if and only if `category` is equal to
1226
1226
  # `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time
1227
1227
  # Payments Transfer Confirmation is created when a Real-Time Payments transfer is
1228
1228
  # initiated at another bank and received by Increase.
1229
- inbound_real_time_payments_transfer_confirmation:,
1229
+ inbound_real_time_payments_transfer_confirmation: nil,
1230
1230
  # An Inbound Wire Reversal object. This field will be present in the JSON response
1231
1231
  # if and only if `category` is equal to `inbound_wire_reversal`. An Inbound Wire
1232
1232
  # Reversal represents a reversal of a wire transfer that was initiated via
1233
1233
  # Increase. The other bank is sending the money back. This most often happens when
1234
1234
  # the original destination account details were incorrect.
1235
- inbound_wire_reversal:,
1235
+ inbound_wire_reversal: nil,
1236
1236
  # An Inbound Wire Transfer Intention object. This field will be present in the
1237
1237
  # JSON response if and only if `category` is equal to `inbound_wire_transfer`. An
1238
1238
  # Inbound Wire Transfer Intention is created when a wire transfer is initiated at
1239
1239
  # another bank and received by Increase.
1240
- inbound_wire_transfer:,
1240
+ inbound_wire_transfer: nil,
1241
1241
  # An Inbound Wire Transfer Reversal Intention object. This field will be present
1242
1242
  # in the JSON response if and only if `category` is equal to
1243
1243
  # `inbound_wire_transfer_reversal`. An Inbound Wire Transfer Reversal Intention is
1244
1244
  # created when Increase has received a wire and the User requests that it be
1245
1245
  # reversed.
1246
- inbound_wire_transfer_reversal:,
1246
+ inbound_wire_transfer_reversal: nil,
1247
1247
  # An Interest Payment object. This field will be present in the JSON response if
1248
1248
  # and only if `category` is equal to `interest_payment`. An Interest Payment
1249
1249
  # represents a payment of interest on an account. Interest is usually paid
1250
1250
  # monthly.
1251
- interest_payment:,
1251
+ interest_payment: nil,
1252
1252
  # An Internal Source object. This field will be present in the JSON response if
1253
1253
  # and only if `category` is equal to `internal_source`. A transaction between the
1254
1254
  # user and Increase. See the `reason` attribute for more information.
1255
- internal_source:,
1255
+ internal_source: nil,
1256
1256
  # If the category of this Transaction source is equal to `other`, this field will
1257
1257
  # contain an empty object, otherwise it will contain null.
1258
- other:,
1258
+ other: nil,
1259
1259
  # A Real-Time Payments Transfer Acknowledgement object. This field will be present
1260
1260
  # in the JSON response if and only if `category` is equal to
1261
1261
  # `real_time_payments_transfer_acknowledgement`. A Real-Time Payments Transfer
1262
1262
  # Acknowledgement is created when a Real-Time Payments Transfer sent from Increase
1263
1263
  # is acknowledged by the receiving bank.
1264
- real_time_payments_transfer_acknowledgement:,
1264
+ real_time_payments_transfer_acknowledgement: nil,
1265
1265
  # A Sample Funds object. This field will be present in the JSON response if and
1266
1266
  # only if `category` is equal to `sample_funds`. Sample funds for testing
1267
1267
  # purposes.
1268
- sample_funds:,
1268
+ sample_funds: nil,
1269
1269
  # A Swift Transfer Intention object. This field will be present in the JSON
1270
1270
  # response if and only if `category` is equal to `swift_transfer_intention`. A
1271
1271
  # Swift Transfer initiated via Increase.
1272
- swift_transfer_intention:,
1272
+ swift_transfer_intention: nil,
1273
1273
  # A Swift Transfer Return object. This field will be present in the JSON response
1274
1274
  # if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
1275
1275
  # Return is created when a Swift Transfer is returned by the receiving bank.
1276
- swift_transfer_return:,
1276
+ swift_transfer_return: nil,
1277
1277
  # A Wire Transfer Intention object. This field will be present in the JSON
1278
1278
  # response if and only if `category` is equal to `wire_transfer_intention`. A Wire
1279
1279
  # Transfer initiated via Increase and sent to a different bank.
1280
- wire_transfer_intention:
1280
+ wire_transfer_intention: nil
1281
1281
  )
1282
1282
  end
1283
1283
 
1284
1284
  sig do
1285
1285
  override.returns(
1286
1286
  {
1287
+ category: Increase::Transaction::Source::Category::TaggedSymbol,
1287
1288
  account_revenue_payment:
1288
1289
  T.nilable(Increase::Transaction::Source::AccountRevenuePayment),
1289
1290
  account_transfer_intention:
@@ -1323,7 +1324,6 @@ module Increase
1323
1324
  T.nilable(Increase::Transaction::Source::CardSettlement),
1324
1325
  cashback_payment:
1325
1326
  T.nilable(Increase::Transaction::Source::CashbackPayment),
1326
- category: Increase::Transaction::Source::Category::TaggedSymbol,
1327
1327
  check_deposit_acceptance:
1328
1328
  T.nilable(
1329
1329
  Increase::Transaction::Source::CheckDepositAcceptance
@@ -1392,250 +1392,337 @@ module Increase
1392
1392
  def to_hash
1393
1393
  end
1394
1394
 
1395
- class AccountRevenuePayment < Increase::Internal::Type::BaseModel
1396
- OrHash =
1395
+ # The type of the resource. We may add additional possible values for this enum
1396
+ # over time; your application should be able to handle such additions gracefully.
1397
+ module Category
1398
+ extend Increase::Internal::Type::Enum
1399
+
1400
+ TaggedSymbol =
1397
1401
  T.type_alias do
1398
- T.any(
1399
- Increase::Transaction::Source::AccountRevenuePayment,
1400
- Increase::Internal::AnyHash
1401
- )
1402
+ T.all(Symbol, Increase::Transaction::Source::Category)
1402
1403
  end
1404
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1403
1405
 
1404
- # The account on which the account revenue was accrued.
1405
- sig { returns(String) }
1406
- attr_accessor :accrued_on_account_id
1406
+ # Account Transfer Intention: details will be under the `account_transfer_intention` object.
1407
+ ACCOUNT_TRANSFER_INTENTION =
1408
+ T.let(
1409
+ :account_transfer_intention,
1410
+ Increase::Transaction::Source::Category::TaggedSymbol
1411
+ )
1407
1412
 
1408
- # The end of the period for which this transaction paid account revenue.
1409
- sig { returns(Time) }
1410
- attr_accessor :period_end
1413
+ # ACH Transfer Intention: details will be under the `ach_transfer_intention` object.
1414
+ ACH_TRANSFER_INTENTION =
1415
+ T.let(
1416
+ :ach_transfer_intention,
1417
+ Increase::Transaction::Source::Category::TaggedSymbol
1418
+ )
1411
1419
 
1412
- # The start of the period for which this transaction paid account revenue.
1413
- sig { returns(Time) }
1414
- attr_accessor :period_start
1420
+ # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object.
1421
+ ACH_TRANSFER_REJECTION =
1422
+ T.let(
1423
+ :ach_transfer_rejection,
1424
+ Increase::Transaction::Source::Category::TaggedSymbol
1425
+ )
1415
1426
 
1416
- # An Account Revenue Payment object. This field will be present in the JSON
1417
- # response if and only if `category` is equal to `account_revenue_payment`. An
1418
- # Account Revenue Payment represents a payment made to an account from the bank.
1419
- # Account revenue is a type of non-interest income.
1420
- sig do
1421
- params(
1422
- accrued_on_account_id: String,
1423
- period_end: Time,
1424
- period_start: Time
1425
- ).returns(T.attached_class)
1426
- end
1427
- def self.new(
1428
- # The account on which the account revenue was accrued.
1429
- accrued_on_account_id:,
1430
- # The end of the period for which this transaction paid account revenue.
1431
- period_end:,
1432
- # The start of the period for which this transaction paid account revenue.
1433
- period_start:
1434
- )
1435
- end
1427
+ # ACH Transfer Return: details will be under the `ach_transfer_return` object.
1428
+ ACH_TRANSFER_RETURN =
1429
+ T.let(
1430
+ :ach_transfer_return,
1431
+ Increase::Transaction::Source::Category::TaggedSymbol
1432
+ )
1436
1433
 
1437
- sig do
1438
- override.returns(
1439
- {
1440
- accrued_on_account_id: String,
1441
- period_end: Time,
1442
- period_start: Time
1443
- }
1434
+ # Cashback Payment: details will be under the `cashback_payment` object.
1435
+ CASHBACK_PAYMENT =
1436
+ T.let(
1437
+ :cashback_payment,
1438
+ Increase::Transaction::Source::Category::TaggedSymbol
1444
1439
  )
1445
- end
1446
- def to_hash
1447
- end
1448
- end
1449
1440
 
1450
- class AccountTransferIntention < Increase::Internal::Type::BaseModel
1451
- OrHash =
1452
- T.type_alias do
1453
- T.any(
1454
- Increase::Transaction::Source::AccountTransferIntention,
1455
- Increase::Internal::AnyHash
1456
- )
1457
- end
1441
+ # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
1442
+ CARD_DISPUTE_ACCEPTANCE =
1443
+ T.let(
1444
+ :card_dispute_acceptance,
1445
+ Increase::Transaction::Source::Category::TaggedSymbol
1446
+ )
1458
1447
 
1459
- # The pending amount in the minor unit of the transaction's currency. For dollars,
1460
- # for example, this is cents.
1461
- sig { returns(Integer) }
1462
- attr_accessor :amount
1448
+ # Card Dispute Financial: details will be under the `card_dispute_financial` object.
1449
+ CARD_DISPUTE_FINANCIAL =
1450
+ T.let(
1451
+ :card_dispute_financial,
1452
+ Increase::Transaction::Source::Category::TaggedSymbol
1453
+ )
1463
1454
 
1464
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1465
- # account currency.
1466
- sig do
1467
- returns(
1468
- Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1455
+ # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
1456
+ CARD_DISPUTE_LOSS =
1457
+ T.let(
1458
+ :card_dispute_loss,
1459
+ Increase::Transaction::Source::Category::TaggedSymbol
1469
1460
  )
1470
- end
1471
- attr_accessor :currency
1472
1461
 
1473
- # The description you chose to give the transfer.
1474
- sig { returns(String) }
1475
- attr_accessor :description
1462
+ # Card Refund: details will be under the `card_refund` object.
1463
+ CARD_REFUND =
1464
+ T.let(
1465
+ :card_refund,
1466
+ Increase::Transaction::Source::Category::TaggedSymbol
1467
+ )
1476
1468
 
1477
- # The identifier of the Account to where the Account Transfer was sent.
1478
- sig { returns(String) }
1479
- attr_accessor :destination_account_id
1469
+ # Card Settlement: details will be under the `card_settlement` object.
1470
+ CARD_SETTLEMENT =
1471
+ T.let(
1472
+ :card_settlement,
1473
+ Increase::Transaction::Source::Category::TaggedSymbol
1474
+ )
1480
1475
 
1481
- # The identifier of the Account from where the Account Transfer was sent.
1482
- sig { returns(String) }
1483
- attr_accessor :source_account_id
1476
+ # Card Financial: details will be under the `card_financial` object.
1477
+ CARD_FINANCIAL =
1478
+ T.let(
1479
+ :card_financial,
1480
+ Increase::Transaction::Source::Category::TaggedSymbol
1481
+ )
1484
1482
 
1485
- # The identifier of the Account Transfer that led to this Pending Transaction.
1486
- sig { returns(String) }
1487
- attr_accessor :transfer_id
1483
+ # Card Revenue Payment: details will be under the `card_revenue_payment` object.
1484
+ CARD_REVENUE_PAYMENT =
1485
+ T.let(
1486
+ :card_revenue_payment,
1487
+ Increase::Transaction::Source::Category::TaggedSymbol
1488
+ )
1488
1489
 
1489
- # An Account Transfer Intention object. This field will be present in the JSON
1490
- # response if and only if `category` is equal to `account_transfer_intention`. Two
1491
- # Account Transfer Intentions are created from each Account Transfer. One
1492
- # decrements the source account, and the other increments the destination account.
1493
- sig do
1494
- params(
1495
- amount: Integer,
1496
- currency:
1497
- Increase::Transaction::Source::AccountTransferIntention::Currency::OrSymbol,
1498
- description: String,
1499
- destination_account_id: String,
1500
- source_account_id: String,
1501
- transfer_id: String
1502
- ).returns(T.attached_class)
1503
- end
1504
- def self.new(
1505
- # The pending amount in the minor unit of the transaction's currency. For dollars,
1506
- # for example, this is cents.
1507
- amount:,
1508
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1509
- # account currency.
1510
- currency:,
1511
- # The description you chose to give the transfer.
1512
- description:,
1513
- # The identifier of the Account to where the Account Transfer was sent.
1514
- destination_account_id:,
1515
- # The identifier of the Account from where the Account Transfer was sent.
1516
- source_account_id:,
1517
- # The identifier of the Account Transfer that led to this Pending Transaction.
1518
- transfer_id:
1519
- )
1520
- end
1490
+ # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object.
1491
+ CHECK_DEPOSIT_ACCEPTANCE =
1492
+ T.let(
1493
+ :check_deposit_acceptance,
1494
+ Increase::Transaction::Source::Category::TaggedSymbol
1495
+ )
1521
1496
 
1522
- sig do
1523
- override.returns(
1524
- {
1525
- amount: Integer,
1526
- currency:
1527
- Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol,
1528
- description: String,
1529
- destination_account_id: String,
1530
- source_account_id: String,
1531
- transfer_id: String
1532
- }
1497
+ # Check Deposit Return: details will be under the `check_deposit_return` object.
1498
+ CHECK_DEPOSIT_RETURN =
1499
+ T.let(
1500
+ :check_deposit_return,
1501
+ Increase::Transaction::Source::Category::TaggedSymbol
1533
1502
  )
1534
- end
1535
- def to_hash
1536
- end
1537
1503
 
1538
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1539
- # account currency.
1540
- module Currency
1541
- extend Increase::Internal::Type::Enum
1504
+ # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object.
1505
+ FEDNOW_TRANSFER_ACKNOWLEDGEMENT =
1506
+ T.let(
1507
+ :fednow_transfer_acknowledgement,
1508
+ Increase::Transaction::Source::Category::TaggedSymbol
1509
+ )
1542
1510
 
1543
- TaggedSymbol =
1544
- T.type_alias do
1545
- T.all(
1546
- Symbol,
1547
- Increase::Transaction::Source::AccountTransferIntention::Currency
1548
- )
1549
- end
1550
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1511
+ # Check Transfer Deposit: details will be under the `check_transfer_deposit` object.
1512
+ CHECK_TRANSFER_DEPOSIT =
1513
+ T.let(
1514
+ :check_transfer_deposit,
1515
+ Increase::Transaction::Source::Category::TaggedSymbol
1516
+ )
1551
1517
 
1552
- # US Dollar (USD)
1553
- USD =
1554
- T.let(
1555
- :USD,
1556
- Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1557
- )
1518
+ # Fee Payment: details will be under the `fee_payment` object.
1519
+ FEE_PAYMENT =
1520
+ T.let(
1521
+ :fee_payment,
1522
+ Increase::Transaction::Source::Category::TaggedSymbol
1523
+ )
1558
1524
 
1559
- sig do
1560
- override.returns(
1561
- T::Array[
1562
- Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1563
- ]
1564
- )
1565
- end
1566
- def self.values
1567
- end
1525
+ # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object.
1526
+ INBOUND_ACH_TRANSFER =
1527
+ T.let(
1528
+ :inbound_ach_transfer,
1529
+ Increase::Transaction::Source::Category::TaggedSymbol
1530
+ )
1531
+
1532
+ # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object.
1533
+ INBOUND_ACH_TRANSFER_RETURN_INTENTION =
1534
+ T.let(
1535
+ :inbound_ach_transfer_return_intention,
1536
+ Increase::Transaction::Source::Category::TaggedSymbol
1537
+ )
1538
+
1539
+ # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object.
1540
+ INBOUND_CHECK_DEPOSIT_RETURN_INTENTION =
1541
+ T.let(
1542
+ :inbound_check_deposit_return_intention,
1543
+ Increase::Transaction::Source::Category::TaggedSymbol
1544
+ )
1545
+
1546
+ # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
1547
+ INBOUND_CHECK_ADJUSTMENT =
1548
+ T.let(
1549
+ :inbound_check_adjustment,
1550
+ Increase::Transaction::Source::Category::TaggedSymbol
1551
+ )
1552
+
1553
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
1554
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION =
1555
+ T.let(
1556
+ :inbound_fednow_transfer_confirmation,
1557
+ Increase::Transaction::Source::Category::TaggedSymbol
1558
+ )
1559
+
1560
+ # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
1561
+ INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
1562
+ T.let(
1563
+ :inbound_real_time_payments_transfer_confirmation,
1564
+ Increase::Transaction::Source::Category::TaggedSymbol
1565
+ )
1566
+
1567
+ # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
1568
+ INBOUND_WIRE_REVERSAL =
1569
+ T.let(
1570
+ :inbound_wire_reversal,
1571
+ Increase::Transaction::Source::Category::TaggedSymbol
1572
+ )
1573
+
1574
+ # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object.
1575
+ INBOUND_WIRE_TRANSFER =
1576
+ T.let(
1577
+ :inbound_wire_transfer,
1578
+ Increase::Transaction::Source::Category::TaggedSymbol
1579
+ )
1580
+
1581
+ # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object.
1582
+ INBOUND_WIRE_TRANSFER_REVERSAL =
1583
+ T.let(
1584
+ :inbound_wire_transfer_reversal,
1585
+ Increase::Transaction::Source::Category::TaggedSymbol
1586
+ )
1587
+
1588
+ # Interest Payment: details will be under the `interest_payment` object.
1589
+ INTEREST_PAYMENT =
1590
+ T.let(
1591
+ :interest_payment,
1592
+ Increase::Transaction::Source::Category::TaggedSymbol
1593
+ )
1594
+
1595
+ # Internal Source: details will be under the `internal_source` object.
1596
+ INTERNAL_SOURCE =
1597
+ T.let(
1598
+ :internal_source,
1599
+ Increase::Transaction::Source::Category::TaggedSymbol
1600
+ )
1601
+
1602
+ # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object.
1603
+ REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT =
1604
+ T.let(
1605
+ :real_time_payments_transfer_acknowledgement,
1606
+ Increase::Transaction::Source::Category::TaggedSymbol
1607
+ )
1608
+
1609
+ # Sample Funds: details will be under the `sample_funds` object.
1610
+ SAMPLE_FUNDS =
1611
+ T.let(
1612
+ :sample_funds,
1613
+ Increase::Transaction::Source::Category::TaggedSymbol
1614
+ )
1615
+
1616
+ # Wire Transfer Intention: details will be under the `wire_transfer_intention` object.
1617
+ WIRE_TRANSFER_INTENTION =
1618
+ T.let(
1619
+ :wire_transfer_intention,
1620
+ Increase::Transaction::Source::Category::TaggedSymbol
1621
+ )
1622
+
1623
+ # Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
1624
+ SWIFT_TRANSFER_INTENTION =
1625
+ T.let(
1626
+ :swift_transfer_intention,
1627
+ Increase::Transaction::Source::Category::TaggedSymbol
1628
+ )
1629
+
1630
+ # Swift Transfer Return: details will be under the `swift_transfer_return` object.
1631
+ SWIFT_TRANSFER_RETURN =
1632
+ T.let(
1633
+ :swift_transfer_return,
1634
+ Increase::Transaction::Source::Category::TaggedSymbol
1635
+ )
1636
+
1637
+ # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
1638
+ CARD_PUSH_TRANSFER_ACCEPTANCE =
1639
+ T.let(
1640
+ :card_push_transfer_acceptance,
1641
+ Increase::Transaction::Source::Category::TaggedSymbol
1642
+ )
1643
+
1644
+ # Account Revenue Payment: details will be under the `account_revenue_payment` object.
1645
+ ACCOUNT_REVENUE_PAYMENT =
1646
+ T.let(
1647
+ :account_revenue_payment,
1648
+ Increase::Transaction::Source::Category::TaggedSymbol
1649
+ )
1650
+
1651
+ # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object.
1652
+ BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION =
1653
+ T.let(
1654
+ :blockchain_onramp_transfer_intention,
1655
+ Increase::Transaction::Source::Category::TaggedSymbol
1656
+ )
1657
+
1658
+ # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object.
1659
+ BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT =
1660
+ T.let(
1661
+ :blockchain_offramp_transfer_settlement,
1662
+ Increase::Transaction::Source::Category::TaggedSymbol
1663
+ )
1664
+
1665
+ # The Transaction was made for an undocumented or deprecated reason.
1666
+ OTHER =
1667
+ T.let(:other, Increase::Transaction::Source::Category::TaggedSymbol)
1668
+
1669
+ sig do
1670
+ override.returns(
1671
+ T::Array[Increase::Transaction::Source::Category::TaggedSymbol]
1672
+ )
1673
+ end
1674
+ def self.values
1568
1675
  end
1569
1676
  end
1570
1677
 
1571
- class ACHTransferIntention < Increase::Internal::Type::BaseModel
1678
+ class AccountRevenuePayment < Increase::Internal::Type::BaseModel
1572
1679
  OrHash =
1573
1680
  T.type_alias do
1574
1681
  T.any(
1575
- Increase::Transaction::Source::ACHTransferIntention,
1682
+ Increase::Transaction::Source::AccountRevenuePayment,
1576
1683
  Increase::Internal::AnyHash
1577
1684
  )
1578
1685
  end
1579
1686
 
1580
- # The account number for the destination account.
1581
- sig { returns(String) }
1582
- attr_accessor :account_number
1583
-
1584
- # The amount in the minor unit of the transaction's currency. For dollars, for
1585
- # example, this is cents.
1586
- sig { returns(Integer) }
1587
- attr_accessor :amount
1588
-
1589
- # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1590
- # destination account.
1687
+ # The account on which the account revenue was accrued.
1591
1688
  sig { returns(String) }
1592
- attr_accessor :routing_number
1689
+ attr_accessor :accrued_on_account_id
1593
1690
 
1594
- # A description set when the ACH Transfer was created.
1595
- sig { returns(String) }
1596
- attr_accessor :statement_descriptor
1691
+ # The end of the period for which this transaction paid account revenue.
1692
+ sig { returns(Time) }
1693
+ attr_accessor :period_end
1597
1694
 
1598
- # The identifier of the ACH Transfer that led to this Transaction.
1599
- sig { returns(String) }
1600
- attr_accessor :transfer_id
1695
+ # The start of the period for which this transaction paid account revenue.
1696
+ sig { returns(Time) }
1697
+ attr_accessor :period_start
1601
1698
 
1602
- # An ACH Transfer Intention object. This field will be present in the JSON
1603
- # response if and only if `category` is equal to `ach_transfer_intention`. An ACH
1604
- # Transfer Intention is created from an ACH Transfer. It reflects the intention to
1605
- # move money into or out of an Increase account via the ACH network.
1699
+ # An Account Revenue Payment object. This field will be present in the JSON
1700
+ # response if and only if `category` is equal to `account_revenue_payment`. An
1701
+ # Account Revenue Payment represents a payment made to an account from the bank.
1702
+ # Account revenue is a type of non-interest income.
1606
1703
  sig do
1607
1704
  params(
1608
- account_number: String,
1609
- amount: Integer,
1610
- routing_number: String,
1611
- statement_descriptor: String,
1612
- transfer_id: String
1705
+ accrued_on_account_id: String,
1706
+ period_end: Time,
1707
+ period_start: Time
1613
1708
  ).returns(T.attached_class)
1614
1709
  end
1615
1710
  def self.new(
1616
- # The account number for the destination account.
1617
- account_number:,
1618
- # The amount in the minor unit of the transaction's currency. For dollars, for
1619
- # example, this is cents.
1620
- amount:,
1621
- # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1622
- # destination account.
1623
- routing_number:,
1624
- # A description set when the ACH Transfer was created.
1625
- statement_descriptor:,
1626
- # The identifier of the ACH Transfer that led to this Transaction.
1627
- transfer_id:
1711
+ # The account on which the account revenue was accrued.
1712
+ accrued_on_account_id:,
1713
+ # The end of the period for which this transaction paid account revenue.
1714
+ period_end:,
1715
+ # The start of the period for which this transaction paid account revenue.
1716
+ period_start:
1628
1717
  )
1629
1718
  end
1630
1719
 
1631
1720
  sig do
1632
1721
  override.returns(
1633
1722
  {
1634
- account_number: String,
1635
- amount: Integer,
1636
- routing_number: String,
1637
- statement_descriptor: String,
1638
- transfer_id: String
1723
+ accrued_on_account_id: String,
1724
+ period_end: Time,
1725
+ period_start: Time
1639
1726
  }
1640
1727
  )
1641
1728
  end
@@ -1643,21 +1730,217 @@ module Increase
1643
1730
  end
1644
1731
  end
1645
1732
 
1646
- class ACHTransferRejection < Increase::Internal::Type::BaseModel
1733
+ class AccountTransferIntention < Increase::Internal::Type::BaseModel
1647
1734
  OrHash =
1648
1735
  T.type_alias do
1649
1736
  T.any(
1650
- Increase::Transaction::Source::ACHTransferRejection,
1737
+ Increase::Transaction::Source::AccountTransferIntention,
1651
1738
  Increase::Internal::AnyHash
1652
1739
  )
1653
1740
  end
1654
1741
 
1655
- # The identifier of the ACH Transfer that led to this Transaction.
1656
- sig { returns(String) }
1657
- attr_accessor :transfer_id
1742
+ # The pending amount in the minor unit of the transaction's currency. For dollars,
1743
+ # for example, this is cents.
1744
+ sig { returns(Integer) }
1745
+ attr_accessor :amount
1658
1746
 
1659
- # An ACH Transfer Rejection object. This field will be present in the JSON
1660
- # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH
1747
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1748
+ # account currency.
1749
+ sig do
1750
+ returns(
1751
+ Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1752
+ )
1753
+ end
1754
+ attr_accessor :currency
1755
+
1756
+ # The description you chose to give the transfer.
1757
+ sig { returns(String) }
1758
+ attr_accessor :description
1759
+
1760
+ # The identifier of the Account to where the Account Transfer was sent.
1761
+ sig { returns(String) }
1762
+ attr_accessor :destination_account_id
1763
+
1764
+ # The identifier of the Account from where the Account Transfer was sent.
1765
+ sig { returns(String) }
1766
+ attr_accessor :source_account_id
1767
+
1768
+ # The identifier of the Account Transfer that led to this Pending Transaction.
1769
+ sig { returns(String) }
1770
+ attr_accessor :transfer_id
1771
+
1772
+ # An Account Transfer Intention object. This field will be present in the JSON
1773
+ # response if and only if `category` is equal to `account_transfer_intention`. Two
1774
+ # Account Transfer Intentions are created from each Account Transfer. One
1775
+ # decrements the source account, and the other increments the destination account.
1776
+ sig do
1777
+ params(
1778
+ amount: Integer,
1779
+ currency:
1780
+ Increase::Transaction::Source::AccountTransferIntention::Currency::OrSymbol,
1781
+ description: String,
1782
+ destination_account_id: String,
1783
+ source_account_id: String,
1784
+ transfer_id: String
1785
+ ).returns(T.attached_class)
1786
+ end
1787
+ def self.new(
1788
+ # The pending amount in the minor unit of the transaction's currency. For dollars,
1789
+ # for example, this is cents.
1790
+ amount:,
1791
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1792
+ # account currency.
1793
+ currency:,
1794
+ # The description you chose to give the transfer.
1795
+ description:,
1796
+ # The identifier of the Account to where the Account Transfer was sent.
1797
+ destination_account_id:,
1798
+ # The identifier of the Account from where the Account Transfer was sent.
1799
+ source_account_id:,
1800
+ # The identifier of the Account Transfer that led to this Pending Transaction.
1801
+ transfer_id:
1802
+ )
1803
+ end
1804
+
1805
+ sig do
1806
+ override.returns(
1807
+ {
1808
+ amount: Integer,
1809
+ currency:
1810
+ Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol,
1811
+ description: String,
1812
+ destination_account_id: String,
1813
+ source_account_id: String,
1814
+ transfer_id: String
1815
+ }
1816
+ )
1817
+ end
1818
+ def to_hash
1819
+ end
1820
+
1821
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1822
+ # account currency.
1823
+ module Currency
1824
+ extend Increase::Internal::Type::Enum
1825
+
1826
+ TaggedSymbol =
1827
+ T.type_alias do
1828
+ T.all(
1829
+ Symbol,
1830
+ Increase::Transaction::Source::AccountTransferIntention::Currency
1831
+ )
1832
+ end
1833
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1834
+
1835
+ # US Dollar (USD)
1836
+ USD =
1837
+ T.let(
1838
+ :USD,
1839
+ Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1840
+ )
1841
+
1842
+ sig do
1843
+ override.returns(
1844
+ T::Array[
1845
+ Increase::Transaction::Source::AccountTransferIntention::Currency::TaggedSymbol
1846
+ ]
1847
+ )
1848
+ end
1849
+ def self.values
1850
+ end
1851
+ end
1852
+ end
1853
+
1854
+ class ACHTransferIntention < Increase::Internal::Type::BaseModel
1855
+ OrHash =
1856
+ T.type_alias do
1857
+ T.any(
1858
+ Increase::Transaction::Source::ACHTransferIntention,
1859
+ Increase::Internal::AnyHash
1860
+ )
1861
+ end
1862
+
1863
+ # The account number for the destination account.
1864
+ sig { returns(String) }
1865
+ attr_accessor :account_number
1866
+
1867
+ # The amount in the minor unit of the transaction's currency. For dollars, for
1868
+ # example, this is cents.
1869
+ sig { returns(Integer) }
1870
+ attr_accessor :amount
1871
+
1872
+ # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1873
+ # destination account.
1874
+ sig { returns(String) }
1875
+ attr_accessor :routing_number
1876
+
1877
+ # A description set when the ACH Transfer was created.
1878
+ sig { returns(String) }
1879
+ attr_accessor :statement_descriptor
1880
+
1881
+ # The identifier of the ACH Transfer that led to this Transaction.
1882
+ sig { returns(String) }
1883
+ attr_accessor :transfer_id
1884
+
1885
+ # An ACH Transfer Intention object. This field will be present in the JSON
1886
+ # response if and only if `category` is equal to `ach_transfer_intention`. An ACH
1887
+ # Transfer Intention is created from an ACH Transfer. It reflects the intention to
1888
+ # move money into or out of an Increase account via the ACH network.
1889
+ sig do
1890
+ params(
1891
+ account_number: String,
1892
+ amount: Integer,
1893
+ routing_number: String,
1894
+ statement_descriptor: String,
1895
+ transfer_id: String
1896
+ ).returns(T.attached_class)
1897
+ end
1898
+ def self.new(
1899
+ # The account number for the destination account.
1900
+ account_number:,
1901
+ # The amount in the minor unit of the transaction's currency. For dollars, for
1902
+ # example, this is cents.
1903
+ amount:,
1904
+ # The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
1905
+ # destination account.
1906
+ routing_number:,
1907
+ # A description set when the ACH Transfer was created.
1908
+ statement_descriptor:,
1909
+ # The identifier of the ACH Transfer that led to this Transaction.
1910
+ transfer_id:
1911
+ )
1912
+ end
1913
+
1914
+ sig do
1915
+ override.returns(
1916
+ {
1917
+ account_number: String,
1918
+ amount: Integer,
1919
+ routing_number: String,
1920
+ statement_descriptor: String,
1921
+ transfer_id: String
1922
+ }
1923
+ )
1924
+ end
1925
+ def to_hash
1926
+ end
1927
+ end
1928
+
1929
+ class ACHTransferRejection < Increase::Internal::Type::BaseModel
1930
+ OrHash =
1931
+ T.type_alias do
1932
+ T.any(
1933
+ Increase::Transaction::Source::ACHTransferRejection,
1934
+ Increase::Internal::AnyHash
1935
+ )
1936
+ end
1937
+
1938
+ # The identifier of the ACH Transfer that led to this Transaction.
1939
+ sig { returns(String) }
1940
+ attr_accessor :transfer_id
1941
+
1942
+ # An ACH Transfer Rejection object. This field will be present in the JSON
1943
+ # response if and only if `category` is equal to `ach_transfer_rejection`. An ACH
1661
1944
  # Transfer Rejection is created when an ACH Transfer is rejected by Increase. It
1662
1945
  # offsets the ACH Transfer Intention. These rejections are rare.
1663
1946
  sig { params(transfer_id: String).returns(T.attached_class) }
@@ -10119,289 +10402,6 @@ module Increase
10119
10402
  end
10120
10403
  end
10121
10404
 
10122
- # The type of the resource. We may add additional possible values for this enum
10123
- # over time; your application should be able to handle such additions gracefully.
10124
- module Category
10125
- extend Increase::Internal::Type::Enum
10126
-
10127
- TaggedSymbol =
10128
- T.type_alias do
10129
- T.all(Symbol, Increase::Transaction::Source::Category)
10130
- end
10131
- OrSymbol = T.type_alias { T.any(Symbol, String) }
10132
-
10133
- # Account Transfer Intention: details will be under the `account_transfer_intention` object.
10134
- ACCOUNT_TRANSFER_INTENTION =
10135
- T.let(
10136
- :account_transfer_intention,
10137
- Increase::Transaction::Source::Category::TaggedSymbol
10138
- )
10139
-
10140
- # ACH Transfer Intention: details will be under the `ach_transfer_intention` object.
10141
- ACH_TRANSFER_INTENTION =
10142
- T.let(
10143
- :ach_transfer_intention,
10144
- Increase::Transaction::Source::Category::TaggedSymbol
10145
- )
10146
-
10147
- # ACH Transfer Rejection: details will be under the `ach_transfer_rejection` object.
10148
- ACH_TRANSFER_REJECTION =
10149
- T.let(
10150
- :ach_transfer_rejection,
10151
- Increase::Transaction::Source::Category::TaggedSymbol
10152
- )
10153
-
10154
- # ACH Transfer Return: details will be under the `ach_transfer_return` object.
10155
- ACH_TRANSFER_RETURN =
10156
- T.let(
10157
- :ach_transfer_return,
10158
- Increase::Transaction::Source::Category::TaggedSymbol
10159
- )
10160
-
10161
- # Cashback Payment: details will be under the `cashback_payment` object.
10162
- CASHBACK_PAYMENT =
10163
- T.let(
10164
- :cashback_payment,
10165
- Increase::Transaction::Source::Category::TaggedSymbol
10166
- )
10167
-
10168
- # Legacy Card Dispute Acceptance: details will be under the `card_dispute_acceptance` object.
10169
- CARD_DISPUTE_ACCEPTANCE =
10170
- T.let(
10171
- :card_dispute_acceptance,
10172
- Increase::Transaction::Source::Category::TaggedSymbol
10173
- )
10174
-
10175
- # Card Dispute Financial: details will be under the `card_dispute_financial` object.
10176
- CARD_DISPUTE_FINANCIAL =
10177
- T.let(
10178
- :card_dispute_financial,
10179
- Increase::Transaction::Source::Category::TaggedSymbol
10180
- )
10181
-
10182
- # Legacy Card Dispute Loss: details will be under the `card_dispute_loss` object.
10183
- CARD_DISPUTE_LOSS =
10184
- T.let(
10185
- :card_dispute_loss,
10186
- Increase::Transaction::Source::Category::TaggedSymbol
10187
- )
10188
-
10189
- # Card Refund: details will be under the `card_refund` object.
10190
- CARD_REFUND =
10191
- T.let(
10192
- :card_refund,
10193
- Increase::Transaction::Source::Category::TaggedSymbol
10194
- )
10195
-
10196
- # Card Settlement: details will be under the `card_settlement` object.
10197
- CARD_SETTLEMENT =
10198
- T.let(
10199
- :card_settlement,
10200
- Increase::Transaction::Source::Category::TaggedSymbol
10201
- )
10202
-
10203
- # Card Financial: details will be under the `card_financial` object.
10204
- CARD_FINANCIAL =
10205
- T.let(
10206
- :card_financial,
10207
- Increase::Transaction::Source::Category::TaggedSymbol
10208
- )
10209
-
10210
- # Card Revenue Payment: details will be under the `card_revenue_payment` object.
10211
- CARD_REVENUE_PAYMENT =
10212
- T.let(
10213
- :card_revenue_payment,
10214
- Increase::Transaction::Source::Category::TaggedSymbol
10215
- )
10216
-
10217
- # Check Deposit Acceptance: details will be under the `check_deposit_acceptance` object.
10218
- CHECK_DEPOSIT_ACCEPTANCE =
10219
- T.let(
10220
- :check_deposit_acceptance,
10221
- Increase::Transaction::Source::Category::TaggedSymbol
10222
- )
10223
-
10224
- # Check Deposit Return: details will be under the `check_deposit_return` object.
10225
- CHECK_DEPOSIT_RETURN =
10226
- T.let(
10227
- :check_deposit_return,
10228
- Increase::Transaction::Source::Category::TaggedSymbol
10229
- )
10230
-
10231
- # FedNow Transfer Acknowledgement: details will be under the `fednow_transfer_acknowledgement` object.
10232
- FEDNOW_TRANSFER_ACKNOWLEDGEMENT =
10233
- T.let(
10234
- :fednow_transfer_acknowledgement,
10235
- Increase::Transaction::Source::Category::TaggedSymbol
10236
- )
10237
-
10238
- # Check Transfer Deposit: details will be under the `check_transfer_deposit` object.
10239
- CHECK_TRANSFER_DEPOSIT =
10240
- T.let(
10241
- :check_transfer_deposit,
10242
- Increase::Transaction::Source::Category::TaggedSymbol
10243
- )
10244
-
10245
- # Fee Payment: details will be under the `fee_payment` object.
10246
- FEE_PAYMENT =
10247
- T.let(
10248
- :fee_payment,
10249
- Increase::Transaction::Source::Category::TaggedSymbol
10250
- )
10251
-
10252
- # Inbound ACH Transfer Intention: details will be under the `inbound_ach_transfer` object.
10253
- INBOUND_ACH_TRANSFER =
10254
- T.let(
10255
- :inbound_ach_transfer,
10256
- Increase::Transaction::Source::Category::TaggedSymbol
10257
- )
10258
-
10259
- # Inbound ACH Transfer Return Intention: details will be under the `inbound_ach_transfer_return_intention` object.
10260
- INBOUND_ACH_TRANSFER_RETURN_INTENTION =
10261
- T.let(
10262
- :inbound_ach_transfer_return_intention,
10263
- Increase::Transaction::Source::Category::TaggedSymbol
10264
- )
10265
-
10266
- # Inbound Check Deposit Return Intention: details will be under the `inbound_check_deposit_return_intention` object.
10267
- INBOUND_CHECK_DEPOSIT_RETURN_INTENTION =
10268
- T.let(
10269
- :inbound_check_deposit_return_intention,
10270
- Increase::Transaction::Source::Category::TaggedSymbol
10271
- )
10272
-
10273
- # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
10274
- INBOUND_CHECK_ADJUSTMENT =
10275
- T.let(
10276
- :inbound_check_adjustment,
10277
- Increase::Transaction::Source::Category::TaggedSymbol
10278
- )
10279
-
10280
- # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
10281
- INBOUND_FEDNOW_TRANSFER_CONFIRMATION =
10282
- T.let(
10283
- :inbound_fednow_transfer_confirmation,
10284
- Increase::Transaction::Source::Category::TaggedSymbol
10285
- )
10286
-
10287
- # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
10288
- INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
10289
- T.let(
10290
- :inbound_real_time_payments_transfer_confirmation,
10291
- Increase::Transaction::Source::Category::TaggedSymbol
10292
- )
10293
-
10294
- # Inbound Wire Reversal: details will be under the `inbound_wire_reversal` object.
10295
- INBOUND_WIRE_REVERSAL =
10296
- T.let(
10297
- :inbound_wire_reversal,
10298
- Increase::Transaction::Source::Category::TaggedSymbol
10299
- )
10300
-
10301
- # Inbound Wire Transfer Intention: details will be under the `inbound_wire_transfer` object.
10302
- INBOUND_WIRE_TRANSFER =
10303
- T.let(
10304
- :inbound_wire_transfer,
10305
- Increase::Transaction::Source::Category::TaggedSymbol
10306
- )
10307
-
10308
- # Inbound Wire Transfer Reversal Intention: details will be under the `inbound_wire_transfer_reversal` object.
10309
- INBOUND_WIRE_TRANSFER_REVERSAL =
10310
- T.let(
10311
- :inbound_wire_transfer_reversal,
10312
- Increase::Transaction::Source::Category::TaggedSymbol
10313
- )
10314
-
10315
- # Interest Payment: details will be under the `interest_payment` object.
10316
- INTEREST_PAYMENT =
10317
- T.let(
10318
- :interest_payment,
10319
- Increase::Transaction::Source::Category::TaggedSymbol
10320
- )
10321
-
10322
- # Internal Source: details will be under the `internal_source` object.
10323
- INTERNAL_SOURCE =
10324
- T.let(
10325
- :internal_source,
10326
- Increase::Transaction::Source::Category::TaggedSymbol
10327
- )
10328
-
10329
- # Real-Time Payments Transfer Acknowledgement: details will be under the `real_time_payments_transfer_acknowledgement` object.
10330
- REAL_TIME_PAYMENTS_TRANSFER_ACKNOWLEDGEMENT =
10331
- T.let(
10332
- :real_time_payments_transfer_acknowledgement,
10333
- Increase::Transaction::Source::Category::TaggedSymbol
10334
- )
10335
-
10336
- # Sample Funds: details will be under the `sample_funds` object.
10337
- SAMPLE_FUNDS =
10338
- T.let(
10339
- :sample_funds,
10340
- Increase::Transaction::Source::Category::TaggedSymbol
10341
- )
10342
-
10343
- # Wire Transfer Intention: details will be under the `wire_transfer_intention` object.
10344
- WIRE_TRANSFER_INTENTION =
10345
- T.let(
10346
- :wire_transfer_intention,
10347
- Increase::Transaction::Source::Category::TaggedSymbol
10348
- )
10349
-
10350
- # Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
10351
- SWIFT_TRANSFER_INTENTION =
10352
- T.let(
10353
- :swift_transfer_intention,
10354
- Increase::Transaction::Source::Category::TaggedSymbol
10355
- )
10356
-
10357
- # Swift Transfer Return: details will be under the `swift_transfer_return` object.
10358
- SWIFT_TRANSFER_RETURN =
10359
- T.let(
10360
- :swift_transfer_return,
10361
- Increase::Transaction::Source::Category::TaggedSymbol
10362
- )
10363
-
10364
- # Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
10365
- CARD_PUSH_TRANSFER_ACCEPTANCE =
10366
- T.let(
10367
- :card_push_transfer_acceptance,
10368
- Increase::Transaction::Source::Category::TaggedSymbol
10369
- )
10370
-
10371
- # Account Revenue Payment: details will be under the `account_revenue_payment` object.
10372
- ACCOUNT_REVENUE_PAYMENT =
10373
- T.let(
10374
- :account_revenue_payment,
10375
- Increase::Transaction::Source::Category::TaggedSymbol
10376
- )
10377
-
10378
- # Blockchain On-Ramp Transfer Intention: details will be under the `blockchain_onramp_transfer_intention` object.
10379
- BLOCKCHAIN_ONRAMP_TRANSFER_INTENTION =
10380
- T.let(
10381
- :blockchain_onramp_transfer_intention,
10382
- Increase::Transaction::Source::Category::TaggedSymbol
10383
- )
10384
-
10385
- # Blockchain Off-Ramp Transfer Settlement: details will be under the `blockchain_offramp_transfer_settlement` object.
10386
- BLOCKCHAIN_OFFRAMP_TRANSFER_SETTLEMENT =
10387
- T.let(
10388
- :blockchain_offramp_transfer_settlement,
10389
- Increase::Transaction::Source::Category::TaggedSymbol
10390
- )
10391
-
10392
- # The Transaction was made for an undocumented or deprecated reason.
10393
- OTHER =
10394
- T.let(:other, Increase::Transaction::Source::Category::TaggedSymbol)
10395
-
10396
- sig do
10397
- override.returns(
10398
- T::Array[Increase::Transaction::Source::Category::TaggedSymbol]
10399
- )
10400
- end
10401
- def self.values
10402
- end
10403
- end
10404
-
10405
10405
  class CheckDepositAcceptance < Increase::Internal::Type::BaseModel
10406
10406
  OrHash =
10407
10407
  T.type_alias do