Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.73.0"
".": "1.74.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
increase (1.73.0)
increase (1.74.0)
connection_pool

GEM
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "increase", "~> 1.73.0"
gem "increase", "~> 1.74.0"
```

<!-- x-release-please-end -->
Expand Down
45 changes: 1 addition & 44 deletions lib/increase/models/real_time_decision_action_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
#
Expand Down Expand Up @@ -340,37 +328,6 @@ module Reason
# @return [Array<Symbol>]
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<Symbol>]
end
end

class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
Expand Down
2 changes: 1 addition & 1 deletion lib/increase/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Increase
VERSION = "1.73.0"
VERSION = "1.74.0"
end
105 changes: 3 additions & 102 deletions rbi/increase/models/real_time_decision_action_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(
Expand All @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
47 changes: 3 additions & 44 deletions sig/increase/models/real_time_decision_action_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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 =
Expand Down