同步平台业务模块能力

This commit is contained in:
baiyanyun
2026-07-13 09:13:30 +08:00
parent e612f5e434
commit a1a38f62d8
224 changed files with 22331 additions and 1224 deletions

View File

@@ -0,0 +1,15 @@
package com.xspaceagi.pay.domain.gateway;
import com.xspaceagi.pay.sdk.dto.FileEntryUploadResponse;
import com.xspaceagi.pay.spec.gateway.PayGatewayOutbound;
/** 调用支付网关 {@code /open-api/file};出站上下文由应用层解析后传入。 */
public interface FileEntryGateway {
FileEntryUploadResponse uploadMerchantOnboardingImage(
PayGatewayOutbound outbound,
byte[] fileBytes,
String filename,
String contentType,
String replaceFileKey);
}

View File

@@ -0,0 +1,25 @@
package com.xspaceagi.pay.domain.gateway;
import com.xspaceagi.pay.sdk.dto.OrderAndTransactionCreateResponse;
import com.xspaceagi.pay.sdk.dto.OrderCreateResponse;
import com.xspaceagi.pay.sdk.dto.PaymentStatusQueryResponse;
import com.xspaceagi.pay.sdk.enums.PayChannel;
import com.xspaceagi.pay.sdk.enums.PayClientScene;
import com.xspaceagi.pay.spec.gateway.PayGatewayOutbound;
/** 调用支付网关 App 原生支付 Open API。 */
public interface PaymentAppGateway {
OrderCreateResponse createOrder(
PayGatewayOutbound outbound, String bizOrderNo, long orderAmount, String subject, String ext);
OrderAndTransactionCreateResponse createTransaction(
PayGatewayOutbound outbound,
String gatewayPaymentOrderNo,
PayChannel payChannel,
String clientIp,
PayClientScene payClientScene);
PaymentStatusQueryResponse queryOrderStatus(
PayGatewayOutbound outbound, String gatewayPaymentOrderNo, boolean syncFromChannel);
}

View File

@@ -0,0 +1,24 @@
package com.xspaceagi.pay.domain.gateway;
import com.xspaceagi.pay.sdk.dto.OrderAndTransactionCreateResponse;
import com.xspaceagi.pay.sdk.dto.OrderCreateResponse;
import com.xspaceagi.pay.sdk.dto.PaymentStatusQueryResponse;
import com.xspaceagi.pay.sdk.enums.PayChannel;
import com.xspaceagi.pay.spec.gateway.PayGatewayOutbound;
/** 调用支付网关 H5 Open API用于 H5 支付。 */
public interface PaymentH5Gateway {
OrderCreateResponse createOrder(
PayGatewayOutbound outbound, String bizOrderNo, long orderAmount, String subject, String ext);
OrderAndTransactionCreateResponse createTransaction(
PayGatewayOutbound outbound,
String gatewayPaymentOrderNo,
PayChannel payChannel,
String clientIp,
String frontNotifyUrl);
PaymentStatusQueryResponse queryOrderStatus(
PayGatewayOutbound outbound, String gatewayPaymentOrderNo, boolean syncFromChannel);
}

View File

@@ -0,0 +1,31 @@
package com.xspaceagi.pay.domain.gateway;
import com.xspaceagi.pay.sdk.dto.OrderAndTransactionCreateResponse;
import com.xspaceagi.pay.sdk.dto.OrderCreateResponse;
import com.xspaceagi.pay.sdk.dto.PaymentStatusQueryResponse;
import com.xspaceagi.pay.sdk.enums.PayChannel;
import com.xspaceagi.pay.sdk.enums.PayClientScene;
import com.xspaceagi.pay.spec.gateway.PayGatewayOutbound;
/** 调用支付网关小程序支付 Open API出站上下文由应用层解析后传入。 */
public interface PaymentMiniPayGateway {
OrderCreateResponse createOrder(
PayGatewayOutbound outbound, String bizOrderNo, long orderAmount, String subject, String ext);
OrderAndTransactionCreateResponse createTransaction(
PayGatewayOutbound outbound,
String gatewayPaymentOrderNo,
PayChannel payChannel,
String subAppid,
String openId,
String buyerId,
String clientIp,
PayClientScene payClientScene);
/**
* @param syncFromChannel true 时网关会向支付渠道查询并落库
*/
PaymentStatusQueryResponse queryOrderStatus(
PayGatewayOutbound outbound, String gatewayPaymentOrderNo, boolean syncFromChannel);
}

View File

@@ -1,14 +1,14 @@
package com.xspaceagi.pay.domain.gateway;
import com.xspaceagi.pay.sdk.dto.CashierSessionCreateResponse;
import com.xspaceagi.pay.sdk.dto.PaymentOrderCreateResponse;
import com.xspaceagi.pay.sdk.dto.ScanOrderStatusQueryResponse;
import com.xspaceagi.pay.sdk.dto.OrderCreateResponse;
import com.xspaceagi.pay.sdk.dto.PaymentStatusQueryResponse;
import com.xspaceagi.pay.spec.gateway.PayGatewayOutbound;
/** 调用 qiming-pay 扫码支付 Open API出站上下文由应用层解析后传入。 */
public interface PaymentScanGateway {
PaymentOrderCreateResponse createOrder(
OrderCreateResponse createOrder(
PayGatewayOutbound outbound, String bizOrderNo, long orderAmount, String subject, String ext);
CashierSessionCreateResponse createCashierSession(
@@ -21,6 +21,6 @@ public interface PaymentScanGateway {
/**
* @param syncFromChannel true 时网关会向支付渠道查询并落库
*/
ScanOrderStatusQueryResponse queryOrderStatus(
PaymentStatusQueryResponse queryOrderStatus(
PayGatewayOutbound outbound, String gatewayPaymentOrderNo, boolean syncFromChannel);
}