import { useRequest } from '@/use/useHttp'

/**
 * 获取应收单订单支付方式信息
 */
export const GetOrderPayApi = () => {
  return useRequest({
    url: '/v1/mall/orderPayment/orderPaymentMethodInfo',
    method: 'get',
  })
}

/**
 * 应收单订单支付提交
 */
export const SubmitOrderPayApi = () => {
  return useRequest({
    url: '/v1/mall/orderPayment/orderPaymentSubmission',
    method: 'put',
  })
}

/**
 * 获取预付单支付方式信息
 */
export const GetPrepayOrderPayApi = () => {
  return useRequest({
    url: '/v1/mall/orderPayment/preCollectOrder/orderPaymentMethodInfo',
    method: 'get',
  })
}

/**
 * 预付单订单支付提交
 */
export const SubmitPrepayOrderPayApi = () => {
  return useRequest({
    url: '/v1/mall/orderPayment/preCollectOrder/orderPaymentSubmission',
    method: 'put',
  })
}
