increase 1.113.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.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +8 -0
  5. data/lib/increase/models/card_payment.rb +160 -4
  6. data/lib/increase/models/declined_transaction.rb +40 -1
  7. data/lib/increase/models/fednow_transfer.rb +516 -0
  8. data/lib/increase/models/fednow_transfer_approve_params.rb +14 -0
  9. data/lib/increase/models/fednow_transfer_cancel_params.rb +14 -0
  10. data/lib/increase/models/fednow_transfer_create_params.rb +188 -0
  11. data/lib/increase/models/fednow_transfer_list_params.rb +170 -0
  12. data/lib/increase/models/fednow_transfer_retrieve_params.rb +14 -0
  13. data/lib/increase/models/inbound_fednow_transfer.rb +278 -0
  14. data/lib/increase/models/inbound_fednow_transfer_list_params.rb +100 -0
  15. data/lib/increase/models/inbound_fednow_transfer_retrieve_params.rb +14 -0
  16. data/lib/increase/models/pending_transaction.rb +42 -1
  17. data/lib/increase/models/real_time_decision.rb +40 -1
  18. data/lib/increase/models/simulations/inbound_fednow_transfer_create_params.rb +64 -0
  19. data/lib/increase/models/transaction.rb +40 -1
  20. data/lib/increase/models.rb +18 -0
  21. data/lib/increase/resources/fednow_transfers.rb +159 -0
  22. data/lib/increase/resources/inbound_fednow_transfers.rb +68 -0
  23. data/lib/increase/resources/simulations/inbound_fednow_transfers.rb +49 -0
  24. data/lib/increase/resources/simulations.rb +4 -0
  25. data/lib/increase/version.rb +1 -1
  26. data/lib/increase.rb +13 -0
  27. data/rbi/increase/client.rbi +6 -0
  28. data/rbi/increase/models/card_payment.rbi +288 -0
  29. data/rbi/increase/models/declined_transaction.rbi +72 -0
  30. data/rbi/increase/models/fednow_transfer.rbi +877 -0
  31. data/rbi/increase/models/fednow_transfer_approve_params.rbi +30 -0
  32. data/rbi/increase/models/fednow_transfer_cancel_params.rbi +30 -0
  33. data/rbi/increase/models/fednow_transfer_create_params.rbi +289 -0
  34. data/rbi/increase/models/fednow_transfer_list_params.rbi +334 -0
  35. data/rbi/increase/models/fednow_transfer_retrieve_params.rbi +30 -0
  36. data/rbi/increase/models/inbound_fednow_transfer.rbi +444 -0
  37. data/rbi/increase/models/inbound_fednow_transfer_list_params.rbi +177 -0
  38. data/rbi/increase/models/inbound_fednow_transfer_retrieve_params.rbi +30 -0
  39. data/rbi/increase/models/pending_transaction.rbi +72 -0
  40. data/rbi/increase/models/real_time_decision.rbi +72 -0
  41. data/rbi/increase/models/simulations/inbound_fednow_transfer_create_params.rbi +100 -0
  42. data/rbi/increase/models/transaction.rbi +72 -0
  43. data/rbi/increase/models.rbi +20 -0
  44. data/rbi/increase/resources/fednow_transfers.rbi +138 -0
  45. data/rbi/increase/resources/inbound_fednow_transfers.rbi +54 -0
  46. data/rbi/increase/resources/simulations/inbound_fednow_transfers.rbi +44 -0
  47. data/rbi/increase/resources/simulations.rbi +3 -0
  48. data/sig/increase/client.rbs +4 -0
  49. data/sig/increase/models/card_payment.rbs +68 -0
  50. data/sig/increase/models/declined_transaction.rbs +17 -0
  51. data/sig/increase/models/fednow_transfer.rbs +404 -0
  52. data/sig/increase/models/fednow_transfer_approve_params.rbs +15 -0
  53. data/sig/increase/models/fednow_transfer_cancel_params.rbs +15 -0
  54. data/sig/increase/models/fednow_transfer_create_params.rbs +155 -0
  55. data/sig/increase/models/fednow_transfer_list_params.rbs +174 -0
  56. data/sig/increase/models/fednow_transfer_retrieve_params.rbs +15 -0
  57. data/sig/increase/models/inbound_fednow_transfer.rbs +223 -0
  58. data/sig/increase/models/inbound_fednow_transfer_list_params.rbs +93 -0
  59. data/sig/increase/models/inbound_fednow_transfer_retrieve_params.rbs +15 -0
  60. data/sig/increase/models/pending_transaction.rbs +17 -0
  61. data/sig/increase/models/real_time_decision.rbs +17 -0
  62. data/sig/increase/models/simulations/inbound_fednow_transfer_create_params.rbs +61 -0
  63. data/sig/increase/models/transaction.rbs +17 -0
  64. data/sig/increase/models.rbs +18 -0
  65. data/sig/increase/resources/fednow_transfers.rbs +49 -0
  66. data/sig/increase/resources/inbound_fednow_transfers.rbs +21 -0
  67. data/sig/increase/resources/simulations/inbound_fednow_transfers.rbs +19 -0
  68. data/sig/increase/resources/simulations.rbs +2 -0
  69. metadata +41 -2
@@ -0,0 +1,49 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class InboundFednowTransfers
7
+ # Simulates an [Inbound FedNow Transfer](#inbound-fednow-transfers) to your
8
+ # account.
9
+ #
10
+ # @overload create(account_number_id:, amount:, debtor_account_number: nil, debtor_name: nil, debtor_routing_number: nil, unstructured_remittance_information: nil, request_options: {})
11
+ #
12
+ # @param account_number_id [String] The identifier of the Account Number the inbound FedNow Transfer is for.
13
+ #
14
+ # @param amount [Integer] The transfer amount in USD cents. Must be positive.
15
+ #
16
+ # @param debtor_account_number [String] The account number of the account that sent the transfer.
17
+ #
18
+ # @param debtor_name [String] The name provided by the sender of the transfer.
19
+ #
20
+ # @param debtor_routing_number [String] The routing number of the account that sent the transfer.
21
+ #
22
+ # @param unstructured_remittance_information [String] Additional information included with the transfer.
23
+ #
24
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
25
+ #
26
+ # @return [Increase::Models::InboundFednowTransfer]
27
+ #
28
+ # @see Increase::Models::Simulations::InboundFednowTransferCreateParams
29
+ def create(params)
30
+ parsed, options = Increase::Simulations::InboundFednowTransferCreateParams.dump_request(params)
31
+ @client.request(
32
+ method: :post,
33
+ path: "simulations/inbound_fednow_transfers",
34
+ body: parsed,
35
+ model: Increase::InboundFednowTransfer,
36
+ options: options
37
+ )
38
+ end
39
+
40
+ # @api private
41
+ #
42
+ # @param client [Increase::Client]
43
+ def initialize(client:)
44
+ @client = client
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -72,6 +72,9 @@ module Increase
72
72
  # @return [Increase::Resources::Simulations::InboundRealTimePaymentsTransfers]
73
73
  attr_reader :inbound_real_time_payments_transfers
74
74
 
75
+ # @return [Increase::Resources::Simulations::InboundFednowTransfers]
76
+ attr_reader :inbound_fednow_transfers
77
+
75
78
  # @return [Increase::Resources::Simulations::CheckDeposits]
76
79
  attr_reader :check_deposits
77
80
 
@@ -123,6 +126,7 @@ module Increase
123
126
  Increase::Resources::Simulations::RealTimePaymentsTransfers.new(client: client)
124
127
  @inbound_real_time_payments_transfers =
125
128
  Increase::Resources::Simulations::InboundRealTimePaymentsTransfers.new(client: client)
129
+ @inbound_fednow_transfers = Increase::Resources::Simulations::InboundFednowTransfers.new(client: client)
126
130
  @check_deposits = Increase::Resources::Simulations::CheckDeposits.new(client: client)
127
131
  @inbound_mail_items = Increase::Resources::Simulations::InboundMailItems.new(client: client)
128
132
  @programs = Increase::Resources::Simulations::Programs.new(client: client)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.113.0"
4
+ VERSION = "1.115.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -190,6 +190,12 @@ require_relative "increase/models/external_account_create_params"
190
190
  require_relative "increase/models/external_account_list_params"
191
191
  require_relative "increase/models/external_account_retrieve_params"
192
192
  require_relative "increase/models/external_account_update_params"
193
+ require_relative "increase/models/fednow_transfer"
194
+ require_relative "increase/models/fednow_transfer_approve_params"
195
+ require_relative "increase/models/fednow_transfer_cancel_params"
196
+ require_relative "increase/models/fednow_transfer_create_params"
197
+ require_relative "increase/models/fednow_transfer_list_params"
198
+ require_relative "increase/models/fednow_transfer_retrieve_params"
193
199
  require_relative "increase/models/file"
194
200
  require_relative "increase/models/file_create_params"
195
201
  require_relative "increase/models/file_link"
@@ -209,6 +215,9 @@ require_relative "increase/models/inbound_check_deposit_decline_params"
209
215
  require_relative "increase/models/inbound_check_deposit_list_params"
210
216
  require_relative "increase/models/inbound_check_deposit_retrieve_params"
211
217
  require_relative "increase/models/inbound_check_deposit_return_params"
218
+ require_relative "increase/models/inbound_fednow_transfer"
219
+ require_relative "increase/models/inbound_fednow_transfer_list_params"
220
+ require_relative "increase/models/inbound_fednow_transfer_retrieve_params"
212
221
  require_relative "increase/models/inbound_mail_item"
213
222
  require_relative "increase/models/inbound_mail_item_list_params"
214
223
  require_relative "increase/models/inbound_mail_item_retrieve_params"
@@ -303,6 +312,7 @@ require_relative "increase/models/simulations/digital_wallet_token_request_creat
303
312
  require_relative "increase/models/simulations/document_create_params"
304
313
  require_relative "increase/models/simulations/inbound_ach_transfer_create_params"
305
314
  require_relative "increase/models/simulations/inbound_check_deposit_create_params"
315
+ require_relative "increase/models/simulations/inbound_fednow_transfer_create_params"
306
316
  require_relative "increase/models/simulations/inbound_mail_item_create_params"
307
317
  require_relative "increase/models/simulations/inbound_real_time_payments_transfer_create_params"
308
318
  require_relative "increase/models/simulations/inbound_wire_drawdown_request_create_params"
@@ -360,11 +370,13 @@ require_relative "increase/resources/events"
360
370
  require_relative "increase/resources/event_subscriptions"
361
371
  require_relative "increase/resources/exports"
362
372
  require_relative "increase/resources/external_accounts"
373
+ require_relative "increase/resources/fednow_transfers"
363
374
  require_relative "increase/resources/file_links"
364
375
  require_relative "increase/resources/files"
365
376
  require_relative "increase/resources/groups"
366
377
  require_relative "increase/resources/inbound_ach_transfers"
367
378
  require_relative "increase/resources/inbound_check_deposits"
379
+ require_relative "increase/resources/inbound_fednow_transfers"
368
380
  require_relative "increase/resources/inbound_mail_items"
369
381
  require_relative "increase/resources/inbound_real_time_payments_transfers"
370
382
  require_relative "increase/resources/inbound_wire_drawdown_requests"
@@ -402,6 +414,7 @@ require_relative "increase/resources/simulations/digital_wallet_token_requests"
402
414
  require_relative "increase/resources/simulations/documents"
403
415
  require_relative "increase/resources/simulations/inbound_ach_transfers"
404
416
  require_relative "increase/resources/simulations/inbound_check_deposits"
417
+ require_relative "increase/resources/simulations/inbound_fednow_transfers"
405
418
  require_relative "increase/resources/simulations/inbound_mail_items"
406
419
  require_relative "increase/resources/simulations/inbound_real_time_payments_transfers"
407
420
  require_relative "increase/resources/simulations/inbound_wire_drawdown_requests"
@@ -97,6 +97,12 @@ module Increase
97
97
  sig { returns(Increase::Resources::InboundRealTimePaymentsTransfers) }
98
98
  attr_reader :inbound_real_time_payments_transfers
99
99
 
100
+ sig { returns(Increase::Resources::FednowTransfers) }
101
+ attr_reader :fednow_transfers
102
+
103
+ sig { returns(Increase::Resources::InboundFednowTransfers) }
104
+ attr_reader :inbound_fednow_transfers
105
+
100
106
  sig { returns(Increase::Resources::CheckDeposits) }
101
107
  attr_reader :check_deposits
102
108
 
@@ -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