import http from '@/utils/request'
/* --------------建行B扫C获取是否需要重试信息--------------------- */
export function getRefundNeedRetryInfo (params) {
  /*
    const demoParams = {
      'orderId': 4749589,
      'payType': 'B_SCAN_C_PAY',
      'type': 'TICKET',
      'price': 0.01,
      'ticketStatus': 'REFUNDING',
      'payChannel': '建行B扫C'
    }
  */
  return http.post(`/payment/getRefundNeedRetryInfo`, params)
}
// [{ "id": 59, "refundStatus": "UNKNOWN", "price": 0.01, "createTime": "2023-05-10T02:21:09.000+0000" }]

export function doRefundRetry (params) {
  /*
    const demoParams = {
      'taskId': 59,
      'payType': 'B_SCAN_C_PAY',
      'type': 'TICKET',
      'price': 0.01,
      'ticketStatus': 'REFUNDING',
      'payChannel': '建行B扫C'
    }
  */
  return http.post(`/payment/doRefundRetry`, params)
}
