public static SecapiPayProfitsharingfinishResult secapiPayProfitsharingfinish(SecapiPayProfitsharingfinish profitsharingfinish,String key){
		Map<String,String> map = MapUtil.objectToMap(profitsharingfinish);
		String sign = SignatureUtil.generateSign(map,profitsharingfinish.getSign_type() == null? "HMAC-SHA256": profitsharingfinish.getSign_type(),key);
		profitsharingfinish.setSign(sign);
		String xml = XMLConverUtil.convertToXML(profitsharingfinish);
		HttpUriRequest httpUriRequest = RequestBuilder.post()
				.setHeader(xmlHeader)
				.setUri(baseURI() + "/secapi/pay/profitsharingfinish")
				.setEntity(new StringEntity(xml,Charset.forName("utf-8")))
				.build();
		return LocalHttpClient.keyStoreExecuteXmlResult(profitsharingfinish.getMch_id(), httpUriRequest,SecapiPayProfitsharingfinishResult.class, profitsharingfinish.getSign_type() == null? "HMAC-SHA256": profitsharingfinish.getSign_type(),key);
	}
public static SecapiPayProfitsharingfinishResult secapiPayProfitsharingfinish ( SecapiPayProfitsharingfinish profitsharingfinish , String key ) { Map < String , String > map = MapUtil . objectToMap ( profitsharingfinish ) ; String sign = SignatureUtil . generateSign ( map , profitsharingfinish . getSign_type ( ) == null ? "HMAC-SHA256" : profitsharingfinish . getSign_type ( ) , key ) ; profitsharingfinish . setSign ( sign ) ; String xml = XMLConverUtil . convertToXML ( profitsharingfinish ) ; HttpUriRequest httpUriRequest = RequestBuilder . post ( ) . setHeader ( xmlHeader ) . setUri ( baseURI ( ) + "/secapi/pay/profitsharingfinish" ) . setEntity ( new StringEntity ( xml , Charset . forName ( "utf-8" ) ) ) . build ( ) ; return LocalHttpClient . keyStoreExecuteXmlResult ( profitsharingfinish . getMch_id ( ) , httpUriRequest , SecapiPayProfitsharingfinishResult . class , profitsharingfinish . getSign_type ( ) == null ? "HMAC-SHA256" : profitsharingfinish . getSign_type ( ) , key ) ; }
分账-完结分账
@since 2.8.26
@param profitsharingfinish profitsharingfinish
@param key key
@return SecapiPayProfitsharingfinishResult