From fe80d84ae9ab5a11bd2e4cabd44f7cdb79af8e50 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 19:52:06 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +-- lib/increase/models/card_payment.rb | 23 +++++++++++++- lib/increase/models/transaction.rb | 23 +++++++++++++- rbi/increase/models/card_payment.rbi | 45 ++++++++++++++++++++++++++++ rbi/increase/models/transaction.rbi | 45 ++++++++++++++++++++++++++++ sig/increase/models/card_payment.rbs | 16 ++++++++++ sig/increase/models/transaction.rbs | 16 ++++++++++ 7 files changed, 168 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index fca327de8..28f0f87b7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 216 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f9cc7049ef70f37da85a196a822ee878a193af22d9894422fdc9100255b2a4c6.yml -openapi_spec_hash: efc2e40d9d10c87827994458d0101cd0 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-740517a6a575bb225c5bfa111ab83611c58533d5b1514f505aab22185f4a8992.yml +openapi_spec_hash: 8bfd6dcf11d076c24e4f092dc7e151ac config_hash: 29e452035e915a07cd64333b10a83077 diff --git a/lib/increase/models/card_payment.rb b/lib/increase/models/card_payment.rb index 7298fddad..401767aec 100644 --- a/lib/increase/models/card_payment.rb +++ b/lib/increase/models/card_payment.rb @@ -5577,6 +5577,12 @@ class CardSettlement < Increase::Internal::Type::BaseModel # @return [String, nil] required :merchant_state, String, nil?: true + # @!attribute network + # The card network on which this transaction was processed. + # + # @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Network] + required :network, enum: -> { Increase::CardPayment::Element::CardSettlement::Network } + # @!attribute network_identifiers # Network-specific identifiers for this refund. # @@ -5624,7 +5630,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Type] required :type, enum: -> { Increase::CardPayment::Element::CardSettlement::Type } - # @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:) + # @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::CardPayment::Element::CardSettlement} for more details. # @@ -5662,6 +5668,8 @@ class CardSettlement < Increase::Internal::Type::BaseModel # # @param merchant_state [String, nil] The state the merchant resides in. # + # @param network [Symbol, Increase::Models::CardPayment::Element::CardSettlement::Network] The card network on which this transaction was processed. + # # @param network_identifiers [Increase::Models::CardPayment::Element::CardSettlement::NetworkIdentifiers] Network-specific identifiers for this refund. # # @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Transaction. @@ -5829,6 +5837,19 @@ module Currency end end + # The card network on which this transaction was processed. + # + # @see Increase::Models::CardPayment::Element::CardSettlement#network + module Network + extend Increase::Internal::Type::Enum + + # Visa + VISA = :visa + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::CardPayment::Element::CardSettlement#network_identifiers class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id diff --git a/lib/increase/models/transaction.rb b/lib/increase/models/transaction.rb index 068274b0c..66d76d4a7 100644 --- a/lib/increase/models/transaction.rb +++ b/lib/increase/models/transaction.rb @@ -2772,6 +2772,12 @@ class CardSettlement < Increase::Internal::Type::BaseModel # @return [String, nil] required :merchant_state, String, nil?: true + # @!attribute network + # The card network on which this transaction was processed. + # + # @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Network] + required :network, enum: -> { Increase::Transaction::Source::CardSettlement::Network } + # @!attribute network_identifiers # Network-specific identifiers for this refund. # @@ -2819,7 +2825,7 @@ class CardSettlement < Increase::Internal::Type::BaseModel # @return [Symbol, Increase::Models::Transaction::Source::CardSettlement::Type] required :type, enum: -> { Increase::Transaction::Source::CardSettlement::Type } - # @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:) + # @!method initialize(id:, amount:, card_authorization:, card_payment_id:, cashback:, currency:, interchange:, merchant_acceptor_id:, merchant_category_code:, merchant_city:, merchant_country:, merchant_name:, merchant_postal_code:, merchant_state:, network:, network_identifiers:, pending_transaction_id:, presentment_amount:, presentment_currency:, purchase_details:, transaction_id:, type:) # Some parameter documentations has been truncated, see # {Increase::Models::Transaction::Source::CardSettlement} for more details. # @@ -2857,6 +2863,8 @@ class CardSettlement < Increase::Internal::Type::BaseModel # # @param merchant_state [String, nil] The state the merchant resides in. # + # @param network [Symbol, Increase::Models::Transaction::Source::CardSettlement::Network] The card network on which this transaction was processed. + # # @param network_identifiers [Increase::Models::Transaction::Source::CardSettlement::NetworkIdentifiers] Network-specific identifiers for this refund. # # @param pending_transaction_id [String, nil] The identifier of the Pending Transaction associated with this Transaction. @@ -3024,6 +3032,19 @@ module Currency end end + # The card network on which this transaction was processed. + # + # @see Increase::Models::Transaction::Source::CardSettlement#network + module Network + extend Increase::Internal::Type::Enum + + # Visa + VISA = :visa + + # @!method self.values + # @return [Array] + end + # @see Increase::Models::Transaction::Source::CardSettlement#network_identifiers class NetworkIdentifiers < Increase::Internal::Type::BaseModel # @!attribute acquirer_business_id diff --git a/rbi/increase/models/card_payment.rbi b/rbi/increase/models/card_payment.rbi index 274f980ab..5377ae588 100644 --- a/rbi/increase/models/card_payment.rbi +++ b/rbi/increase/models/card_payment.rbi @@ -10289,6 +10289,14 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :merchant_state + # The card network on which this transaction was processed. + sig do + returns( + Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol + ) + end + attr_accessor :network + # Network-specific identifiers for this refund. sig do returns( @@ -10380,6 +10388,8 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), + network: + Increase::CardPayment::Element::CardSettlement::Network::OrSymbol, network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers::OrHash, pending_transaction_id: T.nilable(String), @@ -10428,6 +10438,8 @@ module Increase merchant_postal_code:, # The state the merchant resides in. merchant_state:, + # The card network on which this transaction was processed. + network:, # Network-specific identifiers for this refund. network_identifiers:, # The identifier of the Pending Transaction associated with this Transaction. @@ -10472,6 +10484,8 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), + network: + Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol, network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers, pending_transaction_id: T.nilable(String), @@ -10811,6 +10825,37 @@ module Increase end end + # The card network on which this transaction was processed. + module Network + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::CardPayment::Element::CardSettlement::Network + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Visa + VISA = + T.let( + :visa, + Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::CardPayment::Element::CardSettlement::Network::TaggedSymbol + ] + ) + end + def self.values + end + end + class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/rbi/increase/models/transaction.rbi b/rbi/increase/models/transaction.rbi index 30566be96..a68da956b 100644 --- a/rbi/increase/models/transaction.rbi +++ b/rbi/increase/models/transaction.rbi @@ -5165,6 +5165,14 @@ module Increase sig { returns(T.nilable(String)) } attr_accessor :merchant_state + # The card network on which this transaction was processed. + sig do + returns( + Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol + ) + end + attr_accessor :network + # Network-specific identifiers for this refund. sig do returns( @@ -5256,6 +5264,8 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), + network: + Increase::Transaction::Source::CardSettlement::Network::OrSymbol, network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers::OrHash, pending_transaction_id: T.nilable(String), @@ -5304,6 +5314,8 @@ module Increase merchant_postal_code:, # The state the merchant resides in. merchant_state:, + # The card network on which this transaction was processed. + network:, # Network-specific identifiers for this refund. network_identifiers:, # The identifier of the Pending Transaction associated with this Transaction. @@ -5348,6 +5360,8 @@ module Increase merchant_name: String, merchant_postal_code: T.nilable(String), merchant_state: T.nilable(String), + network: + Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol, network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers, pending_transaction_id: T.nilable(String), @@ -5687,6 +5701,37 @@ module Increase end end + # The card network on which this transaction was processed. + module Network + extend Increase::Internal::Type::Enum + + TaggedSymbol = + T.type_alias do + T.all( + Symbol, + Increase::Transaction::Source::CardSettlement::Network + ) + end + OrSymbol = T.type_alias { T.any(Symbol, String) } + + # Visa + VISA = + T.let( + :visa, + Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol + ) + + sig do + override.returns( + T::Array[ + Increase::Transaction::Source::CardSettlement::Network::TaggedSymbol + ] + ) + end + def self.values + end + end + class NetworkIdentifiers < Increase::Internal::Type::BaseModel OrHash = T.type_alias do diff --git a/sig/increase/models/card_payment.rbs b/sig/increase/models/card_payment.rbs index 765ca24ea..8ed7e0d44 100644 --- a/sig/increase/models/card_payment.rbs +++ b/sig/increase/models/card_payment.rbs @@ -3894,6 +3894,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::CardPayment::Element::CardSettlement::network, network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -3932,6 +3933,8 @@ module Increase attr_accessor merchant_state: String? + attr_accessor network: Increase::Models::CardPayment::Element::CardSettlement::network + attr_accessor network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers attr_accessor pending_transaction_id: String? @@ -3961,6 +3964,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::CardPayment::Element::CardSettlement::network, network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -3985,6 +3989,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::CardPayment::Element::CardSettlement::network, network_identifiers: Increase::CardPayment::Element::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -4121,6 +4126,17 @@ module Increase end end + type network = :visa + + module Network + extend Increase::Internal::Type::Enum + + # Visa + VISA: :visa + + def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardSettlement::network] + end + type network_identifiers = { acquirer_business_id: String, diff --git a/sig/increase/models/transaction.rbs b/sig/increase/models/transaction.rbs index 399f0afbf..357c2c666 100644 --- a/sig/increase/models/transaction.rbs +++ b/sig/increase/models/transaction.rbs @@ -1999,6 +1999,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::Transaction::Source::CardSettlement::network, network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -2037,6 +2038,8 @@ module Increase attr_accessor merchant_state: String? + attr_accessor network: Increase::Models::Transaction::Source::CardSettlement::network + attr_accessor network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers attr_accessor pending_transaction_id: String? @@ -2066,6 +2069,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::Transaction::Source::CardSettlement::network, network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -2090,6 +2094,7 @@ module Increase merchant_name: String, merchant_postal_code: String?, merchant_state: String?, + network: Increase::Models::Transaction::Source::CardSettlement::network, network_identifiers: Increase::Transaction::Source::CardSettlement::NetworkIdentifiers, pending_transaction_id: String?, presentment_amount: Integer, @@ -2226,6 +2231,17 @@ module Increase end end + type network = :visa + + module Network + extend Increase::Internal::Type::Enum + + # Visa + VISA: :visa + + def self?.values: -> ::Array[Increase::Models::Transaction::Source::CardSettlement::network] + end + type network_identifiers = { acquirer_business_id: String, From 7cfb35df27fd18e665f8eb9fa78d4c113fc972cc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 26 Aug 2025 19:52:27 +0000 Subject: [PATCH 2/2] release: 1.51.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 97e4d742d..3ff0a9eb3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.50.0" + ".": "1.51.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index d5d26c56e..1a1bbf801 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.51.0 (2025-08-26) + +Full Changelog: [v1.50.0...v1.51.0](https://github.com/Increase/increase-ruby/compare/v1.50.0...v1.51.0) + +### Features + +* **api:** api update ([fe80d84](https://github.com/Increase/increase-ruby/commit/fe80d84ae9ab5a11bd2e4cabd44f7cdb79af8e50)) + ## 1.50.0 (2025-08-26) Full Changelog: [v1.49.0...v1.50.0](https://github.com/Increase/increase-ruby/compare/v1.49.0...v1.50.0) diff --git a/Gemfile.lock b/Gemfile.lock index 2fd2dc98f..b7d55fddf 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.50.0) + increase (1.51.0) connection_pool GEM diff --git a/README.md b/README.md index 963fd6d76..b68a46eaf 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.50.0" +gem "increase", "~> 1.51.0" ``` diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 8b258fef3..f8b5f89bf 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.50.0" + VERSION = "1.51.0" end