package dev.sonpx.loyalty.mcp.reward.client;

import dev.sonpx.loyalty.mcp.reward.model.TransactionCode;
import java.util.List;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;

@HttpExchange
public interface TransactionCodeClient {

    @GetExchange("/api/transaction-code")
    TransactionCode findByCode(@RequestParam("transactionCode") String transactionCode);

    @GetExchange("/api/transaction-code/list-by-codes")
    List<TransactionCode> findByCodes(@RequestParam("transactionCodes") List<String> transactionCodes);

    @GetExchange("/api/transaction-code/exists")
    Boolean exists(@RequestParam("transactionCode") String transactionCode);
}
