feat:发票相关接口
parent
855bbc7cd1
commit
58ebb2743d
|
|
@ -25,11 +25,11 @@ public class InvoiceService {
|
||||||
/**
|
/**
|
||||||
* 231907-发票登记
|
* 231907-发票登记
|
||||||
*/
|
*/
|
||||||
public InvoiceInfoSaveApiResponse add(InvoiceInfoSaveApiRequest request) {
|
public InvoiceInfoSaveResponse add(InvoiceInfoSaveRequest request) {
|
||||||
String url = "/invoice/add";
|
String url = "/invoice/add";
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.addHeader(API_VERSION, V_2);
|
headers.addHeader(API_VERSION, V_2);
|
||||||
HttpResponse<InvoiceInfoSaveApiResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoSaveApiResponse.class);
|
HttpResponse<InvoiceInfoSaveResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoSaveResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
@ -56,33 +56,33 @@ public class InvoiceService {
|
||||||
/**
|
/**
|
||||||
* 231908-发票作废
|
* 231908-发票作废
|
||||||
*/
|
*/
|
||||||
public InvoiceInfoInvalidApiResponse invalid(InvoiceInfoInvalidApiRequest request) {
|
public InvoiceInfoInvalidResponse invalid(InvoiceInfoInvalidRequest request) {
|
||||||
String url = "/invoice/invalid";
|
String url = "/invoice/invalid";
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.addHeader(API_VERSION, V_2);
|
headers.addHeader(API_VERSION, V_2);
|
||||||
HttpResponse<InvoiceInfoInvalidApiResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoInvalidApiResponse.class);
|
HttpResponse<InvoiceInfoInvalidResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoInvalidResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 231909-发票查询
|
* 231909-发票查询
|
||||||
*/
|
*/
|
||||||
public InvoiceInfoQueryApiResponse query(InvoiceInfoQueryApiRequest request) {
|
public InvoiceInfoQueryResponse query(InvoiceInfoQueryRequest request) {
|
||||||
String url = "/invoice/query";
|
String url = "/invoice/query";
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.addHeader(API_VERSION, V_2);
|
headers.addHeader(API_VERSION, V_2);
|
||||||
HttpResponse<InvoiceInfoQueryApiResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoQueryApiResponse.class);
|
HttpResponse<InvoiceInfoQueryResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceInfoQueryResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 232109-发票结算明细查询
|
* 232109-发票结算明细查询
|
||||||
*/
|
*/
|
||||||
public InvoiceSettleQueryApiResponse settleQuery(InvoiceSettleQueryApiRequest request) {
|
public InvoiceSettleQueryResponse settleQuery(InvoiceSettleQueryRequest request) {
|
||||||
String url = "/invoice/settle-query";
|
String url = "/invoice/settle-query";
|
||||||
HttpHeaders headers = new HttpHeaders();
|
HttpHeaders headers = new HttpHeaders();
|
||||||
headers.addHeader(API_VERSION, V_2);
|
headers.addHeader(API_VERSION, V_2);
|
||||||
HttpResponse<InvoiceSettleQueryApiResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceSettleQueryApiResponse.class);
|
HttpResponse<InvoiceSettleQueryResponse> httpResponse = apiClient.post(url, headers, request.toJsonRequest(), InvoiceSettleQueryResponse.class);
|
||||||
return httpResponse.getServiceResponse();
|
return httpResponse.getServiceResponse();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ import java.util.List;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TransType("231908")
|
@TransType("231908")
|
||||||
public class InvoiceInfoInvalidApiRequest implements ApiRequest {
|
public class InvoiceInfoInvalidRequest implements ApiRequest {
|
||||||
/**
|
/**
|
||||||
* 渠道编号
|
* 渠道编号
|
||||||
*/
|
*/
|
||||||
|
|
@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class InvoiceInfoInvalidApiResponse implements ApiResponse {
|
public class InvoiceInfoInvalidResponse implements ApiResponse {
|
||||||
/**
|
/**
|
||||||
* 000000:表示成功
|
* 000000:表示成功
|
||||||
*/
|
*/
|
||||||
|
|
@ -15,7 +15,7 @@ import lombok.experimental.Accessors;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TransType("231909")
|
@TransType("231909")
|
||||||
public class InvoiceInfoQueryApiRequest implements PageApiRequest {
|
public class InvoiceInfoQueryRequest implements PageApiRequest {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 渠道编号
|
* 渠道编号
|
||||||
|
|
@ -17,7 +17,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class InvoiceInfoQueryApiResponse implements PageApiResponse {
|
public class InvoiceInfoQueryResponse implements PageApiResponse {
|
||||||
/**
|
/**
|
||||||
* 000000:表示成功
|
* 000000:表示成功
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@ import java.math.BigDecimal;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TransType("231907")
|
@TransType("231907")
|
||||||
public class InvoiceInfoSaveApiRequest implements ApiRequest {
|
public class InvoiceInfoSaveRequest implements ApiRequest {
|
||||||
/**
|
/**
|
||||||
* 渠道编号
|
* 渠道编号
|
||||||
*/
|
*/
|
||||||
|
|
@ -13,7 +13,7 @@ import lombok.experimental.Accessors;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class InvoiceInfoSaveApiResponse implements ApiResponse {
|
public class InvoiceInfoSaveResponse implements ApiResponse {
|
||||||
/**
|
/**
|
||||||
* 000000:表示成功
|
* 000000:表示成功
|
||||||
*/
|
*/
|
||||||
|
|
@ -15,7 +15,7 @@ import lombok.experimental.Accessors;
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
@TransType("232109")
|
@TransType("232109")
|
||||||
public class InvoiceSettleQueryApiRequest implements PageApiRequest {
|
public class InvoiceSettleQueryRequest implements PageApiRequest {
|
||||||
/**
|
/**
|
||||||
* 渠道编号
|
* 渠道编号
|
||||||
*/
|
*/
|
||||||
|
|
@ -18,7 +18,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
@Accessors(chain = true)
|
@Accessors(chain = true)
|
||||||
public class InvoiceSettleQueryApiResponse implements PageApiResponse {
|
public class InvoiceSettleQueryResponse implements PageApiResponse {
|
||||||
/**
|
/**
|
||||||
* 000000:表示成功
|
* 000000:表示成功
|
||||||
*/
|
*/
|
||||||
Loading…
Reference in New Issue