package com.sonic.lion.service;

import com.sonic.lion.domain.entity.IapUploadReceipt;
import org.springframework.lang.NonNull;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: code
 * @date: 2025/07/15
 * @Description:
 * @version: 1.0.0
 */
public interface IapUploadReceiptService {

    IapUploadReceipt getById(Long id);

    /**
     * 保存收据
     *
     * @param iapUploadReceipt
     */
    Long save(@NonNull IapUploadReceipt iapUploadReceipt);

    /**
     * 更新是否处理
     *
     * @param id
     * @param processed
     * @return
     */
    int updateProcessed(@NonNull Long id, @NonNull Boolean processed);

    /**
     * 查询未处理的收据
     *
     * @param processed
     * @param startCreateTime
     * @return
     */
    List<IapUploadReceipt> list(Boolean processed, LocalDateTime startCreateTime, Integer num);
}
