Files
aida_back/src/main/java/com/ai/da/service/PaymentInfoService.java

38 lines
1.3 KiB
Java
Raw Normal View History

2024-02-14 12:10:15 +08:00
package com.ai.da.service;
2024-12-16 10:26:02 +08:00
import com.ai.da.common.response.PageBaseResponse;
2024-07-16 16:59:58 +08:00
import com.ai.da.mapper.primary.entity.PaymentInfo;
2024-05-15 15:38:11 +08:00
import com.ai.da.model.dto.AlipayHKCallbackDTO;
2024-12-16 10:26:02 +08:00
import com.ai.da.model.dto.QueryPageByTimeDTO;
import com.ai.da.model.vo.OrderListVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.paypal.orders.Order;
2024-11-25 10:53:09 +08:00
import com.stripe.model.Charge;
import com.stripe.model.Invoice;
2024-12-16 10:26:02 +08:00
import java.util.List;
2024-02-14 12:10:15 +08:00
import java.util.Map;
public interface PaymentInfoService extends IService<PaymentInfo> {
2024-02-14 12:10:15 +08:00
void createPaymentInfo(String plainText);
2025-01-10 13:27:27 +08:00
void createPaymentInfoForAliPay(Map<String, String> params, String type);
2025-01-10 13:27:27 +08:00
void createPaymentInfoForPayPal(Order order, String type);
2024-05-15 15:38:11 +08:00
2025-01-10 13:27:27 +08:00
void createPaymentInfoForAliPayHK(AlipayHKCallbackDTO alipayHKCallbackDTO, String type);
2024-07-16 16:59:58 +08:00
2024-11-25 10:53:09 +08:00
PaymentInfo createOrUpdatePaymentInfoForStripe(Invoice invoice);
PaymentInfo createOrUpdatePaymentInfoForStripe(Charge charge);
2024-07-16 16:59:58 +08:00
2024-12-16 10:26:02 +08:00
List<PaymentInfo> getPaymentInfoByOrderNo(String orderId, String order);
2024-07-16 16:59:58 +08:00
void updatePaymentStatusById(Long id, String status, String content);
2024-12-16 10:26:02 +08:00
PageBaseResponse<OrderListVO> getPaymentInfo(QueryPageByTimeDTO queryPageByTimeDTO);
List<PaymentInfo> getPaymentInfoByPromCode(Long accountId, String promCode);
2024-02-14 12:10:15 +08:00
}