OnlineRefundResponse.java
1.11 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
package com.diligrp.cashier.pipeline.domain;
import com.diligrp.cashier.pipeline.type.PaymentState;
import java.time.LocalDateTime;
/**
* 退款结果领域模型
*/
public class OnlineRefundResponse {
// 商户退款单号
private final String refundId;
// 通道退款订单号
private final String outTradeNo;
// 退款完成时间
private final LocalDateTime when;
// 退款状态
private final PaymentState state;
// 交易备注
private final String message;
public OnlineRefundResponse(String refundId, String outTradeNo, LocalDateTime when, PaymentState state, String message) {
this.refundId = refundId;
this.outTradeNo = outTradeNo;
this.when = when;
this.state = state;
this.message = message;
}
public String getRefundId() {
return refundId;
}
public String getOutTradeNo() {
return outTradeNo;
}
public LocalDateTime getWhen() {
return when;
}
public PaymentState getState() {
return state;
}
public String getMessage() {
return message;
}
}