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.185.0"
".": "1.186.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: 232
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-92af5c57fac9c88bad16079e7b437371720d00c368fd4eea5987f94b25855fcb.yml
openapi_spec_hash: 7831d7cdab2d8972f5193916c617c9a2
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-a822d0695f48967e594a88eef888b826cd51b62959bd4b3d0163b7d010bab969.yml
openapi_spec_hash: 95ea277ed84c04aefd25bcb63ae4e2e5
config_hash: 27e44ed36b9c5617b580ead7231a594a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.186.0 (2026-01-28)

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

### Features

* **api:** api update ([390da85](https://github.com/Increase/increase-ruby/commit/390da85a509b0b81f7fd823cc5b956765dc1ba80))

## 1.185.0 (2026-01-27)

Full Changelog: [v1.184.0...v1.185.0](https://github.com/Increase/increase-ruby/compare/v1.184.0...v1.185.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.185.0)
increase (1.186.0)
cgi
connection_pool

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.185.0"
gem "increase", "~> 1.186.0"
```

<!-- x-release-please-end -->
Expand Down
26 changes: 25 additions & 1 deletion lib/increase/models/card_dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,14 @@ class CardDispute < Increase::Internal::Type::BaseModel
# @return [Increase::Models::CardDispute::Win, nil]
required :win, -> { Increase::CardDispute::Win }, nil?: true

# @!method initialize(id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, status:, type:, user_submission_required_by:, visa:, win:)
# @!attribute withdrawal
# If the Card Dispute has been withdrawn, this will contain details of the
# withdrawal.
#
# @return [Increase::Models::CardDispute::Withdrawal, nil]
required :withdrawal, -> { Increase::CardDispute::Withdrawal }, nil?: true

# @!method initialize(id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, status:, type:, user_submission_required_by:, visa:, win:, withdrawal:)
# Some parameter documentations has been truncated, see
# {Increase::Models::CardDispute} for more details.
#
Expand Down Expand Up @@ -125,6 +132,8 @@ class CardDispute < Increase::Internal::Type::BaseModel
# @param visa [Increase::Models::CardDispute::Visa, nil] Card Dispute information for card payments processed over Visa's network. This f
#
# @param win [Increase::Models::CardDispute::Win, nil] If the Card Dispute's status is `won`, this will contain details of the won disp
#
# @param withdrawal [Increase::Models::CardDispute::Withdrawal, nil] If the Card Dispute has been withdrawn, this will contain details of the withdra

# @see Increase::Models::CardDispute#loss
class Loss < Increase::Internal::Type::BaseModel
Expand Down Expand Up @@ -5281,6 +5290,21 @@ class Win < Increase::Internal::Type::BaseModel
#
# @param won_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
end

# @see Increase::Models::CardDispute#withdrawal
class Withdrawal < Increase::Internal::Type::BaseModel
# @!attribute explanation
# The explanation for the withdrawal of the Card Dispute.
#
# @return [String, nil]
required :explanation, String, nil?: true

# @!method initialize(explanation:)
# If the Card Dispute has been withdrawn, this will contain details of the
# withdrawal.
#
# @param explanation [String, nil] The explanation for the withdrawal of the Card Dispute.
end
end
end
end
10 changes: 9 additions & 1 deletion lib/increase/models/card_dispute_withdraw_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ class CardDisputeWithdrawParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!method initialize(request_options: {})
# @!attribute explanation
# The explanation for withdrawing the Card Dispute.
#
# @return [String, nil]
optional :explanation, String

# @!method initialize(explanation: nil, request_options: {})
# @param explanation [String] The explanation for withdrawing the Card Dispute.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
8 changes: 6 additions & 2 deletions lib/increase/resources/card_disputes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,25 @@ def submit_user_submission(card_dispute_id, params)

# Withdraw a Card Dispute
#
# @overload withdraw(card_dispute_id, request_options: {})
# @overload withdraw(card_dispute_id, explanation: nil, request_options: {})
#
# @param card_dispute_id [String] The identifier of the Card Dispute to withdraw.
#
# @param explanation [String] The explanation for withdrawing the Card Dispute.
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [Increase::Models::CardDispute]
#
# @see Increase::Models::CardDisputeWithdrawParams
def withdraw(card_dispute_id, params = {})
parsed, options = Increase::CardDisputeWithdrawParams.dump_request(params)
@client.request(
method: :post,
path: ["card_disputes/%1$s/withdraw", card_dispute_id],
body: parsed,
model: Increase::CardDispute,
options: params[:request_options]
options: options
)
end

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.185.0"
VERSION = "1.186.0"
end
50 changes: 47 additions & 3 deletions rbi/increase/models/card_dispute.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ module Increase
sig { params(win: T.nilable(Increase::CardDispute::Win::OrHash)).void }
attr_writer :win

# If the Card Dispute has been withdrawn, this will contain details of the
# withdrawal.
sig { returns(T.nilable(Increase::CardDispute::Withdrawal)) }
attr_reader :withdrawal

sig do
params(
withdrawal: T.nilable(Increase::CardDispute::Withdrawal::OrHash)
).void
end
attr_writer :withdrawal

# If unauthorized activity occurs on a card, you can create a Card Dispute and
# we'll work with the card networks to return the funds if appropriate.
sig do
Expand All @@ -96,7 +108,8 @@ module Increase
type: Increase::CardDispute::Type::OrSymbol,
user_submission_required_by: T.nilable(Time),
visa: T.nilable(Increase::CardDispute::Visa::OrHash),
win: T.nilable(Increase::CardDispute::Win::OrHash)
win: T.nilable(Increase::CardDispute::Win::OrHash),
withdrawal: T.nilable(Increase::CardDispute::Withdrawal::OrHash)
).returns(T.attached_class)
end
def self.new(
Expand Down Expand Up @@ -136,7 +149,10 @@ module Increase
visa:,
# If the Card Dispute's status is `won`, this will contain details of the won
# dispute.
win:
win:,
# If the Card Dispute has been withdrawn, this will contain details of the
# withdrawal.
withdrawal:
)
end

Expand All @@ -155,7 +171,8 @@ module Increase
type: Increase::CardDispute::Type::TaggedSymbol,
user_submission_required_by: T.nilable(Time),
visa: T.nilable(Increase::CardDispute::Visa),
win: T.nilable(Increase::CardDispute::Win)
win: T.nilable(Increase::CardDispute::Win),
withdrawal: T.nilable(Increase::CardDispute::Withdrawal)
}
)
end
Expand Down Expand Up @@ -11066,6 +11083,33 @@ module Increase
def to_hash
end
end

class Withdrawal < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::CardDispute::Withdrawal,
Increase::Internal::AnyHash
)
end

# The explanation for the withdrawal of the Card Dispute.
sig { returns(T.nilable(String)) }
attr_accessor :explanation

# If the Card Dispute has been withdrawn, this will contain details of the
# withdrawal.
sig { params(explanation: T.nilable(String)).returns(T.attached_class) }
def self.new(
# The explanation for the withdrawal of the Card Dispute.
explanation:
)
end

sig { override.returns({ explanation: T.nilable(String) }) }
def to_hash
end
end
end
end
end
26 changes: 21 additions & 5 deletions rbi/increase/models/card_dispute_withdraw_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,31 @@ module Increase
)
end

# The explanation for withdrawing the Card Dispute.
sig { returns(T.nilable(String)) }
attr_reader :explanation

sig { params(explanation: String).void }
attr_writer :explanation

sig do
params(request_options: Increase::RequestOptions::OrHash).returns(
T.attached_class
)
params(
explanation: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(request_options: {})
def self.new(
# The explanation for withdrawing the Card Dispute.
explanation: nil,
request_options: {}
)
end

sig { override.returns({ request_options: Increase::RequestOptions }) }
sig do
override.returns(
{ explanation: String, request_options: Increase::RequestOptions }
)
end
def to_hash
end
end
Expand Down
3 changes: 3 additions & 0 deletions rbi/increase/resources/card_disputes.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,15 @@ module Increase
sig do
params(
card_dispute_id: String,
explanation: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::CardDispute)
end
def withdraw(
# The identifier of the Card Dispute to withdraw.
card_dispute_id,
# The explanation for withdrawing the Card Dispute.
explanation: nil,
request_options: {}
)
end
Expand Down
21 changes: 18 additions & 3 deletions sig/increase/models/card_dispute.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ module Increase
type: Increase::Models::CardDispute::type_,
user_submission_required_by: Time?,
visa: Increase::CardDispute::Visa?,
win: Increase::CardDispute::Win?
win: Increase::CardDispute::Win?,
withdrawal: Increase::CardDispute::Withdrawal?
}

class CardDispute < Increase::Internal::Type::BaseModel
Expand Down Expand Up @@ -44,6 +45,8 @@ module Increase

attr_accessor win: Increase::CardDispute::Win?

attr_accessor withdrawal: Increase::CardDispute::Withdrawal?

def initialize: (
id: String,
amount: Integer,
Expand All @@ -57,7 +60,8 @@ module Increase
type: Increase::Models::CardDispute::type_,
user_submission_required_by: Time?,
visa: Increase::CardDispute::Visa?,
win: Increase::CardDispute::Win?
win: Increase::CardDispute::Win?,
withdrawal: Increase::CardDispute::Withdrawal?
) -> void

def to_hash: -> {
Expand All @@ -73,7 +77,8 @@ module Increase
type: Increase::Models::CardDispute::type_,
user_submission_required_by: Time?,
visa: Increase::CardDispute::Visa?,
win: Increase::CardDispute::Win?
win: Increase::CardDispute::Win?,
withdrawal: Increase::CardDispute::Withdrawal?
}

type loss =
Expand Down Expand Up @@ -4097,6 +4102,16 @@ module Increase

def to_hash: -> { won_at: Time }
end

type withdrawal = { explanation: String? }

class Withdrawal < Increase::Internal::Type::BaseModel
attr_accessor explanation: String?

def initialize: (explanation: String?) -> void

def to_hash: -> { explanation: String? }
end
end
end
end
16 changes: 13 additions & 3 deletions sig/increase/models/card_dispute_withdraw_params.rbs
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
module Increase
module Models
type card_dispute_withdraw_params =
{ } & Increase::Internal::Type::request_parameters
{ explanation: String } & Increase::Internal::Type::request_parameters

class CardDisputeWithdrawParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

def initialize: (?request_options: Increase::request_opts) -> void
attr_reader explanation: String?

def to_hash: -> { request_options: Increase::RequestOptions }
def explanation=: (String) -> String

def initialize: (
?explanation: String,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
explanation: String,
request_options: Increase::RequestOptions
}
end
end
end
1 change: 1 addition & 0 deletions sig/increase/resources/card_disputes.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module Increase

def withdraw: (
String card_dispute_id,
?explanation: String,
?request_options: Increase::request_opts
) -> Increase::CardDispute

Expand Down
Loading