getSimpleRecurringCharges()

SimpleRecurringCharges getSimpleRecurringCharges(string usn)

This method returns a list of recurring charges for a specified account or subscription.

Parameters

usn
Format: string
Purpose: Specifies the account or subscription USN.

Results

This method returns a list of recurring charges for a specified account or subscription USN.

There are no messages defined by this method.

Example: A returned SimpleRecurringCharges XML document

This example shows a SimpleRecurringCharges XML document containing recurring charges that belongs to account USN 2142420989, which is given as a parameter.

<SimpleRecurringCharges xmlns="http://xml.inomial.com/smile/2.xsd" xmlns="http://ws.inomial.com/smile.2">
  <USN>2142420989</USN>
  <SimpleRecurringCharge>
    <RecurringCharge id="476">
      <ChargeQuantity>1</ChargeQuantity>
      <Frequency type="Rating Periods">1</Frequency>
      <WhenToCharge>In Advance</WhenToCharge>
      <AdvancePeriods>1</AdvancePeriods>
      <ProRataAction>Pro-Rata</ProRataAction>
      <MinProRataDays>0</MinProRataDays>
      <LineItemDescription>
        <ItemCode>hfp</ItemCode>
        <Name>Handsfree wireless telephone handset</Name>
        <UnitSize>1</UnitSize>
        <ChargeGst>true</ChargeGst>
        <Rate formatted="$75.00" currency="AUD">75.00000</Rate>
        <DisplayRate>$82.50</DisplayRate>
      </LineItemDescription>
      <ValidFrom>2014-09-10+10:00</ValidFrom>
    </RecurringCharge>
    <Rate formatted="$75.00" currency="AUD">75.00000</Rate>
    <DisplayRate>$82.50</DisplayRate>
  </SimpleRecurringCharge>
  <SimpleRecurringCharge>
    <RecurringCharge id="429">
      <ChargeQuantity>1</ChargeQuantity>
      <Frequency type="Rating Periods">1</Frequency>
      <WhenToCharge>In Advance</WhenToCharge>
      <AdvancePeriods>1</AdvancePeriods>
      <ProRataAction>Pro-Rata</ProRataAction>
      <MinProRataDays>0</MinProRataDays>
      <LineItemDescription>
        <ItemCode>consult</ItemCode>
        <Name>Consulting and support services</Name>
        <UnitSize>1</UnitSize>
        <ChargeGst>true</ChargeGst>
        <Rate formatted="$90.91" currency="AUD">90.90909</Rate>
        <DisplayRate>$100/hr</DisplayRate>
      </LineItemDescription>
      <ValidFrom>2014-09-01+10:00</ValidFrom>
    </RecurringCharge>
    <Rate formatted="$90.91" currency="AUD">90.90909</Rate>
    <DisplayRate>$100/hr</DisplayRate>
  </SimpleRecurringCharge>
</SimpleRecurringCharges>

Faults

NoSuchItemException

This fault is returned when the specified USN does not match an account or subscription, or the specified <LineItemDescription> in a recurring charge does not match an item description.

Java client syntax

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