increase 1.357.0 → 1.359.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/account_statement.rb +12 -8
- data/lib/increase/models/card.rb +112 -4
- data/lib/increase/models/card_create_params.rb +67 -3
- data/lib/increase/models/card_dispute.rb +3 -1
- data/lib/increase/models/card_payment.rb +3 -1
- data/lib/increase/models/card_push_transfer.rb +18 -3
- data/lib/increase/models/card_push_transfer_create_params.rb +18 -3
- data/lib/increase/models/card_renew_params.rb +22 -0
- data/lib/increase/models/card_update_params.rb +4 -2
- data/lib/increase/models/entity_create_params.rb +8 -4
- data/lib/increase/models/entity_update_params.rb +8 -4
- data/lib/increase/models/export.rb +18 -18
- data/lib/increase/models/export_create_params.rb +19 -18
- data/lib/increase/models/inbound_fednow_transfer.rb +12 -3
- data/lib/increase/models/physical_card.rb +25 -2
- data/lib/increase/models/transaction.rb +6 -0
- data/lib/increase/models.rb +2 -0
- data/lib/increase/resources/cards.rb +29 -1
- data/lib/increase/resources/digital_card_profiles.rb +2 -2
- data/lib/increase/resources/files.rb +3 -1
- data/lib/increase/resources/intrafi_account_enrollments.rb +2 -2
- data/lib/increase/resources/physical_card_profiles.rb +1 -1
- data/lib/increase/resources/supplemental_documents.rb +2 -2
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +1 -0
- data/rbi/increase/models/account_statement.rbi +12 -8
- data/rbi/increase/models/card.rbi +168 -3
- data/rbi/increase/models/card_create_params.rbi +124 -2
- data/rbi/increase/models/card_dispute.rbi +3 -1
- data/rbi/increase/models/card_payment.rbi +3 -1
- data/rbi/increase/models/card_push_transfer.rbi +42 -7
- data/rbi/increase/models/card_push_transfer_create_params.rbi +42 -7
- data/rbi/increase/models/card_renew_params.rbi +40 -0
- data/rbi/increase/models/card_update_params.rbi +4 -2
- data/rbi/increase/models/entity_create_params.rbi +8 -4
- data/rbi/increase/models/entity_update_params.rbi +8 -4
- data/rbi/increase/models/export.rbi +18 -18
- data/rbi/increase/models/export_create_params.rbi +18 -18
- data/rbi/increase/models/inbound_fednow_transfer.rbi +10 -2
- data/rbi/increase/models/physical_card.rbi +22 -1
- data/rbi/increase/models/transaction.rbi +14 -0
- data/rbi/increase/models.rbi +2 -0
- data/rbi/increase/resources/cards.rbi +22 -0
- data/rbi/increase/resources/digital_card_profiles.rbi +2 -2
- data/rbi/increase/resources/files.rbi +3 -1
- data/rbi/increase/resources/intrafi_account_enrollments.rbi +2 -2
- data/rbi/increase/resources/physical_card_profiles.rbi +1 -1
- data/rbi/increase/resources/supplemental_documents.rbi +2 -2
- data/sig/increase/models/card.rbs +79 -0
- data/sig/increase/models/card_create_params.rbs +52 -1
- data/sig/increase/models/card_push_transfer.rbs +24 -4
- data/sig/increase/models/card_push_transfer_create_params.rbs +24 -4
- data/sig/increase/models/card_renew_params.rbs +23 -0
- data/sig/increase/models/inbound_fednow_transfer.rbs +5 -0
- data/sig/increase/models/physical_card.rbs +10 -0
- data/sig/increase/models/transaction.rbs +8 -0
- data/sig/increase/models.rbs +2 -0
- data/sig/increase/resources/cards.rbs +6 -0
- metadata +5 -2
|
@@ -95,6 +95,22 @@ module Increase
|
|
|
95
95
|
sig { returns(String) }
|
|
96
96
|
attr_accessor :last4
|
|
97
97
|
|
|
98
|
+
# Completed renewals of this Card, sorted by `renewed_at` in ascending order. Each
|
|
99
|
+
# renewal records the expiration date the Card had before it was renewed.
|
|
100
|
+
sig { returns(T::Array[Increase::Card::Renewal]) }
|
|
101
|
+
attr_accessor :renewals
|
|
102
|
+
|
|
103
|
+
# Details about the Card this Card replaces, if it was created as a replacement.
|
|
104
|
+
sig { returns(T.nilable(Increase::Card::ReplacementFor)) }
|
|
105
|
+
attr_reader :replacement_for
|
|
106
|
+
|
|
107
|
+
sig do
|
|
108
|
+
params(
|
|
109
|
+
replacement_for: T.nilable(Increase::Card::ReplacementFor::OrHash)
|
|
110
|
+
).void
|
|
111
|
+
end
|
|
112
|
+
attr_writer :replacement_for
|
|
113
|
+
|
|
98
114
|
# This indicates if payments can be made with the card.
|
|
99
115
|
sig { returns(Increase::Card::Status::TaggedSymbol) }
|
|
100
116
|
attr_accessor :status
|
|
@@ -108,7 +124,8 @@ module Increase
|
|
|
108
124
|
# for online purchases after you create them. All cards work on a good funds
|
|
109
125
|
# model, and maintain a maximum limit of 100% of the Account’s available balance
|
|
110
126
|
# at the time of transaction. Funds are deducted from the Account upon transaction
|
|
111
|
-
# settlement.
|
|
127
|
+
# settlement. For more information, see our guide on
|
|
128
|
+
# [managing cards](https://increase.com/documentation/managing-cards).
|
|
112
129
|
sig do
|
|
113
130
|
params(
|
|
114
131
|
id: String,
|
|
@@ -126,6 +143,8 @@ module Increase
|
|
|
126
143
|
expiration_year: Integer,
|
|
127
144
|
idempotency_key: T.nilable(String),
|
|
128
145
|
last4: String,
|
|
146
|
+
renewals: T::Array[Increase::Card::Renewal::OrHash],
|
|
147
|
+
replacement_for: T.nilable(Increase::Card::ReplacementFor::OrHash),
|
|
129
148
|
status: Increase::Card::Status::OrSymbol,
|
|
130
149
|
type: Increase::Card::Type::OrSymbol
|
|
131
150
|
).returns(T.attached_class)
|
|
@@ -165,6 +184,11 @@ module Increase
|
|
|
165
184
|
idempotency_key:,
|
|
166
185
|
# The last 4 digits of the Card's Primary Account Number.
|
|
167
186
|
last4:,
|
|
187
|
+
# Completed renewals of this Card, sorted by `renewed_at` in ascending order. Each
|
|
188
|
+
# renewal records the expiration date the Card had before it was renewed.
|
|
189
|
+
renewals:,
|
|
190
|
+
# Details about the Card this Card replaces, if it was created as a replacement.
|
|
191
|
+
replacement_for:,
|
|
168
192
|
# This indicates if payments can be made with the card.
|
|
169
193
|
status:,
|
|
170
194
|
# A constant representing the object's type. For this resource it will always be
|
|
@@ -191,6 +215,8 @@ module Increase
|
|
|
191
215
|
expiration_year: Integer,
|
|
192
216
|
idempotency_key: T.nilable(String),
|
|
193
217
|
last4: String,
|
|
218
|
+
renewals: T::Array[Increase::Card::Renewal],
|
|
219
|
+
replacement_for: T.nilable(Increase::Card::ReplacementFor),
|
|
194
220
|
status: Increase::Card::Status::TaggedSymbol,
|
|
195
221
|
type: Increase::Card::Type::TaggedSymbol
|
|
196
222
|
}
|
|
@@ -1353,7 +1379,8 @@ module Increase
|
|
|
1353
1379
|
attr_accessor :email
|
|
1354
1380
|
|
|
1355
1381
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1356
|
-
# over SMS.
|
|
1382
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
1383
|
+
# example `+14155550123`.
|
|
1357
1384
|
sig { returns(T.nilable(String)) }
|
|
1358
1385
|
attr_accessor :phone
|
|
1359
1386
|
|
|
@@ -1375,7 +1402,8 @@ module Increase
|
|
|
1375
1402
|
# over email.
|
|
1376
1403
|
email:,
|
|
1377
1404
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1378
|
-
# over SMS.
|
|
1405
|
+
# over SMS. Returned in [E.164](https://en.wikipedia.org/wiki/E.164) format, for
|
|
1406
|
+
# example `+14155550123`.
|
|
1379
1407
|
phone:
|
|
1380
1408
|
)
|
|
1381
1409
|
end
|
|
@@ -1393,6 +1421,143 @@ module Increase
|
|
|
1393
1421
|
end
|
|
1394
1422
|
end
|
|
1395
1423
|
|
|
1424
|
+
class Renewal < Increase::Internal::Type::BaseModel
|
|
1425
|
+
OrHash =
|
|
1426
|
+
T.type_alias do
|
|
1427
|
+
T.any(Increase::Card::Renewal, Increase::Internal::AnyHash)
|
|
1428
|
+
end
|
|
1429
|
+
|
|
1430
|
+
# The month the Card expired in before this renewal, in M format (e.g., August is
|
|
1431
|
+
# 8).
|
|
1432
|
+
sig { returns(Integer) }
|
|
1433
|
+
attr_accessor :previous_expiration_month
|
|
1434
|
+
|
|
1435
|
+
# The year the Card expired in before this renewal, in YYYY format (e.g., 2025).
|
|
1436
|
+
sig { returns(Integer) }
|
|
1437
|
+
attr_accessor :previous_expiration_year
|
|
1438
|
+
|
|
1439
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
1440
|
+
# the Card was renewed.
|
|
1441
|
+
sig { returns(Time) }
|
|
1442
|
+
attr_accessor :renewed_at
|
|
1443
|
+
|
|
1444
|
+
sig do
|
|
1445
|
+
params(
|
|
1446
|
+
previous_expiration_month: Integer,
|
|
1447
|
+
previous_expiration_year: Integer,
|
|
1448
|
+
renewed_at: Time
|
|
1449
|
+
).returns(T.attached_class)
|
|
1450
|
+
end
|
|
1451
|
+
def self.new(
|
|
1452
|
+
# The month the Card expired in before this renewal, in M format (e.g., August is
|
|
1453
|
+
# 8).
|
|
1454
|
+
previous_expiration_month:,
|
|
1455
|
+
# The year the Card expired in before this renewal, in YYYY format (e.g., 2025).
|
|
1456
|
+
previous_expiration_year:,
|
|
1457
|
+
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
1458
|
+
# the Card was renewed.
|
|
1459
|
+
renewed_at:
|
|
1460
|
+
)
|
|
1461
|
+
end
|
|
1462
|
+
|
|
1463
|
+
sig do
|
|
1464
|
+
override.returns(
|
|
1465
|
+
{
|
|
1466
|
+
previous_expiration_month: Integer,
|
|
1467
|
+
previous_expiration_year: Integer,
|
|
1468
|
+
renewed_at: Time
|
|
1469
|
+
}
|
|
1470
|
+
)
|
|
1471
|
+
end
|
|
1472
|
+
def to_hash
|
|
1473
|
+
end
|
|
1474
|
+
end
|
|
1475
|
+
|
|
1476
|
+
class ReplacementFor < Increase::Internal::Type::BaseModel
|
|
1477
|
+
OrHash =
|
|
1478
|
+
T.type_alias do
|
|
1479
|
+
T.any(Increase::Card::ReplacementFor, Increase::Internal::AnyHash)
|
|
1480
|
+
end
|
|
1481
|
+
|
|
1482
|
+
# The identifier of the replaced Card.
|
|
1483
|
+
sig { returns(String) }
|
|
1484
|
+
attr_accessor :card_id
|
|
1485
|
+
|
|
1486
|
+
# Why the Card was replaced. Only `expiring` notifies merchants that have the
|
|
1487
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1488
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1489
|
+
sig { returns(Increase::Card::ReplacementFor::Reason::TaggedSymbol) }
|
|
1490
|
+
attr_accessor :reason
|
|
1491
|
+
|
|
1492
|
+
# Details about the Card this Card replaces, if it was created as a replacement.
|
|
1493
|
+
sig do
|
|
1494
|
+
params(
|
|
1495
|
+
card_id: String,
|
|
1496
|
+
reason: Increase::Card::ReplacementFor::Reason::OrSymbol
|
|
1497
|
+
).returns(T.attached_class)
|
|
1498
|
+
end
|
|
1499
|
+
def self.new(
|
|
1500
|
+
# The identifier of the replaced Card.
|
|
1501
|
+
card_id:,
|
|
1502
|
+
# Why the Card was replaced. Only `expiring` notifies merchants that have the
|
|
1503
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1504
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1505
|
+
reason:
|
|
1506
|
+
)
|
|
1507
|
+
end
|
|
1508
|
+
|
|
1509
|
+
sig do
|
|
1510
|
+
override.returns(
|
|
1511
|
+
{
|
|
1512
|
+
card_id: String,
|
|
1513
|
+
reason: Increase::Card::ReplacementFor::Reason::TaggedSymbol
|
|
1514
|
+
}
|
|
1515
|
+
)
|
|
1516
|
+
end
|
|
1517
|
+
def to_hash
|
|
1518
|
+
end
|
|
1519
|
+
|
|
1520
|
+
# Why the Card was replaced. Only `expiring` notifies merchants that have the
|
|
1521
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1522
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1523
|
+
module Reason
|
|
1524
|
+
extend Increase::Internal::Type::Enum
|
|
1525
|
+
|
|
1526
|
+
TaggedSymbol =
|
|
1527
|
+
T.type_alias do
|
|
1528
|
+
T.all(Symbol, Increase::Card::ReplacementFor::Reason)
|
|
1529
|
+
end
|
|
1530
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1531
|
+
|
|
1532
|
+
# The replaced card is expiring. Merchants with the replaced card on file will be notified of the new card, and its digital wallet tokens that have not been deactivated will move to the new card.
|
|
1533
|
+
EXPIRING =
|
|
1534
|
+
T.let(
|
|
1535
|
+
:expiring,
|
|
1536
|
+
Increase::Card::ReplacementFor::Reason::TaggedSymbol
|
|
1537
|
+
)
|
|
1538
|
+
|
|
1539
|
+
# The replaced card was lost. Merchants will not be notified of the new card.
|
|
1540
|
+
LOST =
|
|
1541
|
+
T.let(:lost, Increase::Card::ReplacementFor::Reason::TaggedSymbol)
|
|
1542
|
+
|
|
1543
|
+
# The replaced card was stolen. Merchants will not be notified of the new card.
|
|
1544
|
+
STOLEN =
|
|
1545
|
+
T.let(:stolen, Increase::Card::ReplacementFor::Reason::TaggedSymbol)
|
|
1546
|
+
|
|
1547
|
+
# The replaced card was used fraudulently. Merchants will not be notified of the new card.
|
|
1548
|
+
FRAUD =
|
|
1549
|
+
T.let(:fraud, Increase::Card::ReplacementFor::Reason::TaggedSymbol)
|
|
1550
|
+
|
|
1551
|
+
sig do
|
|
1552
|
+
override.returns(
|
|
1553
|
+
T::Array[Increase::Card::ReplacementFor::Reason::TaggedSymbol]
|
|
1554
|
+
)
|
|
1555
|
+
end
|
|
1556
|
+
def self.values
|
|
1557
|
+
end
|
|
1558
|
+
end
|
|
1559
|
+
end
|
|
1560
|
+
|
|
1396
1561
|
# This indicates if payments can be made with the card.
|
|
1397
1562
|
module Status
|
|
1398
1563
|
extend Increase::Internal::Type::Enum
|
|
@@ -82,6 +82,18 @@ module Increase
|
|
|
82
82
|
sig { params(entity_id: String).void }
|
|
83
83
|
attr_writer :entity_id
|
|
84
84
|
|
|
85
|
+
# Details about the Card this Card replaces. Supply this when issuing a new Card
|
|
86
|
+
# to take over from an existing one. The replaced Card is not canceled.
|
|
87
|
+
sig { returns(T.nilable(Increase::CardCreateParams::ReplacementFor)) }
|
|
88
|
+
attr_reader :replacement_for
|
|
89
|
+
|
|
90
|
+
sig do
|
|
91
|
+
params(
|
|
92
|
+
replacement_for: Increase::CardCreateParams::ReplacementFor::OrHash
|
|
93
|
+
).void
|
|
94
|
+
end
|
|
95
|
+
attr_writer :replacement_for
|
|
96
|
+
|
|
85
97
|
sig do
|
|
86
98
|
params(
|
|
87
99
|
account_id: String,
|
|
@@ -92,6 +104,7 @@ module Increase
|
|
|
92
104
|
description: String,
|
|
93
105
|
digital_wallet: Increase::CardCreateParams::DigitalWallet::OrHash,
|
|
94
106
|
entity_id: String,
|
|
107
|
+
replacement_for: Increase::CardCreateParams::ReplacementFor::OrHash,
|
|
95
108
|
request_options: Increase::RequestOptions::OrHash
|
|
96
109
|
).returns(T.attached_class)
|
|
97
110
|
end
|
|
@@ -116,6 +129,9 @@ module Increase
|
|
|
116
129
|
# The Entity the card belongs to. You only need to supply this in rare situations
|
|
117
130
|
# when the card is not for the Account holder.
|
|
118
131
|
entity_id: nil,
|
|
132
|
+
# Details about the Card this Card replaces. Supply this when issuing a new Card
|
|
133
|
+
# to take over from an existing one. The replaced Card is not canceled.
|
|
134
|
+
replacement_for: nil,
|
|
119
135
|
request_options: {}
|
|
120
136
|
)
|
|
121
137
|
end
|
|
@@ -131,6 +147,7 @@ module Increase
|
|
|
131
147
|
description: String,
|
|
132
148
|
digital_wallet: Increase::CardCreateParams::DigitalWallet,
|
|
133
149
|
entity_id: String,
|
|
150
|
+
replacement_for: Increase::CardCreateParams::ReplacementFor,
|
|
134
151
|
request_options: Increase::RequestOptions
|
|
135
152
|
}
|
|
136
153
|
)
|
|
@@ -1348,7 +1365,8 @@ module Increase
|
|
|
1348
1365
|
attr_writer :email
|
|
1349
1366
|
|
|
1350
1367
|
# A phone number that can be used to contact and verify the cardholder via
|
|
1351
|
-
# one-time passcode over SMS.
|
|
1368
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
1369
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
1352
1370
|
sig { returns(T.nilable(String)) }
|
|
1353
1371
|
attr_reader :phone
|
|
1354
1372
|
|
|
@@ -1374,7 +1392,8 @@ module Increase
|
|
|
1374
1392
|
# one-time passcode over email.
|
|
1375
1393
|
email: nil,
|
|
1376
1394
|
# A phone number that can be used to contact and verify the cardholder via
|
|
1377
|
-
# one-time passcode over SMS.
|
|
1395
|
+
# one-time passcode over SMS. Accepts formats like `+14155550123`, `4155550123`,
|
|
1396
|
+
# `415-555-0123`, or `(415) 555-0123`.
|
|
1378
1397
|
phone: nil
|
|
1379
1398
|
)
|
|
1380
1399
|
end
|
|
@@ -1387,6 +1406,109 @@ module Increase
|
|
|
1387
1406
|
def to_hash
|
|
1388
1407
|
end
|
|
1389
1408
|
end
|
|
1409
|
+
|
|
1410
|
+
class ReplacementFor < Increase::Internal::Type::BaseModel
|
|
1411
|
+
OrHash =
|
|
1412
|
+
T.type_alias do
|
|
1413
|
+
T.any(
|
|
1414
|
+
Increase::CardCreateParams::ReplacementFor,
|
|
1415
|
+
Increase::Internal::AnyHash
|
|
1416
|
+
)
|
|
1417
|
+
end
|
|
1418
|
+
|
|
1419
|
+
# The identifier of the Card being replaced.
|
|
1420
|
+
sig { returns(String) }
|
|
1421
|
+
attr_accessor :card_id
|
|
1422
|
+
|
|
1423
|
+
# Why the Card is being replaced. Only `expiring` notifies merchants that have the
|
|
1424
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1425
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1426
|
+
sig do
|
|
1427
|
+
returns(Increase::CardCreateParams::ReplacementFor::Reason::OrSymbol)
|
|
1428
|
+
end
|
|
1429
|
+
attr_accessor :reason
|
|
1430
|
+
|
|
1431
|
+
# Details about the Card this Card replaces. Supply this when issuing a new Card
|
|
1432
|
+
# to take over from an existing one. The replaced Card is not canceled.
|
|
1433
|
+
sig do
|
|
1434
|
+
params(
|
|
1435
|
+
card_id: String,
|
|
1436
|
+
reason: Increase::CardCreateParams::ReplacementFor::Reason::OrSymbol
|
|
1437
|
+
).returns(T.attached_class)
|
|
1438
|
+
end
|
|
1439
|
+
def self.new(
|
|
1440
|
+
# The identifier of the Card being replaced.
|
|
1441
|
+
card_id:,
|
|
1442
|
+
# Why the Card is being replaced. Only `expiring` notifies merchants that have the
|
|
1443
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1444
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1445
|
+
reason:
|
|
1446
|
+
)
|
|
1447
|
+
end
|
|
1448
|
+
|
|
1449
|
+
sig do
|
|
1450
|
+
override.returns(
|
|
1451
|
+
{
|
|
1452
|
+
card_id: String,
|
|
1453
|
+
reason:
|
|
1454
|
+
Increase::CardCreateParams::ReplacementFor::Reason::OrSymbol
|
|
1455
|
+
}
|
|
1456
|
+
)
|
|
1457
|
+
end
|
|
1458
|
+
def to_hash
|
|
1459
|
+
end
|
|
1460
|
+
|
|
1461
|
+
# Why the Card is being replaced. Only `expiring` notifies merchants that have the
|
|
1462
|
+
# replaced Card on file of the new Card and moves Digital Wallet Tokens on the
|
|
1463
|
+
# replaced Card that have not been deactivated to the new Card.
|
|
1464
|
+
module Reason
|
|
1465
|
+
extend Increase::Internal::Type::Enum
|
|
1466
|
+
|
|
1467
|
+
TaggedSymbol =
|
|
1468
|
+
T.type_alias do
|
|
1469
|
+
T.all(Symbol, Increase::CardCreateParams::ReplacementFor::Reason)
|
|
1470
|
+
end
|
|
1471
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1472
|
+
|
|
1473
|
+
# The replaced card is expiring. Merchants with the replaced card on file will be notified of the new card, and its digital wallet tokens that have not been deactivated will move to the new card.
|
|
1474
|
+
EXPIRING =
|
|
1475
|
+
T.let(
|
|
1476
|
+
:expiring,
|
|
1477
|
+
Increase::CardCreateParams::ReplacementFor::Reason::TaggedSymbol
|
|
1478
|
+
)
|
|
1479
|
+
|
|
1480
|
+
# The replaced card was lost. Merchants will not be notified of the new card.
|
|
1481
|
+
LOST =
|
|
1482
|
+
T.let(
|
|
1483
|
+
:lost,
|
|
1484
|
+
Increase::CardCreateParams::ReplacementFor::Reason::TaggedSymbol
|
|
1485
|
+
)
|
|
1486
|
+
|
|
1487
|
+
# The replaced card was stolen. Merchants will not be notified of the new card.
|
|
1488
|
+
STOLEN =
|
|
1489
|
+
T.let(
|
|
1490
|
+
:stolen,
|
|
1491
|
+
Increase::CardCreateParams::ReplacementFor::Reason::TaggedSymbol
|
|
1492
|
+
)
|
|
1493
|
+
|
|
1494
|
+
# The replaced card was used fraudulently. Merchants will not be notified of the new card.
|
|
1495
|
+
FRAUD =
|
|
1496
|
+
T.let(
|
|
1497
|
+
:fraud,
|
|
1498
|
+
Increase::CardCreateParams::ReplacementFor::Reason::TaggedSymbol
|
|
1499
|
+
)
|
|
1500
|
+
|
|
1501
|
+
sig do
|
|
1502
|
+
override.returns(
|
|
1503
|
+
T::Array[
|
|
1504
|
+
Increase::CardCreateParams::ReplacementFor::Reason::TaggedSymbol
|
|
1505
|
+
]
|
|
1506
|
+
)
|
|
1507
|
+
end
|
|
1508
|
+
def self.values
|
|
1509
|
+
end
|
|
1510
|
+
end
|
|
1511
|
+
end
|
|
1390
1512
|
end
|
|
1391
1513
|
end
|
|
1392
1514
|
end
|
|
@@ -109,7 +109,9 @@ module Increase
|
|
|
109
109
|
attr_writer :withdrawal
|
|
110
110
|
|
|
111
111
|
# If unauthorized activity occurs on a card, you can create a Card Dispute and
|
|
112
|
-
# we'll work with the card networks to return the funds if appropriate.
|
|
112
|
+
# we'll work with the card networks to return the funds if appropriate. For more
|
|
113
|
+
# information, see our guide on
|
|
114
|
+
# [card disputes](https://increase.com/documentation/card-disputes).
|
|
113
115
|
sig do
|
|
114
116
|
params(
|
|
115
117
|
id: String,
|
|
@@ -50,7 +50,9 @@ module Increase
|
|
|
50
50
|
attr_accessor :type
|
|
51
51
|
|
|
52
52
|
# Card Payments group together interactions related to a single card payment, such
|
|
53
|
-
# as an authorization and its corresponding settlement.
|
|
53
|
+
# as an authorization and its corresponding settlement. For more information, see
|
|
54
|
+
# our guide on the
|
|
55
|
+
# [Card Payment lifecycle](https://increase.com/documentation/card-payment-lifecycle).
|
|
54
56
|
sig do
|
|
55
57
|
params(
|
|
56
58
|
id: String,
|
|
@@ -1589,6 +1589,13 @@ module Increase
|
|
|
1589
1589
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1590
1590
|
)
|
|
1591
1591
|
|
|
1592
|
+
# XCD
|
|
1593
|
+
XCD =
|
|
1594
|
+
T.let(
|
|
1595
|
+
:XCD,
|
|
1596
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1597
|
+
)
|
|
1598
|
+
|
|
1592
1599
|
# ARS
|
|
1593
1600
|
ARS =
|
|
1594
1601
|
T.let(
|
|
@@ -1666,6 +1673,13 @@ module Increase
|
|
|
1666
1673
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1667
1674
|
)
|
|
1668
1675
|
|
|
1676
|
+
# XOF
|
|
1677
|
+
XOF =
|
|
1678
|
+
T.let(
|
|
1679
|
+
:XOF,
|
|
1680
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1681
|
+
)
|
|
1682
|
+
|
|
1669
1683
|
# BMD
|
|
1670
1684
|
BMD =
|
|
1671
1685
|
T.let(
|
|
@@ -1736,13 +1750,6 @@ module Increase
|
|
|
1736
1750
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1737
1751
|
)
|
|
1738
1752
|
|
|
1739
|
-
# BGN
|
|
1740
|
-
BGN =
|
|
1741
|
-
T.let(
|
|
1742
|
-
:BGN,
|
|
1743
|
-
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1744
|
-
)
|
|
1745
|
-
|
|
1746
1753
|
# BIF
|
|
1747
1754
|
BIF =
|
|
1748
1755
|
T.let(
|
|
@@ -1764,6 +1771,13 @@ module Increase
|
|
|
1764
1771
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1765
1772
|
)
|
|
1766
1773
|
|
|
1774
|
+
# XAF
|
|
1775
|
+
XAF =
|
|
1776
|
+
T.let(
|
|
1777
|
+
:XAF,
|
|
1778
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1779
|
+
)
|
|
1780
|
+
|
|
1767
1781
|
# CAD
|
|
1768
1782
|
CAD =
|
|
1769
1783
|
T.let(
|
|
@@ -1848,6 +1862,13 @@ module Increase
|
|
|
1848
1862
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1849
1863
|
)
|
|
1850
1864
|
|
|
1865
|
+
# XCG
|
|
1866
|
+
XCG =
|
|
1867
|
+
T.let(
|
|
1868
|
+
:XCG,
|
|
1869
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1870
|
+
)
|
|
1871
|
+
|
|
1851
1872
|
# CZK
|
|
1852
1873
|
CZK =
|
|
1853
1874
|
T.let(
|
|
@@ -1925,6 +1946,13 @@ module Increase
|
|
|
1925
1946
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1926
1947
|
)
|
|
1927
1948
|
|
|
1949
|
+
# XPF
|
|
1950
|
+
XPF =
|
|
1951
|
+
T.let(
|
|
1952
|
+
:XPF,
|
|
1953
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
1954
|
+
)
|
|
1955
|
+
|
|
1928
1956
|
# GMD
|
|
1929
1957
|
GMD =
|
|
1930
1958
|
T.let(
|
|
@@ -2667,6 +2695,13 @@ module Increase
|
|
|
2667
2695
|
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
2668
2696
|
)
|
|
2669
2697
|
|
|
2698
|
+
# BGN
|
|
2699
|
+
BGN =
|
|
2700
|
+
T.let(
|
|
2701
|
+
:BGN,
|
|
2702
|
+
Increase::CardPushTransfer::PresentmentAmount::Currency::TaggedSymbol
|
|
2703
|
+
)
|
|
2704
|
+
|
|
2670
2705
|
sig do
|
|
2671
2706
|
override.returns(
|
|
2672
2707
|
T::Array[
|
|
@@ -523,6 +523,13 @@ module Increase
|
|
|
523
523
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
524
524
|
)
|
|
525
525
|
|
|
526
|
+
# XCD
|
|
527
|
+
XCD =
|
|
528
|
+
T.let(
|
|
529
|
+
:XCD,
|
|
530
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
531
|
+
)
|
|
532
|
+
|
|
526
533
|
# ARS
|
|
527
534
|
ARS =
|
|
528
535
|
T.let(
|
|
@@ -600,6 +607,13 @@ module Increase
|
|
|
600
607
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
601
608
|
)
|
|
602
609
|
|
|
610
|
+
# XOF
|
|
611
|
+
XOF =
|
|
612
|
+
T.let(
|
|
613
|
+
:XOF,
|
|
614
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
615
|
+
)
|
|
616
|
+
|
|
603
617
|
# BMD
|
|
604
618
|
BMD =
|
|
605
619
|
T.let(
|
|
@@ -670,13 +684,6 @@ module Increase
|
|
|
670
684
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
671
685
|
)
|
|
672
686
|
|
|
673
|
-
# BGN
|
|
674
|
-
BGN =
|
|
675
|
-
T.let(
|
|
676
|
-
:BGN,
|
|
677
|
-
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
678
|
-
)
|
|
679
|
-
|
|
680
687
|
# BIF
|
|
681
688
|
BIF =
|
|
682
689
|
T.let(
|
|
@@ -698,6 +705,13 @@ module Increase
|
|
|
698
705
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
699
706
|
)
|
|
700
707
|
|
|
708
|
+
# XAF
|
|
709
|
+
XAF =
|
|
710
|
+
T.let(
|
|
711
|
+
:XAF,
|
|
712
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
713
|
+
)
|
|
714
|
+
|
|
701
715
|
# CAD
|
|
702
716
|
CAD =
|
|
703
717
|
T.let(
|
|
@@ -782,6 +796,13 @@ module Increase
|
|
|
782
796
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
783
797
|
)
|
|
784
798
|
|
|
799
|
+
# XCG
|
|
800
|
+
XCG =
|
|
801
|
+
T.let(
|
|
802
|
+
:XCG,
|
|
803
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
804
|
+
)
|
|
805
|
+
|
|
785
806
|
# CZK
|
|
786
807
|
CZK =
|
|
787
808
|
T.let(
|
|
@@ -859,6 +880,13 @@ module Increase
|
|
|
859
880
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
860
881
|
)
|
|
861
882
|
|
|
883
|
+
# XPF
|
|
884
|
+
XPF =
|
|
885
|
+
T.let(
|
|
886
|
+
:XPF,
|
|
887
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
888
|
+
)
|
|
889
|
+
|
|
862
890
|
# GMD
|
|
863
891
|
GMD =
|
|
864
892
|
T.let(
|
|
@@ -1601,6 +1629,13 @@ module Increase
|
|
|
1601
1629
|
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
1602
1630
|
)
|
|
1603
1631
|
|
|
1632
|
+
# BGN
|
|
1633
|
+
BGN =
|
|
1634
|
+
T.let(
|
|
1635
|
+
:BGN,
|
|
1636
|
+
Increase::CardPushTransferCreateParams::PresentmentAmount::Currency::TaggedSymbol
|
|
1637
|
+
)
|
|
1638
|
+
|
|
1604
1639
|
sig do
|
|
1605
1640
|
override.returns(
|
|
1606
1641
|
T::Array[
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardRenewParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(Increase::CardRenewParams, Increase::Internal::AnyHash)
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
# The identifier of the Card to renew.
|
|
15
|
+
sig { returns(String) }
|
|
16
|
+
attr_accessor :card_id
|
|
17
|
+
|
|
18
|
+
sig do
|
|
19
|
+
params(
|
|
20
|
+
card_id: String,
|
|
21
|
+
request_options: Increase::RequestOptions::OrHash
|
|
22
|
+
).returns(T.attached_class)
|
|
23
|
+
end
|
|
24
|
+
def self.new(
|
|
25
|
+
# The identifier of the Card to renew.
|
|
26
|
+
card_id:,
|
|
27
|
+
request_options: {}
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
sig do
|
|
32
|
+
override.returns(
|
|
33
|
+
{ card_id: String, request_options: Increase::RequestOptions }
|
|
34
|
+
)
|
|
35
|
+
end
|
|
36
|
+
def to_hash
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -1290,7 +1290,8 @@ module Increase
|
|
|
1290
1290
|
attr_writer :email
|
|
1291
1291
|
|
|
1292
1292
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1293
|
-
# over SMS.
|
|
1293
|
+
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
1294
|
+
# `(415) 555-0123`.
|
|
1294
1295
|
sig { returns(T.nilable(String)) }
|
|
1295
1296
|
attr_reader :phone
|
|
1296
1297
|
|
|
@@ -1314,7 +1315,8 @@ module Increase
|
|
|
1314
1315
|
# over email.
|
|
1315
1316
|
email: nil,
|
|
1316
1317
|
# A phone number that can be used to verify the cardholder via one-time passcode
|
|
1317
|
-
# over SMS.
|
|
1318
|
+
# over SMS. Accepts formats like `+14155550123`, `4155550123`, `415-555-0123`, or
|
|
1319
|
+
# `(415) 555-0123`.
|
|
1318
1320
|
phone: nil
|
|
1319
1321
|
)
|
|
1320
1322
|
end
|