increase 1.19.0 → 1.21.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.
@@ -774,6 +774,24 @@ module Increase
774
774
  end
775
775
  attr_accessor :actioner
776
776
 
777
+ # Additional amounts associated with the card authorization, such as ATM
778
+ # surcharges fees. These are usually a subset of the `amount` field and are used
779
+ # to provide more detailed information about the transaction.
780
+ sig do
781
+ returns(
782
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts
783
+ )
784
+ end
785
+ attr_reader :additional_amounts
786
+
787
+ sig do
788
+ params(
789
+ additional_amounts:
790
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::OrHash
791
+ ).void
792
+ end
793
+ attr_writer :additional_amounts
794
+
777
795
  # The declined amount in the minor unit of the destination account currency. For
778
796
  # dollars, for example, this is cents.
779
797
  sig { returns(Integer) }
@@ -810,6 +828,11 @@ module Increase
810
828
  end
811
829
  attr_accessor :direction
812
830
 
831
+ # The identifier of the card authorization this request attempted to incrementally
832
+ # authorize.
833
+ sig { returns(T.nilable(String)) }
834
+ attr_accessor :incremented_card_authorization_id
835
+
813
836
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
814
837
  # is transacting with.
815
838
  sig { returns(String) }
@@ -953,6 +976,8 @@ module Increase
953
976
  id: String,
954
977
  actioner:
955
978
  Increase::DeclinedTransaction::Source::CardDecline::Actioner::OrSymbol,
979
+ additional_amounts:
980
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::OrHash,
956
981
  amount: Integer,
957
982
  card_payment_id: String,
958
983
  currency:
@@ -961,6 +986,7 @@ module Increase
961
986
  digital_wallet_token_id: T.nilable(String),
962
987
  direction:
963
988
  Increase::DeclinedTransaction::Source::CardDecline::Direction::OrSymbol,
989
+ incremented_card_authorization_id: T.nilable(String),
964
990
  merchant_acceptor_id: String,
965
991
  merchant_category_code: String,
966
992
  merchant_city: T.nilable(String),
@@ -996,6 +1022,10 @@ module Increase
996
1022
  # Whether this authorization was approved by Increase, the card network through
997
1023
  # stand-in processing, or the user through a real-time decision.
998
1024
  actioner:,
1025
+ # Additional amounts associated with the card authorization, such as ATM
1026
+ # surcharges fees. These are usually a subset of the `amount` field and are used
1027
+ # to provide more detailed information about the transaction.
1028
+ additional_amounts:,
999
1029
  # The declined amount in the minor unit of the destination account currency. For
1000
1030
  # dollars, for example, this is cents.
1001
1031
  amount:,
@@ -1012,6 +1042,9 @@ module Increase
1012
1042
  # The direction describes the direction the funds will move, either from the
1013
1043
  # cardholder to the merchant or from the merchant to the cardholder.
1014
1044
  direction:,
1045
+ # The identifier of the card authorization this request attempted to incrementally
1046
+ # authorize.
1047
+ incremented_card_authorization_id:,
1015
1048
  # The merchant identifier (commonly abbreviated as MID) of the merchant the card
1016
1049
  # is transacting with.
1017
1050
  merchant_acceptor_id:,
@@ -1069,6 +1102,8 @@ module Increase
1069
1102
  id: String,
1070
1103
  actioner:
1071
1104
  Increase::DeclinedTransaction::Source::CardDecline::Actioner::TaggedSymbol,
1105
+ additional_amounts:
1106
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts,
1072
1107
  amount: Integer,
1073
1108
  card_payment_id: String,
1074
1109
  currency:
@@ -1077,6 +1112,7 @@ module Increase
1077
1112
  digital_wallet_token_id: T.nilable(String),
1078
1113
  direction:
1079
1114
  Increase::DeclinedTransaction::Source::CardDecline::Direction::TaggedSymbol,
1115
+ incremented_card_authorization_id: T.nilable(String),
1080
1116
  merchant_acceptor_id: String,
1081
1117
  merchant_category_code: String,
1082
1118
  merchant_city: T.nilable(String),
@@ -1156,6 +1192,648 @@ module Increase
1156
1192
  end
1157
1193
  end
1158
1194
 
1195
+ class AdditionalAmounts < Increase::Internal::Type::BaseModel
1196
+ OrHash =
1197
+ T.type_alias do
1198
+ T.any(
1199
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts,
1200
+ Increase::Internal::AnyHash
1201
+ )
1202
+ end
1203
+
1204
+ # The part of this transaction amount that was for clinic-related services.
1205
+ sig do
1206
+ returns(
1207
+ T.nilable(
1208
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic
1209
+ )
1210
+ )
1211
+ end
1212
+ attr_reader :clinic
1213
+
1214
+ sig do
1215
+ params(
1216
+ clinic:
1217
+ T.nilable(
1218
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic::OrHash
1219
+ )
1220
+ ).void
1221
+ end
1222
+ attr_writer :clinic
1223
+
1224
+ # The part of this transaction amount that was for dental-related services.
1225
+ sig do
1226
+ returns(
1227
+ T.nilable(
1228
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental
1229
+ )
1230
+ )
1231
+ end
1232
+ attr_reader :dental
1233
+
1234
+ sig do
1235
+ params(
1236
+ dental:
1237
+ T.nilable(
1238
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental::OrHash
1239
+ )
1240
+ ).void
1241
+ end
1242
+ attr_writer :dental
1243
+
1244
+ # The part of this transaction amount that was for healthcare prescriptions.
1245
+ sig do
1246
+ returns(
1247
+ T.nilable(
1248
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription
1249
+ )
1250
+ )
1251
+ end
1252
+ attr_reader :prescription
1253
+
1254
+ sig do
1255
+ params(
1256
+ prescription:
1257
+ T.nilable(
1258
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription::OrHash
1259
+ )
1260
+ ).void
1261
+ end
1262
+ attr_writer :prescription
1263
+
1264
+ # The surcharge amount charged for this transaction by the merchant.
1265
+ sig do
1266
+ returns(
1267
+ T.nilable(
1268
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge
1269
+ )
1270
+ )
1271
+ end
1272
+ attr_reader :surcharge
1273
+
1274
+ sig do
1275
+ params(
1276
+ surcharge:
1277
+ T.nilable(
1278
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge::OrHash
1279
+ )
1280
+ ).void
1281
+ end
1282
+ attr_writer :surcharge
1283
+
1284
+ # The total amount of a series of incremental authorizations, optionally provided.
1285
+ sig do
1286
+ returns(
1287
+ T.nilable(
1288
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative
1289
+ )
1290
+ )
1291
+ end
1292
+ attr_reader :total_cumulative
1293
+
1294
+ sig do
1295
+ params(
1296
+ total_cumulative:
1297
+ T.nilable(
1298
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative::OrHash
1299
+ )
1300
+ ).void
1301
+ end
1302
+ attr_writer :total_cumulative
1303
+
1304
+ # The total amount of healthcare-related additional amounts.
1305
+ sig do
1306
+ returns(
1307
+ T.nilable(
1308
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare
1309
+ )
1310
+ )
1311
+ end
1312
+ attr_reader :total_healthcare
1313
+
1314
+ sig do
1315
+ params(
1316
+ total_healthcare:
1317
+ T.nilable(
1318
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare::OrHash
1319
+ )
1320
+ ).void
1321
+ end
1322
+ attr_writer :total_healthcare
1323
+
1324
+ # The part of this transaction amount that was for transit-related services.
1325
+ sig do
1326
+ returns(
1327
+ T.nilable(
1328
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit
1329
+ )
1330
+ )
1331
+ end
1332
+ attr_reader :transit
1333
+
1334
+ sig do
1335
+ params(
1336
+ transit:
1337
+ T.nilable(
1338
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit::OrHash
1339
+ )
1340
+ ).void
1341
+ end
1342
+ attr_writer :transit
1343
+
1344
+ # An unknown additional amount.
1345
+ sig do
1346
+ returns(
1347
+ T.nilable(
1348
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown
1349
+ )
1350
+ )
1351
+ end
1352
+ attr_reader :unknown
1353
+
1354
+ sig do
1355
+ params(
1356
+ unknown:
1357
+ T.nilable(
1358
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown::OrHash
1359
+ )
1360
+ ).void
1361
+ end
1362
+ attr_writer :unknown
1363
+
1364
+ # The part of this transaction amount that was for vision-related services.
1365
+ sig do
1366
+ returns(
1367
+ T.nilable(
1368
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision
1369
+ )
1370
+ )
1371
+ end
1372
+ attr_reader :vision
1373
+
1374
+ sig do
1375
+ params(
1376
+ vision:
1377
+ T.nilable(
1378
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision::OrHash
1379
+ )
1380
+ ).void
1381
+ end
1382
+ attr_writer :vision
1383
+
1384
+ # Additional amounts associated with the card authorization, such as ATM
1385
+ # surcharges fees. These are usually a subset of the `amount` field and are used
1386
+ # to provide more detailed information about the transaction.
1387
+ sig do
1388
+ params(
1389
+ clinic:
1390
+ T.nilable(
1391
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic::OrHash
1392
+ ),
1393
+ dental:
1394
+ T.nilable(
1395
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental::OrHash
1396
+ ),
1397
+ prescription:
1398
+ T.nilable(
1399
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription::OrHash
1400
+ ),
1401
+ surcharge:
1402
+ T.nilable(
1403
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge::OrHash
1404
+ ),
1405
+ total_cumulative:
1406
+ T.nilable(
1407
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative::OrHash
1408
+ ),
1409
+ total_healthcare:
1410
+ T.nilable(
1411
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare::OrHash
1412
+ ),
1413
+ transit:
1414
+ T.nilable(
1415
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit::OrHash
1416
+ ),
1417
+ unknown:
1418
+ T.nilable(
1419
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown::OrHash
1420
+ ),
1421
+ vision:
1422
+ T.nilable(
1423
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision::OrHash
1424
+ )
1425
+ ).returns(T.attached_class)
1426
+ end
1427
+ def self.new(
1428
+ # The part of this transaction amount that was for clinic-related services.
1429
+ clinic:,
1430
+ # The part of this transaction amount that was for dental-related services.
1431
+ dental:,
1432
+ # The part of this transaction amount that was for healthcare prescriptions.
1433
+ prescription:,
1434
+ # The surcharge amount charged for this transaction by the merchant.
1435
+ surcharge:,
1436
+ # The total amount of a series of incremental authorizations, optionally provided.
1437
+ total_cumulative:,
1438
+ # The total amount of healthcare-related additional amounts.
1439
+ total_healthcare:,
1440
+ # The part of this transaction amount that was for transit-related services.
1441
+ transit:,
1442
+ # An unknown additional amount.
1443
+ unknown:,
1444
+ # The part of this transaction amount that was for vision-related services.
1445
+ vision:
1446
+ )
1447
+ end
1448
+
1449
+ sig do
1450
+ override.returns(
1451
+ {
1452
+ clinic:
1453
+ T.nilable(
1454
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic
1455
+ ),
1456
+ dental:
1457
+ T.nilable(
1458
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental
1459
+ ),
1460
+ prescription:
1461
+ T.nilable(
1462
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription
1463
+ ),
1464
+ surcharge:
1465
+ T.nilable(
1466
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge
1467
+ ),
1468
+ total_cumulative:
1469
+ T.nilable(
1470
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative
1471
+ ),
1472
+ total_healthcare:
1473
+ T.nilable(
1474
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare
1475
+ ),
1476
+ transit:
1477
+ T.nilable(
1478
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit
1479
+ ),
1480
+ unknown:
1481
+ T.nilable(
1482
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown
1483
+ ),
1484
+ vision:
1485
+ T.nilable(
1486
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision
1487
+ )
1488
+ }
1489
+ )
1490
+ end
1491
+ def to_hash
1492
+ end
1493
+
1494
+ class Clinic < Increase::Internal::Type::BaseModel
1495
+ OrHash =
1496
+ T.type_alias do
1497
+ T.any(
1498
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic,
1499
+ Increase::Internal::AnyHash
1500
+ )
1501
+ end
1502
+
1503
+ # The amount in minor units of the `currency` field.
1504
+ sig { returns(Integer) }
1505
+ attr_accessor :amount
1506
+
1507
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1508
+ # amount's currency.
1509
+ sig { returns(String) }
1510
+ attr_accessor :currency
1511
+
1512
+ # The part of this transaction amount that was for clinic-related services.
1513
+ sig do
1514
+ params(amount: Integer, currency: String).returns(
1515
+ T.attached_class
1516
+ )
1517
+ end
1518
+ def self.new(
1519
+ # The amount in minor units of the `currency` field.
1520
+ amount:,
1521
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1522
+ # amount's currency.
1523
+ currency:
1524
+ )
1525
+ end
1526
+
1527
+ sig { override.returns({ amount: Integer, currency: String }) }
1528
+ def to_hash
1529
+ end
1530
+ end
1531
+
1532
+ class Dental < Increase::Internal::Type::BaseModel
1533
+ OrHash =
1534
+ T.type_alias do
1535
+ T.any(
1536
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental,
1537
+ Increase::Internal::AnyHash
1538
+ )
1539
+ end
1540
+
1541
+ # The amount in minor units of the `currency` field.
1542
+ sig { returns(Integer) }
1543
+ attr_accessor :amount
1544
+
1545
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1546
+ # amount's currency.
1547
+ sig { returns(String) }
1548
+ attr_accessor :currency
1549
+
1550
+ # The part of this transaction amount that was for dental-related services.
1551
+ sig do
1552
+ params(amount: Integer, currency: String).returns(
1553
+ T.attached_class
1554
+ )
1555
+ end
1556
+ def self.new(
1557
+ # The amount in minor units of the `currency` field.
1558
+ amount:,
1559
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1560
+ # amount's currency.
1561
+ currency:
1562
+ )
1563
+ end
1564
+
1565
+ sig { override.returns({ amount: Integer, currency: String }) }
1566
+ def to_hash
1567
+ end
1568
+ end
1569
+
1570
+ class Prescription < Increase::Internal::Type::BaseModel
1571
+ OrHash =
1572
+ T.type_alias do
1573
+ T.any(
1574
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription,
1575
+ Increase::Internal::AnyHash
1576
+ )
1577
+ end
1578
+
1579
+ # The amount in minor units of the `currency` field.
1580
+ sig { returns(Integer) }
1581
+ attr_accessor :amount
1582
+
1583
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1584
+ # amount's currency.
1585
+ sig { returns(String) }
1586
+ attr_accessor :currency
1587
+
1588
+ # The part of this transaction amount that was for healthcare prescriptions.
1589
+ sig do
1590
+ params(amount: Integer, currency: String).returns(
1591
+ T.attached_class
1592
+ )
1593
+ end
1594
+ def self.new(
1595
+ # The amount in minor units of the `currency` field.
1596
+ amount:,
1597
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1598
+ # amount's currency.
1599
+ currency:
1600
+ )
1601
+ end
1602
+
1603
+ sig { override.returns({ amount: Integer, currency: String }) }
1604
+ def to_hash
1605
+ end
1606
+ end
1607
+
1608
+ class Surcharge < Increase::Internal::Type::BaseModel
1609
+ OrHash =
1610
+ T.type_alias do
1611
+ T.any(
1612
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge,
1613
+ Increase::Internal::AnyHash
1614
+ )
1615
+ end
1616
+
1617
+ # The amount in minor units of the `currency` field.
1618
+ sig { returns(Integer) }
1619
+ attr_accessor :amount
1620
+
1621
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1622
+ # amount's currency.
1623
+ sig { returns(String) }
1624
+ attr_accessor :currency
1625
+
1626
+ # The surcharge amount charged for this transaction by the merchant.
1627
+ sig do
1628
+ params(amount: Integer, currency: String).returns(
1629
+ T.attached_class
1630
+ )
1631
+ end
1632
+ def self.new(
1633
+ # The amount in minor units of the `currency` field.
1634
+ amount:,
1635
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1636
+ # amount's currency.
1637
+ currency:
1638
+ )
1639
+ end
1640
+
1641
+ sig { override.returns({ amount: Integer, currency: String }) }
1642
+ def to_hash
1643
+ end
1644
+ end
1645
+
1646
+ class TotalCumulative < Increase::Internal::Type::BaseModel
1647
+ OrHash =
1648
+ T.type_alias do
1649
+ T.any(
1650
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative,
1651
+ Increase::Internal::AnyHash
1652
+ )
1653
+ end
1654
+
1655
+ # The amount in minor units of the `currency` field.
1656
+ sig { returns(Integer) }
1657
+ attr_accessor :amount
1658
+
1659
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1660
+ # amount's currency.
1661
+ sig { returns(String) }
1662
+ attr_accessor :currency
1663
+
1664
+ # The total amount of a series of incremental authorizations, optionally provided.
1665
+ sig do
1666
+ params(amount: Integer, currency: String).returns(
1667
+ T.attached_class
1668
+ )
1669
+ end
1670
+ def self.new(
1671
+ # The amount in minor units of the `currency` field.
1672
+ amount:,
1673
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1674
+ # amount's currency.
1675
+ currency:
1676
+ )
1677
+ end
1678
+
1679
+ sig { override.returns({ amount: Integer, currency: String }) }
1680
+ def to_hash
1681
+ end
1682
+ end
1683
+
1684
+ class TotalHealthcare < Increase::Internal::Type::BaseModel
1685
+ OrHash =
1686
+ T.type_alias do
1687
+ T.any(
1688
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalHealthcare,
1689
+ Increase::Internal::AnyHash
1690
+ )
1691
+ end
1692
+
1693
+ # The amount in minor units of the `currency` field.
1694
+ sig { returns(Integer) }
1695
+ attr_accessor :amount
1696
+
1697
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1698
+ # amount's currency.
1699
+ sig { returns(String) }
1700
+ attr_accessor :currency
1701
+
1702
+ # The total amount of healthcare-related additional amounts.
1703
+ sig do
1704
+ params(amount: Integer, currency: String).returns(
1705
+ T.attached_class
1706
+ )
1707
+ end
1708
+ def self.new(
1709
+ # The amount in minor units of the `currency` field.
1710
+ amount:,
1711
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1712
+ # amount's currency.
1713
+ currency:
1714
+ )
1715
+ end
1716
+
1717
+ sig { override.returns({ amount: Integer, currency: String }) }
1718
+ def to_hash
1719
+ end
1720
+ end
1721
+
1722
+ class Transit < Increase::Internal::Type::BaseModel
1723
+ OrHash =
1724
+ T.type_alias do
1725
+ T.any(
1726
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Transit,
1727
+ Increase::Internal::AnyHash
1728
+ )
1729
+ end
1730
+
1731
+ # The amount in minor units of the `currency` field.
1732
+ sig { returns(Integer) }
1733
+ attr_accessor :amount
1734
+
1735
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1736
+ # amount's currency.
1737
+ sig { returns(String) }
1738
+ attr_accessor :currency
1739
+
1740
+ # The part of this transaction amount that was for transit-related services.
1741
+ sig do
1742
+ params(amount: Integer, currency: String).returns(
1743
+ T.attached_class
1744
+ )
1745
+ end
1746
+ def self.new(
1747
+ # The amount in minor units of the `currency` field.
1748
+ amount:,
1749
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1750
+ # amount's currency.
1751
+ currency:
1752
+ )
1753
+ end
1754
+
1755
+ sig { override.returns({ amount: Integer, currency: String }) }
1756
+ def to_hash
1757
+ end
1758
+ end
1759
+
1760
+ class Unknown < Increase::Internal::Type::BaseModel
1761
+ OrHash =
1762
+ T.type_alias do
1763
+ T.any(
1764
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Unknown,
1765
+ Increase::Internal::AnyHash
1766
+ )
1767
+ end
1768
+
1769
+ # The amount in minor units of the `currency` field.
1770
+ sig { returns(Integer) }
1771
+ attr_accessor :amount
1772
+
1773
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1774
+ # amount's currency.
1775
+ sig { returns(String) }
1776
+ attr_accessor :currency
1777
+
1778
+ # An unknown additional amount.
1779
+ sig do
1780
+ params(amount: Integer, currency: String).returns(
1781
+ T.attached_class
1782
+ )
1783
+ end
1784
+ def self.new(
1785
+ # The amount in minor units of the `currency` field.
1786
+ amount:,
1787
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1788
+ # amount's currency.
1789
+ currency:
1790
+ )
1791
+ end
1792
+
1793
+ sig { override.returns({ amount: Integer, currency: String }) }
1794
+ def to_hash
1795
+ end
1796
+ end
1797
+
1798
+ class Vision < Increase::Internal::Type::BaseModel
1799
+ OrHash =
1800
+ T.type_alias do
1801
+ T.any(
1802
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision,
1803
+ Increase::Internal::AnyHash
1804
+ )
1805
+ end
1806
+
1807
+ # The amount in minor units of the `currency` field.
1808
+ sig { returns(Integer) }
1809
+ attr_accessor :amount
1810
+
1811
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1812
+ # amount's currency.
1813
+ sig { returns(String) }
1814
+ attr_accessor :currency
1815
+
1816
+ # The part of this transaction amount that was for vision-related services.
1817
+ sig do
1818
+ params(amount: Integer, currency: String).returns(
1819
+ T.attached_class
1820
+ )
1821
+ end
1822
+ def self.new(
1823
+ # The amount in minor units of the `currency` field.
1824
+ amount:,
1825
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1826
+ # amount's currency.
1827
+ currency:
1828
+ )
1829
+ end
1830
+
1831
+ sig { override.returns({ amount: Integer, currency: String }) }
1832
+ def to_hash
1833
+ end
1834
+ end
1835
+ end
1836
+
1159
1837
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the destination
1160
1838
  # account currency.
1161
1839
  module Currency