新增功能 -- 产品订阅 年度/月度
This commit is contained in:
@@ -1,15 +1,35 @@
|
||||
package com.ai.da.service;
|
||||
|
||||
import com.ai.da.model.dto.ProductPurchaseDTO;
|
||||
import com.stripe.exception.StripeException;
|
||||
import com.stripe.model.Subscription;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface StripeService {
|
||||
|
||||
String pay(Integer quantity, String returnUrl);
|
||||
String pay(ProductPurchaseDTO productPurchaseDTO);
|
||||
|
||||
Boolean notify(HttpServletRequest request);
|
||||
|
||||
String refund(String amount, String orderId, String reason);
|
||||
|
||||
void checkOrderStatus(String orderNo);
|
||||
|
||||
List<Subscription> getSubscription(String name, String userEmail) throws StripeException;
|
||||
|
||||
void cancelSubscription(String orderNo);
|
||||
|
||||
Map<String, String> getPaymentMethod(String paymentMethodId);
|
||||
|
||||
/*void updateSubscription(String subscriptionId);
|
||||
|
||||
void resume(String subscriptionId);*/
|
||||
|
||||
void subscriptionReminder();
|
||||
|
||||
void checkSubscriptionExpiration();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user