content: {-
   Copyright 2022-23, Juspay India Pvt Ltd
  
   This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License
  
   as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program
  
   is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  
   or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of
  
   the GNU Affero General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
  -}
  
  module BecknV2.FRFS.APIs where
  
  import qualified BecknV2.FRFS.Types as Spec
  import EulerHS.Prelude
  import Servant (JSON, Post, ReqBody, (:>))
  
  type SearchAPI =
    "search"
      :> ReqBody '[JSON] Spec.SearchReq
      :> Post '[JSON] Spec.AckResponse
  
  searchAPI :: Proxy SearchAPI
  searchAPI = Proxy
  
  type OnSearchAPI =
    "on_search"
      :> ReqBody '[JSON] Spec.OnSearchReq
      :> Post '[JSON] Spec.AckResponse
  
  onSearchAPI :: Proxy OnSearchAPI
  onSearchAPI = Proxy
  
  type SelectAPI =
    "select"
      :> ReqBody '[JSON] Spec.SelectReq
      :> Post '[JSON] Spec.AckResponse
  
  selectAPI :: Proxy SelectAPI
  selectAPI = Proxy
  
  type OnSelectAPI =
    "on_select"
      :> ReqBody '[JSON] Spec.OnSelectReq
      :> Post '[JSON] Spec.AckResponse
  
  onSelectAPI :: Proxy OnSelectAPI
  onSelectAPI = Proxy
  
  type InitAPI =
    "init"
      :> ReqBody '[JSON] Spec.InitReq
      :> Post '[JSON] Spec.AckResponse
  
  initAPI :: Proxy InitAPI
  initAPI = Proxy
  
  type OnInitAPI =
    "on_init"
      :> ReqBody '[JSON] Spec.OnInitReq
      :> Post '[JSON] Spec.AckResponse
  
  onInitAPI :: Proxy OnInitAPI
  onInitAPI = Proxy
  
  type ConfirmAPI =
    "confirm"
      :> ReqBody '[JSON] Spec.ConfirmReq
      :> Post '[JSON] Spec.AckResponse
  
  confirmAPI :: Proxy ConfirmAPI
  confirmAPI = Proxy
  
  type OnConfirmAPI =
    "on_confirm"
      :> ReqBody '[JSON] Spec.OnConfirmReq
      :> Post '[JSON] Spec.AckResponse
  
  onConfirmAPI :: Proxy OnConfirmAPI
  onConfirmAPI = Proxy
  
  type StatusAPI =
    "status"
      :> ReqBody '[JSON] Spec.StatusReq
      :> Post '[JSON] Spec.AckResponse
  
  statusAPI :: Proxy StatusAPI
  statusAPI = Proxy
  
  type OnStatusAPI =
    "on_status"
      :> ReqBody '[JSON] Spec.OnStatusReq
      :> Post '[JSON] Spec.AckResponse
  
  onStatusAPI :: Proxy OnStatusAPI
  onStatusAPI = Proxy
  
  type CancelAPI =
    "cancel"
      :> ReqBody '[JSON] Spec.CancelReq
      :> Post '[JSON] Spec.AckResponse
  
  cancelAPI :: Proxy CancelAPI
  cancelAPI = Proxy
  
  type OnCancelAPI =
    "on_cancel"
      :> ReqBody '[JSON] Spec.OnCancelReq
      :> Post '[JSON] Spec.AckResponse
  
  onCancelAPI :: Proxy OnCancelAPI
  onCancelAPI = Proxy
  
  type OnUpdateAPI =
    "on_update"
      :> ReqBody '[JSON] Spec.OnUpdateReq
      :> Post '[JSON] Spec.AckResponse
  
  onUpdateAPI :: Proxy OnUpdateAPI
  onUpdateAPI = Proxy
  