Skip to content
Open
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: 254
openapi_spec_hash: b502688710d2e1e332c41ca7adc8aabf
openapi_spec_hash: ad974ab7cae1de0dd9137572957aa59d
config_hash: f0e1844d06c76a9e145f7986d993dda6
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ All errors raised by this gem, including `Increase::Errors::APIError` and respon

Certain errors will be automatically retried 2 times by default, with a short exponential backoff.

Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict, 429 Rate Limit, >=500 Internal errors, and timeouts will all be retried by default.
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 429 Rate Limit, >=500 Internal errors, and timeouts will all be retried by default.

You can use the `max_retries` option to configure or disable this:

Expand Down
3 changes: 1 addition & 2 deletions lib/increase/internal/transport/base_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ def should_retry?(status, headers:)
case [coerced, status]
in [true | false, _]
coerced
in [_, 408 | 409 | 429 | (500..)]
in [_, 408 | 429 | (500..)]
# retry on:
# 408: timeouts
# 409: locks
# 429: rate limits
# 500+: unknown errors
true
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/check_deposit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,9 @@ module Reason
# The check has already been deposited elsewhere and so this is a duplicate.
PAID = :paid

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY = :duplicate_entry

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ module Category
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED = :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED = :"entity.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ module In
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED = :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED = :"entity.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ module EventCategory
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED = :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED = :"entity.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/event_subscription_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ module EventCategory
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED = :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED = :"entity.created"

Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/inbound_check_deposit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ module Reason
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
WRONG_PAYEE_CREDIT = :wrong_payee_credit

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY = :duplicate_entry

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ module Reason
# The check has already been deposited elsewhere and so this is a duplicate.
PAID = :paid

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY = :duplicate_entry

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ module Reason
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
WRONG_PAYEE_CREDIT = :wrong_payee_credit

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY = :duplicate_entry

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8644,6 +8644,9 @@ module Reason
# The check has already been deposited elsewhere and so this is a duplicate.
PAID = :paid

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY = :duplicate_entry

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down
3 changes: 3 additions & 0 deletions lib/increase/models/unwrap_webhook_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ module Category
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED = :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED = :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED = :"entity.created"

Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/check_deposit.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,13 @@ module Increase
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
)

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY =
T.let(
:duplicate_entry,
Increase::CheckDeposit::DepositAdjustment::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,13 @@ module Increase
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
T.let(
:"digital_wallet_token_request.created",
Increase::Event::Category::TaggedSymbol
)

# Occurs whenever an Entity is created.
ENTITY_CREATED =
T.let(:"entity.created", Increase::Event::Category::TaggedSymbol)
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,13 @@ module Increase
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
T.let(
:"digital_wallet_token_request.created",
Increase::EventListParams::Category::In::TaggedSymbol
)

# Occurs whenever an Entity is created.
ENTITY_CREATED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,13 @@ module Increase
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
T.let(
:"digital_wallet_token_request.created",
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Entity is created.
ENTITY_CREATED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/event_subscription_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,13 @@ module Increase
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
T.let(
:"digital_wallet_token_request.created",
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
)

# Occurs whenever an Entity is created.
ENTITY_CREATED =
T.let(
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/inbound_check_deposit.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ module Increase
Increase::InboundCheckDeposit::Adjustment::Reason::TaggedSymbol
)

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY =
T.let(
:duplicate_entry,
Increase::InboundCheckDeposit::Adjustment::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ module Increase
Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
)

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY =
T.let(
:duplicate_entry,
Increase::Simulations::CheckDepositAdjustmentParams::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@ module Increase
Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
)

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY =
T.let(
:duplicate_entry,
Increase::Simulations::InboundCheckDepositAdjustmentParams::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -15603,6 +15603,13 @@ module Increase
Increase::Transaction::Source::InboundCheckAdjustment::Reason::TaggedSymbol
)

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY =
T.let(
:duplicate_entry,
Increase::Transaction::Source::InboundCheckAdjustment::Reason::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down
7 changes: 7 additions & 0 deletions rbi/increase/models/unwrap_webhook_event.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,13 @@ module Increase
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED =
T.let(
:"digital_wallet_token_request.created",
Increase::UnwrapWebhookEvent::Category::TaggedSymbol
)

# Occurs whenever an Entity is created.
ENTITY_CREATED =
T.let(
Expand Down
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion sig/increase/models/check_deposit.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,11 @@ module Increase
}

type reason =
:wrong_payee_credit | :adjusted_amount | :non_conforming_item | :paid
:wrong_payee_credit
| :adjusted_amount
| :non_conforming_item
| :paid
| :duplicate_entry

module Reason
extend Increase::Internal::Type::Enum
Expand All @@ -213,6 +217,9 @@ module Increase
# The check has already been deposited elsewhere and so this is a duplicate.
PAID: :paid

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY: :duplicate_entry

def self?.values: -> ::Array[Increase::Models::CheckDeposit::DepositAdjustment::reason]
end
end
Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/event.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ module Increase
| :"digital_card_profile.updated"
| :"digital_wallet_token.created"
| :"digital_wallet_token.updated"
| :"digital_wallet_token_request.created"
| :"entity.created"
| :"entity.updated"
| :"event_subscription.created"
Expand Down Expand Up @@ -287,6 +288,9 @@ module Increase
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED: :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED: :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED: :"entity.created"

Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/event_list_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ module Increase
| :"digital_card_profile.updated"
| :"digital_wallet_token.created"
| :"digital_wallet_token.updated"
| :"digital_wallet_token_request.created"
| :"entity.created"
| :"entity.updated"
| :"event_subscription.created"
Expand Down Expand Up @@ -329,6 +330,9 @@ module Increase
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED: :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED: :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED: :"entity.created"

Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/event_subscription.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ module Increase
| :"digital_card_profile.updated"
| :"digital_wallet_token.created"
| :"digital_wallet_token.updated"
| :"digital_wallet_token_request.created"
| :"entity.created"
| :"entity.updated"
| :"event_subscription.created"
Expand Down Expand Up @@ -313,6 +314,9 @@ module Increase
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED: :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED: :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED: :"entity.created"

Expand Down
4 changes: 4 additions & 0 deletions sig/increase/models/event_subscription_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ module Increase
| :"digital_card_profile.updated"
| :"digital_wallet_token.created"
| :"digital_wallet_token.updated"
| :"digital_wallet_token_request.created"
| :"entity.created"
| :"entity.updated"
| :"event_subscription.created"
Expand Down Expand Up @@ -316,6 +317,9 @@ module Increase
# Occurs whenever a Digital Wallet Token is updated.
DIGITAL_WALLET_TOKEN_UPDATED: :"digital_wallet_token.updated"

# Occurs whenever a Digital Wallet Token Request is created.
DIGITAL_WALLET_TOKEN_REQUEST_CREATED: :"digital_wallet_token_request.created"

# Occurs whenever an Entity is created.
ENTITY_CREATED: :"entity.created"

Expand Down
5 changes: 4 additions & 1 deletion sig/increase/models/inbound_check_deposit.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ module Increase
transaction_id: String
}

type reason = :late_return | :wrong_payee_credit
type reason = :late_return | :wrong_payee_credit | :duplicate_entry

module Reason
extend Increase::Internal::Type::Enum
Expand All @@ -158,6 +158,9 @@ module Increase
# The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
WRONG_PAYEE_CREDIT: :wrong_payee_credit

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY: :duplicate_entry

def self?.values: -> ::Array[Increase::Models::InboundCheckDeposit::Adjustment::reason]
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ module Increase
| :adjusted_amount
| :non_conforming_item
| :paid
| :duplicate_entry

module Reason
extend Increase::Internal::Type::Enum
Expand All @@ -64,6 +65,9 @@ module Increase
# The check has already been deposited elsewhere and so this is a duplicate.
PAID: :paid

# A previous adjustment for the check was applied twice and the duplicate has been reversed.
DUPLICATE_ENTRY: :duplicate_entry

def self?.values: -> ::Array[Increase::Models::Simulations::CheckDepositAdjustmentParams::reason]
end
end
Expand Down
Loading
Loading