Class 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>
     
    • 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
      • 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