<RateV4Request USERID="{{userID}}">{{#if revision}}
  <Revision>{{revision}}</Revision>{{/if}}{{#each package}}
  <Package ID="{{@index}}">
    <Service>{{this.service}}</Service>{{#if this.firstClassMailType}}
    <FirstClassMailType>{{this.firstClassMailType}}</FirstClassMailType>{{/if}}
    <ZipOrigination>{{this.zipOrigination}}</ZipOrigination>
    <ZipDestination>{{this.zipDestination}}</ZipDestination>
    <Pounds>{{this.pounds}}</Pounds>
    <Ounces>{{this.ounces}}</Ounces>
    <Container>{{this.container}}</Container>
    <Size>{{this.size}}</Size>{{#if this.width}}
    <Width>{{this.width}}</Width>{{/if}}{{#if this.length}}
    <Length>{{this.length}}</Length>{{/if}}{{#if this.height}}
    <Height>{{this.height}}</Height>{{/if}}{{#if this.girth}}
    <Girth>{{this.girth}}</Girth>{{/if}}{{#if this.value}}
    <Value>{{this.value}}</Value>{{/if}}{{#if this.amountToCollect}}
    <AmountToCollect>{{this.amountToCollect}}</AmountToCollect>{{/if}}{{#if this.specialServices}}
    <SpecialServices>{{#each this.specialServices}}
      <SpecialService>{{this}}</SpecialService>{{/each}}
    </SpecialServices>{{/if}}{{#if this.content}}
    <Content>{{#if this.content.contentType}}
       <ContentType>{{this.content.contentType}}</ContentType>{{/if}}{{#if this.content.contentDescription}}
       <ContentDescription>{{this.content.contentDescription}}</ContentDescription>{{/if}}
    </Content>{{/if}}{{#if this.groundOnly}}
    <GroundOnly>{{this.groundOnly}}</GroundOnly>{{/if}}{{#if this.sortBy}}
    <SortBy>{{this.sortBy}}</SortBy>{{/if}}{{#if this.machinable}}
    <Machinable>{{this.machinable}}</Machinable>{{/if}}{{#if this.returnLocations}}
    <ReturnLocations>{{this.returnLocations}}</ReturnLocations>{{/if}}{{#if this.returnServiceInfo}}
    <ReturnServiceInfo>{{this.returnServiceInfo}}</ReturnServiceInfo>{{/if}}{{#if this.dropOffTime}}
    <DropOffTime>{{this.dropOffTime}}</DropOffTime>{{/if}}{{#if this.shipDate}}
    <ShipDate Option="{{this.shipDate.option}}">{{this.shipDate.shipDate}}</ShipDate>{{/if}}
  </Package>{{/each}}
</RateV4Request>