Skip to content
Closed
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 .stats.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
configured_endpoints: 255
openapi_spec_hash: 6076b04cad61f32c031d7cd65d3cae66
openapi_spec_hash: 430de7f888fc2cdbdbbff40828339442
config_hash: de151ebd21a0bd391662389b310a8f49
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ GEM
i18n (1.14.7)
concurrent-ruby (~> 1.0)
io-event (1.11.2)
json (2.15.2.1)
json (2.21.2)
language_server-protocol (3.17.0.5)
lint_roller (1.1.0)
listen (3.9.0)
Expand Down
72 changes: 1 addition & 71 deletions lib/increase/models/digital_wallet_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel
# @return [Time]
required :created_at, Time

# @!attribute decline
# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
#
# @return [Increase::Models::DigitalWalletToken::Decline, nil]
required :decline, -> { Increase::DigitalWalletToken::Decline }, nil?: true

# @!attribute device
# The device that was used to create the Digital Wallet Token.
#
Expand Down Expand Up @@ -93,7 +86,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:, account_id:, card_id:, cardholder:, created_at:, decline:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, type:, updates:)
# @!method initialize(id:, account_id:, card_id:, cardholder:, created_at:, device:, dynamic_primary_account_number:, primary_account_number_reference_identifier:, status:, token_reference_identifier:, token_requestor:, type:, updates:)
# A Digital Wallet Token is created when a user adds a Card to their Apple Pay or
# Google Pay app. The Digital Wallet Token can be used for purchases just like a
# Card.
Expand All @@ -111,10 +104,6 @@ class DigitalWalletToken < Increase::Internal::Type::BaseModel
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
# the Digital Wallet Token was created.
#
# @param decline [Increase::Models::DigitalWalletToken::Decline, nil]
# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
#
# @param device [Increase::Models::DigitalWalletToken::Device]
# The device that was used to create the Digital Wallet Token.
#
Expand Down Expand Up @@ -153,59 +142,6 @@ class Cardholder < Increase::Internal::Type::BaseModel
# @param name [String, nil] Name of the cardholder, for example "John Smith".
end

# @see Increase::Models::DigitalWalletToken#decline
class Decline < Increase::Internal::Type::BaseModel
# @!attribute reason
# The reason the token provisioning was declined.
#
# @return [Symbol, Increase::Models::DigitalWalletToken::Decline::Reason]
required :reason, enum: -> { Increase::DigitalWalletToken::Decline::Reason }

# @!method initialize(reason:)
# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
#
# @param reason [Symbol, Increase::Models::DigitalWalletToken::Decline::Reason]
# The reason the token provisioning was declined.

# The reason the token provisioning was declined.
#
# @see Increase::Models::DigitalWalletToken::Decline#reason
module Reason
extend Increase::Internal::Type::Enum

# The card is not active.
CARD_NOT_ACTIVE = :card_not_active

# The card does not have a two-factor authentication method.
NO_VERIFICATION_METHOD = :no_verification_method

# Your webhook timed out when evaluating the token provisioning attempt.
WEBHOOK_TIMED_OUT = :webhook_timed_out

# Your webhook declined the token provisioning attempt.
WEBHOOK_DECLINED = :webhook_declined

# The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
INCORRECT_CARD_VERIFICATION_CODE = :incorrect_card_verification_code

# The tokenization attempt was declined by the token requestor.
DECLINED_BY_TOKEN_REQUESTOR = :declined_by_token_requestor

# The group was locked.
GROUP_LOCKED = :group_locked

# The account has been closed.
ACCOUNT_CLOSED = :account_closed

# The account's entity was not active.
ENTITY_NOT_ACTIVE = :entity_not_active

# @!method self.values
# @return [Array<Symbol>]
end
end

# @see Increase::Models::DigitalWalletToken#device
class Device < Increase::Internal::Type::BaseModel
# @!attribute device_type
Expand Down Expand Up @@ -321,9 +257,6 @@ module Status
# The digital wallet token has been permanently canceled.
DEACTIVATED = :deactivated

# The digital wallet token was declined during provisioning.
DECLINED = :declined

# The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
PENDING_TRANSITIONING = :pending_transitioning

Expand Down Expand Up @@ -409,9 +342,6 @@ module Status
# The digital wallet token has been permanently canceled.
DEACTIVATED = :deactivated

# The digital wallet token was declined during provisioning.
DECLINED = :declined

# The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
PENDING_TRANSITIONING = :pending_transitioning

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/digital_wallet_token_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ module Reason
# The account's entity was not active.
ENTITY_NOT_ACTIVE = :entity_not_active

# The given expiration date did not match the card's value.
CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ module DeclineReason
# The account's entity was not active.
ENTITY_NOT_ACTIVE = :entity_not_active

# The given expiration date did not match the card's value.
CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
6 changes: 3 additions & 3 deletions lib/increase/models/simulations/program_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ProgramCreateParams < Increase::Internal::Type::BaseModel
required :name, String

# @!attribute bank
# The bank for the program's accounts, defaults to First Internet Bank.
# The bank for the program's accounts, defaults to Increase Bank.
#
# @return [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank, nil]
optional :bank, enum: -> { Increase::Simulations::ProgramCreateParams::Bank }
Expand Down Expand Up @@ -43,7 +43,7 @@ class ProgramCreateParams < Increase::Internal::Type::BaseModel
# @param name [String] The name of the program being added.
#
# @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank]
# The bank for the program's accounts, defaults to First Internet Bank.
# The bank for the program's accounts, defaults to Increase Bank.
#
# @param lending_maximum_extendable_credit [Integer]
# The maximum extendable credit of the program being added.
Expand All @@ -56,7 +56,7 @@ class ProgramCreateParams < Increase::Internal::Type::BaseModel
#
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]

# The bank for the program's accounts, defaults to First Internet Bank.
# The bank for the program's accounts, defaults to Increase Bank.
module Bank
extend Increase::Internal::Type::Enum

Expand Down
2 changes: 1 addition & 1 deletion lib/increase/resources/simulations/programs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Programs
# @param name [String] The name of the program being added.
#
# @param bank [Symbol, Increase::Models::Simulations::ProgramCreateParams::Bank]
# The bank for the program's accounts, defaults to First Internet Bank.
# The bank for the program's accounts, defaults to Increase Bank.
#
# @param lending_maximum_extendable_credit [Integer]
# The maximum extendable credit of the program being added.
Expand Down
152 changes: 0 additions & 152 deletions rbi/increase/models/digital_wallet_token.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,6 @@ module Increase
sig { returns(Time) }
attr_accessor :created_at

# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
sig { returns(T.nilable(Increase::DigitalWalletToken::Decline)) }
attr_reader :decline

sig do
params(
decline: T.nilable(Increase::DigitalWalletToken::Decline::OrHash)
).void
end
attr_writer :decline

# The device that was used to create the Digital Wallet Token.
sig { returns(Increase::DigitalWalletToken::Device) }
attr_reader :device
Expand Down Expand Up @@ -110,7 +98,6 @@ module Increase
card_id: String,
cardholder: Increase::DigitalWalletToken::Cardholder::OrHash,
created_at: Time,
decline: T.nilable(Increase::DigitalWalletToken::Decline::OrHash),
device: Increase::DigitalWalletToken::Device::OrHash,
dynamic_primary_account_number:
T.nilable(
Expand All @@ -137,9 +124,6 @@ module Increase
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
# the Digital Wallet Token was created.
created_at:,
# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
decline:,
# The device that was used to create the Digital Wallet Token.
device:,
# The redacted Dynamic Primary Account Number.
Expand Down Expand Up @@ -168,7 +152,6 @@ module Increase
card_id: String,
cardholder: Increase::DigitalWalletToken::Cardholder,
created_at: Time,
decline: T.nilable(Increase::DigitalWalletToken::Decline),
device: Increase::DigitalWalletToken::Device,
dynamic_primary_account_number:
T.nilable(
Expand Down Expand Up @@ -213,130 +196,6 @@ module Increase
end
end

class Decline < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
T.any(
Increase::DigitalWalletToken::Decline,
Increase::Internal::AnyHash
)
end

# The reason the token provisioning was declined.
sig do
returns(Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol)
end
attr_accessor :reason

# If the Digital Wallet Token was declined during provisioning, details about the
# decline.
sig do
params(
reason: Increase::DigitalWalletToken::Decline::Reason::OrSymbol
).returns(T.attached_class)
end
def self.new(
# The reason the token provisioning was declined.
reason:
)
end

sig do
override.returns(
{
reason:
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
}
)
end
def to_hash
end

# The reason the token provisioning was declined.
module Reason
extend Increase::Internal::Type::Enum

TaggedSymbol =
T.type_alias do
T.all(Symbol, Increase::DigitalWalletToken::Decline::Reason)
end
OrSymbol = T.type_alias { T.any(Symbol, String) }

# The card is not active.
CARD_NOT_ACTIVE =
T.let(
:card_not_active,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The card does not have a two-factor authentication method.
NO_VERIFICATION_METHOD =
T.let(
:no_verification_method,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# Your webhook timed out when evaluating the token provisioning attempt.
WEBHOOK_TIMED_OUT =
T.let(
:webhook_timed_out,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# Your webhook declined the token provisioning attempt.
WEBHOOK_DECLINED =
T.let(
:webhook_declined,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The tokenization attempt failed because the Card Verification Code (CVC) was incorrect.
INCORRECT_CARD_VERIFICATION_CODE =
T.let(
:incorrect_card_verification_code,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The tokenization attempt was declined by the token requestor.
DECLINED_BY_TOKEN_REQUESTOR =
T.let(
:declined_by_token_requestor,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The group was locked.
GROUP_LOCKED =
T.let(
:group_locked,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The account has been closed.
ACCOUNT_CLOSED =
T.let(
:account_closed,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

# The account's entity was not active.
ENTITY_NOT_ACTIVE =
T.let(
:entity_not_active,
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Increase::DigitalWalletToken::Decline::Reason::TaggedSymbol
]
)
end
def self.values
end
end
end

class Device < Increase::Internal::Type::BaseModel
OrHash =
T.type_alias do
Expand Down Expand Up @@ -552,10 +411,6 @@ module Increase
Increase::DigitalWalletToken::Status::TaggedSymbol
)

# The digital wallet token was declined during provisioning.
DECLINED =
T.let(:declined, Increase::DigitalWalletToken::Status::TaggedSymbol)

# The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
PENDING_TRANSITIONING =
T.let(
Expand Down Expand Up @@ -735,13 +590,6 @@ module Increase
Increase::DigitalWalletToken::Update::Status::TaggedSymbol
)

# The digital wallet token was declined during provisioning.
DECLINED =
T.let(
:declined,
Increase::DigitalWalletToken::Update::Status::TaggedSymbol
)

# The digital wallet token is transitioning to a new status and is awaiting confirmation from the card network.
PENDING_TRANSITIONING =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/digital_wallet_token_request.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,13 @@ module Increase
Increase::DigitalWalletTokenRequest::Declined::Reason::TaggedSymbol
)

# The given expiration date did not match the card's value.
CARD_EXPIRATION_MISMATCH =
T.let(
:card_expiration_mismatch,
Increase::DigitalWalletTokenRequest::Declined::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
Loading
Loading