public class DefaultOrderRequestGenerator extends java.lang.Object implements OrderRequestGenerator
Created by Philip Vendil on 2018-10-29.
Constructor and Description |
---|
DefaultOrderRequestGenerator() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<PaymentOption> |
convertPaymentOptions(PaymentRequired paymentRequired)
Help method to convert all PaymentRequired payment options into value objects.
|
OrderRequest |
generate(PaymentRequired paymentRequired,
CachableHttpServletRequest request)
Default Magnitude Calculator takes the parameter units from the
PaymentRequired annotation (default 1)
|
public OrderRequest generate(PaymentRequired paymentRequired, CachableHttpServletRequest request) throws InternalErrorException
generate
in interface OrderRequestGenerator
paymentRequired
- the related annotation.request
- the HTTP request related to the call.InternalErrorException
- if problem occurred generated order request data due to internal miss configuration.protected java.util.List<PaymentOption> convertPaymentOptions(PaymentRequired paymentRequired)
paymentRequired
- the related annotation.