increase 1.328.0 → 1.329.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: b5124a1872748d76d86d1e99844edf29fca9ca5425a7a69f51e32670271bc082
4
- data.tar.gz: ed717cce8de7998b5322d2d5104cdf3afcb5ad89042b5f1b1b72528648df2f1f
3
+ metadata.gz: afba565f9871dafc4096655feed6e70cd01411b001ee61c2626497921c186e8d
4
+ data.tar.gz: 78374f01810590bbd2294d29a87c534eb33edfee7b7b446ea779167ca7eb008c
5
5
  SHA512:
6
- metadata.gz: 53e6edaa2568f1a61a85ca19f5066b93a6deb9c6da189b47f2099da9be81cdbc3e907bff1055bf7026706ff15d4f49f2f1c729d9cb1158332c9554b5b7d18e03
7
- data.tar.gz: 598659571ba223e88f5f79b6c26da699ef917ae6b4d241400b3c2cdedd6d00b2682f915a61016f0fb0752eff6d1e9440d45f1a49208dafdd06d7ad07df8acd29
6
+ metadata.gz: 0ba878a5e8e118a9cc4ca68bd40e9b2c21ff4c1c3409c0b44a6c84569f4e129408a9883c2523b0bcdeb7ed509c51001c9c0e63558bb1e1b14f27c9bf14383686
7
+ data.tar.gz: 1c1179ac16aba12658c7065ff0eeb4b6ce4587567c0228bf50bd03484dceccabb82c8dc800d8bc6e8a08cf256cf01c2429f547cbb29590a33e5fe7344e14e66a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.329.0 (2026-05-16)
4
+
5
+ Full Changelog: [v1.328.0...v1.329.0](https://github.com/Increase/increase-ruby/compare/v1.328.0...v1.329.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([361c5d3](https://github.com/Increase/increase-ruby/commit/361c5d399bed89ff87d5c448ea9da49a0b5a55e1))
10
+
3
11
  ## 1.328.0 (2026-05-15)
4
12
 
5
13
  Full Changelog: [v1.327.0...v1.328.0](https://github.com/Increase/increase-ruby/compare/v1.327.0...v1.328.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.328.0"
18
+ gem "increase", "~> 1.329.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -208,15 +208,32 @@ module Increase
208
208
  # @return [Symbol, Increase::Models::ACHPrenotification::NotificationsOfChange::ChangeCode]
209
209
  required :change_code, enum: -> { Increase::ACHPrenotification::NotificationsOfChange::ChangeCode }
210
210
 
211
- # @!attribute corrected_data
212
- # The corrected data that should be used in future ACHs to this account. This may
213
- # contain the suggested new account number or routing number. When the
214
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
215
- # Numbers starting with a 2 encourage changing the `funding` parameter to
216
- # checking; numbers starting with a 3 encourage changing to savings.
211
+ # @!attribute corrected_account_funding
212
+ # The corrected account funding type that should be used in future ACHs to this
213
+ # account. This is derived from the corrected transaction code.
217
214
  #
218
- # @return [String]
219
- required :corrected_data, String
215
+ # @return [Symbol, Increase::Models::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding, nil]
216
+ required :corrected_account_funding,
217
+ enum: -> { Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding },
218
+ nil?: true
219
+
220
+ # @!attribute corrected_account_number
221
+ # The corrected account number that should be used in future ACHs to this account.
222
+ #
223
+ # @return [String, nil]
224
+ required :corrected_account_number, String, nil?: true
225
+
226
+ # @!attribute corrected_individual_id
227
+ # The corrected individual identifier that should be used in future ACHs.
228
+ #
229
+ # @return [String, nil]
230
+ required :corrected_individual_id, String, nil?: true
231
+
232
+ # @!attribute corrected_routing_number
233
+ # The corrected routing number that should be used in future ACHs to this account.
234
+ #
235
+ # @return [String, nil]
236
+ required :corrected_routing_number, String, nil?: true
220
237
 
221
238
  # @!attribute created_at
222
239
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -225,13 +242,19 @@ module Increase
225
242
  # @return [Time]
226
243
  required :created_at, Time
227
244
 
228
- # @!method initialize(change_code:, corrected_data:, created_at:)
245
+ # @!method initialize(change_code:, corrected_account_funding:, corrected_account_number:, corrected_individual_id:, corrected_routing_number:, created_at:)
229
246
  # Some parameter documentations has been truncated, see
230
247
  # {Increase::Models::ACHPrenotification::NotificationsOfChange} for more details.
231
248
  #
232
249
  # @param change_code [Symbol, Increase::Models::ACHPrenotification::NotificationsOfChange::ChangeCode] The required type of change that is being signaled by the receiving financial in
233
250
  #
234
- # @param corrected_data [String] The corrected data that should be used in future ACHs to this account. This may
251
+ # @param corrected_account_funding [Symbol, Increase::Models::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding, nil] The corrected account funding type that should be used in future ACHs to this ac
252
+ #
253
+ # @param corrected_account_number [String, nil] The corrected account number that should be used in future ACHs to this account.
254
+ #
255
+ # @param corrected_individual_id [String, nil] The corrected individual identifier that should be used in future ACHs.
256
+ #
257
+ # @param corrected_routing_number [String, nil] The corrected routing number that should be used in future ACHs to this account.
235
258
  #
236
259
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
237
260
 
@@ -308,6 +331,26 @@ module Increase
308
331
  # @!method self.values
309
332
  # @return [Array<Symbol>]
310
333
  end
334
+
335
+ # The corrected account funding type that should be used in future ACHs to this
336
+ # account. This is derived from the corrected transaction code.
337
+ #
338
+ # @see Increase::Models::ACHPrenotification::NotificationsOfChange#corrected_account_funding
339
+ module CorrectedAccountFunding
340
+ extend Increase::Internal::Type::Enum
341
+
342
+ # A checking account.
343
+ CHECKING = :checking
344
+
345
+ # A savings account.
346
+ SAVINGS = :savings
347
+
348
+ # A bank's general ledger. Uncommon.
349
+ GENERAL_LEDGER = :general_ledger
350
+
351
+ # @!method self.values
352
+ # @return [Array<Symbol>]
353
+ end
311
354
  end
312
355
 
313
356
  # @see Increase::Models::ACHPrenotification#prenotification_return
@@ -829,15 +829,32 @@ module Increase
829
829
  # @return [Symbol, Increase::Models::ACHTransfer::NotificationsOfChange::ChangeCode]
830
830
  required :change_code, enum: -> { Increase::ACHTransfer::NotificationsOfChange::ChangeCode }
831
831
 
832
- # @!attribute corrected_data
833
- # The corrected data that should be used in future ACHs to this account. This may
834
- # contain the suggested new account number or routing number. When the
835
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
836
- # Numbers starting with a 2 encourage changing the `funding` parameter to
837
- # checking; numbers starting with a 3 encourage changing to savings.
832
+ # @!attribute corrected_account_funding
833
+ # The corrected account funding type that should be used in future ACHs to this
834
+ # account. This is derived from the corrected transaction code.
838
835
  #
839
- # @return [String]
840
- required :corrected_data, String
836
+ # @return [Symbol, Increase::Models::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding, nil]
837
+ required :corrected_account_funding,
838
+ enum: -> { Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding },
839
+ nil?: true
840
+
841
+ # @!attribute corrected_account_number
842
+ # The corrected account number that should be used in future ACHs to this account.
843
+ #
844
+ # @return [String, nil]
845
+ required :corrected_account_number, String, nil?: true
846
+
847
+ # @!attribute corrected_individual_id
848
+ # The corrected individual identifier that should be used in future ACHs.
849
+ #
850
+ # @return [String, nil]
851
+ required :corrected_individual_id, String, nil?: true
852
+
853
+ # @!attribute corrected_routing_number
854
+ # The corrected routing number that should be used in future ACHs to this account.
855
+ #
856
+ # @return [String, nil]
857
+ required :corrected_routing_number, String, nil?: true
841
858
 
842
859
  # @!attribute created_at
843
860
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -846,13 +863,19 @@ module Increase
846
863
  # @return [Time]
847
864
  required :created_at, Time
848
865
 
849
- # @!method initialize(change_code:, corrected_data:, created_at:)
866
+ # @!method initialize(change_code:, corrected_account_funding:, corrected_account_number:, corrected_individual_id:, corrected_routing_number:, created_at:)
850
867
  # Some parameter documentations has been truncated, see
851
868
  # {Increase::Models::ACHTransfer::NotificationsOfChange} for more details.
852
869
  #
853
870
  # @param change_code [Symbol, Increase::Models::ACHTransfer::NotificationsOfChange::ChangeCode] The required type of change that is being signaled by the receiving financial in
854
871
  #
855
- # @param corrected_data [String] The corrected data that should be used in future ACHs to this account. This may
872
+ # @param corrected_account_funding [Symbol, Increase::Models::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding, nil] The corrected account funding type that should be used in future ACHs to this ac
873
+ #
874
+ # @param corrected_account_number [String, nil] The corrected account number that should be used in future ACHs to this account.
875
+ #
876
+ # @param corrected_individual_id [String, nil] The corrected individual identifier that should be used in future ACHs.
877
+ #
878
+ # @param corrected_routing_number [String, nil] The corrected routing number that should be used in future ACHs to this account.
856
879
  #
857
880
  # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
858
881
 
@@ -929,6 +952,26 @@ module Increase
929
952
  # @!method self.values
930
953
  # @return [Array<Symbol>]
931
954
  end
955
+
956
+ # The corrected account funding type that should be used in future ACHs to this
957
+ # account. This is derived from the corrected transaction code.
958
+ #
959
+ # @see Increase::Models::ACHTransfer::NotificationsOfChange#corrected_account_funding
960
+ module CorrectedAccountFunding
961
+ extend Increase::Internal::Type::Enum
962
+
963
+ # A checking account.
964
+ CHECKING = :checking
965
+
966
+ # A savings account.
967
+ SAVINGS = :savings
968
+
969
+ # A bank's general ledger. Uncommon.
970
+ GENERAL_LEDGER = :general_ledger
971
+
972
+ # @!method self.values
973
+ # @return [Array<Symbol>]
974
+ end
932
975
  end
933
976
 
934
977
  # @see Increase::Models::ACHTransfer#preferred_effective_date
@@ -15,98 +15,60 @@ module Increase
15
15
  # @return [String]
16
16
  required :ach_transfer_id, String
17
17
 
18
- # @!attribute change_code
19
- # The reason for the notification of change.
18
+ # @!attribute corrected_account_funding
19
+ # The corrected account funding type.
20
20
  #
21
- # @return [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode]
22
- required :change_code,
23
- enum: -> { Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode }
21
+ # @return [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding, nil]
22
+ optional :corrected_account_funding,
23
+ enum: -> { Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding }
24
24
 
25
- # @!attribute corrected_data
26
- # The corrected data for the notification of change (e.g., a new routing number).
25
+ # @!attribute corrected_account_number
26
+ # The corrected account number.
27
27
  #
28
- # @return [String]
29
- required :corrected_data, String
28
+ # @return [String, nil]
29
+ optional :corrected_account_number, String
30
+
31
+ # @!attribute corrected_individual_id
32
+ # The corrected individual identifier.
33
+ #
34
+ # @return [String, nil]
35
+ optional :corrected_individual_id, String
30
36
 
31
- # @!method initialize(ach_transfer_id:, change_code:, corrected_data:, request_options: {})
37
+ # @!attribute corrected_routing_number
38
+ # The corrected routing number.
39
+ #
40
+ # @return [String, nil]
41
+ optional :corrected_routing_number, String
42
+
43
+ # @!method initialize(ach_transfer_id:, corrected_account_funding: nil, corrected_account_number: nil, corrected_individual_id: nil, corrected_routing_number: nil, request_options: {})
32
44
  # Some parameter documentations has been truncated, see
33
45
  # {Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams} for
34
46
  # more details.
35
47
  #
36
48
  # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to create a notification of change f
37
49
  #
38
- # @param change_code [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode] The reason for the notification of change.
50
+ # @param corrected_account_funding [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding] The corrected account funding type.
51
+ #
52
+ # @param corrected_account_number [String] The corrected account number.
39
53
  #
40
- # @param corrected_data [String] The corrected data for the notification of change (e.g., a new routing number).
54
+ # @param corrected_individual_id [String] The corrected individual identifier.
55
+ #
56
+ # @param corrected_routing_number [String] The corrected routing number.
41
57
  #
42
58
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
43
59
 
44
- # The reason for the notification of change.
45
- module ChangeCode
60
+ # The corrected account funding type.
61
+ module CorrectedAccountFunding
46
62
  extend Increase::Internal::Type::Enum
47
63
 
48
- # The account number was incorrect.
49
- INCORRECT_ACCOUNT_NUMBER = :incorrect_account_number
50
-
51
- # The routing number was incorrect.
52
- INCORRECT_ROUTING_NUMBER = :incorrect_routing_number
53
-
54
- # Both the routing number and the account number were incorrect.
55
- INCORRECT_ROUTING_NUMBER_AND_ACCOUNT_NUMBER = :incorrect_routing_number_and_account_number
56
-
57
- # The transaction code was incorrect. Try changing the `funding` parameter from checking to savings or vice-versa.
58
- INCORRECT_TRANSACTION_CODE = :incorrect_transaction_code
59
-
60
- # The account number and the transaction code were incorrect.
61
- INCORRECT_ACCOUNT_NUMBER_AND_TRANSACTION_CODE = :incorrect_account_number_and_transaction_code
62
-
63
- # The routing number, account number, and transaction code were incorrect.
64
- INCORRECT_ROUTING_NUMBER_ACCOUNT_NUMBER_AND_TRANSACTION_CODE =
65
- :incorrect_routing_number_account_number_and_transaction_code
66
-
67
- # The receiving depository financial institution identification was incorrect.
68
- INCORRECT_RECEIVING_DEPOSITORY_FINANCIAL_INSTITUTION_IDENTIFICATION =
69
- :incorrect_receiving_depository_financial_institution_identification
70
-
71
- # The individual identification number was incorrect.
72
- INCORRECT_INDIVIDUAL_IDENTIFICATION_NUMBER = :incorrect_individual_identification_number
73
-
74
- # The addenda had an incorrect format.
75
- ADDENDA_FORMAT_ERROR = :addenda_format_error
76
-
77
- # The standard entry class code was incorrect for an outbound international payment.
78
- INCORRECT_STANDARD_ENTRY_CLASS_CODE_FOR_OUTBOUND_INTERNATIONAL_PAYMENT =
79
- :incorrect_standard_entry_class_code_for_outbound_international_payment
80
-
81
- # The notification of change was misrouted.
82
- MISROUTED_NOTIFICATION_OF_CHANGE = :misrouted_notification_of_change
83
-
84
- # The trace number was incorrect.
85
- INCORRECT_TRACE_NUMBER = :incorrect_trace_number
86
-
87
- # The company identification number was incorrect.
88
- INCORRECT_COMPANY_IDENTIFICATION_NUMBER = :incorrect_company_identification_number
89
-
90
- # The individual identification number or identification number was incorrect.
91
- INCORRECT_IDENTIFICATION_NUMBER = :incorrect_identification_number
92
-
93
- # The corrected data was incorrectly formatted.
94
- INCORRECTLY_FORMATTED_CORRECTED_DATA = :incorrectly_formatted_corrected_data
95
-
96
- # The discretionary data was incorrect.
97
- INCORRECT_DISCRETIONARY_DATA = :incorrect_discretionary_data
98
-
99
- # The routing number was not from the original entry detail record.
100
- ROUTING_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD =
101
- :routing_number_not_from_original_entry_detail_record
64
+ # A checking account.
65
+ CHECKING = :checking
102
66
 
103
- # The depository financial institution account number was not from the original entry detail record.
104
- DEPOSITORY_FINANCIAL_INSTITUTION_ACCOUNT_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD =
105
- :depository_financial_institution_account_number_not_from_original_entry_detail_record
67
+ # A savings account.
68
+ SAVINGS = :savings
106
69
 
107
- # The transaction code was incorrect, initiated by the originating depository financial institution.
108
- INCORRECT_TRANSACTION_CODE_BY_ORIGINATING_DEPOSITORY_FINANCIAL_INSTITUTION =
109
- :incorrect_transaction_code_by_originating_depository_financial_institution
70
+ # A bank's general ledger. Uncommon.
71
+ GENERAL_LEDGER = :general_ledger
110
72
 
111
73
  # @!method self.values
112
74
  # @return [Array<Symbol>]
@@ -36,20 +36,24 @@ module Increase
36
36
  # Simulates receiving a Notification of Change for an
37
37
  # [ACH Transfer](#ach-transfers).
38
38
  #
39
- # @overload create_notification_of_change(ach_transfer_id, change_code:, corrected_data:, request_options: {})
39
+ # @overload create_notification_of_change(ach_transfer_id, corrected_account_funding: nil, corrected_account_number: nil, corrected_individual_id: nil, corrected_routing_number: nil, request_options: {})
40
40
  #
41
41
  # @param ach_transfer_id [String] The identifier of the ACH Transfer you wish to create a notification of change f
42
42
  #
43
- # @param change_code [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode] The reason for the notification of change.
43
+ # @param corrected_account_funding [Symbol, Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding] The corrected account funding type.
44
44
  #
45
- # @param corrected_data [String] The corrected data for the notification of change (e.g., a new routing number).
45
+ # @param corrected_account_number [String] The corrected account number.
46
+ #
47
+ # @param corrected_individual_id [String] The corrected individual identifier.
48
+ #
49
+ # @param corrected_routing_number [String] The corrected routing number.
46
50
  #
47
51
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
48
52
  #
49
53
  # @return [Increase::Models::ACHTransfer]
50
54
  #
51
55
  # @see Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams
52
- def create_notification_of_change(ach_transfer_id, params)
56
+ def create_notification_of_change(ach_transfer_id, params = {})
53
57
  parsed, options = Increase::Simulations::ACHTransferCreateNotificationOfChangeParams.dump_request(params)
54
58
  @client.request(
55
59
  method: :post,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.328.0"
4
+ VERSION = "1.329.0"
5
5
  end
@@ -302,13 +302,28 @@ module Increase
302
302
  end
303
303
  attr_accessor :change_code
304
304
 
305
- # The corrected data that should be used in future ACHs to this account. This may
306
- # contain the suggested new account number or routing number. When the
307
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
308
- # Numbers starting with a 2 encourage changing the `funding` parameter to
309
- # checking; numbers starting with a 3 encourage changing to savings.
310
- sig { returns(String) }
311
- attr_accessor :corrected_data
305
+ # The corrected account funding type that should be used in future ACHs to this
306
+ # account. This is derived from the corrected transaction code.
307
+ sig do
308
+ returns(
309
+ T.nilable(
310
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
311
+ )
312
+ )
313
+ end
314
+ attr_accessor :corrected_account_funding
315
+
316
+ # The corrected account number that should be used in future ACHs to this account.
317
+ sig { returns(T.nilable(String)) }
318
+ attr_accessor :corrected_account_number
319
+
320
+ # The corrected individual identifier that should be used in future ACHs.
321
+ sig { returns(T.nilable(String)) }
322
+ attr_accessor :corrected_individual_id
323
+
324
+ # The corrected routing number that should be used in future ACHs to this account.
325
+ sig { returns(T.nilable(String)) }
326
+ attr_accessor :corrected_routing_number
312
327
 
313
328
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
314
329
  # the notification occurred.
@@ -319,7 +334,13 @@ module Increase
319
334
  params(
320
335
  change_code:
321
336
  Increase::ACHPrenotification::NotificationsOfChange::ChangeCode::OrSymbol,
322
- corrected_data: String,
337
+ corrected_account_funding:
338
+ T.nilable(
339
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::OrSymbol
340
+ ),
341
+ corrected_account_number: T.nilable(String),
342
+ corrected_individual_id: T.nilable(String),
343
+ corrected_routing_number: T.nilable(String),
323
344
  created_at: Time
324
345
  ).returns(T.attached_class)
325
346
  end
@@ -327,12 +348,15 @@ module Increase
327
348
  # The required type of change that is being signaled by the receiving financial
328
349
  # institution.
329
350
  change_code:,
330
- # The corrected data that should be used in future ACHs to this account. This may
331
- # contain the suggested new account number or routing number. When the
332
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
333
- # Numbers starting with a 2 encourage changing the `funding` parameter to
334
- # checking; numbers starting with a 3 encourage changing to savings.
335
- corrected_data:,
351
+ # The corrected account funding type that should be used in future ACHs to this
352
+ # account. This is derived from the corrected transaction code.
353
+ corrected_account_funding:,
354
+ # The corrected account number that should be used in future ACHs to this account.
355
+ corrected_account_number:,
356
+ # The corrected individual identifier that should be used in future ACHs.
357
+ corrected_individual_id:,
358
+ # The corrected routing number that should be used in future ACHs to this account.
359
+ corrected_routing_number:,
336
360
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
337
361
  # the notification occurred.
338
362
  created_at:
@@ -344,7 +368,13 @@ module Increase
344
368
  {
345
369
  change_code:
346
370
  Increase::ACHPrenotification::NotificationsOfChange::ChangeCode::TaggedSymbol,
347
- corrected_data: String,
371
+ corrected_account_funding:
372
+ T.nilable(
373
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
374
+ ),
375
+ corrected_account_number: T.nilable(String),
376
+ corrected_individual_id: T.nilable(String),
377
+ corrected_routing_number: T.nilable(String),
348
378
  created_at: Time
349
379
  }
350
380
  )
@@ -509,6 +539,52 @@ module Increase
509
539
  def self.values
510
540
  end
511
541
  end
542
+
543
+ # The corrected account funding type that should be used in future ACHs to this
544
+ # account. This is derived from the corrected transaction code.
545
+ module CorrectedAccountFunding
546
+ extend Increase::Internal::Type::Enum
547
+
548
+ TaggedSymbol =
549
+ T.type_alias do
550
+ T.all(
551
+ Symbol,
552
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding
553
+ )
554
+ end
555
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
556
+
557
+ # A checking account.
558
+ CHECKING =
559
+ T.let(
560
+ :checking,
561
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
562
+ )
563
+
564
+ # A savings account.
565
+ SAVINGS =
566
+ T.let(
567
+ :savings,
568
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
569
+ )
570
+
571
+ # A bank's general ledger. Uncommon.
572
+ GENERAL_LEDGER =
573
+ T.let(
574
+ :general_ledger,
575
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
576
+ )
577
+
578
+ sig do
579
+ override.returns(
580
+ T::Array[
581
+ Increase::ACHPrenotification::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
582
+ ]
583
+ )
584
+ end
585
+ def self.values
586
+ end
587
+ end
512
588
  end
513
589
 
514
590
  class PrenotificationReturn < Increase::Internal::Type::BaseModel
@@ -1410,13 +1410,28 @@ module Increase
1410
1410
  end
1411
1411
  attr_accessor :change_code
1412
1412
 
1413
- # The corrected data that should be used in future ACHs to this account. This may
1414
- # contain the suggested new account number or routing number. When the
1415
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
1416
- # Numbers starting with a 2 encourage changing the `funding` parameter to
1417
- # checking; numbers starting with a 3 encourage changing to savings.
1418
- sig { returns(String) }
1419
- attr_accessor :corrected_data
1413
+ # The corrected account funding type that should be used in future ACHs to this
1414
+ # account. This is derived from the corrected transaction code.
1415
+ sig do
1416
+ returns(
1417
+ T.nilable(
1418
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1419
+ )
1420
+ )
1421
+ end
1422
+ attr_accessor :corrected_account_funding
1423
+
1424
+ # The corrected account number that should be used in future ACHs to this account.
1425
+ sig { returns(T.nilable(String)) }
1426
+ attr_accessor :corrected_account_number
1427
+
1428
+ # The corrected individual identifier that should be used in future ACHs.
1429
+ sig { returns(T.nilable(String)) }
1430
+ attr_accessor :corrected_individual_id
1431
+
1432
+ # The corrected routing number that should be used in future ACHs to this account.
1433
+ sig { returns(T.nilable(String)) }
1434
+ attr_accessor :corrected_routing_number
1420
1435
 
1421
1436
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1422
1437
  # the notification occurred.
@@ -1427,7 +1442,13 @@ module Increase
1427
1442
  params(
1428
1443
  change_code:
1429
1444
  Increase::ACHTransfer::NotificationsOfChange::ChangeCode::OrSymbol,
1430
- corrected_data: String,
1445
+ corrected_account_funding:
1446
+ T.nilable(
1447
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::OrSymbol
1448
+ ),
1449
+ corrected_account_number: T.nilable(String),
1450
+ corrected_individual_id: T.nilable(String),
1451
+ corrected_routing_number: T.nilable(String),
1431
1452
  created_at: Time
1432
1453
  ).returns(T.attached_class)
1433
1454
  end
@@ -1435,12 +1456,15 @@ module Increase
1435
1456
  # The required type of change that is being signaled by the receiving financial
1436
1457
  # institution.
1437
1458
  change_code:,
1438
- # The corrected data that should be used in future ACHs to this account. This may
1439
- # contain the suggested new account number or routing number. When the
1440
- # `change_code` is `incorrect_transaction_code`, this field contains an integer.
1441
- # Numbers starting with a 2 encourage changing the `funding` parameter to
1442
- # checking; numbers starting with a 3 encourage changing to savings.
1443
- corrected_data:,
1459
+ # The corrected account funding type that should be used in future ACHs to this
1460
+ # account. This is derived from the corrected transaction code.
1461
+ corrected_account_funding:,
1462
+ # The corrected account number that should be used in future ACHs to this account.
1463
+ corrected_account_number:,
1464
+ # The corrected individual identifier that should be used in future ACHs.
1465
+ corrected_individual_id:,
1466
+ # The corrected routing number that should be used in future ACHs to this account.
1467
+ corrected_routing_number:,
1444
1468
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
1445
1469
  # the notification occurred.
1446
1470
  created_at:
@@ -1452,7 +1476,13 @@ module Increase
1452
1476
  {
1453
1477
  change_code:
1454
1478
  Increase::ACHTransfer::NotificationsOfChange::ChangeCode::TaggedSymbol,
1455
- corrected_data: String,
1479
+ corrected_account_funding:
1480
+ T.nilable(
1481
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1482
+ ),
1483
+ corrected_account_number: T.nilable(String),
1484
+ corrected_individual_id: T.nilable(String),
1485
+ corrected_routing_number: T.nilable(String),
1456
1486
  created_at: Time
1457
1487
  }
1458
1488
  )
@@ -1617,6 +1647,52 @@ module Increase
1617
1647
  def self.values
1618
1648
  end
1619
1649
  end
1650
+
1651
+ # The corrected account funding type that should be used in future ACHs to this
1652
+ # account. This is derived from the corrected transaction code.
1653
+ module CorrectedAccountFunding
1654
+ extend Increase::Internal::Type::Enum
1655
+
1656
+ TaggedSymbol =
1657
+ T.type_alias do
1658
+ T.all(
1659
+ Symbol,
1660
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding
1661
+ )
1662
+ end
1663
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1664
+
1665
+ # A checking account.
1666
+ CHECKING =
1667
+ T.let(
1668
+ :checking,
1669
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1670
+ )
1671
+
1672
+ # A savings account.
1673
+ SAVINGS =
1674
+ T.let(
1675
+ :savings,
1676
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1677
+ )
1678
+
1679
+ # A bank's general ledger. Uncommon.
1680
+ GENERAL_LEDGER =
1681
+ T.let(
1682
+ :general_ledger,
1683
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1684
+ )
1685
+
1686
+ sig do
1687
+ override.returns(
1688
+ T::Array[
1689
+ Increase::ACHTransfer::NotificationsOfChange::CorrectedAccountFunding::TaggedSymbol
1690
+ ]
1691
+ )
1692
+ end
1693
+ def self.values
1694
+ end
1695
+ end
1620
1696
  end
1621
1697
 
1622
1698
  class PreferredEffectiveDate < Increase::Internal::Type::BaseModel
@@ -20,24 +20,53 @@ module Increase
20
20
  sig { returns(String) }
21
21
  attr_accessor :ach_transfer_id
22
22
 
23
- # The reason for the notification of change.
23
+ # The corrected account funding type.
24
24
  sig do
25
25
  returns(
26
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol
26
+ T.nilable(
27
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::OrSymbol
28
+ )
27
29
  )
28
30
  end
29
- attr_accessor :change_code
31
+ attr_reader :corrected_account_funding
30
32
 
31
- # The corrected data for the notification of change (e.g., a new routing number).
32
- sig { returns(String) }
33
- attr_accessor :corrected_data
33
+ sig do
34
+ params(
35
+ corrected_account_funding:
36
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::OrSymbol
37
+ ).void
38
+ end
39
+ attr_writer :corrected_account_funding
40
+
41
+ # The corrected account number.
42
+ sig { returns(T.nilable(String)) }
43
+ attr_reader :corrected_account_number
44
+
45
+ sig { params(corrected_account_number: String).void }
46
+ attr_writer :corrected_account_number
47
+
48
+ # The corrected individual identifier.
49
+ sig { returns(T.nilable(String)) }
50
+ attr_reader :corrected_individual_id
51
+
52
+ sig { params(corrected_individual_id: String).void }
53
+ attr_writer :corrected_individual_id
54
+
55
+ # The corrected routing number.
56
+ sig { returns(T.nilable(String)) }
57
+ attr_reader :corrected_routing_number
58
+
59
+ sig { params(corrected_routing_number: String).void }
60
+ attr_writer :corrected_routing_number
34
61
 
35
62
  sig do
36
63
  params(
37
64
  ach_transfer_id: String,
38
- change_code:
39
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol,
40
- corrected_data: String,
65
+ corrected_account_funding:
66
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::OrSymbol,
67
+ corrected_account_number: String,
68
+ corrected_individual_id: String,
69
+ corrected_routing_number: String,
41
70
  request_options: Increase::RequestOptions::OrHash
42
71
  ).returns(T.attached_class)
43
72
  end
@@ -45,10 +74,14 @@ module Increase
45
74
  # The identifier of the ACH Transfer you wish to create a notification of change
46
75
  # for.
47
76
  ach_transfer_id:,
48
- # The reason for the notification of change.
49
- change_code:,
50
- # The corrected data for the notification of change (e.g., a new routing number).
51
- corrected_data:,
77
+ # The corrected account funding type.
78
+ corrected_account_funding: nil,
79
+ # The corrected account number.
80
+ corrected_account_number: nil,
81
+ # The corrected individual identifier.
82
+ corrected_individual_id: nil,
83
+ # The corrected routing number.
84
+ corrected_routing_number: nil,
52
85
  request_options: {}
53
86
  )
54
87
  end
@@ -57,9 +90,11 @@ module Increase
57
90
  override.returns(
58
91
  {
59
92
  ach_transfer_id: String,
60
- change_code:
61
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol,
62
- corrected_data: String,
93
+ corrected_account_funding:
94
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::OrSymbol,
95
+ corrected_account_number: String,
96
+ corrected_individual_id: String,
97
+ corrected_routing_number: String,
63
98
  request_options: Increase::RequestOptions
64
99
  }
65
100
  )
@@ -67,156 +102,44 @@ module Increase
67
102
  def to_hash
68
103
  end
69
104
 
70
- # The reason for the notification of change.
71
- module ChangeCode
105
+ # The corrected account funding type.
106
+ module CorrectedAccountFunding
72
107
  extend Increase::Internal::Type::Enum
73
108
 
74
109
  TaggedSymbol =
75
110
  T.type_alias do
76
111
  T.all(
77
112
  Symbol,
78
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode
113
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding
79
114
  )
80
115
  end
81
116
  OrSymbol = T.type_alias { T.any(Symbol, String) }
82
117
 
83
- # The account number was incorrect.
84
- INCORRECT_ACCOUNT_NUMBER =
85
- T.let(
86
- :incorrect_account_number,
87
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
88
- )
89
-
90
- # The routing number was incorrect.
91
- INCORRECT_ROUTING_NUMBER =
92
- T.let(
93
- :incorrect_routing_number,
94
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
95
- )
96
-
97
- # Both the routing number and the account number were incorrect.
98
- INCORRECT_ROUTING_NUMBER_AND_ACCOUNT_NUMBER =
99
- T.let(
100
- :incorrect_routing_number_and_account_number,
101
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
102
- )
103
-
104
- # The transaction code was incorrect. Try changing the `funding` parameter from checking to savings or vice-versa.
105
- INCORRECT_TRANSACTION_CODE =
106
- T.let(
107
- :incorrect_transaction_code,
108
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
109
- )
110
-
111
- # The account number and the transaction code were incorrect.
112
- INCORRECT_ACCOUNT_NUMBER_AND_TRANSACTION_CODE =
113
- T.let(
114
- :incorrect_account_number_and_transaction_code,
115
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
116
- )
117
-
118
- # The routing number, account number, and transaction code were incorrect.
119
- INCORRECT_ROUTING_NUMBER_ACCOUNT_NUMBER_AND_TRANSACTION_CODE =
120
- T.let(
121
- :incorrect_routing_number_account_number_and_transaction_code,
122
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
123
- )
124
-
125
- # The receiving depository financial institution identification was incorrect.
126
- INCORRECT_RECEIVING_DEPOSITORY_FINANCIAL_INSTITUTION_IDENTIFICATION =
127
- T.let(
128
- :incorrect_receiving_depository_financial_institution_identification,
129
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
130
- )
131
-
132
- # The individual identification number was incorrect.
133
- INCORRECT_INDIVIDUAL_IDENTIFICATION_NUMBER =
134
- T.let(
135
- :incorrect_individual_identification_number,
136
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
137
- )
138
-
139
- # The addenda had an incorrect format.
140
- ADDENDA_FORMAT_ERROR =
141
- T.let(
142
- :addenda_format_error,
143
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
144
- )
145
-
146
- # The standard entry class code was incorrect for an outbound international payment.
147
- INCORRECT_STANDARD_ENTRY_CLASS_CODE_FOR_OUTBOUND_INTERNATIONAL_PAYMENT =
148
- T.let(
149
- :incorrect_standard_entry_class_code_for_outbound_international_payment,
150
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
151
- )
152
-
153
- # The notification of change was misrouted.
154
- MISROUTED_NOTIFICATION_OF_CHANGE =
155
- T.let(
156
- :misrouted_notification_of_change,
157
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
158
- )
159
-
160
- # The trace number was incorrect.
161
- INCORRECT_TRACE_NUMBER =
162
- T.let(
163
- :incorrect_trace_number,
164
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
165
- )
166
-
167
- # The company identification number was incorrect.
168
- INCORRECT_COMPANY_IDENTIFICATION_NUMBER =
169
- T.let(
170
- :incorrect_company_identification_number,
171
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
172
- )
173
-
174
- # The individual identification number or identification number was incorrect.
175
- INCORRECT_IDENTIFICATION_NUMBER =
176
- T.let(
177
- :incorrect_identification_number,
178
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
179
- )
180
-
181
- # The corrected data was incorrectly formatted.
182
- INCORRECTLY_FORMATTED_CORRECTED_DATA =
183
- T.let(
184
- :incorrectly_formatted_corrected_data,
185
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
186
- )
187
-
188
- # The discretionary data was incorrect.
189
- INCORRECT_DISCRETIONARY_DATA =
190
- T.let(
191
- :incorrect_discretionary_data,
192
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
193
- )
194
-
195
- # The routing number was not from the original entry detail record.
196
- ROUTING_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD =
118
+ # A checking account.
119
+ CHECKING =
197
120
  T.let(
198
- :routing_number_not_from_original_entry_detail_record,
199
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
121
+ :checking,
122
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::TaggedSymbol
200
123
  )
201
124
 
202
- # The depository financial institution account number was not from the original entry detail record.
203
- DEPOSITORY_FINANCIAL_INSTITUTION_ACCOUNT_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD =
125
+ # A savings account.
126
+ SAVINGS =
204
127
  T.let(
205
- :depository_financial_institution_account_number_not_from_original_entry_detail_record,
206
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
128
+ :savings,
129
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::TaggedSymbol
207
130
  )
208
131
 
209
- # The transaction code was incorrect, initiated by the originating depository financial institution.
210
- INCORRECT_TRANSACTION_CODE_BY_ORIGINATING_DEPOSITORY_FINANCIAL_INSTITUTION =
132
+ # A bank's general ledger. Uncommon.
133
+ GENERAL_LEDGER =
211
134
  T.let(
212
- :incorrect_transaction_code_by_originating_depository_financial_institution,
213
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
135
+ :general_ledger,
136
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::TaggedSymbol
214
137
  )
215
138
 
216
139
  sig do
217
140
  override.returns(
218
141
  T::Array[
219
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::TaggedSymbol
142
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::TaggedSymbol
220
143
  ]
221
144
  )
222
145
  end
@@ -28,9 +28,11 @@ module Increase
28
28
  sig do
29
29
  params(
30
30
  ach_transfer_id: String,
31
- change_code:
32
- Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::ChangeCode::OrSymbol,
33
- corrected_data: String,
31
+ corrected_account_funding:
32
+ Increase::Simulations::ACHTransferCreateNotificationOfChangeParams::CorrectedAccountFunding::OrSymbol,
33
+ corrected_account_number: String,
34
+ corrected_individual_id: String,
35
+ corrected_routing_number: String,
34
36
  request_options: Increase::RequestOptions::OrHash
35
37
  ).returns(Increase::ACHTransfer)
36
38
  end
@@ -38,10 +40,14 @@ module Increase
38
40
  # The identifier of the ACH Transfer you wish to create a notification of change
39
41
  # for.
40
42
  ach_transfer_id,
41
- # The reason for the notification of change.
42
- change_code:,
43
- # The corrected data for the notification of change (e.g., a new routing number).
44
- corrected_data:,
43
+ # The corrected account funding type.
44
+ corrected_account_funding: nil,
45
+ # The corrected account number.
46
+ corrected_account_number: nil,
47
+ # The corrected individual identifier.
48
+ corrected_individual_id: nil,
49
+ # The corrected routing number.
50
+ corrected_routing_number: nil,
45
51
  request_options: {}
46
52
  )
47
53
  end
@@ -128,26 +128,41 @@ module Increase
128
128
  type notifications_of_change =
129
129
  {
130
130
  change_code: Increase::Models::ACHPrenotification::NotificationsOfChange::change_code,
131
- corrected_data: String,
131
+ corrected_account_funding: Increase::Models::ACHPrenotification::NotificationsOfChange::corrected_account_funding?,
132
+ corrected_account_number: String?,
133
+ corrected_individual_id: String?,
134
+ corrected_routing_number: String?,
132
135
  created_at: Time
133
136
  }
134
137
 
135
138
  class NotificationsOfChange < Increase::Internal::Type::BaseModel
136
139
  attr_accessor change_code: Increase::Models::ACHPrenotification::NotificationsOfChange::change_code
137
140
 
138
- attr_accessor corrected_data: String
141
+ attr_accessor corrected_account_funding: Increase::Models::ACHPrenotification::NotificationsOfChange::corrected_account_funding?
142
+
143
+ attr_accessor corrected_account_number: String?
144
+
145
+ attr_accessor corrected_individual_id: String?
146
+
147
+ attr_accessor corrected_routing_number: String?
139
148
 
140
149
  attr_accessor created_at: Time
141
150
 
142
151
  def initialize: (
143
152
  change_code: Increase::Models::ACHPrenotification::NotificationsOfChange::change_code,
144
- corrected_data: String,
153
+ corrected_account_funding: Increase::Models::ACHPrenotification::NotificationsOfChange::corrected_account_funding?,
154
+ corrected_account_number: String?,
155
+ corrected_individual_id: String?,
156
+ corrected_routing_number: String?,
145
157
  created_at: Time
146
158
  ) -> void
147
159
 
148
160
  def to_hash: -> {
149
161
  change_code: Increase::Models::ACHPrenotification::NotificationsOfChange::change_code,
150
- corrected_data: String,
162
+ corrected_account_funding: Increase::Models::ACHPrenotification::NotificationsOfChange::corrected_account_funding?,
163
+ corrected_account_number: String?,
164
+ corrected_individual_id: String?,
165
+ corrected_routing_number: String?,
151
166
  created_at: Time
152
167
  }
153
168
 
@@ -234,6 +249,23 @@ module Increase
234
249
 
235
250
  def self?.values: -> ::Array[Increase::Models::ACHPrenotification::NotificationsOfChange::change_code]
236
251
  end
252
+
253
+ type corrected_account_funding = :checking | :savings | :general_ledger
254
+
255
+ module CorrectedAccountFunding
256
+ extend Increase::Internal::Type::Enum
257
+
258
+ # A checking account.
259
+ CHECKING: :checking
260
+
261
+ # A savings account.
262
+ SAVINGS: :savings
263
+
264
+ # A bank's general ledger. Uncommon.
265
+ GENERAL_LEDGER: :general_ledger
266
+
267
+ def self?.values: -> ::Array[Increase::Models::ACHPrenotification::NotificationsOfChange::corrected_account_funding]
268
+ end
237
269
  end
238
270
 
239
271
  type prenotification_return =
@@ -555,26 +555,41 @@ module Increase
555
555
  type notifications_of_change =
556
556
  {
557
557
  change_code: Increase::Models::ACHTransfer::NotificationsOfChange::change_code,
558
- corrected_data: String,
558
+ corrected_account_funding: Increase::Models::ACHTransfer::NotificationsOfChange::corrected_account_funding?,
559
+ corrected_account_number: String?,
560
+ corrected_individual_id: String?,
561
+ corrected_routing_number: String?,
559
562
  created_at: Time
560
563
  }
561
564
 
562
565
  class NotificationsOfChange < Increase::Internal::Type::BaseModel
563
566
  attr_accessor change_code: Increase::Models::ACHTransfer::NotificationsOfChange::change_code
564
567
 
565
- attr_accessor corrected_data: String
568
+ attr_accessor corrected_account_funding: Increase::Models::ACHTransfer::NotificationsOfChange::corrected_account_funding?
569
+
570
+ attr_accessor corrected_account_number: String?
571
+
572
+ attr_accessor corrected_individual_id: String?
573
+
574
+ attr_accessor corrected_routing_number: String?
566
575
 
567
576
  attr_accessor created_at: Time
568
577
 
569
578
  def initialize: (
570
579
  change_code: Increase::Models::ACHTransfer::NotificationsOfChange::change_code,
571
- corrected_data: String,
580
+ corrected_account_funding: Increase::Models::ACHTransfer::NotificationsOfChange::corrected_account_funding?,
581
+ corrected_account_number: String?,
582
+ corrected_individual_id: String?,
583
+ corrected_routing_number: String?,
572
584
  created_at: Time
573
585
  ) -> void
574
586
 
575
587
  def to_hash: -> {
576
588
  change_code: Increase::Models::ACHTransfer::NotificationsOfChange::change_code,
577
- corrected_data: String,
589
+ corrected_account_funding: Increase::Models::ACHTransfer::NotificationsOfChange::corrected_account_funding?,
590
+ corrected_account_number: String?,
591
+ corrected_individual_id: String?,
592
+ corrected_routing_number: String?,
578
593
  created_at: Time
579
594
  }
580
595
 
@@ -661,6 +676,23 @@ module Increase
661
676
 
662
677
  def self?.values: -> ::Array[Increase::Models::ACHTransfer::NotificationsOfChange::change_code]
663
678
  end
679
+
680
+ type corrected_account_funding = :checking | :savings | :general_ledger
681
+
682
+ module CorrectedAccountFunding
683
+ extend Increase::Internal::Type::Enum
684
+
685
+ # A checking account.
686
+ CHECKING: :checking
687
+
688
+ # A savings account.
689
+ SAVINGS: :savings
690
+
691
+ # A bank's general ledger. Uncommon.
692
+ GENERAL_LEDGER: :general_ledger
693
+
694
+ def self?.values: -> ::Array[Increase::Models::ACHTransfer::NotificationsOfChange::corrected_account_funding]
695
+ end
664
696
  end
665
697
 
666
698
  type preferred_effective_date =
@@ -4,8 +4,10 @@ module Increase
4
4
  type ach_transfer_create_notification_of_change_params =
5
5
  {
6
6
  ach_transfer_id: String,
7
- change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code,
8
- corrected_data: String
7
+ corrected_account_funding: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding,
8
+ corrected_account_number: String,
9
+ corrected_individual_id: String,
10
+ corrected_routing_number: String
9
11
  }
10
12
  & Increase::Internal::Type::request_parameters
11
13
 
@@ -15,106 +17,57 @@ module Increase
15
17
 
16
18
  attr_accessor ach_transfer_id: String
17
19
 
18
- attr_accessor change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code
20
+ attr_reader corrected_account_funding: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding?
19
21
 
20
- attr_accessor corrected_data: String
22
+ def corrected_account_funding=: (
23
+ Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding
24
+ ) -> Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding
25
+
26
+ attr_reader corrected_account_number: String?
27
+
28
+ def corrected_account_number=: (String) -> String
29
+
30
+ attr_reader corrected_individual_id: String?
31
+
32
+ def corrected_individual_id=: (String) -> String
33
+
34
+ attr_reader corrected_routing_number: String?
35
+
36
+ def corrected_routing_number=: (String) -> String
21
37
 
22
38
  def initialize: (
23
39
  ach_transfer_id: String,
24
- change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code,
25
- corrected_data: String,
40
+ ?corrected_account_funding: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding,
41
+ ?corrected_account_number: String,
42
+ ?corrected_individual_id: String,
43
+ ?corrected_routing_number: String,
26
44
  ?request_options: Increase::request_opts
27
45
  ) -> void
28
46
 
29
47
  def to_hash: -> {
30
48
  ach_transfer_id: String,
31
- change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code,
32
- corrected_data: String,
49
+ corrected_account_funding: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding,
50
+ corrected_account_number: String,
51
+ corrected_individual_id: String,
52
+ corrected_routing_number: String,
33
53
  request_options: Increase::RequestOptions
34
54
  }
35
55
 
36
- type change_code =
37
- :incorrect_account_number
38
- | :incorrect_routing_number
39
- | :incorrect_routing_number_and_account_number
40
- | :incorrect_transaction_code
41
- | :incorrect_account_number_and_transaction_code
42
- | :incorrect_routing_number_account_number_and_transaction_code
43
- | :incorrect_receiving_depository_financial_institution_identification
44
- | :incorrect_individual_identification_number
45
- | :addenda_format_error
46
- | :incorrect_standard_entry_class_code_for_outbound_international_payment
47
- | :misrouted_notification_of_change
48
- | :incorrect_trace_number
49
- | :incorrect_company_identification_number
50
- | :incorrect_identification_number
51
- | :incorrectly_formatted_corrected_data
52
- | :incorrect_discretionary_data
53
- | :routing_number_not_from_original_entry_detail_record
54
- | :depository_financial_institution_account_number_not_from_original_entry_detail_record
55
- | :incorrect_transaction_code_by_originating_depository_financial_institution
56
-
57
- module ChangeCode
58
- extend Increase::Internal::Type::Enum
59
-
60
- # The account number was incorrect.
61
- INCORRECT_ACCOUNT_NUMBER: :incorrect_account_number
62
-
63
- # The routing number was incorrect.
64
- INCORRECT_ROUTING_NUMBER: :incorrect_routing_number
65
-
66
- # Both the routing number and the account number were incorrect.
67
- INCORRECT_ROUTING_NUMBER_AND_ACCOUNT_NUMBER: :incorrect_routing_number_and_account_number
68
-
69
- # The transaction code was incorrect. Try changing the `funding` parameter from checking to savings or vice-versa.
70
- INCORRECT_TRANSACTION_CODE: :incorrect_transaction_code
71
-
72
- # The account number and the transaction code were incorrect.
73
- INCORRECT_ACCOUNT_NUMBER_AND_TRANSACTION_CODE: :incorrect_account_number_and_transaction_code
56
+ type corrected_account_funding = :checking | :savings | :general_ledger
74
57
 
75
- # The routing number, account number, and transaction code were incorrect.
76
- INCORRECT_ROUTING_NUMBER_ACCOUNT_NUMBER_AND_TRANSACTION_CODE: :incorrect_routing_number_account_number_and_transaction_code
77
-
78
- # The receiving depository financial institution identification was incorrect.
79
- INCORRECT_RECEIVING_DEPOSITORY_FINANCIAL_INSTITUTION_IDENTIFICATION: :incorrect_receiving_depository_financial_institution_identification
80
-
81
- # The individual identification number was incorrect.
82
- INCORRECT_INDIVIDUAL_IDENTIFICATION_NUMBER: :incorrect_individual_identification_number
83
-
84
- # The addenda had an incorrect format.
85
- ADDENDA_FORMAT_ERROR: :addenda_format_error
86
-
87
- # The standard entry class code was incorrect for an outbound international payment.
88
- INCORRECT_STANDARD_ENTRY_CLASS_CODE_FOR_OUTBOUND_INTERNATIONAL_PAYMENT: :incorrect_standard_entry_class_code_for_outbound_international_payment
89
-
90
- # The notification of change was misrouted.
91
- MISROUTED_NOTIFICATION_OF_CHANGE: :misrouted_notification_of_change
92
-
93
- # The trace number was incorrect.
94
- INCORRECT_TRACE_NUMBER: :incorrect_trace_number
95
-
96
- # The company identification number was incorrect.
97
- INCORRECT_COMPANY_IDENTIFICATION_NUMBER: :incorrect_company_identification_number
98
-
99
- # The individual identification number or identification number was incorrect.
100
- INCORRECT_IDENTIFICATION_NUMBER: :incorrect_identification_number
101
-
102
- # The corrected data was incorrectly formatted.
103
- INCORRECTLY_FORMATTED_CORRECTED_DATA: :incorrectly_formatted_corrected_data
104
-
105
- # The discretionary data was incorrect.
106
- INCORRECT_DISCRETIONARY_DATA: :incorrect_discretionary_data
58
+ module CorrectedAccountFunding
59
+ extend Increase::Internal::Type::Enum
107
60
 
108
- # The routing number was not from the original entry detail record.
109
- ROUTING_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD: :routing_number_not_from_original_entry_detail_record
61
+ # A checking account.
62
+ CHECKING: :checking
110
63
 
111
- # The depository financial institution account number was not from the original entry detail record.
112
- DEPOSITORY_FINANCIAL_INSTITUTION_ACCOUNT_NUMBER_NOT_FROM_ORIGINAL_ENTRY_DETAIL_RECORD: :depository_financial_institution_account_number_not_from_original_entry_detail_record
64
+ # A savings account.
65
+ SAVINGS: :savings
113
66
 
114
- # The transaction code was incorrect, initiated by the originating depository financial institution.
115
- INCORRECT_TRANSACTION_CODE_BY_ORIGINATING_DEPOSITORY_FINANCIAL_INSTITUTION: :incorrect_transaction_code_by_originating_depository_financial_institution
67
+ # A bank's general ledger. Uncommon.
68
+ GENERAL_LEDGER: :general_ledger
116
69
 
117
- def self?.values: -> ::Array[Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code]
70
+ def self?.values: -> ::Array[Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding]
118
71
  end
119
72
  end
120
73
  end
@@ -9,8 +9,10 @@ module Increase
9
9
 
10
10
  def create_notification_of_change: (
11
11
  String ach_transfer_id,
12
- change_code: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::change_code,
13
- corrected_data: String,
12
+ ?corrected_account_funding: Increase::Models::Simulations::ACHTransferCreateNotificationOfChangeParams::corrected_account_funding,
13
+ ?corrected_account_number: String,
14
+ ?corrected_individual_id: String,
15
+ ?corrected_routing_number: String,
14
16
  ?request_options: Increase::request_opts
15
17
  ) -> Increase::ACHTransfer
16
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.328.0
4
+ version: 1.329.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-15 00:00:00.000000000 Z
11
+ date: 2026-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi