ICashierPaymentService.java
1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package com.diligrp.cashier.trade.service;
import com.diligrp.cashier.pipeline.domain.OnlinePaymentResponse;
import com.diligrp.cashier.pipeline.domain.OnlinePaymentStatus;
import com.diligrp.cashier.pipeline.domain.OnlineRefundResponse;
import com.diligrp.cashier.trade.domain.*;
public interface ICashierPaymentService {
/**
* 提交收银台订单
*
* @param merchant - 接入商户
* @param cashierOrder - 订单申请
* @return 支付ID
*/
String doSubmit(Merchant merchant, CashierOrder cashierOrder);
/**
* 收银台支付
*
* @param cashierPayment - 支付信息
* @return 支付状态
*/
OnlinePaymentStatus doPayment(CashierPayment cashierPayment);
/**
* 支付结果通知
*
* @param response - 支付结果
*/
void notifyPaymentResponse(OnlinePaymentResponse response);
/**
* 关闭预支付订单
*/
void closePrepayOrder(String paymentId);
/**
* 查询交易订单状态
*/
OnlinePaymentResult queryPaymentState(String paymentId, String mode);
/**
* 支付退款申请
*/
OnlineRefundResult sendRefundRequest(OnlineRefundDTO request);
/**
* 退款结果通知
*
* @param response - 退款结果
*/
void notifyRefundResult(OnlineRefundResponse response);
/**
* 查询退款状态
*/
OnlineRefundResult queryRefundState(String refundId, String mode);
}