|
@@ -0,0 +1,36 @@
|
|
|
|
|
+package com.zhongshu.payment.client.pay.type;
|
|
|
|
|
+
|
|
|
|
|
+import com.zhongshu.payment.client.pay.service.BasePayService;
|
|
|
|
|
+import com.zhongshu.payment.client.pay.service.impl.impl.AliPayDirectPayService;
|
|
|
|
|
+import com.zhongshu.payment.client.pay.service.impl.impl.UnionFrictionlessPayService;
|
|
|
|
|
+import com.zhongshu.payment.client.pay.service.impl.impl.WeChatDirectPayService;
|
|
|
|
|
+import com.zhongshu.payment.client.pay.service.impl.impl.WeChatWalletPayService;
|
|
|
|
|
+import lombok.Getter;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * 支付方式
|
|
|
|
|
+ */
|
|
|
|
|
+public enum PayProductType {
|
|
|
|
|
+ WeChatWalletPay("微信充值钱包", PaymentType.WalletPay, WeChatWalletPayService.class),
|
|
|
|
|
+ UnionFrictionlessPay("银联无感支付", PaymentType.Frictionless, UnionFrictionlessPayService.class),
|
|
|
|
|
+ WeChatDirectPay("微信直营支付", PaymentType.DirectPay, WeChatDirectPayService.class),
|
|
|
|
|
+ ALiPayDirectPay("支付宝直营支付", PaymentType.DirectPay, AliPayDirectPayService.class),
|
|
|
|
|
+ ;
|
|
|
|
|
+
|
|
|
|
|
+ @Getter
|
|
|
|
|
+ private String remark;
|
|
|
|
|
+
|
|
|
|
|
+ // 支付结果是否是异步返回
|
|
|
|
|
+ @Getter
|
|
|
|
|
+ private PaymentType paymentType;
|
|
|
|
|
+
|
|
|
|
|
+ @Getter
|
|
|
|
|
+ private Class<? extends BasePayService> service;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ PayProductType(String remark, PaymentType paymentType, Class<? extends BasePayService> service) {
|
|
|
|
|
+ this.remark = remark;
|
|
|
|
|
+ this.paymentType = paymentType;
|
|
|
|
|
+ this.service = service;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|