increase 1.369.0 → 1.370.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 (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/errors.rb +6 -0
  4. data/lib/increase/models/checkbook.rb +3 -0
  5. data/lib/increase/models/checkbook_create_params.rb +24 -1
  6. data/lib/increase/models/event.rb +15 -0
  7. data/lib/increase/models/event_list_params.rb +15 -0
  8. data/lib/increase/models/event_subscription.rb +15 -0
  9. data/lib/increase/models/event_subscription_create_params.rb +15 -0
  10. data/lib/increase/models/inbound_wire_transfer.rb +12 -1
  11. data/lib/increase/models/inbound_wire_transfer_reverse_params.rb +17 -1
  12. data/lib/increase/models/real_time_payments_transfer.rb +75 -1
  13. data/lib/increase/models/real_time_payments_transfer_create_params.rb +82 -1
  14. data/lib/increase/models/unwrap_webhook_event.rb +15 -0
  15. data/lib/increase/resources/checkbooks.rb +4 -1
  16. data/lib/increase/resources/inbound_wire_transfers.rb +6 -1
  17. data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
  18. data/lib/increase/version.rb +1 -1
  19. data/rbi/increase/errors.rbi +4 -0
  20. data/rbi/increase/models/checkbook.rbi +4 -0
  21. data/rbi/increase/models/checkbook_create_params.rbi +39 -0
  22. data/rbi/increase/models/event.rbi +26 -0
  23. data/rbi/increase/models/event_list_params.rbi +35 -0
  24. data/rbi/increase/models/event_subscription.rbi +35 -0
  25. data/rbi/increase/models/event_subscription_create_params.rbi +35 -0
  26. data/rbi/increase/models/inbound_wire_transfer.rbi +15 -0
  27. data/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +22 -0
  28. data/rbi/increase/models/real_time_payments_transfer.rbi +108 -0
  29. data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +123 -0
  30. data/rbi/increase/models/unwrap_webhook_event.rbi +35 -0
  31. data/rbi/increase/resources/checkbooks.rbi +3 -0
  32. data/rbi/increase/resources/inbound_wire_transfers.rbi +5 -0
  33. data/rbi/increase/resources/real_time_payments_transfers.rbi +5 -0
  34. data/sig/increase/errors.rbs +4 -0
  35. data/sig/increase/models/checkbook.rbs +4 -1
  36. data/sig/increase/models/checkbook_create_params.rbs +20 -1
  37. data/sig/increase/models/event.rbs +20 -0
  38. data/sig/increase/models/event_list_params.rbs +20 -0
  39. data/sig/increase/models/event_subscription.rbs +20 -0
  40. data/sig/increase/models/event_subscription_create_params.rbs +20 -0
  41. data/sig/increase/models/inbound_wire_transfer.rbs +10 -1
  42. data/sig/increase/models/inbound_wire_transfer_reverse_params.rbs +13 -2
  43. data/sig/increase/models/real_time_payments_transfer.rbs +52 -0
  44. data/sig/increase/models/real_time_payments_transfer_create_params.rbs +60 -0
  45. data/sig/increase/models/unwrap_webhook_event.rbs +20 -0
  46. data/sig/increase/resources/checkbooks.rbs +1 -0
  47. data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
  48. data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
  49. metadata +2 -2
@@ -34,12 +34,17 @@ module Increase
34
34
  sig { returns(T::Array[Increase::CheckbookCreateParams::Payer]) }
35
35
  attr_accessor :payer
36
36
 
37
+ # The physical format of the Checkbook.
38
+ sig { returns(Increase::CheckbookCreateParams::Style::OrSymbol) }
39
+ attr_accessor :style
40
+
37
41
  sig do
38
42
  params(
39
43
  account_number_id: String,
40
44
  mailing_address:
41
45
  Increase::CheckbookCreateParams::MailingAddress::OrHash,
42
46
  payer: T::Array[Increase::CheckbookCreateParams::Payer::OrHash],
47
+ style: Increase::CheckbookCreateParams::Style::OrSymbol,
43
48
  request_options: Increase::RequestOptions::OrHash
44
49
  ).returns(T.attached_class)
45
50
  end
@@ -53,6 +58,8 @@ module Increase
53
58
  # check. This should be an array of up to 4 elements, each of which represents a
54
59
  # line of the payer.
55
60
  payer:,
61
+ # The physical format of the Checkbook.
62
+ style:,
56
63
  request_options: {}
57
64
  )
58
65
  end
@@ -63,6 +70,7 @@ module Increase
63
70
  account_number_id: String,
64
71
  mailing_address: Increase::CheckbookCreateParams::MailingAddress,
65
72
  payer: T::Array[Increase::CheckbookCreateParams::Payer],
73
+ style: Increase::CheckbookCreateParams::Style::OrSymbol,
66
74
  request_options: Increase::RequestOptions
67
75
  }
68
76
  )
@@ -173,6 +181,37 @@ module Increase
173
181
  def to_hash
174
182
  end
175
183
  end
184
+
185
+ # The physical format of the Checkbook.
186
+ module Style
187
+ extend Increase::Internal::Type::Enum
188
+
189
+ TaggedSymbol =
190
+ T.type_alias { T.all(Symbol, Increase::CheckbookCreateParams::Style) }
191
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
192
+
193
+ # A 3x6 inch pad of 25 checks, each torn off along a perforation at the top.
194
+ TOP_TEAR_PAD =
195
+ T.let(
196
+ :top_tear_pad,
197
+ Increase::CheckbookCreateParams::Style::TaggedSymbol
198
+ )
199
+
200
+ # A half-inch three-ring binder holding 75 pages of checks with 3 checks per page.
201
+ THREE_RING_BINDER =
202
+ T.let(
203
+ :three_ring_binder,
204
+ Increase::CheckbookCreateParams::Style::TaggedSymbol
205
+ )
206
+
207
+ sig do
208
+ override.returns(
209
+ T::Array[Increase::CheckbookCreateParams::Style::TaggedSymbol]
210
+ )
211
+ end
212
+ def self.values
213
+ end
214
+ end
176
215
  end
177
216
  end
178
217
  end
@@ -600,6 +600,18 @@ module Increase
600
600
  Increase::Event::Category::TaggedSymbol
601
601
  )
602
602
 
603
+ # Occurs whenever a Loan Draw is created.
604
+ LOAN_DRAW_CREATED =
605
+ T.let(:"loan_draw.created", Increase::Event::Category::TaggedSymbol)
606
+
607
+ # Occurs whenever a Loan Hold is created.
608
+ LOAN_HOLD_CREATED =
609
+ T.let(:"loan_hold.created", Increase::Event::Category::TaggedSymbol)
610
+
611
+ # Occurs whenever a Loan Hold is updated.
612
+ LOAN_HOLD_UPDATED =
613
+ T.let(:"loan_hold.updated", Increase::Event::Category::TaggedSymbol)
614
+
603
615
  # Occurs whenever a Loan Obligation is created.
604
616
  LOAN_OBLIGATION_CREATED =
605
617
  T.let(
@@ -615,6 +627,13 @@ module Increase
615
627
  LOAN_OFFER_UPDATED =
616
628
  T.let(:"loan_offer.updated", Increase::Event::Category::TaggedSymbol)
617
629
 
630
+ # Occurs whenever a Loan Payment is created.
631
+ LOAN_PAYMENT_CREATED =
632
+ T.let(
633
+ :"loan_payment.created",
634
+ Increase::Event::Category::TaggedSymbol
635
+ )
636
+
618
637
  # Occurs whenever a Loan Purchase Offer is created.
619
638
  LOAN_PURCHASE_OFFER_CREATED =
620
639
  T.let(
@@ -629,6 +648,13 @@ module Increase
629
648
  Increase::Event::Category::TaggedSymbol
630
649
  )
631
650
 
651
+ # Occurs whenever a Loan Statement is created.
652
+ LOAN_STATEMENT_CREATED =
653
+ T.let(
654
+ :"loan_statement.created",
655
+ Increase::Event::Category::TaggedSymbol
656
+ )
657
+
632
658
  # Occurs whenever a Lockbox is created.
633
659
  LOCKBOX_CREATED =
634
660
  T.let(:"lockbox.created", Increase::Event::Category::TaggedSymbol)
@@ -703,6 +703,27 @@ module Increase
703
703
  Increase::EventListParams::Category::In::TaggedSymbol
704
704
  )
705
705
 
706
+ # Occurs whenever a Loan Draw is created.
707
+ LOAN_DRAW_CREATED =
708
+ T.let(
709
+ :"loan_draw.created",
710
+ Increase::EventListParams::Category::In::TaggedSymbol
711
+ )
712
+
713
+ # Occurs whenever a Loan Hold is created.
714
+ LOAN_HOLD_CREATED =
715
+ T.let(
716
+ :"loan_hold.created",
717
+ Increase::EventListParams::Category::In::TaggedSymbol
718
+ )
719
+
720
+ # Occurs whenever a Loan Hold is updated.
721
+ LOAN_HOLD_UPDATED =
722
+ T.let(
723
+ :"loan_hold.updated",
724
+ Increase::EventListParams::Category::In::TaggedSymbol
725
+ )
726
+
706
727
  # Occurs whenever a Loan Obligation is created.
707
728
  LOAN_OBLIGATION_CREATED =
708
729
  T.let(
@@ -724,6 +745,13 @@ module Increase
724
745
  Increase::EventListParams::Category::In::TaggedSymbol
725
746
  )
726
747
 
748
+ # Occurs whenever a Loan Payment is created.
749
+ LOAN_PAYMENT_CREATED =
750
+ T.let(
751
+ :"loan_payment.created",
752
+ Increase::EventListParams::Category::In::TaggedSymbol
753
+ )
754
+
727
755
  # Occurs whenever a Loan Purchase Offer is created.
728
756
  LOAN_PURCHASE_OFFER_CREATED =
729
757
  T.let(
@@ -738,6 +766,13 @@ module Increase
738
766
  Increase::EventListParams::Category::In::TaggedSymbol
739
767
  )
740
768
 
769
+ # Occurs whenever a Loan Statement is created.
770
+ LOAN_STATEMENT_CREATED =
771
+ T.let(
772
+ :"loan_statement.created",
773
+ Increase::EventListParams::Category::In::TaggedSymbol
774
+ )
775
+
741
776
  # Occurs whenever a Lockbox is created.
742
777
  LOCKBOX_CREATED =
743
778
  T.let(
@@ -724,6 +724,27 @@ module Increase
724
724
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
725
725
  )
726
726
 
727
+ # Occurs whenever a Loan Draw is created.
728
+ LOAN_DRAW_CREATED =
729
+ T.let(
730
+ :"loan_draw.created",
731
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
732
+ )
733
+
734
+ # Occurs whenever a Loan Hold is created.
735
+ LOAN_HOLD_CREATED =
736
+ T.let(
737
+ :"loan_hold.created",
738
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
739
+ )
740
+
741
+ # Occurs whenever a Loan Hold is updated.
742
+ LOAN_HOLD_UPDATED =
743
+ T.let(
744
+ :"loan_hold.updated",
745
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
746
+ )
747
+
727
748
  # Occurs whenever a Loan Obligation is created.
728
749
  LOAN_OBLIGATION_CREATED =
729
750
  T.let(
@@ -745,6 +766,13 @@ module Increase
745
766
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
746
767
  )
747
768
 
769
+ # Occurs whenever a Loan Payment is created.
770
+ LOAN_PAYMENT_CREATED =
771
+ T.let(
772
+ :"loan_payment.created",
773
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
774
+ )
775
+
748
776
  # Occurs whenever a Loan Purchase Offer is created.
749
777
  LOAN_PURCHASE_OFFER_CREATED =
750
778
  T.let(
@@ -759,6 +787,13 @@ module Increase
759
787
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
760
788
  )
761
789
 
790
+ # Occurs whenever a Loan Statement is created.
791
+ LOAN_STATEMENT_CREATED =
792
+ T.let(
793
+ :"loan_statement.created",
794
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
795
+ )
796
+
762
797
  # Occurs whenever a Lockbox is created.
763
798
  LOCKBOX_CREATED =
764
799
  T.let(
@@ -722,6 +722,27 @@ module Increase
722
722
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
723
723
  )
724
724
 
725
+ # Occurs whenever a Loan Draw is created.
726
+ LOAN_DRAW_CREATED =
727
+ T.let(
728
+ :"loan_draw.created",
729
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
730
+ )
731
+
732
+ # Occurs whenever a Loan Hold is created.
733
+ LOAN_HOLD_CREATED =
734
+ T.let(
735
+ :"loan_hold.created",
736
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
737
+ )
738
+
739
+ # Occurs whenever a Loan Hold is updated.
740
+ LOAN_HOLD_UPDATED =
741
+ T.let(
742
+ :"loan_hold.updated",
743
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
744
+ )
745
+
725
746
  # Occurs whenever a Loan Obligation is created.
726
747
  LOAN_OBLIGATION_CREATED =
727
748
  T.let(
@@ -743,6 +764,13 @@ module Increase
743
764
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
744
765
  )
745
766
 
767
+ # Occurs whenever a Loan Payment is created.
768
+ LOAN_PAYMENT_CREATED =
769
+ T.let(
770
+ :"loan_payment.created",
771
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
772
+ )
773
+
746
774
  # Occurs whenever a Loan Purchase Offer is created.
747
775
  LOAN_PURCHASE_OFFER_CREATED =
748
776
  T.let(
@@ -757,6 +785,13 @@ module Increase
757
785
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
758
786
  )
759
787
 
788
+ # Occurs whenever a Loan Statement is created.
789
+ LOAN_STATEMENT_CREATED =
790
+ T.let(
791
+ :"loan_statement.created",
792
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
793
+ )
794
+
760
795
  # Occurs whenever a Lockbox is created.
761
796
  LOCKBOX_CREATED =
762
797
  T.let(
@@ -336,6 +336,10 @@ module Increase
336
336
  )
337
337
  end
338
338
 
339
+ # The amount that was reversed in USD cents.
340
+ sig { returns(Integer) }
341
+ attr_accessor :amount
342
+
339
343
  # The reason for the reversal.
340
344
  sig do
341
345
  returns(Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol)
@@ -350,11 +354,14 @@ module Increase
350
354
  # If the transfer is reversed, this will contain details of the reversal.
351
355
  sig do
352
356
  params(
357
+ amount: Integer,
353
358
  reason: Increase::InboundWireTransfer::Reversal::Reason::OrSymbol,
354
359
  reversed_at: Time
355
360
  ).returns(T.attached_class)
356
361
  end
357
362
  def self.new(
363
+ # The amount that was reversed in USD cents.
364
+ amount:,
358
365
  # The reason for the reversal.
359
366
  reason:,
360
367
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -366,6 +373,7 @@ module Increase
366
373
  sig do
367
374
  override.returns(
368
375
  {
376
+ amount: Integer,
369
377
  reason:
370
378
  Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol,
371
379
  reversed_at: Time
@@ -406,6 +414,13 @@ module Increase
406
414
  Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol
407
415
  )
408
416
 
417
+ # The inbound wire transfer was fraudulent.
418
+ FRAUD =
419
+ T.let(
420
+ :fraud,
421
+ Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol
422
+ )
423
+
409
424
  sig do
410
425
  override.returns(
411
426
  T::Array[
@@ -24,10 +24,20 @@ module Increase
24
24
  end
25
25
  attr_accessor :reason
26
26
 
27
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
28
+ # Wire Transfer. A transfer can only be reversed once, so any amount you don't
29
+ # return now stays with the recipient.
30
+ sig { returns(T.nilable(Integer)) }
31
+ attr_reader :amount
32
+
33
+ sig { params(amount: Integer).void }
34
+ attr_writer :amount
35
+
27
36
  sig do
28
37
  params(
29
38
  inbound_wire_transfer_id: String,
30
39
  reason: Increase::InboundWireTransferReverseParams::Reason::OrSymbol,
40
+ amount: Integer,
31
41
  request_options: Increase::RequestOptions::OrHash
32
42
  ).returns(T.attached_class)
33
43
  end
@@ -36,6 +46,10 @@ module Increase
36
46
  inbound_wire_transfer_id:,
37
47
  # Reason for the reversal.
38
48
  reason:,
49
+ # The amount to return, in USD cents. Defaults to the full amount of the Inbound
50
+ # Wire Transfer. A transfer can only be reversed once, so any amount you don't
51
+ # return now stays with the recipient.
52
+ amount: nil,
39
53
  request_options: {}
40
54
  )
41
55
  end
@@ -46,6 +60,7 @@ module Increase
46
60
  inbound_wire_transfer_id: String,
47
61
  reason:
48
62
  Increase::InboundWireTransferReverseParams::Reason::OrSymbol,
63
+ amount: Integer,
49
64
  request_options: Increase::RequestOptions
50
65
  }
51
66
  )
@@ -84,6 +99,13 @@ module Increase
84
99
  Increase::InboundWireTransferReverseParams::Reason::TaggedSymbol
85
100
  )
86
101
 
102
+ # The inbound wire transfer was fraudulent.
103
+ FRAUD =
104
+ T.let(
105
+ :fraud,
106
+ Increase::InboundWireTransferReverseParams::Reason::TaggedSymbol
107
+ )
108
+
87
109
  sig do
88
110
  override.returns(
89
111
  T::Array[
@@ -98,6 +98,20 @@ module Increase
98
98
  end
99
99
  attr_accessor :currency
100
100
 
101
+ # The address of the transfer's sender.
102
+ sig do
103
+ returns(T.nilable(Increase::RealTimePaymentsTransfer::DebtorAddress))
104
+ end
105
+ attr_reader :debtor_address
106
+
107
+ sig do
108
+ params(
109
+ debtor_address:
110
+ T.nilable(Increase::RealTimePaymentsTransfer::DebtorAddress::OrHash)
111
+ ).void
112
+ end
113
+ attr_writer :debtor_address
114
+
101
115
  # The name of the transfer's sender. If not provided, defaults to the name of the
102
116
  # account's entity.
103
117
  sig { returns(T.nilable(String)) }
@@ -217,6 +231,10 @@ module Increase
217
231
  T.nilable(Increase::RealTimePaymentsTransfer::CreatedBy::OrHash),
218
232
  creditor_name: String,
219
233
  currency: Increase::RealTimePaymentsTransfer::Currency::OrSymbol,
234
+ debtor_address:
235
+ T.nilable(
236
+ Increase::RealTimePaymentsTransfer::DebtorAddress::OrHash
237
+ ),
220
238
  debtor_name: T.nilable(String),
221
239
  end_to_end_identification: T.nilable(String),
222
240
  external_account_id: T.nilable(String),
@@ -267,6 +285,8 @@ module Increase
267
285
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
268
286
  # currency. For real-time payments transfers this is always equal to `USD`.
269
287
  currency:,
288
+ # The address of the transfer's sender.
289
+ debtor_address:,
270
290
  # The name of the transfer's sender. If not provided, defaults to the name of the
271
291
  # account's entity.
272
292
  debtor_name:,
@@ -336,6 +356,8 @@ module Increase
336
356
  creditor_name: String,
337
357
  currency:
338
358
  Increase::RealTimePaymentsTransfer::Currency::TaggedSymbol,
359
+ debtor_address:
360
+ T.nilable(Increase::RealTimePaymentsTransfer::DebtorAddress),
339
361
  debtor_name: T.nilable(String),
340
362
  end_to_end_identification: T.nilable(String),
341
363
  external_account_id: T.nilable(String),
@@ -756,6 +778,92 @@ module Increase
756
778
  end
757
779
  end
758
780
 
781
+ class DebtorAddress < Increase::Internal::Type::BaseModel
782
+ OrHash =
783
+ T.type_alias do
784
+ T.any(
785
+ Increase::RealTimePaymentsTransfer::DebtorAddress,
786
+ Increase::Internal::AnyHash
787
+ )
788
+ end
789
+
790
+ # A second address line, such as an apartment or suite number. The first address
791
+ # line is separated into `building_number` and `street_name`.
792
+ sig { returns(T.nilable(String)) }
793
+ attr_accessor :address_line2
794
+
795
+ # The number identifying the position of the building on the street.
796
+ sig { returns(T.nilable(String)) }
797
+ attr_accessor :building_number
798
+
799
+ # The town or city.
800
+ sig { returns(T.nilable(String)) }
801
+ attr_accessor :city
802
+
803
+ # The ISO 3166, Alpha-2 country code.
804
+ sig { returns(T.nilable(String)) }
805
+ attr_accessor :country
806
+
807
+ # The postal code or zip.
808
+ sig { returns(T.nilable(String)) }
809
+ attr_accessor :postal_code
810
+
811
+ # The US state component of the address.
812
+ sig { returns(T.nilable(String)) }
813
+ attr_accessor :state
814
+
815
+ # The street name without the street number.
816
+ sig { returns(T.nilable(String)) }
817
+ attr_accessor :street_name
818
+
819
+ # The address of the transfer's sender.
820
+ sig do
821
+ params(
822
+ address_line2: T.nilable(String),
823
+ building_number: T.nilable(String),
824
+ city: T.nilable(String),
825
+ country: T.nilable(String),
826
+ postal_code: T.nilable(String),
827
+ state: T.nilable(String),
828
+ street_name: T.nilable(String)
829
+ ).returns(T.attached_class)
830
+ end
831
+ def self.new(
832
+ # A second address line, such as an apartment or suite number. The first address
833
+ # line is separated into `building_number` and `street_name`.
834
+ address_line2:,
835
+ # The number identifying the position of the building on the street.
836
+ building_number:,
837
+ # The town or city.
838
+ city:,
839
+ # The ISO 3166, Alpha-2 country code.
840
+ country:,
841
+ # The postal code or zip.
842
+ postal_code:,
843
+ # The US state component of the address.
844
+ state:,
845
+ # The street name without the street number.
846
+ street_name:
847
+ )
848
+ end
849
+
850
+ sig do
851
+ override.returns(
852
+ {
853
+ address_line2: T.nilable(String),
854
+ building_number: T.nilable(String),
855
+ city: T.nilable(String),
856
+ country: T.nilable(String),
857
+ postal_code: T.nilable(String),
858
+ state: T.nilable(String),
859
+ street_name: T.nilable(String)
860
+ }
861
+ )
862
+ end
863
+ def to_hash
864
+ end
865
+ end
866
+
759
867
  class Rejection < Increase::Internal::Type::BaseModel
760
868
  OrHash =
761
869
  T.type_alias do
@@ -38,6 +38,25 @@ module Increase
38
38
  sig { params(account_number: String).void }
39
39
  attr_writer :account_number
40
40
 
41
+ # The address of the transfer's sender. If not provided, no debtor address is sent
42
+ # with the transfer.
43
+ sig do
44
+ returns(
45
+ T.nilable(
46
+ Increase::RealTimePaymentsTransferCreateParams::DebtorAddress
47
+ )
48
+ )
49
+ end
50
+ attr_reader :debtor_address
51
+
52
+ sig do
53
+ params(
54
+ debtor_address:
55
+ Increase::RealTimePaymentsTransferCreateParams::DebtorAddress::OrHash
56
+ ).void
57
+ end
58
+ attr_writer :debtor_address
59
+
41
60
  # The name of the transfer's sender. If not provided, defaults to the name of the
42
61
  # account's entity.
43
62
  sig { returns(T.nilable(String)) }
@@ -102,6 +121,8 @@ module Increase
102
121
  source_account_number_id: String,
103
122
  unstructured_remittance_information: String,
104
123
  account_number: String,
124
+ debtor_address:
125
+ Increase::RealTimePaymentsTransferCreateParams::DebtorAddress::OrHash,
105
126
  debtor_name: String,
106
127
  external_account_id: String,
107
128
  inbound_real_time_payments_request_for_payment_id: String,
@@ -124,6 +145,9 @@ module Increase
124
145
  unstructured_remittance_information:,
125
146
  # The destination account number.
126
147
  account_number: nil,
148
+ # The address of the transfer's sender. If not provided, no debtor address is sent
149
+ # with the transfer.
150
+ debtor_address: nil,
127
151
  # The name of the transfer's sender. If not provided, defaults to the name of the
128
152
  # account's entity.
129
153
  debtor_name: nil,
@@ -156,6 +180,8 @@ module Increase
156
180
  source_account_number_id: String,
157
181
  unstructured_remittance_information: String,
158
182
  account_number: String,
183
+ debtor_address:
184
+ Increase::RealTimePaymentsTransferCreateParams::DebtorAddress,
159
185
  debtor_name: String,
160
186
  external_account_id: String,
161
187
  inbound_real_time_payments_request_for_payment_id: String,
@@ -169,6 +195,103 @@ module Increase
169
195
  end
170
196
  def to_hash
171
197
  end
198
+
199
+ class DebtorAddress < Increase::Internal::Type::BaseModel
200
+ OrHash =
201
+ T.type_alias do
202
+ T.any(
203
+ Increase::RealTimePaymentsTransferCreateParams::DebtorAddress,
204
+ Increase::Internal::AnyHash
205
+ )
206
+ end
207
+
208
+ # The town or city.
209
+ sig { returns(String) }
210
+ attr_accessor :city
211
+
212
+ # The ISO 3166, Alpha-2 country code.
213
+ #
214
+ # Defaults to `US`.
215
+ sig { returns(String) }
216
+ attr_accessor :country
217
+
218
+ # The postal code or zip.
219
+ sig { returns(String) }
220
+ attr_accessor :postal_code
221
+
222
+ # The US state component of the address.
223
+ sig { returns(String) }
224
+ attr_accessor :state
225
+
226
+ # The street name without the street number.
227
+ sig { returns(String) }
228
+ attr_accessor :street_name
229
+
230
+ # A second address line, such as an apartment or suite number. The first address
231
+ # line is separated into `building_number` and `street_name`.
232
+ sig { returns(T.nilable(String)) }
233
+ attr_reader :address_line2
234
+
235
+ sig { params(address_line2: String).void }
236
+ attr_writer :address_line2
237
+
238
+ # The number identifying the position of the building on the street.
239
+ sig { returns(T.nilable(String)) }
240
+ attr_reader :building_number
241
+
242
+ sig { params(building_number: String).void }
243
+ attr_writer :building_number
244
+
245
+ # The address of the transfer's sender. If not provided, no debtor address is sent
246
+ # with the transfer.
247
+ sig do
248
+ params(
249
+ city: String,
250
+ country: String,
251
+ postal_code: String,
252
+ state: String,
253
+ street_name: String,
254
+ address_line2: String,
255
+ building_number: String
256
+ ).returns(T.attached_class)
257
+ end
258
+ def self.new(
259
+ # The town or city.
260
+ city:,
261
+ # The ISO 3166, Alpha-2 country code.
262
+ #
263
+ # Defaults to `US`.
264
+ country:,
265
+ # The postal code or zip.
266
+ postal_code:,
267
+ # The US state component of the address.
268
+ state:,
269
+ # The street name without the street number.
270
+ street_name:,
271
+ # A second address line, such as an apartment or suite number. The first address
272
+ # line is separated into `building_number` and `street_name`.
273
+ address_line2: nil,
274
+ # The number identifying the position of the building on the street.
275
+ building_number: nil
276
+ )
277
+ end
278
+
279
+ sig do
280
+ override.returns(
281
+ {
282
+ city: String,
283
+ country: String,
284
+ postal_code: String,
285
+ state: String,
286
+ street_name: String,
287
+ address_line2: String,
288
+ building_number: String
289
+ }
290
+ )
291
+ end
292
+ def to_hash
293
+ end
294
+ end
172
295
  end
173
296
  end
174
297
  end