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 .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: 4458c613643910026be17923a699563f
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
7 changes: 4 additions & 3 deletions lib/increase/models/physical_card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class PhysicalCard < Increase::Internal::Type::BaseModel
required :shipment, -> { Increase::PhysicalCard::Shipment }

# @!attribute status
# The status of the Physical Card.
# The status of the Physical Card. The initial status is `disabled`.
#
# @return [Symbol, Increase::Models::PhysicalCard::Status]
required :status, enum: -> { Increase::PhysicalCard::Status }
Expand Down Expand Up @@ -120,7 +120,8 @@ class PhysicalCard < Increase::Internal::Type::BaseModel
#
# @param shipment [Increase::Models::PhysicalCard::Shipment] The details used to ship this physical card.
#
# @param status [Symbol, Increase::Models::PhysicalCard::Status] The status of the Physical Card.
# @param status [Symbol, Increase::Models::PhysicalCard::Status]
# The status of the Physical Card. The initial status is `disabled`.
#
# @param type [Symbol, Increase::Models::PhysicalCard::Type]
# A constant representing the object's type. For this resource it will always be
Expand Down Expand Up @@ -498,7 +499,7 @@ module Category
end
end

# The status of the Physical Card.
# The status of the Physical Card. The initial status is `disabled`.
#
# @see Increase::Models::PhysicalCard#status
module Status
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
3 changes: 2 additions & 1 deletion lib/increase/resources/physical_cards.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
module Increase
module Resources
class PhysicalCards
# Create a Physical Card
# Physical Cards start in the status `disabled`. Activate the card once it arrives
# at the destination and the recipient confirms receipt.
#
# @overload create(card_id:, cardholder:, shipment:, physical_card_profile_id: nil, request_options: {})
#
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
Loading
Loading