TASK:Stripe支付模块重构-逻辑优化与完善、Stripe版本升级
This commit is contained in:
@@ -9,6 +9,8 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.paypal.orders.Order;
|
||||
import com.stripe.model.Charge;
|
||||
import com.stripe.model.Invoice;
|
||||
import com.stripe.model.PaymentMethod;
|
||||
import com.stripe.model.checkout.Session;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -23,9 +25,15 @@ public interface PaymentInfoService extends IService<PaymentInfo> {
|
||||
|
||||
void createPaymentInfoForAliPayHK(AlipayHKCallbackDTO alipayHKCallbackDTO, String type);
|
||||
|
||||
PaymentInfo createOrUpdatePaymentInfoForStripe(Invoice invoice);
|
||||
void createOrUpdatePaymentInfoForStripe(Session session);
|
||||
|
||||
PaymentInfo createOrUpdatePaymentInfoForStripe(Charge charge);
|
||||
Map<String, String> getPaymentMethodInfo(String sessionId, String subscriptionId);
|
||||
|
||||
PaymentMethod getPaymentMethodBySubscriptionId(String subscriptionId);
|
||||
|
||||
PaymentInfo createOrUpdatePaymentInfoForStripe(Invoice invoice, Map<String, String> paymentMethodInfo, List<Session.Discount> discounts);
|
||||
|
||||
// PaymentInfo createOrUpdatePaymentInfoForStripe(Charge charge);
|
||||
|
||||
List<PaymentInfo> getPaymentInfoByOrderNo(String orderId, String order);
|
||||
|
||||
@@ -35,5 +43,9 @@ public interface PaymentInfoService extends IService<PaymentInfo> {
|
||||
|
||||
List<PaymentInfo> getPaymentInfoByPromCode(Long accountId, String promCode);
|
||||
|
||||
PaymentInfo updatePaymentRefundStatus(Charge charge);
|
||||
// PaymentInfo updatePaymentRefundStatus(Charge charge);
|
||||
|
||||
void updatePaymentRefundStatusByChargeId(Charge charge, String status);
|
||||
|
||||
void updatePaymentRefundStatusByInvoiceId(String invoiceId, String status);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user