|
|
@@ -6,22 +6,19 @@ import lombok.Getter;
|
|
|
* 支付方式
|
|
|
*/
|
|
|
public enum PaymentType {
|
|
|
- WeChat("微信支付", false, "WxPaymentMainService", PaymentChannelType.BalancePayment),
|
|
|
- Alipay("支付宝", false, "WxPaymentMainService", PaymentChannelType.BalancePayment),
|
|
|
- UnionFrictionlessPay("银联无感支付", true, "UnionFrictionlessPayMainService", PaymentChannelType.SecretFreePayment),
|
|
|
- LakalaFrictionlessPay("拉卡拉快捷支付", true, "", PaymentChannelType.SecretFreePayment),
|
|
|
- UserWallet("个人钱包", false, "WalletMainService", PaymentChannelType.BalancePayment),
|
|
|
- QrCode("二维码支付", false, "", null),
|
|
|
- WxQrCode("微信付款码支付", false, "", null),
|
|
|
- ZfbQrCode("支付宝付款码支付", false, "", null),
|
|
|
+ WeChat("微信支付", false, PaymentChannelType.BalancePayment),
|
|
|
+ UserWallet("个人钱包", false, PaymentChannelType.BalancePayment),
|
|
|
+ UnionFrictionlessPay("银联无感支付", true, PaymentChannelType.SecretFreePayment),
|
|
|
+ Alipay("支付宝", false, PaymentChannelType.BalancePayment),
|
|
|
+ LakalaFrictionlessPay("拉卡拉快捷支付", true, PaymentChannelType.SecretFreePayment),
|
|
|
+ QrCode("二维码支付", false, null),
|
|
|
+ WxQrCode("微信付款码支付", false, null),
|
|
|
+ ZfbQrCode("支付宝付款码支付", false, null),
|
|
|
;
|
|
|
|
|
|
@Getter
|
|
|
private String remark;
|
|
|
|
|
|
- @Getter
|
|
|
- private String serviceBeanName;
|
|
|
-
|
|
|
// 支付结果是否是异步返回
|
|
|
@Getter
|
|
|
private boolean payIsAsync;
|
|
|
@@ -29,10 +26,9 @@ public enum PaymentType {
|
|
|
@Getter
|
|
|
private PaymentChannelType channelType;
|
|
|
|
|
|
- PaymentType(String remark, boolean payIsAsync, String serviceBeanName, PaymentChannelType channelType) {
|
|
|
+ PaymentType(String remark, boolean payIsAsync, PaymentChannelType channelType) {
|
|
|
this.remark = remark;
|
|
|
this.payIsAsync = payIsAsync;
|
|
|
- this.serviceBeanName = serviceBeanName;
|
|
|
this.channelType = channelType;
|
|
|
}
|
|
|
}
|