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: 254
openapi_spec_hash: b502688710d2e1e332c41ca7adc8aabf
openapi_spec_hash: 339463ca602a8d2afaaf82cc8570a142
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
8 changes: 7 additions & 1 deletion lib/increase/models/card_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ module VerificationMethod
# The one-time code was sent via email.
EMAIL = :email

# The one-time code was not successfully delivered.
# The one-time code could not be delivered because the card has no phone number or email on file.
NONE_AVAILABLE = :none_available

# @!method self.values
Expand Down Expand Up @@ -10445,6 +10445,9 @@ module PurchaseIdentifierFormat
# Invoice number
INVOICE_NUMBER = :invoice_number

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER = :visa_recurrent_reference_identifier

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down Expand Up @@ -13175,6 +13178,9 @@ module PurchaseIdentifierFormat
# Invoice number
INVOICE_NUMBER = :invoice_number

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER = :visa_recurrent_reference_identifier

# @!method self.values
# @return [Array<Symbol>]
end
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
9 changes: 9 additions & 0 deletions lib/increase/models/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4808,6 +4808,9 @@ module PurchaseIdentifierFormat
# Invoice number
INVOICE_NUMBER = :invoice_number

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER = :visa_recurrent_reference_identifier

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down Expand Up @@ -7082,6 +7085,9 @@ module PurchaseIdentifierFormat
# Invoice number
INVOICE_NUMBER = :invoice_number

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER = :visa_recurrent_reference_identifier

# @!method self.values
# @return [Array<Symbol>]
end
Expand Down Expand Up @@ -8644,6 +8650,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
16 changes: 15 additions & 1 deletion rbi/increase/models/card_payment.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,7 @@ module Increase
Increase::CardPayment::Element::CardAuthentication::Challenge::VerificationMethod::TaggedSymbol
)

# The one-time code was not successfully delivered.
# The one-time code could not be delivered because the card has no phone number or email on file.
NONE_AVAILABLE =
T.let(
:none_available,
Expand Down Expand Up @@ -18931,6 +18931,13 @@ module Increase
Increase::CardPayment::Element::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER =
T.let(
:visa_recurrent_reference_identifier,
Increase::CardPayment::Element::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down Expand Up @@ -23757,6 +23764,13 @@ module Increase
Increase::CardPayment::Element::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER =
T.let(
:visa_recurrent_reference_identifier,
Increase::CardPayment::Element::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

sig do
override.returns(
T::Array[
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
21 changes: 21 additions & 0 deletions rbi/increase/models/transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -8662,6 +8662,13 @@ module Increase
Increase::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER =
T.let(
:visa_recurrent_reference_identifier,
Increase::Transaction::Source::CardRefund::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down Expand Up @@ -12737,6 +12744,13 @@ module Increase
Increase::Transaction::Source::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

# Visa Recurrent reference identifier
VISA_RECURRENT_REFERENCE_IDENTIFIER =
T.let(
:visa_recurrent_reference_identifier,
Increase::Transaction::Source::CardSettlement::PurchaseDetails::PurchaseIdentifierFormat::TaggedSymbol
)

sig do
override.returns(
T::Array[
Expand Down Expand Up @@ -15603,6 +15617,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.

Loading
Loading