increase 1.76.0 → 1.78.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/event.rb +6 -0
- data/lib/increase/models/event_list_params.rb +6 -0
- data/lib/increase/models/event_subscription.rb +6 -0
- data/lib/increase/models/event_subscription_create_params.rb +6 -0
- data/lib/increase/models/wire_transfer.rb +114 -4
- data/lib/increase/models/wire_transfer_create_params.rb +110 -9
- data/lib/increase/resources/wire_transfers.rb +3 -3
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/event.rbi +14 -0
- data/rbi/increase/models/event_list_params.rbi +14 -0
- data/rbi/increase/models/event_subscription.rbi +14 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +14 -0
- data/rbi/increase/models/wire_transfer.rbi +215 -3
- data/rbi/increase/models/wire_transfer_create_params.rbi +222 -8
- data/rbi/increase/resources/wire_transfers.rbi +3 -3
- data/sig/increase/models/event.rbs +8 -0
- data/sig/increase/models/event_list_params.rbs +8 -0
- data/sig/increase/models/event_subscription.rbs +8 -0
- data/sig/increase/models/event_subscription_create_params.rbs +8 -0
- data/sig/increase/models/wire_transfer.rbs +83 -4
- data/sig/increase/models/wire_transfer_create_params.rbs +91 -5
- data/sig/increase/resources/wire_transfers.rbs +1 -1
- metadata +2 -2
@@ -101,7 +101,7 @@ module Increase
|
|
101
101
|
attr_accessor :inbound_wire_drawdown_request_id
|
102
102
|
|
103
103
|
# The message that will show on the recipient's bank statement.
|
104
|
-
sig { returns(
|
104
|
+
sig { returns(String) }
|
105
105
|
attr_accessor :message_to_recipient
|
106
106
|
|
107
107
|
# The transfer's network.
|
@@ -131,6 +131,17 @@ module Increase
|
|
131
131
|
sig { returns(T.nilable(String)) }
|
132
132
|
attr_accessor :pending_transaction_id
|
133
133
|
|
134
|
+
# Remittance information sent with the wire transfer.
|
135
|
+
sig { returns(T.nilable(Increase::WireTransfer::Remittance)) }
|
136
|
+
attr_reader :remittance
|
137
|
+
|
138
|
+
sig do
|
139
|
+
params(
|
140
|
+
remittance: T.nilable(Increase::WireTransfer::Remittance::OrHash)
|
141
|
+
).void
|
142
|
+
end
|
143
|
+
attr_writer :remittance
|
144
|
+
|
134
145
|
# If your transfer is reversed, this will contain details of the reversal.
|
135
146
|
sig { returns(T.nilable(Increase::WireTransfer::Reversal)) }
|
136
147
|
attr_reader :reversal
|
@@ -195,13 +206,14 @@ module Increase
|
|
195
206
|
external_account_id: T.nilable(String),
|
196
207
|
idempotency_key: T.nilable(String),
|
197
208
|
inbound_wire_drawdown_request_id: T.nilable(String),
|
198
|
-
message_to_recipient:
|
209
|
+
message_to_recipient: String,
|
199
210
|
network: Increase::WireTransfer::Network::OrSymbol,
|
200
211
|
originator_address_line1: T.nilable(String),
|
201
212
|
originator_address_line2: T.nilable(String),
|
202
213
|
originator_address_line3: T.nilable(String),
|
203
214
|
originator_name: T.nilable(String),
|
204
215
|
pending_transaction_id: T.nilable(String),
|
216
|
+
remittance: T.nilable(Increase::WireTransfer::Remittance::OrHash),
|
205
217
|
reversal: T.nilable(Increase::WireTransfer::Reversal::OrHash),
|
206
218
|
routing_number: String,
|
207
219
|
source_account_number_id: T.nilable(String),
|
@@ -268,6 +280,8 @@ module Increase
|
|
268
280
|
# [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
|
269
281
|
# by someone else in your organization.
|
270
282
|
pending_transaction_id:,
|
283
|
+
# Remittance information sent with the wire transfer.
|
284
|
+
remittance:,
|
271
285
|
# If your transfer is reversed, this will contain details of the reversal.
|
272
286
|
reversal:,
|
273
287
|
# The American Bankers' Association (ABA) Routing Transit Number (RTN).
|
@@ -306,13 +320,14 @@ module Increase
|
|
306
320
|
external_account_id: T.nilable(String),
|
307
321
|
idempotency_key: T.nilable(String),
|
308
322
|
inbound_wire_drawdown_request_id: T.nilable(String),
|
309
|
-
message_to_recipient:
|
323
|
+
message_to_recipient: String,
|
310
324
|
network: Increase::WireTransfer::Network::TaggedSymbol,
|
311
325
|
originator_address_line1: T.nilable(String),
|
312
326
|
originator_address_line2: T.nilable(String),
|
313
327
|
originator_address_line3: T.nilable(String),
|
314
328
|
originator_name: T.nilable(String),
|
315
329
|
pending_transaction_id: T.nilable(String),
|
330
|
+
remittance: T.nilable(Increase::WireTransfer::Remittance),
|
316
331
|
reversal: T.nilable(Increase::WireTransfer::Reversal),
|
317
332
|
routing_number: String,
|
318
333
|
source_account_number_id: T.nilable(String),
|
@@ -687,6 +702,203 @@ module Increase
|
|
687
702
|
end
|
688
703
|
end
|
689
704
|
|
705
|
+
class Remittance < Increase::Internal::Type::BaseModel
|
706
|
+
OrHash =
|
707
|
+
T.type_alias do
|
708
|
+
T.any(
|
709
|
+
Increase::WireTransfer::Remittance,
|
710
|
+
Increase::Internal::AnyHash
|
711
|
+
)
|
712
|
+
end
|
713
|
+
|
714
|
+
# The type of remittance information being passed.
|
715
|
+
sig do
|
716
|
+
returns(Increase::WireTransfer::Remittance::Category::TaggedSymbol)
|
717
|
+
end
|
718
|
+
attr_accessor :category
|
719
|
+
|
720
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
721
|
+
# is equal to `tax`.
|
722
|
+
sig { returns(T.nilable(Increase::WireTransfer::Remittance::Tax)) }
|
723
|
+
attr_reader :tax
|
724
|
+
|
725
|
+
sig do
|
726
|
+
params(
|
727
|
+
tax: T.nilable(Increase::WireTransfer::Remittance::Tax::OrHash)
|
728
|
+
).void
|
729
|
+
end
|
730
|
+
attr_writer :tax
|
731
|
+
|
732
|
+
# Unstructured remittance information. Required if `category` is equal to
|
733
|
+
# `unstructured`.
|
734
|
+
sig do
|
735
|
+
returns(T.nilable(Increase::WireTransfer::Remittance::Unstructured))
|
736
|
+
end
|
737
|
+
attr_reader :unstructured
|
738
|
+
|
739
|
+
sig do
|
740
|
+
params(
|
741
|
+
unstructured:
|
742
|
+
T.nilable(
|
743
|
+
Increase::WireTransfer::Remittance::Unstructured::OrHash
|
744
|
+
)
|
745
|
+
).void
|
746
|
+
end
|
747
|
+
attr_writer :unstructured
|
748
|
+
|
749
|
+
# Remittance information sent with the wire transfer.
|
750
|
+
sig do
|
751
|
+
params(
|
752
|
+
category: Increase::WireTransfer::Remittance::Category::OrSymbol,
|
753
|
+
tax: T.nilable(Increase::WireTransfer::Remittance::Tax::OrHash),
|
754
|
+
unstructured:
|
755
|
+
T.nilable(
|
756
|
+
Increase::WireTransfer::Remittance::Unstructured::OrHash
|
757
|
+
)
|
758
|
+
).returns(T.attached_class)
|
759
|
+
end
|
760
|
+
def self.new(
|
761
|
+
# The type of remittance information being passed.
|
762
|
+
category:,
|
763
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
764
|
+
# is equal to `tax`.
|
765
|
+
tax:,
|
766
|
+
# Unstructured remittance information. Required if `category` is equal to
|
767
|
+
# `unstructured`.
|
768
|
+
unstructured:
|
769
|
+
)
|
770
|
+
end
|
771
|
+
|
772
|
+
sig do
|
773
|
+
override.returns(
|
774
|
+
{
|
775
|
+
category:
|
776
|
+
Increase::WireTransfer::Remittance::Category::TaggedSymbol,
|
777
|
+
tax: T.nilable(Increase::WireTransfer::Remittance::Tax),
|
778
|
+
unstructured:
|
779
|
+
T.nilable(Increase::WireTransfer::Remittance::Unstructured)
|
780
|
+
}
|
781
|
+
)
|
782
|
+
end
|
783
|
+
def to_hash
|
784
|
+
end
|
785
|
+
|
786
|
+
# The type of remittance information being passed.
|
787
|
+
module Category
|
788
|
+
extend Increase::Internal::Type::Enum
|
789
|
+
|
790
|
+
TaggedSymbol =
|
791
|
+
T.type_alias do
|
792
|
+
T.all(Symbol, Increase::WireTransfer::Remittance::Category)
|
793
|
+
end
|
794
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
795
|
+
|
796
|
+
# The wire transfer contains unstructured remittance information.
|
797
|
+
UNSTRUCTURED =
|
798
|
+
T.let(
|
799
|
+
:unstructured,
|
800
|
+
Increase::WireTransfer::Remittance::Category::TaggedSymbol
|
801
|
+
)
|
802
|
+
|
803
|
+
# The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
|
804
|
+
TAX =
|
805
|
+
T.let(
|
806
|
+
:tax,
|
807
|
+
Increase::WireTransfer::Remittance::Category::TaggedSymbol
|
808
|
+
)
|
809
|
+
|
810
|
+
sig do
|
811
|
+
override.returns(
|
812
|
+
T::Array[
|
813
|
+
Increase::WireTransfer::Remittance::Category::TaggedSymbol
|
814
|
+
]
|
815
|
+
)
|
816
|
+
end
|
817
|
+
def self.values
|
818
|
+
end
|
819
|
+
end
|
820
|
+
|
821
|
+
class Tax < Increase::Internal::Type::BaseModel
|
822
|
+
OrHash =
|
823
|
+
T.type_alias do
|
824
|
+
T.any(
|
825
|
+
Increase::WireTransfer::Remittance::Tax,
|
826
|
+
Increase::Internal::AnyHash
|
827
|
+
)
|
828
|
+
end
|
829
|
+
|
830
|
+
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
|
831
|
+
# ignored.
|
832
|
+
sig { returns(Date) }
|
833
|
+
attr_accessor :date
|
834
|
+
|
835
|
+
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
|
836
|
+
# (EIN).
|
837
|
+
sig { returns(String) }
|
838
|
+
attr_accessor :identification_number
|
839
|
+
|
840
|
+
# The 5-character tax type code.
|
841
|
+
sig { returns(String) }
|
842
|
+
attr_accessor :type_code
|
843
|
+
|
844
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
845
|
+
# is equal to `tax`.
|
846
|
+
sig do
|
847
|
+
params(
|
848
|
+
date: Date,
|
849
|
+
identification_number: String,
|
850
|
+
type_code: String
|
851
|
+
).returns(T.attached_class)
|
852
|
+
end
|
853
|
+
def self.new(
|
854
|
+
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
|
855
|
+
# ignored.
|
856
|
+
date:,
|
857
|
+
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
|
858
|
+
# (EIN).
|
859
|
+
identification_number:,
|
860
|
+
# The 5-character tax type code.
|
861
|
+
type_code:
|
862
|
+
)
|
863
|
+
end
|
864
|
+
|
865
|
+
sig do
|
866
|
+
override.returns(
|
867
|
+
{ date: Date, identification_number: String, type_code: String }
|
868
|
+
)
|
869
|
+
end
|
870
|
+
def to_hash
|
871
|
+
end
|
872
|
+
end
|
873
|
+
|
874
|
+
class Unstructured < Increase::Internal::Type::BaseModel
|
875
|
+
OrHash =
|
876
|
+
T.type_alias do
|
877
|
+
T.any(
|
878
|
+
Increase::WireTransfer::Remittance::Unstructured,
|
879
|
+
Increase::Internal::AnyHash
|
880
|
+
)
|
881
|
+
end
|
882
|
+
|
883
|
+
# The message to the beneficiary.
|
884
|
+
sig { returns(String) }
|
885
|
+
attr_accessor :message
|
886
|
+
|
887
|
+
# Unstructured remittance information. Required if `category` is equal to
|
888
|
+
# `unstructured`.
|
889
|
+
sig { params(message: String).returns(T.attached_class) }
|
890
|
+
def self.new(
|
891
|
+
# The message to the beneficiary.
|
892
|
+
message:
|
893
|
+
)
|
894
|
+
end
|
895
|
+
|
896
|
+
sig { override.returns({ message: String }) }
|
897
|
+
def to_hash
|
898
|
+
end
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
690
902
|
class Reversal < Increase::Internal::Type::BaseModel
|
691
903
|
OrHash =
|
692
904
|
T.type_alias do
|
@@ -23,10 +23,6 @@ module Increase
|
|
23
23
|
sig { returns(String) }
|
24
24
|
attr_accessor :beneficiary_name
|
25
25
|
|
26
|
-
# The message that will show on the recipient's bank statement.
|
27
|
-
sig { returns(String) }
|
28
|
-
attr_accessor :message_to_recipient
|
29
|
-
|
30
26
|
# The account number for the destination account.
|
31
27
|
sig { returns(T.nilable(String)) }
|
32
28
|
attr_reader :account_number
|
@@ -103,6 +99,17 @@ module Increase
|
|
103
99
|
sig { params(originator_name: String).void }
|
104
100
|
attr_writer :originator_name
|
105
101
|
|
102
|
+
# Additional remittance information related to the wire transfer.
|
103
|
+
sig { returns(T.nilable(Increase::WireTransferCreateParams::Remittance)) }
|
104
|
+
attr_reader :remittance
|
105
|
+
|
106
|
+
sig do
|
107
|
+
params(
|
108
|
+
remittance: Increase::WireTransferCreateParams::Remittance::OrHash
|
109
|
+
).void
|
110
|
+
end
|
111
|
+
attr_writer :remittance
|
112
|
+
|
106
113
|
# Whether the transfer requires explicit approval via the dashboard or API.
|
107
114
|
sig { returns(T.nilable(T::Boolean)) }
|
108
115
|
attr_reader :require_approval
|
@@ -130,7 +137,6 @@ module Increase
|
|
130
137
|
account_id: String,
|
131
138
|
amount: Integer,
|
132
139
|
beneficiary_name: String,
|
133
|
-
message_to_recipient: String,
|
134
140
|
account_number: String,
|
135
141
|
beneficiary_address_line1: String,
|
136
142
|
beneficiary_address_line2: String,
|
@@ -141,6 +147,7 @@ module Increase
|
|
141
147
|
originator_address_line2: String,
|
142
148
|
originator_address_line3: String,
|
143
149
|
originator_name: String,
|
150
|
+
remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
|
144
151
|
require_approval: T::Boolean,
|
145
152
|
routing_number: String,
|
146
153
|
source_account_number_id: String,
|
@@ -154,8 +161,6 @@ module Increase
|
|
154
161
|
amount:,
|
155
162
|
# The beneficiary's name.
|
156
163
|
beneficiary_name:,
|
157
|
-
# The message that will show on the recipient's bank statement.
|
158
|
-
message_to_recipient:,
|
159
164
|
# The account number for the destination account.
|
160
165
|
account_number: nil,
|
161
166
|
# The beneficiary's address line 1.
|
@@ -182,6 +187,8 @@ module Increase
|
|
182
187
|
# The originator's name. This is only necessary if you're transferring from a
|
183
188
|
# commingled account. Otherwise, we'll use the associated entity's details.
|
184
189
|
originator_name: nil,
|
190
|
+
# Additional remittance information related to the wire transfer.
|
191
|
+
remittance: nil,
|
185
192
|
# Whether the transfer requires explicit approval via the dashboard or API.
|
186
193
|
require_approval: nil,
|
187
194
|
# The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
@@ -199,7 +206,6 @@ module Increase
|
|
199
206
|
account_id: String,
|
200
207
|
amount: Integer,
|
201
208
|
beneficiary_name: String,
|
202
|
-
message_to_recipient: String,
|
203
209
|
account_number: String,
|
204
210
|
beneficiary_address_line1: String,
|
205
211
|
beneficiary_address_line2: String,
|
@@ -210,6 +216,7 @@ module Increase
|
|
210
216
|
originator_address_line2: String,
|
211
217
|
originator_address_line3: String,
|
212
218
|
originator_name: String,
|
219
|
+
remittance: Increase::WireTransferCreateParams::Remittance,
|
213
220
|
require_approval: T::Boolean,
|
214
221
|
routing_number: String,
|
215
222
|
source_account_number_id: String,
|
@@ -219,6 +226,213 @@ module Increase
|
|
219
226
|
end
|
220
227
|
def to_hash
|
221
228
|
end
|
229
|
+
|
230
|
+
class Remittance < Increase::Internal::Type::BaseModel
|
231
|
+
OrHash =
|
232
|
+
T.type_alias do
|
233
|
+
T.any(
|
234
|
+
Increase::WireTransferCreateParams::Remittance,
|
235
|
+
Increase::Internal::AnyHash
|
236
|
+
)
|
237
|
+
end
|
238
|
+
|
239
|
+
# The type of remittance information being passed.
|
240
|
+
sig do
|
241
|
+
returns(
|
242
|
+
Increase::WireTransferCreateParams::Remittance::Category::OrSymbol
|
243
|
+
)
|
244
|
+
end
|
245
|
+
attr_accessor :category
|
246
|
+
|
247
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
248
|
+
# is equal to `tax`.
|
249
|
+
sig do
|
250
|
+
returns(
|
251
|
+
T.nilable(Increase::WireTransferCreateParams::Remittance::Tax)
|
252
|
+
)
|
253
|
+
end
|
254
|
+
attr_reader :tax
|
255
|
+
|
256
|
+
sig do
|
257
|
+
params(
|
258
|
+
tax: Increase::WireTransferCreateParams::Remittance::Tax::OrHash
|
259
|
+
).void
|
260
|
+
end
|
261
|
+
attr_writer :tax
|
262
|
+
|
263
|
+
# Unstructured remittance information. Required if `category` is equal to
|
264
|
+
# `unstructured`.
|
265
|
+
sig do
|
266
|
+
returns(
|
267
|
+
T.nilable(
|
268
|
+
Increase::WireTransferCreateParams::Remittance::Unstructured
|
269
|
+
)
|
270
|
+
)
|
271
|
+
end
|
272
|
+
attr_reader :unstructured
|
273
|
+
|
274
|
+
sig do
|
275
|
+
params(
|
276
|
+
unstructured:
|
277
|
+
Increase::WireTransferCreateParams::Remittance::Unstructured::OrHash
|
278
|
+
).void
|
279
|
+
end
|
280
|
+
attr_writer :unstructured
|
281
|
+
|
282
|
+
# Additional remittance information related to the wire transfer.
|
283
|
+
sig do
|
284
|
+
params(
|
285
|
+
category:
|
286
|
+
Increase::WireTransferCreateParams::Remittance::Category::OrSymbol,
|
287
|
+
tax: Increase::WireTransferCreateParams::Remittance::Tax::OrHash,
|
288
|
+
unstructured:
|
289
|
+
Increase::WireTransferCreateParams::Remittance::Unstructured::OrHash
|
290
|
+
).returns(T.attached_class)
|
291
|
+
end
|
292
|
+
def self.new(
|
293
|
+
# The type of remittance information being passed.
|
294
|
+
category:,
|
295
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
296
|
+
# is equal to `tax`.
|
297
|
+
tax: nil,
|
298
|
+
# Unstructured remittance information. Required if `category` is equal to
|
299
|
+
# `unstructured`.
|
300
|
+
unstructured: nil
|
301
|
+
)
|
302
|
+
end
|
303
|
+
|
304
|
+
sig do
|
305
|
+
override.returns(
|
306
|
+
{
|
307
|
+
category:
|
308
|
+
Increase::WireTransferCreateParams::Remittance::Category::OrSymbol,
|
309
|
+
tax: Increase::WireTransferCreateParams::Remittance::Tax,
|
310
|
+
unstructured:
|
311
|
+
Increase::WireTransferCreateParams::Remittance::Unstructured
|
312
|
+
}
|
313
|
+
)
|
314
|
+
end
|
315
|
+
def to_hash
|
316
|
+
end
|
317
|
+
|
318
|
+
# The type of remittance information being passed.
|
319
|
+
module Category
|
320
|
+
extend Increase::Internal::Type::Enum
|
321
|
+
|
322
|
+
TaggedSymbol =
|
323
|
+
T.type_alias do
|
324
|
+
T.all(
|
325
|
+
Symbol,
|
326
|
+
Increase::WireTransferCreateParams::Remittance::Category
|
327
|
+
)
|
328
|
+
end
|
329
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
330
|
+
|
331
|
+
# The wire transfer contains unstructured remittance information.
|
332
|
+
UNSTRUCTURED =
|
333
|
+
T.let(
|
334
|
+
:unstructured,
|
335
|
+
Increase::WireTransferCreateParams::Remittance::Category::TaggedSymbol
|
336
|
+
)
|
337
|
+
|
338
|
+
# The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
|
339
|
+
TAX =
|
340
|
+
T.let(
|
341
|
+
:tax,
|
342
|
+
Increase::WireTransferCreateParams::Remittance::Category::TaggedSymbol
|
343
|
+
)
|
344
|
+
|
345
|
+
sig do
|
346
|
+
override.returns(
|
347
|
+
T::Array[
|
348
|
+
Increase::WireTransferCreateParams::Remittance::Category::TaggedSymbol
|
349
|
+
]
|
350
|
+
)
|
351
|
+
end
|
352
|
+
def self.values
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
class Tax < Increase::Internal::Type::BaseModel
|
357
|
+
OrHash =
|
358
|
+
T.type_alias do
|
359
|
+
T.any(
|
360
|
+
Increase::WireTransferCreateParams::Remittance::Tax,
|
361
|
+
Increase::Internal::AnyHash
|
362
|
+
)
|
363
|
+
end
|
364
|
+
|
365
|
+
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
|
366
|
+
# ignored.
|
367
|
+
sig { returns(Date) }
|
368
|
+
attr_accessor :date
|
369
|
+
|
370
|
+
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
|
371
|
+
# (EIN).
|
372
|
+
sig { returns(String) }
|
373
|
+
attr_accessor :identification_number
|
374
|
+
|
375
|
+
# The 5-character tax type code.
|
376
|
+
sig { returns(String) }
|
377
|
+
attr_accessor :type_code
|
378
|
+
|
379
|
+
# Internal Revenue Service (IRS) tax repayment information. Required if `category`
|
380
|
+
# is equal to `tax`.
|
381
|
+
sig do
|
382
|
+
params(
|
383
|
+
date: Date,
|
384
|
+
identification_number: String,
|
385
|
+
type_code: String
|
386
|
+
).returns(T.attached_class)
|
387
|
+
end
|
388
|
+
def self.new(
|
389
|
+
# The month and year the tax payment is for, in YYYY-MM-DD format. The day is
|
390
|
+
# ignored.
|
391
|
+
date:,
|
392
|
+
# The 9-digit Tax Identification Number (TIN) or Employer Identification Number
|
393
|
+
# (EIN).
|
394
|
+
identification_number:,
|
395
|
+
# The 5-character tax type code.
|
396
|
+
type_code:
|
397
|
+
)
|
398
|
+
end
|
399
|
+
|
400
|
+
sig do
|
401
|
+
override.returns(
|
402
|
+
{ date: Date, identification_number: String, type_code: String }
|
403
|
+
)
|
404
|
+
end
|
405
|
+
def to_hash
|
406
|
+
end
|
407
|
+
end
|
408
|
+
|
409
|
+
class Unstructured < Increase::Internal::Type::BaseModel
|
410
|
+
OrHash =
|
411
|
+
T.type_alias do
|
412
|
+
T.any(
|
413
|
+
Increase::WireTransferCreateParams::Remittance::Unstructured,
|
414
|
+
Increase::Internal::AnyHash
|
415
|
+
)
|
416
|
+
end
|
417
|
+
|
418
|
+
# The message to the beneficiary.
|
419
|
+
sig { returns(String) }
|
420
|
+
attr_accessor :message
|
421
|
+
|
422
|
+
# Unstructured remittance information. Required if `category` is equal to
|
423
|
+
# `unstructured`.
|
424
|
+
sig { params(message: String).returns(T.attached_class) }
|
425
|
+
def self.new(
|
426
|
+
# The message to the beneficiary.
|
427
|
+
message:
|
428
|
+
)
|
429
|
+
end
|
430
|
+
|
431
|
+
sig { override.returns({ message: String }) }
|
432
|
+
def to_hash
|
433
|
+
end
|
434
|
+
end
|
435
|
+
end
|
222
436
|
end
|
223
437
|
end
|
224
438
|
end
|
@@ -9,7 +9,6 @@ module Increase
|
|
9
9
|
account_id: String,
|
10
10
|
amount: Integer,
|
11
11
|
beneficiary_name: String,
|
12
|
-
message_to_recipient: String,
|
13
12
|
account_number: String,
|
14
13
|
beneficiary_address_line1: String,
|
15
14
|
beneficiary_address_line2: String,
|
@@ -20,6 +19,7 @@ module Increase
|
|
20
19
|
originator_address_line2: String,
|
21
20
|
originator_address_line3: String,
|
22
21
|
originator_name: String,
|
22
|
+
remittance: Increase::WireTransferCreateParams::Remittance::OrHash,
|
23
23
|
require_approval: T::Boolean,
|
24
24
|
routing_number: String,
|
25
25
|
source_account_number_id: String,
|
@@ -33,8 +33,6 @@ module Increase
|
|
33
33
|
amount:,
|
34
34
|
# The beneficiary's name.
|
35
35
|
beneficiary_name:,
|
36
|
-
# The message that will show on the recipient's bank statement.
|
37
|
-
message_to_recipient:,
|
38
36
|
# The account number for the destination account.
|
39
37
|
account_number: nil,
|
40
38
|
# The beneficiary's address line 1.
|
@@ -61,6 +59,8 @@ module Increase
|
|
61
59
|
# The originator's name. This is only necessary if you're transferring from a
|
62
60
|
# commingled account. Otherwise, we'll use the associated entity's details.
|
63
61
|
originator_name: nil,
|
62
|
+
# Additional remittance information related to the wire transfer.
|
63
|
+
remittance: nil,
|
64
64
|
# Whether the transfer requires explicit approval via the dashboard or API.
|
65
65
|
require_approval: nil,
|
66
66
|
# The American Bankers' Association (ABA) Routing Transit Number (RTN) for the
|
@@ -82,6 +82,8 @@ module Increase
|
|
82
82
|
| :"export.updated"
|
83
83
|
| :"external_account.created"
|
84
84
|
| :"external_account.updated"
|
85
|
+
| :"fednow_transfer.created"
|
86
|
+
| :"fednow_transfer.updated"
|
85
87
|
| :"file.created"
|
86
88
|
| :"group.updated"
|
87
89
|
| :"group.heartbeat"
|
@@ -266,6 +268,12 @@ module Increase
|
|
266
268
|
# Occurs whenever an External Account is updated.
|
267
269
|
EXTERNAL_ACCOUNT_UPDATED: :"external_account.updated"
|
268
270
|
|
271
|
+
# Occurs whenever a FedNow Transfer is created.
|
272
|
+
FEDNOW_TRANSFER_CREATED: :"fednow_transfer.created"
|
273
|
+
|
274
|
+
# Occurs whenever a FedNow Transfer is updated.
|
275
|
+
FEDNOW_TRANSFER_UPDATED: :"fednow_transfer.updated"
|
276
|
+
|
269
277
|
# Occurs whenever a File is created.
|
270
278
|
FILE_CREATED: :"file.created"
|
271
279
|
|
@@ -115,6 +115,8 @@ module Increase
|
|
115
115
|
| :"export.updated"
|
116
116
|
| :"external_account.created"
|
117
117
|
| :"external_account.updated"
|
118
|
+
| :"fednow_transfer.created"
|
119
|
+
| :"fednow_transfer.updated"
|
118
120
|
| :"file.created"
|
119
121
|
| :"group.updated"
|
120
122
|
| :"group.heartbeat"
|
@@ -299,6 +301,12 @@ module Increase
|
|
299
301
|
# Occurs whenever an External Account is updated.
|
300
302
|
EXTERNAL_ACCOUNT_UPDATED: :"external_account.updated"
|
301
303
|
|
304
|
+
# Occurs whenever a FedNow Transfer is created.
|
305
|
+
FEDNOW_TRANSFER_CREATED: :"fednow_transfer.created"
|
306
|
+
|
307
|
+
# Occurs whenever a FedNow Transfer is updated.
|
308
|
+
FEDNOW_TRANSFER_UPDATED: :"fednow_transfer.updated"
|
309
|
+
|
302
310
|
# Occurs whenever a File is created.
|
303
311
|
FILE_CREATED: :"file.created"
|
304
312
|
|
@@ -92,6 +92,8 @@ module Increase
|
|
92
92
|
| :"export.updated"
|
93
93
|
| :"external_account.created"
|
94
94
|
| :"external_account.updated"
|
95
|
+
| :"fednow_transfer.created"
|
96
|
+
| :"fednow_transfer.updated"
|
95
97
|
| :"file.created"
|
96
98
|
| :"group.updated"
|
97
99
|
| :"group.heartbeat"
|
@@ -276,6 +278,12 @@ module Increase
|
|
276
278
|
# Occurs whenever an External Account is updated.
|
277
279
|
EXTERNAL_ACCOUNT_UPDATED: :"external_account.updated"
|
278
280
|
|
281
|
+
# Occurs whenever a FedNow Transfer is created.
|
282
|
+
FEDNOW_TRANSFER_CREATED: :"fednow_transfer.created"
|
283
|
+
|
284
|
+
# Occurs whenever a FedNow Transfer is updated.
|
285
|
+
FEDNOW_TRANSFER_UPDATED: :"fednow_transfer.updated"
|
286
|
+
|
279
287
|
# Occurs whenever a File is created.
|
280
288
|
FILE_CREATED: :"file.created"
|
281
289
|
|
@@ -86,6 +86,8 @@ module Increase
|
|
86
86
|
| :"export.updated"
|
87
87
|
| :"external_account.created"
|
88
88
|
| :"external_account.updated"
|
89
|
+
| :"fednow_transfer.created"
|
90
|
+
| :"fednow_transfer.updated"
|
89
91
|
| :"file.created"
|
90
92
|
| :"group.updated"
|
91
93
|
| :"group.heartbeat"
|
@@ -270,6 +272,12 @@ module Increase
|
|
270
272
|
# Occurs whenever an External Account is updated.
|
271
273
|
EXTERNAL_ACCOUNT_UPDATED: :"external_account.updated"
|
272
274
|
|
275
|
+
# Occurs whenever a FedNow Transfer is created.
|
276
|
+
FEDNOW_TRANSFER_CREATED: :"fednow_transfer.created"
|
277
|
+
|
278
|
+
# Occurs whenever a FedNow Transfer is updated.
|
279
|
+
FEDNOW_TRANSFER_UPDATED: :"fednow_transfer.updated"
|
280
|
+
|
273
281
|
# Occurs whenever a File is created.
|
274
282
|
FILE_CREATED: :"file.created"
|
275
283
|
|