app/controllers/spree/api/retailops/settlement_controller.rb
# duplicates /api/order/:num/cancel but it seems useful to have a single point of contact
duplicates /api/order/:num/cancel but it seems useful to have a single point of contact
duplicates / api / order / : num / cancel but it seems useful to have a single point of contact
def cancel
          find_order
          @order.cancel! unless @order.canceled?
          settle_payments_if_desired
          render text: @settlement_results.to_json
        end
def cancel find_order @order . cancel! unless @order . canceled? settle_payments_if_desired render text : @settlement_results . to_json end
duplicates /api/order/:num/cancel but it seems useful to have a single point of contact
duplicates / api / order / : num / cancel but it seems useful to have a single point of contact