increase 1.77.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8c813e5a546b3674e44faadd523d88575f10cfe4b937928713a0197d2cc13be7
4
- data.tar.gz: 7d25cbe0e2ba6279c2f4f19756fd5582981c83b5c3f6ba43ef9f0c38b5afa39a
3
+ metadata.gz: 24c16839add9c7242cea41b16af8640f01b8a5954381b3c85fe85bf8f2f5ea3c
4
+ data.tar.gz: 9ef32e737872f39e2f4706f3348eaba7a6d4116cbf31446bafb25d549db39868
5
5
  SHA512:
6
- metadata.gz: bb6301981f62b30333d649079819c9f2c98e7d64b35190ed514948fdaba6800f9c4f1953f26019f7b1cb17d703d8c8c37192514c0f29769c5de0b607b5c6f67b
7
- data.tar.gz: 3e2cd45eafd8353eda49f6a99dee8ad79e824c72a5c711c97660d7b44c64dfd87417d546c80095269ca3dd7f23360829239f1b0540365fed3582811d4afebbc8
6
+ metadata.gz: cb2e299e430a1261d9086000928215a808be762917187d289dd86834407d940c8c2a017b34cb56cf0e4edc01e7f78e75aa2e2f01a1300cfb11cbc7533a3c3fb2
7
+ data.tar.gz: 900a6fff1143f8c9e17046910787c197386a23c981e5aec5e619c3afce54615b36f66da3d9dc02970ccf9c4858b9af00cfe05cb00883a9f43ea603993301b1ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.78.0 (2025-09-16)
4
+
5
+ Full Changelog: [v1.77.0...v1.78.0](https://github.com/Increase/increase-ruby/compare/v1.77.0...v1.78.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([a643e15](https://github.com/Increase/increase-ruby/commit/a643e1536b7cdfb7e311d9f6cfd18eaef9a4db7d))
10
+
3
11
  ## 1.77.0 (2025-09-16)
4
12
 
5
13
  Full Changelog: [v1.76.0...v1.77.0](https://github.com/Increase/increase-ruby/compare/v1.76.0...v1.77.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.77.0"
18
+ gem "increase", "~> 1.78.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -110,8 +110,8 @@ module Increase
110
110
  # @!attribute message_to_recipient
111
111
  # The message that will show on the recipient's bank statement.
112
112
  #
113
- # @return [String, nil]
114
- required :message_to_recipient, String, nil?: true
113
+ # @return [String]
114
+ required :message_to_recipient, String
115
115
 
116
116
  # @!attribute network
117
117
  # The transfer's network.
@@ -152,6 +152,12 @@ module Increase
152
152
  # @return [String, nil]
153
153
  required :pending_transaction_id, String, nil?: true
154
154
 
155
+ # @!attribute remittance
156
+ # Remittance information sent with the wire transfer.
157
+ #
158
+ # @return [Increase::Models::WireTransfer::Remittance, nil]
159
+ required :remittance, -> { Increase::WireTransfer::Remittance }, nil?: true
160
+
155
161
  # @!attribute reversal
156
162
  # If your transfer is reversed, this will contain details of the reversal.
157
163
  #
@@ -196,7 +202,7 @@ module Increase
196
202
  # @return [Symbol, Increase::Models::WireTransfer::Type]
197
203
  required :type, enum: -> { Increase::WireTransfer::Type }
198
204
 
199
- # @!method initialize(id:, account_id:, account_number:, amount:, approval:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, cancellation:, created_at:, created_by:, currency:, external_account_id:, idempotency_key:, inbound_wire_drawdown_request_id:, message_to_recipient:, network:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, pending_transaction_id:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:)
205
+ # @!method initialize(id:, account_id:, account_number:, amount:, approval:, beneficiary_address_line1:, beneficiary_address_line2:, beneficiary_address_line3:, beneficiary_name:, cancellation:, created_at:, created_by:, currency:, external_account_id:, idempotency_key:, inbound_wire_drawdown_request_id:, message_to_recipient:, network:, originator_address_line1:, originator_address_line2:, originator_address_line3:, originator_name:, pending_transaction_id:, remittance:, reversal:, routing_number:, source_account_number_id:, status:, submission:, transaction_id:, type:)
200
206
  # Some parameter documentations has been truncated, see
201
207
  # {Increase::Models::WireTransfer} for more details.
202
208
  #
@@ -235,7 +241,7 @@ module Increase
235
241
  #
236
242
  # @param inbound_wire_drawdown_request_id [String, nil] The ID of an Inbound Wire Drawdown Request in response to which this transfer wa
237
243
  #
238
- # @param message_to_recipient [String, nil] The message that will show on the recipient's bank statement.
244
+ # @param message_to_recipient [String] The message that will show on the recipient's bank statement.
239
245
  #
240
246
  # @param network [Symbol, Increase::Models::WireTransfer::Network] The transfer's network.
241
247
  #
@@ -249,6 +255,8 @@ module Increase
249
255
  #
250
256
  # @param pending_transaction_id [String, nil] The ID for the pending transaction representing the transfer. A pending transact
251
257
  #
258
+ # @param remittance [Increase::Models::WireTransfer::Remittance, nil] Remittance information sent with the wire transfer.
259
+ #
252
260
  # @param reversal [Increase::Models::WireTransfer::Reversal, nil] If your transfer is reversed, this will contain details of the reversal.
253
261
  #
254
262
  # @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN).
@@ -459,6 +467,108 @@ module Increase
459
467
  # @return [Array<Symbol>]
460
468
  end
461
469
 
470
+ # @see Increase::Models::WireTransfer#remittance
471
+ class Remittance < Increase::Internal::Type::BaseModel
472
+ # @!attribute category
473
+ # The type of remittance information being passed.
474
+ #
475
+ # @return [Symbol, Increase::Models::WireTransfer::Remittance::Category]
476
+ required :category, enum: -> { Increase::WireTransfer::Remittance::Category }
477
+
478
+ # @!attribute tax
479
+ # Internal Revenue Service (IRS) tax repayment information. Required if `category`
480
+ # is equal to `tax`.
481
+ #
482
+ # @return [Increase::Models::WireTransfer::Remittance::Tax, nil]
483
+ required :tax, -> { Increase::WireTransfer::Remittance::Tax }, nil?: true
484
+
485
+ # @!attribute unstructured
486
+ # Unstructured remittance information. Required if `category` is equal to
487
+ # `unstructured`.
488
+ #
489
+ # @return [Increase::Models::WireTransfer::Remittance::Unstructured, nil]
490
+ required :unstructured, -> { Increase::WireTransfer::Remittance::Unstructured }, nil?: true
491
+
492
+ # @!method initialize(category:, tax:, unstructured:)
493
+ # Some parameter documentations has been truncated, see
494
+ # {Increase::Models::WireTransfer::Remittance} for more details.
495
+ #
496
+ # Remittance information sent with the wire transfer.
497
+ #
498
+ # @param category [Symbol, Increase::Models::WireTransfer::Remittance::Category] The type of remittance information being passed.
499
+ #
500
+ # @param tax [Increase::Models::WireTransfer::Remittance::Tax, nil] Internal Revenue Service (IRS) tax repayment information. Required if `category`
501
+ #
502
+ # @param unstructured [Increase::Models::WireTransfer::Remittance::Unstructured, nil] Unstructured remittance information. Required if `category` is equal to `unstruc
503
+
504
+ # The type of remittance information being passed.
505
+ #
506
+ # @see Increase::Models::WireTransfer::Remittance#category
507
+ module Category
508
+ extend Increase::Internal::Type::Enum
509
+
510
+ # The wire transfer contains unstructured remittance information.
511
+ UNSTRUCTURED = :unstructured
512
+
513
+ # The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
514
+ TAX = :tax
515
+
516
+ # @!method self.values
517
+ # @return [Array<Symbol>]
518
+ end
519
+
520
+ # @see Increase::Models::WireTransfer::Remittance#tax
521
+ class Tax < Increase::Internal::Type::BaseModel
522
+ # @!attribute date
523
+ # The month and year the tax payment is for, in YYYY-MM-DD format. The day is
524
+ # ignored.
525
+ #
526
+ # @return [Date]
527
+ required :date, Date
528
+
529
+ # @!attribute identification_number
530
+ # The 9-digit Tax Identification Number (TIN) or Employer Identification Number
531
+ # (EIN).
532
+ #
533
+ # @return [String]
534
+ required :identification_number, String
535
+
536
+ # @!attribute type_code
537
+ # The 5-character tax type code.
538
+ #
539
+ # @return [String]
540
+ required :type_code, String
541
+
542
+ # @!method initialize(date:, identification_number:, type_code:)
543
+ # Some parameter documentations has been truncated, see
544
+ # {Increase::Models::WireTransfer::Remittance::Tax} for more details.
545
+ #
546
+ # Internal Revenue Service (IRS) tax repayment information. Required if `category`
547
+ # is equal to `tax`.
548
+ #
549
+ # @param date [Date] The month and year the tax payment is for, in YYYY-MM-DD format. The day is igno
550
+ #
551
+ # @param identification_number [String] The 9-digit Tax Identification Number (TIN) or Employer Identification Number (E
552
+ #
553
+ # @param type_code [String] The 5-character tax type code.
554
+ end
555
+
556
+ # @see Increase::Models::WireTransfer::Remittance#unstructured
557
+ class Unstructured < Increase::Internal::Type::BaseModel
558
+ # @!attribute message
559
+ # The message to the beneficiary.
560
+ #
561
+ # @return [String]
562
+ required :message, String
563
+
564
+ # @!method initialize(message:)
565
+ # Unstructured remittance information. Required if `category` is equal to
566
+ # `unstructured`.
567
+ #
568
+ # @param message [String] The message to the beneficiary.
569
+ end
570
+ end
571
+
462
572
  # @see Increase::Models::WireTransfer#reversal
463
573
  class Reversal < Increase::Internal::Type::BaseModel
464
574
  # @!attribute amount
@@ -25,12 +25,6 @@ module Increase
25
25
  # @return [String]
26
26
  required :beneficiary_name, String
27
27
 
28
- # @!attribute message_to_recipient
29
- # The message that will show on the recipient's bank statement.
30
- #
31
- # @return [String]
32
- required :message_to_recipient, String
33
-
34
28
  # @!attribute account_number
35
29
  # The account number for the destination account.
36
30
  #
@@ -97,6 +91,12 @@ module Increase
97
91
  # @return [String, nil]
98
92
  optional :originator_name, String
99
93
 
94
+ # @!attribute remittance
95
+ # Additional remittance information related to the wire transfer.
96
+ #
97
+ # @return [Increase::Models::WireTransferCreateParams::Remittance, nil]
98
+ optional :remittance, -> { Increase::WireTransferCreateParams::Remittance }
99
+
100
100
  # @!attribute require_approval
101
101
  # Whether the transfer requires explicit approval via the dashboard or API.
102
102
  #
@@ -116,7 +116,7 @@ module Increase
116
116
  # @return [String, nil]
117
117
  optional :source_account_number_id, String
118
118
 
119
- # @!method initialize(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
119
+ # @!method initialize(account_id:, amount:, beneficiary_name:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, remittance: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
120
120
  # Some parameter documentations has been truncated, see
121
121
  # {Increase::Models::WireTransferCreateParams} for more details.
122
122
  #
@@ -126,8 +126,6 @@ module Increase
126
126
  #
127
127
  # @param beneficiary_name [String] The beneficiary's name.
128
128
  #
129
- # @param message_to_recipient [String] The message that will show on the recipient's bank statement.
130
- #
131
129
  # @param account_number [String] The account number for the destination account.
132
130
  #
133
131
  # @param beneficiary_address_line1 [String] The beneficiary's address line 1.
@@ -148,6 +146,8 @@ module Increase
148
146
  #
149
147
  # @param originator_name [String] The originator's name. This is only necessary if you're transferring from a comm
150
148
  #
149
+ # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer.
150
+ #
151
151
  # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
152
152
  #
153
153
  # @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN) for the des
@@ -155,6 +155,107 @@ module Increase
155
155
  # @param source_account_number_id [String] The ID of an Account Number that will be passed to the wire's recipient
156
156
  #
157
157
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
158
+
159
+ class Remittance < Increase::Internal::Type::BaseModel
160
+ # @!attribute category
161
+ # The type of remittance information being passed.
162
+ #
163
+ # @return [Symbol, Increase::Models::WireTransferCreateParams::Remittance::Category]
164
+ required :category, enum: -> { Increase::WireTransferCreateParams::Remittance::Category }
165
+
166
+ # @!attribute tax
167
+ # Internal Revenue Service (IRS) tax repayment information. Required if `category`
168
+ # is equal to `tax`.
169
+ #
170
+ # @return [Increase::Models::WireTransferCreateParams::Remittance::Tax, nil]
171
+ optional :tax, -> { Increase::WireTransferCreateParams::Remittance::Tax }
172
+
173
+ # @!attribute unstructured
174
+ # Unstructured remittance information. Required if `category` is equal to
175
+ # `unstructured`.
176
+ #
177
+ # @return [Increase::Models::WireTransferCreateParams::Remittance::Unstructured, nil]
178
+ optional :unstructured, -> { Increase::WireTransferCreateParams::Remittance::Unstructured }
179
+
180
+ # @!method initialize(category:, tax: nil, unstructured: nil)
181
+ # Some parameter documentations has been truncated, see
182
+ # {Increase::Models::WireTransferCreateParams::Remittance} for more details.
183
+ #
184
+ # Additional remittance information related to the wire transfer.
185
+ #
186
+ # @param category [Symbol, Increase::Models::WireTransferCreateParams::Remittance::Category] The type of remittance information being passed.
187
+ #
188
+ # @param tax [Increase::Models::WireTransferCreateParams::Remittance::Tax] Internal Revenue Service (IRS) tax repayment information. Required if `category`
189
+ #
190
+ # @param unstructured [Increase::Models::WireTransferCreateParams::Remittance::Unstructured] Unstructured remittance information. Required if `category` is equal to `unstruc
191
+
192
+ # The type of remittance information being passed.
193
+ #
194
+ # @see Increase::Models::WireTransferCreateParams::Remittance#category
195
+ module Category
196
+ extend Increase::Internal::Type::Enum
197
+
198
+ # The wire transfer contains unstructured remittance information.
199
+ UNSTRUCTURED = :unstructured
200
+
201
+ # The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
202
+ TAX = :tax
203
+
204
+ # @!method self.values
205
+ # @return [Array<Symbol>]
206
+ end
207
+
208
+ # @see Increase::Models::WireTransferCreateParams::Remittance#tax
209
+ class Tax < Increase::Internal::Type::BaseModel
210
+ # @!attribute date
211
+ # The month and year the tax payment is for, in YYYY-MM-DD format. The day is
212
+ # ignored.
213
+ #
214
+ # @return [Date]
215
+ required :date, Date
216
+
217
+ # @!attribute identification_number
218
+ # The 9-digit Tax Identification Number (TIN) or Employer Identification Number
219
+ # (EIN).
220
+ #
221
+ # @return [String]
222
+ required :identification_number, String
223
+
224
+ # @!attribute type_code
225
+ # The 5-character tax type code.
226
+ #
227
+ # @return [String]
228
+ required :type_code, String
229
+
230
+ # @!method initialize(date:, identification_number:, type_code:)
231
+ # Some parameter documentations has been truncated, see
232
+ # {Increase::Models::WireTransferCreateParams::Remittance::Tax} for more details.
233
+ #
234
+ # Internal Revenue Service (IRS) tax repayment information. Required if `category`
235
+ # is equal to `tax`.
236
+ #
237
+ # @param date [Date] The month and year the tax payment is for, in YYYY-MM-DD format. The day is igno
238
+ #
239
+ # @param identification_number [String] The 9-digit Tax Identification Number (TIN) or Employer Identification Number (E
240
+ #
241
+ # @param type_code [String] The 5-character tax type code.
242
+ end
243
+
244
+ # @see Increase::Models::WireTransferCreateParams::Remittance#unstructured
245
+ class Unstructured < Increase::Internal::Type::BaseModel
246
+ # @!attribute message
247
+ # The message to the beneficiary.
248
+ #
249
+ # @return [String]
250
+ required :message, String
251
+
252
+ # @!method initialize(message:)
253
+ # Unstructured remittance information. Required if `category` is equal to
254
+ # `unstructured`.
255
+ #
256
+ # @param message [String] The message to the beneficiary.
257
+ end
258
+ end
158
259
  end
159
260
  end
160
261
  end
@@ -8,7 +8,7 @@ module Increase
8
8
  #
9
9
  # Create a Wire Transfer
10
10
  #
11
- # @overload create(account_id:, amount:, beneficiary_name:, message_to_recipient:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
11
+ # @overload create(account_id:, amount:, beneficiary_name:, account_number: nil, beneficiary_address_line1: nil, beneficiary_address_line2: nil, beneficiary_address_line3: nil, external_account_id: nil, inbound_wire_drawdown_request_id: nil, originator_address_line1: nil, originator_address_line2: nil, originator_address_line3: nil, originator_name: nil, remittance: nil, require_approval: nil, routing_number: nil, source_account_number_id: nil, request_options: {})
12
12
  #
13
13
  # @param account_id [String] The identifier for the account that will send the transfer.
14
14
  #
@@ -16,8 +16,6 @@ module Increase
16
16
  #
17
17
  # @param beneficiary_name [String] The beneficiary's name.
18
18
  #
19
- # @param message_to_recipient [String] The message that will show on the recipient's bank statement.
20
- #
21
19
  # @param account_number [String] The account number for the destination account.
22
20
  #
23
21
  # @param beneficiary_address_line1 [String] The beneficiary's address line 1.
@@ -38,6 +36,8 @@ module Increase
38
36
  #
39
37
  # @param originator_name [String] The originator's name. This is only necessary if you're transferring from a comm
40
38
  #
39
+ # @param remittance [Increase::Models::WireTransferCreateParams::Remittance] Additional remittance information related to the wire transfer.
40
+ #
41
41
  # @param require_approval [Boolean] Whether the transfer requires explicit approval via the dashboard or API.
42
42
  #
43
43
  # @param routing_number [String] The American Bankers' Association (ABA) Routing Transit Number (RTN) for the des
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.77.0"
4
+ VERSION = "1.78.0"
5
5
  end
@@ -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(T.nilable(String)) }
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: T.nilable(String),
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: T.nilable(String),
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
@@ -18,13 +18,14 @@ module Increase
18
18
  external_account_id: String?,
19
19
  idempotency_key: String?,
20
20
  inbound_wire_drawdown_request_id: String?,
21
- message_to_recipient: String?,
21
+ message_to_recipient: String,
22
22
  network: Increase::Models::WireTransfer::network,
23
23
  :originator_address_line1 => String?,
24
24
  :originator_address_line2 => String?,
25
25
  :originator_address_line3 => String?,
26
26
  originator_name: String?,
27
27
  pending_transaction_id: String?,
28
+ remittance: Increase::WireTransfer::Remittance?,
28
29
  reversal: Increase::WireTransfer::Reversal?,
29
30
  routing_number: String,
30
31
  source_account_number_id: String?,
@@ -67,7 +68,7 @@ module Increase
67
68
 
68
69
  attr_accessor inbound_wire_drawdown_request_id: String?
69
70
 
70
- attr_accessor message_to_recipient: String?
71
+ attr_accessor message_to_recipient: String
71
72
 
72
73
  attr_accessor network: Increase::Models::WireTransfer::network
73
74
 
@@ -81,6 +82,8 @@ module Increase
81
82
 
82
83
  attr_accessor pending_transaction_id: String?
83
84
 
85
+ attr_accessor remittance: Increase::WireTransfer::Remittance?
86
+
84
87
  attr_accessor reversal: Increase::WireTransfer::Reversal?
85
88
 
86
89
  attr_accessor routing_number: String
@@ -112,13 +115,14 @@ module Increase
112
115
  external_account_id: String?,
113
116
  idempotency_key: String?,
114
117
  inbound_wire_drawdown_request_id: String?,
115
- message_to_recipient: String?,
118
+ message_to_recipient: String,
116
119
  network: Increase::Models::WireTransfer::network,
117
120
  originator_address_line1: String?,
118
121
  originator_address_line2: String?,
119
122
  originator_address_line3: String?,
120
123
  originator_name: String?,
121
124
  pending_transaction_id: String?,
125
+ remittance: Increase::WireTransfer::Remittance?,
122
126
  reversal: Increase::WireTransfer::Reversal?,
123
127
  routing_number: String,
124
128
  source_account_number_id: String?,
@@ -145,13 +149,14 @@ module Increase
145
149
  external_account_id: String?,
146
150
  idempotency_key: String?,
147
151
  inbound_wire_drawdown_request_id: String?,
148
- message_to_recipient: String?,
152
+ message_to_recipient: String,
149
153
  network: Increase::Models::WireTransfer::network,
150
154
  :originator_address_line1 => String?,
151
155
  :originator_address_line2 => String?,
152
156
  :originator_address_line3 => String?,
153
157
  originator_name: String?,
154
158
  pending_transaction_id: String?,
159
+ remittance: Increase::WireTransfer::Remittance?,
155
160
  reversal: Increase::WireTransfer::Reversal?,
156
161
  routing_number: String,
157
162
  source_account_number_id: String?,
@@ -300,6 +305,80 @@ module Increase
300
305
  def self?.values: -> ::Array[Increase::Models::WireTransfer::network]
301
306
  end
302
307
 
308
+ type remittance =
309
+ {
310
+ category: Increase::Models::WireTransfer::Remittance::category,
311
+ tax: Increase::WireTransfer::Remittance::Tax?,
312
+ unstructured: Increase::WireTransfer::Remittance::Unstructured?
313
+ }
314
+
315
+ class Remittance < Increase::Internal::Type::BaseModel
316
+ attr_accessor category: Increase::Models::WireTransfer::Remittance::category
317
+
318
+ attr_accessor tax: Increase::WireTransfer::Remittance::Tax?
319
+
320
+ attr_accessor unstructured: Increase::WireTransfer::Remittance::Unstructured?
321
+
322
+ def initialize: (
323
+ category: Increase::Models::WireTransfer::Remittance::category,
324
+ tax: Increase::WireTransfer::Remittance::Tax?,
325
+ unstructured: Increase::WireTransfer::Remittance::Unstructured?
326
+ ) -> void
327
+
328
+ def to_hash: -> {
329
+ category: Increase::Models::WireTransfer::Remittance::category,
330
+ tax: Increase::WireTransfer::Remittance::Tax?,
331
+ unstructured: Increase::WireTransfer::Remittance::Unstructured?
332
+ }
333
+
334
+ type category = :unstructured | :tax
335
+
336
+ module Category
337
+ extend Increase::Internal::Type::Enum
338
+
339
+ # The wire transfer contains unstructured remittance information.
340
+ UNSTRUCTURED: :unstructured
341
+
342
+ # The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
343
+ TAX: :tax
344
+
345
+ def self?.values: -> ::Array[Increase::Models::WireTransfer::Remittance::category]
346
+ end
347
+
348
+ type tax =
349
+ { date: Date, identification_number: String, type_code: String }
350
+
351
+ class Tax < Increase::Internal::Type::BaseModel
352
+ attr_accessor date: Date
353
+
354
+ attr_accessor identification_number: String
355
+
356
+ attr_accessor type_code: String
357
+
358
+ def initialize: (
359
+ date: Date,
360
+ identification_number: String,
361
+ type_code: String
362
+ ) -> void
363
+
364
+ def to_hash: -> {
365
+ date: Date,
366
+ identification_number: String,
367
+ type_code: String
368
+ }
369
+ end
370
+
371
+ type unstructured = { message: String }
372
+
373
+ class Unstructured < Increase::Internal::Type::BaseModel
374
+ attr_accessor message: String
375
+
376
+ def initialize: (message: String) -> void
377
+
378
+ def to_hash: -> { message: String }
379
+ end
380
+ end
381
+
303
382
  type reversal =
304
383
  {
305
384
  amount: Integer,
@@ -5,7 +5,6 @@ module Increase
5
5
  account_id: String,
6
6
  amount: Integer,
7
7
  beneficiary_name: String,
8
- message_to_recipient: String,
9
8
  account_number: String,
10
9
  :beneficiary_address_line1 => String,
11
10
  :beneficiary_address_line2 => String,
@@ -16,6 +15,7 @@ module Increase
16
15
  :originator_address_line2 => String,
17
16
  :originator_address_line3 => String,
18
17
  originator_name: String,
18
+ remittance: Increase::WireTransferCreateParams::Remittance,
19
19
  require_approval: bool,
20
20
  routing_number: String,
21
21
  source_account_number_id: String
@@ -32,8 +32,6 @@ module Increase
32
32
 
33
33
  attr_accessor beneficiary_name: String
34
34
 
35
- attr_accessor message_to_recipient: String
36
-
37
35
  attr_reader account_number: String?
38
36
 
39
37
  def account_number=: (String) -> String
@@ -74,6 +72,12 @@ module Increase
74
72
 
75
73
  def originator_name=: (String) -> String
76
74
 
75
+ attr_reader remittance: Increase::WireTransferCreateParams::Remittance?
76
+
77
+ def remittance=: (
78
+ Increase::WireTransferCreateParams::Remittance
79
+ ) -> Increase::WireTransferCreateParams::Remittance
80
+
77
81
  attr_reader require_approval: bool?
78
82
 
79
83
  def require_approval=: (bool) -> bool
@@ -90,7 +94,6 @@ module Increase
90
94
  account_id: String,
91
95
  amount: Integer,
92
96
  beneficiary_name: String,
93
- message_to_recipient: String,
94
97
  ?account_number: String,
95
98
  ?beneficiary_address_line1: String,
96
99
  ?beneficiary_address_line2: String,
@@ -101,6 +104,7 @@ module Increase
101
104
  ?originator_address_line2: String,
102
105
  ?originator_address_line3: String,
103
106
  ?originator_name: String,
107
+ ?remittance: Increase::WireTransferCreateParams::Remittance,
104
108
  ?require_approval: bool,
105
109
  ?routing_number: String,
106
110
  ?source_account_number_id: String,
@@ -111,7 +115,6 @@ module Increase
111
115
  account_id: String,
112
116
  amount: Integer,
113
117
  beneficiary_name: String,
114
- message_to_recipient: String,
115
118
  account_number: String,
116
119
  :beneficiary_address_line1 => String,
117
120
  :beneficiary_address_line2 => String,
@@ -122,11 +125,94 @@ module Increase
122
125
  :originator_address_line2 => String,
123
126
  :originator_address_line3 => String,
124
127
  originator_name: String,
128
+ remittance: Increase::WireTransferCreateParams::Remittance,
125
129
  require_approval: bool,
126
130
  routing_number: String,
127
131
  source_account_number_id: String,
128
132
  request_options: Increase::RequestOptions
129
133
  }
134
+
135
+ type remittance =
136
+ {
137
+ category: Increase::Models::WireTransferCreateParams::Remittance::category,
138
+ tax: Increase::WireTransferCreateParams::Remittance::Tax,
139
+ unstructured: Increase::WireTransferCreateParams::Remittance::Unstructured
140
+ }
141
+
142
+ class Remittance < Increase::Internal::Type::BaseModel
143
+ attr_accessor category: Increase::Models::WireTransferCreateParams::Remittance::category
144
+
145
+ attr_reader tax: Increase::WireTransferCreateParams::Remittance::Tax?
146
+
147
+ def tax=: (
148
+ Increase::WireTransferCreateParams::Remittance::Tax
149
+ ) -> Increase::WireTransferCreateParams::Remittance::Tax
150
+
151
+ attr_reader unstructured: Increase::WireTransferCreateParams::Remittance::Unstructured?
152
+
153
+ def unstructured=: (
154
+ Increase::WireTransferCreateParams::Remittance::Unstructured
155
+ ) -> Increase::WireTransferCreateParams::Remittance::Unstructured
156
+
157
+ def initialize: (
158
+ category: Increase::Models::WireTransferCreateParams::Remittance::category,
159
+ ?tax: Increase::WireTransferCreateParams::Remittance::Tax,
160
+ ?unstructured: Increase::WireTransferCreateParams::Remittance::Unstructured
161
+ ) -> void
162
+
163
+ def to_hash: -> {
164
+ category: Increase::Models::WireTransferCreateParams::Remittance::category,
165
+ tax: Increase::WireTransferCreateParams::Remittance::Tax,
166
+ unstructured: Increase::WireTransferCreateParams::Remittance::Unstructured
167
+ }
168
+
169
+ type category = :unstructured | :tax
170
+
171
+ module Category
172
+ extend Increase::Internal::Type::Enum
173
+
174
+ # The wire transfer contains unstructured remittance information.
175
+ UNSTRUCTURED: :unstructured
176
+
177
+ # The wire transfer is for tax payment purposes to the Internal Revenue Service (IRS).
178
+ TAX: :tax
179
+
180
+ def self?.values: -> ::Array[Increase::Models::WireTransferCreateParams::Remittance::category]
181
+ end
182
+
183
+ type tax =
184
+ { date: Date, identification_number: String, type_code: String }
185
+
186
+ class Tax < Increase::Internal::Type::BaseModel
187
+ attr_accessor date: Date
188
+
189
+ attr_accessor identification_number: String
190
+
191
+ attr_accessor type_code: String
192
+
193
+ def initialize: (
194
+ date: Date,
195
+ identification_number: String,
196
+ type_code: String
197
+ ) -> void
198
+
199
+ def to_hash: -> {
200
+ date: Date,
201
+ identification_number: String,
202
+ type_code: String
203
+ }
204
+ end
205
+
206
+ type unstructured = { message: String }
207
+
208
+ class Unstructured < Increase::Internal::Type::BaseModel
209
+ attr_accessor message: String
210
+
211
+ def initialize: (message: String) -> void
212
+
213
+ def to_hash: -> { message: String }
214
+ end
215
+ end
130
216
  end
131
217
  end
132
218
  end
@@ -5,7 +5,6 @@ module Increase
5
5
  account_id: String,
6
6
  amount: Integer,
7
7
  beneficiary_name: String,
8
- message_to_recipient: String,
9
8
  ?account_number: String,
10
9
  ?beneficiary_address_line1: String,
11
10
  ?beneficiary_address_line2: String,
@@ -16,6 +15,7 @@ module Increase
16
15
  ?originator_address_line2: String,
17
16
  ?originator_address_line3: String,
18
17
  ?originator_name: String,
18
+ ?remittance: Increase::WireTransferCreateParams::Remittance,
19
19
  ?require_approval: bool,
20
20
  ?routing_number: String,
21
21
  ?source_account_number_id: String,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.77.0
4
+ version: 1.78.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase