increase 1.114.0 → 1.115.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.
@@ -1643,6 +1643,26 @@ module Increase
1643
1643
  end
1644
1644
  attr_writer :dental
1645
1645
 
1646
+ # The original pre-authorized amount.
1647
+ sig do
1648
+ returns(
1649
+ T.nilable(
1650
+ Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original
1651
+ )
1652
+ )
1653
+ end
1654
+ attr_reader :original
1655
+
1656
+ sig do
1657
+ params(
1658
+ original:
1659
+ T.nilable(
1660
+ Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original::OrHash
1661
+ )
1662
+ ).void
1663
+ end
1664
+ attr_writer :original
1665
+
1646
1666
  # The part of this transaction amount that was for healthcare prescriptions.
1647
1667
  sig do
1648
1668
  returns(
@@ -1796,6 +1816,10 @@ module Increase
1796
1816
  T.nilable(
1797
1817
  Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental::OrHash
1798
1818
  ),
1819
+ original:
1820
+ T.nilable(
1821
+ Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original::OrHash
1822
+ ),
1799
1823
  prescription:
1800
1824
  T.nilable(
1801
1825
  Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription::OrHash
@@ -1831,6 +1855,8 @@ module Increase
1831
1855
  clinic:,
1832
1856
  # The part of this transaction amount that was for dental-related services.
1833
1857
  dental:,
1858
+ # The original pre-authorized amount.
1859
+ original:,
1834
1860
  # The part of this transaction amount that was for healthcare prescriptions.
1835
1861
  prescription:,
1836
1862
  # The surcharge amount charged for this transaction by the merchant.
@@ -1859,6 +1885,10 @@ module Increase
1859
1885
  T.nilable(
1860
1886
  Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental
1861
1887
  ),
1888
+ original:
1889
+ T.nilable(
1890
+ Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original
1891
+ ),
1862
1892
  prescription:
1863
1893
  T.nilable(
1864
1894
  Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription
@@ -1977,6 +2007,48 @@ module Increase
1977
2007
  end
1978
2008
  end
1979
2009
 
2010
+ class Original < Increase::Internal::Type::BaseModel
2011
+ OrHash =
2012
+ T.type_alias do
2013
+ T.any(
2014
+ Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original,
2015
+ Increase::Internal::AnyHash
2016
+ )
2017
+ end
2018
+
2019
+ # The amount in minor units of the `currency` field. The amount is positive if it
2020
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
2021
+ # subtracted from the amount (such as a discount).
2022
+ sig { returns(Integer) }
2023
+ attr_accessor :amount
2024
+
2025
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2026
+ # amount's currency.
2027
+ sig { returns(String) }
2028
+ attr_accessor :currency
2029
+
2030
+ # The original pre-authorized amount.
2031
+ sig do
2032
+ params(amount: Integer, currency: String).returns(
2033
+ T.attached_class
2034
+ )
2035
+ end
2036
+ def self.new(
2037
+ # The amount in minor units of the `currency` field. The amount is positive if it
2038
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
2039
+ # subtracted from the amount (such as a discount).
2040
+ amount:,
2041
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
2042
+ # amount's currency.
2043
+ currency:
2044
+ )
2045
+ end
2046
+
2047
+ sig { override.returns({ amount: Integer, currency: String }) }
2048
+ def to_hash
2049
+ end
2050
+ end
2051
+
1980
2052
  class Prescription < Increase::Internal::Type::BaseModel
1981
2053
  OrHash =
1982
2054
  T.type_alias do
@@ -4066,6 +4138,26 @@ module Increase
4066
4138
  end
4067
4139
  attr_writer :dental
4068
4140
 
4141
+ # The original pre-authorized amount.
4142
+ sig do
4143
+ returns(
4144
+ T.nilable(
4145
+ Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original
4146
+ )
4147
+ )
4148
+ end
4149
+ attr_reader :original
4150
+
4151
+ sig do
4152
+ params(
4153
+ original:
4154
+ T.nilable(
4155
+ Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original::OrHash
4156
+ )
4157
+ ).void
4158
+ end
4159
+ attr_writer :original
4160
+
4069
4161
  # The part of this transaction amount that was for healthcare prescriptions.
4070
4162
  sig do
4071
4163
  returns(
@@ -4219,6 +4311,10 @@ module Increase
4219
4311
  T.nilable(
4220
4312
  Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental::OrHash
4221
4313
  ),
4314
+ original:
4315
+ T.nilable(
4316
+ Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original::OrHash
4317
+ ),
4222
4318
  prescription:
4223
4319
  T.nilable(
4224
4320
  Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription::OrHash
@@ -4254,6 +4350,8 @@ module Increase
4254
4350
  clinic:,
4255
4351
  # The part of this transaction amount that was for dental-related services.
4256
4352
  dental:,
4353
+ # The original pre-authorized amount.
4354
+ original:,
4257
4355
  # The part of this transaction amount that was for healthcare prescriptions.
4258
4356
  prescription:,
4259
4357
  # The surcharge amount charged for this transaction by the merchant.
@@ -4282,6 +4380,10 @@ module Increase
4282
4380
  T.nilable(
4283
4381
  Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental
4284
4382
  ),
4383
+ original:
4384
+ T.nilable(
4385
+ Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original
4386
+ ),
4285
4387
  prescription:
4286
4388
  T.nilable(
4287
4389
  Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription
@@ -4400,6 +4502,48 @@ module Increase
4400
4502
  end
4401
4503
  end
4402
4504
 
4505
+ class Original < Increase::Internal::Type::BaseModel
4506
+ OrHash =
4507
+ T.type_alias do
4508
+ T.any(
4509
+ Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original,
4510
+ Increase::Internal::AnyHash
4511
+ )
4512
+ end
4513
+
4514
+ # The amount in minor units of the `currency` field. The amount is positive if it
4515
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
4516
+ # subtracted from the amount (such as a discount).
4517
+ sig { returns(Integer) }
4518
+ attr_accessor :amount
4519
+
4520
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
4521
+ # amount's currency.
4522
+ sig { returns(String) }
4523
+ attr_accessor :currency
4524
+
4525
+ # The original pre-authorized amount.
4526
+ sig do
4527
+ params(amount: Integer, currency: String).returns(
4528
+ T.attached_class
4529
+ )
4530
+ end
4531
+ def self.new(
4532
+ # The amount in minor units of the `currency` field. The amount is positive if it
4533
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
4534
+ # subtracted from the amount (such as a discount).
4535
+ amount:,
4536
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
4537
+ # amount's currency.
4538
+ currency:
4539
+ )
4540
+ end
4541
+
4542
+ sig { override.returns({ amount: Integer, currency: String }) }
4543
+ def to_hash
4544
+ end
4545
+ end
4546
+
4403
4547
  class Prescription < Increase::Internal::Type::BaseModel
4404
4548
  OrHash =
4405
4549
  T.type_alias do
@@ -6622,6 +6766,26 @@ module Increase
6622
6766
  end
6623
6767
  attr_writer :dental
6624
6768
 
6769
+ # The original pre-authorized amount.
6770
+ sig do
6771
+ returns(
6772
+ T.nilable(
6773
+ Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original
6774
+ )
6775
+ )
6776
+ end
6777
+ attr_reader :original
6778
+
6779
+ sig do
6780
+ params(
6781
+ original:
6782
+ T.nilable(
6783
+ Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original::OrHash
6784
+ )
6785
+ ).void
6786
+ end
6787
+ attr_writer :original
6788
+
6625
6789
  # The part of this transaction amount that was for healthcare prescriptions.
6626
6790
  sig do
6627
6791
  returns(
@@ -6775,6 +6939,10 @@ module Increase
6775
6939
  T.nilable(
6776
6940
  Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental::OrHash
6777
6941
  ),
6942
+ original:
6943
+ T.nilable(
6944
+ Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original::OrHash
6945
+ ),
6778
6946
  prescription:
6779
6947
  T.nilable(
6780
6948
  Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription::OrHash
@@ -6810,6 +6978,8 @@ module Increase
6810
6978
  clinic:,
6811
6979
  # The part of this transaction amount that was for dental-related services.
6812
6980
  dental:,
6981
+ # The original pre-authorized amount.
6982
+ original:,
6813
6983
  # The part of this transaction amount that was for healthcare prescriptions.
6814
6984
  prescription:,
6815
6985
  # The surcharge amount charged for this transaction by the merchant.
@@ -6838,6 +7008,10 @@ module Increase
6838
7008
  T.nilable(
6839
7009
  Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental
6840
7010
  ),
7011
+ original:
7012
+ T.nilable(
7013
+ Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original
7014
+ ),
6841
7015
  prescription:
6842
7016
  T.nilable(
6843
7017
  Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription
@@ -6956,6 +7130,48 @@ module Increase
6956
7130
  end
6957
7131
  end
6958
7132
 
7133
+ class Original < Increase::Internal::Type::BaseModel
7134
+ OrHash =
7135
+ T.type_alias do
7136
+ T.any(
7137
+ Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original,
7138
+ Increase::Internal::AnyHash
7139
+ )
7140
+ end
7141
+
7142
+ # The amount in minor units of the `currency` field. The amount is positive if it
7143
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
7144
+ # subtracted from the amount (such as a discount).
7145
+ sig { returns(Integer) }
7146
+ attr_accessor :amount
7147
+
7148
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
7149
+ # amount's currency.
7150
+ sig { returns(String) }
7151
+ attr_accessor :currency
7152
+
7153
+ # The original pre-authorized amount.
7154
+ sig do
7155
+ params(amount: Integer, currency: String).returns(
7156
+ T.attached_class
7157
+ )
7158
+ end
7159
+ def self.new(
7160
+ # The amount in minor units of the `currency` field. The amount is positive if it
7161
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
7162
+ # subtracted from the amount (such as a discount).
7163
+ amount:,
7164
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
7165
+ # amount's currency.
7166
+ currency:
7167
+ )
7168
+ end
7169
+
7170
+ sig { override.returns({ amount: Integer, currency: String }) }
7171
+ def to_hash
7172
+ end
7173
+ end
7174
+
6959
7175
  class Prescription < Increase::Internal::Type::BaseModel
6960
7176
  OrHash =
6961
7177
  T.type_alias do
@@ -13395,6 +13611,26 @@ module Increase
13395
13611
  end
13396
13612
  attr_writer :dental
13397
13613
 
13614
+ # The original pre-authorized amount.
13615
+ sig do
13616
+ returns(
13617
+ T.nilable(
13618
+ Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original
13619
+ )
13620
+ )
13621
+ end
13622
+ attr_reader :original
13623
+
13624
+ sig do
13625
+ params(
13626
+ original:
13627
+ T.nilable(
13628
+ Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original::OrHash
13629
+ )
13630
+ ).void
13631
+ end
13632
+ attr_writer :original
13633
+
13398
13634
  # The part of this transaction amount that was for healthcare prescriptions.
13399
13635
  sig do
13400
13636
  returns(
@@ -13548,6 +13784,10 @@ module Increase
13548
13784
  T.nilable(
13549
13785
  Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental::OrHash
13550
13786
  ),
13787
+ original:
13788
+ T.nilable(
13789
+ Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original::OrHash
13790
+ ),
13551
13791
  prescription:
13552
13792
  T.nilable(
13553
13793
  Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription::OrHash
@@ -13583,6 +13823,8 @@ module Increase
13583
13823
  clinic:,
13584
13824
  # The part of this transaction amount that was for dental-related services.
13585
13825
  dental:,
13826
+ # The original pre-authorized amount.
13827
+ original:,
13586
13828
  # The part of this transaction amount that was for healthcare prescriptions.
13587
13829
  prescription:,
13588
13830
  # The surcharge amount charged for this transaction by the merchant.
@@ -13611,6 +13853,10 @@ module Increase
13611
13853
  T.nilable(
13612
13854
  Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental
13613
13855
  ),
13856
+ original:
13857
+ T.nilable(
13858
+ Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original
13859
+ ),
13614
13860
  prescription:
13615
13861
  T.nilable(
13616
13862
  Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription
@@ -13729,6 +13975,48 @@ module Increase
13729
13975
  end
13730
13976
  end
13731
13977
 
13978
+ class Original < Increase::Internal::Type::BaseModel
13979
+ OrHash =
13980
+ T.type_alias do
13981
+ T.any(
13982
+ Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original,
13983
+ Increase::Internal::AnyHash
13984
+ )
13985
+ end
13986
+
13987
+ # The amount in minor units of the `currency` field. The amount is positive if it
13988
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
13989
+ # subtracted from the amount (such as a discount).
13990
+ sig { returns(Integer) }
13991
+ attr_accessor :amount
13992
+
13993
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
13994
+ # amount's currency.
13995
+ sig { returns(String) }
13996
+ attr_accessor :currency
13997
+
13998
+ # The original pre-authorized amount.
13999
+ sig do
14000
+ params(amount: Integer, currency: String).returns(
14001
+ T.attached_class
14002
+ )
14003
+ end
14004
+ def self.new(
14005
+ # The amount in minor units of the `currency` field. The amount is positive if it
14006
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
14007
+ # subtracted from the amount (such as a discount).
14008
+ amount:,
14009
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
14010
+ # amount's currency.
14011
+ currency:
14012
+ )
14013
+ end
14014
+
14015
+ sig { override.returns({ amount: Integer, currency: String }) }
14016
+ def to_hash
14017
+ end
14018
+ end
14019
+
13732
14020
  class Prescription < Increase::Internal::Type::BaseModel
13733
14021
  OrHash =
13734
14022
  T.type_alias do
@@ -1277,6 +1277,26 @@ module Increase
1277
1277
  end
1278
1278
  attr_writer :dental
1279
1279
 
1280
+ # The original pre-authorized amount.
1281
+ sig do
1282
+ returns(
1283
+ T.nilable(
1284
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original
1285
+ )
1286
+ )
1287
+ end
1288
+ attr_reader :original
1289
+
1290
+ sig do
1291
+ params(
1292
+ original:
1293
+ T.nilable(
1294
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original::OrHash
1295
+ )
1296
+ ).void
1297
+ end
1298
+ attr_writer :original
1299
+
1280
1300
  # The part of this transaction amount that was for healthcare prescriptions.
1281
1301
  sig do
1282
1302
  returns(
@@ -1430,6 +1450,10 @@ module Increase
1430
1450
  T.nilable(
1431
1451
  Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental::OrHash
1432
1452
  ),
1453
+ original:
1454
+ T.nilable(
1455
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original::OrHash
1456
+ ),
1433
1457
  prescription:
1434
1458
  T.nilable(
1435
1459
  Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription::OrHash
@@ -1465,6 +1489,8 @@ module Increase
1465
1489
  clinic:,
1466
1490
  # The part of this transaction amount that was for dental-related services.
1467
1491
  dental:,
1492
+ # The original pre-authorized amount.
1493
+ original:,
1468
1494
  # The part of this transaction amount that was for healthcare prescriptions.
1469
1495
  prescription:,
1470
1496
  # The surcharge amount charged for this transaction by the merchant.
@@ -1493,6 +1519,10 @@ module Increase
1493
1519
  T.nilable(
1494
1520
  Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental
1495
1521
  ),
1522
+ original:
1523
+ T.nilable(
1524
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original
1525
+ ),
1496
1526
  prescription:
1497
1527
  T.nilable(
1498
1528
  Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription
@@ -1611,6 +1641,48 @@ module Increase
1611
1641
  end
1612
1642
  end
1613
1643
 
1644
+ class Original < Increase::Internal::Type::BaseModel
1645
+ OrHash =
1646
+ T.type_alias do
1647
+ T.any(
1648
+ Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original,
1649
+ Increase::Internal::AnyHash
1650
+ )
1651
+ end
1652
+
1653
+ # The amount in minor units of the `currency` field. The amount is positive if it
1654
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
1655
+ # subtracted from the amount (such as a discount).
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 original pre-authorized amount.
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. The amount is positive if it
1672
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
1673
+ # subtracted from the amount (such as a discount).
1674
+ amount:,
1675
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1676
+ # amount's currency.
1677
+ currency:
1678
+ )
1679
+ end
1680
+
1681
+ sig { override.returns({ amount: Integer, currency: String }) }
1682
+ def to_hash
1683
+ end
1684
+ end
1685
+
1614
1686
  class Prescription < Increase::Internal::Type::BaseModel
1615
1687
  OrHash =
1616
1688
  T.type_alias do
@@ -1372,6 +1372,26 @@ module Increase
1372
1372
  end
1373
1373
  attr_writer :dental
1374
1374
 
1375
+ # The original pre-authorized amount.
1376
+ sig do
1377
+ returns(
1378
+ T.nilable(
1379
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original
1380
+ )
1381
+ )
1382
+ end
1383
+ attr_reader :original
1384
+
1385
+ sig do
1386
+ params(
1387
+ original:
1388
+ T.nilable(
1389
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash
1390
+ )
1391
+ ).void
1392
+ end
1393
+ attr_writer :original
1394
+
1375
1395
  # The part of this transaction amount that was for healthcare prescriptions.
1376
1396
  sig do
1377
1397
  returns(
@@ -1525,6 +1545,10 @@ module Increase
1525
1545
  T.nilable(
1526
1546
  Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental::OrHash
1527
1547
  ),
1548
+ original:
1549
+ T.nilable(
1550
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash
1551
+ ),
1528
1552
  prescription:
1529
1553
  T.nilable(
1530
1554
  Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription::OrHash
@@ -1560,6 +1584,8 @@ module Increase
1560
1584
  clinic:,
1561
1585
  # The part of this transaction amount that was for dental-related services.
1562
1586
  dental:,
1587
+ # The original pre-authorized amount.
1588
+ original:,
1563
1589
  # The part of this transaction amount that was for healthcare prescriptions.
1564
1590
  prescription:,
1565
1591
  # The surcharge amount charged for this transaction by the merchant.
@@ -1588,6 +1614,10 @@ module Increase
1588
1614
  T.nilable(
1589
1615
  Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental
1590
1616
  ),
1617
+ original:
1618
+ T.nilable(
1619
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original
1620
+ ),
1591
1621
  prescription:
1592
1622
  T.nilable(
1593
1623
  Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription
@@ -1706,6 +1736,48 @@ module Increase
1706
1736
  end
1707
1737
  end
1708
1738
 
1739
+ class Original < Increase::Internal::Type::BaseModel
1740
+ OrHash =
1741
+ T.type_alias do
1742
+ T.any(
1743
+ Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original,
1744
+ Increase::Internal::AnyHash
1745
+ )
1746
+ end
1747
+
1748
+ # The amount in minor units of the `currency` field. The amount is positive if it
1749
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
1750
+ # subtracted from the amount (such as a discount).
1751
+ sig { returns(Integer) }
1752
+ attr_accessor :amount
1753
+
1754
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional
1755
+ # amount's currency.
1756
+ sig { returns(String) }
1757
+ attr_accessor :currency
1758
+
1759
+ # The original pre-authorized amount.
1760
+ sig do
1761
+ params(amount: Integer, currency: String).returns(
1762
+ T.attached_class
1763
+ )
1764
+ end
1765
+ def self.new(
1766
+ # The amount in minor units of the `currency` field. The amount is positive if it
1767
+ # is added to the amount (such as an ATM surcharge fee) and negative if it is
1768
+ # subtracted from the amount (such as a discount).
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
+
1709
1781
  class Prescription < Increase::Internal::Type::BaseModel
1710
1782
  OrHash =
1711
1783
  T.type_alias do