From 27ad253d411648e5e305016495f73495c31ccb0d Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:31:44 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- lib/increase/models/card_payment.rb | 182 +++++++++- rbi/increase/models/card_payment.rbi | 340 ++++++++++++++++++ sig/increase/models/card_payment.rbs | 182 ++++++++++ test/increase/resources/card_payments_test.rb | 2 + .../card_authorization_expirations_test.rb | 1 + .../card_balance_inquiries_test.rb | 1 + .../card_fuel_confirmations_test.rb | 1 + .../simulations/card_increments_test.rb | 1 + .../simulations/card_reversals_test.rb | 1 + 10 files changed, 712 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 702aef7c1..7d09a9347 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-ff40c6e135e905af36aac783b7524ae0d9f13cd1e165ee56da3b244ae76ab94e.yml -openapi_spec_hash: b0c7738dc63f7362a11b27c7369d7441 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-949ee3a47313a37ba0147670d429c72ff0cfb477f7abe8f1212dc892ed4ad6d2.yml +openapi_spec_hash: b7a3d5406d046298e53103020cec545d config_hash: 4b562e97b3d8b4cba758a87d4927a76d diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index 3daf2275c..339a76ee4 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -47,6 +47,12 @@ class CardPayment < Increase::Internal::Type::BaseModel # @return [String, nil] required :physical_card_id, String, nil?: true + # @!attribute scheme_fees + # The scheme fees associated with this card payment. + # + # @return [Array] + required :scheme_fees, -> { Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee] } + # @!attribute state # The summarized state of this card payment. # @@ -60,7 +66,7 @@ class CardPayment < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardPayment::Type] required :type, enum: -> { Increase::CardPayment::Type } - # @!method initialize(id:, account_id:, card_id:, created_at:, digital_wallet_token_id:, elements:, physical_card_id:, state:, type:) + # @!method initialize(id:, account_id:, card_id:, created_at:, digital_wallet_token_id:, elements:, physical_card_id:, scheme_fees:, state:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment} for more details. # @@ -81,6 +87,8 @@ class CardPayment < Increase::Internal::Type::BaseModel # # @param physical_card_id [String, nil] The Physical Card identifier for this payment. # + # @param scheme_fees [Array] The scheme fees associated with this card payment. + # # @param state [Increase::Models::CardPayment::State] The summarized state of this card payment. # # @param type [Symbol, Increase::Models::CardPayment::Type] A constant representing the object's type. For this resource it will always be ` @@ -10854,6 +10862,178 @@ class Other < Increase::Internal::Type::BaseModel end end + class SchemeFee < Increase::Internal::Type::BaseModel + # @!attribute amount + # The fee amount given as a string containing a decimal number. + # + # @return [String] + required :amount, String + + # @!attribute created_at + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the fee was + # created. + # + # @return [Time] + required :created_at, Time + + # @!attribute currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee + # reimbursement. + # + # @return [Symbol, Increase::Models::CardPayment::SchemeFee::Currency] + required :currency, enum: -> { Increase::CardPayment::SchemeFee::Currency } + + # @!attribute fee_type + # The type of fee being assessed. + # + # @return [Symbol, Increase::Models::CardPayment::SchemeFee::FeeType] + required :fee_type, enum: -> { Increase::CardPayment::SchemeFee::FeeType } + + # @!attribute fixed_component + # The fixed component of the fee, if applicable, given in major units of the fee + # amount. + # + # @return [String, nil] + required :fixed_component, String, nil?: true + + # @!attribute variable_rate + # The variable rate component of the fee, if applicable, given as a decimal (e.g., + # 0.015 for 1.5%). + # + # @return [String, nil] + required :variable_rate, String, nil?: true + + # @!method initialize(amount:, created_at:, currency:, fee_type:, fixed_component:, variable_rate:) + # Some parameter documentations has been truncated, see + # {Increase::Models::CardPayment::SchemeFee} for more details. + # + # @param amount [String] The fee amount given as a string containing a decimal number. + # + # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the fee was + # + # @param currency [Symbol, Increase::Models::CardPayment::SchemeFee::Currency] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee reimburs + # + # @param fee_type [Symbol, Increase::Models::CardPayment::SchemeFee::FeeType] The type of fee being assessed. + # + # @param fixed_component [String, nil] The fixed component of the fee, if applicable, given in major units of the fee a + # + # @param variable_rate [String, nil] The variable rate component of the fee, if applicable, given as a decimal (e.g., + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee + # reimbursement. + # + # @see Increase::Models::CardPayment::SchemeFee#currency + module Currency + extend Increase::Internal::Type::Enum + + # US Dollar (USD) + USD = :USD + + # @!method self.values + # @return [Array] + end + + # The type of fee being assessed. + # + # @see Increase::Models::CardPayment::SchemeFee#fee_type + module FeeType + extend Increase::Internal::Type::Enum + + # International Service Assessment (ISA) single-currency is a fee assessed by the card network for cross-border transactions presented and settled in the same currency. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_SINGLE_CURRENCY = + :visa_international_service_assessment_single_currency + + # International Service Assessment (ISA) cross-currency is a fee assessed by the card network for cross-border transactions presented and settled in different currencies. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_CROSS_CURRENCY = + :visa_international_service_assessment_cross_currency + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_DOMESTIC_POINT_OF_SALE = :visa_authorization_domestic_point_of_sale + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) International authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_INTERNATIONAL_POINT_OF_SALE = :visa_authorization_international_point_of_sale + + # Activity and charges for Visa Settlement System processing for Canada Region POS (Point-of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. + VISA_AUTHORIZATION_CANADA_POINT_OF_SALE = :visa_authorization_canada_point_of_sale + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_POINT_OF_SALE = :visa_authorization_reversal_point_of_sale + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) International reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_INTERNATIONAL_POINT_OF_SALE = + :visa_authorization_reversal_international_point_of_sale + + # A per Address Verification Service (AVS) result fee. Applies to all usable AVS result codes. + VISA_AUTHORIZATION_ADDRESS_VERIFICATION_SERVICE = :visa_authorization_address_verification_service + + # Advanced Authorization is a fraud detection tool that monitors and risk evaluates 100 percent of US VisaNet authorizations in real-time. Activity related to Purchase (includes Signature Authenticated Visa and PIN Authenticated Visa Debit (PAVD) transactions). + VISA_ADVANCED_AUTHORIZATION = :visa_advanced_authorization + + # Issuer Transactions Visa represents a charge based on total actual monthly processing (Visa transactions only) through a VisaNet Access Point (VAP). Charges are assessed to the processor for each VisaNet Access Point. + VISA_MESSAGE_TRANSMISSION = :visa_message_transmission + + # Activity, per inquiry, related to the domestic Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_DOMESTIC = :visa_account_verification_domestic + + # Activity, per inquiry, related to the international Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_INTERNATIONAL = :visa_account_verification_international + + # Activity, per inquiry, related to the US-Canada Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_CANADA = :visa_account_verification_canada + + # The Corporate Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_CORPORATE_ACCEPTANCE_FEE = :visa_corporate_acceptance_fee + + # The Consumer Debit Acceptance Fee is charged to issuers and is based on the monthly sales volume of Consumer Debit or Prepaid card transactions. The cashback portion of a Debit and Prepaid card transaction is excluded from the sales volume calculation. + VISA_CONSUMER_DEBIT_ACCEPTANCE_FEE = :visa_consumer_debit_acceptance_fee + + # The Business Acceptance Fee is charged to issuers and is based on the monthly sales volume on Business Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. The cashback portion is included in the sales volume calculation with the exception of a Debit and Prepaid card transactions. + VISA_BUSINESS_DEBIT_ACCEPTANCE_FEE = :visa_business_debit_acceptance_fee + + # The Purchasing Card Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_PURCHASING_ACCEPTANCE_FEE = :visa_purchasing_acceptance_fee + + # Activity and fees for the processing of a sales draft original for a purchase transaction. + VISA_PURCHASE_DOMESTIC = :visa_purchase_domestic + + # Activity and fees for the processing of an international sales draft original for a purchase transaction. + VISA_PURCHASE_INTERNATIONAL = :visa_purchase_international + + # Apple Pay Credit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_CREDIT_PURCHASE_TOKEN = :visa_credit_purchase_token + + # Apple Pay Debit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_DEBIT_PURCHASE_TOKEN = :visa_debit_purchase_token + + # A per transaction fee assessed for Base II financial draft - Issuer. + VISA_CLEARING_TRANSMISSION = :visa_clearing_transmission + + # Issuer charge for Non-Financial OCT/AFT Authorization 0100 and Declined Financial OCT/AFT 0200 transactions. + VISA_DIRECT_AUTHORIZATION = :visa_direct_authorization + + # Data processing charge for Visa Direct OCTs for all business application identifiers (BAIs) other than money transfer-bank initiated (BI). BASE II transactions. + VISA_DIRECT_TRANSACTION_DOMESTIC = :visa_direct_transaction_domestic + + # Issuer card service fee for Commercial Credit cards. + VISA_SERVICE_COMMERCIAL_CREDIT = :visa_service_commercial_credit + + # Issuer Advertising Service Fee for Commercial Credit cards. + VISA_ADVERTISING_SERVICE_COMMERCIAL_CREDIT = :visa_advertising_service_commercial_credit + + # Issuer Community Growth Acceleration Program Fee. + VISA_COMMUNITY_GROWTH_ACCELERATION_PROGRAM = :visa_community_growth_acceleration_program + + # Issuer Processing Guarantee for Commercial Credit cards. + VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = :visa_processing_guarantee_commercial_credit + + # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network. + PULSE_SWITCH_FEE = :pulse_switch_fee + + # @!method self.values + # @return [Array] + end + end + # @see Increase::Models::CardPayment#state class State < Increase::Internal::Type::BaseModel # @!attribute authorized_amount diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index 8d48311b9..5e5ef36c1 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -37,6 +37,10 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :physical_card_id + # The scheme fees associated with this card payment. + sig { returns(T::Array[Increase::CardPayment::SchemeFee]) } + attr_accessor :scheme_fees + # The summarized state of this card payment. sig { returns(Increase::CardPayment::State) } attr_reader :state @@ -60,6 +64,7 @@ module Increase digital_wallet_token_id: T.nilable(String), elements: T::Array[Increase::CardPayment::Element::OrHash], physical_card_id: T.nilable(String), + scheme_fees: T::Array[Increase::CardPayment::SchemeFee::OrHash], state: Increase::CardPayment::State::OrHash, type: Increase::CardPayment::Type::OrSymbol ).returns(T.attached_class) @@ -80,6 +85,8 @@ module Increase elements:, # The Physical Card identifier for this payment. physical_card_id:, + # The scheme fees associated with this card payment. + scheme_fees:, # The summarized state of this card payment. state:, # A constant representing the object's type. For this resource it will always be @@ -98,6 +105,7 @@ module Increase digital_wallet_token_id: T.nilable(String), elements: T::Array[Increase::CardPayment::Element], physical_card_id: T.nilable(String), + scheme_fees: T::Array[Increase::CardPayment::SchemeFee], state: Increase::CardPayment::State, type: Increase::CardPayment::Type::TaggedSymbol } @@ -20334,6 +20342,338 @@ module Increase end end + class SchemeFee < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any(Increase::CardPayment::SchemeFee, Increase::Internal::AnyHash) + end + + # The fee amount given as a string containing a decimal number. + sig { returns(String) } + attr_accessor :amount + + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the fee was + # created. + sig { returns(Time) } + attr_accessor :created_at + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee + # reimbursement. + sig do + returns(Increase::CardPayment::SchemeFee::Currency::TaggedSymbol) + end + attr_accessor :currency + + # The type of fee being assessed. + sig { returns(Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol) } + attr_accessor :fee_type + + # The fixed component of the fee, if applicable, given in major units of the fee + # amount. + sig { returns(T.nilable(String)) } + attr_accessor :fixed_component + + # The variable rate component of the fee, if applicable, given as a decimal (e.g., + # 0.015 for 1.5%). + sig { returns(T.nilable(String)) } + attr_accessor :variable_rate + + sig do + params( + amount: String, + created_at: Time, + currency: Increase::CardPayment::SchemeFee::Currency::OrSymbol, + fee_type: Increase::CardPayment::SchemeFee::FeeType::OrSymbol, + fixed_component: T.nilable(String), + variable_rate: T.nilable(String) + ).returns(T.attached_class) + end + def self.new( + # The fee amount given as a string containing a decimal number. + amount:, + # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the fee was + # created. + created_at:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee + # reimbursement. + currency:, + # The type of fee being assessed. + fee_type:, + # The fixed component of the fee, if applicable, given in major units of the fee + # amount. + fixed_component:, + # The variable rate component of the fee, if applicable, given as a decimal (e.g., + # 0.015 for 1.5%). + variable_rate: + ) + end + + sig do + override.returns( + { + amount: String, + created_at: Time, + currency: + Increase::CardPayment::SchemeFee::Currency::TaggedSymbol, + fee_type: Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol, + fixed_component: T.nilable(String), + variable_rate: T.nilable(String) + } + ) + end + def to_hash + end + + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the fee + # reimbursement. + module Currency + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::CardPayment::SchemeFee::Currency) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # US Dollar (USD) + USD = + T.let( + :USD, + Increase::CardPayment::SchemeFee::Currency::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Increase::CardPayment::SchemeFee::Currency::TaggedSymbol] + ) + end + def self.values + end + end + + # The type of fee being assessed. + module FeeType + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all(Symbol, Increase::CardPayment::SchemeFee::FeeType) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # International Service Assessment (ISA) single-currency is a fee assessed by the card network for cross-border transactions presented and settled in the same currency. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_SINGLE_CURRENCY = + T.let( + :visa_international_service_assessment_single_currency, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # International Service Assessment (ISA) cross-currency is a fee assessed by the card network for cross-border transactions presented and settled in different currencies. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_CROSS_CURRENCY = + T.let( + :visa_international_service_assessment_cross_currency, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_DOMESTIC_POINT_OF_SALE = + T.let( + :visa_authorization_domestic_point_of_sale, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) International authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_INTERNATIONAL_POINT_OF_SALE = + T.let( + :visa_authorization_international_point_of_sale, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity and charges for Visa Settlement System processing for Canada Region POS (Point-of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. + VISA_AUTHORIZATION_CANADA_POINT_OF_SALE = + T.let( + :visa_authorization_canada_point_of_sale, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_POINT_OF_SALE = + T.let( + :visa_authorization_reversal_point_of_sale, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) International reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_INTERNATIONAL_POINT_OF_SALE = + T.let( + :visa_authorization_reversal_international_point_of_sale, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # A per Address Verification Service (AVS) result fee. Applies to all usable AVS result codes. + VISA_AUTHORIZATION_ADDRESS_VERIFICATION_SERVICE = + T.let( + :visa_authorization_address_verification_service, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Advanced Authorization is a fraud detection tool that monitors and risk evaluates 100 percent of US VisaNet authorizations in real-time. Activity related to Purchase (includes Signature Authenticated Visa and PIN Authenticated Visa Debit (PAVD) transactions). + VISA_ADVANCED_AUTHORIZATION = + T.let( + :visa_advanced_authorization, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer Transactions Visa represents a charge based on total actual monthly processing (Visa transactions only) through a VisaNet Access Point (VAP). Charges are assessed to the processor for each VisaNet Access Point. + VISA_MESSAGE_TRANSMISSION = + T.let( + :visa_message_transmission, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity, per inquiry, related to the domestic Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_DOMESTIC = + T.let( + :visa_account_verification_domestic, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity, per inquiry, related to the international Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_INTERNATIONAL = + T.let( + :visa_account_verification_international, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity, per inquiry, related to the US-Canada Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_CANADA = + T.let( + :visa_account_verification_canada, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # The Corporate Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_CORPORATE_ACCEPTANCE_FEE = + T.let( + :visa_corporate_acceptance_fee, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # The Consumer Debit Acceptance Fee is charged to issuers and is based on the monthly sales volume of Consumer Debit or Prepaid card transactions. The cashback portion of a Debit and Prepaid card transaction is excluded from the sales volume calculation. + VISA_CONSUMER_DEBIT_ACCEPTANCE_FEE = + T.let( + :visa_consumer_debit_acceptance_fee, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # The Business Acceptance Fee is charged to issuers and is based on the monthly sales volume on Business Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. The cashback portion is included in the sales volume calculation with the exception of a Debit and Prepaid card transactions. + VISA_BUSINESS_DEBIT_ACCEPTANCE_FEE = + T.let( + :visa_business_debit_acceptance_fee, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # The Purchasing Card Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_PURCHASING_ACCEPTANCE_FEE = + T.let( + :visa_purchasing_acceptance_fee, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity and fees for the processing of a sales draft original for a purchase transaction. + VISA_PURCHASE_DOMESTIC = + T.let( + :visa_purchase_domestic, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Activity and fees for the processing of an international sales draft original for a purchase transaction. + VISA_PURCHASE_INTERNATIONAL = + T.let( + :visa_purchase_international, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Apple Pay Credit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_CREDIT_PURCHASE_TOKEN = + T.let( + :visa_credit_purchase_token, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Apple Pay Debit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_DEBIT_PURCHASE_TOKEN = + T.let( + :visa_debit_purchase_token, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # A per transaction fee assessed for Base II financial draft - Issuer. + VISA_CLEARING_TRANSMISSION = + T.let( + :visa_clearing_transmission, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer charge for Non-Financial OCT/AFT Authorization 0100 and Declined Financial OCT/AFT 0200 transactions. + VISA_DIRECT_AUTHORIZATION = + T.let( + :visa_direct_authorization, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Data processing charge for Visa Direct OCTs for all business application identifiers (BAIs) other than money transfer-bank initiated (BI). BASE II transactions. + VISA_DIRECT_TRANSACTION_DOMESTIC = + T.let( + :visa_direct_transaction_domestic, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer card service fee for Commercial Credit cards. + VISA_SERVICE_COMMERCIAL_CREDIT = + T.let( + :visa_service_commercial_credit, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer Advertising Service Fee for Commercial Credit cards. + VISA_ADVERTISING_SERVICE_COMMERCIAL_CREDIT = + T.let( + :visa_advertising_service_commercial_credit, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer Community Growth Acceleration Program Fee. + VISA_COMMUNITY_GROWTH_ACCELERATION_PROGRAM = + T.let( + :visa_community_growth_acceleration_program, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Issuer Processing Guarantee for Commercial Credit cards. + VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT = + T.let( + :visa_processing_guarantee_commercial_credit, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network. + PULSE_SWITCH_FEE = + T.let( + :pulse_switch_fee, + Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol + ) + + sig do + override.returns( + T::Array[Increase::CardPayment::SchemeFee::FeeType::TaggedSymbol] + ) + end + def self.values + end + end + end + class State < 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 bf9351ea1..2a132cfe7 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -9,6 +9,7 @@ module Increase digital_wallet_token_id: String?, elements: ::Array[Increase::CardPayment::Element], physical_card_id: String?, + scheme_fees: ::Array[Increase::CardPayment::SchemeFee], state: Increase::CardPayment::State, type: Increase::Models::CardPayment::type_ } @@ -28,6 +29,8 @@ module Increase attr_accessor physical_card_id: String? + attr_accessor scheme_fees: ::Array[Increase::CardPayment::SchemeFee] + attr_accessor state: Increase::CardPayment::State attr_accessor type: Increase::Models::CardPayment::type_ @@ -40,6 +43,7 @@ module Increase digital_wallet_token_id: String?, elements: ::Array[Increase::CardPayment::Element], physical_card_id: String?, + scheme_fees: ::Array[Increase::CardPayment::SchemeFee], state: Increase::CardPayment::State, type: Increase::Models::CardPayment::type_ ) -> void @@ -52,6 +56,7 @@ module Increase digital_wallet_token_id: String?, elements: ::Array[Increase::CardPayment::Element], physical_card_id: String?, + scheme_fees: ::Array[Increase::CardPayment::SchemeFee], state: Increase::CardPayment::State, type: Increase::Models::CardPayment::type_ } @@ -7532,6 +7537,183 @@ module Increase end end + type scheme_fee = + { + amount: String, + created_at: Time, + currency: Increase::Models::CardPayment::SchemeFee::currency, + fee_type: Increase::Models::CardPayment::SchemeFee::fee_type, + fixed_component: String?, + variable_rate: String? + } + + class SchemeFee < Increase::Internal::Type::BaseModel + attr_accessor amount: String + + attr_accessor created_at: Time + + attr_accessor currency: Increase::Models::CardPayment::SchemeFee::currency + + attr_accessor fee_type: Increase::Models::CardPayment::SchemeFee::fee_type + + attr_accessor fixed_component: String? + + attr_accessor variable_rate: String? + + def initialize: ( + amount: String, + created_at: Time, + currency: Increase::Models::CardPayment::SchemeFee::currency, + fee_type: Increase::Models::CardPayment::SchemeFee::fee_type, + fixed_component: String?, + variable_rate: String? + ) -> void + + def to_hash: -> { + amount: String, + created_at: Time, + currency: Increase::Models::CardPayment::SchemeFee::currency, + fee_type: Increase::Models::CardPayment::SchemeFee::fee_type, + fixed_component: String?, + variable_rate: String? + } + + type currency = :USD + + module Currency + extend Increase::Internal::Type::Enum + + # US Dollar (USD) + USD: :USD + + def self?.values: -> ::Array[Increase::Models::CardPayment::SchemeFee::currency] + end + + type fee_type = + :visa_international_service_assessment_single_currency + | :visa_international_service_assessment_cross_currency + | :visa_authorization_domestic_point_of_sale + | :visa_authorization_international_point_of_sale + | :visa_authorization_canada_point_of_sale + | :visa_authorization_reversal_point_of_sale + | :visa_authorization_reversal_international_point_of_sale + | :visa_authorization_address_verification_service + | :visa_advanced_authorization + | :visa_message_transmission + | :visa_account_verification_domestic + | :visa_account_verification_international + | :visa_account_verification_canada + | :visa_corporate_acceptance_fee + | :visa_consumer_debit_acceptance_fee + | :visa_business_debit_acceptance_fee + | :visa_purchasing_acceptance_fee + | :visa_purchase_domestic + | :visa_purchase_international + | :visa_credit_purchase_token + | :visa_debit_purchase_token + | :visa_clearing_transmission + | :visa_direct_authorization + | :visa_direct_transaction_domestic + | :visa_service_commercial_credit + | :visa_advertising_service_commercial_credit + | :visa_community_growth_acceleration_program + | :visa_processing_guarantee_commercial_credit + | :pulse_switch_fee + + module FeeType + extend Increase::Internal::Type::Enum + + # International Service Assessment (ISA) single-currency is a fee assessed by the card network for cross-border transactions presented and settled in the same currency. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_SINGLE_CURRENCY: :visa_international_service_assessment_single_currency + + # International Service Assessment (ISA) cross-currency is a fee assessed by the card network for cross-border transactions presented and settled in different currencies. + VISA_INTERNATIONAL_SERVICE_ASSESSMENT_CROSS_CURRENCY: :visa_international_service_assessment_cross_currency + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_DOMESTIC_POINT_OF_SALE: :visa_authorization_domestic_point_of_sale + + # Activity and charges for Visa Settlement System processing for POS (Point-Of-Sale) International authorization transactions. Authorization is the process of approving or declining the transaction amount specified. The fee is assessed to the Issuer. + VISA_AUTHORIZATION_INTERNATIONAL_POINT_OF_SALE: :visa_authorization_international_point_of_sale + + # Activity and charges for Visa Settlement System processing for Canada Region POS (Point-of-Sale) authorization transactions. Authorization is the process of approving or declining the transaction amount specified. + VISA_AUTHORIZATION_CANADA_POINT_OF_SALE: :visa_authorization_canada_point_of_sale + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_POINT_OF_SALE: :visa_authorization_reversal_point_of_sale + + # Activity only for Visa Settlement System authorization processing of POS (Point-Of-Sale) International reversal transactions. Authorization reversal represents a VSS message that undoes the complete or partial actions of a previous authorization request. + VISA_AUTHORIZATION_REVERSAL_INTERNATIONAL_POINT_OF_SALE: :visa_authorization_reversal_international_point_of_sale + + # A per Address Verification Service (AVS) result fee. Applies to all usable AVS result codes. + VISA_AUTHORIZATION_ADDRESS_VERIFICATION_SERVICE: :visa_authorization_address_verification_service + + # Advanced Authorization is a fraud detection tool that monitors and risk evaluates 100 percent of US VisaNet authorizations in real-time. Activity related to Purchase (includes Signature Authenticated Visa and PIN Authenticated Visa Debit (PAVD) transactions). + VISA_ADVANCED_AUTHORIZATION: :visa_advanced_authorization + + # Issuer Transactions Visa represents a charge based on total actual monthly processing (Visa transactions only) through a VisaNet Access Point (VAP). Charges are assessed to the processor for each VisaNet Access Point. + VISA_MESSAGE_TRANSMISSION: :visa_message_transmission + + # Activity, per inquiry, related to the domestic Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_DOMESTIC: :visa_account_verification_domestic + + # Activity, per inquiry, related to the international Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_INTERNATIONAL: :visa_account_verification_international + + # Activity, per inquiry, related to the US-Canada Issuer for Account Number Verification. + VISA_ACCOUNT_VERIFICATION_CANADA: :visa_account_verification_canada + + # The Corporate Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_CORPORATE_ACCEPTANCE_FEE: :visa_corporate_acceptance_fee + + # The Consumer Debit Acceptance Fee is charged to issuers and is based on the monthly sales volume of Consumer Debit or Prepaid card transactions. The cashback portion of a Debit and Prepaid card transaction is excluded from the sales volume calculation. + VISA_CONSUMER_DEBIT_ACCEPTANCE_FEE: :visa_consumer_debit_acceptance_fee + + # The Business Acceptance Fee is charged to issuers and is based on the monthly sales volume on Business Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. The cashback portion is included in the sales volume calculation with the exception of a Debit and Prepaid card transactions. + VISA_BUSINESS_DEBIT_ACCEPTANCE_FEE: :visa_business_debit_acceptance_fee + + # The Purchasing Card Acceptance Fee is charged to issuers and is based on the monthly sales volume on Commercial and Government Debit, Prepaid, Credit, Charge, or Deferred Debit card transactions. + VISA_PURCHASING_ACCEPTANCE_FEE: :visa_purchasing_acceptance_fee + + # Activity and fees for the processing of a sales draft original for a purchase transaction. + VISA_PURCHASE_DOMESTIC: :visa_purchase_domestic + + # Activity and fees for the processing of an international sales draft original for a purchase transaction. + VISA_PURCHASE_INTERNATIONAL: :visa_purchase_international + + # Apple Pay Credit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_CREDIT_PURCHASE_TOKEN: :visa_credit_purchase_token + + # Apple Pay Debit Product Token Purchase Original Transactions. This fee is billed by Visa on behalf of Apple Inc. for Apple Pay transactions. + VISA_DEBIT_PURCHASE_TOKEN: :visa_debit_purchase_token + + # A per transaction fee assessed for Base II financial draft - Issuer. + VISA_CLEARING_TRANSMISSION: :visa_clearing_transmission + + # Issuer charge for Non-Financial OCT/AFT Authorization 0100 and Declined Financial OCT/AFT 0200 transactions. + VISA_DIRECT_AUTHORIZATION: :visa_direct_authorization + + # Data processing charge for Visa Direct OCTs for all business application identifiers (BAIs) other than money transfer-bank initiated (BI). BASE II transactions. + VISA_DIRECT_TRANSACTION_DOMESTIC: :visa_direct_transaction_domestic + + # Issuer card service fee for Commercial Credit cards. + VISA_SERVICE_COMMERCIAL_CREDIT: :visa_service_commercial_credit + + # Issuer Advertising Service Fee for Commercial Credit cards. + VISA_ADVERTISING_SERVICE_COMMERCIAL_CREDIT: :visa_advertising_service_commercial_credit + + # Issuer Community Growth Acceleration Program Fee. + VISA_COMMUNITY_GROWTH_ACCELERATION_PROGRAM: :visa_community_growth_acceleration_program + + # Issuer Processing Guarantee for Commercial Credit cards. + VISA_PROCESSING_GUARANTEE_COMMERCIAL_CREDIT: :visa_processing_guarantee_commercial_credit + + # Pulse Switch Fee is a fee charged by the Pulse network for processing transactions on its network. + PULSE_SWITCH_FEE: :pulse_switch_fee + + def self?.values: -> ::Array[Increase::Models::CardPayment::SchemeFee::fee_type] + end + end + type state = { authorized_amount: Integer, diff --git a/test/increase/resources/card_payments_test.rb b/test/increase/resources/card_payments_test.rb index e2400b696..9d61ec5ed 100644 --- a/test/increase/resources/card_payments_test.rb +++ b/test/increase/resources/card_payments_test.rb @@ -19,6 +19,7 @@ def test_retrieve digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } @@ -48,6 +49,7 @@ def test_list digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } diff --git a/test/increase/resources/simulations/card_authorization_expirations_test.rb b/test/increase/resources/simulations/card_authorization_expirations_test.rb index 03a402ff5..738437d5a 100644 --- a/test/increase/resources/simulations/card_authorization_expirations_test.rb +++ b/test/increase/resources/simulations/card_authorization_expirations_test.rb @@ -22,6 +22,7 @@ def test_create_required_params digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } diff --git a/test/increase/resources/simulations/card_balance_inquiries_test.rb b/test/increase/resources/simulations/card_balance_inquiries_test.rb index fe7cf46e5..9c76b7bdc 100644 --- a/test/increase/resources/simulations/card_balance_inquiries_test.rb +++ b/test/increase/resources/simulations/card_balance_inquiries_test.rb @@ -19,6 +19,7 @@ def test_create digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } diff --git a/test/increase/resources/simulations/card_fuel_confirmations_test.rb b/test/increase/resources/simulations/card_fuel_confirmations_test.rb index 226659026..d5f171ccc 100644 --- a/test/increase/resources/simulations/card_fuel_confirmations_test.rb +++ b/test/increase/resources/simulations/card_fuel_confirmations_test.rb @@ -23,6 +23,7 @@ def test_create_required_params digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } diff --git a/test/increase/resources/simulations/card_increments_test.rb b/test/increase/resources/simulations/card_increments_test.rb index b6f828a39..96457d6bf 100644 --- a/test/increase/resources/simulations/card_increments_test.rb +++ b/test/increase/resources/simulations/card_increments_test.rb @@ -23,6 +23,7 @@ def test_create_required_params digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } diff --git a/test/increase/resources/simulations/card_reversals_test.rb b/test/increase/resources/simulations/card_reversals_test.rb index 8195f9cdd..951f37b87 100644 --- a/test/increase/resources/simulations/card_reversals_test.rb +++ b/test/increase/resources/simulations/card_reversals_test.rb @@ -20,6 +20,7 @@ def test_create_required_params digital_wallet_token_id: String | nil, elements: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::Element]), physical_card_id: String | nil, + scheme_fees: ^(Increase::Internal::Type::ArrayOf[Increase::CardPayment::SchemeFee]), state: Increase::CardPayment::State, type: Increase::CardPayment::Type } From 48cc0aa20e7e6939c369d7c7692bcaad417c1511 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:32:10 +0000 Subject: [PATCH 2/2] release: 1.213.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 b83f09c2b..7ed072018 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.212.0" + ".": "1.213.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 280d3600f..31756f4a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.213.0 (2026-02-23) + +Full Changelog: [v1.212.0...v1.213.0](https://github.com/Increase/increase-ruby/compare/v1.212.0...v1.213.0) + +### Features + +* **api:** api update ([27ad253](https://github.com/Increase/increase-ruby/commit/27ad253d411648e5e305016495f73495c31ccb0d)) + ## 1.212.0 (2026-02-23) Full Changelog: [v1.211.0...v1.212.0](https://github.com/Increase/increase-ruby/compare/v1.211.0...v1.212.0) diff --git a/Gemfile.lock b/Gemfile.lock index b8e753455..ddfec589e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.212.0) + increase (1.213.0) cgi connection_pool diff --git a/README.md b/README.md index 853a452c8..651ea8388 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.212.0" +gem "increase", "~> 1.213.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 20169c088..4303d0b15 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.212.0" + VERSION = "1.213.0" end