increase 1.0.0 → 1.1.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 (61) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +25 -0
  3. data/README.md +1 -1
  4. data/lib/increase/errors.rb +22 -0
  5. data/lib/increase/internal/type/array_of.rb +6 -1
  6. data/lib/increase/internal/type/base_model.rb +77 -25
  7. data/lib/increase/internal/type/boolean.rb +7 -1
  8. data/lib/increase/internal/type/converter.rb +42 -34
  9. data/lib/increase/internal/type/enum.rb +10 -2
  10. data/lib/increase/internal/type/file_input.rb +6 -1
  11. data/lib/increase/internal/type/hash_of.rb +6 -1
  12. data/lib/increase/internal/type/union.rb +12 -7
  13. data/lib/increase/internal/type/unknown.rb +7 -1
  14. data/lib/increase/models/card_payment.rb +13 -13
  15. data/lib/increase/models/check_transfer.rb +24 -1
  16. data/lib/increase/models/check_transfer_create_params.rb +26 -2
  17. data/lib/increase/models/event.rb +22 -4
  18. data/lib/increase/models/event_list_params.rb +22 -4
  19. data/lib/increase/models/event_subscription.rb +22 -4
  20. data/lib/increase/models/event_subscription_create_params.rb +22 -4
  21. data/lib/increase/models/inbound_ach_transfer.rb +56 -26
  22. data/lib/increase/models/inbound_mail_item.rb +38 -1
  23. data/lib/increase/models/pending_transaction.rb +37 -44
  24. data/lib/increase/models/pending_transaction_list_params.rb +2 -2
  25. data/lib/increase/models/transaction.rb +41 -43
  26. data/lib/increase/models/transaction_list_params.rb +2 -2
  27. data/lib/increase/version.rb +1 -1
  28. data/rbi/increase/errors.rbi +16 -0
  29. data/rbi/increase/internal/type/boolean.rbi +2 -0
  30. data/rbi/increase/internal/type/converter.rbi +15 -15
  31. data/rbi/increase/internal/type/union.rbi +5 -0
  32. data/rbi/increase/internal/type/unknown.rbi +2 -0
  33. data/rbi/increase/models/card_payment.rbi +18 -18
  34. data/rbi/increase/models/check_transfer.rbi +36 -0
  35. data/rbi/increase/models/check_transfer_create_params.rbi +63 -2
  36. data/rbi/increase/models/event.rbi +46 -4
  37. data/rbi/increase/models/event_list_params.rbi +46 -4
  38. data/rbi/increase/models/event_subscription.rbi +46 -4
  39. data/rbi/increase/models/event_subscription_create_params.rbi +46 -4
  40. data/rbi/increase/models/inbound_ach_transfer.rbi +108 -52
  41. data/rbi/increase/models/inbound_mail_item.rbi +57 -0
  42. data/rbi/increase/models/pending_transaction.rbi +72 -77
  43. data/rbi/increase/models/pending_transaction_list_params.rbi +3 -3
  44. data/rbi/increase/models/transaction.rbi +76 -81
  45. data/rbi/increase/models/transaction_list_params.rbi +3 -3
  46. data/sig/increase/errors.rbs +9 -0
  47. data/sig/increase/internal/type/converter.rbs +7 -1
  48. data/sig/increase/models/card_payment.rbs +3 -3
  49. data/sig/increase/models/check_transfer.rbs +15 -0
  50. data/sig/increase/models/check_transfer_create_params.rbs +19 -0
  51. data/sig/increase/models/event.rbs +28 -4
  52. data/sig/increase/models/event_list_params.rbs +28 -4
  53. data/sig/increase/models/event_subscription.rbs +28 -4
  54. data/sig/increase/models/event_subscription_create_params.rbs +28 -4
  55. data/sig/increase/models/inbound_ach_transfer.rbs +41 -19
  56. data/sig/increase/models/inbound_mail_item.rbs +28 -0
  57. data/sig/increase/models/pending_transaction.rbs +21 -21
  58. data/sig/increase/models/pending_transaction_list_params.rbs +3 -3
  59. data/sig/increase/models/transaction.rbs +21 -21
  60. data/sig/increase/models/transaction_list_params.rbs +3 -3
  61. metadata +2 -2
@@ -231,6 +231,30 @@ module Increase
231
231
  sig { params(note: String).void }
232
232
  attr_writer :note
233
233
 
234
+ # The payer of the check. This will be printed on the top-left portion of the
235
+ # check and defaults to the return address if unspecified. This should be an array
236
+ # of up to 4 elements, each of which represents a line of the payer.
237
+ sig do
238
+ returns(
239
+ T.nilable(
240
+ T::Array[
241
+ Increase::CheckTransferCreateParams::PhysicalCheck::Payer
242
+ ]
243
+ )
244
+ )
245
+ end
246
+ attr_reader :payer
247
+
248
+ sig do
249
+ params(
250
+ payer:
251
+ T::Array[
252
+ Increase::CheckTransferCreateParams::PhysicalCheck::Payer::OrHash
253
+ ]
254
+ ).void
255
+ end
256
+ attr_writer :payer
257
+
234
258
  # The return address to be printed on the check. If omitted this will default to
235
259
  # an Increase-owned address that will mark checks as delivery failed and shred
236
260
  # them.
@@ -289,6 +313,10 @@ module Increase
289
313
  recipient_name: String,
290
314
  attachment_file_id: String,
291
315
  note: String,
316
+ payer:
317
+ T::Array[
318
+ Increase::CheckTransferCreateParams::PhysicalCheck::Payer::OrHash
319
+ ],
292
320
  return_address:
293
321
  Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress::OrHash,
294
322
  shipping_method:
@@ -309,6 +337,10 @@ module Increase
309
337
  attachment_file_id: nil,
310
338
  # The descriptor that will be printed on the letter included with the check.
311
339
  note: nil,
340
+ # The payer of the check. This will be printed on the top-left portion of the
341
+ # check and defaults to the return address if unspecified. This should be an array
342
+ # of up to 4 elements, each of which represents a line of the payer.
343
+ payer: nil,
312
344
  # The return address to be printed on the check. If omitted this will default to
313
345
  # an Increase-owned address that will mark checks as delivery failed and shred
314
346
  # them.
@@ -331,6 +363,10 @@ module Increase
331
363
  recipient_name: String,
332
364
  attachment_file_id: String,
333
365
  note: String,
366
+ payer:
367
+ T::Array[
368
+ Increase::CheckTransferCreateParams::PhysicalCheck::Payer
369
+ ],
334
370
  return_address:
335
371
  Increase::CheckTransferCreateParams::PhysicalCheck::ReturnAddress,
336
372
  shipping_method:
@@ -413,6 +449,31 @@ module Increase
413
449
  end
414
450
  end
415
451
 
452
+ class Payer < Increase::Internal::Type::BaseModel
453
+ OrHash =
454
+ T.type_alias do
455
+ T.any(
456
+ Increase::CheckTransferCreateParams::PhysicalCheck::Payer,
457
+ Increase::Internal::AnyHash
458
+ )
459
+ end
460
+
461
+ # The contents of the line.
462
+ sig { returns(String) }
463
+ attr_accessor :contents
464
+
465
+ sig { params(contents: String).returns(T.attached_class) }
466
+ def self.new(
467
+ # The contents of the line.
468
+ contents:
469
+ )
470
+ end
471
+
472
+ sig { override.returns({ contents: String }) }
473
+ def to_hash
474
+ end
475
+ end
476
+
416
477
  class ReturnAddress < Increase::Internal::Type::BaseModel
417
478
  OrHash =
418
479
  T.type_alias do
@@ -545,7 +606,7 @@ module Increase
545
606
 
546
607
  # The pay-to name you will print on the check. If provided, this is used for
547
608
  # [Positive Pay](/documentation/positive-pay). If this is omitted, Increase will
548
- # be unable to validate the payee name when the check is deposited.
609
+ # be unable to validate the payer name when the check is deposited.
549
610
  sig { returns(T.nilable(String)) }
550
611
  attr_reader :recipient_name
551
612
 
@@ -559,7 +620,7 @@ module Increase
559
620
  def self.new(
560
621
  # The pay-to name you will print on the check. If provided, this is used for
561
622
  # [Positive Pay](/documentation/positive-pay). If this is omitted, Increase will
562
- # be unable to validate the payee name when the check is deposited.
623
+ # be unable to validate the payer name when the check is deposited.
563
624
  recipient_name: nil
564
625
  )
565
626
  end
@@ -493,34 +493,62 @@ module Increase
493
493
  Increase::Event::Category::TaggedSymbol
494
494
  )
495
495
 
496
- # Occurs whenever an Outbound Card Push Transfer is created.
496
+ # Occurs whenever a Card Push Transfer is created.
497
497
  OUTBOUND_CARD_PUSH_TRANSFER_CREATED =
498
498
  T.let(
499
499
  :"outbound_card_push_transfer.created",
500
500
  Increase::Event::Category::TaggedSymbol
501
501
  )
502
502
 
503
- # Occurs whenever an Outbound Card Push Transfer is updated.
503
+ # Occurs whenever a Card Push Transfer is updated.
504
504
  OUTBOUND_CARD_PUSH_TRANSFER_UPDATED =
505
505
  T.let(
506
506
  :"outbound_card_push_transfer.updated",
507
507
  Increase::Event::Category::TaggedSymbol
508
508
  )
509
509
 
510
- # Occurs whenever an Outbound Card Validation is created.
510
+ # Occurs whenever a Card Validation is created.
511
511
  OUTBOUND_CARD_VALIDATION_CREATED =
512
512
  T.let(
513
513
  :"outbound_card_validation.created",
514
514
  Increase::Event::Category::TaggedSymbol
515
515
  )
516
516
 
517
- # Occurs whenever an Outbound Card Validation is updated.
517
+ # Occurs whenever a Card Validation is updated.
518
518
  OUTBOUND_CARD_VALIDATION_UPDATED =
519
519
  T.let(
520
520
  :"outbound_card_validation.updated",
521
521
  Increase::Event::Category::TaggedSymbol
522
522
  )
523
523
 
524
+ # Occurs whenever a Card Push Transfer is created.
525
+ CARD_PUSH_TRANSFER_CREATED =
526
+ T.let(
527
+ :"card_push_transfer.created",
528
+ Increase::Event::Category::TaggedSymbol
529
+ )
530
+
531
+ # Occurs whenever a Card Push Transfer is updated.
532
+ CARD_PUSH_TRANSFER_UPDATED =
533
+ T.let(
534
+ :"card_push_transfer.updated",
535
+ Increase::Event::Category::TaggedSymbol
536
+ )
537
+
538
+ # Occurs whenever a Card Validation is created.
539
+ CARD_VALIDATION_CREATED =
540
+ T.let(
541
+ :"card_validation.created",
542
+ Increase::Event::Category::TaggedSymbol
543
+ )
544
+
545
+ # Occurs whenever a Card Validation is updated.
546
+ CARD_VALIDATION_UPDATED =
547
+ T.let(
548
+ :"card_validation.updated",
549
+ Increase::Event::Category::TaggedSymbol
550
+ )
551
+
524
552
  # Occurs whenever a Pending Transaction is created.
525
553
  PENDING_TRANSACTION_CREATED =
526
554
  T.let(
@@ -640,6 +668,20 @@ module Increase
640
668
  Increase::Event::Category::TaggedSymbol
641
669
  )
642
670
 
671
+ # Occurs whenever a Swift Transfer is created.
672
+ SWIFT_TRANSFER_CREATED =
673
+ T.let(
674
+ :"swift_transfer.created",
675
+ Increase::Event::Category::TaggedSymbol
676
+ )
677
+
678
+ # Occurs whenever a Swift Transfer is updated.
679
+ SWIFT_TRANSFER_UPDATED =
680
+ T.let(
681
+ :"swift_transfer.updated",
682
+ Increase::Event::Category::TaggedSymbol
683
+ )
684
+
643
685
  # Occurs whenever a Transaction is created.
644
686
  TRANSACTION_CREATED =
645
687
  T.let(:"transaction.created", Increase::Event::Category::TaggedSymbol)
@@ -592,34 +592,62 @@ module Increase
592
592
  Increase::EventListParams::Category::In::TaggedSymbol
593
593
  )
594
594
 
595
- # Occurs whenever an Outbound Card Push Transfer is created.
595
+ # Occurs whenever a Card Push Transfer is created.
596
596
  OUTBOUND_CARD_PUSH_TRANSFER_CREATED =
597
597
  T.let(
598
598
  :"outbound_card_push_transfer.created",
599
599
  Increase::EventListParams::Category::In::TaggedSymbol
600
600
  )
601
601
 
602
- # Occurs whenever an Outbound Card Push Transfer is updated.
602
+ # Occurs whenever a Card Push Transfer is updated.
603
603
  OUTBOUND_CARD_PUSH_TRANSFER_UPDATED =
604
604
  T.let(
605
605
  :"outbound_card_push_transfer.updated",
606
606
  Increase::EventListParams::Category::In::TaggedSymbol
607
607
  )
608
608
 
609
- # Occurs whenever an Outbound Card Validation is created.
609
+ # Occurs whenever a Card Validation is created.
610
610
  OUTBOUND_CARD_VALIDATION_CREATED =
611
611
  T.let(
612
612
  :"outbound_card_validation.created",
613
613
  Increase::EventListParams::Category::In::TaggedSymbol
614
614
  )
615
615
 
616
- # Occurs whenever an Outbound Card Validation is updated.
616
+ # Occurs whenever a Card Validation is updated.
617
617
  OUTBOUND_CARD_VALIDATION_UPDATED =
618
618
  T.let(
619
619
  :"outbound_card_validation.updated",
620
620
  Increase::EventListParams::Category::In::TaggedSymbol
621
621
  )
622
622
 
623
+ # Occurs whenever a Card Push Transfer is created.
624
+ CARD_PUSH_TRANSFER_CREATED =
625
+ T.let(
626
+ :"card_push_transfer.created",
627
+ Increase::EventListParams::Category::In::TaggedSymbol
628
+ )
629
+
630
+ # Occurs whenever a Card Push Transfer is updated.
631
+ CARD_PUSH_TRANSFER_UPDATED =
632
+ T.let(
633
+ :"card_push_transfer.updated",
634
+ Increase::EventListParams::Category::In::TaggedSymbol
635
+ )
636
+
637
+ # Occurs whenever a Card Validation is created.
638
+ CARD_VALIDATION_CREATED =
639
+ T.let(
640
+ :"card_validation.created",
641
+ Increase::EventListParams::Category::In::TaggedSymbol
642
+ )
643
+
644
+ # Occurs whenever a Card Validation is updated.
645
+ CARD_VALIDATION_UPDATED =
646
+ T.let(
647
+ :"card_validation.updated",
648
+ Increase::EventListParams::Category::In::TaggedSymbol
649
+ )
650
+
623
651
  # Occurs whenever a Pending Transaction is created.
624
652
  PENDING_TRANSACTION_CREATED =
625
653
  T.let(
@@ -739,6 +767,20 @@ module Increase
739
767
  Increase::EventListParams::Category::In::TaggedSymbol
740
768
  )
741
769
 
770
+ # Occurs whenever a Swift Transfer is created.
771
+ SWIFT_TRANSFER_CREATED =
772
+ T.let(
773
+ :"swift_transfer.created",
774
+ Increase::EventListParams::Category::In::TaggedSymbol
775
+ )
776
+
777
+ # Occurs whenever a Swift Transfer is updated.
778
+ SWIFT_TRANSFER_UPDATED =
779
+ T.let(
780
+ :"swift_transfer.updated",
781
+ Increase::EventListParams::Category::In::TaggedSymbol
782
+ )
783
+
742
784
  # Occurs whenever a Transaction is created.
743
785
  TRANSACTION_CREATED =
744
786
  T.let(
@@ -576,34 +576,62 @@ module Increase
576
576
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
577
577
  )
578
578
 
579
- # Occurs whenever an Outbound Card Push Transfer is created.
579
+ # Occurs whenever a Card Push Transfer is created.
580
580
  OUTBOUND_CARD_PUSH_TRANSFER_CREATED =
581
581
  T.let(
582
582
  :"outbound_card_push_transfer.created",
583
583
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
584
584
  )
585
585
 
586
- # Occurs whenever an Outbound Card Push Transfer is updated.
586
+ # Occurs whenever a Card Push Transfer is updated.
587
587
  OUTBOUND_CARD_PUSH_TRANSFER_UPDATED =
588
588
  T.let(
589
589
  :"outbound_card_push_transfer.updated",
590
590
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
591
591
  )
592
592
 
593
- # Occurs whenever an Outbound Card Validation is created.
593
+ # Occurs whenever a Card Validation is created.
594
594
  OUTBOUND_CARD_VALIDATION_CREATED =
595
595
  T.let(
596
596
  :"outbound_card_validation.created",
597
597
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
598
598
  )
599
599
 
600
- # Occurs whenever an Outbound Card Validation is updated.
600
+ # Occurs whenever a Card Validation is updated.
601
601
  OUTBOUND_CARD_VALIDATION_UPDATED =
602
602
  T.let(
603
603
  :"outbound_card_validation.updated",
604
604
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
605
605
  )
606
606
 
607
+ # Occurs whenever a Card Push Transfer is created.
608
+ CARD_PUSH_TRANSFER_CREATED =
609
+ T.let(
610
+ :"card_push_transfer.created",
611
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
612
+ )
613
+
614
+ # Occurs whenever a Card Push Transfer is updated.
615
+ CARD_PUSH_TRANSFER_UPDATED =
616
+ T.let(
617
+ :"card_push_transfer.updated",
618
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
619
+ )
620
+
621
+ # Occurs whenever a Card Validation is created.
622
+ CARD_VALIDATION_CREATED =
623
+ T.let(
624
+ :"card_validation.created",
625
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
626
+ )
627
+
628
+ # Occurs whenever a Card Validation is updated.
629
+ CARD_VALIDATION_UPDATED =
630
+ T.let(
631
+ :"card_validation.updated",
632
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
633
+ )
634
+
607
635
  # Occurs whenever a Pending Transaction is created.
608
636
  PENDING_TRANSACTION_CREATED =
609
637
  T.let(
@@ -723,6 +751,20 @@ module Increase
723
751
  Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
724
752
  )
725
753
 
754
+ # Occurs whenever a Swift Transfer is created.
755
+ SWIFT_TRANSFER_CREATED =
756
+ T.let(
757
+ :"swift_transfer.created",
758
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
759
+ )
760
+
761
+ # Occurs whenever a Swift Transfer is updated.
762
+ SWIFT_TRANSFER_UPDATED =
763
+ T.let(
764
+ :"swift_transfer.updated",
765
+ Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
766
+ )
767
+
726
768
  # Occurs whenever a Transaction is created.
727
769
  TRANSACTION_CREATED =
728
770
  T.let(
@@ -556,34 +556,62 @@ module Increase
556
556
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
557
557
  )
558
558
 
559
- # Occurs whenever an Outbound Card Push Transfer is created.
559
+ # Occurs whenever a Card Push Transfer is created.
560
560
  OUTBOUND_CARD_PUSH_TRANSFER_CREATED =
561
561
  T.let(
562
562
  :"outbound_card_push_transfer.created",
563
563
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
564
564
  )
565
565
 
566
- # Occurs whenever an Outbound Card Push Transfer is updated.
566
+ # Occurs whenever a Card Push Transfer is updated.
567
567
  OUTBOUND_CARD_PUSH_TRANSFER_UPDATED =
568
568
  T.let(
569
569
  :"outbound_card_push_transfer.updated",
570
570
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
571
571
  )
572
572
 
573
- # Occurs whenever an Outbound Card Validation is created.
573
+ # Occurs whenever a Card Validation is created.
574
574
  OUTBOUND_CARD_VALIDATION_CREATED =
575
575
  T.let(
576
576
  :"outbound_card_validation.created",
577
577
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
578
578
  )
579
579
 
580
- # Occurs whenever an Outbound Card Validation is updated.
580
+ # Occurs whenever a Card Validation is updated.
581
581
  OUTBOUND_CARD_VALIDATION_UPDATED =
582
582
  T.let(
583
583
  :"outbound_card_validation.updated",
584
584
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
585
585
  )
586
586
 
587
+ # Occurs whenever a Card Push Transfer is created.
588
+ CARD_PUSH_TRANSFER_CREATED =
589
+ T.let(
590
+ :"card_push_transfer.created",
591
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
592
+ )
593
+
594
+ # Occurs whenever a Card Push Transfer is updated.
595
+ CARD_PUSH_TRANSFER_UPDATED =
596
+ T.let(
597
+ :"card_push_transfer.updated",
598
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
599
+ )
600
+
601
+ # Occurs whenever a Card Validation is created.
602
+ CARD_VALIDATION_CREATED =
603
+ T.let(
604
+ :"card_validation.created",
605
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
606
+ )
607
+
608
+ # Occurs whenever a Card Validation is updated.
609
+ CARD_VALIDATION_UPDATED =
610
+ T.let(
611
+ :"card_validation.updated",
612
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
613
+ )
614
+
587
615
  # Occurs whenever a Pending Transaction is created.
588
616
  PENDING_TRANSACTION_CREATED =
589
617
  T.let(
@@ -703,6 +731,20 @@ module Increase
703
731
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
704
732
  )
705
733
 
734
+ # Occurs whenever a Swift Transfer is created.
735
+ SWIFT_TRANSFER_CREATED =
736
+ T.let(
737
+ :"swift_transfer.created",
738
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
739
+ )
740
+
741
+ # Occurs whenever a Swift Transfer is updated.
742
+ SWIFT_TRANSFER_UPDATED =
743
+ T.let(
744
+ :"swift_transfer.updated",
745
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
746
+ )
747
+
706
748
  # Occurs whenever a Transaction is created.
707
749
  TRANSACTION_CREATED =
708
750
  T.let(
@@ -76,14 +76,6 @@ module Increase
76
76
  sig { returns(Date) }
77
77
  attr_accessor :effective_date
78
78
 
79
- # The settlement schedule the transfer is expected to follow.
80
- sig do
81
- returns(
82
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
83
- )
84
- end
85
- attr_accessor :expected_settlement_schedule
86
-
87
79
  # If the Inbound ACH Transfer has a Standard Entry Class Code of IAT, this will
88
80
  # contain fields pertaining to the International ACH Transaction.
89
81
  sig do
@@ -151,6 +143,18 @@ module Increase
151
143
  sig { returns(T.nilable(String)) }
152
144
  attr_accessor :receiver_name
153
145
 
146
+ # A subhash containing information about when and how the transfer settled at the
147
+ # Federal Reserve.
148
+ sig { returns(Increase::InboundACHTransfer::Settlement) }
149
+ attr_reader :settlement
150
+
151
+ sig do
152
+ params(
153
+ settlement: Increase::InboundACHTransfer::Settlement::OrHash
154
+ ).void
155
+ end
156
+ attr_writer :settlement
157
+
154
158
  # The Standard Entry Class (SEC) code of the transfer.
155
159
  sig do
156
160
  returns(
@@ -203,8 +207,6 @@ module Increase
203
207
  decline: T.nilable(Increase::InboundACHTransfer::Decline::OrHash),
204
208
  direction: Increase::InboundACHTransfer::Direction::OrSymbol,
205
209
  effective_date: Date,
206
- expected_settlement_schedule:
207
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::OrSymbol,
208
210
  international_addenda:
209
211
  T.nilable(
210
212
  Increase::InboundACHTransfer::InternationalAddenda::OrHash
@@ -221,6 +223,7 @@ module Increase
221
223
  originator_routing_number: String,
222
224
  receiver_id_number: T.nilable(String),
223
225
  receiver_name: T.nilable(String),
226
+ settlement: Increase::InboundACHTransfer::Settlement::OrHash,
224
227
  standard_entry_class_code:
225
228
  Increase::InboundACHTransfer::StandardEntryClassCode::OrSymbol,
226
229
  status: Increase::InboundACHTransfer::Status::OrSymbol,
@@ -255,8 +258,6 @@ module Increase
255
258
  # The effective date of the transfer. This is sent by the sending bank and is a
256
259
  # factor in determining funds availability.
257
260
  effective_date:,
258
- # The settlement schedule the transfer is expected to follow.
259
- expected_settlement_schedule:,
260
261
  # If the Inbound ACH Transfer has a Standard Entry Class Code of IAT, this will
261
262
  # contain fields pertaining to the International ACH Transaction.
262
263
  international_addenda:,
@@ -280,6 +281,9 @@ module Increase
280
281
  receiver_id_number:,
281
282
  # The name of the receiver of the transfer.
282
283
  receiver_name:,
284
+ # A subhash containing information about when and how the transfer settled at the
285
+ # Federal Reserve.
286
+ settlement:,
283
287
  # The Standard Entry Class (SEC) code of the transfer.
284
288
  standard_entry_class_code:,
285
289
  # The status of the transfer.
@@ -311,8 +315,6 @@ module Increase
311
315
  decline: T.nilable(Increase::InboundACHTransfer::Decline),
312
316
  direction: Increase::InboundACHTransfer::Direction::TaggedSymbol,
313
317
  effective_date: Date,
314
- expected_settlement_schedule:
315
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol,
316
318
  international_addenda:
317
319
  T.nilable(Increase::InboundACHTransfer::InternationalAddenda),
318
320
  notification_of_change:
@@ -325,6 +327,7 @@ module Increase
325
327
  originator_routing_number: String,
326
328
  receiver_id_number: T.nilable(String),
327
329
  receiver_name: T.nilable(String),
330
+ settlement: Increase::InboundACHTransfer::Settlement,
328
331
  standard_entry_class_code:
329
332
  Increase::InboundACHTransfer::StandardEntryClassCode::TaggedSymbol,
330
333
  status: Increase::InboundACHTransfer::Status::TaggedSymbol,
@@ -758,44 +761,6 @@ module Increase
758
761
  end
759
762
  end
760
763
 
761
- # The settlement schedule the transfer is expected to follow.
762
- module ExpectedSettlementSchedule
763
- extend Increase::Internal::Type::Enum
764
-
765
- TaggedSymbol =
766
- T.type_alias do
767
- T.all(
768
- Symbol,
769
- Increase::InboundACHTransfer::ExpectedSettlementSchedule
770
- )
771
- end
772
- OrSymbol = T.type_alias { T.any(Symbol, String) }
773
-
774
- # The transfer is expected to settle same-day.
775
- SAME_DAY =
776
- T.let(
777
- :same_day,
778
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
779
- )
780
-
781
- # The transfer is expected to settle on a future date.
782
- FUTURE_DATED =
783
- T.let(
784
- :future_dated,
785
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
786
- )
787
-
788
- sig do
789
- override.returns(
790
- T::Array[
791
- Increase::InboundACHTransfer::ExpectedSettlementSchedule::TaggedSymbol
792
- ]
793
- )
794
- end
795
- def self.values
796
- end
797
- end
798
-
799
764
  class InternationalAddenda < Increase::Internal::Type::BaseModel
800
765
  OrHash =
801
766
  T.type_alias do
@@ -1552,6 +1517,97 @@ module Increase
1552
1517
  end
1553
1518
  end
1554
1519
 
1520
+ class Settlement < Increase::Internal::Type::BaseModel
1521
+ OrHash =
1522
+ T.type_alias do
1523
+ T.any(
1524
+ Increase::InboundACHTransfer::Settlement,
1525
+ Increase::Internal::AnyHash
1526
+ )
1527
+ end
1528
+
1529
+ # When the funds for this transfer settle at the recipient bank at the Federal
1530
+ # Reserve.
1531
+ sig { returns(Time) }
1532
+ attr_accessor :settled_at
1533
+
1534
+ # The settlement schedule this transfer follows.
1535
+ sig do
1536
+ returns(
1537
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
1538
+ )
1539
+ end
1540
+ attr_accessor :settlement_schedule
1541
+
1542
+ # A subhash containing information about when and how the transfer settled at the
1543
+ # Federal Reserve.
1544
+ sig do
1545
+ params(
1546
+ settled_at: Time,
1547
+ settlement_schedule:
1548
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::OrSymbol
1549
+ ).returns(T.attached_class)
1550
+ end
1551
+ def self.new(
1552
+ # When the funds for this transfer settle at the recipient bank at the Federal
1553
+ # Reserve.
1554
+ settled_at:,
1555
+ # The settlement schedule this transfer follows.
1556
+ settlement_schedule:
1557
+ )
1558
+ end
1559
+
1560
+ sig do
1561
+ override.returns(
1562
+ {
1563
+ settled_at: Time,
1564
+ settlement_schedule:
1565
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
1566
+ }
1567
+ )
1568
+ end
1569
+ def to_hash
1570
+ end
1571
+
1572
+ # The settlement schedule this transfer follows.
1573
+ module SettlementSchedule
1574
+ extend Increase::Internal::Type::Enum
1575
+
1576
+ TaggedSymbol =
1577
+ T.type_alias do
1578
+ T.all(
1579
+ Symbol,
1580
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule
1581
+ )
1582
+ end
1583
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1584
+
1585
+ # The transfer is expected to settle same-day.
1586
+ SAME_DAY =
1587
+ T.let(
1588
+ :same_day,
1589
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
1590
+ )
1591
+
1592
+ # The transfer is expected to settle on a future date.
1593
+ FUTURE_DATED =
1594
+ T.let(
1595
+ :future_dated,
1596
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
1597
+ )
1598
+
1599
+ sig do
1600
+ override.returns(
1601
+ T::Array[
1602
+ Increase::InboundACHTransfer::Settlement::SettlementSchedule::TaggedSymbol
1603
+ ]
1604
+ )
1605
+ end
1606
+ def self.values
1607
+ end
1608
+ end
1609
+ end
1610
+
1555
1611
  # The Standard Entry Class (SEC) code of the transfer.
1556
1612
  module StandardEntryClassCode
1557
1613
  extend Increase::Internal::Type::Enum