From bcb588d1864aafbf4a1b99b65a02bc37005bf4d2 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:39:45 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- .../models/simulations/card_refund_create_params.rb | 11 ++++++++++- lib/increase/resources/simulations/card_refunds.rb | 4 +++- .../simulations/card_refund_create_params.rbi | 13 +++++++++++++ rbi/increase/resources/simulations/card_refunds.rbi | 4 ++++ .../simulations/card_refund_create_params.rbs | 12 +++++++++++- sig/increase/resources/simulations/card_refunds.rbs | 1 + 7 files changed, 44 insertions(+), 5 deletions(-) diff --git a/.stats.yml b/.stats.yml index 23a163cf..3af61a35 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/lib/increase/models/simulations/card_refund_create_params.rb b/lib/increase/models/simulations/card_refund_create_params.rb index cbdf48fc..ee143176 100644 --- a/lib/increase/models/simulations/card_refund_create_params.rb +++ b/lib/increase/models/simulations/card_refund_create_params.rb @@ -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 @@ -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 diff --git a/lib/increase/resources/simulations/card_refunds.rb b/lib/increase/resources/simulations/card_refunds.rb index d079e06c..d134712a 100644 --- a/lib/increase/resources/simulations/card_refunds.rb +++ b/lib/increase/resources/simulations/card_refunds.rb @@ -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 # diff --git a/rbi/increase/models/simulations/card_refund_create_params.rbi b/rbi/increase/models/simulations/card_refund_create_params.rbi index 13b2928e..55fc1c8b 100644 --- a/rbi/increase/models/simulations/card_refund_create_params.rbi +++ b/rbi/increase/models/simulations/card_refund_create_params.rbi @@ -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. @@ -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. @@ -54,6 +66,7 @@ module Increase sig do override.returns( { + amount: Integer, pending_transaction_id: String, transaction_id: String, request_options: Increase::RequestOptions diff --git a/rbi/increase/resources/simulations/card_refunds.rbi b/rbi/increase/resources/simulations/card_refunds.rbi index 741b35d4..acd1f53e 100644 --- a/rbi/increase/resources/simulations/card_refunds.rbi +++ b/rbi/increase/resources/simulations/card_refunds.rbi @@ -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. diff --git a/sig/increase/models/simulations/card_refund_create_params.rbs b/sig/increase/models/simulations/card_refund_create_params.rbs index 29d8d32b..65630586 100644 --- a/sig/increase/models/simulations/card_refund_create_params.rbs +++ b/sig/increase/models/simulations/card_refund_create_params.rbs @@ -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 @@ -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 diff --git a/sig/increase/resources/simulations/card_refunds.rbs b/sig/increase/resources/simulations/card_refunds.rbs index 696a129e..96e0a078 100644 --- a/sig/increase/resources/simulations/card_refunds.rbs +++ b/sig/increase/resources/simulations/card_refunds.rbs @@ -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 From 521b61dc5d9e20a117e68e78e779d773ed979d2f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 27 Oct 2025 17:40:06 +0000 Subject: [PATCH 2/2] release: 1.116.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ Gemfile.lock | 2 +- README.md | 2 +- lib/increase/version.rb | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 9b567905..a7960f00 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.115.0" + ".": "1.116.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 63e2e5d4..4c236547 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 624cbfe6..dfc519fc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.115.0) + increase (1.116.0) connection_pool GEM diff --git a/README.md b/README.md index 8c9e33ca..9f152dca 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.115.0" +gem "increase", "~> 1.116.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index a2de6618..c0ffbed1 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.115.0" + VERSION = "1.116.0" end