├── .env ├── .gitignore ├── LICENSE ├── README.md ├── conf ├── devCommons │ └── config │ │ └── application.yml ├── manager │ └── application.yml ├── merchant │ └── application.yml ├── payment │ └── application.yml └── readme.txt ├── docker-compose.yml ├── docker ├── activemq │ ├── Dockerfile │ └── activemq.xml ├── build-docker-starter.sh ├── nginx.sh ├── push-to-docker.md ├── rabbitmq │ ├── Dockerfile │ ├── limits.ejs │ └── users.ejs └── rocketmq │ └── broker │ └── conf │ └── broker.conf ├── docs ├── install │ ├── config.sh │ ├── include │ │ ├── my.cnf │ │ ├── nginx.conf │ │ └── redis.conf │ ├── install.sh │ └── uninstall.sh ├── script │ └── app.sh └── sql │ ├── init.sql │ └── patch.sql ├── jeepay-components ├── jeepay-components-mq │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── jeequan │ │ │ └── jeepay │ │ │ └── components │ │ │ └── mq │ │ │ ├── constant │ │ │ ├── MQSendTypeEnum.java │ │ │ └── MQVenderCS.java │ │ │ ├── executor │ │ │ └── MqThreadExecutor.java │ │ │ ├── model │ │ │ ├── AbstractMQ.java │ │ │ ├── CleanMchLoginAuthCacheMQ.java │ │ │ ├── PayOrderDivisionMQ.java │ │ │ ├── PayOrderMchNotifyMQ.java │ │ │ ├── PayOrderReissueMQ.java │ │ │ ├── ResetAppConfigMQ.java │ │ │ └── ResetIsvMchAppInfoConfigMQ.java │ │ │ └── vender │ │ │ ├── IMQMsgReceiver.java │ │ │ ├── IMQSender.java │ │ │ ├── activemq │ │ │ ├── ActiveMQConfig.java │ │ │ ├── ActiveMQSender.java │ │ │ └── receive │ │ │ │ ├── CleanMchLoginAuthCacheActiveMQReceiver.java │ │ │ │ ├── PayOrderDivisionActiveMQReceiver.java │ │ │ │ ├── PayOrderMchNotifyActiveMQReceiver.java │ │ │ │ ├── PayOrderReissueActiveMQReceiver.java │ │ │ │ ├── ResetAppConfigActiveMQReceiver.java │ │ │ │ └── ResetIsvMchAppInfoActiveMQReceiver.java │ │ │ ├── aliyunrocketmq │ │ │ ├── AbstractAliYunRocketMQReceiver.java │ │ │ ├── AliYunRocketMQFactory.java │ │ │ ├── AliYunRocketMQSender.java │ │ │ └── receive │ │ │ │ ├── CleanMchLoginAuthCacheAliYunRocketMQReceiver.java │ │ │ │ ├── PayOrderDivisionAliYunRocketMQReceiver.java │ │ │ │ ├── PayOrderMchNotifyAliYunRocketMQReceiver.java │ │ │ │ ├── PayOrderReissueAliYunRocketMQReceiver.java │ │ │ │ ├── ResetAppConfigAliYunRocketMQReceiver.java │ │ │ │ └── ResetIsvMchAppInfoAliYunRocketMQReceiver.java │ │ │ ├── rabbitmq │ │ │ ├── RabbitMQBeanProcessor.java │ │ │ ├── RabbitMQConfig.java │ │ │ ├── RabbitMQSender.java │ │ │ └── receive │ │ │ │ ├── CleanMchLoginAuthCacheRabbitMQReceiver.java │ │ │ │ ├── PayOrderDivisionRabbitMQReceiver.java │ │ │ │ ├── PayOrderMchNotifyRabbitMQReceiver.java │ │ │ │ ├── PayOrderReissueRabbitMQReceiver.java │ │ │ │ ├── ResetAppConfigRabbitMQReceiver.java │ │ │ │ └── ResetIsvMchAppInfoRabbitMQReceiver.java │ │ │ └── rocketmq │ │ │ ├── RocketMQSender.java │ │ │ └── receive │ │ │ ├── CleanMchLoginAuthCacheRocketMQReceiver.java │ │ │ ├── PayOrderDivisionRocketMQReceiver.java │ │ │ ├── PayOrderMchNotifyRocketMQReceiver.java │ │ │ ├── PayOrderReissueRocketMQReceiver.java │ │ │ ├── ResetAppConfigRocketMQReceiver.java │ │ │ └── ResetIsvMchAppInfoRocketMQReceiver.java │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── .gitkeep │ │ └── resources │ │ └── .gitkeep ├── jeepay-components-oss │ ├── pom.xml │ └── src │ │ ├── main │ │ └── java │ │ │ └── com │ │ │ └── jeequan │ │ │ └── jeepay │ │ │ └── components │ │ │ └── oss │ │ │ ├── config │ │ │ ├── AliyunOssYmlConfig.java │ │ │ └── OssYmlConfig.java │ │ │ ├── constant │ │ │ ├── OssSavePlaceEnum.java │ │ │ └── OssServiceTypeEnum.java │ │ │ ├── ctrl │ │ │ └── OssFileController.java │ │ │ ├── model │ │ │ └── OssFileConfig.java │ │ │ └── service │ │ │ ├── AliyunOssService.java │ │ │ ├── IOssService.java │ │ │ └── LocalFileService.java │ │ └── test │ │ ├── java │ │ └── com │ │ │ └── .gitkeep │ │ └── resources │ │ └── .gitkeep └── pom.xml ├── jeepay-core ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── core │ │ ├── aop │ │ └── MethodLog.java │ │ ├── beans │ │ └── RequestKitBean.java │ │ ├── cache │ │ ├── ITokenService.java │ │ └── RedisUtil.java │ │ ├── constants │ │ ├── ApiCodeEnum.java │ │ └── CS.java │ │ ├── ctrls │ │ └── AbstractCtrl.java │ │ ├── entity │ │ ├── IsvInfo.java │ │ ├── MchApp.java │ │ ├── MchDivisionReceiver.java │ │ ├── MchDivisionReceiverGroup.java │ │ ├── MchInfo.java │ │ ├── MchNotifyRecord.java │ │ ├── MchPayPassage.java │ │ ├── PayInterfaceConfig.java │ │ ├── PayInterfaceDefine.java │ │ ├── PayOrder.java │ │ ├── PayOrderDivisionRecord.java │ │ ├── PayWay.java │ │ ├── RefundOrder.java │ │ ├── SysConfig.java │ │ ├── SysEntitlement.java │ │ ├── SysLog.java │ │ ├── SysRole.java │ │ ├── SysRoleEntRela.java │ │ ├── SysUser.java │ │ ├── SysUserAuth.java │ │ ├── SysUserRoleRela.java │ │ └── TransferOrder.java │ │ ├── exception │ │ ├── BizException.java │ │ ├── BizExceptionResolver.java │ │ ├── JeepayAuthenticationException.java │ │ └── ResponseException.java │ │ ├── jwt │ │ ├── JWTPayload.java │ │ └── JWTUtils.java │ │ ├── model │ │ ├── ApiPageRes.java │ │ ├── ApiRes.java │ │ ├── BaseModel.java │ │ ├── DBApplicationConfig.java │ │ ├── OriginalRes.java │ │ ├── QRCodeParams.java │ │ ├── params │ │ │ ├── IsvParams.java │ │ │ ├── IsvsubMchParams.java │ │ │ ├── NormalMchParams.java │ │ │ ├── alipay │ │ │ │ ├── AlipayConfig.java │ │ │ │ ├── AlipayIsvParams.java │ │ │ │ ├── AlipayIsvsubMchParams.java │ │ │ │ └── AlipayNormalMchParams.java │ │ │ ├── plspay │ │ │ │ ├── PlspayConfig.java │ │ │ │ └── PlspayNormalMchParams.java │ │ │ ├── pppay │ │ │ │ └── PppayNormalMchParams.java │ │ │ ├── wxpay │ │ │ │ ├── WxpayIsvParams.java │ │ │ │ ├── WxpayIsvsubMchParams.java │ │ │ │ └── WxpayNormalMchParams.java │ │ │ ├── xxpay │ │ │ │ └── XxpayNormalMchParams.java │ │ │ └── ysf │ │ │ │ ├── YsfpayConfig.java │ │ │ │ ├── YsfpayIsvParams.java │ │ │ │ └── YsfpayIsvsubMchParams.java │ │ └── security │ │ │ └── JeeUserDetails.java │ │ ├── service │ │ ├── ICodeSysTypeManager.java │ │ ├── IMchQrcodeManager.java │ │ └── ISysConfigService.java │ │ └── utils │ │ ├── AmountUtil.java │ │ ├── ApiResBodyAdviceKit.java │ │ ├── DateKit.java │ │ ├── FileKit.java │ │ ├── JeepayKit.java │ │ ├── JsonKit.java │ │ ├── RegKit.java │ │ ├── SeqKit.java │ │ ├── SpringBeansUtil.java │ │ ├── StringKit.java │ │ └── TreeDataBuilder.java │ └── test │ ├── java │ └── com │ │ └── .gitkeep │ └── resources │ └── .gitkeep ├── jeepay-manager ├── Dockerfile ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── jeequan │ │ │ └── jeepay │ │ │ └── mgr │ │ │ ├── aop │ │ │ └── MethodLogAop.java │ │ │ ├── bootstrap │ │ │ ├── FastJsonHttpMessageConverterEx.java │ │ │ ├── InitRunner.java │ │ │ ├── JeepayMgrApplication.java │ │ │ └── SwaggerJsonSerializer.java │ │ │ ├── config │ │ │ ├── RedisConfig.java │ │ │ ├── SwaggerConfig.java │ │ │ └── SystemYmlConfig.java │ │ │ ├── ctrl │ │ │ ├── CommonCtrl.java │ │ │ ├── CurrentUserController.java │ │ │ ├── anon │ │ │ │ └── AuthController.java │ │ │ ├── common │ │ │ │ └── StaticController.java │ │ │ ├── config │ │ │ │ ├── MainChartController.java │ │ │ │ └── SysConfigController.java │ │ │ ├── isv │ │ │ │ ├── IsvInfoController.java │ │ │ │ └── IsvPayInterfaceConfigController.java │ │ │ ├── merchant │ │ │ │ ├── MchAppController.java │ │ │ │ ├── MchInfoController.java │ │ │ │ ├── MchPayInterfaceConfigController.java │ │ │ │ └── MchPayPassageConfigController.java │ │ │ ├── order │ │ │ │ ├── MchNotifyController.java │ │ │ │ ├── PayOrderController.java │ │ │ │ ├── RefundOrderController.java │ │ │ │ └── TransferOrderController.java │ │ │ ├── payconfig │ │ │ │ ├── PayInterfaceDefineController.java │ │ │ │ └── PayWayController.java │ │ │ └── sysuser │ │ │ │ ├── SysEntController.java │ │ │ │ ├── SysLogController.java │ │ │ │ ├── SysRoleController.java │ │ │ │ ├── SysRoleEntRelaController.java │ │ │ │ ├── SysUserController.java │ │ │ │ └── SysUserRoleRelaController.java │ │ │ ├── mq │ │ │ └── ResetAppConfigMQReceiver.java │ │ │ ├── secruity │ │ │ ├── JeeAuthenticationEntryPoint.java │ │ │ ├── JeeAuthenticationTokenFilter.java │ │ │ ├── JeeUserDetailsServiceImpl.java │ │ │ └── WebSecurityConfig.java │ │ │ ├── service │ │ │ ├── AuthService.java │ │ │ └── CodeSysTypeManager.java │ │ │ └── web │ │ │ ├── ApiResBodyAdvice.java │ │ │ ├── ApiResInterceptor.java │ │ │ ├── ApplicationContextKit.java │ │ │ └── WebmvcConfig.java │ └── resources │ │ ├── application.yml │ │ ├── banner.txt │ │ ├── logback-spring.xml │ │ └── static │ │ └── index.html │ └── test │ ├── java │ └── .gitkeep │ └── resources │ └── .gitkeep ├── jeepay-merchant ├── Dockerfile ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── jeequan │ │ │ └── jeepay │ │ │ └── mch │ │ │ ├── aop │ │ │ └── MethodLogAop.java │ │ │ ├── bootstrap │ │ │ ├── FastJsonHttpMessageConverterEx.java │ │ │ ├── InitRunner.java │ │ │ ├── JeepayMchApplication.java │ │ │ └── SwaggerJsonSerializer.java │ │ │ ├── config │ │ │ ├── RedisConfig.java │ │ │ ├── SwaggerConfig.java │ │ │ └── SystemYmlConfig.java │ │ │ ├── ctrl │ │ │ ├── CommonCtrl.java │ │ │ ├── CurrentUserController.java │ │ │ ├── anon │ │ │ │ └── AuthController.java │ │ │ ├── division │ │ │ │ ├── MchDivisionReceiverController.java │ │ │ │ ├── MchDivisionReceiverGroupController.java │ │ │ │ └── PayOrderDivisionRecordController.java │ │ │ ├── merchant │ │ │ │ ├── MainChartController.java │ │ │ │ ├── MchAppController.java │ │ │ │ ├── MchPayInterfaceConfigController.java │ │ │ │ └── MchPayPassageConfigController.java │ │ │ ├── order │ │ │ │ ├── PayOrderController.java │ │ │ │ ├── RefundOrderController.java │ │ │ │ └── TransferOrderController.java │ │ │ ├── payconfig │ │ │ │ └── PayWayController.java │ │ │ ├── paytest │ │ │ │ ├── PaytestController.java │ │ │ │ └── PaytestNotifyController.java │ │ │ ├── sysuser │ │ │ │ ├── SysEntController.java │ │ │ │ ├── SysRoleController.java │ │ │ │ ├── SysRoleEntRelaController.java │ │ │ │ ├── SysUserController.java │ │ │ │ └── SysUserRoleRelaController.java │ │ │ └── transfer │ │ │ │ ├── ChannelUserIdNotifyController.java │ │ │ │ ├── MchTransferController.java │ │ │ │ └── TransferNotifyController.java │ │ │ ├── mq │ │ │ ├── CleanMchLoginAuthCacheMQReceiver.java │ │ │ └── ResetAppConfigMQReceiver.java │ │ │ ├── secruity │ │ │ ├── JeeAuthenticationEntryPoint.java │ │ │ ├── JeeAuthenticationTokenFilter.java │ │ │ ├── JeeUserDetailsServiceImpl.java │ │ │ └── WebSecurityConfig.java │ │ │ ├── service │ │ │ ├── AuthService.java │ │ │ └── CodeSysTypeManager.java │ │ │ ├── web │ │ │ ├── ApiResBodyAdvice.java │ │ │ ├── ApiResInterceptor.java │ │ │ ├── ApplicationContextKit.java │ │ │ └── WebmvcConfig.java │ │ │ └── websocket │ │ │ ├── config │ │ │ └── WebSocketConfig.java │ │ │ └── server │ │ │ ├── WsChannelUserIdServer.java │ │ │ ├── WsPayOrderServer.java │ │ │ └── WsTransferOrderServer.java │ └── resources │ │ ├── application.yml │ │ ├── banner.txt │ │ ├── logback-spring.xml │ │ ├── static │ │ └── index.html │ │ └── templates │ │ └── channelUser │ │ └── getChannelUserIdPage.ftl │ └── test │ ├── java │ └── .gitkeep │ └── resources │ └── .gitkeep ├── jeepay-payment ├── Dockerfile ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── jeequan │ │ │ └── jeepay │ │ │ └── pay │ │ │ ├── bootstrap │ │ │ ├── FastJsonHttpMessageConverterEx.java │ │ │ ├── InitRunner.java │ │ │ ├── JeepayPayApplication.java │ │ │ └── SwaggerJsonSerializer.java │ │ │ ├── channel │ │ │ ├── AbstractChannelNoticeService.java │ │ │ ├── AbstractChannelRefundNoticeService.java │ │ │ ├── AbstractDivisionRecordChannelNotifyService.java │ │ │ ├── AbstractPaymentService.java │ │ │ ├── AbstractRefundService.java │ │ │ ├── AbstractTransferNoticeService.java │ │ │ ├── IChannelNoticeService.java │ │ │ ├── IChannelRefundNoticeService.java │ │ │ ├── IChannelUserService.java │ │ │ ├── IDivisionService.java │ │ │ ├── IPayOrderCloseService.java │ │ │ ├── IPayOrderQueryService.java │ │ │ ├── IPaymentService.java │ │ │ ├── IRefundService.java │ │ │ ├── ITransferNoticeService.java │ │ │ ├── ITransferService.java │ │ │ ├── alipay │ │ │ │ ├── AlipayChannelNoticeService.java │ │ │ │ ├── AlipayChannelUserService.java │ │ │ │ ├── AlipayDivisionRecordChannelNotifyService.java │ │ │ │ ├── AlipayDivisionService.java │ │ │ │ ├── AlipayKit.java │ │ │ │ ├── AlipayPayOrderCloseService.java │ │ │ │ ├── AlipayPayOrderQueryService.java │ │ │ │ ├── AlipayPaymentService.java │ │ │ │ ├── AlipayRefundService.java │ │ │ │ ├── AlipayTransferNoticeService.java │ │ │ │ ├── AlipayTransferService.java │ │ │ │ ├── ctrl │ │ │ │ │ └── AlipayBizController.java │ │ │ │ └── payway │ │ │ │ │ ├── AliApp.java │ │ │ │ │ ├── AliBar.java │ │ │ │ │ ├── AliJsapi.java │ │ │ │ │ ├── AliOc.java │ │ │ │ │ ├── AliPc.java │ │ │ │ │ ├── AliQr.java │ │ │ │ │ └── AliWap.java │ │ │ ├── plspay │ │ │ │ ├── PlspayChannelNoticeService.java │ │ │ │ ├── PlspayChannelRefundNoticeService.java │ │ │ │ ├── PlspayKit.java │ │ │ │ ├── PlspayPayOrderQueryService.java │ │ │ │ ├── PlspayPaymentService.java │ │ │ │ ├── PlspayRefundService.java │ │ │ │ └── payway │ │ │ │ │ ├── AliApp.java │ │ │ │ │ ├── AliBar.java │ │ │ │ │ ├── AliJsapi.java │ │ │ │ │ ├── AliLite.java │ │ │ │ │ ├── AliPc.java │ │ │ │ │ ├── AliQr.java │ │ │ │ │ ├── AliWap.java │ │ │ │ │ ├── WxApp.java │ │ │ │ │ ├── WxBar.java │ │ │ │ │ ├── WxH5.java │ │ │ │ │ ├── WxJsapi.java │ │ │ │ │ ├── WxLite.java │ │ │ │ │ └── WxNative.java │ │ │ ├── pppay │ │ │ │ ├── PppayChannelNoticeService.java │ │ │ │ ├── PppayChannelRefundNoticeService.java │ │ │ │ ├── PppayPayOrderQueryService.java │ │ │ │ ├── PppayPaymentService.java │ │ │ │ ├── PppayRefundService.java │ │ │ │ └── payway │ │ │ │ │ └── PpPc.java │ │ │ ├── wxpay │ │ │ │ ├── WxpayChannelNoticeService.java │ │ │ │ ├── WxpayChannelRefundNoticeService.java │ │ │ │ ├── WxpayChannelUserService.java │ │ │ │ ├── WxpayDivisionService.java │ │ │ │ ├── WxpayPayOrderCloseService.java │ │ │ │ ├── WxpayPayOrderQueryService.java │ │ │ │ ├── WxpayPaymentService.java │ │ │ │ ├── WxpayRefundService.java │ │ │ │ ├── WxpayTransferNoticeService.java │ │ │ │ ├── WxpayTransferService.java │ │ │ │ ├── ctrl │ │ │ │ │ └── wxpayBizController.java │ │ │ │ ├── kits │ │ │ │ │ ├── WxpayKit.java │ │ │ │ │ └── WxpayV3Util.java │ │ │ │ ├── model │ │ │ │ │ └── WxpayV3OrderRequestModel.java │ │ │ │ ├── payway │ │ │ │ │ ├── WxApp.java │ │ │ │ │ ├── WxBar.java │ │ │ │ │ ├── WxH5.java │ │ │ │ │ ├── WxJsapi.java │ │ │ │ │ ├── WxLite.java │ │ │ │ │ └── WxNative.java │ │ │ │ └── paywayV3 │ │ │ │ │ ├── WxApp.java │ │ │ │ │ ├── WxBar.java │ │ │ │ │ ├── WxH5.java │ │ │ │ │ ├── WxJsapi.java │ │ │ │ │ ├── WxLite.java │ │ │ │ │ └── WxNative.java │ │ │ ├── xxpay │ │ │ │ ├── XxpayChannelNoticeService.java │ │ │ │ ├── XxpayChannelRefundNoticeService.java │ │ │ │ ├── XxpayKit.java │ │ │ │ ├── XxpayPayOrderQueryService.java │ │ │ │ ├── XxpayPaymentService.java │ │ │ │ ├── XxpayRefundService.java │ │ │ │ └── payway │ │ │ │ │ ├── AliBar.java │ │ │ │ │ ├── AliJsapi.java │ │ │ │ │ ├── WxBar.java │ │ │ │ │ └── WxJsapi.java │ │ │ └── ysfpay │ │ │ │ ├── YsfpayChannelNoticeService.java │ │ │ │ ├── YsfpayPayOrderCloseService.java │ │ │ │ ├── YsfpayPayOrderQueryService.java │ │ │ │ ├── YsfpayPaymentService.java │ │ │ │ ├── YsfpayRefundService.java │ │ │ │ ├── payway │ │ │ │ ├── AliBar.java │ │ │ │ ├── AliJsapi.java │ │ │ │ ├── WxBar.java │ │ │ │ ├── WxJsapi.java │ │ │ │ ├── YsfBar.java │ │ │ │ └── YsfJsapi.java │ │ │ │ └── utils │ │ │ │ ├── YsfHttpUtil.java │ │ │ │ └── YsfSignUtils.java │ │ │ ├── config │ │ │ ├── RedisConfig.java │ │ │ ├── SwaggerConfig.java │ │ │ └── SystemYmlConfig.java │ │ │ ├── ctrl │ │ │ ├── ApiController.java │ │ │ ├── CommonController.java │ │ │ ├── division │ │ │ │ ├── DivisionRecordChannelNotifyController.java │ │ │ │ ├── MchDivisionReceiverBindController.java │ │ │ │ └── PayOrderDivisionExecController.java │ │ │ ├── payorder │ │ │ │ ├── AbstractPayOrderController.java │ │ │ │ ├── ChannelNoticeController.java │ │ │ │ ├── CloseOrderController.java │ │ │ │ ├── QueryOrderController.java │ │ │ │ ├── UnifiedOrderController.java │ │ │ │ └── payway │ │ │ │ │ ├── AliBarOrderController.java │ │ │ │ │ ├── AliJsapiOrderController.java │ │ │ │ │ ├── YsfBarOrderController.java │ │ │ │ │ └── YsfJsapiOrderController.java │ │ │ ├── qr │ │ │ │ ├── ChannelUserIdController.java │ │ │ │ └── QrCashierController.java │ │ │ ├── refund │ │ │ │ ├── ChannelRefundNoticeController.java │ │ │ │ ├── QueryRefundOrderController.java │ │ │ │ └── RefundOrderController.java │ │ │ ├── scanimg │ │ │ │ └── ScanImgController.java │ │ │ └── transfer │ │ │ │ ├── QueryTransferOrderController.java │ │ │ │ ├── TransferNoticeController.java │ │ │ │ └── TransferOrderController.java │ │ │ ├── exception │ │ │ └── ChannelException.java │ │ │ ├── model │ │ │ ├── AlipayClientWrapper.java │ │ │ ├── IsvConfigContext.java │ │ │ ├── MchAppConfigContext.java │ │ │ ├── MchInfoConfigContext.java │ │ │ ├── PaypalWrapper.java │ │ │ └── WxServiceWrapper.java │ │ │ ├── mq │ │ │ ├── PayOrderDivisionMQReceiver.java │ │ │ ├── PayOrderMchNotifyMQReceiver.java │ │ │ ├── PayOrderReissueMQReceiver.java │ │ │ ├── ResetAppConfigMQReceiver.java │ │ │ └── ResetIsvMchAppInfoMQReceiver.java │ │ │ ├── rqrs │ │ │ ├── AbstractMchAppRQ.java │ │ │ ├── AbstractRQ.java │ │ │ ├── AbstractRS.java │ │ │ ├── ChannelUserIdRQ.java │ │ │ ├── division │ │ │ │ ├── DivisionReceiverBindRQ.java │ │ │ │ ├── DivisionReceiverBindRS.java │ │ │ │ ├── PayOrderDivisionExecRQ.java │ │ │ │ └── PayOrderDivisionExecRS.java │ │ │ ├── msg │ │ │ │ ├── ChannelRetMsg.java │ │ │ │ └── DivisionChannelNotifyModel.java │ │ │ ├── payorder │ │ │ │ ├── ClosePayOrderRQ.java │ │ │ │ ├── ClosePayOrderRS.java │ │ │ │ ├── CommonPayDataRQ.java │ │ │ │ ├── CommonPayDataRS.java │ │ │ │ ├── QueryPayOrderRQ.java │ │ │ │ ├── QueryPayOrderRS.java │ │ │ │ ├── UnifiedOrderRQ.java │ │ │ │ ├── UnifiedOrderRS.java │ │ │ │ └── payway │ │ │ │ │ ├── AliAppOrderRQ.java │ │ │ │ │ ├── AliAppOrderRS.java │ │ │ │ │ ├── AliBarOrderRQ.java │ │ │ │ │ ├── AliBarOrderRS.java │ │ │ │ │ ├── AliJsapiOrderRQ.java │ │ │ │ │ ├── AliJsapiOrderRS.java │ │ │ │ │ ├── AliLiteOrderRQ.java │ │ │ │ │ ├── AliLiteOrderRS.java │ │ │ │ │ ├── AliOcOrderRQ.java │ │ │ │ │ ├── AliOcOrderRS.java │ │ │ │ │ ├── AliPcOrderRQ.java │ │ │ │ │ ├── AliPcOrderRS.java │ │ │ │ │ ├── AliQrOrderRQ.java │ │ │ │ │ ├── AliQrOrderRS.java │ │ │ │ │ ├── AliWapOrderRQ.java │ │ │ │ │ ├── AliWapOrderRS.java │ │ │ │ │ ├── AutoBarOrderRQ.java │ │ │ │ │ ├── AutoBarOrderRS.java │ │ │ │ │ ├── PPPcOrderRQ.java │ │ │ │ │ ├── PPPcOrderRS.java │ │ │ │ │ ├── QrCashierOrderRQ.java │ │ │ │ │ ├── QrCashierOrderRS.java │ │ │ │ │ ├── UpAppOrderRQ.java │ │ │ │ │ ├── UpAppOrderRS.java │ │ │ │ │ ├── UpB2bOrderRQ.java │ │ │ │ │ ├── UpB2bOrderRS.java │ │ │ │ │ ├── UpBarOrderRQ.java │ │ │ │ │ ├── UpBarOrderRS.java │ │ │ │ │ ├── UpJsapiOrderRQ.java │ │ │ │ │ ├── UpJsapiOrderRS.java │ │ │ │ │ ├── UpPcOrderRQ.java │ │ │ │ │ ├── UpPcOrderRS.java │ │ │ │ │ ├── UpQrOrderRQ.java │ │ │ │ │ ├── UpQrOrderRS.java │ │ │ │ │ ├── UpWapOrderRQ.java │ │ │ │ │ ├── UpWapOrderRS.java │ │ │ │ │ ├── WxAppOrderRQ.java │ │ │ │ │ ├── WxAppOrderRS.java │ │ │ │ │ ├── WxBarOrderRQ.java │ │ │ │ │ ├── WxBarOrderRS.java │ │ │ │ │ ├── WxH5OrderRQ.java │ │ │ │ │ ├── WxH5OrderRS.java │ │ │ │ │ ├── WxJsapiOrderRQ.java │ │ │ │ │ ├── WxJsapiOrderRS.java │ │ │ │ │ ├── WxLiteOrderRQ.java │ │ │ │ │ ├── WxLiteOrderRS.java │ │ │ │ │ ├── WxNativeOrderRQ.java │ │ │ │ │ ├── WxNativeOrderRS.java │ │ │ │ │ ├── YsfBarOrderRQ.java │ │ │ │ │ ├── YsfBarOrderRS.java │ │ │ │ │ ├── YsfJsapiOrderRQ.java │ │ │ │ │ └── YsfJsapiOrderRS.java │ │ │ ├── refund │ │ │ │ ├── QueryRefundOrderRQ.java │ │ │ │ ├── QueryRefundOrderRS.java │ │ │ │ ├── RefundOrderRQ.java │ │ │ │ └── RefundOrderRS.java │ │ │ └── transfer │ │ │ │ ├── QueryTransferOrderRQ.java │ │ │ │ ├── QueryTransferOrderRS.java │ │ │ │ ├── TransferOrderRQ.java │ │ │ │ └── TransferOrderRS.java │ │ │ ├── service │ │ │ ├── ChannelOrderReissueService.java │ │ │ ├── CodeSysTypeManager.java │ │ │ ├── ConfigContextQueryService.java │ │ │ ├── ConfigContextService.java │ │ │ ├── PayMchNotifyService.java │ │ │ ├── PayOrderDivisionProcessService.java │ │ │ ├── PayOrderProcessService.java │ │ │ ├── RefundOrderProcessService.java │ │ │ ├── TransferOrderReissueService.java │ │ │ └── ValidateService.java │ │ │ ├── task │ │ │ ├── PayOrderDivisionRecordReissueTask.java │ │ │ ├── PayOrderExpiredTask.java │ │ │ ├── PayOrderReissueTask.java │ │ │ ├── RefundOrderExpiredTask.java │ │ │ ├── RefundOrderReissueTask.java │ │ │ └── TransferOrderReissueTask.java │ │ │ └── util │ │ │ ├── ApiResBuilder.java │ │ │ ├── ChannelCertConfigKitBean.java │ │ │ ├── CodeImgUtil.java │ │ │ └── PaywayUtil.java │ └── resources │ │ ├── application.yml │ │ ├── banner.txt │ │ ├── logback-spring.xml │ │ ├── markdown │ │ └── doc │ │ │ ├── api1.md │ │ │ ├── api2.md │ │ │ ├── api3.md │ │ │ ├── api4.md │ │ │ └── api5.md │ │ ├── static │ │ └── cashier │ │ │ ├── css │ │ │ ├── app.b0d6b471.css │ │ │ ├── chunk-0a8a1f2c.8266418e.css │ │ │ ├── chunk-206ff9e2.841b0312.css │ │ │ ├── chunk-65dd90fc.841b0312.css │ │ │ ├── chunk-74b110af.841b0312.css │ │ │ └── chunk-93b06108.d5ba12fa.css │ │ │ ├── favicon.ico │ │ │ ├── fonts │ │ │ └── WeChatSansSS-Bold.245dd277.ttf │ │ │ ├── img │ │ │ ├── S.1db749bc.svg │ │ │ ├── error.5bc34a8a.svg │ │ │ ├── wx.ec067f2f.svg │ │ │ ├── ysf.dbdf047a.jpg │ │ │ └── zfb.f9f04ed3.jpeg │ │ │ ├── index.html │ │ │ ├── js │ │ │ ├── app.cebd468e.js │ │ │ ├── app.cebd468e.js.map │ │ │ ├── chunk-0a8a1f2c.9bd81b70.js │ │ │ ├── chunk-0a8a1f2c.9bd81b70.js.map │ │ │ ├── chunk-206ff9e2.c0881330.js │ │ │ ├── chunk-206ff9e2.c0881330.js.map │ │ │ ├── chunk-235ac4ce.e3ca4e4c.js │ │ │ ├── chunk-235ac4ce.e3ca4e4c.js.map │ │ │ ├── chunk-2d20f936.1ce40f42.js │ │ │ ├── chunk-2d20f936.1ce40f42.js.map │ │ │ ├── chunk-2d22c085.ef49138c.js │ │ │ ├── chunk-2d22c085.ef49138c.js.map │ │ │ ├── chunk-65dd90fc.b4aa0c91.js │ │ │ ├── chunk-65dd90fc.b4aa0c91.js.map │ │ │ ├── chunk-74b110af.a4fee9cb.js │ │ │ ├── chunk-74b110af.a4fee9cb.js.map │ │ │ ├── chunk-93b06108.56757d92.js │ │ │ ├── chunk-93b06108.56757d92.js.map │ │ │ ├── chunk-vendors.2e0d2416.js │ │ │ └── chunk-vendors.2e0d2416.js.map │ │ │ └── readme.txt │ │ └── templates │ │ ├── cashier │ │ └── returnPage.ftl │ │ ├── channel │ │ ├── alipay │ │ │ └── isvsubMchAuth.ftl │ │ └── wxpay │ │ │ └── wxTransferUserConfirm.ftl │ │ └── common │ │ └── toPay.ftl │ └── test │ ├── java │ └── .gitkeep │ └── resources │ └── .gitkeep ├── jeepay-service ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── jeequan │ │ └── jeepay │ │ └── service │ │ ├── impl │ │ ├── IsvInfoService.java │ │ ├── MchAppService.java │ │ ├── MchDivisionReceiverGroupService.java │ │ ├── MchDivisionReceiverService.java │ │ ├── MchInfoService.java │ │ ├── MchNotifyRecordService.java │ │ ├── MchPayPassageService.java │ │ ├── PayInterfaceConfigService.java │ │ ├── PayInterfaceDefineService.java │ │ ├── PayOrderDivisionRecordService.java │ │ ├── PayOrderService.java │ │ ├── PayWayService.java │ │ ├── RefundOrderService.java │ │ ├── SysConfigService.java │ │ ├── SysEntitlementService.java │ │ ├── SysLogService.java │ │ ├── SysRoleEntRelaService.java │ │ ├── SysRoleService.java │ │ ├── SysUserAuthService.java │ │ ├── SysUserRoleRelaService.java │ │ ├── SysUserService.java │ │ └── TransferOrderService.java │ │ └── mapper │ │ ├── IsvInfoMapper.java │ │ ├── IsvInfoMapper.xml │ │ ├── MchAppMapper.java │ │ ├── MchAppMapper.xml │ │ ├── MchDivisionReceiverGroupMapper.java │ │ ├── MchDivisionReceiverGroupMapper.xml │ │ ├── MchDivisionReceiverMapper.java │ │ ├── MchDivisionReceiverMapper.xml │ │ ├── MchInfoMapper.java │ │ ├── MchInfoMapper.xml │ │ ├── MchNotifyRecordMapper.java │ │ ├── MchNotifyRecordMapper.xml │ │ ├── MchPayPassageMapper.java │ │ ├── MchPayPassageMapper.xml │ │ ├── PayInterfaceConfigMapper.java │ │ ├── PayInterfaceConfigMapper.xml │ │ ├── PayInterfaceDefineMapper.java │ │ ├── PayInterfaceDefineMapper.xml │ │ ├── PayOrderDivisionRecordMapper.java │ │ ├── PayOrderDivisionRecordMapper.xml │ │ ├── PayOrderMapper.java │ │ ├── PayOrderMapper.xml │ │ ├── PayWayMapper.java │ │ ├── PayWayMapper.xml │ │ ├── RefundOrderMapper.java │ │ ├── RefundOrderMapper.xml │ │ ├── SysConfigMapper.java │ │ ├── SysConfigMapper.xml │ │ ├── SysEntitlementMapper.java │ │ ├── SysEntitlementMapper.xml │ │ ├── SysLogMapper.java │ │ ├── SysLogMapper.xml │ │ ├── SysRoleEntRelaMapper.java │ │ ├── SysRoleEntRelaMapper.xml │ │ ├── SysRoleMapper.java │ │ ├── SysRoleMapper.xml │ │ ├── SysUserAuthMapper.java │ │ ├── SysUserAuthMapper.xml │ │ ├── SysUserMapper.java │ │ ├── SysUserMapper.xml │ │ ├── SysUserRoleRelaMapper.java │ │ ├── SysUserRoleRelaMapper.xml │ │ ├── TransferOrderMapper.java │ │ └── TransferOrderMapper.xml │ └── test │ ├── java │ └── com │ │ └── .gitkeep │ └── resources │ └── .gitkeep ├── jeepay-z-codegen ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── gen │ │ │ └── MainGen.java │ └── resources │ │ └── .gitkeep │ └── test │ ├── java │ └── .gitkeep │ └── resources │ └── .gitkeep ├── libs └── jeepay-sdk-java-pls-1.2.0.jar ├── pom.xml ├── upgrade.md └── version.md /.env: -------------------------------------------------------------------------------- 1 | # ui项目的根路径 2 | UI_BASE_DIR=/Users/dingzhiwei/work/idea_wk/gitee_wk -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # [ java 字节码 ] 2 | *.class 3 | 4 | # [ 日志文件 ] 5 | *.log 6 | 7 | # [ 打包压缩文件 ] 8 | *.jar 9 | *.war 10 | *.zip 11 | *.tar.gz 12 | *.rar 13 | 14 | # [ java 虚拟机异常日志 see http://www.java.com/en/download/help/error_hotspot.xml ] 15 | hs_err_pid* 16 | 17 | # [ 操作系统缓存和备份 ] 18 | tmp/ 19 | *.tmp 20 | *.bak 21 | *.swp 22 | *~.nib 23 | 24 | # [ eclipse ] 25 | .metadata 26 | bin/ 27 | .settings 28 | .classpath 29 | .project 30 | 31 | # [ IDEA ] 32 | .idea/ 33 | *.iml 34 | 35 | # [ MAVEN ] 36 | target/ 37 | 38 | # [Jrebel] 39 | rebel.xml 40 | 41 | # ################################################ 前端 ################### 42 | # [npm包管理依赖] 43 | node_modules/ 44 | 45 | # [dist目录] 46 | dist/ 47 | 48 | # [HBuilderX 编译目录 ] 49 | unpackage/ 50 | 51 | # [vscode IDE] 52 | .vscode/ 53 | 54 | # [mac] 55 | .DS_Store 56 | 57 | docker/rocketmq/broker/logs/ 58 | docker/rocketmq/broker/store/ 59 | docker/rocketmq/namesrv/ -------------------------------------------------------------------------------- /conf/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | 文件夹用途: 用于放置开发环境的通用配置项和生产环境下的项目配置模板。 3 | 4 | 1. 【devCommons】: 5 | 开发环境通用配置文件放置目录。 更改此目录后将覆写 manager/merchant/payment 项目下的application.yml文件对应参数,从而达到每个项目不必单独配置的目的,更加节约开发时间。 6 | 7 | 2. 该文件夹下的【manager/merchant/payment】: 8 | 文件为上线部署时与jar同级目录下的application.yml建议配置项的模板。 需更改为实际参数, 也可按需添加。 9 | 10 | 11 | 扩展知识: 12 | ##################################################### 13 | 14 | # spring boot支持外部application.yml 读取优先级为: 15 | # 1、file:./config/(当前目录下的config文件夹) 16 | # 2、file:./(当前目录) 17 | # 3、classpath:/config/(classpath下的config目录) 18 | # 4、classpath:/(classpath根目录) 19 | 20 | ##################################################### -------------------------------------------------------------------------------- /docker/activemq/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM bellsoft/liberica-openjdk-alpine:13 2 | 3 | ENV ACTIVEMQ_VERSION 5.16.4 4 | ENV ACTIVEMQ apache-activemq-$ACTIVEMQ_VERSION 5 | ENV ACTIVEMQ_HOME /opt/activemq 6 | 7 | RUN apk add --update curl && \ 8 | rm -rf /var/cache/apk/* && \ 9 | mkdir -p /opt && \ 10 | curl -s -S https://archive.apache.org/dist/activemq/$ACTIVEMQ_VERSION/$ACTIVEMQ-bin.tar.gz | tar -xvz -C /opt && \ 11 | ln -s /opt/$ACTIVEMQ $ACTIVEMQ_HOME && \ 12 | addgroup -S activemq && \ 13 | adduser -S -H -G activemq -h $ACTIVEMQ_HOME activemq && \ 14 | chown -R activemq:activemq /opt/$ACTIVEMQ && \ 15 | chown -h activemq:activemq $ACTIVEMQ_HOME 16 | 17 | COPY ./activemq.xml $ACTIVEMQ_HOME/conf/activemq.xml 18 | 19 | EXPOSE 1883 5672 8161 61613 61614 61616 20 | 21 | USER activemq 22 | WORKDIR $ACTIVEMQ_HOME 23 | 24 | CMD ["/bin/sh", "-c", "bin/activemq console"] -------------------------------------------------------------------------------- /docker/nginx.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /etc/nginx 3 | tar -czvf nginx_$(date +'%F_%H-%M-%S').tar.gz nginx.conf sites-available/ sites-enabled/ nginxconfig.io/ 4 | tar -xzvf nginxconfig.io-pay.test.com.tar.gz | xargs chmod 0644 5 | 6 | # SSL 7 | openssl dhparam -out /etc/nginx/dhparam.pem 2048 8 | mkdir -p /var/www/_letsencrypt 9 | chown www-data /var/www/_letsencrypt 10 | 11 | # Certbot 复制页面上所有命令替换下方语句 12 | sed -i -r 's/(listen .*443)/\1; #/g; s/(ssl_(certificate|certificate_key|trusted_certificate) )/#;#\1/g; s/(server \{)/\1\n ssl off;/g' /etc/nginx/sites-available/pay.test.com.conf 13 | sudo nginx -t && sudo systemctl reload nginx 14 | certbot certonly --webroot -d pay.test.com --email info@pay.test.com -w /var/www/_letsencrypt -n --agree-tos --force-renewal 15 | sed -i -r -z 's/#?; ?#//g; s/(server \{)\n ssl off;/\1/g' /etc/nginx/sites-available/pay.test.com.conf 16 | sudo nginx -t && sudo systemctl reload nginx 17 | 18 | # 结束 19 | 20 | echo -e '#!/bin/bash\nnginx -t && systemctl reload nginx' | sudo tee /etc/letsencrypt/renewal-hooks/post/nginx-reload.sh 21 | sudo chmod a+x /etc/letsencrypt/renewal-hooks/post/nginx-reload.sh 22 | sudo nginx -t && sudo systemctl reload nginx 23 | -------------------------------------------------------------------------------- /docker/push-to-docker.md: -------------------------------------------------------------------------------- 1 | 1. 编译 2 | ``` 3 | mvn install 4 | ``` 5 | 2. 构建镜像及推送镜像(不需要docker环境) 6 | ``` 7 | export DOCKER_REGISTRY=registry.cn-beijing.aliyuncs.com 8 | export DOCKER_NAMESPACE=jeequan 9 | export DOCKER_IMAGE_TAG=v1.14.0-alpha 10 | export DOCKER_REGISTRY_USERNAME=username1 11 | export DOCKER_REGISTRY_PASSWORD=password1 12 | 13 | cd jeepay-payment 14 | mvn jib:build \ 15 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-payment:$DOCKER_IMAGE_TAG \ 16 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \ 17 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD 18 | 19 | cd ../jeepay-merchant 20 | mvn jib:build \ 21 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-merchant:$DOCKER_IMAGE_TAG \ 22 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \ 23 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD 24 | 25 | cd ../jeepay-manager 26 | mvn jib:build \ 27 | -Djib.to.image=$DOCKER_REGISTRY/$DOCKER_NAMESPACE/jeepay-manager:$DOCKER_IMAGE_TAG \ 28 | -Djib.to.auth.username=$DOCKER_REGISTRY_USERNAME \ 29 | -Djib.to.auth.password=$DOCKER_REGISTRY_PASSWORD 30 | ``` 31 | 32 | -------------------------------------------------------------------------------- /docker/rabbitmq/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM rabbitmq:3.9-management 2 | 3 | COPY ./users.ejs /opt/rabbitmq/plugins/rabbitmq_management-3.9.29/priv/www/js/tmpl 4 | COPY ./limits.ejs /opt/rabbitmq/plugins/rabbitmq_management-3.9.29/priv/www/js/tmpl 5 | 6 | RUN apt-get -o Acquire::Check-Date=false update && apt-get install -y curl 7 | 8 | RUN curl -L https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/releases/download/3.9.0/rabbitmq_delayed_message_exchange-3.9.0.ez > $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez 9 | 10 | RUN chown rabbitmq:rabbitmq $RABBITMQ_HOME/plugins/rabbitmq_delayed_message_exchange-3.9.0.ez 11 | 12 | RUN rabbitmq-plugins enable rabbitmq_delayed_message_exchange 13 | -------------------------------------------------------------------------------- /docker/rocketmq/broker/conf/broker.conf: -------------------------------------------------------------------------------- 1 | brokerClusterName = DefaultCluster 2 | brokerName = broker-a 3 | brokerId = 0 4 | deleteWhen = 04 5 | fileReservedTime = 48 6 | brokerRole = ASYNC_MASTER 7 | flushDiskType = ASYNC_FLUSH 8 | -------------------------------------------------------------------------------- /docs/install/config.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | #exec 2>>build.log ##编译过程打印到日志文件中 3 | ## 配置文件 .Power by terrfly 4 | 5 | # 【项目根目录的地址】 该地址下会包含: nginx/mysql/mq/redis等文件 6 | rootDir="/jeepayhomes" 7 | 8 | # 【mysql密码】建议更改 9 | mysql_pwd="jeepaydb123456" 10 | 11 | 12 | #当前路径, 不要更改参数。 13 | currentPath=`pwd` 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /docs/install/uninstall.sh: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | #exec 2>>build.log ##编译过程打印到日志文件中 3 | ## 项目卸载 .Power by terrfly 4 | 5 | #引入config 6 | . ./config.sh 7 | 8 | # 第0步:提示信息 9 | echo "请确认全部卸载, 是否继续?" 10 | echo "(Confirm uninstallation, do you want to continue?)" 11 | echo " [yes/no] ?" 12 | read useryes 13 | if [ -z "$useryes" ] || [ $useryes != 'yes' ] 14 | then 15 | echo 'good bye' 16 | exit 0 17 | fi 18 | 19 | 20 | docker stop nginx118 && docker rm nginx118 21 | docker stop jeepaymanager && docker rm jeepaymanager 22 | docker stop jeepaymerchant && docker rm jeepaymerchant 23 | docker stop jeepaypayment && docker rm jeepaypayment 24 | 25 | docker stop mysql8 && docker rm mysql8 26 | 27 | docker stop redis6 && docker rm redis6 28 | 29 | docker stop activemq5 && docker rm activemq5 30 | 31 | docker network rm jeepay-net 32 | 33 | rm -rf $rootDir 34 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/constant/MQSendTypeEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.constant; 17 | 18 | /** 19 | * 定义MQ消息类型 20 | * @author terrfly 21 | * @site https://www.jeequan.com 22 | * @date 2021/7/23 16:49 23 | */ 24 | public enum MQSendTypeEnum { 25 | /** QUEUE - 点对点 (只有1个消费者可消费。 ActiveMQ的queue模式 ) **/ 26 | QUEUE, 27 | /** BROADCAST - 订阅模式 (所有接收者都可接收到。 ActiveMQ的topic模式, RabbitMQ的fanout类型的交换机, RocketMQ的广播模式 ) **/ 28 | BROADCAST 29 | } 30 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/constant/MQVenderCS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.constant; 17 | 18 | /** 19 | * MQ 厂商定义类 20 | * 21 | * @author terrfly 22 | * @site https://www.jeequan.com 23 | * @date 2021/7/23 16:50 24 | */ 25 | public class MQVenderCS { 26 | 27 | public static final String YML_VENDER_KEY = "isys.mq.vender"; 28 | 29 | public static final String ACTIVE_MQ = "activeMQ"; 30 | public static final String RABBIT_MQ = "rabbitMQ"; 31 | public static final String ROCKET_MQ = "rocketMQ"; 32 | public static final String ALIYUN_ROCKET_MQ = "aliYunRocketMQ"; 33 | 34 | } 35 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/model/AbstractMQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.model; 17 | 18 | import com.jeequan.jeepay.components.mq.constant.MQSendTypeEnum; 19 | 20 | /** 21 | * 定义MQ消息格式 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/7/22 15:33 26 | */ 27 | public abstract class AbstractMQ { 28 | 29 | /** MQ名称 **/ 30 | public abstract String getMQName(); 31 | 32 | /** MQ 类型 **/ 33 | public abstract MQSendTypeEnum getMQType(); 34 | 35 | /** 构造MQ消息体 String类型 **/ 36 | public abstract String toMessage(); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/IMQMsgReceiver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.vender; 17 | 18 | /** 19 | * MQ 消息接收器 接口定义 20 | * 21 | * @author terrfly 22 | * @site https://www.jeequan.com 23 | * @date 2021/7/21 16:09 24 | */ 25 | public interface IMQMsgReceiver { 26 | 27 | /** 接收消息 **/ 28 | void receiveMsg(String msg); 29 | } 30 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/main/java/com/jeequan/jeepay/components/mq/vender/IMQSender.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.mq.vender; 17 | 18 | import com.jeequan.jeepay.components.mq.model.AbstractMQ; 19 | 20 | /** 21 | * MQ 消息发送器 接口定义 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/7/21 16:09 26 | */ 27 | public interface IMQSender { 28 | 29 | /** 推送MQ消息, 实时 **/ 30 | void send(AbstractMQ mqModel); 31 | 32 | /** 推送MQ消息, 延迟接收,单位:s **/ 33 | void send(AbstractMQ mqModel, int delay); 34 | 35 | } 36 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-components/jeepay-components-mq/src/test/java/com/.gitkeep -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-mq/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-components/jeepay-components-mq/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/config/AliyunOssYmlConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.oss.config; 17 | 18 | import lombok.Data; 19 | import org.springframework.boot.context.properties.ConfigurationProperties; 20 | import org.springframework.stereotype.Component; 21 | 22 | /** 23 | * aliyun oss 的yml配置参数 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/7/12 18:18 28 | */ 29 | @Data 30 | @Component 31 | @ConfigurationProperties(prefix="isys.oss.aliyun-oss") 32 | public class AliyunOssYmlConfig { 33 | 34 | private String endpoint; 35 | private String publicBucketName; 36 | private String privateBucketName; 37 | private String accessKeyId; 38 | private String accessKeySecret; 39 | } 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/constant/OssSavePlaceEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.oss.constant; 17 | 18 | /* 19 | * oss 存储位置 20 | * @author terrfly 21 | * @site https://www.jeequan.com 22 | * @date 2021/7/12 10:48 23 | */ 24 | public enum OssSavePlaceEnum { 25 | 26 | PUBLIC, //公共读取 27 | 28 | PRIVATE; //私有存储 29 | 30 | } 31 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/constant/OssServiceTypeEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.components.oss.constant; 17 | 18 | import lombok.Getter; 19 | 20 | /* 21 | * oss 服务枚举值 22 | * @author terrfly 23 | * @site https://www.jeequan.com 24 | * @date 2021/7/12 10:48 25 | */ 26 | @Getter 27 | public enum OssServiceTypeEnum { 28 | 29 | LOCAL("local"), //本地存储 30 | 31 | ALIYUN_OSS("aliyun-oss"); //阿里云oss 32 | 33 | /** 名称 **/ 34 | private String serviceName; 35 | 36 | OssServiceTypeEnum(String serviceName){ 37 | this.serviceName = serviceName; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /jeepay-components/jeepay-components-oss/src/main/java/com/jeequan/jeepay/components/oss/service/IOssService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.components.oss.service;
17 |
18 | import com.jeequan.jeepay.components.oss.constant.OssSavePlaceEnum;
19 | import org.springframework.web.multipart.MultipartFile;
20 |
21 | /**
22 | * OSSService 接口
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/7/12 18:18
27 | */
28 | public interface IOssService {
29 |
30 | /** 上传文件 & 生成下载/预览URL **/
31 | String upload2PreviewUrl(OssSavePlaceEnum ossSavePlaceEnum, MultipartFile multipartFile, String saveDirAndFileName);
32 |
33 | /** 将文件下载到本地
34 | * 返回是否 写入成功
35 | * false: 写入失败, 或者文件不存在
36 | * **/
37 | boolean downloadFile(OssSavePlaceEnum ossSavePlaceEnum, String source, String target);
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/jeepay-components/jeepay-components-oss/src/test/java/com/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-components/jeepay-components-oss/src/test/java/com/.gitkeep
--------------------------------------------------------------------------------
/jeepay-components/jeepay-components-oss/src/test/resources/.gitkeep:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-components/jeepay-components-oss/src/test/resources/.gitkeep
--------------------------------------------------------------------------------
/jeepay-components/pom.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.aop; 17 | 18 | import java.lang.annotation.*; 19 | 20 | /* 21 | * 方法级日志切面注解 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 18:00 26 | */ 27 | @Target({ ElementType.METHOD, ElementType.TYPE }) 28 | @Retention(RetentionPolicy.RUNTIME) 29 | @Documented 30 | public @interface MethodLog { 31 | String remark() default ""; 32 | } 33 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/OriginalRes.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model; 17 | 18 | import lombok.AllArgsConstructor; 19 | import lombok.Data; 20 | 21 | /* 22 | * 返回原始数据 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 16:37 27 | */ 28 | @Data 29 | @AllArgsConstructor 30 | public class OriginalRes { 31 | 32 | /** 返回数据 **/ 33 | private Object data; 34 | 35 | public static OriginalRes ok(Object data){ 36 | return new OriginalRes(data); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/QRCodeParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model; 17 | 18 | import lombok.Data; 19 | 20 | @Data 21 | public class QRCodeParams { 22 | 23 | // 二维码扫码类型: 1 - 统一下单的聚合二维码 24 | public static final byte TYPE_PAY_ORDER = 1; 25 | public static final byte TYPE_QRC = 2; 26 | 27 | private String id; 28 | 29 | private Byte type; 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/IsvsubMchParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params; 17 | 18 | import cn.hutool.core.util.StrUtil; 19 | import com.alibaba.fastjson.JSONObject; 20 | 21 | /* 22 | * 抽象类 特约商户参数定义 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 16:33 27 | */ 28 | public abstract class IsvsubMchParams { 29 | 30 | public static IsvsubMchParams factory(String ifCode, String paramsStr){ 31 | 32 | try { 33 | return (IsvsubMchParams)JSONObject.parseObject(paramsStr, Class.forName(IsvsubMchParams.class.getPackage().getName() +"."+ ifCode +"."+ StrUtil.upperFirst(ifCode) +"IsvsubMchParams")); 34 | } catch (ClassNotFoundException e) { 35 | e.printStackTrace(); 36 | } 37 | return null; 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/alipay/AlipayIsvsubMchParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.alipay; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 支付宝 特约商户参数定义 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 16:33 27 | */ 28 | @Data 29 | public class AlipayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | private String appAuthToken; 32 | 33 | 34 | } 35 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/pppay/PppayNormalMchParams.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.core.model.params.pppay; 2 | 3 | import com.alibaba.fastjson.JSON; 4 | import com.alibaba.fastjson.JSONObject; 5 | import com.jeequan.jeepay.core.model.params.NormalMchParams; 6 | import com.jeequan.jeepay.core.utils.StringKit; 7 | import lombok.Data; 8 | import org.apache.commons.lang3.StringUtils; 9 | 10 | /** 11 | * none. 12 | * 13 | * @author 陈泉 14 | * @package com.jeequan.jeepay.core.model.params.pppay 15 | * @create 2021/11/15 18:10 16 | */ 17 | @Data 18 | public class PppayNormalMchParams extends NormalMchParams { 19 | /** 20 | * 是否沙箱环境 21 | */ 22 | private Byte sandbox; 23 | 24 | /** 25 | * clientId 26 | * 客户端 ID 27 | */ 28 | private String clientId; 29 | 30 | /** 31 | * secret 32 | * 密钥 33 | */ 34 | private String secret; 35 | 36 | /** 37 | * 支付 Webhook 通知 ID 38 | */ 39 | private String notifyWebhook; 40 | 41 | /** 42 | * 退款 Webhook 通知 ID 43 | */ 44 | private String refundWebhook; 45 | 46 | @Override 47 | public String deSenData() { 48 | PppayNormalMchParams mchParams = this; 49 | if (StringUtils.isNotBlank(this.secret)) { 50 | mchParams.setSecret(StringKit.str2Star(this.secret, 6, 6, 6)); 51 | } 52 | return ((JSONObject) JSON.toJSON(mchParams)).toJSONString(); 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/wxpay/WxpayIsvsubMchParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.wxpay; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 微信官方支付 配置参数 23 | * 24 | * @author zhuxiao 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 18:02 27 | */ 28 | @Data 29 | public class WxpayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | /** 子商户ID **/ 32 | private String subMchId; 33 | 34 | /** 子账户appID **/ 35 | private String subMchAppId; 36 | 37 | 38 | } 39 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/ysf/YsfpayConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.ysf; 17 | 18 | import lombok.Data; 19 | 20 | /* 21 | * 云闪付 通用配置信息 22 | * 23 | * @author pangxiaoyu 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 18:02 26 | */ 27 | @Data 28 | public class YsfpayConfig { 29 | 30 | 31 | /** 网关地址 */ 32 | public static String PROD_SERVER_URL = "https://partner.95516.com"; 33 | public static String SANDBOX_SERVER_URL = "http://ysf.bcbip.cn:10240"; 34 | 35 | } 36 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/model/params/ysf/YsfpayIsvsubMchParams.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.model.params.ysf; 17 | 18 | import com.jeequan.jeepay.core.model.params.IsvsubMchParams; 19 | import lombok.Data; 20 | 21 | /* 22 | * 云闪付 配置信息 23 | * 24 | * @author pangxiaoyu 25 | * @site https://www.jeequan.com 26 | * @date 2021/6/8 18:02 27 | */ 28 | @Data 29 | public class YsfpayIsvsubMchParams extends IsvsubMchParams { 30 | 31 | private String merId; // 商户编号 32 | 33 | } 34 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/service/ICodeSysTypeManager.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.core.service; 2 | 3 | /** 当前项目类型管理 **/ 4 | public interface ICodeSysTypeManager { 5 | 6 | /** 获取当前项目名称(全大写形式) **/ 7 | String getCodeSysName(); 8 | 9 | } 10 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/service/IMchQrcodeManager.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.core.service; 2 | 3 | import com.jeequan.jeepay.core.entity.PayOrder; 4 | 5 | /*** 6 | * 码牌相关逻辑 7 | * 8 | * @author terrfly 9 | * @site https://www.jeequan.com 10 | * @date 2024/11/4 15:08 11 | */ 12 | public interface IMchQrcodeManager { 13 | 14 | /** 15 | * 功能描述: 查询商户配置信息 16 | * 17 | * @Return: com.jeequan.jeepay.core.entity.PayOrder 18 | * @Author: terrfly 19 | * @Date: 2024/11/4 15:14 20 | */ 21 | PayOrder queryMchInfoByQrc(String id); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/service/ISysConfigService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.service; 17 | 18 | import com.jeequan.jeepay.core.model.DBApplicationConfig; 19 | 20 | public interface ISysConfigService { 21 | 22 | /** 获取应用的配置参数 **/ 23 | DBApplicationConfig getDBApplicationConfig(); 24 | 25 | } 26 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/JsonKit.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.utils; 17 | 18 | import com.alibaba.fastjson.JSONObject; 19 | 20 | /* 21 | * json工具类 22 | * 23 | * @author terrfly 24 | * @site https://www.jeequan.com 25 | * @date 2021/6/8 16:51 26 | */ 27 | public class JsonKit { 28 | 29 | public static JSONObject newJson(String key, Object val){ 30 | 31 | JSONObject result = new JSONObject(); 32 | result.put(key, val); 33 | return result; 34 | } 35 | 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-core/src/main/java/com/jeequan/jeepay/core/utils/RegKit.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.core.utils; 17 | 18 | /* 19 | * 20 | * 正则验证kit 21 | * @author terrfly 22 | * @site https://www.jeequan.com 23 | * @date 2021/6/8 16:56 24 | */ 25 | public class RegKit { 26 | 27 | public static final String REG_MOBILE = "^1\\d{10}$"; //判断是否是手机号 28 | public static final String REG_ALIPAY_USER_ID = "^2088\\d{12}$"; //判断是支付宝用户Id 以2088开头的纯16位数字 29 | 30 | public static boolean isMobile(String str){ 31 | return match(str, REG_MOBILE); 32 | } 33 | 34 | public static boolean isAlipayUserId(String str){ 35 | return match(str, REG_ALIPAY_USER_ID); 36 | } 37 | 38 | 39 | /** 正则验证 */ 40 | public static boolean match(String text, String reg){ 41 | if(text == null) { 42 | return false; 43 | } 44 | return text.matches(reg); 45 | } 46 | 47 | 48 | 49 | } 50 | -------------------------------------------------------------------------------- /jeepay-core/src/test/java/com/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-core/src/test/java/com/.gitkeep -------------------------------------------------------------------------------- /jeepay-core/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-core/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /jeepay-manager/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # jeepay-manager(管理平台) java程序镜像构建脚本 .Power by terrfly 3 | # 4 | 5 | # ------ START ------ 6 | 7 | # 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL 8 | FROM openjdk:17 9 | 10 | MAINTAINER Terrfly 11 | 12 | # 配置环境变量,支持中文。 13 | ENV LANG=C.UTF-8 14 | 15 | # 设置时区 东八区, 解决日志时间不正确的问题。 16 | ENV TZ=Asia/Shanghai 17 | 18 | # 对外映射的端口 ( 不明确EXPOSE 也不影响映射 ) 19 | EXPOSE 9217 20 | 21 | # 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。 22 | VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"] 23 | 24 | # 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 ) 25 | # USER jeepay:jeepay 26 | 27 | # 创建目录 28 | RUN mkdir /jeepayhomes/service/app -p 29 | 30 | # 安装 31 | COPY ./target/jeepay-manager.jar /jeepayhomes/service/app/jeepay-manager.jar 32 | 33 | # 设置工作目录 34 | WORKDIR /jeepayhomes/service/app 35 | 36 | CMD ["java", "-jar", "jeepay-manager.jar"] 37 | 38 | # ------ END ------ 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mgr.bootstrap; 17 | 18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; 19 | 20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter { 21 | 22 | public FastJsonHttpMessageConverterEx() { 23 | super(); 24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/config/SwaggerConfig.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.mgr.config; 2 | 3 | import io.swagger.v3.oas.models.OpenAPI; 4 | import io.swagger.v3.oas.models.info.Contact; 5 | import io.swagger.v3.oas.models.info.Info; 6 | import io.swagger.v3.oas.models.info.License; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | /** 11 | * @description: 12 | * @author: zx 13 | * @date: 2024/12/27 23:02 14 | */ 15 | @Configuration 16 | public class SwaggerConfig { 17 | 18 | @Bean 19 | public OpenAPI customOpenAPI(){ 20 | return new OpenAPI() 21 | .info(new Info() // 基本信息配置 22 | .title("Jeepay运营平台Api接口文档") // 标题 23 | .version("1.0") // 版本 24 | // 设置OpenAPI文档的联系信息,包括联系人姓名为"patrick",邮箱为"patrick@gmail.com"。 25 | .contact(new Contact().name("jeequan")) 26 | // 设置OpenAPI文档的许可证信息,包括许可证名称为"Apache 2.0",许可证URL为"http://springdoc.org"。 27 | .license(new License().name("Apache 2.0").url("https://www.jeequan.com")) 28 | ); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/config/SystemYmlConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mgr.config; 17 | 18 | import lombok.Data; 19 | import org.springframework.boot.context.properties.ConfigurationProperties; 20 | import org.springframework.stereotype.Component; 21 | 22 | /** 23 | * 系统Yml配置参数定义Bean 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021-04-27 15:50 28 | */ 29 | @Data 30 | @Component 31 | @ConfigurationProperties(prefix="isys") 32 | public class SystemYmlConfig { 33 | 34 | /** 是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时,应开启此配置或在nginx统一配置允许跨域] **/ 35 | private Boolean allowCors; 36 | 37 | /** 生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。 **/ 38 | private String jwtSecret; 39 | 40 | /** 是否内存缓存配置信息: true表示开启如支付网关地址/商户应用配置/服务商配置等, 开启后需检查MQ的广播模式是否正常; false表示直接查询DB. **/ 41 | private Boolean cacheConfig; 42 | 43 | } 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/service/CodeSysTypeManager.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.mgr.service; 2 | 3 | import com.jeequan.jeepay.core.constants.CS; 4 | import com.jeequan.jeepay.core.service.ICodeSysTypeManager; 5 | import org.springframework.stereotype.Component; 6 | 7 | @Component 8 | public class CodeSysTypeManager implements ICodeSysTypeManager { 9 | 10 | @Override 11 | public String getCodeSysName() { 12 | return CS.CODE_SYS_NAME_SET.JEEPAY_MANAGER; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/java/com/jeequan/jeepay/mgr/web/WebmvcConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mgr.web; 17 | 18 | import org.springframework.beans.factory.annotation.Autowired; 19 | import org.springframework.context.annotation.Configuration; 20 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 21 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 22 | 23 | /* 24 | * webmvc配置 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/8 17:12 29 | */ 30 | @Configuration 31 | public class WebmvcConfig implements WebMvcConfigurer { 32 | 33 | @Autowired 34 | private ApiResInterceptor apiResInterceptor; 35 | 36 | @Override 37 | public void addInterceptors(InterceptorRegistry registry) { 38 | registry.addInterceptor(apiResInterceptor); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9217 #设置端口 3 | 4 | spring: 5 | data: 6 | redis: 7 | database: 1 #1库:运营平台 #2库:商户系统 #3库:支付网关 8 | 9 | #系统业务参数 10 | isys: 11 | jwt-secret: t7w3P8X6472qWc3u #生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。 12 | 13 | # knife4j APIDOC文档 14 | springdoc: 15 | swagger-ui: 16 | path: /swagger-ui.html 17 | tags-sorter: alpha 18 | operations-sorter: alpha 19 | api-docs: 20 | path: /v3/api-docs 21 | group-configs: 22 | - group: 'default' 23 | paths-to-match: '/**' 24 | packages-to-scan: com.jeequan.jeepay.mgr.ctrl 25 | knife4j: 26 | enable: true 27 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | __ 2 | / /___ ___ ____ ____ ___ __ 3 | __ / // _ \/ _ \/ __ \/ __ `/ / / / 4 | / /_/ // __/ __/ /_/ / /_/ / /_/ / 5 | \____/ \___/\___/ .___/\__,_/\__, / 6 | /_/ /____/ 7 | :: Jeepay :: (v3.1.0.RELEASE) 8 | 让支付接入更简单 : https://www.jeequan.com 9 | -------------------------------------------------------------------------------- /jeepay-manager/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /jeepay-manager/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-manager/src/test/java/.gitkeep -------------------------------------------------------------------------------- /jeepay-manager/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-manager/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /jeepay-merchant/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # jeepay-merchant(商户平台) java程序镜像构建脚本 .Power by terrfly 3 | # 4 | 5 | # ------ START ------ 6 | 7 | # 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL 8 | FROM openjdk:17 9 | 10 | MAINTAINER Terrfly 11 | 12 | # 配置环境变量,支持中文。 13 | ENV LANG=C.UTF-8 14 | 15 | # 设置时区 东八区, 解决日志时间不正确的问题。 16 | ENV TZ=Asia/Shanghai 17 | 18 | # 对外映射的端口 ( 不明确EXPOSE 也不影响映射 ) 19 | EXPOSE 9218 20 | 21 | # 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。 22 | VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"] 23 | 24 | # 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 ) 25 | # USER jeepay:jeepay 26 | 27 | # 创建目录 28 | RUN mkdir /jeepayhomes/service/app -p 29 | 30 | # 安装 31 | COPY ./target/jeepay-merchant.jar /jeepayhomes/service/app/jeepay-merchant.jar 32 | 33 | # 设置工作目录 34 | WORKDIR /jeepayhomes/service/app 35 | 36 | CMD ["java", "-jar", "jeepay-merchant.jar"] 37 | 38 | # ------ END ------ 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mch.bootstrap; 17 | 18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; 19 | 20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter { 21 | 22 | public FastJsonHttpMessageConverterEx() { 23 | super(); 24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/config/SwaggerConfig.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.mch.config; 2 | 3 | import io.swagger.v3.oas.models.OpenAPI; 4 | import io.swagger.v3.oas.models.info.Contact; 5 | import io.swagger.v3.oas.models.info.Info; 6 | import io.swagger.v3.oas.models.info.License; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | /** 11 | * @description: 12 | * @author: zx 13 | * @date: 2024/12/27 23:02 14 | */ 15 | @Configuration 16 | public class SwaggerConfig { 17 | 18 | @Bean 19 | public OpenAPI customOpenAPI(){ 20 | return new OpenAPI() 21 | .info(new Info() // 基本信息配置 22 | .title("Jeepay商户系统Api接口文档") // 标题 23 | .version("1.0") // 版本 24 | // 设置OpenAPI文档的联系信息,包括联系人姓名为"patrick",邮箱为"patrick@gmail.com"。 25 | .contact(new Contact().name("jeequan")) 26 | // 设置OpenAPI文档的许可证信息,包括许可证名称为"Apache 2.0",许可证URL为"http://springdoc.org"。 27 | .license(new License().name("Apache 2.0").url("https://www.jeequan.com")) 28 | ); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/config/SystemYmlConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mch.config; 17 | 18 | import lombok.Data; 19 | import org.springframework.boot.context.properties.ConfigurationProperties; 20 | import org.springframework.stereotype.Component; 21 | 22 | /** 23 | * 系统Yml配置参数定义Bean 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021-04-27 15:50 28 | */ 29 | @Component 30 | @ConfigurationProperties(prefix="isys") 31 | @Data 32 | public class SystemYmlConfig { 33 | 34 | /** 是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时,应开启此配置或在nginx统一配置允许跨域] **/ 35 | private Boolean allowCors; 36 | 37 | /** 生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。 **/ 38 | private String jwtSecret; 39 | 40 | /** 是否内存缓存配置信息: true表示开启如支付网关地址/商户应用配置/服务商配置等, 开启后需检查MQ的广播模式是否正常; false表示直接查询DB. **/ 41 | private Boolean cacheConfig; 42 | 43 | } 44 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/service/CodeSysTypeManager.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.mch.service; 2 | 3 | import com.jeequan.jeepay.core.constants.CS; 4 | import com.jeequan.jeepay.core.service.ICodeSysTypeManager; 5 | import org.springframework.stereotype.Component; 6 | 7 | @Component 8 | public class CodeSysTypeManager implements ICodeSysTypeManager { 9 | 10 | @Override 11 | public String getCodeSysName() { 12 | return CS.CODE_SYS_NAME_SET.JEEPAY_MERCHANT; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/web/WebmvcConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mch.web; 17 | 18 | import org.springframework.beans.factory.annotation.Autowired; 19 | import org.springframework.context.annotation.Configuration; 20 | import org.springframework.web.servlet.config.annotation.InterceptorRegistry; 21 | import org.springframework.web.servlet.config.annotation.WebMvcConfigurer; 22 | 23 | /** 24 | * webmvc配置 25 | * 26 | * @author terrfly 27 | * @modify zhuxiao 28 | * @site https://www.jeequan.com 29 | * @date 2021-04-27 15:50 30 | */ 31 | @Configuration 32 | public class WebmvcConfig implements WebMvcConfigurer { 33 | 34 | @Autowired 35 | private ApiResInterceptor apiResInterceptor; 36 | 37 | @Override 38 | public void addInterceptors(InterceptorRegistry registry) { 39 | registry.addInterceptor(apiResInterceptor); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/java/com/jeequan/jeepay/mch/websocket/config/WebSocketConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.mch.websocket.config; 17 | 18 | import org.springframework.context.annotation.Bean; 19 | import org.springframework.context.annotation.Configuration; 20 | import org.springframework.web.socket.server.standard.ServerEndpointExporter; 21 | 22 | /* 23 | * 开启WebSocket支持 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/22 12:57 28 | */ 29 | @Configuration 30 | public class WebSocketConfig { 31 | 32 | @Bean 33 | public ServerEndpointExporter serverEndpointExporter() { 34 | return new ServerEndpointExporter(); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/resources/application.yml: -------------------------------------------------------------------------------- 1 | server: 2 | port: 9218 #设置端口 3 | 4 | spring: 5 | data: 6 | redis: 7 | database: 2 #1库:运营平台 #2库:商户系统 #3库:支付网关 8 | 9 | #系统业务参数 10 | isys: 11 | jwt-secret: ARNXp4MzjOOQqxtv #生成jwt的秘钥。 要求每个系统有单独的秘钥管理机制。 12 | 13 | # knife4j APIDOC文档 14 | springdoc: 15 | swagger-ui: 16 | path: /swagger-ui.html 17 | tags-sorter: alpha 18 | operations-sorter: alpha 19 | api-docs: 20 | path: /v3/api-docs 21 | group-configs: 22 | - group: 'default' 23 | paths-to-match: '/**' 24 | packages-to-scan: com.jeequan.jeepay.mch.ctrl 25 | knife4j: 26 | enable: true 27 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/resources/banner.txt: -------------------------------------------------------------------------------- 1 | __ 2 | / /___ ___ ____ ____ ___ __ 3 | __ / // _ \/ _ \/ __ \/ __ `/ / / / 4 | / /_/ // __/ __/ /_/ / /_/ / /_/ / 5 | \____/ \___/\___/ .___/\__,_/\__, / 6 | /_/ /____/ 7 | :: Jeepay :: (v3.1.0.RELEASE) 8 | 让支付接入更简单 : https://www.jeequan.com 9 | -------------------------------------------------------------------------------- /jeepay-merchant/src/main/resources/static/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 | 5 | -------------------------------------------------------------------------------- /jeepay-merchant/src/test/java/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-merchant/src/test/java/.gitkeep -------------------------------------------------------------------------------- /jeepay-merchant/src/test/resources/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeequan/jeepay/f53cb2132934823389a8c9de8a4a049f7ab1cfb0/jeepay-merchant/src/test/resources/.gitkeep -------------------------------------------------------------------------------- /jeepay-payment/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # jeepay-payment(商户平台) java程序镜像构建脚本 .Power by terrfly 3 | # 4 | 5 | # ------ START ------ 6 | 7 | # 基础镜像来自: https://hub.docker.com/ 官方OFFICIAL 8 | FROM openjdk:17 9 | 10 | MAINTAINER Terrfly 11 | 12 | # 配置环境变量,支持中文。 13 | ENV LANG=C.UTF-8 14 | 15 | # 设置时区 东八区, 解决日志时间不正确的问题。 16 | ENV TZ=Asia/Shanghai 17 | 18 | # 对外映射的端口 ( 不明确EXPOSE 也不影响映射 ) 19 | EXPOSE 9216 20 | 21 | # 挂载目录 "/jeepayhomes/service/app/application.yml 这个文件不能写到VOLUME中, 否则将映射成为了目录导致启动异常。 22 | VOLUME ["/jeepayhomes/service/logs", "/jeepayhomes/service/uploads"] 23 | 24 | # 使用jeepay用户启动。 ( 需要 RUN adduser等一系列操作 ) 25 | # USER jeepay:jeepay 26 | 27 | # 创建目录 28 | RUN mkdir /jeepayhomes/service/app -p 29 | 30 | # 安装 31 | COPY ./target/jeepay-payment.jar /jeepayhomes/service/app/jeepay-payment.jar 32 | 33 | # 设置工作目录 34 | WORKDIR /jeepayhomes/service/app 35 | 36 | CMD ["java", "-jar", "jeepay-payment.jar"] 37 | 38 | # ------ END ------ 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/bootstrap/FastJsonHttpMessageConverterEx.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.bootstrap; 17 | 18 | import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter; 19 | 20 | public class FastJsonHttpMessageConverterEx extends FastJsonHttpMessageConverter { 21 | 22 | public FastJsonHttpMessageConverterEx() { 23 | super(); 24 | this.getFastJsonConfig().getSerializeConfig().put(byte[].class, SwaggerJsonSerializer.instance); 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IChannelUserService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.channel; 17 | 18 | import com.alibaba.fastjson.JSONObject; 19 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 20 | 21 | /* 22 | * @Description: 301方式获取渠道侧用户ID, 如微信openId 支付宝的userId等 23 | * @author terrfly 24 | * @date 2021/5/2 15:10 25 | */ 26 | public interface IChannelUserService { 27 | 28 | /** 获取到接口code **/ 29 | String getIfCode(); 30 | 31 | /** 获取重定向地址 **/ 32 | String buildUserRedirectUrl(String callbackUrlEncode, MchAppConfigContext mchAppConfigContext); 33 | 34 | /** 获取渠道用户ID **/ 35 | String getChannelUserId(JSONObject reqParams, MchAppConfigContext mchAppConfigContext); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IPayOrderCloseService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.channel; 17 | 18 | import com.jeequan.jeepay.core.entity.PayOrder; 19 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 20 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg; 21 | 22 | /** 23 | * 关闭订单(渠道侧)接口定义 24 | * 25 | * @author xiaoyu 26 | * @site https://www.jeequan.com 27 | * @date 2022/1/24 17:23 28 | */ 29 | public interface IPayOrderCloseService { 30 | 31 | /** 获取到接口code **/ 32 | String getIfCode(); 33 | 34 | /** 查询订单 **/ 35 | ChannelRetMsg close(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/IPayOrderQueryService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.channel; 17 | 18 | import com.jeequan.jeepay.core.entity.PayOrder; 19 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg; 20 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 21 | 22 | /** 23 | * 查单(渠道侧)接口定义 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/5/19 15:16 28 | */ 29 | public interface IPayOrderQueryService { 30 | 31 | /** 获取到接口code **/ 32 | String getIfCode(); 33 | 34 | /** 查询订单 **/ 35 | ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception; 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/plspay/PlspayPaymentService.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.pay.channel.plspay; 2 | 3 | import com.jeequan.jeepay.core.constants.CS; 4 | import com.jeequan.jeepay.core.entity.PayOrder; 5 | import com.jeequan.jeepay.pay.channel.AbstractPaymentService; 6 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 7 | import com.jeequan.jeepay.pay.rqrs.AbstractRS; 8 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ; 9 | import com.jeequan.jeepay.pay.util.PaywayUtil; 10 | import org.springframework.stereotype.Service; 11 | 12 | /** 13 | * 计全支付plus 14 | * 15 | * @author yurong 16 | * @site https://www.jeequan.com 17 | * @date 2022/8/11 15:37 18 | */ 19 | @Service 20 | public class PlspayPaymentService extends AbstractPaymentService { 21 | 22 | @Override 23 | public String getIfCode() { 24 | return CS.IF_CODE.PLSPAY; 25 | } 26 | 27 | @Override 28 | public boolean isSupport(String wayCode) { 29 | return true; 30 | } 31 | 32 | @Override 33 | public String preCheck(UnifiedOrderRQ bizRQ, PayOrder payOrder) { 34 | return PaywayUtil.getRealPaywayService(this, payOrder.getWayCode()).preCheck(bizRQ, payOrder); 35 | } 36 | 37 | @Override 38 | public AbstractRS pay(UnifiedOrderRQ bizRQ, PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception { 39 | return PaywayUtil.getRealPaywayService(this, payOrder.getWayCode()).pay(bizRQ, payOrder, mchAppConfigContext); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/channel/pppay/PppayPayOrderQueryService.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.pay.channel.pppay; 2 | 3 | import com.jeequan.jeepay.core.constants.CS; 4 | import com.jeequan.jeepay.core.entity.PayOrder; 5 | import com.jeequan.jeepay.pay.channel.IPayOrderQueryService; 6 | import com.jeequan.jeepay.pay.model.MchAppConfigContext; 7 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg; 8 | import com.jeequan.jeepay.pay.service.ConfigContextQueryService; 9 | import org.springframework.beans.factory.annotation.Autowired; 10 | import org.springframework.stereotype.Service; 11 | 12 | /** 13 | * none. 14 | * 15 | * @author 陈泉 16 | * @package com.jeequan.jeepay.pay.channel.pppay 17 | * @create 2021/11/15 21:02 18 | */ 19 | @Service 20 | public class PppayPayOrderQueryService implements IPayOrderQueryService { 21 | 22 | @Override 23 | public String getIfCode() { 24 | return CS.IF_CODE.PPPAY; 25 | } 26 | 27 | @Autowired 28 | private ConfigContextQueryService configContextQueryService; 29 | 30 | @Override 31 | public ChannelRetMsg query(PayOrder payOrder, MchAppConfigContext mchAppConfigContext) throws Exception { 32 | return configContextQueryService.getPaypalWrapper(mchAppConfigContext).processOrder(null, payOrder); 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/config/SwaggerConfig.java: -------------------------------------------------------------------------------- 1 | package com.jeequan.jeepay.pay.config; 2 | 3 | import io.swagger.v3.oas.models.OpenAPI; 4 | import io.swagger.v3.oas.models.info.Contact; 5 | import io.swagger.v3.oas.models.info.Info; 6 | import io.swagger.v3.oas.models.info.License; 7 | import org.springframework.context.annotation.Bean; 8 | import org.springframework.context.annotation.Configuration; 9 | 10 | /** 11 | * @description: 12 | * @author: zx 13 | * @date: 2024/12/27 23:02 14 | */ 15 | @Configuration 16 | public class SwaggerConfig { 17 | 18 | @Bean 19 | public OpenAPI customOpenAPI(){ 20 | return new OpenAPI() 21 | .info(new Info() // 基本信息配置 22 | .title("Jeepay支付网关Api接口文档") // 标题 23 | .version("1.0") // 版本 24 | // 设置OpenAPI文档的联系信息,包括联系人姓名为"patrick",邮箱为"patrick@gmail.com"。 25 | .contact(new Contact().name("jeequan")) 26 | // 设置OpenAPI文档的许可证信息,包括许可证名称为"Apache 2.0",许可证URL为"http://springdoc.org"。 27 | .license(new License().name("Apache 2.0").url("https://www.jeequan.com")) 28 | ); 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/config/SystemYmlConfig.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.config; 17 | 18 | import lombok.Data; 19 | import org.springframework.boot.context.properties.ConfigurationProperties; 20 | import org.springframework.stereotype.Component; 21 | 22 | /** 23 | * 系统Yml配置参数定义Bean 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021-04-27 15:50 28 | */ 29 | @Component 30 | @ConfigurationProperties(prefix="isys") 31 | @Data 32 | public class SystemYmlConfig { 33 | 34 | /** 是否允许跨域请求 [生产环境建议关闭, 若api与前端项目没有在同一个域名下时,应开启此配置或在nginx统一配置允许跨域] **/ 35 | private Boolean allowCors; 36 | 37 | /** 是否内存缓存配置信息: true表示开启如支付网关地址/商户应用配置/服务商配置等, 开启后需检查MQ的广播模式是否正常; false表示直接查询DB. **/ 38 | private Boolean cacheConfig; 39 | 40 | } 41 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/AbstractMchAppRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import lombok.Data; 19 | 20 | import jakarta.validation.constraints.NotBlank; 21 | 22 | /* 23 | * 24 | * 通用RQ, 包含mchNo和appId 必填项 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/16 10:30 29 | */ 30 | @Data 31 | public class AbstractMchAppRQ extends AbstractRQ { 32 | 33 | /** 商户号 **/ 34 | @NotBlank(message="商户号不能为空") 35 | private String mchNo; 36 | 37 | /** 商户应用ID **/ 38 | @NotBlank(message="商户应用ID不能为空") 39 | private String appId; 40 | 41 | 42 | } 43 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/AbstractRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import lombok.Data; 19 | 20 | import jakarta.validation.constraints.NotBlank; 21 | import java.io.Serializable; 22 | 23 | /* 24 | * 基础请求参数 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/8 17:39 29 | */ 30 | @Data 31 | public abstract class AbstractRQ implements Serializable { 32 | 33 | /** 版本号 **/ 34 | @NotBlank(message="版本号不能为空") 35 | protected String version; 36 | 37 | /** 签名类型 **/ 38 | @NotBlank(message="签名类型不能为空") 39 | protected String signType; 40 | 41 | /** 签名值 **/ 42 | @NotBlank(message="签名值不能为空") 43 | protected String sign; 44 | 45 | /** 接口请求时间 **/ 46 | @NotBlank(message="时间戳不能为空") 47 | protected String reqTime; 48 | 49 | } 50 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/AbstractRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import com.alibaba.fastjson.JSON; 19 | import lombok.Data; 20 | 21 | import java.io.Serializable; 22 | 23 | /* 24 | * 接口抽象RS对象, 本身无需实例化 25 | * 26 | * @author terrfly 27 | * @site https://www.jeequan.com 28 | * @date 2021/6/8 17:39 29 | */ 30 | @Data 31 | public abstract class AbstractRS implements Serializable { 32 | 33 | public String toJSONString(){ 34 | return JSON.toJSONString(this); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/ChannelUserIdRQ.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs; 17 | 18 | import lombok.Data; 19 | 20 | import jakarta.validation.constraints.NotBlank; 21 | 22 | /* 23 | * 商户获取渠道用户ID 请求参数对象 24 | * 25 | * @author terrfly 26 | * @site https://www.jeequan.com 27 | * @date 2021/6/8 17:40 28 | */ 29 | @Data 30 | public class ChannelUserIdRQ extends AbstractMchAppRQ{ 31 | 32 | /** 接口代码, AUTO表示:自动获取 **/ 33 | @NotBlank(message="接口代码不能为空") 34 | private String ifCode; 35 | 36 | /** 商户扩展参数,将原样返回 **/ 37 | private String extParam; 38 | 39 | /** 回调地址 **/ 40 | @NotBlank(message="回调地址不能为空") 41 | private String redirectUrl; 42 | 43 | } 44 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/division/PayOrderDivisionExecRS.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | package com.jeequan.jeepay.pay.rqrs.division; 17 | 18 | import com.jeequan.jeepay.pay.rqrs.AbstractRS; 19 | import lombok.Data; 20 | 21 | /** 22 | * 发起订单分账 响应参数 23 | * 24 | * @author terrfly 25 | * @site https://www.jeequan.com 26 | * @date 2021/8/26 17:20 27 | */ 28 | @Data 29 | public class PayOrderDivisionExecRS extends AbstractRS { 30 | 31 | /** 32 | * 分账状态 1-分账成功, 2-分账失败 33 | */ 34 | private Byte state; 35 | 36 | /** 37 | * 上游分账批次号 38 | */ 39 | private String channelBatchOrderId; 40 | 41 | /** 42 | * 支付渠道错误码 43 | */ 44 | private String errCode; 45 | 46 | /** 47 | * 支付渠道错误信息 48 | */ 49 | private String errMsg; 50 | 51 | 52 | } 53 | -------------------------------------------------------------------------------- /jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/msg/DivisionChannelNotifyModel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com). 3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0; 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | *
8 | * http://www.gnu.org/licenses/lgpl.html 9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.msg;
17 |
18 | import lombok.Data;
19 | import org.springframework.http.ResponseEntity;
20 |
21 | import java.util.Map;
22 |
23 | /***
24 | * 封装响应结果的数据
25 | * 直接写: MutablePair
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ;
19 | import lombok.Data;
20 |
21 | /*
22 | * 关闭订单 请求参数对象
23 | *
24 | * @author xiaoyu
25 | * @site https://www.jeequan.com
26 | * @date 2022/1/25 9:16
27 | */
28 | @Data
29 | public class ClosePayOrderRQ extends AbstractMchAppRQ {
30 |
31 | /** 商户订单号 **/
32 | private String mchOrderNo;
33 |
34 | /** 支付系统订单号 **/
35 | private String payOrderId;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/ClosePayOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder;
17 |
18 | import com.alibaba.fastjson.annotation.JSONField;
19 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
20 | import com.jeequan.jeepay.pay.rqrs.msg.ChannelRetMsg;
21 | import lombok.Data;
22 |
23 | /*
24 | * 关闭订单 响应参数
25 | *
26 | * @author xiaoyu
27 | * @site https://www.jeequan.com
28 | * @date 2022/1/25 9:17
29 | */
30 | @Data
31 | public class ClosePayOrderRS extends AbstractRS {
32 |
33 | /** 上游渠道返回数据包 (无需JSON序列化) **/
34 | @JSONField(serialize = false)
35 | private ChannelRetMsg channelRetMsg;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/CommonPayDataRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder;
17 |
18 | import lombok.Data;
19 |
20 | /*
21 | * 通用支付数据RQ
22 | *
23 | * @author terrfly
24 | * @site https://www.jeequan.com
25 | * @date 2021/6/8 17:31
26 | */
27 | @Data
28 | public class CommonPayDataRQ extends UnifiedOrderRQ {
29 |
30 | /** 请求参数: 支付数据包类型 **/
31 | private String payDataType;
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/QueryPayOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ;
19 | import lombok.Data;
20 |
21 |
22 | /*
23 | * 查询订单请求参数对象
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:40
28 | */
29 | @Data
30 | public class QueryPayOrderRQ extends AbstractMchAppRQ {
31 |
32 | /** 商户订单号 **/
33 | private String mchOrderNo;
34 |
35 | /** 支付系统订单号 **/
36 | private String payOrderId;
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_APP
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliAppOrderRS extends UnifiedOrderRS {
31 |
32 | private String payData;
33 |
34 | @Override
35 | public String buildPayDataType(){
36 | return CS.PAY_DATA_TYPE.ALI_APP;
37 | }
38 |
39 | @Override
40 | public String buildPayData(){
41 | return payData;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: ALI_BAR
26 | *
27 | * @author terrfly
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class AliBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public AliBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.ALI_BAR); //默认 ali_bar, 避免validate出现问题
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliJsapiOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.core.utils.JsonKit;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: ALI_JSAPI
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class AliJsapiOrderRS extends UnifiedOrderRS {
32 |
33 | /** 调起支付插件的支付宝订单号 **/
34 | private String alipayTradeNo;
35 |
36 | @Override
37 | public String buildPayDataType(){
38 | return CS.PAY_DATA_TYPE.ALI_APP;
39 | }
40 |
41 | @Override
42 | public String buildPayData(){
43 | return JsonKit.newJson("alipayTradeNo", alipayTradeNo).toString();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliLiteOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: ALI_LITE
26 | *
27 | * @author terrfly
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class AliLiteOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 支付宝用户ID **/
35 | @NotBlank(message = "用户ID不能为空")
36 | private String buyerUserId;
37 |
38 | /** 构造函数 **/
39 | public AliLiteOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.ALI_LITE);
41 | }
42 |
43 | @Override
44 | public String getChannelUserId(){
45 | return this.buyerUserId;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliLiteOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.core.utils.JsonKit;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: ALI_LITE
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class AliLiteOrderRS extends UnifiedOrderRS {
32 |
33 | /** 调起支付插件的支付宝订单号 **/
34 | private String alipayTradeNo;
35 |
36 | @Override
37 | public String buildPayDataType(){
38 | return CS.PAY_DATA_TYPE.ALI_APP;
39 | }
40 |
41 | @Override
42 | public String buildPayData(){
43 | return JsonKit.newJson("alipayTradeNo", alipayTradeNo).toString();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliOcOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /**
23 | * 支付方式 订单码
24 | *
25 | * @author zhangheming
26 | * @site https://www.jeequan.com
27 | * @date 2024/6/12 17:20
28 | */
29 | @Data
30 | public class AliOcOrderRQ extends CommonPayDataRQ {
31 |
32 | public AliOcOrderRQ() {
33 | this.setWayCode(CS.PAY_WAY_CODE.ALI_OC);
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliOcOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /**
22 | * 支付方式 ALI_OC
23 | *
24 | * @author zhangheming
25 | * @site https://www.jeequan.com
26 | * @date 2024/6/12 17:20
27 | */
28 | @Data
29 | public class AliOcOrderRS extends CommonPayDataRS {
30 | }
31 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliPcOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: ALI_PC
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class AliPcOrderRQ extends CommonPayDataRQ {
32 |
33 | /** 构造函数 **/
34 | public AliPcOrderRQ(){
35 | this.setWayCode(CS.PAY_WAY_CODE.ALI_PC);
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliPcOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: ALI_PC
25 | *
26 | * @author terrfly
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class AliPcOrderRS extends CommonPayDataRS {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_QR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliQrOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public AliQrOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.ALI_QR);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliQrOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: ALI_QR
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:34
27 | */
28 | @Data
29 | public class AliQrOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliWapOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: ALI_WAP
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AliWapOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public AliWapOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.ALI_WAP); //默认 ALI_WAP, 避免validate出现问题
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AliWapOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: ALI_WAP
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:34
27 | */
28 | @Data
29 | public class AliWapOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AutoBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: AUTO_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AutoBarOrderRQ extends UnifiedOrderRQ {
31 |
32 | /** 条码值 **/
33 | private String authCode;
34 |
35 | /** 构造函数 **/
36 | public AutoBarOrderRQ(){
37 | this.setWayCode(CS.PAY_WAY_CODE.AUTO_BAR);
38 | }
39 |
40 | }
41 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/AutoBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: AUTO_BAR
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class AutoBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/PPPcOrderRQ.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
2 |
3 | import com.jeequan.jeepay.core.constants.CS;
4 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
5 | import lombok.Data;
6 |
7 | import jakarta.validation.constraints.NotBlank;
8 |
9 | /**
10 | * none.
11 | *
12 | * @author 陈泉
13 | * @package com.jeequan.jeepay.pay.rqrs.payorder.payway
14 | * @create 2021/11/15 17:52
15 | */
16 | @Data
17 | public class PPPcOrderRQ extends CommonPayDataRQ {
18 |
19 | /**
20 | * 商品描述信息
21 | **/
22 | @NotBlank(message = "取消支付返回站点")
23 | private String cancelUrl;
24 |
25 | public PPPcOrderRQ() {
26 | this.setWayCode(CS.PAY_WAY_CODE.PP_PC);
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/PPPcOrderRS.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
2 |
3 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
4 | import lombok.Data;
5 |
6 | /**
7 | * none.
8 | *
9 | * @author 陈泉
10 | * @package com.jeequan.jeepay.pay.rqrs.payorder.payway
11 | * @create 2021/11/15 19:56
12 | */
13 | @Data
14 | public class PPPcOrderRS extends CommonPayDataRS {
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: QR_CASHIER
24 | *
25 | * @author terrfly
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class QrCashierOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public QrCashierOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.QR_CASHIER);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/QrCashierOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: QR_CASHIER
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:34
27 | */
28 | @Data
29 | public class QrCashierOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpAppOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_APP
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpAppOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpAppOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_APP);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_APP
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpAppOrderRS extends CommonPayDataRS {
31 |
32 | private String payData;
33 |
34 | @Override
35 | public String buildPayDataType(){
36 | return CS.PAY_DATA_TYPE.YSF_APP;
37 | }
38 |
39 | @Override
40 | public String buildPayData(){
41 | return payData;
42 | }
43 |
44 | }
45 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpB2bOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_B2B
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpB2bOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpB2bOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_B2B);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpB2bOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: UPACP_B2B
23 | *
24 | * @author jmdhappy
25 | * @site https://www.jeequan.com
26 | * @date 2021/12/1 19:57
27 | */
28 | @Data
29 | public class UpB2bOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: UPACP_BAR
26 | *
27 | * @author jmdhappy
28 | * @site https://www.jeequan.com
29 | * @date 2021/12/1 19:57
30 | */
31 | @Data
32 | public class UpBarOrderRQ extends CommonPayDataRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public UpBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.UP_BAR);
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: UPACP_BAR
23 | *
24 | * @author jmdhappy
25 | * @site https://www.jeequan.com
26 | * @date 2021/12/1 19:57
27 | */
28 | @Data
29 | public class UpBarOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpJsapiOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: UP_JSAPI
26 | *
27 | * @author jmdhappy
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class UpJsapiOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 支付宝用户ID **/
35 | @NotBlank(message = "用户ID不能为空")
36 | private String userId;
37 |
38 | /** 构造函数 **/
39 | public UpJsapiOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.UP_JSAPI);
41 | }
42 |
43 | @Override
44 | public String getChannelUserId(){
45 | return this.userId;
46 | }
47 |
48 | }
49 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpJsapiOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.core.utils.JsonKit;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: UP_JSAPI
25 | *
26 | * @author jmdhappy
27 | * @site https://www.jeequan.com
28 | * @date 2022/3/17 12:34
29 | */
30 | @Data
31 | public class UpJsapiOrderRS extends UnifiedOrderRS {
32 |
33 | /** 调起支付插件的云闪付订单号 **/
34 | private String redirectUrl;
35 |
36 | @Override
37 | public String buildPayDataType(){
38 | return CS.PAY_DATA_TYPE.YSF_APP;
39 | }
40 |
41 | @Override
42 | public String buildPayData(){
43 | return JsonKit.newJson("redirectUrl", redirectUrl).toString();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpPcOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_PC
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpPcOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpPcOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_PC);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpPcOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: UPACP_PC
23 | *
24 | * @author jmdhappy
25 | * @site https://www.jeequan.com
26 | * @date 2021/12/1 19:57
27 | */
28 | @Data
29 | public class UpPcOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpQrOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_QR
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpQrOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpQrOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_QR);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpQrOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: UPACP_QR
23 | *
24 | * @author jmdhappy
25 | * @site https://www.jeequan.com
26 | * @date 2021/12/1 19:57
27 | */
28 | @Data
29 | public class UpQrOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpWapOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: UPACP_WAP
24 | *
25 | * @author jmdhappy
26 | * @site https://www.jeequan.com
27 | * @date 2021/12/1 19:57
28 | */
29 | @Data
30 | public class UpWapOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public UpWapOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.UP_WAP);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/UpWapOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: UPACP_WAP
23 | *
24 | * @author jmdhappy
25 | * @site https://www.jeequan.com
26 | * @date 2021/12/1 19:57
27 | */
28 | @Data
29 | public class UpWapOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxAppOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_APP
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxAppOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: WX_BAR
26 | *
27 | * @author zhuxiao
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class WxBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public WxBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.WX_BAR); //默认 wx_bar, 避免validate出现问题
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_BAR
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxH5OrderRQ.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
2 |
3 | import com.jeequan.jeepay.core.constants.CS;
4 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
5 | import lombok.Data;
6 |
7 | /*
8 | * 支付方式: WX_H5
9 | *
10 | * @author zhuxiao
11 | * @site https://www.jeequan.com
12 | * @date 2021/6/8 17:34
13 | */
14 | @Data
15 | public class WxH5OrderRQ extends CommonPayDataRQ {
16 |
17 | /** 构造函数 **/
18 | public WxH5OrderRQ() {
19 | this.setWayCode(CS.PAY_WAY_CODE.WX_H5);
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxH5OrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: WX_H5
23 | *
24 | * @author zhuxiao
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:34
27 | */
28 | @Data
29 | public class WxH5OrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxJsapiOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_JSAPI
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxJsapiOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxLiteOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_LITE
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxLiteOrderRS extends UnifiedOrderRS {
31 |
32 | /** 预支付数据包 **/
33 | private String payInfo;
34 |
35 | @Override
36 | public String buildPayDataType(){
37 | return CS.PAY_DATA_TYPE.WX_APP;
38 | }
39 |
40 | @Override
41 | public String buildPayData(){
42 | return payInfo;
43 | }
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxNativeOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: WX_NATIVE
24 | *
25 | * @author zhuxiao
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class WxNativeOrderRQ extends CommonPayDataRQ {
31 |
32 | /** 构造函数 **/
33 | public WxNativeOrderRQ() {
34 | this.setWayCode(CS.PAY_WAY_CODE.WX_NATIVE);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/WxNativeOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.payorder.CommonPayDataRS;
19 | import lombok.Data;
20 |
21 | /*
22 | * 支付方式: WX_NATIVE
23 | *
24 | * @author zhuxiao
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:34
27 | */
28 | @Data
29 | public class WxNativeOrderRS extends CommonPayDataRS {
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfBarOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | import jakarta.validation.constraints.NotBlank;
23 |
24 | /*
25 | * 支付方式: YSF_BAR
26 | *
27 | * @author pangxiaoyu
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:34
30 | */
31 | @Data
32 | public class YsfBarOrderRQ extends UnifiedOrderRQ {
33 |
34 | /** 用户 支付条码 **/
35 | @NotBlank(message = "支付条码不能为空")
36 | private String authCode;
37 |
38 | /** 构造函数 **/
39 | public YsfBarOrderRQ(){
40 | this.setWayCode(CS.PAY_WAY_CODE.YSF_BAR);
41 | }
42 |
43 | }
44 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfBarOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: YSF_BAR
24 | *
25 | * @author pangxiaoyu
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class YsfBarOrderRS extends UnifiedOrderRS {
31 |
32 | @Override
33 | public String buildPayDataType(){
34 | return CS.PAY_DATA_TYPE.NONE;
35 | }
36 |
37 | @Override
38 | public String buildPayData(){
39 | return "";
40 | }
41 |
42 | }
43 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfJsapiOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRQ;
20 | import lombok.Data;
21 |
22 | /*
23 | * 支付方式: YSF_JSAPI
24 | *
25 | * @author pangxiaoyu
26 | * @site https://www.jeequan.com
27 | * @date 2021/6/8 17:34
28 | */
29 | @Data
30 | public class YsfJsapiOrderRQ extends UnifiedOrderRQ {
31 |
32 | /** 构造函数 **/
33 | public YsfJsapiOrderRQ(){
34 | this.setWayCode(CS.PAY_WAY_CODE.YSF_JSAPI);
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/payorder/payway/YsfJsapiOrderRS.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.payorder.payway;
17 |
18 | import com.jeequan.jeepay.core.constants.CS;
19 | import com.jeequan.jeepay.core.utils.JsonKit;
20 | import com.jeequan.jeepay.pay.rqrs.payorder.UnifiedOrderRS;
21 | import lombok.Data;
22 |
23 | /*
24 | * 支付方式: YSF_JSAPI
25 | *
26 | * @author pangxiaoyu
27 | * @site https://www.jeequan.com
28 | * @date 2021/6/8 17:34
29 | */
30 | @Data
31 | public class YsfJsapiOrderRS extends UnifiedOrderRS {
32 |
33 | /** 调起支付插件的云闪付订单号 **/
34 | private String redirectUrl;
35 |
36 | @Override
37 | public String buildPayDataType(){
38 | return CS.PAY_DATA_TYPE.YSF_APP;
39 | }
40 |
41 | @Override
42 | public String buildPayData(){
43 | return JsonKit.newJson("redirectUrl", redirectUrl).toString();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/refund/QueryRefundOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.refund;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ;
19 | import lombok.Data;
20 |
21 | /*
22 | * 查询退款单请求参数对象
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/17 14:07
27 | */
28 | @Data
29 | public class QueryRefundOrderRQ extends AbstractMchAppRQ {
30 |
31 | /** 商户退款单号 **/
32 | private String mchRefundNo;
33 |
34 | /** 支付系统退款订单号 **/
35 | private String refundOrderId;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/rqrs/transfer/QueryTransferOrderRQ.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.rqrs.transfer;
17 |
18 | import com.jeequan.jeepay.pay.rqrs.AbstractMchAppRQ;
19 | import lombok.Data;
20 |
21 | /*
22 | * 查询转账单请求参数对象
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/17 14:07
27 | */
28 | @Data
29 | public class QueryTransferOrderRQ extends AbstractMchAppRQ {
30 |
31 | /** 商户转账单号 **/
32 | private String mchOrderNo;
33 |
34 | /** 支付系统转账单号 **/
35 | private String transferId;
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/service/CodeSysTypeManager.java:
--------------------------------------------------------------------------------
1 | package com.jeequan.jeepay.pay.service;
2 |
3 | import com.jeequan.jeepay.core.constants.CS;
4 | import com.jeequan.jeepay.core.service.ICodeSysTypeManager;
5 | import org.springframework.stereotype.Component;
6 |
7 | @Component
8 | public class CodeSysTypeManager implements ICodeSysTypeManager {
9 |
10 | @Override
11 | public String getCodeSysName() {
12 | return CS.CODE_SYS_NAME_SET.JEEPAY_PAYMENT;
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/task/PayOrderExpiredTask.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.task;
17 |
18 | import com.jeequan.jeepay.service.impl.PayOrderService;
19 | import lombok.extern.slf4j.Slf4j;
20 | import org.springframework.beans.factory.annotation.Autowired;
21 | import org.springframework.scheduling.annotation.Scheduled;
22 | import org.springframework.stereotype.Component;
23 |
24 | /*
25 | * 订单过期定时任务
26 | *
27 | * @author terrfly
28 | * @site https://www.jeequan.com
29 | * @date 2021/6/8 17:47
30 | */
31 | @Slf4j
32 | @Component
33 | public class PayOrderExpiredTask {
34 |
35 | @Autowired private PayOrderService payOrderService;
36 |
37 | @Scheduled(cron="0 0/1 * * * ?") // 每分钟执行一次
38 | public void start() {
39 |
40 | int updateCount = payOrderService.updateOrderExpired();
41 | log.info("处理订单超时{}条.", updateCount);
42 | }
43 |
44 |
45 | }
46 |
--------------------------------------------------------------------------------
/jeepay-payment/src/main/java/com/jeequan/jeepay/pay/util/ApiResBuilder.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (c) 2021-2031, 河北计全科技有限公司 (https://www.jeequan.com & jeequan@126.com).
3 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.pay.util;
17 |
18 |
19 | import com.jeequan.jeepay.pay.rqrs.AbstractRS;
20 |
21 | /*
22 | * api响应结果构造器
23 | *
24 | * @author terrfly
25 | * @site https://www.jeequan.com
26 | * @date 2021/6/8 17:45
27 | */
28 | public class ApiResBuilder {
29 |
30 | /** 构建自定义响应对象, 默认响应成功 **/
31 | public static
10 | * 分账账号组 服务实现类
11 | *
10 | * 商户分账接收者账号绑定关系表 服务实现类
11 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.PayInterfaceDefine;
20 | import com.jeequan.jeepay.service.mapper.PayInterfaceDefineMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 支付接口定义表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.PayWay;
20 | import com.jeequan.jeepay.service.mapper.PayWayMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 支付方式表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.SysEntitlement;
20 | import org.springframework.stereotype.Service;
21 | import com.jeequan.jeepay.service.mapper.SysEntitlementMapper;
22 |
23 | /**
24 | *
25 | * 系统权限表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.SysLog;
20 | import com.jeequan.jeepay.service.mapper.SysLogMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 系统操作日志表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.impl;
17 |
18 | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
19 | import com.jeequan.jeepay.core.entity.SysUserRoleRela;
20 | import com.jeequan.jeepay.service.mapper.SysUserRoleRelaMapper;
21 | import org.springframework.stereotype.Service;
22 |
23 | /**
24 | *
25 | * 操作员<->角色 关联表 服务实现类
26 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.IsvInfo;
20 |
21 | /**
22 | *
23 | * 服务商信息表 Mapper 接口
24 | *
8 | * 商户应用表 Mapper 接口
9 | *
8 | * 分账账号组 Mapper 接口
9 | *
8 | * 商户分账接收者账号绑定关系表 Mapper 接口
9 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.MchInfo;
20 |
21 | /**
22 | *
23 | * 商户信息表 Mapper 接口
24 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.alibaba.fastjson.JSONObject;
19 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
20 | import com.jeequan.jeepay.core.entity.MchPayPassage;
21 |
22 | import java.util.List;
23 | import java.util.Map;
24 |
25 | /**
26 | *
27 | * 商户支付通道表 Mapper 接口
28 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.PayInterfaceConfig;
20 |
21 | /**
22 | *
23 | * 支付接口配置参数表 Mapper 接口
24 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.PayInterfaceDefine;
20 |
21 | /**
22 | *
23 | * 支付接口定义表 Mapper 接口
24 | *
11 | * 分账记录表 Mapper 接口
12 | *
4 | * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE 3.0;
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.gnu.org/licenses/lgpl.html
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | package com.jeequan.jeepay.service.mapper;
17 |
18 | import com.baomidou.mybatisplus.core.mapper.BaseMapper;
19 | import com.jeequan.jeepay.core.entity.PayOrder;
20 | import org.apache.ibatis.annotations.Param;
21 |
22 | import java.util.List;
23 | import java.util.Map;
24 |
25 | /**
26 | *
27 | * 支付订单表 Mapper 接口
28 | *