积分与余额账务系统硬切重构
This commit is contained in:
@@ -23,7 +23,7 @@ interface GatewayInterface {
|
||||
* 验证回调
|
||||
*
|
||||
* @param \WP_REST_Request $request 回调请求
|
||||
* @return array{success: bool, order_number?: string, amount?: float, transaction_id?: string, message?: string}
|
||||
* @return array{success: bool, order_number?: string, amount?: string, transaction_id?: string, message?: string}
|
||||
*/
|
||||
public function verify_callback(\WP_REST_Request $request): array;
|
||||
|
||||
@@ -39,11 +39,11 @@ interface GatewayInterface {
|
||||
* 退款
|
||||
*
|
||||
* @param string $order_number 订单号
|
||||
* @param float $amount 退款金额
|
||||
* @param string $amount 最多两位小数的退款金额
|
||||
* @param string $request_id 幂等退款请求号
|
||||
* @return array{success: bool, status?: string, refund_id?: string, request_id?: string, message?: string}
|
||||
*/
|
||||
public function refund(string $order_number, float $amount, string $request_id = ''): array;
|
||||
public function refund(string $order_number, string $amount, string $request_id = ''): array;
|
||||
|
||||
/**
|
||||
* 获取网关显示名称
|
||||
|
||||
Reference in New Issue
Block a user