com.mizhousoft.apple.iap.service.InAppPurchaseService Maven / Gradle / Ivy
The newest version!
package com.mizhousoft.apple.iap.service;
import com.mizhousoft.apple.common.AppleException;
import com.mizhousoft.apple.iap.request.NotificationHistoryRequest;
import com.mizhousoft.apple.iap.response.NotificationDecodedPayload;
import com.mizhousoft.apple.iap.response.NotificationHistory;
import com.mizhousoft.apple.iap.response.TransactionDecodedPayload;
/**
* 苹果内购服务
*
* @version
*/
public interface InAppPurchaseService
{
/**
* 测试通知
*
* @return
* @throws AppleException
*/
String testNotification() throws AppleException;
/**
* 获取通知历史
*
* @param request
* @throws AppleException
*/
NotificationHistory getNotificationHistory(NotificationHistoryRequest request) throws AppleException;
/**
* 获取通知历史
*
* @param paginationToken
* @param request
* @throws AppleException
*/
NotificationHistory getNotificationHistory(String paginationToken, NotificationHistoryRequest request) throws AppleException;
/**
* 解析通知
*
* @param input
* @return
* @throws AppleException
*/
NotificationDecodedPayload parseNotification(String input) throws AppleException;
/**
* 查询订单
*
* @param orderId
* @throws AppleException
*/
String lookupOrder(String orderId) throws AppleException;
/**
* 获取订单历史
*
* @param transactionId
* @throws AppleException
*/
TransactionDecodedPayload getTransactionHistory(String transactionId) throws AppleException;
}