feat(fleet): enforce reviewed trips and original fee coverage for dispatch
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package com.baiyue.lastleg.client;
|
||||
|
||||
import com.baiyue.common.core.api.ApiResponse;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@FeignClient(name = "finance-service", contextId = "financeFeeCoverageClient", url = "${baiyue.clients.finance.url:}")
|
||||
public interface FinanceFeeCoverageClient {
|
||||
@PostMapping("/internal/finance/v1/delivery-fee-coverage/sources")
|
||||
ApiResponse<List<Fee>> sources(@RequestHeader("X-Internal-Service-Token") String token, @RequestBody Query query);
|
||||
record Query(Long customerId, List<Long> inboundIds) { }
|
||||
record Fee(Long financeFeeId, Long sourceFeeId, String sourceType, int sourceVersion,
|
||||
Long customerId, Long sourceInboundId, String inboundCode, String feeItemCode, String feeItemName,
|
||||
String currency, BigDecimal amount, String sourceHash, String status) { }
|
||||
}
|
||||
Reference in New Issue
Block a user