From a6288c723f7a36646e399428d4be6b54d30488e8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:50:24 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/card_payment.rb | 164 ++++++++++- lib/increase/models/declined_transaction.rb | 41 ++- lib/increase/models/pending_transaction.rb | 43 ++- lib/increase/models/real_time_decision.rb | 41 ++- lib/increase/models/transaction.rb | 41 ++- rbi/increase/models/card_payment.rbi | 288 +++++++++++++++++++ rbi/increase/models/declined_transaction.rbi | 72 +++++ rbi/increase/models/pending_transaction.rbi | 72 +++++ rbi/increase/models/real_time_decision.rbi | 72 +++++ rbi/increase/models/transaction.rbi | 72 +++++ sig/increase/models/card_payment.rbs | 68 +++++ sig/increase/models/declined_transaction.rbs | 17 ++ sig/increase/models/pending_transaction.rbs | 17 ++ sig/increase/models/real_time_decision.rbs | 17 ++ sig/increase/models/transaction.rbs | 17 ++ 16 files changed, 1036 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index 2363e1cf..23a163cf 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e809e9e4e5bc9c602a2ecebfbdb4a77d6c88c6f70f0b47a7a4d1dd1df4aaa66d.yml -openapi_spec_hash: cb6cb9fa09a8e52f6eb89271b559823d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9848b3b7725425c712a5fba932c836f3210adf21b9b7a232370f13960790158c.yml +openapi_spec_hash: 49090a79a8225d8ad36fe249aac2a12a config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index e2c8b4d3..e7fc974e 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -916,6 +916,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -978,7 +986,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts} # for more details. @@ -991,6 +999,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -1063,6 +1073,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::CardPayment::Element::CardAuthorization::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount @@ -2194,6 +2233,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -2250,7 +2297,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts} for # more details. @@ -2263,6 +2310,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -2335,6 +2384,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::CardPayment::Element::CardDecline::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount @@ -3493,6 +3571,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -3549,7 +3635,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts} for # more details. @@ -3562,6 +3648,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -3634,6 +3722,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::CardPayment::Element::CardIncrement::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount @@ -7301,6 +7418,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -7361,7 +7486,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts} for # more details. @@ -7374,6 +7499,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -7446,6 +7573,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::CardPayment::Element::CardValidation::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/declined_transaction.rb b/lib/increase/models/declined_transaction.rb index 882982c6..31e9e7e6 100644 --- a/lib/increase/models/declined_transaction.rb +++ b/lib/increase/models/declined_transaction.rb @@ -737,6 +737,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -799,7 +807,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts} # for more details. @@ -812,6 +820,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -884,6 +894,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::DeclinedTransaction::Source::CardDecline::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/pending_transaction.rb b/lib/increase/models/pending_transaction.rb index f286e868..36b54eaa 100644 --- a/lib/increase/models/pending_transaction.rb +++ b/lib/increase/models/pending_transaction.rb @@ -767,6 +767,16 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original, nil] + required :original, + -> { + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original + }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -837,7 +847,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts} # for more details. @@ -850,6 +860,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -922,6 +934,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::PendingTransaction::Source::CardAuthorization::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/real_time_decision.rb b/lib/increase/models/real_time_decision.rb index ae41f585..4060c066 100644 --- a/lib/increase/models/real_time_decision.rb +++ b/lib/increase/models/real_time_decision.rb @@ -502,6 +502,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -558,7 +566,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts} for # more details. @@ -571,6 +579,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -643,6 +653,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::RealTimeDecision::CardAuthorization::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index b1c1488c..c9813127 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -1567,6 +1567,14 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental }, nil?: true + # @!attribute original + # The original pre-authorized amount. + # + # @return [Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Original, nil] + required :original, + -> { Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original }, + nil?: true + # @!attribute prescription # The part of this transaction amount that was for healthcare prescriptions. # @@ -1623,7 +1631,7 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel -> { Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Vision }, nil?: true - # @!method initialize(clinic:, dental:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) + # @!method initialize(clinic:, dental:, original:, prescription:, surcharge:, total_cumulative:, total_healthcare:, transit:, unknown:, vision:) # Some parameter documentations has been truncated, see # {Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts} for # more details. @@ -1636,6 +1644,8 @@ class AdditionalAmounts < Increase::Internal::Type::BaseModel # # @param dental [Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Dental, nil] The part of this transaction amount that was for dental-related services. # + # @param original [Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Original, nil] The original pre-authorized amount. + # # @param prescription [Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription, nil] The part of this transaction amount that was for healthcare prescriptions. # # @param surcharge [Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Surcharge, nil] The surcharge amount charged for this transaction by the merchant. @@ -1708,6 +1718,35 @@ class Dental < Increase::Internal::Type::BaseModel # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a end + # @see Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts#original + class Original < Increase::Internal::Type::BaseModel + # @!attribute amount + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + # + # @return [Integer] + required :amount, Integer + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + # + # @return [String] + required :currency, String + + # @!method initialize(amount:, currency:) + # Some parameter documentations has been truncated, see + # {Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts::Original} + # for more details. + # + # The original pre-authorized amount. + # + # @param amount [Integer] The amount in minor units of the `currency` field. The amount is positive if it + # + # @param currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional a + end + # @see Increase::Models::Transaction::Source::CardFinancial::AdditionalAmounts#prescription class Prescription < Increase::Internal::Type::BaseModel # @!attribute amount diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index 6318a493..853f18a2 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -1643,6 +1643,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -1796,6 +1816,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription::OrHash @@ -1831,6 +1855,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -1859,6 +1885,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription @@ -1977,6 +2007,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -4066,6 +4138,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -4219,6 +4311,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription::OrHash @@ -4254,6 +4350,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -4282,6 +4380,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription @@ -4400,6 +4502,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -6622,6 +6766,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -6775,6 +6939,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription::OrHash @@ -6810,6 +6978,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -6838,6 +7008,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription @@ -6956,6 +7130,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do @@ -13395,6 +13611,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -13548,6 +13784,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription::OrHash @@ -13583,6 +13823,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -13611,6 +13853,10 @@ module Increase T.nilable( Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription @@ -13729,6 +13975,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/declined_transaction.rbi b/rbi/increase/models/declined_transaction.rbi index df33218e..468e88bc 100644 --- a/rbi/increase/models/declined_transaction.rbi +++ b/rbi/increase/models/declined_transaction.rbi @@ -1277,6 +1277,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -1430,6 +1450,10 @@ module Increase T.nilable( Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription::OrHash @@ -1465,6 +1489,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -1493,6 +1519,10 @@ module Increase T.nilable( Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription @@ -1611,6 +1641,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/pending_transaction.rbi b/rbi/increase/models/pending_transaction.rbi index 6afc89bc..3de3213f 100644 --- a/rbi/increase/models/pending_transaction.rbi +++ b/rbi/increase/models/pending_transaction.rbi @@ -1372,6 +1372,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -1525,6 +1545,10 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription::OrHash @@ -1560,6 +1584,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -1588,6 +1614,10 @@ module Increase T.nilable( Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription @@ -1706,6 +1736,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/real_time_decision.rbi b/rbi/increase/models/real_time_decision.rbi index 8d3c1714..00c53aa3 100644 --- a/rbi/increase/models/real_time_decision.rbi +++ b/rbi/increase/models/real_time_decision.rbi @@ -870,6 +870,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -1023,6 +1043,10 @@ module Increase T.nilable( Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription::OrHash @@ -1058,6 +1082,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -1086,6 +1112,10 @@ module Increase T.nilable( Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription @@ -1204,6 +1234,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index 4c425dc9..fb9893e8 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -3068,6 +3068,26 @@ module Increase end attr_writer :dental + # The original pre-authorized amount. + sig do + returns( + T.nilable( + Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original + ) + ) + end + attr_reader :original + + sig do + params( + original: + T.nilable( + Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original::OrHash + ) + ).void + end + attr_writer :original + # The part of this transaction amount that was for healthcare prescriptions. sig do returns( @@ -3221,6 +3241,10 @@ module Increase T.nilable( Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental::OrHash ), + original: + T.nilable( + Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original::OrHash + ), prescription: T.nilable( Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription::OrHash @@ -3256,6 +3280,8 @@ module Increase clinic:, # The part of this transaction amount that was for dental-related services. dental:, + # The original pre-authorized amount. + original:, # The part of this transaction amount that was for healthcare prescriptions. prescription:, # The surcharge amount charged for this transaction by the merchant. @@ -3284,6 +3310,10 @@ module Increase T.nilable( Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental ), + original: + T.nilable( + Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original + ), prescription: T.nilable( Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription @@ -3402,6 +3432,48 @@ module Increase end end + class Original < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original, + Increase::Internal::AnyHash + ) + end + + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + sig { returns(Integer) } + attr_accessor :amount + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + sig { returns(String) } + attr_accessor :currency + + # The original pre-authorized amount. + sig do + params(amount: Integer, currency: String).returns( + T.attached_class + ) + end + def self.new( + # The amount in minor units of the `currency` field. The amount is positive if it + # is added to the amount (such as an ATM surcharge fee) and negative if it is + # subtracted from the amount (such as a discount). + amount:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + # amount's currency. + currency: + ) + end + + sig { override.returns({ amount: Integer, currency: String }) } + def to_hash + end + end + class Prescription < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index 8b17e016..24fa8fdf 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -608,6 +608,7 @@ module Increase { clinic: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -622,6 +623,8 @@ module Increase attr_accessor dental: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental? + attr_accessor original: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original? + attr_accessor prescription: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Surcharge? @@ -639,6 +642,7 @@ module Increase def initialize: ( clinic: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -651,6 +655,7 @@ module Increase def to_hash: -> { clinic: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -684,6 +689,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel @@ -1482,6 +1499,7 @@ module Increase { clinic: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -1496,6 +1514,8 @@ module Increase attr_accessor dental: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental? + attr_accessor original: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original? + attr_accessor prescription: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Surcharge? @@ -1513,6 +1533,7 @@ module Increase def initialize: ( clinic: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -1525,6 +1546,7 @@ module Increase def to_hash: -> { clinic: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -1558,6 +1580,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel @@ -2438,6 +2472,7 @@ module Increase { clinic: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::TotalCumulative?, @@ -2452,6 +2487,8 @@ module Increase attr_accessor dental: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental? + attr_accessor original: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original? + attr_accessor prescription: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Surcharge? @@ -2469,6 +2506,7 @@ module Increase def initialize: ( clinic: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::TotalCumulative?, @@ -2481,6 +2519,7 @@ module Increase def to_hash: -> { clinic: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardIncrement::AdditionalAmounts::TotalCumulative?, @@ -2514,6 +2553,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel @@ -5153,6 +5204,7 @@ module Increase { clinic: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::TotalCumulative?, @@ -5167,6 +5219,8 @@ module Increase attr_accessor dental: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental? + attr_accessor original: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original? + attr_accessor prescription: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Surcharge? @@ -5184,6 +5238,7 @@ module Increase def initialize: ( clinic: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::TotalCumulative?, @@ -5196,6 +5251,7 @@ module Increase def to_hash: -> { clinic: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Clinic?, dental: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Dental?, + original: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Original?, prescription: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Prescription?, surcharge: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::Surcharge?, total_cumulative: Increase::CardPayment::Element::CardValidation::AdditionalAmounts::TotalCumulative?, @@ -5229,6 +5285,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/declined_transaction.rbs b/sig/increase/models/declined_transaction.rbs index 8402f932..90ef7157 100644 --- a/sig/increase/models/declined_transaction.rbs +++ b/sig/increase/models/declined_transaction.rbs @@ -495,6 +495,7 @@ module Increase { clinic: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental?, + original: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original?, prescription: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -509,6 +510,8 @@ module Increase attr_accessor dental: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental? + attr_accessor original: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original? + attr_accessor prescription: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge? @@ -526,6 +529,7 @@ module Increase def initialize: ( clinic: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental?, + original: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original?, prescription: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -538,6 +542,7 @@ module Increase def to_hash: -> { clinic: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Clinic?, dental: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Dental?, + original: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Original?, prescription: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Prescription?, surcharge: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::Surcharge?, total_cumulative: Increase::DeclinedTransaction::Source::CardDecline::AdditionalAmounts::TotalCumulative?, @@ -571,6 +576,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/pending_transaction.rbs b/sig/increase/models/pending_transaction.rbs index 59b8ea6e..1f7bc339 100644 --- a/sig/increase/models/pending_transaction.rbs +++ b/sig/increase/models/pending_transaction.rbs @@ -456,6 +456,7 @@ module Increase { clinic: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -470,6 +471,8 @@ module Increase attr_accessor dental: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental? + attr_accessor original: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original? + attr_accessor prescription: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge? @@ -487,6 +490,7 @@ module Increase def initialize: ( clinic: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -499,6 +503,7 @@ module Increase def to_hash: -> { clinic: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::PendingTransaction::Source::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -532,6 +537,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/real_time_decision.rbs b/sig/increase/models/real_time_decision.rbs index 63c13453..406c4c85 100644 --- a/sig/increase/models/real_time_decision.rbs +++ b/sig/increase/models/real_time_decision.rbs @@ -316,6 +316,7 @@ module Increase { clinic: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -330,6 +331,8 @@ module Increase attr_accessor dental: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental? + attr_accessor original: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original? + attr_accessor prescription: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge? @@ -347,6 +350,7 @@ module Increase def initialize: ( clinic: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -359,6 +363,7 @@ module Increase def to_hash: -> { clinic: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Clinic?, dental: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Dental?, + original: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Original?, prescription: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Prescription?, surcharge: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::Surcharge?, total_cumulative: Increase::RealTimeDecision::CardAuthorization::AdditionalAmounts::TotalCumulative?, @@ -392,6 +397,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index 37ff90db..cc5a5e4d 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -1074,6 +1074,7 @@ module Increase { clinic: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Clinic?, dental: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental?, + original: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original?, prescription: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription?, surcharge: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Surcharge?, total_cumulative: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::TotalCumulative?, @@ -1088,6 +1089,8 @@ module Increase attr_accessor dental: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental? + attr_accessor original: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original? + attr_accessor prescription: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription? attr_accessor surcharge: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Surcharge? @@ -1105,6 +1108,7 @@ module Increase def initialize: ( clinic: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Clinic?, dental: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental?, + original: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original?, prescription: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription?, surcharge: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Surcharge?, total_cumulative: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::TotalCumulative?, @@ -1117,6 +1121,7 @@ module Increase def to_hash: -> { clinic: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Clinic?, dental: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Dental?, + original: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Original?, prescription: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Prescription?, surcharge: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::Surcharge?, total_cumulative: Increase::Transaction::Source::CardFinancial::AdditionalAmounts::TotalCumulative?, @@ -1150,6 +1155,18 @@ module Increase def to_hash: -> { amount: Integer, currency: String } end + type original = { amount: Integer, currency: String } + + class Original < Increase::Internal::Type::BaseModel + attr_accessor amount: Integer + + attr_accessor currency: String + + def initialize: (amount: Integer, currency: String) -> void + + def to_hash: -> { amount: Integer, currency: String } + end + type prescription = { amount: Integer, currency: String } class Prescription < Increase::Internal::Type::BaseModel From ca84cde1c22bc53cd18867f655d8ea438fcbbf3e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 26 Oct 2025 13:50:44 +0000 Subject: [PATCH 2/2] release: 1.115.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 94f4a02d..9b567905 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.114.0" + ".": "1.115.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index c29a5d42..63e2e5d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.115.0 (2025-10-26) + +Full Changelog: [v1.114.0...v1.115.0](https://github.com/Increase/increase-ruby/compare/v1.114.0...v1.115.0) + +### Features + +* **api:** api update ([a6288c7](https://github.com/Increase/increase-ruby/commit/a6288c723f7a36646e399428d4be6b54d30488e8)) + ## 1.114.0 (2025-10-24) Full Changelog: [v1.113.0...v1.114.0](https://github.com/Increase/increase-ruby/compare/v1.113.0...v1.114.0) diff --git a/Gemfile.lock b/Gemfile.lock index 090cb988..624cbfe6 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.114.0) + increase (1.115.0) connection_pool GEM diff --git a/README.md b/README.md index f3fbd17a..8c9e33ca 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application ```ruby -gem "increase", "~> 1.114.0" +gem "increase", "~> 1.115.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 5d3d1185..a2de6618 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.114.0" + VERSION = "1.115.0" end