stopApplyingFeature()

void stopApplyingFeature(string subscriptionFeatureId, date endDate)

This method changes or removes the date that Smile stops applying a feature to a subscription.

Use this method to change the length of time the feature is applied to the subscription, or to apply the feature to the subscription indefinitely.

Parameters

subscriptionFeatureId
Format: string
Purpose: Specifies the string returned by the applyFeature() method that uniquely identifies the subscription, feature and length of time the feature is applied.
Note: Smile returns a different subscriptionFeatureId each time you call applyFeature().
endDate
Format: date
Purpose: Specifies the date to stop applying the feature. Smile stops applying the feature at midnight at the start of the specified day.
If you specify null, Smile removes the end date and applies the feature indefinitely.

Results

This method does not return any output, and changes the date that Smile stops applying the feature.

Smile emits the SubscriptionFeaturesChanged message when Smile stops applying the feature.

Faults

NoSuchItemException

This fault is returned when the specified subscriptionFeatureId does not exist.

InvalidRequestException

This fault is returned when the subscriptionFeatureId is not specified.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.StopApplyingFeature 
 subscriptionFeatureId [endDate]
subscriptionFeatureId
Purpose: Specifies the ID of the feature for which to specify an end date.
endDate
Purpose: (Optional) Specifies the date to stop applying the feature.
Note: For more information about the Java client and the options it accepts, see Java client syntax.