PaymentEvent.java
1.31 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
package com.diligrp.cashier.shared.spi;
import java.time.LocalDateTime;
public class PaymentEvent {
// 支付ID
private final String tradeId;
// 支付状态
private final Integer state;
// 业务系统订单号
private final String outTradeNo;
// 实际支付方式
private final Integer outPayType;
// 支付人信息
private final String payerId;
// 发生时间
private final LocalDateTime when;
// 交易描述
private final String message;
public PaymentEvent(String tradeId, int state, String outTradeNo, Integer outPayType, String payerId, LocalDateTime when, String message) {
this.tradeId = tradeId;
this.state = state;
this.outTradeNo = outTradeNo;
this.outPayType = outPayType;
this.payerId = payerId;
this.when = when;
this.message = message;
}
public String getTradeId() {
return tradeId;
}
public Integer getState() {
return state;
}
public String getOutTradeNo() {
return outTradeNo;
}
public Integer getOutPayType() {
return outPayType;
}
public String getPayerId() {
return payerId;
}
public LocalDateTime getWhen() {
return when;
}
public String getMessage() {
return message;
}
}