net.authorize.api.contract.v1
Class ProfileTransAmountType

java.lang.Object
  extended by net.authorize.api.contract.v1.ProfileTransAmountType
Direct Known Subclasses:
ProfileTransOrderType, ProfileTransPriorAuthCaptureType, ProfileTransRefundType

public class ProfileTransAmountType
extends Object

Java class for profileTransAmountType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="profileTransAmountType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="amount">
           <simpleType>
             <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
               <minInclusive value="0.01"/>
               <fractionDigits value="4"/>
             </restriction>
           </simpleType>
         </element>
         <element name="tax" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/>
         <element name="shipping" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/>
         <element name="duty" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType" minOccurs="0"/>
         <element name="lineItems" type="{AnetApi/xml/v1/schema/AnetApiSchema.xsd}lineItemType" maxOccurs="30" minOccurs="0"/>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  BigDecimal amount
           
protected  ExtendedAmountType duty
           
protected  List<LineItemType> lineItems
           
protected  ExtendedAmountType shipping
           
protected  ExtendedAmountType tax
           
 
Constructor Summary
ProfileTransAmountType()
           
 
Method Summary
 BigDecimal getAmount()
          Gets the value of the amount property.
 ExtendedAmountType getDuty()
          Gets the value of the duty property.
 List<LineItemType> getLineItems()
          Gets the value of the lineItems property.
 ExtendedAmountType getShipping()
          Gets the value of the shipping property.
 ExtendedAmountType getTax()
          Gets the value of the tax property.
 void setAmount(BigDecimal value)
          Sets the value of the amount property.
 void setDuty(ExtendedAmountType value)
          Sets the value of the duty property.
 void setShipping(ExtendedAmountType value)
          Sets the value of the shipping property.
 void setTax(ExtendedAmountType value)
          Sets the value of the tax property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

amount

protected BigDecimal amount

tax

protected ExtendedAmountType tax

shipping

protected ExtendedAmountType shipping

duty

protected ExtendedAmountType duty

lineItems

protected List<LineItemType> lineItems
Constructor Detail

ProfileTransAmountType

public ProfileTransAmountType()
Method Detail

getAmount

public BigDecimal getAmount()
Gets the value of the amount property.

Returns:
possible object is BigDecimal

setAmount

public void setAmount(BigDecimal value)
Sets the value of the amount property.

Parameters:
value - allowed object is BigDecimal

getTax

public ExtendedAmountType getTax()
Gets the value of the tax property.

Returns:
possible object is ExtendedAmountType

setTax

public void setTax(ExtendedAmountType value)
Sets the value of the tax property.

Parameters:
value - allowed object is ExtendedAmountType

getShipping

public ExtendedAmountType getShipping()
Gets the value of the shipping property.

Returns:
possible object is ExtendedAmountType

setShipping

public void setShipping(ExtendedAmountType value)
Sets the value of the shipping property.

Parameters:
value - allowed object is ExtendedAmountType

getDuty

public ExtendedAmountType getDuty()
Gets the value of the duty property.

Returns:
possible object is ExtendedAmountType

setDuty

public void setDuty(ExtendedAmountType value)
Sets the value of the duty property.

Parameters:
value - allowed object is ExtendedAmountType

getLineItems

public List<LineItemType> getLineItems()
Gets the value of the lineItems property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the lineItems property.

For example, to add a new item, do as follows:

    getLineItems().add(newItem);
 

Objects of the following type(s) are allowed in the list LineItemType



Copyright © 2014. All Rights Reserved.