getCurrentSubscriptionContract()

SubscriptionContract getCurrentSubscriptionContract(string usn)

This method returns the current contract for a subscription.

The method is equivalent to calling getActiveSubscriptionContract() providing the current time stamp to the when parameter.

Parameters

usn
Format: string
Purpose: Specifies the USN of the subscription to query.

Results

This method returns a SubscriptionContract XML document containing information about the current contract for a given subscription.

There are no messages defined by this method.

Example: A returned SubscriptionContract XML document

This example shows a SubscriptionContract XML document containing information about the current contract for subscription 2142422589.

<SubscriptionContract xmlns="http://xml.inomial.com/smile/2.xsd" xmlns="http://ws.inomial.com/smile.2">
  <SubscriptionContractId>476</SubscriptionContractId>
  <Contract key="399">12 Month</Contract>
  <USN>2142422589</USN>
  <EarlyTerminationCharge currency="AUD" formatted="$0.00">0</EarlyTerminationCharge>
  <StartDate>2014-08-28+10:00</StartDate>
  <EndDate>2015-08-27+10:00</EndDate>
  <ContractValue currency="AUD" formatted="$360.00">360.000000</ContractValue>
  <MinimumTerminationCharge currency="AUD" formatted="$0.00">0</MinimumTerminationCharge>
  <MaximumTerminationCharge currency="AUD" formatted="$0.00">0</MaximumTerminationCharge>
</SubscriptionContract>

Faults

NoSuchItemException

This fault is returned when the provided USN does not exist.

Java client syntax

java -cp build/smilewsv2-client.jar [options] com.inomial.smile.client.v2.examples.GetCurrentSubscriptionContract usn
usn
Purpose: Specifies the USN of the subscription to query.
Note: For more information about the Java client and the options it accepts, see Java client syntax.