Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Added additional event to handle typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
shivashankar-f22labs committed Jan 28, 2020
1 parent 56ad241 commit af87ff3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/payment/go_cardless/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,15 @@ class Payment::GoCardless::Transaction < ApplicationRecord
transitions from: %i[created submitted], to: :confirmed, after: :publish_transaction_status_change
end

# TODO: remove the method if it not used in any case post testing
event :run_payout do
transitions from: %i[created submitted confirmed], to: :paid_out, after: :publish_transaction_status_change
end

event :run_pay_out do
transitions from: %i[created submitted confirmed], to: :paid_out, after: :publish_transaction_status_change
end

event :run_cancel do
transitions to: :cancelled, after: :publish_transaction_status_change
end
Expand Down

0 comments on commit af87ff3

Please sign in to comment.