| 2747 |
chandransh |
1 |
package in.shop2020.payment.persistence;
|
|
|
2 |
|
|
|
3 |
import java.util.List;
|
|
|
4 |
|
|
|
5 |
import org.apache.ibatis.annotations.Param;
|
|
|
6 |
|
|
|
7 |
import in.shop2020.payment.domain.Refund;
|
|
|
8 |
import in.shop2020.payment.domain.RefundAttribute;
|
|
|
9 |
|
|
|
10 |
public interface RefundMapper {
|
|
|
11 |
int insertRefund(Refund refund);
|
|
|
12 |
|
|
|
13 |
void updateRefund(Refund refund);
|
|
|
14 |
|
|
|
15 |
Refund getRefund(long id);
|
|
|
16 |
|
|
|
17 |
List<Refund> getRefunds(int batchSize);
|
|
|
18 |
|
|
|
19 |
List<Refund> getPendingRefunds(int batchSize);
|
|
|
20 |
|
|
|
21 |
List<Refund> getFailedRefunds(int batchSize);
|
|
|
22 |
|
|
|
23 |
List<RefundAttribute> getAttributesForRefund(long id);
|
|
|
24 |
|
|
|
25 |
void insertRefundAttribute(@Param("refundId") long refundId,
|
|
|
26 |
@Param("name") String name, @Param("value") String value);
|
|
|
27 |
}
|