Class Name

atg.commerce.claimable.GiftCertificateAmountAvailable

Component(s)

/atg/commerce/claimable/GiftCertificateAmountAvailable

The GiftCertificateAmountAvailable servlet bean allows you to see how much of the gift certificate amount remains after the current purchase.

Input Parameters

usedAmount (Required)
The amount that is to be used on the gift certificate.

giftCertificateNumber (Required)
The gift certificate’s claim code.

Output

amountAvailable
The amount remaining on the gift certificate after deducting the usedAmount.

Open Parameters

output
The open parameter is always rendered.

Example

The following code example demonstrates how to use the GiftCertificateAmountAvailable droplet to to display the amount remaining on a user’s gift certificate.

<dsp:droplet name="GiftCertificateAmountAvailable">
  <dsp:param name="giftCertificateNumber"
param="paymentGroup.giftCertificateNumber"/>
  <dsp:oparam name="output">
    <dt>
      <fmt:message key="common.remainingAmount"/><fmt:message
key="common.labelSeparator"/>
    </dt>
    <dd>
      <dsp:getvalueof var="amountRemaining" vartype="java.lang.Double"
param="amountAvailable"/>
      <fmt:formatNumber value="${amountRemaining}" type="currency"
currencyCode="${currencyCodeVar}"/>
    </dd>
  </dsp:oparam>
</dsp:droplet>

Copyright © 1997, 2012 Oracle and/or its affiliates. All rights reserved. Legal Notices