# frozen_string_literal: true DefraRubyMocks::Engine.routes.draw do get "/company/:id", to: "company#show", as: "company", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } get "/company/:id/officers", to: "company#officers", as: "company_officers", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } post "/govpay/v1/payments", to: "govpay#create_payment", as: "govpay_create_payment", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } get "/govpay/v1/payments/:payment_id", to: "govpay#payment_details", as: "govpay_payment_details", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } post "/govpay/v1/payments/:payment_id/refunds", to: "govpay#create_refund", as: "govpay_create_refund", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } get "/govpay/v1/payments/:payment_id/refunds/:refund_id", to: "govpay#refund_details", as: "govpay_refund_details", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } end