Sha256: 20444d354e0d0e7edfb4eb9a4cb3b1e496820f1fcca759414cb103db5049de44
Contents?: true
Size: 939 Bytes
Versions: 62
Compression:
Stored size: 939 Bytes
Contents
module Caboose class InvoiceTransactionsController < Caboose::ApplicationController # @route GET /admin/invoices/:invoice_id/transactions/:id/capture def admin_capture return if !user_is_allowed('invoices', 'edit') it = InvoiceTransaction.find(params[:id]) resp = it.capture render :json => resp end # @route GET /admin/invoices/:invoice_id/transactions/:id/refund def admin_refund return if !user_is_allowed('invoices', 'edit') it = InvoiceTransaction.find(params[:id]) resp = it.refund render :json => resp end # @route GET /admin/invoices/:invoice_id/transactions/:id/void def admin_void return if !user_is_allowed('invoices', 'edit') it = InvoiceTransaction.find(params[:id]) resp = it.void render :json => resp end end end
Version data entries
62 entries across 62 versions & 1 rubygems