diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c98b6e85..56457029 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.180.0" + ".": "1.181.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 458c6d83..123549fc 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 232 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-cc66158bcd1307d07051dcfd43d73dad380a7d8eb637620b21ff4a59e6073b68.yml -openapi_spec_hash: add50aa92e44e568b1efa8dba7bdb2d5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-df015666c8d57cf91d4239bffeb549736581af5653e0ec2cd94357c434975e31.yml +openapi_spec_hash: fceca44f4bd5f5f8fdbbaa6c80fc0410 config_hash: 27e44ed36b9c5617b580ead7231a594a diff --git a/CHANGELOG.md b/CHANGELOG.md index fc4993c7..dbe49c80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.181.0 (2026-01-23) + +Full Changelog: [v1.180.0...v1.181.0](https://github.com/Increase/increase-ruby/compare/v1.180.0...v1.181.0) + +### Features + +* **api:** api update ([2c2739e](https://github.com/Increase/increase-ruby/commit/2c2739ee824cba0971576e7d95b14073034527c6)) + ## 1.180.0 (2026-01-23) Full Changelog: [v1.179.0...v1.180.0](https://github.com/Increase/increase-ruby/compare/v1.179.0...v1.180.0) diff --git a/Gemfile.lock b/Gemfile.lock index 9de62c99..2ebb91eb 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -11,7 +11,7 @@ GIT PATH remote: . specs: - increase (1.180.0) + increase (1.181.0) cgi connection_pool diff --git a/README.md b/README.md index 553893d1..b52fa7ca 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.180.0" +gem "increase", "~> 1.181.0" ``` diff --git a/lib/increase/models/digital_wallet_token.rb b/lib/increase/models/digital_wallet_token.rb index 9d601209..b7bcd1f2 100644 --- a/lib/increase/models/digital_wallet_token.rb +++ b/lib/increase/models/digital_wallet_token.rb @@ -35,6 +35,14 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel # @return [Increase::Models::DigitalWalletToken::Device] required :device, -> { Increase::DigitalWalletToken::Device } + # @!attribute dynamic_primary_account_number + # The redacted Dynamic Primary Account Number. + # + # @return [Increase::Models::DigitalWalletToken::DynamicPrimaryAccountNumber, nil] + required :dynamic_primary_account_number, + -> { Increase::DigitalWalletToken::DynamicPrimaryAccountNumber }, + nil?: true + # @!attribute status # This indicates if payments can be made with the Digital Wallet Token. # @@ -60,7 +68,7 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel # @return [Array] required :updates, -> { Increase::Internal::Type::ArrayOf[Increase::DigitalWalletToken::Update] } - # @!method initialize(id:, card_id:, cardholder:, created_at:, device:, status:, token_requestor:, type:, updates:) + # @!method initialize(id:, card_id:, cardholder:, created_at:, device:, dynamic_primary_account_number:, status:, token_requestor:, type:, updates:) # Some parameter documentations has been truncated, see # {Increase::Models::DigitalWalletToken} for more details. # @@ -78,6 +86,8 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel # # @param device [Increase::Models::DigitalWalletToken::Device] The device that was used to create the Digital Wallet Token. # + # @param dynamic_primary_account_number [Increase::Models::DigitalWalletToken::DynamicPrimaryAccountNumber, nil] The redacted Dynamic Primary Account Number. + # # @param status [Symbol, Increase::Models::DigitalWalletToken::Status] This indicates if payments can be made with the Digital Wallet Token. # # @param token_requestor [Symbol, Increase::Models::DigitalWalletToken::TokenRequestor] The digital wallet app being used. @@ -175,6 +185,28 @@ module DeviceType end end + # @see Increase::Models::DigitalWalletToken#dynamic_primary_account_number + class DynamicPrimaryAccountNumber < Increase::Internal::Type::BaseModel + # @!attribute first6 + # The first 6 digits of the token's Dynamic Primary Account Number. + # + # @return [String] + required :first6, String + + # @!attribute last4 + # The last 4 digits of the token's Dynamic Primary Account Number. + # + # @return [String] + required :last4, String + + # @!method initialize(first6:, last4:) + # The redacted Dynamic Primary Account Number. + # + # @param first6 [String] The first 6 digits of the token's Dynamic Primary Account Number. + # + # @param last4 [String] The last 4 digits of the token's Dynamic Primary Account Number. + end + # This indicates if payments can be made with the Digital Wallet Token. # # @see Increase::Models::DigitalWalletToken#status diff --git a/lib/increase/version.rb b/lib/increase/version.rb index 920948c2..83e86e4b 100644 --- a/lib/increase/version.rb +++ b/lib/increase/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module Increase - VERSION = "1.180.0" + VERSION = "1.181.0" end diff --git a/rbi/increase/models/digital_wallet_token.rbi b/rbi/increase/models/digital_wallet_token.rbi index f702b2bc..edadf193 100644 --- a/rbi/increase/models/digital_wallet_token.rbi +++ b/rbi/increase/models/digital_wallet_token.rbi @@ -39,6 +39,24 @@ module Increase sig { params(device: Increase::DigitalWalletToken::Device::OrHash).void } attr_writer :device + # The redacted Dynamic Primary Account Number. + sig do + returns( + T.nilable(Increase::DigitalWalletToken::DynamicPrimaryAccountNumber) + ) + end + attr_reader :dynamic_primary_account_number + + sig do + params( + dynamic_primary_account_number: + T.nilable( + Increase::DigitalWalletToken::DynamicPrimaryAccountNumber::OrHash + ) + ).void + end + attr_writer :dynamic_primary_account_number + # This indicates if payments can be made with the Digital Wallet Token. sig { returns(Increase::DigitalWalletToken::Status::TaggedSymbol) } attr_accessor :status @@ -68,6 +86,10 @@ module Increase cardholder: Increase::DigitalWalletToken::Cardholder::OrHash, created_at: Time, device: Increase::DigitalWalletToken::Device::OrHash, + dynamic_primary_account_number: + T.nilable( + Increase::DigitalWalletToken::DynamicPrimaryAccountNumber::OrHash + ), status: Increase::DigitalWalletToken::Status::OrSymbol, token_requestor: Increase::DigitalWalletToken::TokenRequestor::OrSymbol, @@ -87,6 +109,8 @@ module Increase created_at:, # The device that was used to create the Digital Wallet Token. device:, + # The redacted Dynamic Primary Account Number. + dynamic_primary_account_number:, # This indicates if payments can be made with the Digital Wallet Token. status:, # The digital wallet app being used. @@ -107,6 +131,10 @@ module Increase cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: + T.nilable( + Increase::DigitalWalletToken::DynamicPrimaryAccountNumber + ), status: Increase::DigitalWalletToken::Status::TaggedSymbol, token_requestor: Increase::DigitalWalletToken::TokenRequestor::TaggedSymbol, @@ -300,6 +328,38 @@ module Increase end end + class DynamicPrimaryAccountNumber < Increase::Internal::Type::BaseModel + OrHash = + T.type_alias do + T.any( + Increase::DigitalWalletToken::DynamicPrimaryAccountNumber, + Increase::Internal::AnyHash + ) + end + + # The first 6 digits of the token's Dynamic Primary Account Number. + sig { returns(String) } + attr_accessor :first6 + + # The last 4 digits of the token's Dynamic Primary Account Number. + sig { returns(String) } + attr_accessor :last4 + + # The redacted Dynamic Primary Account Number. + sig { params(first6: String, last4: String).returns(T.attached_class) } + def self.new( + # The first 6 digits of the token's Dynamic Primary Account Number. + first6:, + # The last 4 digits of the token's Dynamic Primary Account Number. + last4: + ) + end + + sig { override.returns({ first6: String, last4: String }) } + def to_hash + end + end + # This indicates if payments can be made with the Digital Wallet Token. module Status extend Increase::Internal::Type::Enum diff --git a/sig/increase/models/digital_wallet_token.rbs b/sig/increase/models/digital_wallet_token.rbs index 4f02e362..d726768c 100644 --- a/sig/increase/models/digital_wallet_token.rbs +++ b/sig/increase/models/digital_wallet_token.rbs @@ -7,6 +7,7 @@ module Increase cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?, status: Increase::Models::DigitalWalletToken::status, token_requestor: Increase::Models::DigitalWalletToken::token_requestor, type: Increase::Models::DigitalWalletToken::type_, @@ -24,6 +25,8 @@ module Increase attr_accessor device: Increase::DigitalWalletToken::Device + attr_accessor dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber? + attr_accessor status: Increase::Models::DigitalWalletToken::status attr_accessor token_requestor: Increase::Models::DigitalWalletToken::token_requestor @@ -38,6 +41,7 @@ module Increase cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?, status: Increase::Models::DigitalWalletToken::status, token_requestor: Increase::Models::DigitalWalletToken::token_requestor, type: Increase::Models::DigitalWalletToken::type_, @@ -50,6 +54,7 @@ module Increase cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber?, status: Increase::Models::DigitalWalletToken::status, token_requestor: Increase::Models::DigitalWalletToken::token_requestor, type: Increase::Models::DigitalWalletToken::type_, @@ -142,6 +147,19 @@ module Increase end end + type dynamic_primary_account_number = + { :first6 => String, :last4 => String } + + class DynamicPrimaryAccountNumber < Increase::Internal::Type::BaseModel + attr_accessor first6: String + + attr_accessor last4: String + + def initialize: (first6: String, last4: String) -> void + + def to_hash: -> { :first6 => String, :last4 => String } + end + type status = :active | :inactive | :suspended | :deactivated module Status diff --git a/test/increase/resources/digital_wallet_tokens_test.rb b/test/increase/resources/digital_wallet_tokens_test.rb index 51ab3eb3..31630282 100644 --- a/test/increase/resources/digital_wallet_tokens_test.rb +++ b/test/increase/resources/digital_wallet_tokens_test.rb @@ -17,6 +17,7 @@ def test_retrieve cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber | nil, status: Increase::DigitalWalletToken::Status, token_requestor: Increase::DigitalWalletToken::TokenRequestor, type: Increase::DigitalWalletToken::Type, @@ -46,6 +47,7 @@ def test_list cardholder: Increase::DigitalWalletToken::Cardholder, created_at: Time, device: Increase::DigitalWalletToken::Device, + dynamic_primary_account_number: Increase::DigitalWalletToken::DynamicPrimaryAccountNumber | nil, status: Increase::DigitalWalletToken::Status, token_requestor: Increase::DigitalWalletToken::TokenRequestor, type: Increase::DigitalWalletToken::Type,