increase 1.77.0 → 1.79.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/declined_transaction.rb +68 -1
  5. data/lib/increase/models/declined_transaction_list_params.rb +3 -0
  6. data/lib/increase/models/event.rb +6 -0
  7. data/lib/increase/models/event_list_params.rb +6 -0
  8. data/lib/increase/models/event_subscription.rb +6 -0
  9. data/lib/increase/models/event_subscription_create_params.rb +6 -0
  10. data/lib/increase/models/transaction.rb +36 -1
  11. data/lib/increase/models/transaction_list_params.rb +3 -0
  12. data/lib/increase/models/wire_transfer.rb +114 -4
  13. data/lib/increase/models/wire_transfer_create_params.rb +110 -9
  14. data/lib/increase/resources/wire_transfers.rb +3 -3
  15. data/lib/increase/version.rb +1 -1
  16. data/rbi/increase/models/declined_transaction.rbi +159 -0
  17. data/rbi/increase/models/declined_transaction_list_params.rbi +7 -0
  18. data/rbi/increase/models/event.rbi +14 -0
  19. data/rbi/increase/models/event_list_params.rbi +14 -0
  20. data/rbi/increase/models/event_subscription.rbi +14 -0
  21. data/rbi/increase/models/event_subscription_create_params.rbi +14 -0
  22. data/rbi/increase/models/transaction.rbi +75 -0
  23. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  24. data/rbi/increase/models/wire_transfer.rbi +215 -3
  25. data/rbi/increase/models/wire_transfer_create_params.rbi +222 -8
  26. data/rbi/increase/resources/wire_transfers.rbi +3 -3
  27. data/sig/increase/models/declined_transaction.rbs +63 -0
  28. data/sig/increase/models/declined_transaction_list_params.rbs +4 -0
  29. data/sig/increase/models/event.rbs +8 -0
  30. data/sig/increase/models/event_list_params.rbs +8 -0
  31. data/sig/increase/models/event_subscription.rbs +8 -0
  32. data/sig/increase/models/event_subscription_create_params.rbs +8 -0
  33. data/sig/increase/models/transaction.rbs +19 -0
  34. data/sig/increase/models/transaction_list_params.rbs +4 -0
  35. data/sig/increase/models/wire_transfer.rbs +83 -4
  36. data/sig/increase/models/wire_transfer_create_params.rbs +91 -5
  37. data/sig/increase/resources/wire_transfers.rbs +1 -1
  38. metadata +2 -2
@@ -303,6 +303,28 @@ module Increase
303
303
  end
304
304
  attr_writer :check_deposit_rejection
305
305
 
306
+ # An Inbound FedNow Transfer Decline object. This field will be present in the
307
+ # JSON response if and only if `category` is equal to
308
+ # `inbound_fednow_transfer_decline`.
309
+ sig do
310
+ returns(
311
+ T.nilable(
312
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline
313
+ )
314
+ )
315
+ end
316
+ attr_reader :inbound_fednow_transfer_decline
317
+
318
+ sig do
319
+ params(
320
+ inbound_fednow_transfer_decline:
321
+ T.nilable(
322
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::OrHash
323
+ )
324
+ ).void
325
+ end
326
+ attr_writer :inbound_fednow_transfer_decline
327
+
306
328
  # An Inbound Real-Time Payments Transfer Decline object. This field will be
307
329
  # present in the JSON response if and only if `category` is equal to
308
330
  # `inbound_real_time_payments_transfer_decline`.
@@ -371,6 +393,10 @@ module Increase
371
393
  T.nilable(
372
394
  Increase::DeclinedTransaction::Source::CheckDepositRejection::OrHash
373
395
  ),
396
+ inbound_fednow_transfer_decline:
397
+ T.nilable(
398
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::OrHash
399
+ ),
374
400
  inbound_real_time_payments_transfer_decline:
375
401
  T.nilable(
376
402
  Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline::OrHash
@@ -398,6 +424,10 @@ module Increase
398
424
  # A Check Deposit Rejection object. This field will be present in the JSON
399
425
  # response if and only if `category` is equal to `check_deposit_rejection`.
400
426
  check_deposit_rejection:,
427
+ # An Inbound FedNow Transfer Decline object. This field will be present in the
428
+ # JSON response if and only if `category` is equal to
429
+ # `inbound_fednow_transfer_decline`.
430
+ inbound_fednow_transfer_decline:,
401
431
  # An Inbound Real-Time Payments Transfer Decline object. This field will be
402
432
  # present in the JSON response if and only if `category` is equal to
403
433
  # `inbound_real_time_payments_transfer_decline`.
@@ -426,6 +456,10 @@ module Increase
426
456
  T.nilable(
427
457
  Increase::DeclinedTransaction::Source::CheckDepositRejection
428
458
  ),
459
+ inbound_fednow_transfer_decline:
460
+ T.nilable(
461
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline
462
+ ),
429
463
  inbound_real_time_payments_transfer_decline:
430
464
  T.nilable(
431
465
  Increase::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline
@@ -3116,6 +3150,13 @@ module Increase
3116
3150
  Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3117
3151
  )
3118
3152
 
3153
+ # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
3154
+ INBOUND_FEDNOW_TRANSFER_DECLINE =
3155
+ T.let(
3156
+ :inbound_fednow_transfer_decline,
3157
+ Increase::DeclinedTransaction::Source::Category::TaggedSymbol
3158
+ )
3159
+
3119
3160
  # Wire Decline: details will be under the `wire_decline` object.
3120
3161
  WIRE_DECLINE =
3121
3162
  T.let(
@@ -3660,6 +3701,124 @@ module Increase
3660
3701
  end
3661
3702
  end
3662
3703
 
3704
+ class InboundFednowTransferDecline < Increase::Internal::Type::BaseModel
3705
+ OrHash =
3706
+ T.type_alias do
3707
+ T.any(
3708
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline,
3709
+ Increase::Internal::AnyHash
3710
+ )
3711
+ end
3712
+
3713
+ # Why the transfer was declined.
3714
+ sig do
3715
+ returns(
3716
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3717
+ )
3718
+ end
3719
+ attr_accessor :reason
3720
+
3721
+ # The identifier of the FedNow Transfer that led to this declined transaction.
3722
+ sig { returns(String) }
3723
+ attr_accessor :transfer_id
3724
+
3725
+ # An Inbound FedNow Transfer Decline object. This field will be present in the
3726
+ # JSON response if and only if `category` is equal to
3727
+ # `inbound_fednow_transfer_decline`.
3728
+ sig do
3729
+ params(
3730
+ reason:
3731
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::OrSymbol,
3732
+ transfer_id: String
3733
+ ).returns(T.attached_class)
3734
+ end
3735
+ def self.new(
3736
+ # Why the transfer was declined.
3737
+ reason:,
3738
+ # The identifier of the FedNow Transfer that led to this declined transaction.
3739
+ transfer_id:
3740
+ )
3741
+ end
3742
+
3743
+ sig do
3744
+ override.returns(
3745
+ {
3746
+ reason:
3747
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol,
3748
+ transfer_id: String
3749
+ }
3750
+ )
3751
+ end
3752
+ def to_hash
3753
+ end
3754
+
3755
+ # Why the transfer was declined.
3756
+ module Reason
3757
+ extend Increase::Internal::Type::Enum
3758
+
3759
+ TaggedSymbol =
3760
+ T.type_alias do
3761
+ T.all(
3762
+ Symbol,
3763
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason
3764
+ )
3765
+ end
3766
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
3767
+
3768
+ # The account number is canceled.
3769
+ ACCOUNT_NUMBER_CANCELED =
3770
+ T.let(
3771
+ :account_number_canceled,
3772
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3773
+ )
3774
+
3775
+ # The account number is disabled.
3776
+ ACCOUNT_NUMBER_DISABLED =
3777
+ T.let(
3778
+ :account_number_disabled,
3779
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3780
+ )
3781
+
3782
+ # Your account is restricted.
3783
+ ACCOUNT_RESTRICTED =
3784
+ T.let(
3785
+ :account_restricted,
3786
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3787
+ )
3788
+
3789
+ # Your account is inactive.
3790
+ GROUP_LOCKED =
3791
+ T.let(
3792
+ :group_locked,
3793
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3794
+ )
3795
+
3796
+ # The account's entity is not active.
3797
+ ENTITY_NOT_ACTIVE =
3798
+ T.let(
3799
+ :entity_not_active,
3800
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3801
+ )
3802
+
3803
+ # Your account is not enabled to receive FedNow transfers.
3804
+ FEDNOW_NOT_ENABLED =
3805
+ T.let(
3806
+ :fednow_not_enabled,
3807
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3808
+ )
3809
+
3810
+ sig do
3811
+ override.returns(
3812
+ T::Array[
3813
+ Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason::TaggedSymbol
3814
+ ]
3815
+ )
3816
+ end
3817
+ def self.values
3818
+ end
3819
+ end
3820
+ end
3821
+
3663
3822
  class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel
3664
3823
  OrHash =
3665
3824
  T.type_alias do
@@ -211,6 +211,13 @@ module Increase
211
211
  Increase::DeclinedTransactionListParams::Category::In::TaggedSymbol
212
212
  )
213
213
 
214
+ # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
215
+ INBOUND_FEDNOW_TRANSFER_DECLINE =
216
+ T.let(
217
+ :inbound_fednow_transfer_decline,
218
+ Increase::DeclinedTransactionListParams::Category::In::TaggedSymbol
219
+ )
220
+
214
221
  # Wire Decline: details will be under the `wire_decline` object.
215
222
  WIRE_DECLINE =
216
223
  T.let(
@@ -408,6 +408,20 @@ module Increase
408
408
  Increase::Event::Category::TaggedSymbol
409
409
  )
410
410
 
411
+ # Occurs whenever an Inbound FedNow Transfer is created.
412
+ INBOUND_FEDNOW_TRANSFER_CREATED =
413
+ T.let(
414
+ :"inbound_fednow_transfer.created",
415
+ Increase::Event::Category::TaggedSymbol
416
+ )
417
+
418
+ # Occurs whenever an Inbound FedNow Transfer is updated.
419
+ INBOUND_FEDNOW_TRANSFER_UPDATED =
420
+ T.let(
421
+ :"inbound_fednow_transfer.updated",
422
+ Increase::Event::Category::TaggedSymbol
423
+ )
424
+
411
425
  # Occurs whenever an Inbound Mail Item is created.
412
426
  INBOUND_MAIL_ITEM_CREATED =
413
427
  T.let(
@@ -501,6 +501,20 @@ module Increase
501
501
  Increase::EventListParams::Category::In::TaggedSymbol
502
502
  )
503
503
 
504
+ # Occurs whenever an Inbound FedNow Transfer is created.
505
+ INBOUND_FEDNOW_TRANSFER_CREATED =
506
+ T.let(
507
+ :"inbound_fednow_transfer.created",
508
+ Increase::EventListParams::Category::In::TaggedSymbol
509
+ )
510
+
511
+ # Occurs whenever an Inbound FedNow Transfer is updated.
512
+ INBOUND_FEDNOW_TRANSFER_UPDATED =
513
+ T.let(
514
+ :"inbound_fednow_transfer.updated",
515
+ Increase::EventListParams::Category::In::TaggedSymbol
516
+ )
517
+
504
518
  # Occurs whenever an Inbound Mail Item is created.
505
519
  INBOUND_MAIL_ITEM_CREATED =
506
520
  T.let(
@@ -485,6 +485,20 @@ module Increase
485
485
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
486
486
  )
487
487
 
488
+ # Occurs whenever an Inbound FedNow Transfer is created.
489
+ INBOUND_FEDNOW_TRANSFER_CREATED =
490
+ T.let(
491
+ :"inbound_fednow_transfer.created",
492
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
493
+ )
494
+
495
+ # Occurs whenever an Inbound FedNow Transfer is updated.
496
+ INBOUND_FEDNOW_TRANSFER_UPDATED =
497
+ T.let(
498
+ :"inbound_fednow_transfer.updated",
499
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
500
+ )
501
+
488
502
  # Occurs whenever an Inbound Mail Item is created.
489
503
  INBOUND_MAIL_ITEM_CREATED =
490
504
  T.let(
@@ -465,6 +465,20 @@ module Increase
465
465
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
466
466
  )
467
467
 
468
+ # Occurs whenever an Inbound FedNow Transfer is created.
469
+ INBOUND_FEDNOW_TRANSFER_CREATED =
470
+ T.let(
471
+ :"inbound_fednow_transfer.created",
472
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
473
+ )
474
+
475
+ # Occurs whenever an Inbound FedNow Transfer is updated.
476
+ INBOUND_FEDNOW_TRANSFER_UPDATED =
477
+ T.let(
478
+ :"inbound_fednow_transfer.updated",
479
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
480
+ )
481
+
468
482
  # Occurs whenever an Inbound Mail Item is created.
469
483
  INBOUND_MAIL_ITEM_CREATED =
470
484
  T.let(
@@ -650,6 +650,30 @@ module Increase
650
650
  end
651
651
  attr_writer :inbound_check_deposit_return_intention
652
652
 
653
+ # An Inbound FedNow Transfer Confirmation object. This field will be present in
654
+ # the JSON response if and only if `category` is equal to
655
+ # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
656
+ # is created when a FedNow transfer is initiated at another bank and received by
657
+ # Increase.
658
+ sig do
659
+ returns(
660
+ T.nilable(
661
+ Increase::Transaction::Source::InboundFednowTransferConfirmation
662
+ )
663
+ )
664
+ end
665
+ attr_reader :inbound_fednow_transfer_confirmation
666
+
667
+ sig do
668
+ params(
669
+ inbound_fednow_transfer_confirmation:
670
+ T.nilable(
671
+ Increase::Transaction::Source::InboundFednowTransferConfirmation::OrHash
672
+ )
673
+ ).void
674
+ end
675
+ attr_writer :inbound_fednow_transfer_confirmation
676
+
653
677
  # An Inbound Real-Time Payments Transfer Confirmation object. This field will be
654
678
  # present in the JSON response if and only if `category` is equal to
655
679
  # `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time
@@ -956,6 +980,10 @@ module Increase
956
980
  T.nilable(
957
981
  Increase::Transaction::Source::InboundCheckDepositReturnIntention::OrHash
958
982
  ),
983
+ inbound_fednow_transfer_confirmation:
984
+ T.nilable(
985
+ Increase::Transaction::Source::InboundFednowTransferConfirmation::OrHash
986
+ ),
959
987
  inbound_real_time_payments_transfer_confirmation:
960
988
  T.nilable(
961
989
  Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation::OrHash
@@ -1115,6 +1143,12 @@ module Increase
1115
1143
  # Intention is created when Increase receives an Inbound Check and the User
1116
1144
  # requests that it be returned.
1117
1145
  inbound_check_deposit_return_intention:,
1146
+ # An Inbound FedNow Transfer Confirmation object. This field will be present in
1147
+ # the JSON response if and only if `category` is equal to
1148
+ # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
1149
+ # is created when a FedNow transfer is initiated at another bank and received by
1150
+ # Increase.
1151
+ inbound_fednow_transfer_confirmation:,
1118
1152
  # An Inbound Real-Time Payments Transfer Confirmation object. This field will be
1119
1153
  # present in the JSON response if and only if `category` is equal to
1120
1154
  # `inbound_real_time_payments_transfer_confirmation`. An Inbound Real-Time
@@ -1235,6 +1269,10 @@ module Increase
1235
1269
  T.nilable(
1236
1270
  Increase::Transaction::Source::InboundCheckDepositReturnIntention
1237
1271
  ),
1272
+ inbound_fednow_transfer_confirmation:
1273
+ T.nilable(
1274
+ Increase::Transaction::Source::InboundFednowTransferConfirmation
1275
+ ),
1238
1276
  inbound_real_time_payments_transfer_confirmation:
1239
1277
  T.nilable(
1240
1278
  Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation
@@ -7975,6 +8013,13 @@ module Increase
7975
8013
  Increase::Transaction::Source::Category::TaggedSymbol
7976
8014
  )
7977
8015
 
8016
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
8017
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION =
8018
+ T.let(
8019
+ :inbound_fednow_transfer_confirmation,
8020
+ Increase::Transaction::Source::Category::TaggedSymbol
8021
+ )
8022
+
7978
8023
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
7979
8024
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
7980
8025
  T.let(
@@ -9463,6 +9508,36 @@ module Increase
9463
9508
  end
9464
9509
  end
9465
9510
 
9511
+ class InboundFednowTransferConfirmation < Increase::Internal::Type::BaseModel
9512
+ OrHash =
9513
+ T.type_alias do
9514
+ T.any(
9515
+ Increase::Transaction::Source::InboundFednowTransferConfirmation,
9516
+ Increase::Internal::AnyHash
9517
+ )
9518
+ end
9519
+
9520
+ # The identifier of the FedNow Transfer that led to this Transaction.
9521
+ sig { returns(String) }
9522
+ attr_accessor :transfer_id
9523
+
9524
+ # An Inbound FedNow Transfer Confirmation object. This field will be present in
9525
+ # the JSON response if and only if `category` is equal to
9526
+ # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
9527
+ # is created when a FedNow transfer is initiated at another bank and received by
9528
+ # Increase.
9529
+ sig { params(transfer_id: String).returns(T.attached_class) }
9530
+ def self.new(
9531
+ # The identifier of the FedNow Transfer that led to this Transaction.
9532
+ transfer_id:
9533
+ )
9534
+ end
9535
+
9536
+ sig { override.returns({ transfer_id: String }) }
9537
+ def to_hash
9538
+ end
9539
+ end
9540
+
9466
9541
  class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel
9467
9542
  OrHash =
9468
9543
  T.type_alias do
@@ -306,6 +306,13 @@ module Increase
306
306
  Increase::TransactionListParams::Category::In::TaggedSymbol
307
307
  )
308
308
 
309
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
310
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION =
311
+ T.let(
312
+ :inbound_fednow_transfer_confirmation,
313
+ Increase::TransactionListParams::Category::In::TaggedSymbol
314
+ )
315
+
309
316
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
310
317
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION =
311
318
  T.let(