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.180.0"
".": "1.181.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: 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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.180.0)
increase (1.181.0)
cgi
connection_pool

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.180.0"
gem "increase", "~> 1.181.0"
```

<!-- x-release-please-end -->
Expand Down
34 changes: 33 additions & 1 deletion lib/increase/models/digital_wallet_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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.
#
Expand All @@ -60,7 +68,7 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel
# @return [Array<Increase::Models::DigitalWalletToken::Update>]
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.
#
Expand All @@ -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.
Expand Down Expand Up @@ -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
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.180.0"
VERSION = "1.181.0"
end
60 changes: 60 additions & 0 deletions rbi/increase/models/digital_wallet_token.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand All @@ -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.
Expand All @@ -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,
Expand Down Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions sig/increase/models/digital_wallet_token.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -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_,
Expand All @@ -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
Expand All @@ -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_,
Expand All @@ -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_,
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions test/increase/resources/digital_wallet_tokens_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down