diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c174a8979..71a38f284 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.73.0" + ".": "1.74.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index cb9d34e48..7efaaa57e 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 217 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-10d8a2e25ff71893e14a81477ef7dbbf761af689e6ff074e13da10729a75cc9d.yml -openapi_spec_hash: 77a4f7c4b166e73a84c3b7f4e177631c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-94d559b14c3611637885b103aa75adb26dff816369b1fdb758440e288d1ea83b.yml +openapi_spec_hash: 4e257b20b410526bc54fd6ced9db3a5d config_hash: e1885b38eded054b77308a024c5d80cc diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c45b80c2..bdb207e69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.74.0 (2025-09-12) + +Full Changelog: [v1.73.0...v1.74.0](https://github.com/Increase/increase-ruby/compare/v1.73.0...v1.74.0) + +### Features + +* **api:** api update ([a039096](https://github.com/Increase/increase-ruby/commit/a039096e79751ab557fae350119599801bcebb1c)) + ## 1.73.0 (2025-09-09) Full Changelog: [v1.72.0...v1.73.0](https://github.com/Increase/increase-ruby/compare/v1.72.0...v1.73.0) diff --git a/Gemfile.lock b/Gemfile.lock index eb1bd92b7..77129d662 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.73.0) + increase (1.74.0) connection_pool GEM diff --git a/README.md b/README.md index 42672cbc6..cc8d263a5 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.73.0" +gem "increase", "~> 1.74.0" ``` diff --git a/lib/increase/models/real_time_decision_action_params.rb b/lib/increase/models/real_time_decision_action_params.rb index 8684387b9..bd60eb4a6 100644 --- a/lib/increase/models/real_time_decision_action_params.rb +++ b/lib/increase/models/real_time_decision_action_params.rb @@ -152,17 +152,7 @@ class CardAuthorization < Increase::Internal::Type::BaseModel # @return [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline, nil] optional :decline, -> { Increase::RealTimeDecisionActionParams::CardAuthorization::Decline } - # @!attribute decline_reason - # The reason the card authorization was declined. This translates to a specific - # decline code that is sent to the card network. This field is deprecated, please - # transition to using the `decline` object as this field will be removed in a - # future release. - # - # @return [Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::DeclineReason, nil] - optional :decline_reason, - enum: -> { Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason } - - # @!method initialize(decision:, approval: nil, decline: nil, decline_reason: nil) + # @!method initialize(decision:, approval: nil, decline: nil) # Some parameter documentations has been truncated, see # {Increase::Models::RealTimeDecisionActionParams::CardAuthorization} for more # details. @@ -175,8 +165,6 @@ class CardAuthorization < Increase::Internal::Type::BaseModel # @param approval [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Approval] If your application approves the authorization, this contains metadata about you # # @param decline [Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline] If your application declines the authorization, this contains details about the - # - # @param decline_reason [Symbol, Increase::Models::RealTimeDecisionActionParams::CardAuthorization::DeclineReason] The reason the card authorization was declined. This translates to a specific de # Whether the card authorization should be approved or declined. # @@ -340,37 +328,6 @@ module Reason # @return [Array] end end - - # The reason the card authorization was declined. This translates to a specific - # decline code that is sent to the card network. This field is deprecated, please - # transition to using the `decline` object as this field will be removed in a - # future release. - # - # @see Increase::Models::RealTimeDecisionActionParams::CardAuthorization#decline_reason - module DeclineReason - extend Increase::Internal::Type::Enum - - # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. - INSUFFICIENT_FUNDS = :insufficient_funds - - # This type of transaction is not allowed for this card. This transaction should not be retried. - TRANSACTION_NEVER_ALLOWED = :transaction_never_allowed - - # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again. - EXCEEDS_APPROVAL_LIMIT = :exceeds_approval_limit - - # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again. - CARD_TEMPORARILY_DISABLED = :card_temporarily_disabled - - # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again. - SUSPECTED_FRAUD = :suspected_fraud - - # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly. - OTHER = :other - - # @!method self.values - # @return [Array] - end end class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 2beb4079c..9c26b97aa 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.73.0" + VERSION = "1.74.0" end diff --git a/rbi/increase/models/real_time_decision_action_params.rbi b/rbi/increase/models/real_time_decision_action_params.rbi index 2f0006796..6c540b78b 100644 --- a/rbi/increase/models/real_time_decision_action_params.rbi +++ b/rbi/increase/models/real_time_decision_action_params.rbi @@ -387,27 +387,6 @@ module Increase end attr_writer :decline - # The reason the card authorization was declined. This translates to a specific - # decline code that is sent to the card network. This field is deprecated, please - # transition to using the `decline` object as this field will be removed in a - # future release. - sig do - returns( - T.nilable( - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol - ) - ) - end - attr_reader :decline_reason - - sig do - params( - decline_reason: - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol - ).void - end - attr_writer :decline_reason - # If the Real-Time Decision relates to a card authorization attempt, this object # contains your response to the authorization. sig do @@ -417,9 +396,7 @@ module Increase approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval::OrHash, decline: - Increase::RealTimeDecisionActionParams::CardAuthorization::Decline::OrHash, - decline_reason: - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol + Increase::RealTimeDecisionActionParams::CardAuthorization::Decline::OrHash ).returns(T.attached_class) end def self.new( @@ -432,12 +409,7 @@ module Increase approval: nil, # If your application declines the authorization, this contains details about the # decline. - decline: nil, - # The reason the card authorization was declined. This translates to a specific - # decline code that is sent to the card network. This field is deprecated, please - # transition to using the `decline` object as this field will be removed in a - # future release. - decline_reason: nil + decline: nil ) end @@ -449,9 +421,7 @@ module Increase approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval, decline: - Increase::RealTimeDecisionActionParams::CardAuthorization::Decline, - decline_reason: - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::OrSymbol + Increase::RealTimeDecisionActionParams::CardAuthorization::Decline } ) end @@ -824,75 +794,6 @@ module Increase end end end - - # The reason the card authorization was declined. This translates to a specific - # decline code that is sent to the card network. This field is deprecated, please - # transition to using the `decline` object as this field will be removed in a - # future release. - module DeclineReason - extend Increase::Internal::Type::Enum - - TaggedSymbol = - T.type_alias do - T.all( - Symbol, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason - ) - end - OrSymbol = T.type_alias { T.any(Symbol, String) } - - # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. - INSUFFICIENT_FUNDS = - T.let( - :insufficient_funds, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - # This type of transaction is not allowed for this card. This transaction should not be retried. - TRANSACTION_NEVER_ALLOWED = - T.let( - :transaction_never_allowed, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again. - EXCEEDS_APPROVAL_LIMIT = - T.let( - :exceeds_approval_limit, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again. - CARD_TEMPORARILY_DISABLED = - T.let( - :card_temporarily_disabled, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again. - SUSPECTED_FRAUD = - T.let( - :suspected_fraud, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly. - OTHER = - T.let( - :other, - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ) - - sig do - override.returns( - T::Array[ - Increase::RealTimeDecisionActionParams::CardAuthorization::DeclineReason::TaggedSymbol - ] - ) - end - def self.values - end - end end class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel diff --git a/sig/increase/models/real_time_decision_action_params.rbs b/sig/increase/models/real_time_decision_action_params.rbs index 070193645..5cb204785 100644 --- a/sig/increase/models/real_time_decision_action_params.rbs +++ b/sig/increase/models/real_time_decision_action_params.rbs @@ -131,8 +131,7 @@ module Increase { decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision, approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval, - decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline, - decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason + decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline } class CardAuthorization < Increase::Internal::Type::BaseModel @@ -150,24 +149,16 @@ module Increase Increase::RealTimeDecisionActionParams::CardAuthorization::Decline ) -> Increase::RealTimeDecisionActionParams::CardAuthorization::Decline - attr_reader decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason? - - def decline_reason=: ( - Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason - ) -> Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason - def initialize: ( decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision, ?approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval, - ?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline, - ?decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason + ?decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline ) -> void def to_hash: -> { decision: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decision, approval: Increase::RealTimeDecisionActionParams::CardAuthorization::Approval, - decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline, - decline_reason: Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason + decline: Increase::RealTimeDecisionActionParams::CardAuthorization::Decline } type decision = :approve | :decline @@ -303,38 +294,6 @@ module Increase def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::Decline::reason] end end - - type decline_reason = - :insufficient_funds - | :transaction_never_allowed - | :exceeds_approval_limit - | :card_temporarily_disabled - | :suspected_fraud - | :other - - module DeclineReason - extend Increase::Internal::Type::Enum - - # The cardholder does not have sufficient funds to cover the transaction. The merchant may attempt to process the transaction again. - INSUFFICIENT_FUNDS: :insufficient_funds - - # This type of transaction is not allowed for this card. This transaction should not be retried. - TRANSACTION_NEVER_ALLOWED: :transaction_never_allowed - - # The transaction amount exceeds the cardholder's approval limit. The merchant may attempt to process the transaction again. - EXCEEDS_APPROVAL_LIMIT: :exceeds_approval_limit - - # The card has been temporarily disabled or not yet activated. The merchant may attempt to process the transaction again. - CARD_TEMPORARILY_DISABLED: :card_temporarily_disabled - - # The transaction is suspected to be fraudulent. The merchant may attempt to process the transaction again. - SUSPECTED_FRAUD: :suspected_fraud - - # The transaction was declined for another reason. The merchant may attempt to process the transaction again. This should be used sparingly. - OTHER: :other - - def self?.values: -> ::Array[Increase::Models::RealTimeDecisionActionParams::CardAuthorization::decline_reason] - end end type digital_wallet_authentication =