同步平台业务模块能力
This commit is contained in:
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user