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.
@@ -889,6 +889,24 @@ module Increase
889
889
  end
890
890
  attr_accessor :actioner
891
891
 
892
+ # Additional amounts associated with the card authorization, such as ATM
893
+ # surcharges fees. These are usually a subset of the `amount` field and are used
894
+ # to provide more detailed information about the transaction.
895
+ sig do
896
+ returns(
897
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts
898
+ )
899
+ end
900
+ attr_reader :additional_amounts
901
+
902
+ sig do
903
+ params(
904
+ additional_amounts:
905
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::OrHash
906
+ ).void
907
+ end
908
+ attr_writer :additional_amounts
909
+
892
910
  # The pending amount in the minor unit of the transaction's currency. For dollars,
893
911
  # for example, this is cents.
894
912
  sig { returns(Integer) }
@@ -1065,6 +1083,8 @@ module Increase
1065
1083
  id: String,
1066
1084
  actioner:
1067
1085
  Increase::PendingTransaction::Source::CardAuthorization::Actioner::OrSymbol,
1086
+ additional_amounts:
1087
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::OrHash,
1068
1088
  amount: Integer,
1069
1089
  card_payment_id: String,
1070
1090
  currency:
@@ -1105,6 +1125,10 @@ module Increase
1105
1125
  # Whether this authorization was approved by Increase, the card network through
1106
1126
  # stand-in processing, or the user through a real-time decision.
1107
1127
  actioner:,
1128
+ # Additional amounts associated with the card authorization, such as ATM
1129
+ # surcharges fees. These are usually a subset of the `amount` field and are used
1130
+ # to provide more detailed information about the transaction.
1131
+ additional_amounts:,
1108
1132
  # The pending amount in the minor unit of the transaction's currency. For dollars,
1109
1133
  # for example, this is cents.
1110
1134
  amount:,
@@ -1179,6 +1203,8 @@ module Increase
1179
1203
  id: String,
1180
1204
  actioner:
1181
1205
  Increase::PendingTransaction::Source::CardAuthorization::Actioner::TaggedSymbol,
1206
+ additional_amounts:
1207
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts,
1182
1208
  amount: Integer,
1183
1209
  card_payment_id: String,
1184
1210
  currency:
@@ -1263,6 +1289,648 @@ module Increase
1263
1289
  end
1264
1290
  end
1265
1291
 
1292
+ class AdditionalAmounts < Increase::Internal::Type::BaseModel
1293
+ OrHash =
1294
+ T.type_alias do
1295
+ T.any(
1296
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts,
1297
+ Increase::Internal::AnyHash
1298
+ )
1299
+ end
1300
+
1301
+ # The part of this transaction amount that was for clinic-related services.
1302
+ sig do
1303
+ returns(
1304
+ T.nilable(
1305
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic
1306
+ )
1307
+ )
1308
+ end
1309
+ attr_reader :clinic
1310
+
1311
+ sig do
1312
+ params(
1313
+ clinic:
1314
+ T.nilable(
1315
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic::OrHash
1316
+ )
1317
+ ).void
1318
+ end
1319
+ attr_writer :clinic
1320
+
1321
+ # The part of this transaction amount that was for dental-related services.
1322
+ sig do
1323
+ returns(
1324
+ T.nilable(
1325
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental
1326
+ )
1327
+ )
1328
+ end
1329
+ attr_reader :dental
1330
+
1331
+ sig do
1332
+ params(
1333
+ dental:
1334
+ T.nilable(
1335
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental::OrHash
1336
+ )
1337
+ ).void
1338
+ end
1339
+ attr_writer :dental
1340
+
1341
+ # The part of this transaction amount that was for healthcare prescriptions.
1342
+ sig do
1343
+ returns(
1344
+ T.nilable(
1345
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription
1346
+ )
1347
+ )
1348
+ end
1349
+ attr_reader :prescription
1350
+
1351
+ sig do
1352
+ params(
1353
+ prescription:
1354
+ T.nilable(
1355
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription::OrHash
1356
+ )
1357
+ ).void
1358
+ end
1359
+ attr_writer :prescription
1360
+
1361
+ # The surcharge amount charged for this transaction by the merchant.
1362
+ sig do
1363
+ returns(
1364
+ T.nilable(
1365
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge
1366
+ )
1367
+ )
1368
+ end
1369
+ attr_reader :surcharge
1370
+
1371
+ sig do
1372
+ params(
1373
+ surcharge:
1374
+ T.nilable(
1375
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge::OrHash
1376
+ )
1377
+ ).void
1378
+ end
1379
+ attr_writer :surcharge
1380
+
1381
+ # The total amount of a series of incremental authorizations, optionally provided.
1382
+ sig do
1383
+ returns(
1384
+ T.nilable(
1385
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative
1386
+ )
1387
+ )
1388
+ end
1389
+ attr_reader :total_cumulative
1390
+
1391
+ sig do
1392
+ params(
1393
+ total_cumulative:
1394
+ T.nilable(
1395
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative::OrHash
1396
+ )
1397
+ ).void
1398
+ end
1399
+ attr_writer :total_cumulative
1400
+
1401
+ # The total amount of healthcare-related additional amounts.
1402
+ sig do
1403
+ returns(
1404
+ T.nilable(
1405
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare
1406
+ )
1407
+ )
1408
+ end
1409
+ attr_reader :total_healthcare
1410
+
1411
+ sig do
1412
+ params(
1413
+ total_healthcare:
1414
+ T.nilable(
1415
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare::OrHash
1416
+ )
1417
+ ).void
1418
+ end
1419
+ attr_writer :total_healthcare
1420
+
1421
+ # The part of this transaction amount that was for transit-related services.
1422
+ sig do
1423
+ returns(
1424
+ T.nilable(
1425
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit
1426
+ )
1427
+ )
1428
+ end
1429
+ attr_reader :transit
1430
+
1431
+ sig do
1432
+ params(
1433
+ transit:
1434
+ T.nilable(
1435
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit::OrHash
1436
+ )
1437
+ ).void
1438
+ end
1439
+ attr_writer :transit
1440
+
1441
+ # An unknown additional amount.
1442
+ sig do
1443
+ returns(
1444
+ T.nilable(
1445
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown
1446
+ )
1447
+ )
1448
+ end
1449
+ attr_reader :unknown
1450
+
1451
+ sig do
1452
+ params(
1453
+ unknown:
1454
+ T.nilable(
1455
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown::OrHash
1456
+ )
1457
+ ).void
1458
+ end
1459
+ attr_writer :unknown
1460
+
1461
+ # The part of this transaction amount that was for vision-related services.
1462
+ sig do
1463
+ returns(
1464
+ T.nilable(
1465
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision
1466
+ )
1467
+ )
1468
+ end
1469
+ attr_reader :vision
1470
+
1471
+ sig do
1472
+ params(
1473
+ vision:
1474
+ T.nilable(
1475
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision::OrHash
1476
+ )
1477
+ ).void
1478
+ end
1479
+ attr_writer :vision
1480
+
1481
+ # Additional amounts associated with the card authorization, such as ATM
1482
+ # surcharges fees. These are usually a subset of the `amount` field and are used
1483
+ # to provide more detailed information about the transaction.
1484
+ sig do
1485
+ params(
1486
+ clinic:
1487
+ T.nilable(
1488
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic::OrHash
1489
+ ),
1490
+ dental:
1491
+ T.nilable(
1492
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental::OrHash
1493
+ ),
1494
+ prescription:
1495
+ T.nilable(
1496
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription::OrHash
1497
+ ),
1498
+ surcharge:
1499
+ T.nilable(
1500
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge::OrHash
1501
+ ),
1502
+ total_cumulative:
1503
+ T.nilable(
1504
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative::OrHash
1505
+ ),
1506
+ total_healthcare:
1507
+ T.nilable(
1508
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare::OrHash
1509
+ ),
1510
+ transit:
1511
+ T.nilable(
1512
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit::OrHash
1513
+ ),
1514
+ unknown:
1515
+ T.nilable(
1516
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown::OrHash
1517
+ ),
1518
+ vision:
1519
+ T.nilable(
1520
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision::OrHash
1521
+ )
1522
+ ).returns(T.attached_class)
1523
+ end
1524
+ def self.new(
1525
+ # The part of this transaction amount that was for clinic-related services.
1526
+ clinic:,
1527
+ # The part of this transaction amount that was for dental-related services.
1528
+ dental:,
1529
+ # The part of this transaction amount that was for healthcare prescriptions.
1530
+ prescription:,
1531
+ # The surcharge amount charged for this transaction by the merchant.
1532
+ surcharge:,
1533
+ # The total amount of a series of incremental authorizations, optionally provided.
1534
+ total_cumulative:,
1535
+ # The total amount of healthcare-related additional amounts.
1536
+ total_healthcare:,
1537
+ # The part of this transaction amount that was for transit-related services.
1538
+ transit:,
1539
+ # An unknown additional amount.
1540
+ unknown:,
1541
+ # The part of this transaction amount that was for vision-related services.
1542
+ vision:
1543
+ )
1544
+ end
1545
+
1546
+ sig do
1547
+ override.returns(
1548
+ {
1549
+ clinic:
1550
+ T.nilable(
1551
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic
1552
+ ),
1553
+ dental:
1554
+ T.nilable(
1555
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental
1556
+ ),
1557
+ prescription:
1558
+ T.nilable(
1559
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription
1560
+ ),
1561
+ surcharge:
1562
+ T.nilable(
1563
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge
1564
+ ),
1565
+ total_cumulative:
1566
+ T.nilable(
1567
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative
1568
+ ),
1569
+ total_healthcare:
1570
+ T.nilable(
1571
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare
1572
+ ),
1573
+ transit:
1574
+ T.nilable(
1575
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit
1576
+ ),
1577
+ unknown:
1578
+ T.nilable(
1579
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown
1580
+ ),
1581
+ vision:
1582
+ T.nilable(
1583
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision
1584
+ )
1585
+ }
1586
+ )
1587
+ end
1588
+ def to_hash
1589
+ end
1590
+
1591
+ class Clinic < Increase::Internal::Type::BaseModel
1592
+ OrHash =
1593
+ T.type_alias do
1594
+ T.any(
1595
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic,
1596
+ Increase::Internal::AnyHash
1597
+ )
1598
+ end
1599
+
1600
+ # The amount in minor units of the `currency` field.
1601
+ sig { returns(Integer) }
1602
+ attr_accessor :amount
1603
+
1604
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1605
+ # amount's currency.
1606
+ sig { returns(String) }
1607
+ attr_accessor :currency
1608
+
1609
+ # The part of this transaction amount that was for clinic-related services.
1610
+ sig do
1611
+ params(amount: Integer, currency: String).returns(
1612
+ T.attached_class
1613
+ )
1614
+ end
1615
+ def self.new(
1616
+ # The amount in minor units of the `currency` field.
1617
+ amount:,
1618
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1619
+ # amount's currency.
1620
+ currency:
1621
+ )
1622
+ end
1623
+
1624
+ sig { override.returns({ amount: Integer, currency: String }) }
1625
+ def to_hash
1626
+ end
1627
+ end
1628
+
1629
+ class Dental < Increase::Internal::Type::BaseModel
1630
+ OrHash =
1631
+ T.type_alias do
1632
+ T.any(
1633
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental,
1634
+ Increase::Internal::AnyHash
1635
+ )
1636
+ end
1637
+
1638
+ # The amount in minor units of the `currency` field.
1639
+ sig { returns(Integer) }
1640
+ attr_accessor :amount
1641
+
1642
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1643
+ # amount's currency.
1644
+ sig { returns(String) }
1645
+ attr_accessor :currency
1646
+
1647
+ # The part of this transaction amount that was for dental-related services.
1648
+ sig do
1649
+ params(amount: Integer, currency: String).returns(
1650
+ T.attached_class
1651
+ )
1652
+ end
1653
+ def self.new(
1654
+ # The amount in minor units of the `currency` field.
1655
+ amount:,
1656
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1657
+ # amount's currency.
1658
+ currency:
1659
+ )
1660
+ end
1661
+
1662
+ sig { override.returns({ amount: Integer, currency: String }) }
1663
+ def to_hash
1664
+ end
1665
+ end
1666
+
1667
+ class Prescription < Increase::Internal::Type::BaseModel
1668
+ OrHash =
1669
+ T.type_alias do
1670
+ T.any(
1671
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription,
1672
+ Increase::Internal::AnyHash
1673
+ )
1674
+ end
1675
+
1676
+ # The amount in minor units of the `currency` field.
1677
+ sig { returns(Integer) }
1678
+ attr_accessor :amount
1679
+
1680
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1681
+ # amount's currency.
1682
+ sig { returns(String) }
1683
+ attr_accessor :currency
1684
+
1685
+ # The part of this transaction amount that was for healthcare prescriptions.
1686
+ sig do
1687
+ params(amount: Integer, currency: String).returns(
1688
+ T.attached_class
1689
+ )
1690
+ end
1691
+ def self.new(
1692
+ # The amount in minor units of the `currency` field.
1693
+ amount:,
1694
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1695
+ # amount's currency.
1696
+ currency:
1697
+ )
1698
+ end
1699
+
1700
+ sig { override.returns({ amount: Integer, currency: String }) }
1701
+ def to_hash
1702
+ end
1703
+ end
1704
+
1705
+ class Surcharge < Increase::Internal::Type::BaseModel
1706
+ OrHash =
1707
+ T.type_alias do
1708
+ T.any(
1709
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge,
1710
+ Increase::Internal::AnyHash
1711
+ )
1712
+ end
1713
+
1714
+ # The amount in minor units of the `currency` field.
1715
+ sig { returns(Integer) }
1716
+ attr_accessor :amount
1717
+
1718
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1719
+ # amount's currency.
1720
+ sig { returns(String) }
1721
+ attr_accessor :currency
1722
+
1723
+ # The surcharge amount charged for this transaction by the merchant.
1724
+ sig do
1725
+ params(amount: Integer, currency: String).returns(
1726
+ T.attached_class
1727
+ )
1728
+ end
1729
+ def self.new(
1730
+ # The amount in minor units of the `currency` field.
1731
+ amount:,
1732
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1733
+ # amount's currency.
1734
+ currency:
1735
+ )
1736
+ end
1737
+
1738
+ sig { override.returns({ amount: Integer, currency: String }) }
1739
+ def to_hash
1740
+ end
1741
+ end
1742
+
1743
+ class TotalCumulative < Increase::Internal::Type::BaseModel
1744
+ OrHash =
1745
+ T.type_alias do
1746
+ T.any(
1747
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative,
1748
+ Increase::Internal::AnyHash
1749
+ )
1750
+ end
1751
+
1752
+ # The amount in minor units of the `currency` field.
1753
+ sig { returns(Integer) }
1754
+ attr_accessor :amount
1755
+
1756
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1757
+ # amount's currency.
1758
+ sig { returns(String) }
1759
+ attr_accessor :currency
1760
+
1761
+ # The total amount of a series of incremental authorizations, optionally provided.
1762
+ sig do
1763
+ params(amount: Integer, currency: String).returns(
1764
+ T.attached_class
1765
+ )
1766
+ end
1767
+ def self.new(
1768
+ # The amount in minor units of the `currency` field.
1769
+ amount:,
1770
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1771
+ # amount's currency.
1772
+ currency:
1773
+ )
1774
+ end
1775
+
1776
+ sig { override.returns({ amount: Integer, currency: String }) }
1777
+ def to_hash
1778
+ end
1779
+ end
1780
+
1781
+ class TotalHealthcare < Increase::Internal::Type::BaseModel
1782
+ OrHash =
1783
+ T.type_alias do
1784
+ T.any(
1785
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalHealthcare,
1786
+ Increase::Internal::AnyHash
1787
+ )
1788
+ end
1789
+
1790
+ # The amount in minor units of the `currency` field.
1791
+ sig { returns(Integer) }
1792
+ attr_accessor :amount
1793
+
1794
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1795
+ # amount's currency.
1796
+ sig { returns(String) }
1797
+ attr_accessor :currency
1798
+
1799
+ # The total amount of healthcare-related additional amounts.
1800
+ sig do
1801
+ params(amount: Integer, currency: String).returns(
1802
+ T.attached_class
1803
+ )
1804
+ end
1805
+ def self.new(
1806
+ # The amount in minor units of the `currency` field.
1807
+ amount:,
1808
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1809
+ # amount's currency.
1810
+ currency:
1811
+ )
1812
+ end
1813
+
1814
+ sig { override.returns({ amount: Integer, currency: String }) }
1815
+ def to_hash
1816
+ end
1817
+ end
1818
+
1819
+ class Transit < Increase::Internal::Type::BaseModel
1820
+ OrHash =
1821
+ T.type_alias do
1822
+ T.any(
1823
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Transit,
1824
+ Increase::Internal::AnyHash
1825
+ )
1826
+ end
1827
+
1828
+ # The amount in minor units of the `currency` field.
1829
+ sig { returns(Integer) }
1830
+ attr_accessor :amount
1831
+
1832
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1833
+ # amount's currency.
1834
+ sig { returns(String) }
1835
+ attr_accessor :currency
1836
+
1837
+ # The part of this transaction amount that was for transit-related services.
1838
+ sig do
1839
+ params(amount: Integer, currency: String).returns(
1840
+ T.attached_class
1841
+ )
1842
+ end
1843
+ def self.new(
1844
+ # The amount in minor units of the `currency` field.
1845
+ amount:,
1846
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1847
+ # amount's currency.
1848
+ currency:
1849
+ )
1850
+ end
1851
+
1852
+ sig { override.returns({ amount: Integer, currency: String }) }
1853
+ def to_hash
1854
+ end
1855
+ end
1856
+
1857
+ class Unknown < Increase::Internal::Type::BaseModel
1858
+ OrHash =
1859
+ T.type_alias do
1860
+ T.any(
1861
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Unknown,
1862
+ Increase::Internal::AnyHash
1863
+ )
1864
+ end
1865
+
1866
+ # The amount in minor units of the `currency` field.
1867
+ sig { returns(Integer) }
1868
+ attr_accessor :amount
1869
+
1870
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1871
+ # amount's currency.
1872
+ sig { returns(String) }
1873
+ attr_accessor :currency
1874
+
1875
+ # An unknown additional amount.
1876
+ sig do
1877
+ params(amount: Integer, currency: String).returns(
1878
+ T.attached_class
1879
+ )
1880
+ end
1881
+ def self.new(
1882
+ # The amount in minor units of the `currency` field.
1883
+ amount:,
1884
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1885
+ # amount's currency.
1886
+ currency:
1887
+ )
1888
+ end
1889
+
1890
+ sig { override.returns({ amount: Integer, currency: String }) }
1891
+ def to_hash
1892
+ end
1893
+ end
1894
+
1895
+ class Vision < Increase::Internal::Type::BaseModel
1896
+ OrHash =
1897
+ T.type_alias do
1898
+ T.any(
1899
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Vision,
1900
+ Increase::Internal::AnyHash
1901
+ )
1902
+ end
1903
+
1904
+ # The amount in minor units of the `currency` field.
1905
+ sig { returns(Integer) }
1906
+ attr_accessor :amount
1907
+
1908
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1909
+ # amount's currency.
1910
+ sig { returns(String) }
1911
+ attr_accessor :currency
1912
+
1913
+ # The part of this transaction amount that was for vision-related services.
1914
+ sig do
1915
+ params(amount: Integer, currency: String).returns(
1916
+ T.attached_class
1917
+ )
1918
+ end
1919
+ def self.new(
1920
+ # The amount in minor units of the `currency` field.
1921
+ amount:,
1922
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1923
+ # amount's currency.
1924
+ currency:
1925
+ )
1926
+ end
1927
+
1928
+ sig { override.returns({ amount: Integer, currency: String }) }
1929
+ def to_hash
1930
+ end
1931
+ end
1932
+ end
1933
+
1266
1934
  # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1267
1935
  # transaction's currency.
1268
1936
  module Currency