Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
919b8af0
Commit
919b8af0
authored
Jan 24, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付参数类
parent
1de859dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
126 additions
and
0 deletions
+126
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayAmount.java
...in/java/com/wwdz/ch/core/entity/wxPay/JSApiPayAmount.java
+26
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayRequestDto.java
...ava/com/wwdz/ch/core/entity/wxPay/JSApiPayRequestDto.java
+76
-0
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayer.java
...c/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayer.java
+24
-0
No files found.
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayAmount.java
0 → 100644
View file @
919b8af0
package
com.wwdz.ch.core.entity.wxPay
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
JSApiPayAmount
implements
Entity
{
/**
* 订单总金额,单位为分。
*/
private
Integer
total
;
/**
* CNY:人民币,境内商户号仅支持人民币。
*/
private
String
currency
=
"CNY"
;
public
JSApiPayAmount
(
Integer
total
)
{
this
.
total
=
total
;
}
public
static
JSApiPayAmount
of
(
Integer
total
)
{
return
new
JSApiPayAmount
(
total
);
}
}
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayRequestDto.java
0 → 100644
View file @
919b8af0
package
com.wwdz.ch.core.entity.wxPay
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Map
;
/**
* 微信小程序支付
* 请求参数
*/
@Data
public
class
JSApiPayRequestDto
implements
Entity
{
/**
* 应用ID
*/
private
String
appid
;
/**
* 直连商户号
*/
private
String
mchid
;
/**
* 商品描述
*/
private
String
description
;
/**
* 商户订单号
*/
private
String
out_trade_no
;
/**
* 交易结束时间
* 订单失效时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,
* 表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC8小时,即北京时间)。
* 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。
* 示例值:2018-06-08T10:34:56+08:00
*/
private
String
time_expire
;
/**
* 附加数据
*/
private
String
attach
;
/**
* 通知地址
*/
private
String
notify_url
;
/**
* 订单优惠标记
*/
private
String
goods_tag
;
/**
* 电子发票入口开放标识
*/
private
Boolean
support_fapiao
;
/**
* 订单金额
*/
private
Map
<
String
,
Object
>
amount
;
/**
* 支付者信息
*/
private
Map
<
String
,
Object
>
payer
;
}
ch-core/src/main/java/com/wwdz/ch/core/entity/wxPay/JSApiPayer.java
0 → 100644
View file @
919b8af0
package
com.wwdz.ch.core.entity.wxPay
;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
@Data
public
class
JSApiPayer
implements
Entity
{
/**
* 用户标识
*/
private
String
openid
;
public
JSApiPayer
()
{
}
public
JSApiPayer
(
String
openid
)
{
this
.
openid
=
openid
;
}
public
static
JSApiPayer
of
(
String
openid
)
{
return
new
JSApiPayer
(
openid
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment