Skip to content

Commit

Permalink
Modification de 'eligible_for_incomplete_retry'
Browse files Browse the repository at this point in the history
  • Loading branch information
tnicolas1 committed Oct 17, 2024
1 parent 488465e commit 241db1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/asp/payment_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def eligible_for_incomplete_retry?
retryable_messages = RETRYABLE_INCOMPLETE_VALIDATION_TYPES.map do |r|
I18n.t("activerecord.errors.models.asp/payment_request.attributes.ready_state_validation.#{r}")
end
ActiveDecorator::Decorator.instance.decorate(self).incomplete_reason.intersect?(retryable_messages)
last_transition.metadata["incomplete_reasons"]["ready_state_validation"].intersect?(retryable_messages)
end

def eligible_for_rejected_or_unpaid_auto_retry?
Expand Down
2 changes: 1 addition & 1 deletion mock

0 comments on commit 241db1c

Please sign in to comment.