increase 1.122.0 → 1.123.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.
@@ -36,22 +36,6 @@ module Increase
36
36
  end
37
37
  attr_writer :approval
38
38
 
39
- # The beneficiary's address line 1.
40
- sig { returns(T.nilable(String)) }
41
- attr_accessor :beneficiary_address_line1
42
-
43
- # The beneficiary's address line 2.
44
- sig { returns(T.nilable(String)) }
45
- attr_accessor :beneficiary_address_line2
46
-
47
- # The beneficiary's address line 3.
48
- sig { returns(T.nilable(String)) }
49
- attr_accessor :beneficiary_address_line3
50
-
51
- # The beneficiary's name.
52
- sig { returns(T.nilable(String)) }
53
- attr_accessor :beneficiary_name
54
-
55
39
  # If your account requires approvals for transfers and the transfer was not
56
40
  # approved, this will contain details of the cancellation.
57
41
  sig { returns(T.nilable(Increase::WireTransfer::Cancellation)) }
@@ -80,11 +64,31 @@ module Increase
80
64
  end
81
65
  attr_writer :created_by
82
66
 
67
+ # The person or business that is receiving the funds from the transfer.
68
+ sig { returns(T.nilable(Increase::WireTransfer::Creditor)) }
69
+ attr_reader :creditor
70
+
71
+ sig do
72
+ params(
73
+ creditor: T.nilable(Increase::WireTransfer::Creditor::OrHash)
74
+ ).void
75
+ end
76
+ attr_writer :creditor
77
+
83
78
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
84
79
  # currency. For wire transfers this is always equal to `usd`.
85
80
  sig { returns(Increase::WireTransfer::Currency::TaggedSymbol) }
86
81
  attr_accessor :currency
87
82
 
83
+ # The person or business whose funds are being transferred.
84
+ sig { returns(T.nilable(Increase::WireTransfer::Debtor)) }
85
+ attr_reader :debtor
86
+
87
+ sig do
88
+ params(debtor: T.nilable(Increase::WireTransfer::Debtor::OrHash)).void
89
+ end
90
+ attr_writer :debtor
91
+
88
92
  # The identifier of the External Account the transfer was made to, if any.
89
93
  sig { returns(T.nilable(String)) }
90
94
  attr_accessor :external_account_id
@@ -100,30 +104,10 @@ module Increase
100
104
  sig { returns(T.nilable(String)) }
101
105
  attr_accessor :inbound_wire_drawdown_request_id
102
106
 
103
- # The message that will show on the recipient's bank statement.
104
- sig { returns(String) }
105
- attr_accessor :message_to_recipient
106
-
107
107
  # The transfer's network.
108
108
  sig { returns(Increase::WireTransfer::Network::TaggedSymbol) }
109
109
  attr_accessor :network
110
110
 
111
- # The originator's address line 1.
112
- sig { returns(T.nilable(String)) }
113
- attr_accessor :originator_address_line1
114
-
115
- # The originator's address line 2.
116
- sig { returns(T.nilable(String)) }
117
- attr_accessor :originator_address_line2
118
-
119
- # The originator's address line 3.
120
- sig { returns(T.nilable(String)) }
121
- attr_accessor :originator_address_line3
122
-
123
- # The originator's name.
124
- sig { returns(T.nilable(String)) }
125
- attr_accessor :originator_name
126
-
127
111
  # The ID for the pending transaction representing the transfer. A pending
128
112
  # transaction is created when the transfer
129
113
  # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
@@ -195,23 +179,16 @@ module Increase
195
179
  account_number: String,
196
180
  amount: Integer,
197
181
  approval: T.nilable(Increase::WireTransfer::Approval::OrHash),
198
- beneficiary_address_line1: T.nilable(String),
199
- beneficiary_address_line2: T.nilable(String),
200
- beneficiary_address_line3: T.nilable(String),
201
- beneficiary_name: T.nilable(String),
202
182
  cancellation: T.nilable(Increase::WireTransfer::Cancellation::OrHash),
203
183
  created_at: Time,
204
184
  created_by: T.nilable(Increase::WireTransfer::CreatedBy::OrHash),
185
+ creditor: T.nilable(Increase::WireTransfer::Creditor::OrHash),
205
186
  currency: Increase::WireTransfer::Currency::OrSymbol,
187
+ debtor: T.nilable(Increase::WireTransfer::Debtor::OrHash),
206
188
  external_account_id: T.nilable(String),
207
189
  idempotency_key: T.nilable(String),
208
190
  inbound_wire_drawdown_request_id: T.nilable(String),
209
- message_to_recipient: String,
210
191
  network: Increase::WireTransfer::Network::OrSymbol,
211
- originator_address_line1: T.nilable(String),
212
- originator_address_line2: T.nilable(String),
213
- originator_address_line3: T.nilable(String),
214
- originator_name: T.nilable(String),
215
192
  pending_transaction_id: T.nilable(String),
216
193
  remittance: T.nilable(Increase::WireTransfer::Remittance::OrHash),
217
194
  reversal: T.nilable(Increase::WireTransfer::Reversal::OrHash),
@@ -235,14 +212,6 @@ module Increase
235
212
  # If your account requires approvals for transfers and the transfer was approved,
236
213
  # this will contain details of the approval.
237
214
  approval:,
238
- # The beneficiary's address line 1.
239
- beneficiary_address_line1:,
240
- # The beneficiary's address line 2.
241
- beneficiary_address_line2:,
242
- # The beneficiary's address line 3.
243
- beneficiary_address_line3:,
244
- # The beneficiary's name.
245
- beneficiary_name:,
246
215
  # If your account requires approvals for transfers and the transfer was not
247
216
  # approved, this will contain details of the cancellation.
248
217
  cancellation:,
@@ -251,9 +220,13 @@ module Increase
251
220
  created_at:,
252
221
  # What object created the transfer, either via the API or the dashboard.
253
222
  created_by:,
223
+ # The person or business that is receiving the funds from the transfer.
224
+ creditor:,
254
225
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
255
226
  # currency. For wire transfers this is always equal to `usd`.
256
227
  currency:,
228
+ # The person or business whose funds are being transferred.
229
+ debtor:,
257
230
  # The identifier of the External Account the transfer was made to, if any.
258
231
  external_account_id:,
259
232
  # The idempotency key you chose for this object. This value is unique across
@@ -263,18 +236,8 @@ module Increase
263
236
  # The ID of an Inbound Wire Drawdown Request in response to which this transfer
264
237
  # was sent.
265
238
  inbound_wire_drawdown_request_id:,
266
- # The message that will show on the recipient's bank statement.
267
- message_to_recipient:,
268
239
  # The transfer's network.
269
240
  network:,
270
- # The originator's address line 1.
271
- originator_address_line1:,
272
- # The originator's address line 2.
273
- originator_address_line2:,
274
- # The originator's address line 3.
275
- originator_address_line3:,
276
- # The originator's name.
277
- originator_name:,
278
241
  # The ID for the pending transaction representing the transfer. A pending
279
242
  # transaction is created when the transfer
280
243
  # [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
@@ -309,23 +272,16 @@ module Increase
309
272
  account_number: String,
310
273
  amount: Integer,
311
274
  approval: T.nilable(Increase::WireTransfer::Approval),
312
- beneficiary_address_line1: T.nilable(String),
313
- beneficiary_address_line2: T.nilable(String),
314
- beneficiary_address_line3: T.nilable(String),
315
- beneficiary_name: T.nilable(String),
316
275
  cancellation: T.nilable(Increase::WireTransfer::Cancellation),
317
276
  created_at: Time,
318
277
  created_by: T.nilable(Increase::WireTransfer::CreatedBy),
278
+ creditor: T.nilable(Increase::WireTransfer::Creditor),
319
279
  currency: Increase::WireTransfer::Currency::TaggedSymbol,
280
+ debtor: T.nilable(Increase::WireTransfer::Debtor),
320
281
  external_account_id: T.nilable(String),
321
282
  idempotency_key: T.nilable(String),
322
283
  inbound_wire_drawdown_request_id: T.nilable(String),
323
- message_to_recipient: String,
324
284
  network: Increase::WireTransfer::Network::TaggedSymbol,
325
- originator_address_line1: T.nilable(String),
326
- originator_address_line2: T.nilable(String),
327
- originator_address_line3: T.nilable(String),
328
- originator_name: T.nilable(String),
329
285
  pending_transaction_id: T.nilable(String),
330
286
  remittance: T.nilable(Increase::WireTransfer::Remittance),
331
287
  reversal: T.nilable(Increase::WireTransfer::Reversal),
@@ -647,6 +603,164 @@ module Increase
647
603
  end
648
604
  end
649
605
 
606
+ class Creditor < Increase::Internal::Type::BaseModel
607
+ OrHash =
608
+ T.type_alias do
609
+ T.any(Increase::WireTransfer::Creditor, Increase::Internal::AnyHash)
610
+ end
611
+
612
+ # The person or business's address.
613
+ sig { returns(T.nilable(Increase::WireTransfer::Creditor::Address)) }
614
+ attr_reader :address
615
+
616
+ sig do
617
+ params(
618
+ address:
619
+ T.nilable(Increase::WireTransfer::Creditor::Address::OrHash)
620
+ ).void
621
+ end
622
+ attr_writer :address
623
+
624
+ # The person or business's name.
625
+ sig { returns(T.nilable(String)) }
626
+ attr_accessor :name
627
+
628
+ # The person or business that is receiving the funds from the transfer.
629
+ sig do
630
+ params(
631
+ address:
632
+ T.nilable(Increase::WireTransfer::Creditor::Address::OrHash),
633
+ name: T.nilable(String)
634
+ ).returns(T.attached_class)
635
+ end
636
+ def self.new(
637
+ # The person or business's address.
638
+ address:,
639
+ # The person or business's name.
640
+ name:
641
+ )
642
+ end
643
+
644
+ sig do
645
+ override.returns(
646
+ {
647
+ address: T.nilable(Increase::WireTransfer::Creditor::Address),
648
+ name: T.nilable(String)
649
+ }
650
+ )
651
+ end
652
+ def to_hash
653
+ end
654
+
655
+ class Address < Increase::Internal::Type::BaseModel
656
+ OrHash =
657
+ T.type_alias do
658
+ T.any(
659
+ Increase::WireTransfer::Creditor::Address,
660
+ Increase::Internal::AnyHash
661
+ )
662
+ end
663
+
664
+ # Unstructured address lines.
665
+ sig do
666
+ returns(
667
+ T.nilable(Increase::WireTransfer::Creditor::Address::Unstructured)
668
+ )
669
+ end
670
+ attr_reader :unstructured
671
+
672
+ sig do
673
+ params(
674
+ unstructured:
675
+ T.nilable(
676
+ Increase::WireTransfer::Creditor::Address::Unstructured::OrHash
677
+ )
678
+ ).void
679
+ end
680
+ attr_writer :unstructured
681
+
682
+ # The person or business's address.
683
+ sig do
684
+ params(
685
+ unstructured:
686
+ T.nilable(
687
+ Increase::WireTransfer::Creditor::Address::Unstructured::OrHash
688
+ )
689
+ ).returns(T.attached_class)
690
+ end
691
+ def self.new(
692
+ # Unstructured address lines.
693
+ unstructured:
694
+ )
695
+ end
696
+
697
+ sig do
698
+ override.returns(
699
+ {
700
+ unstructured:
701
+ T.nilable(
702
+ Increase::WireTransfer::Creditor::Address::Unstructured
703
+ )
704
+ }
705
+ )
706
+ end
707
+ def to_hash
708
+ end
709
+
710
+ class Unstructured < Increase::Internal::Type::BaseModel
711
+ OrHash =
712
+ T.type_alias do
713
+ T.any(
714
+ Increase::WireTransfer::Creditor::Address::Unstructured,
715
+ Increase::Internal::AnyHash
716
+ )
717
+ end
718
+
719
+ # The first line.
720
+ sig { returns(T.nilable(String)) }
721
+ attr_accessor :line1
722
+
723
+ # The second line.
724
+ sig { returns(T.nilable(String)) }
725
+ attr_accessor :line2
726
+
727
+ # The third line.
728
+ sig { returns(T.nilable(String)) }
729
+ attr_accessor :line3
730
+
731
+ # Unstructured address lines.
732
+ sig do
733
+ params(
734
+ line1: T.nilable(String),
735
+ line2: T.nilable(String),
736
+ line3: T.nilable(String)
737
+ ).returns(T.attached_class)
738
+ end
739
+ def self.new(
740
+ # The first line.
741
+ line1:,
742
+ # The second line.
743
+ line2:,
744
+ # The third line.
745
+ line3:
746
+ )
747
+ end
748
+
749
+ sig do
750
+ override.returns(
751
+ {
752
+ line1: T.nilable(String),
753
+ line2: T.nilable(String),
754
+ line3: T.nilable(String)
755
+ }
756
+ )
757
+ end
758
+ def to_hash
759
+ end
760
+ end
761
+ end
762
+ end
763
+
650
764
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
651
765
  # currency. For wire transfers this is always equal to `usd`.
652
766
  module Currency
@@ -683,6 +797,162 @@ module Increase
683
797
  end
684
798
  end
685
799
 
800
+ class Debtor < Increase::Internal::Type::BaseModel
801
+ OrHash =
802
+ T.type_alias do
803
+ T.any(Increase::WireTransfer::Debtor, Increase::Internal::AnyHash)
804
+ end
805
+
806
+ # The person or business's address.
807
+ sig { returns(T.nilable(Increase::WireTransfer::Debtor::Address)) }
808
+ attr_reader :address
809
+
810
+ sig do
811
+ params(
812
+ address: T.nilable(Increase::WireTransfer::Debtor::Address::OrHash)
813
+ ).void
814
+ end
815
+ attr_writer :address
816
+
817
+ # The person or business's name.
818
+ sig { returns(T.nilable(String)) }
819
+ attr_accessor :name
820
+
821
+ # The person or business whose funds are being transferred.
822
+ sig do
823
+ params(
824
+ address: T.nilable(Increase::WireTransfer::Debtor::Address::OrHash),
825
+ name: T.nilable(String)
826
+ ).returns(T.attached_class)
827
+ end
828
+ def self.new(
829
+ # The person or business's address.
830
+ address:,
831
+ # The person or business's name.
832
+ name:
833
+ )
834
+ end
835
+
836
+ sig do
837
+ override.returns(
838
+ {
839
+ address: T.nilable(Increase::WireTransfer::Debtor::Address),
840
+ name: T.nilable(String)
841
+ }
842
+ )
843
+ end
844
+ def to_hash
845
+ end
846
+
847
+ class Address < Increase::Internal::Type::BaseModel
848
+ OrHash =
849
+ T.type_alias do
850
+ T.any(
851
+ Increase::WireTransfer::Debtor::Address,
852
+ Increase::Internal::AnyHash
853
+ )
854
+ end
855
+
856
+ # Unstructured address lines.
857
+ sig do
858
+ returns(
859
+ T.nilable(Increase::WireTransfer::Debtor::Address::Unstructured)
860
+ )
861
+ end
862
+ attr_reader :unstructured
863
+
864
+ sig do
865
+ params(
866
+ unstructured:
867
+ T.nilable(
868
+ Increase::WireTransfer::Debtor::Address::Unstructured::OrHash
869
+ )
870
+ ).void
871
+ end
872
+ attr_writer :unstructured
873
+
874
+ # The person or business's address.
875
+ sig do
876
+ params(
877
+ unstructured:
878
+ T.nilable(
879
+ Increase::WireTransfer::Debtor::Address::Unstructured::OrHash
880
+ )
881
+ ).returns(T.attached_class)
882
+ end
883
+ def self.new(
884
+ # Unstructured address lines.
885
+ unstructured:
886
+ )
887
+ end
888
+
889
+ sig do
890
+ override.returns(
891
+ {
892
+ unstructured:
893
+ T.nilable(
894
+ Increase::WireTransfer::Debtor::Address::Unstructured
895
+ )
896
+ }
897
+ )
898
+ end
899
+ def to_hash
900
+ end
901
+
902
+ class Unstructured < Increase::Internal::Type::BaseModel
903
+ OrHash =
904
+ T.type_alias do
905
+ T.any(
906
+ Increase::WireTransfer::Debtor::Address::Unstructured,
907
+ Increase::Internal::AnyHash
908
+ )
909
+ end
910
+
911
+ # The first line.
912
+ sig { returns(T.nilable(String)) }
913
+ attr_accessor :line1
914
+
915
+ # The second line.
916
+ sig { returns(T.nilable(String)) }
917
+ attr_accessor :line2
918
+
919
+ # The third line.
920
+ sig { returns(T.nilable(String)) }
921
+ attr_accessor :line3
922
+
923
+ # Unstructured address lines.
924
+ sig do
925
+ params(
926
+ line1: T.nilable(String),
927
+ line2: T.nilable(String),
928
+ line3: T.nilable(String)
929
+ ).returns(T.attached_class)
930
+ end
931
+ def self.new(
932
+ # The first line.
933
+ line1:,
934
+ # The second line.
935
+ line2:,
936
+ # The third line.
937
+ line3:
938
+ )
939
+ end
940
+
941
+ sig do
942
+ override.returns(
943
+ {
944
+ line1: T.nilable(String),
945
+ line2: T.nilable(String),
946
+ line3: T.nilable(String)
947
+ }
948
+ )
949
+ end
950
+ def to_hash
951
+ end
952
+ end
953
+ end
954
+ end
955
+
686
956
  # The transfer's network.
687
957
  module Network
688
958
  extend Increase::Internal::Type::Enum