OnlinePaymentRequest.java
1.23 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
package com.diligrp.cashier.pipeline.domain;
import com.diligrp.cashier.shared.domain.ContainerSupport;
import java.time.LocalDateTime;
import java.util.Map;
/**
* 预支付申请模型
*/
public class OnlinePaymentRequest extends ContainerSupport {
// 支付ID
protected String paymentId;
// 交易金额 - 分
protected long amount;
// 商品描述
protected String goods;
// 交易备注
protected String description;
// 交易时间
protected LocalDateTime when;
public OnlinePaymentRequest(String paymentId, long amount, String goods, String description, LocalDateTime when) {
this.paymentId = paymentId;
this.amount = amount;
this.goods = goods;
this.description = description;
this.when = when;
}
public String getPaymentId() {
return paymentId;
}
public long getAmount() {
return amount;
}
public String getGoods() {
return goods;
}
public String getDescription() {
return description;
}
public LocalDateTime getWhen() {
return when;
}
public void putParams(Map<String, Object> params) {
if (params != null) {
putAll(params);
}
}
}