Package org.cyclos.impl.utils.sms
Class PaymentSmsOperation
- java.lang.Object
-
- org.cyclos.impl.utils.sms.BaseSmsOperation
-
- org.cyclos.impl.utils.sms.PaymentSmsOperation
-
- All Implemented Interfaces:
SmsOperation
public class PaymentSmsOperation extends BaseSmsOperation
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.impl.utils.sms.BaseSmsOperation
BaseSmsOperation.BaseError
-
-
Field Summary
Fields Modifier and Type Field Description protected PaymentServicepaymentService-
Fields inherited from class org.cyclos.impl.utils.sms.BaseSmsOperation
accountHandler, agreementLogService, configurationHandler, conversionHandler, dataTranslationHandler, entityManagerHandler, invokerHandler, outboundSmsHandler, passwordHandler, profileFieldHandler, translationHandler, userLocatorHandler
-
-
Constructor Summary
Constructors Constructor Description PaymentSmsOperation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckParametersCount(SmsOperationConfiguration operationConfiguration, List<String> parameters)This method must be implemented to check the minimum and maximum expected parametersprotected voiddoExecute(SmsOperationConfiguration operationConfiguration, MobilePhone phone, InboundSmsData sms, SmsParameterProcessor processor)protected List<String>getHelpComponents(SmsOperationConfiguration operationConfiguration)static voidhandleTransferException(AccountOwner accountOwner, BigDecimal paymentAmount, TransferException transferException, FormatterImpl formatter, PaymentTransferType paymentType)-
Methods inherited from class org.cyclos.impl.utils.sms.BaseSmsOperation
execute, formatShort, getFormatter, getHelp, getLongestAlias, getOperationExecution, getSessionData, handleError, message, sendEvenIfDisabled, sendResponse, sendToUnregistered
-
-
-
-
Field Detail
-
paymentService
@Autowired @Security protected PaymentService paymentService
-
-
Method Detail
-
handleTransferException
public static void handleTransferException(AccountOwner accountOwner, BigDecimal paymentAmount, TransferException transferException, FormatterImpl formatter, PaymentTransferType paymentType)
-
checkParametersCount
protected void checkParametersCount(SmsOperationConfiguration operationConfiguration, List<String> parameters) throws SmsOperationException
Description copied from class:BaseSmsOperationThis method must be implemented to check the minimum and maximum expected parameters- Specified by:
checkParametersCountin classBaseSmsOperation- Throws:
SmsOperationException
-
doExecute
protected void doExecute(SmsOperationConfiguration operationConfiguration, MobilePhone phone, InboundSmsData sms, SmsParameterProcessor processor) throws SmsOperationException
- Specified by:
doExecutein classBaseSmsOperation- Throws:
SmsOperationException
-
getHelpComponents
protected List<String> getHelpComponents(SmsOperationConfiguration operationConfiguration)
- Specified by:
getHelpComponentsin classBaseSmsOperation
-
-