Class HttpRequestPaymentInfoPopulator
java.lang.Object
de.hybris.platform.commercewebservices.core.populator.AbstractHttpRequestDataPopulator
de.hybris.platform.commercewebservices.core.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>
Populates
CCPaymentInfoData instance from the HttpServletRequest parameters:- accountHolderName
- cardNumber
- cardType
- expiryMonth
- expiryYear
- issueNumber
- startMonth
- startYear
- subscriptionId
- saved
- defaultPaymentInfo
If populator's options contains PaymentInfoOption.BILLING_ADDRESS, it uses
HttpRequestAddressDataPopulator with prefix 'billingAddress' to populate also the billing address data from
http request request parameters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HttpRequestAddressDataPopulatorvoidpopulate(javax.servlet.http.HttpServletRequest request, CCPaymentInfoData target, Collection<PaymentInfoOption> options) Populate the target instance from the source instance.Methods inherited from class de.hybris.platform.commercewebservices.core.populator.AbstractHttpRequestDataPopulator
getRequestParameterValue, updateBooleanValueFromRequest, updateDoubleValueFromRequest, updateStringValueFromRequest
-
Constructor Details
-
HttpRequestPaymentInfoPopulator
public HttpRequestPaymentInfoPopulator()
-
-
Method Details
-
populate
public void populate(javax.servlet.http.HttpServletRequest request, CCPaymentInfoData target, Collection<PaymentInfoOption> options) throws ConversionException Description 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
-