Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Jeepay
Commits
de3de82d
Commit
de3de82d
authored
Jun 09, 2021
by
dingzhiwei
Browse files
初始化Jeepay项目
parent
40dcaf4a
Changes
453
Show whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 453+
files are displayed.
Plain diff
Email patch
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/CommonPayDataRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder
;
import
com.jeequan.jeepay.core.constants.CS
;
import
lombok.Data
;
import
org.apache.commons.lang3.StringUtils
;
/*
* 通用支付数据RS
* 根据set的值,响应不同的payDataType
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:32
*/
@Data
public
class
CommonPayDataRS
extends
UnifiedOrderRS
{
/** 跳转地址 **/
private
String
payUrl
;
/** 二维码地址 **/
private
String
codeUrl
;
/** 二维码图片地址 **/
private
String
codeImgUrl
;
/** 表单内容 **/
private
String
formContent
;
@Override
public
String
buildPayDataType
(){
if
(
StringUtils
.
isNotEmpty
(
payUrl
)){
return
CS
.
PAY_DATA_TYPE
.
PAY_URL
;
}
if
(
StringUtils
.
isNotEmpty
(
codeUrl
)){
return
CS
.
PAY_DATA_TYPE
.
CODE_URL
;
}
if
(
StringUtils
.
isNotEmpty
(
codeImgUrl
)){
return
CS
.
PAY_DATA_TYPE
.
CODE_IMG_URL
;
}
if
(
StringUtils
.
isNotEmpty
(
formContent
)){
return
CS
.
PAY_DATA_TYPE
.
FORM
;
}
return
CS
.
PAY_DATA_TYPE
.
PAY_URL
;
}
@Override
public
String
buildPayData
(){
if
(
StringUtils
.
isNotEmpty
(
payUrl
)){
return
payUrl
;
}
if
(
StringUtils
.
isNotEmpty
(
codeUrl
)){
return
codeUrl
;
}
if
(
StringUtils
.
isNotEmpty
(
codeImgUrl
)){
return
codeImgUrl
;
}
if
(
StringUtils
.
isNotEmpty
(
formContent
)){
return
formContent
;
}
return
""
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/UnifiedOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder
;
import
com.alibaba.fastjson.JSONObject
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.AbstractRQ
;
import
com.jeequan.jeepay.pay.rqrs.payorder.payway.*
;
import
lombok.Data
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
javax.validation.constraints.Min
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
/*
* 创建订单请求参数对象
* 聚合支付接口(统一下单)
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:33
*/
@Data
public
class
UnifiedOrderRQ
extends
AbstractRQ
{
/** 商户号 **/
@NotBlank
(
message
=
"商户号不能为空"
)
private
String
mchNo
;
/** 商户订单号 **/
@NotBlank
(
message
=
"商户订单号不能为空"
)
private
String
mchOrderNo
;
/** 支付方式 如: wxpay_jsapi,alipay_wap等 **/
@NotBlank
(
message
=
"支付方式不能为空"
)
private
String
wayCode
;
/** 支付金额, 单位:分 **/
@NotNull
(
message
=
"支付金额不能为空"
)
@Min
(
value
=
1
,
message
=
"支付金额不能为空"
)
private
Long
amount
;
/** 货币代码 **/
@NotBlank
(
message
=
"货币代码不能为空"
)
private
String
currency
;
/** 客户端IP地址 **/
private
String
clientIp
;
/** 商品标题 **/
@NotBlank
(
message
=
"商品标题不能为空"
)
private
String
subject
;
/** 商品描述信息 **/
@NotBlank
(
message
=
"商品描述信息不能为空"
)
private
String
body
;
/** 异步通知地址 **/
private
String
notifyUrl
;
/** 跳转通知地址 **/
private
String
returnUrl
;
/** 订单失效时间 **/
private
String
expiredTime
;
/** 特定渠道发起额外参数 **/
private
String
channelExtra
;
/** 渠道用户标识,如微信openId,支付宝账号 **/
private
String
channelUser
;
/** 商户扩展参数 **/
private
String
extParam
;
/** 返回真实的bizRQ **/
public
UnifiedOrderRQ
buildBizRQ
(){
if
(
CS
.
PAY_WAY_CODE
.
ALI_BAR
.
equals
(
wayCode
)){
AliBarOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliBarOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
ALI_JSAPI
.
equals
(
wayCode
)){
AliJsapiOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliJsapiOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
QR_CASHIER
.
equals
(
wayCode
)){
QrCashierOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
QrCashierOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
WX_JSAPI
.
equals
(
wayCode
)
||
CS
.
PAY_WAY_CODE
.
WX_LITE
.
equals
(
wayCode
)){
WxJsapiOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
WxJsapiOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
WX_BAR
.
equals
(
wayCode
)){
WxBarOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
WxBarOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
WX_NATIVE
.
equals
(
wayCode
)){
WxNativeOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
WxNativeOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
WX_H5
.
equals
(
wayCode
)){
WxH5OrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
WxH5OrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
YSF_BAR
.
equals
(
wayCode
)){
YsfBarOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
YsfBarOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
YSF_JSAPI
.
equals
(
wayCode
)){
YsfJsapiOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
YsfJsapiOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
AUTO_BAR
.
equals
(
wayCode
)){
AutoBarOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AutoBarOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
ALI_APP
.
equals
(
wayCode
)){
AliAppOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliAppOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
ALI_WAP
.
equals
(
wayCode
)){
AliWapOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliWapOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
ALI_PC
.
equals
(
wayCode
)){
AliPcOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliPcOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
else
if
(
CS
.
PAY_WAY_CODE
.
ALI_QR
.
equals
(
wayCode
)){
AliQrOrderRQ
bizRQ
=
JSONObject
.
parseObject
(
StringUtils
.
defaultIfEmpty
(
this
.
channelExtra
,
"{}"
),
AliQrOrderRQ
.
class
);
BeanUtils
.
copyProperties
(
this
,
bizRQ
);
return
bizRQ
;
}
return
this
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/UnifiedOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.AbstractRS
;
import
com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg
;
import
lombok.Data
;
/*
* 创建订单(统一订单) 响应参数
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
UnifiedOrderRS
extends
AbstractRS
{
/** 支付订单号 **/
private
String
payOrderId
;
/** 商户订单号 **/
private
String
mchOrderNo
;
/** 订单状态 **/
private
Byte
orderState
;
/** 支付参数类型 ( 无参数, 调起支付插件参数, 重定向到指定地址, 用户扫码 ) **/
private
String
payDataType
;
/** 支付参数 **/
private
String
payData
;
/** 渠道返回错误代码 **/
private
String
errCode
;
/** 渠道返回错误信息 **/
private
String
errMsg
;
/** 上游渠道返回数据包 (无需JSON序列化) **/
@JSONField
(
serialize
=
false
)
private
ChannelRetMsg
channelRetMsg
;
/** 生成聚合支付参数 (仅统一下单接口使用) **/
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
NONE
;
}
/** 生成支付参数 **/
public
String
buildPayData
(){
return
""
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliAppOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ
;
import
lombok.Data
;
/*
* 支付方式: ALI_APP
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliAppOrderRQ
extends
UnifiedOrderRQ
{
/** 构造函数 **/
public
AliAppOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_APP
);
//默认 wayCode, 避免validate出现问题
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliAppOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_APP
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliAppOrderRS
extends
UnifiedOrderRS
{
private
String
payData
;
@Override
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
ALI_APP
;
}
@Override
public
String
buildPayData
(){
return
payData
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliBarOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
/*
* 支付方式: ALI_BAR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliBarOrderRQ
extends
UnifiedOrderRQ
{
/** 用户 支付条码 **/
@NotBlank
(
message
=
"支付条码不能为空"
)
private
String
authCode
;
/** 构造函数 **/
public
AliBarOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_BAR
);
//默认 ali_bar, 避免validate出现问题
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliBarOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_BAR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliBarOrderRS
extends
UnifiedOrderRS
{
@Override
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
NONE
;
}
@Override
public
String
buildPayData
(){
return
""
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliJsapiOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
/*
* 支付方式: ALI_JSAPI
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliJsapiOrderRQ
extends
UnifiedOrderRQ
{
/** 支付宝用户ID **/
@NotBlank
(
message
=
"用户ID不能为空"
)
private
String
buyerUserId
;
/** 构造函数 **/
public
AliJsapiOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_JSAPI
);
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliJsapiOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.core.utils.JsonKit
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_JSAPI
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliJsapiOrderRS
extends
UnifiedOrderRS
{
/** 调起支付插件的支付宝订单号 **/
private
String
alipayTradeNo
;
@Override
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
ALI_APP
;
}
@Override
public
String
buildPayData
(){
return
JsonKit
.
newJson
(
"alipayTradeNo"
,
alipayTradeNo
).
toString
();
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliPcOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ
;
import
lombok.Data
;
/*
* 支付方式: ALI_PC
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliPcOrderRQ
extends
CommonPayDataRQ
{
/** 构造函数 **/
public
AliPcOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_PC
);
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliPcOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_PC
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliPcOrderRS
extends
CommonPayDataRS
{
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ
;
import
lombok.Data
;
/*
* 支付方式: ALI_QR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliQrOrderRQ
extends
CommonPayDataRQ
{
/** 构造函数 **/
public
AliQrOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_QR
);
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_QR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliQrOrderRS
extends
CommonPayDataRS
{
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliWapOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ
;
import
lombok.Data
;
/*
* 支付方式: ALI_WAP
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliWapOrderRQ
extends
CommonPayDataRQ
{
/** 构造函数 **/
public
AliWapOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
ALI_WAP
);
//默认 ALI_WAP, 避免validate出现问题
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliWapOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS
;
import
lombok.Data
;
/*
* 支付方式: ALI_WAP
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AliWapOrderRS
extends
CommonPayDataRS
{
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AutoBarOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ
;
import
lombok.Data
;
/*
* 支付方式: AUTO_BAR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AutoBarOrderRQ
extends
UnifiedOrderRQ
{
/** 条码值 **/
private
String
authCode
;
/** 构造函数 **/
public
AutoBarOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
AUTO_BAR
);
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AutoBarOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: AUTO_BAR
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
AutoBarOrderRS
extends
UnifiedOrderRS
{
@Override
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
NONE
;
}
@Override
public
String
buildPayData
(){
return
""
;
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRQ.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ
;
import
lombok.Data
;
/*
* 支付方式: QR_CASHIER
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
QrCashierOrderRQ
extends
CommonPayDataRQ
{
/** 构造函数 **/
public
QrCashierOrderRQ
(){
this
.
setWayCode
(
CS
.
PAY_WAY_CODE
.
QR_CASHIER
);
}
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS
;
import
lombok.Data
;
/*
* 支付方式: QR_CASHIER
*
* @author terrfly
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
QrCashierOrderRS
extends
CommonPayDataRS
{
}
jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxAppOrderRS.java
0 → 100644
View file @
de3de82d
/*
* Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
* <p>
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.gnu.org/licenses/lgpl.html
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
com.jeequan.jeepay.pay.rqrs.payorder.payway
;
import
com.jeequan.jeepay.core.constants.CS
;
import
com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS
;
import
lombok.Data
;
/*
* 支付方式: WX_APP
*
* @author zhuxiao
* @site https://www.jeepay.vip
* @date 2021/6/8 17:34
*/
@Data
public
class
WxAppOrderRS
extends
UnifiedOrderRS
{
/** 预支付数据包 **/
private
String
payInfo
;
@Override
public
String
buildPayDataType
(){
return
CS
.
PAY_DATA_TYPE
.
WX_APP
;
}
@Override
public
String
buildPayData
(){
return
payInfo
;
}
}
Prev
1
…
9
10
11
12
13
14
15
16
17
…
23
Next
Write
Preview
Supports
Markdown
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