diff --git a/src/api/his.ts b/src/api/his.ts index 7974d2f..323ab6a 100644 --- a/src/api/his.ts +++ b/src/api/his.ts @@ -26,6 +26,8 @@ import type { PhysicalExamAddItemListResponse, InputPhysicalExamAddOrder, PhysicalExamQrcodeCreateResponse, + InputOrderPaymentInfo, + PhysicalExamIsPaymentResponse, InputPhysicalExamDiningLog, PhysicalExamDiningLogResponse, InputTijianDiningLog, @@ -224,6 +226,18 @@ export const createNativePaymentQrcode = ( ).then(res => res.data); }; +/** + * Native-查询支付是否成功 + */ +export const checkNativePaymentStatus = ( + data: InputOrderPaymentInfo +): Promise => { + return request.post( + `${MEDICAL_EXAM_BASE_PATH}/is-payment`, + data + ).then(res => res.data); +}; + /** * 提交体检签名生成导检单PDF */ diff --git a/src/api/types.ts b/src/api/types.ts index b51c27b..59fba40 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -443,6 +443,21 @@ export interface InputPhysicalExamAddOrder { */ export type PhysicalExamQrcodeCreateResponse = CommonActionResult; +/** + * 体检支付结果查询入参(Native 查询支付是否成功) + */ +export interface InputOrderPaymentInfo { + /** 体检ID */ + physical_exam_id: number; + /** 订单编号 */ + order_id: string; +} + +/** + * 体检支付结果查询响应 + */ +export type PhysicalExamIsPaymentResponse = CommonActionResult; + /** * 体检用餐登记列表入参 */