From 20c3bcbf49471dabea24969e2c926b1288318d80 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 29 Jul 2025 19:40:45 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- lib/increase/models/card_payment.rb | 29 +++++++++++++++++++++- rbi/increase/models/card_payment.rbi | 36 +++++++++++++++++++++++++--- sig/increase/models/card_payment.rbs | 21 +++++++++++++--- 4 files changed, 81 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index c8c782764..093b8c5d0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-c88cd4c32889125cd4b50b7d6c53436b4bf61f3f1fa4acbb7494e778aa891f40.yml -openapi_spec_hash: d381528847ebbd39bbf825f9fe678925 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-976ae14d2349a3599f9bd33dba52b3c12c265493a8af9e581c71b2e819b8de04.yml +openapi_spec_hash: d8a9fef4dfe082acdf834ac0339e800c config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index 08bfef516..55fc821e9 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -4194,6 +4194,13 @@ class CardReversal < Increase::Internal::Type::BaseModel # @return [String, nil] required :pending_transaction_id, String, nil?: true + # @!attribute presentment_currency + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's + # presentment currency. + # + # @return [String] + required :presentment_currency, String + # @!attribute reversal_amount # The amount of this reversal in the minor unit of the transaction's currency. For # dollars, for example, this is cents. @@ -4201,6 +4208,13 @@ class CardReversal < Increase::Internal::Type::BaseModel # @return [Integer] required :reversal_amount, Integer + # @!attribute reversal_presentment_amount + # The amount of this reversal in the minor unit of the transaction's presentment + # currency. For dollars, for example, this is cents. + # + # @return [Integer] + required :reversal_presentment_amount, Integer + # @!attribute reversal_reason # Why this reversal was initiated. # @@ -4230,7 +4244,14 @@ class CardReversal < Increase::Internal::Type::BaseModel # @return [Integer] required :updated_authorization_amount, Integer - # @!method initialize(id:, card_authorization_id:, currency:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, reversal_amount:, reversal_reason:, terminal_id:, type:, updated_authorization_amount:) + # @!attribute updated_authorization_presentment_amount + # The amount left pending on the Card Authorization in the minor unit of the + # transaction's presentment currency. For dollars, for example, this is cents. + # + # @return [Integer] + required :updated_authorization_presentment_amount, Integer + + # @!method initialize(id:, card_authorization_id:, currency:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_descriptor:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_currency:, reversal_amount:, reversal_presentment_amount:, reversal_reason:, terminal_id:, type:, updated_authorization_amount:, updated_authorization_presentment_amount:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardReversal} for more details. # @@ -4264,8 +4285,12 @@ class CardReversal < Increase::Internal::Type::BaseModel # # @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Card Reversal. # + # @param presentment_currency [String] The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's p + # # @param reversal_amount [Integer] The amount of this reversal in the minor unit of the transaction's currency. For # + # @param reversal_presentment_amount [Integer] The amount of this reversal in the minor unit of the transaction's presentment c + # # @param reversal_reason [Symbol, Increase::Models::CardPayment::Element::CardReversal::ReversalReason, nil] Why this reversal was initiated. # # @param terminal_id [String, nil] The terminal identifier (commonly abbreviated as TID) of the terminal the card i @@ -4273,6 +4298,8 @@ class CardReversal < Increase::Internal::Type::BaseModel # @param type [Symbol, Increase::Models::CardPayment::Element::CardReversal::Type] A constant representing the object's type. For this resource it will always be ` # # @param updated_authorization_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans + # + # @param updated_authorization_presentment_amount [Integer] The amount left pending on the Card Authorization in the minor unit of the trans # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's # currency. diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index ab1449b5b..8ab1b4e4e 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -7729,11 +7729,21 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :pending_transaction_id + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's + # presentment currency. + sig { returns(String) } + attr_accessor :presentment_currency + # The amount of this reversal in the minor unit of the transaction's currency. For # dollars, for example, this is cents. sig { returns(Integer) } attr_accessor :reversal_amount + # The amount of this reversal in the minor unit of the transaction's presentment + # currency. For dollars, for example, this is cents. + sig { returns(Integer) } + attr_accessor :reversal_presentment_amount + # Why this reversal was initiated. sig do returns( @@ -7763,6 +7773,11 @@ module Increase sig { returns(Integer) } attr_accessor :updated_authorization_amount + # The amount left pending on the Card Authorization in the minor unit of the + # transaction's presentment currency. For dollars, for example, this is cents. + sig { returns(Integer) } + attr_accessor :updated_authorization_presentment_amount + # A Card Reversal object. This field will be present in the JSON response if and # only if `category` is equal to `card_reversal`. Card Reversals cancel parts of # or the entirety of an existing Card Authorization. @@ -7784,7 +7799,9 @@ module Increase network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers::OrHash, pending_transaction_id: T.nilable(String), + presentment_currency: String, reversal_amount: Integer, + reversal_presentment_amount: Integer, reversal_reason: T.nilable( Increase::CardPayment::Element::CardReversal::ReversalReason::OrSymbol @@ -7792,7 +7809,8 @@ module Increase terminal_id: T.nilable(String), type: Increase::CardPayment::Element::CardReversal::Type::OrSymbol, - updated_authorization_amount: Integer + updated_authorization_amount: Integer, + updated_authorization_presentment_amount: Integer ).returns(T.attached_class) end def self.new( @@ -7826,9 +7844,15 @@ module Increase network_identifiers:, # The identifier of the Pending Transaction associated with this Card Reversal. pending_transaction_id:, + # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the reversal's + # presentment currency. + presentment_currency:, # The amount of this reversal in the minor unit of the transaction's currency. For # dollars, for example, this is cents. reversal_amount:, + # The amount of this reversal in the minor unit of the transaction's presentment + # currency. For dollars, for example, this is cents. + reversal_presentment_amount:, # Why this reversal was initiated. reversal_reason:, # The terminal identifier (commonly abbreviated as TID) of the terminal the card @@ -7839,7 +7863,10 @@ module Increase type:, # The amount left pending on the Card Authorization in the minor unit of the # transaction's currency. For dollars, for example, this is cents. - updated_authorization_amount: + updated_authorization_amount:, + # The amount left pending on the Card Authorization in the minor unit of the + # transaction's presentment currency. For dollars, for example, this is cents. + updated_authorization_presentment_amount: ) end @@ -7862,7 +7889,9 @@ module Increase network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers, pending_transaction_id: T.nilable(String), + presentment_currency: String, reversal_amount: Integer, + reversal_presentment_amount: Integer, reversal_reason: T.nilable( Increase::CardPayment::Element::CardReversal::ReversalReason::TaggedSymbol @@ -7870,7 +7899,8 @@ module Increase terminal_id: T.nilable(String), type: Increase::CardPayment::Element::CardReversal::Type::TaggedSymbol, - updated_authorization_amount: Integer + updated_authorization_amount: Integer, + updated_authorization_presentment_amount: Integer } ) end diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index dc596e902..3d7bcb258 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -3153,11 +3153,14 @@ module Increase network: Increase::Models::CardPayment::Element::CardReversal::network, network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers, pending_transaction_id: String?, + presentment_currency: String, reversal_amount: Integer, + reversal_presentment_amount: Integer, reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?, terminal_id: String?, type: Increase::Models::CardPayment::Element::CardReversal::type_, - updated_authorization_amount: Integer + updated_authorization_amount: Integer, + updated_authorization_presentment_amount: Integer } class CardReversal < Increase::Internal::Type::BaseModel @@ -3187,8 +3190,12 @@ module Increase attr_accessor pending_transaction_id: String? + attr_accessor presentment_currency: String + attr_accessor reversal_amount: Integer + attr_accessor reversal_presentment_amount: Integer + attr_accessor reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason? attr_accessor terminal_id: String? @@ -3197,6 +3204,8 @@ module Increase attr_accessor updated_authorization_amount: Integer + attr_accessor updated_authorization_presentment_amount: Integer + def initialize: ( id: String, card_authorization_id: String, @@ -3211,11 +3220,14 @@ module Increase network: Increase::Models::CardPayment::Element::CardReversal::network, network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers, pending_transaction_id: String?, + presentment_currency: String, reversal_amount: Integer, + reversal_presentment_amount: Integer, reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?, terminal_id: String?, type: Increase::Models::CardPayment::Element::CardReversal::type_, - updated_authorization_amount: Integer + updated_authorization_amount: Integer, + updated_authorization_presentment_amount: Integer ) -> void def to_hash: -> { @@ -3232,11 +3244,14 @@ module Increase network: Increase::Models::CardPayment::Element::CardReversal::network, network_identifiers: Increase::CardPayment::Element::CardReversal::NetworkIdentifiers, pending_transaction_id: String?, + presentment_currency: String, reversal_amount: Integer, + reversal_presentment_amount: Integer, reversal_reason: Increase::Models::CardPayment::Element::CardReversal::reversal_reason?, terminal_id: String?, type: Increase::Models::CardPayment::Element::CardReversal::type_, - updated_authorization_amount: Integer + updated_authorization_amount: Integer, + updated_authorization_presentment_amount: Integer } type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD From 81531dda2ae8f5a83114c412fd9922615b7972f7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 29 Jul 2025 19:41:05 +0000 Subject: [PATCH 2/2] release: 1.19.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 aa06f8634..de44c40d8 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.18.1" + ".": "1.19.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7789cf4eb..1e3f2a9da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.19.0 (2025-07-29) + +Full Changelog: [v1.18.1...v1.19.0](https://github.com/Increase/increase-ruby/compare/v1.18.1...v1.19.0) + +### Features + +* **api:** api update ([20c3bcb](https://github.com/Increase/increase-ruby/commit/20c3bcbf49471dabea24969e2c926b1288318d80)) + ## 1.18.1 (2025-07-28) Full Changelog: [v1.18.0...v1.18.1](https://github.com/Increase/increase-ruby/compare/v1.18.0...v1.18.1) diff --git a/Gemfile.lock b/Gemfile.lock index 84caab3d9..094cf5bf7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.18.1) + increase (1.19.0) connection_pool GEM diff --git a/README.md b/README.md index 8337a04f0..77aec3d63 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.18.1" +gem "increase", "~> 1.19.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 40c2d0ce9..f5ae542e1 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.18.1" + VERSION = "1.19.0" end