public interface PaymentOptionsStrategy<O extends Order> extends Strategy
Order
Modifier and Type | Method and Description |
---|---|
PaymentOption |
getDefaultPaymentOption(O o)
Get default
PaymentOption |
List<PaymentMethod> |
getPaymentMethods(O o)
Get a List of possible
PaymentMethod s for the Order of a user |
List<PaymentOption> |
getPaymentOptions(O o)
Get a List of possible
PaymentOption s for the Order of a user |
getVersion
List<PaymentMethod> getPaymentMethods(O o) throws Exception
PaymentMethod
s for the Order of a usero
- as OrderPaymentMethod
existsException;
- No PaymentMethod
exists and the cause why there was no method availableException
List<PaymentOption> getPaymentOptions(O o) throws Exception
PaymentOption
s for the Order of a usero
- as OrderPaymentMethod
existsException;
- No PaymentOption
exists and the cause why there was no method availableException
PaymentOption getDefaultPaymentOption(O o) throws Exception
PaymentOption
o
- as OrderPaymentMethod
existsException.
- implementation dependent. Can also mean no method existsException
Copyright © 2018. All rights reserved.