Class HttpRequestPaymentInfoPopulator
- java.lang.Object
-
- de.hybris.platform.ycommercewebservices.populator.AbstractHttpRequestDataPopulator
-
- de.hybris.platform.ycommercewebservices.populator.HttpRequestPaymentInfoPopulator
-
- All Implemented Interfaces:
ConfigurablePopulator<javax.servlet.http.HttpServletRequest,CCPaymentInfoData,PaymentInfoOption>
@Component("httpRequestPaymentInfoPopulator") public class HttpRequestPaymentInfoPopulator extends AbstractHttpRequestDataPopulator implements ConfigurablePopulator<javax.servlet.http.HttpServletRequest,CCPaymentInfoData,PaymentInfoOption>PopulatesCCPaymentInfoDatainstance from theHttpServletRequestparameters:
- accountHolderName
- cardNumber
- cardType
- expiryMonth
- expiryYear
- issueNumber
- startMonth
- startYear
- subscriptionId
- saved
- defaultPaymentInfo
PaymentInfoOption.BILLING_ADDRESS, it usesHttpRequestAddressDataPopulatorwith prefix 'billingAddress' to populate also the billing address data from http request request parameters.
-
-
Constructor Summary
Constructors Constructor Description HttpRequestPaymentInfoPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected HttpRequestAddressDataPopulatorgetAddressPopulator()voidpopulate(javax.servlet.http.HttpServletRequest request, CCPaymentInfoData target, java.util.Collection<PaymentInfoOption> options)Populate the target instance from the source instance.-
Methods inherited from class de.hybris.platform.ycommercewebservices.populator.AbstractHttpRequestDataPopulator
getRequestParameterValue, updateBooleanValueFromRequest, updateDoubleValueFromRequest, updateStringValueFromRequest
-
-
-
-
Method Detail
-
populate
public void populate(javax.servlet.http.HttpServletRequest request, CCPaymentInfoData target, java.util.Collection<PaymentInfoOption> options) throws ConversionExceptionDescription copied from interface:ConfigurablePopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfaceConfigurablePopulator<javax.servlet.http.HttpServletRequest,CCPaymentInfoData,PaymentInfoOption>- Parameters:
request- the source objecttarget- the target to filloptions- options used to control what data is populated- Throws:
ConversionException- if an error occurs
-
getAddressPopulator
protected HttpRequestAddressDataPopulator getAddressPopulator()
-
-