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.156.0"
".": "1.157.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: 229
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-56334e000721ba4ee20536271d3acf7231529d7b1f651729e2f4ebe75eb12048.yml
openapi_spec_hash: 45777c412bcbc1aead50c84f78695203
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-942f7494ee0f14c1634ede0989985359cea633e5eece3d761910e7ffd6ac0fd8.yml
openapi_spec_hash: d87134899fb29e27832158facf9d67eb
config_hash: b6f365add90e618b2174634df140826e
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.157.0 (2025-12-08)

Full Changelog: [v1.156.0...v1.157.0](https://github.com/Increase/increase-ruby/compare/v1.156.0...v1.157.0)

### Features

* **api:** api update ([cf2e5f7](https://github.com/Increase/increase-ruby/commit/cf2e5f7ac3084a0a372d004ce292783bebd4bfcf))

## 1.156.0 (2025-12-08)

Full Changelog: [v1.155.0...v1.156.0](https://github.com/Increase/increase-ruby/compare/v1.155.0...v1.156.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.156.0)
increase (1.157.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.156.0"
gem "increase", "~> 1.157.0"
```

<!-- x-release-please-end -->
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,9 @@ module Category
# Occurs whenever a Real-Time Decision is created in response to a card authorization.
REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = :"real_time_decision.card_authorization_requested"

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = :"real_time_decision.card_balance_inquiry_requested"

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = :"real_time_decision.digital_wallet_token_requested"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,9 @@ module In
# Occurs whenever a Real-Time Decision is created in response to a card authorization.
REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = :"real_time_decision.card_authorization_requested"

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = :"real_time_decision.card_balance_inquiry_requested"

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = :"real_time_decision.digital_wallet_token_requested"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,9 @@ module SelectedEventCategory
# Occurs whenever a Real-Time Decision is created in response to a card authorization.
REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = :"real_time_decision.card_authorization_requested"

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = :"real_time_decision.card_balance_inquiry_requested"

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = :"real_time_decision.digital_wallet_token_requested"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,9 @@ module SelectedEventCategory
# Occurs whenever a Real-Time Decision is created in response to a card authorization.
REAL_TIME_DECISION_CARD_AUTHORIZATION_REQUESTED = :"real_time_decision.card_authorization_requested"

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED = :"real_time_decision.card_balance_inquiry_requested"

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED = :"real_time_decision.digital_wallet_token_requested"

Expand Down
1,061 changes: 1,053 additions & 8 deletions lib/increase/models/real_time_decision.rb

Large diffs are not rendered by default.

69 changes: 68 additions & 1 deletion lib/increase/models/real_time_decision_action_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel
# @return [Increase::Models::RealTimeDecisionActionParams::CardAuthorization, nil]
optional :card_authorization, -> { Increase::RealTimeDecisionActionParams::CardAuthorization }

# @!attribute card_balance_inquiry
# If the Real-Time Decision relates to a card balance inquiry attempt, this object
# contains your response to the inquiry.
#
# @return [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry, nil]
optional :card_balance_inquiry, -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry }

# @!attribute digital_wallet_authentication
# If the Real-Time Decision relates to a digital wallet authentication attempt,
# this object contains your response to the authentication.
Expand All @@ -44,7 +51,7 @@ class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel
# @return [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken, nil]
optional :digital_wallet_token, -> { Increase::RealTimeDecisionActionParams::DigitalWalletToken }

# @!method initialize(card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
# @!method initialize(card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, card_balance_inquiry: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::RealTimeDecisionActionParams} for more details.
#
Expand All @@ -54,6 +61,8 @@ class RealTimeDecisionActionParams < Increase::Internal::Type::BaseModel
#
# @param card_authorization [Increase::Models::RealTimeDecisionActionParams::CardAuthorization] If the Real-Time Decision relates to a card authorization attempt, this object c
#
# @param card_balance_inquiry [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry] If the Real-Time Decision relates to a card balance inquiry attempt, this object
#
# @param digital_wallet_authentication [Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication] If the Real-Time Decision relates to a digital wallet authentication attempt, th
#
# @param digital_wallet_token [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken] If the Real-Time Decision relates to a digital wallet token provisioning attempt
Expand Down Expand Up @@ -331,6 +340,64 @@ module Reason
end
end

class CardBalanceInquiry < Increase::Internal::Type::BaseModel
# @!attribute decision
# Whether the card balance inquiry should be approved or declined.
#
# @return [Symbol, Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Decision]
required :decision, enum: -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Decision }

# @!attribute approval
# If your application approves the balance inquiry, this contains metadata about
# your decision to approve.
#
# @return [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Approval, nil]
optional :approval, -> { Increase::RealTimeDecisionActionParams::CardBalanceInquiry::Approval }

# @!method initialize(decision:, approval: nil)
# Some parameter documentations has been truncated, see
# {Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry} for more
# details.
#
# If the Real-Time Decision relates to a card balance inquiry attempt, this object
# contains your response to the inquiry.
#
# @param decision [Symbol, Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Decision] Whether the card balance inquiry should be approved or declined.
#
# @param approval [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry::Approval] If your application approves the balance inquiry, this contains metadata about y

# Whether the card balance inquiry should be approved or declined.
#
# @see Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry#decision
module Decision
extend Increase::Internal::Type::Enum

# Approve the authorization.
APPROVE = :approve

# Decline the authorization.
DECLINE = :decline

# @!method self.values
# @return [Array<Symbol>]
end

# @see Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry#approval
class Approval < Increase::Internal::Type::BaseModel
# @!attribute balance
# The balance on the card in the settlement currency of the transaction.
#
# @return [Integer]
required :balance, Integer

# @!method initialize(balance:)
# If your application approves the balance inquiry, this contains metadata about
# your decision to approve.
#
# @param balance [Integer] The balance on the card in the settlement currency of the transaction.
end
end

class DigitalWalletAuthentication < Increase::Internal::Type::BaseModel
# @!attribute result
# Whether your application was able to deliver the one-time passcode.
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/real_time_decisions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def retrieve(real_time_decision_id, params = {})
#
# Action a Real-Time Decision
#
# @overload action(real_time_decision_id, card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
# @overload action(real_time_decision_id, card_authentication: nil, card_authentication_challenge: nil, card_authorization: nil, card_balance_inquiry: nil, digital_wallet_authentication: nil, digital_wallet_token: nil, request_options: {})
#
# @param real_time_decision_id [String] The identifier of the Real-Time Decision.
#
Expand All @@ -38,6 +38,8 @@ def retrieve(real_time_decision_id, params = {})
#
# @param card_authorization [Increase::Models::RealTimeDecisionActionParams::CardAuthorization] If the Real-Time Decision relates to a card authorization attempt, this object c
#
# @param card_balance_inquiry [Increase::Models::RealTimeDecisionActionParams::CardBalanceInquiry] If the Real-Time Decision relates to a card balance inquiry attempt, this object
#
# @param digital_wallet_authentication [Increase::Models::RealTimeDecisionActionParams::DigitalWalletAuthentication] If the Real-Time Decision relates to a digital wallet authentication attempt, th
#
# @param digital_wallet_token [Increase::Models::RealTimeDecisionActionParams::DigitalWalletToken] If the Real-Time Decision relates to a digital wallet token provisioning attempt
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.156.0"
VERSION = "1.157.0"
end
7 changes: 7 additions & 0 deletions rbi/increase/models/event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,13 @@ module Increase
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
T.let(
:"real_time_decision.card_balance_inquiry_requested",
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,13 @@ module Increase
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
T.let(
:"real_time_decision.card_balance_inquiry_requested",
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,13 @@ module Increase
Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
T.let(
:"real_time_decision.card_balance_inquiry_requested",
Increase::EventSubscription::SelectedEventCategory::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,13 @@ module Increase
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a card balance inquiry.
REAL_TIME_DECISION_CARD_BALANCE_INQUIRY_REQUESTED =
T.let(
:"real_time_decision.card_balance_inquiry_requested",
Increase::EventSubscriptionCreateParams::SelectedEventCategory::TaggedSymbol
)

# Occurs whenever a Real-Time Decision is created in response to a digital wallet provisioning attempt.
REAL_TIME_DECISION_DIGITAL_WALLET_TOKEN_REQUESTED =
T.let(
Expand Down
Loading