Class DefaultAlipayHandleResponseStrategy
java.lang.Object
de.hybris.platform.chinesepspalipayservices.strategies.impl.DefaultAlipayHandleResponseStrategy
- All Implemented Interfaces:
AlipayHandleResponseStrategy
public class DefaultAlipayHandleResponseStrategy
extends Object
implements AlipayHandleResponseStrategy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncamelCaseFormatter(Map<String, String> responseMap, Object directRawData) Formats the response from alipay to camelCaseconvertKey2CamelCase(Map<String, String> snakeCaseMap) getAlipayRefundDataList(AlipayRefundNotification alipayRefundNotification) Gets refund data list from refund notification
-
Constructor Details
-
DefaultAlipayHandleResponseStrategy
public DefaultAlipayHandleResponseStrategy()
-
-
Method Details
-
camelCaseFormatter
Description copied from interface:AlipayHandleResponseStrategyFormats the response from alipay to camelCase- Specified by:
camelCaseFormatterin interfaceAlipayHandleResponseStrategy- Parameters:
responseMap- original response map from http responsedirectRawData- target response POJO data whose properties are camel cased- Returns:
- object response POJO in camel case
-
getAlipayRefundDataList
public List<AlipayRefundData> getAlipayRefundDataList(AlipayRefundNotification alipayRefundNotification) Description copied from interface:AlipayHandleResponseStrategyGets refund data list from refund notification- Specified by:
getAlipayRefundDataListin interfaceAlipayHandleResponseStrategy- Parameters:
alipayRefundNotification- alipay refund notification- Returns:
- list of all refund data
AlipayRefundData
-
convertKey2CamelCase
-