resume()

void resume(string usn, date fromTimestamp, string comment)

This method reinstates a suspended subscription's access to a service and re-activates all usage charges and recurring charges.

You can call this method at any point in the subscription lifecycle after the subscription is activated and before it is closed. To suspend a subscription for a period of time in advance, call suspend() and resume() before the suspension date.

Parameters

usn
Format: string
Purpose: Specifies the USN of the subscription to resume.
fromTimestamp
Format: dateTime
Purpose: Specifies the date from which the subscription is resumed.
comment
Format: string
Purpose: (Optional) Explains why the subscription was resumed. Smile stores the comment in the event log.

Results

This method does not return any output. Smile resumes the subscription at the specified time.

Smile emits the SubscriptionResumed message after the subscription is resumed.

Faults

InvalidRequestException

This fault is returned when the specified USN is an account, or a subscription that cannot be resumed.

NoSuchItemException

This fault is returned when the specified USN is not an active subscription. An active subscription is provisioned and is not closed.

SuspendException

This fault is returned when the subscription cannot be resumed, or the caller does not have permission to resume the subscription. You cannot resume a subscription that is not suspended.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.ResumeSubscription usn timestamp [comment]
usn
Purpose: Specifies the USN of the subscription to resume.
timestamp
Format: dateTime
Purpose: Specifies the date from which the subscription is suspended.
comment
Purpose: (Optional) Explains why the subscription was suspended.
Note: For more information about the Java client and the options it accepts, see Java client syntax.