Class DefaultAlipayHandleResponseStrategy
- java.lang.Object
-
- de.hybris.platform.chinesepspalipayservices.strategies.impl.DefaultAlipayHandleResponseStrategy
-
- All Implemented Interfaces:
AlipayHandleResponseStrategy
public class DefaultAlipayHandleResponseStrategy extends java.lang.Object implements AlipayHandleResponseStrategy
-
-
Constructor Summary
Constructors Constructor Description DefaultAlipayHandleResponseStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcamelCaseFormatter(java.util.Map<java.lang.String,java.lang.String> responseMap, java.lang.Object directRawData)Formats the response from alipay to camelCaseprotected java.util.Map<java.lang.String,java.lang.String>convertKey2CamelCase(java.util.Map<java.lang.String,java.lang.String> snakeCaseMap)java.util.List<AlipayRefundData>getAlipayRefundDataList(AlipayRefundNotification alipayRefundNotification)Gets refund data list from refund notification
-
-
-
Method Detail
-
camelCaseFormatter
public java.lang.Object camelCaseFormatter(java.util.Map<java.lang.String,java.lang.String> responseMap, java.lang.Object directRawData)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 java.util.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
protected java.util.Map<java.lang.String,java.lang.String> convertKey2CamelCase(java.util.Map<java.lang.String,java.lang.String> snakeCaseMap)
-
-