increase 1.364.0 → 1.366.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/models/ach_transfer.rb +9 -2
- data/lib/increase/models/ach_transfer_create_params.rb +33 -50
- data/lib/increase/models/card_create_params.rb +10 -3
- data/lib/increase/models/card_payment.rb +352 -12
- data/lib/increase/models/card_update_params.rb +9 -3
- data/lib/increase/models/declined_transaction.rb +10 -1
- data/lib/increase/models/fednow_transfer.rb +10 -1
- data/lib/increase/models/pending_transaction.rb +10 -1
- data/lib/increase/models/transaction.rb +411 -6
- data/lib/increase/models/transaction_list_params.rb +3 -0
- data/lib/increase/resources/ach_transfers.rb +15 -22
- data/lib/increase/resources/cards.rb +7 -2
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/ach_transfer.rbi +8 -2
- data/rbi/increase/models/ach_transfer_create_params.rbi +32 -54
- data/rbi/increase/models/card_create_params.rbi +9 -3
- data/rbi/increase/models/card_payment.rbi +726 -10
- data/rbi/increase/models/card_update_params.rbi +9 -3
- data/rbi/increase/models/declined_transaction.rbi +22 -1
- data/rbi/increase/models/fednow_transfer.rbi +8 -0
- data/rbi/increase/models/pending_transaction.rbi +22 -1
- data/rbi/increase/models/transaction.rbi +792 -3
- data/rbi/increase/models/transaction_list_params.rbi +7 -0
- data/rbi/increase/resources/ach_transfers.rbi +15 -22
- data/rbi/increase/resources/cards.rbi +6 -2
- data/sig/increase/models/ach_transfer_create_params.rbs +9 -18
- data/sig/increase/models/card_payment.rbs +378 -10
- data/sig/increase/models/declined_transaction.rbs +13 -1
- data/sig/increase/models/fednow_transfer.rbs +5 -0
- data/sig/increase/models/pending_transaction.rbs +13 -1
- data/sig/increase/models/transaction.rbs +363 -3
- data/sig/increase/models/transaction_list_params.rbs +4 -0
- data/sig/increase/resources/ach_transfers.rbs +2 -3
- metadata +2 -2
|
@@ -10,7 +10,7 @@ module Increase
|
|
|
10
10
|
# You should set both of these, in addition to the required amount and account
|
|
11
11
|
# fields.
|
|
12
12
|
#
|
|
13
|
-
# @overload create(account_id:, amount:,
|
|
13
|
+
# @overload create(account_id:, amount:, company_name:, individual_name:, account_number: nil, addenda: nil, company_descriptive_date: nil, company_discretionary_data: nil, company_entry_description: nil, destination_account_holder: nil, external_account_id: nil, funding: nil, individual_id: nil, preferred_effective_date: nil, require_approval: nil, routing_number: nil, standard_entry_class_code: nil, request_options: {})
|
|
14
14
|
#
|
|
15
15
|
# @param account_id [String]
|
|
16
16
|
# The Increase identifier for the account that will originate the transfer. For
|
|
@@ -25,13 +25,20 @@ module Increase
|
|
|
25
25
|
# into Increase. Debit transfers
|
|
26
26
|
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
27
27
|
#
|
|
28
|
-
# @param
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
28
|
+
# @param company_name [String]
|
|
29
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
30
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
31
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
32
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
33
|
+
# statement.
|
|
34
|
+
#
|
|
35
|
+
# @param individual_name [String]
|
|
36
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
37
|
+
# not verified by the recipient's bank. The business-to-business
|
|
38
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
39
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
40
|
+
# include a business name in this field. This value is usually displayed to the
|
|
41
|
+
# recipient on their bank statement.
|
|
35
42
|
#
|
|
36
43
|
# @param account_number [String]
|
|
37
44
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
@@ -64,14 +71,6 @@ module Increase
|
|
|
64
71
|
# code and use case. For example, some use cases require constants like
|
|
65
72
|
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
66
73
|
#
|
|
67
|
-
# @param company_name [String]
|
|
68
|
-
# The name by which the recipient knows the counterparty of this transaction. If
|
|
69
|
-
# you're processing payments on behalf of another party, use their name, not your
|
|
70
|
-
# own, so that it's more likely the recipient understands the context of the
|
|
71
|
-
# payment. This value is usually displayed to the recipient on their bank
|
|
72
|
-
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
73
|
-
# back to the `statement_descriptor`.
|
|
74
|
-
#
|
|
75
74
|
# @param destination_account_holder [Symbol, Increase::Models::ACHTransferCreateParams::DestinationAccountHolder]
|
|
76
75
|
# The type of entity that owns the receiver's account.
|
|
77
76
|
#
|
|
@@ -90,12 +89,6 @@ module Increase
|
|
|
90
89
|
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
91
90
|
# entry class code, this must include the name of the payer.
|
|
92
91
|
#
|
|
93
|
-
# @param individual_name [String]
|
|
94
|
-
# The name of the transfer recipient. This value is informational and generally
|
|
95
|
-
# not verified by the recipient's bank. This value is usually displayed to the
|
|
96
|
-
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
97
|
-
# if you do not, we fall back to the `statement_descriptor`.
|
|
98
|
-
#
|
|
99
92
|
# @param preferred_effective_date [Increase::Models::ACHTransferCreateParams::PreferredEffectiveDate]
|
|
100
93
|
# Configuration for how the effective date of the transfer will be set. This
|
|
101
94
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
@@ -12,7 +12,10 @@ module Increase
|
|
|
12
12
|
# @param authorization_controls [Increase::Models::CardCreateParams::AuthorizationControls]
|
|
13
13
|
# Controls that restrict how this card can be used.
|
|
14
14
|
#
|
|
15
|
-
# @param billing_address [Increase::Models::CardCreateParams::BillingAddress]
|
|
15
|
+
# @param billing_address [Increase::Models::CardCreateParams::BillingAddress]
|
|
16
|
+
# The card's billing address. This is used in card authorizations to
|
|
17
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
18
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
16
19
|
#
|
|
17
20
|
# @param cardholder_name [Increase::Models::CardCreateParams::CardholderName]
|
|
18
21
|
# The name of the cardholder. Used to respond to Account Name Inquiry requests
|
|
@@ -75,7 +78,9 @@ module Increase
|
|
|
75
78
|
# Controls that restrict how this card can be used.
|
|
76
79
|
#
|
|
77
80
|
# @param billing_address [Increase::Models::CardUpdateParams::BillingAddress]
|
|
78
|
-
# The card's
|
|
81
|
+
# The card's billing address. This is used in card authorizations to
|
|
82
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
83
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
79
84
|
#
|
|
80
85
|
# @param description [String] The description you choose to give the card.
|
|
81
86
|
#
|
data/lib/increase/version.rb
CHANGED
|
@@ -229,7 +229,10 @@ module Increase
|
|
|
229
229
|
end
|
|
230
230
|
attr_accessor :standard_entry_class_code
|
|
231
231
|
|
|
232
|
-
#
|
|
232
|
+
# A description you chose to give the transfer. If `individual_name` and
|
|
233
|
+
# `company_name` were not explicitly set, the `statement_descriptor` will be sent
|
|
234
|
+
# in those fields to the receiving bank to help the customer recognize the
|
|
235
|
+
# transfer.
|
|
233
236
|
sig { returns(T.nilable(String)) }
|
|
234
237
|
attr_accessor :statement_descriptor
|
|
235
238
|
|
|
@@ -403,7 +406,10 @@ module Increase
|
|
|
403
406
|
# [Standard Entry Class (SEC) code](/documentation/ach-standard-entry-class-codes)
|
|
404
407
|
# to use for the transfer.
|
|
405
408
|
standard_entry_class_code:,
|
|
406
|
-
#
|
|
409
|
+
# A description you chose to give the transfer. If `individual_name` and
|
|
410
|
+
# `company_name` were not explicitly set, the `statement_descriptor` will be sent
|
|
411
|
+
# in those fields to the receiving bank to help the customer recognize the
|
|
412
|
+
# transfer.
|
|
407
413
|
statement_descriptor:,
|
|
408
414
|
# The lifecycle status of the transfer.
|
|
409
415
|
status:,
|
|
@@ -26,14 +26,22 @@ module Increase
|
|
|
26
26
|
sig { returns(Integer) }
|
|
27
27
|
attr_accessor :amount
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
# `individual_name` and `company_name` instead of relying on this fallback.
|
|
29
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
30
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
31
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
32
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
33
|
+
# statement.
|
|
35
34
|
sig { returns(String) }
|
|
36
|
-
attr_accessor :
|
|
35
|
+
attr_accessor :company_name
|
|
36
|
+
|
|
37
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
38
|
+
# not verified by the recipient's bank. The business-to-business
|
|
39
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
40
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
41
|
+
# include a business name in this field. This value is usually displayed to the
|
|
42
|
+
# recipient on their bank statement.
|
|
43
|
+
sig { returns(String) }
|
|
44
|
+
attr_accessor :individual_name
|
|
37
45
|
|
|
38
46
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
39
47
|
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
@@ -88,18 +96,6 @@ module Increase
|
|
|
88
96
|
sig { params(company_entry_description: String).void }
|
|
89
97
|
attr_writer :company_entry_description
|
|
90
98
|
|
|
91
|
-
# The name by which the recipient knows the counterparty of this transaction. If
|
|
92
|
-
# you're processing payments on behalf of another party, use their name, not your
|
|
93
|
-
# own, so that it's more likely the recipient understands the context of the
|
|
94
|
-
# payment. This value is usually displayed to the recipient on their bank
|
|
95
|
-
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
96
|
-
# back to the `statement_descriptor`.
|
|
97
|
-
sig { returns(T.nilable(String)) }
|
|
98
|
-
attr_reader :company_name
|
|
99
|
-
|
|
100
|
-
sig { params(company_name: String).void }
|
|
101
|
-
attr_writer :company_name
|
|
102
|
-
|
|
103
99
|
# The type of entity that owns the receiver's account.
|
|
104
100
|
sig do
|
|
105
101
|
returns(
|
|
@@ -151,16 +147,6 @@ module Increase
|
|
|
151
147
|
sig { params(individual_id: String).void }
|
|
152
148
|
attr_writer :individual_id
|
|
153
149
|
|
|
154
|
-
# The name of the transfer recipient. This value is informational and generally
|
|
155
|
-
# not verified by the recipient's bank. This value is usually displayed to the
|
|
156
|
-
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
157
|
-
# if you do not, we fall back to the `statement_descriptor`.
|
|
158
|
-
sig { returns(T.nilable(String)) }
|
|
159
|
-
attr_reader :individual_name
|
|
160
|
-
|
|
161
|
-
sig { params(individual_name: String).void }
|
|
162
|
-
attr_writer :individual_name
|
|
163
|
-
|
|
164
150
|
# Configuration for how the effective date of the transfer will be set. This
|
|
165
151
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
166
152
|
# `settlement_schedule` of `same_day`. If set, exactly one of the child attributes
|
|
@@ -220,19 +206,18 @@ module Increase
|
|
|
220
206
|
params(
|
|
221
207
|
account_id: String,
|
|
222
208
|
amount: Integer,
|
|
223
|
-
|
|
209
|
+
company_name: String,
|
|
210
|
+
individual_name: String,
|
|
224
211
|
account_number: String,
|
|
225
212
|
addenda: Increase::ACHTransferCreateParams::Addenda::OrHash,
|
|
226
213
|
company_descriptive_date: String,
|
|
227
214
|
company_discretionary_data: String,
|
|
228
215
|
company_entry_description: String,
|
|
229
|
-
company_name: String,
|
|
230
216
|
destination_account_holder:
|
|
231
217
|
Increase::ACHTransferCreateParams::DestinationAccountHolder::OrSymbol,
|
|
232
218
|
external_account_id: String,
|
|
233
219
|
funding: Increase::ACHTransferCreateParams::Funding::OrSymbol,
|
|
234
220
|
individual_id: String,
|
|
235
|
-
individual_name: String,
|
|
236
221
|
preferred_effective_date:
|
|
237
222
|
Increase::ACHTransferCreateParams::PreferredEffectiveDate::OrHash,
|
|
238
223
|
require_approval: T::Boolean,
|
|
@@ -254,13 +239,19 @@ module Increase
|
|
|
254
239
|
# into Increase. Debit transfers
|
|
255
240
|
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
256
241
|
amount:,
|
|
257
|
-
#
|
|
258
|
-
#
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
#
|
|
262
|
-
|
|
263
|
-
|
|
242
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
243
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
244
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
245
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
246
|
+
# statement.
|
|
247
|
+
company_name:,
|
|
248
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
249
|
+
# not verified by the recipient's bank. The business-to-business
|
|
250
|
+
# [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
|
|
251
|
+
# call this "individual name or receiving company name;" it's reasonable to
|
|
252
|
+
# include a business name in this field. This value is usually displayed to the
|
|
253
|
+
# recipient on their bank statement.
|
|
254
|
+
individual_name:,
|
|
264
255
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
265
256
|
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
266
257
|
# (transfers with a negative `amount`), this is the account that funds will be
|
|
@@ -287,13 +278,6 @@ module Increase
|
|
|
287
278
|
# code and use case. For example, some use cases require constants like
|
|
288
279
|
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
289
280
|
company_entry_description: nil,
|
|
290
|
-
# The name by which the recipient knows the counterparty of this transaction. If
|
|
291
|
-
# you're processing payments on behalf of another party, use their name, not your
|
|
292
|
-
# own, so that it's more likely the recipient understands the context of the
|
|
293
|
-
# payment. This value is usually displayed to the recipient on their bank
|
|
294
|
-
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
295
|
-
# back to the `statement_descriptor`.
|
|
296
|
-
company_name: nil,
|
|
297
281
|
# The type of entity that owns the receiver's account.
|
|
298
282
|
destination_account_holder: nil,
|
|
299
283
|
# The ID of an External Account to initiate a transfer to. If this parameter is
|
|
@@ -308,11 +292,6 @@ module Increase
|
|
|
308
292
|
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
309
293
|
# entry class code, this must include the name of the payer.
|
|
310
294
|
individual_id: nil,
|
|
311
|
-
# The name of the transfer recipient. This value is informational and generally
|
|
312
|
-
# not verified by the recipient's bank. This value is usually displayed to the
|
|
313
|
-
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
314
|
-
# if you do not, we fall back to the `statement_descriptor`.
|
|
315
|
-
individual_name: nil,
|
|
316
295
|
# Configuration for how the effective date of the transfer will be set. This
|
|
317
296
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
318
297
|
# `settlement_schedule` of `same_day`. If set, exactly one of the child attributes
|
|
@@ -337,19 +316,18 @@ module Increase
|
|
|
337
316
|
{
|
|
338
317
|
account_id: String,
|
|
339
318
|
amount: Integer,
|
|
340
|
-
|
|
319
|
+
company_name: String,
|
|
320
|
+
individual_name: String,
|
|
341
321
|
account_number: String,
|
|
342
322
|
addenda: Increase::ACHTransferCreateParams::Addenda,
|
|
343
323
|
company_descriptive_date: String,
|
|
344
324
|
company_discretionary_data: String,
|
|
345
325
|
company_entry_description: String,
|
|
346
|
-
company_name: String,
|
|
347
326
|
destination_account_holder:
|
|
348
327
|
Increase::ACHTransferCreateParams::DestinationAccountHolder::OrSymbol,
|
|
349
328
|
external_account_id: String,
|
|
350
329
|
funding: Increase::ACHTransferCreateParams::Funding::OrSymbol,
|
|
351
330
|
individual_id: String,
|
|
352
|
-
individual_name: String,
|
|
353
331
|
preferred_effective_date:
|
|
354
332
|
Increase::ACHTransferCreateParams::PreferredEffectiveDate,
|
|
355
333
|
require_approval: T::Boolean,
|
|
@@ -29,7 +29,9 @@ module Increase
|
|
|
29
29
|
end
|
|
30
30
|
attr_writer :authorization_controls
|
|
31
31
|
|
|
32
|
-
# The card's billing address.
|
|
32
|
+
# The card's billing address. This is used in card authorizations to
|
|
33
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
34
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
33
35
|
sig { returns(T.nilable(Increase::CardCreateParams::BillingAddress)) }
|
|
34
36
|
attr_reader :billing_address
|
|
35
37
|
|
|
@@ -113,7 +115,9 @@ module Increase
|
|
|
113
115
|
account_id:,
|
|
114
116
|
# Controls that restrict how this card can be used.
|
|
115
117
|
authorization_controls: nil,
|
|
116
|
-
# The card's billing address.
|
|
118
|
+
# The card's billing address. This is used in card authorizations to
|
|
119
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
120
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
117
121
|
billing_address: nil,
|
|
118
122
|
# The name of the cardholder. Used to respond to Account Name Inquiry requests
|
|
119
123
|
# from acquirers in Card Validations.
|
|
@@ -1253,7 +1257,9 @@ module Increase
|
|
|
1253
1257
|
sig { params(line2: String).void }
|
|
1254
1258
|
attr_writer :line2
|
|
1255
1259
|
|
|
1256
|
-
# The card's billing address.
|
|
1260
|
+
# The card's billing address. This is used in card authorizations to
|
|
1261
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
1262
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
1257
1263
|
sig do
|
|
1258
1264
|
params(
|
|
1259
1265
|
city: String,
|