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.115.0"
".": "1.116.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: 228
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-9848b3b7725425c712a5fba932c836f3210adf21b9b7a232370f13960790158c.yml
openapi_spec_hash: 49090a79a8225d8ad36fe249aac2a12a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-6fc6504fd01ec9082a1f98aedf474846382b0196143751c1cae21fb7651c7fd1.yml
openapi_spec_hash: 7b2f1e569444dec8f4e02a26adf6eae0
config_hash: eb2035151c7b49c2f12caf55469b8f9a
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.116.0 (2025-10-27)

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

### Features

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

## 1.115.0 (2025-10-26)

Full Changelog: [v1.114.0...v1.115.0](https://github.com/Increase/increase-ruby/compare/v1.114.0...v1.115.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.115.0)
increase (1.116.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.115.0"
gem "increase", "~> 1.116.0"
```

<!-- x-release-please-end -->
Expand Down
11 changes: 10 additions & 1 deletion lib/increase/models/simulations/card_refund_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ class CardRefundCreateParams < Increase::Internal::Type::BaseModel
extend Increase::Internal::Type::RequestParameters::Converter
include Increase::Internal::Type::RequestParameters

# @!attribute amount
# The refund amount in cents. Pulled off the `pending_transaction` or the
# `transaction` if not provided.
#
# @return [Integer, nil]
optional :amount, Integer

# @!attribute pending_transaction_id
# The identifier of the Pending Transaction for the refund authorization. If this
# is provided, `transaction` must not be provided as a refund with a refund
Expand All @@ -23,10 +30,12 @@ class CardRefundCreateParams < Increase::Internal::Type::BaseModel
# @return [String, nil]
optional :transaction_id, String

# @!method initialize(pending_transaction_id: nil, transaction_id: nil, request_options: {})
# @!method initialize(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {Increase::Models::Simulations::CardRefundCreateParams} for more details.
#
# @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
#
# @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
#
# @param transaction_id [String] The identifier for the Transaction to refund. The Transaction's source must have
Expand Down
4 changes: 3 additions & 1 deletion lib/increase/resources/simulations/card_refunds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class CardRefunds
# Simulates refunding a card transaction. The full value of the original sandbox
# transaction is refunded.
#
# @overload create(pending_transaction_id: nil, transaction_id: nil, request_options: {})
# @overload create(amount: nil, pending_transaction_id: nil, transaction_id: nil, request_options: {})
#
# @param amount [Integer] The refund amount in cents. Pulled off the `pending_transaction` or the `transac
#
# @param pending_transaction_id [String] The identifier of the Pending Transaction for the refund authorization. If this
#
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.115.0"
VERSION = "1.116.0"
end
13 changes: 13 additions & 0 deletions rbi/increase/models/simulations/card_refund_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ module Increase
)
end

# The refund amount in cents. Pulled off the `pending_transaction` or the
# `transaction` if not provided.
sig { returns(T.nilable(Integer)) }
attr_reader :amount

sig { params(amount: Integer).void }
attr_writer :amount

# The identifier of the Pending Transaction for the refund authorization. If this
# is provided, `transaction` must not be provided as a refund with a refund
# authorized can not be linked to a regular transaction.
Expand All @@ -34,12 +42,16 @@ module Increase

sig do
params(
amount: Integer,
pending_transaction_id: String,
transaction_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
# The refund amount in cents. Pulled off the `pending_transaction` or the
# `transaction` if not provided.
amount: nil,
# The identifier of the Pending Transaction for the refund authorization. If this
# is provided, `transaction` must not be provided as a refund with a refund
# authorized can not be linked to a regular transaction.
Expand All @@ -54,6 +66,7 @@ module Increase
sig do
override.returns(
{
amount: Integer,
pending_transaction_id: String,
transaction_id: String,
request_options: Increase::RequestOptions
Expand Down
4 changes: 4 additions & 0 deletions rbi/increase/resources/simulations/card_refunds.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,16 @@ module Increase
# transaction is refunded.
sig do
params(
amount: Integer,
pending_transaction_id: String,
transaction_id: String,
request_options: Increase::RequestOptions::OrHash
).returns(Increase::Transaction)
end
def create(
# The refund amount in cents. Pulled off the `pending_transaction` or the
# `transaction` if not provided.
amount: nil,
# The identifier of the Pending Transaction for the refund authorization. If this
# is provided, `transaction` must not be provided as a refund with a refund
# authorized can not be linked to a regular transaction.
Expand Down
12 changes: 11 additions & 1 deletion sig/increase/models/simulations/card_refund_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ module Increase
module Models
module Simulations
type card_refund_create_params =
{ pending_transaction_id: String, transaction_id: String }
{
amount: Integer,
pending_transaction_id: String,
transaction_id: String
}
& Increase::Internal::Type::request_parameters

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

attr_reader amount: Integer?

def amount=: (Integer) -> Integer

attr_reader pending_transaction_id: String?

def pending_transaction_id=: (String) -> String
Expand All @@ -18,12 +26,14 @@ module Increase
def transaction_id=: (String) -> String

def initialize: (
?amount: Integer,
?pending_transaction_id: String,
?transaction_id: String,
?request_options: Increase::request_opts
) -> void

def to_hash: -> {
amount: Integer,
pending_transaction_id: String,
transaction_id: String,
request_options: Increase::RequestOptions
Expand Down
1 change: 1 addition & 0 deletions sig/increase/resources/simulations/card_refunds.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Increase
class Simulations
class CardRefunds
def create: (
?amount: Integer,
?pending_transaction_id: String,
?transaction_id: String,
?request_options: Increase::request_opts
Expand Down