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: 6f56e44ac42a4842bc57c09b809e4c03
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/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/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/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/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.

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
4 changes: 4 additions & 0 deletions sig/increase/models/unwrap_webhook_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
Loading