increase 1.363.0 → 1.365.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/client.rb +8 -0
- data/lib/increase/models/account_number.rb +51 -81
- data/lib/increase/models/account_number_create_params.rb +41 -75
- data/lib/increase/models/account_number_list_params.rb +39 -39
- data/lib/increase/models/account_number_update_params.rb +48 -79
- data/lib/increase/models/ach_transfer.rb +9 -2
- data/lib/increase/models/ach_transfer_create_params.rb +31 -50
- data/lib/increase/models/card_create_params.rb +10 -3
- data/lib/increase/models/card_payment.rb +6 -0
- data/lib/increase/models/card_update_params.rb +21 -11
- data/lib/increase/models/checkbook.rb +352 -0
- data/lib/increase/models/checkbook_check.rb +100 -0
- data/lib/increase/models/checkbook_check_list_params.rb +61 -0
- data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
- data/lib/increase/models/checkbook_create_params.rb +111 -0
- data/lib/increase/models/checkbook_list_params.rb +104 -0
- data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
- data/lib/increase/models/checkbook_stop_params.rb +22 -0
- data/lib/increase/models/declined_transaction.rb +10 -1
- data/lib/increase/models/entity.rb +1 -65
- data/lib/increase/models/entity_create_params.rb +1 -65
- data/lib/increase/models/entity_update_params.rb +1 -57
- data/lib/increase/models/fednow_transfer.rb +10 -1
- data/lib/increase/models/inbound_ach_transfer.rb +6 -6
- data/lib/increase/models/inbound_check_deposit.rb +12 -1
- data/lib/increase/models/real_time_decision.rb +65 -1
- data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
- data/lib/increase/models/transaction.rb +24 -2
- data/lib/increase/models.rb +18 -0
- data/lib/increase/resources/account_numbers.rb +19 -16
- data/lib/increase/resources/ach_transfers.rb +14 -22
- data/lib/increase/resources/cards.rb +7 -2
- data/lib/increase/resources/checkbook_checks.rb +90 -0
- data/lib/increase/resources/checkbooks.rb +127 -0
- data/lib/increase/resources/entities.rb +2 -12
- data/lib/increase/resources/simulations/checkbooks.rb +38 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +13 -0
- data/rbi/increase/client.rbi +6 -0
- data/rbi/increase/models/account_number.rbi +86 -173
- data/rbi/increase/models/account_number_create_params.rbi +87 -165
- data/rbi/increase/models/account_number_list_params.rbi +106 -105
- data/rbi/increase/models/account_number_update_params.rbi +105 -190
- data/rbi/increase/models/ach_transfer.rbi +8 -2
- data/rbi/increase/models/ach_transfer_create_params.rbi +30 -54
- data/rbi/increase/models/card_create_params.rbi +9 -3
- data/rbi/increase/models/card_payment.rbi +14 -0
- data/rbi/increase/models/card_update_params.rbi +26 -18
- data/rbi/increase/models/checkbook.rbi +507 -0
- data/rbi/increase/models/checkbook_check.rbi +142 -0
- data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
- data/rbi/increase/models/checkbook_check_retrieve_params.rbi +46 -0
- data/rbi/increase/models/checkbook_check_stop_params.rbi +43 -0
- data/rbi/increase/models/checkbook_create_params.rbi +178 -0
- data/rbi/increase/models/checkbook_list_params.rbi +198 -0
- data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
- data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
- data/rbi/increase/models/declined_transaction.rbi +8 -0
- data/rbi/increase/models/entity.rbi +0 -97
- data/rbi/increase/models/entity_create_params.rbi +0 -119
- data/rbi/increase/models/entity_update_params.rbi +0 -108
- data/rbi/increase/models/fednow_transfer.rbi +8 -0
- data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
- data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
- data/rbi/increase/models/real_time_decision.rbi +134 -3
- data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
- data/rbi/increase/models/transaction.rbi +30 -0
- data/rbi/increase/models.rbi +18 -0
- data/rbi/increase/resources/account_numbers.rbi +24 -19
- data/rbi/increase/resources/ach_transfers.rbi +14 -22
- data/rbi/increase/resources/cards.rbi +6 -2
- data/rbi/increase/resources/checkbook_checks.rbi +69 -0
- data/rbi/increase/resources/checkbooks.rbi +96 -0
- data/rbi/increase/resources/entities.rbi +0 -11
- data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +4 -0
- data/sig/increase/models/account_number.rbs +34 -66
- data/sig/increase/models/account_number_create_params.rbs +30 -64
- data/sig/increase/models/account_number_list_params.rbs +44 -44
- data/sig/increase/models/account_number_update_params.rbs +39 -77
- data/sig/increase/models/ach_transfer_create_params.rbs +9 -18
- data/sig/increase/models/card_payment.rbs +8 -0
- data/sig/increase/models/card_update_params.rbs +7 -11
- data/sig/increase/models/checkbook.rbs +272 -0
- data/sig/increase/models/checkbook_check.rbs +76 -0
- data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
- data/sig/increase/models/checkbook_check_retrieve_params.rbs +24 -0
- data/sig/increase/models/checkbook_check_stop_params.rbs +24 -0
- data/sig/increase/models/checkbook_create_params.rbs +90 -0
- data/sig/increase/models/checkbook_list_params.rbs +97 -0
- data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
- data/sig/increase/models/checkbook_stop_params.rbs +23 -0
- data/sig/increase/models/declined_transaction.rbs +5 -0
- data/sig/increase/models/entity.rbs +0 -46
- data/sig/increase/models/entity_create_params.rbs +0 -55
- data/sig/increase/models/entity_update_params.rbs +0 -48
- data/sig/increase/models/fednow_transfer.rbs +5 -0
- data/sig/increase/models/inbound_check_deposit.rbs +5 -0
- data/sig/increase/models/real_time_decision.rbs +69 -3
- data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
- data/sig/increase/models/transaction.rbs +22 -1
- data/sig/increase/models.rbs +18 -0
- data/sig/increase/resources/account_numbers.rbs +5 -5
- data/sig/increase/resources/ach_transfers.rbs +2 -3
- data/sig/increase/resources/checkbook_checks.rbs +26 -0
- data/sig/increase/resources/checkbooks.rbs +33 -0
- data/sig/increase/resources/entities.rbs +0 -3
- data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +41 -2
|
@@ -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,21 @@ module Increase
|
|
|
26
26
|
sig { returns(Integer) }
|
|
27
27
|
attr_accessor :amount
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
32
|
-
#
|
|
33
|
-
#
|
|
34
|
-
#
|
|
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. We recommend setting this on every transfer; if you do not, we fall
|
|
34
|
+
# back to the `statement_descriptor`.
|
|
35
|
+
sig { returns(String) }
|
|
36
|
+
attr_accessor :company_name
|
|
37
|
+
|
|
38
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
39
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
40
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
41
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
35
42
|
sig { returns(String) }
|
|
36
|
-
attr_accessor :
|
|
43
|
+
attr_accessor :individual_name
|
|
37
44
|
|
|
38
45
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
39
46
|
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
@@ -88,18 +95,6 @@ module Increase
|
|
|
88
95
|
sig { params(company_entry_description: String).void }
|
|
89
96
|
attr_writer :company_entry_description
|
|
90
97
|
|
|
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
98
|
# The type of entity that owns the receiver's account.
|
|
104
99
|
sig do
|
|
105
100
|
returns(
|
|
@@ -151,16 +146,6 @@ module Increase
|
|
|
151
146
|
sig { params(individual_id: String).void }
|
|
152
147
|
attr_writer :individual_id
|
|
153
148
|
|
|
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
149
|
# Configuration for how the effective date of the transfer will be set. This
|
|
165
150
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
166
151
|
# `settlement_schedule` of `same_day`. If set, exactly one of the child attributes
|
|
@@ -220,19 +205,18 @@ module Increase
|
|
|
220
205
|
params(
|
|
221
206
|
account_id: String,
|
|
222
207
|
amount: Integer,
|
|
223
|
-
|
|
208
|
+
company_name: String,
|
|
209
|
+
individual_name: String,
|
|
224
210
|
account_number: String,
|
|
225
211
|
addenda: Increase::ACHTransferCreateParams::Addenda::OrHash,
|
|
226
212
|
company_descriptive_date: String,
|
|
227
213
|
company_discretionary_data: String,
|
|
228
214
|
company_entry_description: String,
|
|
229
|
-
company_name: String,
|
|
230
215
|
destination_account_holder:
|
|
231
216
|
Increase::ACHTransferCreateParams::DestinationAccountHolder::OrSymbol,
|
|
232
217
|
external_account_id: String,
|
|
233
218
|
funding: Increase::ACHTransferCreateParams::Funding::OrSymbol,
|
|
234
219
|
individual_id: String,
|
|
235
|
-
individual_name: String,
|
|
236
220
|
preferred_effective_date:
|
|
237
221
|
Increase::ACHTransferCreateParams::PreferredEffectiveDate::OrHash,
|
|
238
222
|
require_approval: T::Boolean,
|
|
@@ -254,13 +238,18 @@ module Increase
|
|
|
254
238
|
# into Increase. Debit transfers
|
|
255
239
|
# [might result in a hold before funds are available](/documentation/sending-ach-debit-transfers).
|
|
256
240
|
amount:,
|
|
257
|
-
#
|
|
258
|
-
#
|
|
259
|
-
#
|
|
260
|
-
#
|
|
261
|
-
#
|
|
262
|
-
#
|
|
263
|
-
|
|
241
|
+
# The name by which the recipient knows the counterparty of this transaction. If
|
|
242
|
+
# you're processing payments on behalf of another party, use their name, not your
|
|
243
|
+
# own, so that it's more likely the recipient understands the context of the
|
|
244
|
+
# payment. This value is usually displayed to the recipient on their bank
|
|
245
|
+
# statement. We recommend setting this on every transfer; if you do not, we fall
|
|
246
|
+
# back to the `statement_descriptor`.
|
|
247
|
+
company_name:,
|
|
248
|
+
# The name of the transfer recipient. This value is informational and generally
|
|
249
|
+
# not verified by the recipient's bank. This value is usually displayed to the
|
|
250
|
+
# recipient on their bank statement. We recommend setting this on every transfer;
|
|
251
|
+
# if you do not, we fall back to the `statement_descriptor`.
|
|
252
|
+
individual_name:,
|
|
264
253
|
# The receiver's account number. For credit transfers (transfers with a positive
|
|
265
254
|
# `amount`), this is the account that funds will be sent to. For debit transfers
|
|
266
255
|
# (transfers with a negative `amount`), this is the account that funds will be
|
|
@@ -287,13 +276,6 @@ module Increase
|
|
|
287
276
|
# code and use case. For example, some use cases require constants like
|
|
288
277
|
# `ACCTVERIFY`, `PURCHASE`, `PAYROLL`, or `REVERSAL`.
|
|
289
278
|
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
279
|
# The type of entity that owns the receiver's account.
|
|
298
280
|
destination_account_holder: nil,
|
|
299
281
|
# The ID of an External Account to initiate a transfer to. If this parameter is
|
|
@@ -308,11 +290,6 @@ module Increase
|
|
|
308
290
|
# unset. For the specific case of person-to-person credits with the WEB standard
|
|
309
291
|
# entry class code, this must include the name of the payer.
|
|
310
292
|
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
293
|
# Configuration for how the effective date of the transfer will be set. This
|
|
317
294
|
# determines same-day vs future-dated settlement timing. If not set, defaults to a
|
|
318
295
|
# `settlement_schedule` of `same_day`. If set, exactly one of the child attributes
|
|
@@ -337,19 +314,18 @@ module Increase
|
|
|
337
314
|
{
|
|
338
315
|
account_id: String,
|
|
339
316
|
amount: Integer,
|
|
340
|
-
|
|
317
|
+
company_name: String,
|
|
318
|
+
individual_name: String,
|
|
341
319
|
account_number: String,
|
|
342
320
|
addenda: Increase::ACHTransferCreateParams::Addenda,
|
|
343
321
|
company_descriptive_date: String,
|
|
344
322
|
company_discretionary_data: String,
|
|
345
323
|
company_entry_description: String,
|
|
346
|
-
company_name: String,
|
|
347
324
|
destination_account_holder:
|
|
348
325
|
Increase::ACHTransferCreateParams::DestinationAccountHolder::OrSymbol,
|
|
349
326
|
external_account_id: String,
|
|
350
327
|
funding: Increase::ACHTransferCreateParams::Funding::OrSymbol,
|
|
351
328
|
individual_id: String,
|
|
352
|
-
individual_name: String,
|
|
353
329
|
preferred_effective_date:
|
|
354
330
|
Increase::ACHTransferCreateParams::PreferredEffectiveDate,
|
|
355
331
|
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,
|
|
@@ -18362,6 +18362,13 @@ module Increase
|
|
|
18362
18362
|
Increase::CardPayment::Element::CardRefund::PurchaseDetails::Fleet::FuelType::TaggedSymbol
|
|
18363
18363
|
)
|
|
18364
18364
|
|
|
18365
|
+
# Diesel 1 off-road non-taxable
|
|
18366
|
+
DIESEL_1_OFF_ROAD_NON_TAXABLE =
|
|
18367
|
+
T.let(
|
|
18368
|
+
:diesel_1_off_road_non_taxable,
|
|
18369
|
+
Increase::CardPayment::Element::CardRefund::PurchaseDetails::Fleet::FuelType::TaggedSymbol
|
|
18370
|
+
)
|
|
18371
|
+
|
|
18365
18372
|
# Renewable diesel R95 or greater off-road non-taxable
|
|
18366
18373
|
RENEWABLE_DIESEL_R95_OR_GREATER_OFF_ROAD_NON_TAXABLE =
|
|
18367
18374
|
T.let(
|
|
@@ -23209,6 +23216,13 @@ module Increase
|
|
|
23209
23216
|
Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Fleet::FuelType::TaggedSymbol
|
|
23210
23217
|
)
|
|
23211
23218
|
|
|
23219
|
+
# Diesel 1 off-road non-taxable
|
|
23220
|
+
DIESEL_1_OFF_ROAD_NON_TAXABLE =
|
|
23221
|
+
T.let(
|
|
23222
|
+
:diesel_1_off_road_non_taxable,
|
|
23223
|
+
Increase::CardPayment::Element::CardSettlement::PurchaseDetails::Fleet::FuelType::TaggedSymbol
|
|
23224
|
+
)
|
|
23225
|
+
|
|
23212
23226
|
# Renewable diesel R95 or greater off-road non-taxable
|
|
23213
23227
|
RENEWABLE_DIESEL_R95_OR_GREATER_OFF_ROAD_NON_TAXABLE =
|
|
23214
23228
|
T.let(
|
|
@@ -29,7 +29,9 @@ module Increase
|
|
|
29
29
|
end
|
|
30
30
|
attr_writer :authorization_controls
|
|
31
31
|
|
|
32
|
-
# The card's
|
|
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::CardUpdateParams::BillingAddress)) }
|
|
34
36
|
attr_reader :billing_address
|
|
35
37
|
|
|
@@ -93,7 +95,9 @@ module Increase
|
|
|
93
95
|
card_id:,
|
|
94
96
|
# Controls that restrict how this card can be used.
|
|
95
97
|
authorization_controls: nil,
|
|
96
|
-
# The card's
|
|
98
|
+
# The card's billing address. This is used in card authorizations to
|
|
99
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
100
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
97
101
|
billing_address: nil,
|
|
98
102
|
# The description you choose to give the card.
|
|
99
103
|
description: nil,
|
|
@@ -1226,7 +1230,9 @@ module Increase
|
|
|
1226
1230
|
sig { params(line2: String).void }
|
|
1227
1231
|
attr_writer :line2
|
|
1228
1232
|
|
|
1229
|
-
# The card's
|
|
1233
|
+
# The card's billing address. This is used in card authorizations to
|
|
1234
|
+
# [validate the address provided by the acquirer](/documentation/address-verification-system-codes-and-overrides).
|
|
1235
|
+
# If not provided, the address associated with the account's entity will be used.
|
|
1230
1236
|
sig do
|
|
1231
1237
|
params(
|
|
1232
1238
|
city: String,
|
|
@@ -1282,21 +1288,17 @@ module Increase
|
|
|
1282
1288
|
attr_writer :digital_card_profile_id
|
|
1283
1289
|
|
|
1284
1290
|
# An email address that can be used to verify the cardholder via one-time passcode
|
|
1285
|
-
# over email.
|
|
1291
|
+
# over email. Send `null` to clear the email address. Omit this field to leave it
|
|
1292
|
+
# unchanged.
|
|
1286
1293
|
sig { returns(T.nilable(String)) }
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
sig { params(email: String).void }
|
|
1290
|
-
attr_writer :email
|
|
1294
|
+
attr_accessor :email
|
|
1291
1295
|
|
|
1292
1296
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1293
1297
|
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
1294
|
-
# `(415) 555-0123`.
|
|
1298
|
+
# `(415) 555-0123`. Send `null` to clear the phone number. Omit this field to
|
|
1299
|
+
# leave it unchanged.
|
|
1295
1300
|
sig { returns(T.nilable(String)) }
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
sig { params(phone: String).void }
|
|
1299
|
-
attr_writer :phone
|
|
1301
|
+
attr_accessor :phone
|
|
1300
1302
|
|
|
1301
1303
|
# The contact information used in the two-factor steps for digital wallet card
|
|
1302
1304
|
# creation. At least one field must be present to complete the digital wallet
|
|
@@ -1304,26 +1306,32 @@ module Increase
|
|
|
1304
1306
|
sig do
|
|
1305
1307
|
params(
|
|
1306
1308
|
digital_card_profile_id: String,
|
|
1307
|
-
email: String,
|
|
1308
|
-
phone: String
|
|
1309
|
+
email: T.nilable(String),
|
|
1310
|
+
phone: T.nilable(String)
|
|
1309
1311
|
).returns(T.attached_class)
|
|
1310
1312
|
end
|
|
1311
1313
|
def self.new(
|
|
1312
1314
|
# The digital card profile assigned to this digital card.
|
|
1313
1315
|
digital_card_profile_id: nil,
|
|
1314
1316
|
# An email address that can be used to verify the cardholder via one-time passcode
|
|
1315
|
-
# over email.
|
|
1317
|
+
# over email. Send `null` to clear the email address. Omit this field to leave it
|
|
1318
|
+
# unchanged.
|
|
1316
1319
|
email: nil,
|
|
1317
1320
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1318
1321
|
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
1319
|
-
# `(415) 555-0123`.
|
|
1322
|
+
# `(415) 555-0123`. Send `null` to clear the phone number. Omit this field to
|
|
1323
|
+
# leave it unchanged.
|
|
1320
1324
|
phone: nil
|
|
1321
1325
|
)
|
|
1322
1326
|
end
|
|
1323
1327
|
|
|
1324
1328
|
sig do
|
|
1325
1329
|
override.returns(
|
|
1326
|
-
{
|
|
1330
|
+
{
|
|
1331
|
+
digital_card_profile_id: String,
|
|
1332
|
+
email: T.nilable(String),
|
|
1333
|
+
phone: T.nilable(String)
|
|
1334
|
+
}
|
|
1327
1335
|
)
|
|
1328
1336
|
end
|
|
1329
1337
|
def to_hash
|