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
- fromTimestamp
- Format: dateTime
- comment
- Format: string
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
InvalidRequestExceptionThis fault is returned when the specified USN is an account, or a subscription that cannot be resumed.
NoSuchItemExceptionThis fault is returned when the specified USN is not an active subscription. An active subscription is provisioned and is not closed.
SuspendExceptionThis 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
- comment
- Purpose: (Optional) Explains why the subscription was suspended.