从Stripe退款后,修改订单状态,添加退款记录

This commit is contained in:
2025-04-25 10:06:07 +08:00
parent 58bd986090
commit a2d259aea1
7 changed files with 127 additions and 4 deletions

View File

@@ -3,6 +3,8 @@ package com.ai.da.service;
import com.ai.da.mapper.primary.entity.RefundInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.stripe.model.Charge;
import com.stripe.model.Refund;
import java.util.List;
@@ -19,4 +21,13 @@ public interface RefundInfoService extends IService<RefundInfo> {
void updateRefundForAliPay(String refundNo, String content, String refundStatus);
void updateRefundForPayPal(Long id, String refundId, String content, String refundStatus);
List<RefundInfo> getByChargeId(String chargeId);
RefundInfo createRefundForStripe(Refund refund);
RefundInfo updateRefundStatusForStripe(Refund refund);
RefundInfo updateRefundForStripe(Charge charge);
}