solidus
https://github.com/solidusio/solidus
Ruby
🛒 Solidus, the open-source eCommerce framework for industry trailblazers.
Spree::ReimbursementPerformer.simulate
Simulate performing the reimbursement without actually saving anything or refunding money, etc. This must return an array of objects that respond to the following methods: - #description - #display_amount so they can be displayed in the Admin UI appropriately.
Edit
git clone [email protected]:solidusio/solidus.git
cd solidus
open core/app/models/spree/reimbursement_performer.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Spree--ReimbursementPerformer-simulate-for-pr
# Commit to gitgit add core/app/models/spree/reimbursement_performer.rbgit commit -m "better docs for Spree::ReimbursementPerformer.simulate"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Spree--ReimbursementPerformer-simulate-for-pr
hub pull-request
# Celebrate!