public class

CreateCouponMessageProcessor

extends DevkitBasedMessageProcessor
implements MessageProcessor OperationMetaDataEnabled
java.lang.Object
   ↳ org.mule.devkit.processor.ExpressionEvaluatorSupport
     ↳ org.mule.devkit.processor.DevkitBasedMessageProcessor
       ↳ com.wsl.modules.stripe.processors.CreateCouponMessageProcessor

Class Overview

CreateCouponMessageProcessor invokes the createCoupon(java.lang.String, java.lang.String, int, java.lang.String, int, int, int, java.lang.String, java.util.Map) method in StripeConnector. For each argument there is a field in this processor to match it. Before invoking the actual method the processor will evaluate and transform where possible to the expected argument type.

Summary

[Expand]
Inherited Constants
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
Fields
protected int _amountOffType
protected String _currencyType
protected int _durationInMonthsType
protected String _durationType
protected String _idType
protected int _maxRedemptionsType
protected Map<String, Object> _metadataType
protected int _percentOffType
protected String _redeemByType
protected Object amountOff
protected Object currency
protected Object duration
protected Object durationInMonths
protected Object id
protected Object maxRedemptions
protected Object metadata
protected Object percentOff
protected Object redeemBy
[Expand]
Inherited Fields
From class org.mule.devkit.processor.DevkitBasedMessageProcessor
Public Constructors
CreateCouponMessageProcessor(String operationName)
Public Methods
void dispose()
MuleEvent doProcess(MuleEvent event)
Invokes the MessageProcessor.
Result<MetaData> getGenericMetaData(MetaDataKey metaDataKey)
Result<MetaData> getInputMetaData()
Result<MetaData> getOutputMetaData(MetaData inputMetadata)
void initialise()
Obtains the expression manager from the Mule context and initialises the connector.
void setAmountOff(Object value)
Sets amountOff
void setCurrency(Object value)
Sets currency
void setDuration(Object value)
Sets duration
void setDurationInMonths(Object value)
Sets durationInMonths
void setId(Object value)
Sets id
void setMaxRedemptions(Object value)
Sets maxRedemptions
void setMetadata(Object value)
Sets metadata
void setPercentOff(Object value)
Sets percentOff
void setRedeemBy(Object value)
Sets redeemBy
void start()
void stop()
[Expand]
Inherited Methods
From class org.mule.devkit.processor.DevkitBasedMessageProcessor
From class org.mule.devkit.processor.ExpressionEvaluatorSupport
From class java.lang.Object
From interface org.mule.api.construct.FlowConstructAware
From interface org.mule.api.context.MuleContextAware
From interface org.mule.api.lifecycle.Disposable
From interface org.mule.api.lifecycle.Initialisable
From interface org.mule.api.lifecycle.Startable
From interface org.mule.api.lifecycle.Stoppable
From interface org.mule.api.processor.MessageProcessor
From interface org.mule.common.metadata.MetaDataDescriptor

Fields

protected int _amountOffType

protected String _currencyType

protected int _durationInMonthsType

protected String _durationType

protected String _idType

protected int _maxRedemptionsType

protected Map<String, Object> _metadataType

protected int _percentOffType

protected String _redeemByType

protected Object amountOff

protected Object currency

protected Object duration

protected Object durationInMonths

protected Object id

protected Object maxRedemptions

protected Object metadata

protected Object percentOff

protected Object redeemBy

Public Constructors

public CreateCouponMessageProcessor (String operationName)

Parameters
operationName

Public Methods

public void dispose ()

public MuleEvent doProcess (MuleEvent event)

Invokes the MessageProcessor.

Parameters
event MuleEvent to be processed
Throws
Exception

public Result<MetaData> getGenericMetaData (MetaDataKey metaDataKey)

Parameters
metaDataKey

public Result<MetaData> getInputMetaData ()

public Result<MetaData> getOutputMetaData (MetaData inputMetadata)

Parameters
inputMetadata

public void initialise ()

Obtains the expression manager from the Mule context and initialises the connector. If a target object has not been set already it will search the Mule registry for a default one.

Throws
InitialisationException

public void setAmountOff (Object value)

Sets amountOff

Parameters
value Value to set

public void setCurrency (Object value)

Sets currency

Parameters
value Value to set

public void setDuration (Object value)

Sets duration

Parameters
value Value to set

public void setDurationInMonths (Object value)

Sets durationInMonths

Parameters
value Value to set

public void setId (Object value)

Sets id

Parameters
value Value to set

public void setMaxRedemptions (Object value)

Sets maxRedemptions

Parameters
value Value to set

public void setMetadata (Object value)

Sets metadata

Parameters
value Value to set

public void setPercentOff (Object value)

Sets percentOff

Parameters
value Value to set

public void setRedeemBy (Object value)

Sets redeemBy

Parameters
value Value to set

public void start ()

Throws
MuleException

public void stop ()

Throws
MuleException