Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.pkg;
  
A monetary transaction (credit or debit) against a reservation Schema fragment(s) for this class:
 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TransactionType">
   <xs:sequence>
     <xs:element name="Amount">
       <xs:complexType>
         <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
       </xs:complexType>
     </xs:element>
   </xs:sequence>
   <xs:attribute use="required" name="Type">
     <xs:simpleType>
       <!-- Reference to inner class Type -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute use="optional" name="CreditDebitInd">
     <xs:simpleType>
       <!-- Reference to inner class CreditDebitInd -->
     </xs:simpleType>
   </xs:attribute>
   <xs:attribute type="xs:dateTime" use="required" name="PostingDateTime"/>
   <xs:attribute type="xs:string" use="optional" name="BatchNmbr"/>
   <xs:attribute type="xs:string" use="optional" name="Comment"/>
 </xs:complexType>
 
 
 public class Transaction
 {
     private CurrencyAmountGroup amount;
     private Type type;
     private CreditDebitInd creditDebitInd;
     private DateTime postingDateTime;
     private String batchNmbr;
     private String comment;

    
Get the 'CurrencyAmountGroup' attributeGroup value. The amount recorded against this transaction item.

Returns:
value
 
     public CurrencyAmountGroup getAmount() {
         return ;
     }

    
Set the 'CurrencyAmountGroup' attributeGroup value. The amount recorded against this transaction item.

Parameters:
amount
 
     public void setAmount(CurrencyAmountGroup amount) {
         this. = amount;
     }

    
Get the 'Type' attribute value. Specifies whether the transaction is a receipt or a refund.

Returns:
value
 
     public Type getType() {
         return ;
     }

    
Set the 'Type' attribute value. Specifies whether the transaction is a receipt or a refund.

Parameters:
type
 
     public void setType(Type type) {
         this. = type;
     }

    
Get the 'CreditDebitInd' attribute value. Specifies whether a transaction is a credit or a debit. <LegacyDefaultValue>Credit</LegacyDefaultValue>

Returns:
value
 
     public CreditDebitInd getCreditDebitInd() {
         return ;
     }

    
Set the 'CreditDebitInd' attribute value. Specifies whether a transaction is a credit or a debit. <LegacyDefaultValue>Credit</LegacyDefaultValue>

Parameters:
creditDebitInd
 
     public void setCreditDebitInd(CreditDebitInd creditDebitInd) {
        this. = creditDebitInd;
    }

    
Get the 'PostingDateTime' attribute value. Provides the date and time that the transaction was posted to the relevant accounting ledger.

Returns:
value
    public DateTime getPostingDateTime() {
        return ;
    }

    
Set the 'PostingDateTime' attribute value. Provides the date and time that the transaction was posted to the relevant accounting ledger.

Parameters:
postingDateTime
    public void setPostingDateTime(DateTime postingDateTime) {
        this. = postingDateTime;
    }

    
Get the 'BatchNmbr' attribute value. Records the batch number assigened to the ledger posting.

Returns:
value
    public String getBatchNmbr() {
        return ;
    }

    
Set the 'BatchNmbr' attribute value. Records the batch number assigened to the ledger posting.

Parameters:
batchNmbr
    public void setBatchNmbr(String batchNmbr) {
        this. = batchNmbr;
    }

    
Get the 'Comment' attribute value. A comment about this transaction.

Returns:
value
    public String getComment() {
        return ;
    }

    
Set the 'Comment' attribute value. A comment about this transaction.

Parameters:
comment
    public void setComment(String comment) {
        this. = comment;
    }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Receipt"/>
     <xs:enumeration value="Refund"/>
   </xs:restriction>
 </xs:simpleType>
 
    public static enum Type {
        RECEIPT("Receipt"), REFUND("Refund");
        private final String value;
        private Type(String value) {
            this. = value;
        }
        public String xmlValue() {
            return ;
        }
        public static Type convert(String value) {
            for (Type inst : values()) {
                if (inst.xmlValue().equals(value)) {
                    return inst;
                }
            }
            return null;
        }
    }
    
Schema fragment(s) for this class:
 <xs:simpleType xmlns:xs="http://www.w3.org/2001/XMLSchema">
   <xs:restriction base="xs:string">
     <xs:enumeration value="Credit"/>
     <xs:enumeration value="Debit"/>
   </xs:restriction>
 </xs:simpleType>
 
    public static enum CreditDebitInd {
        CREDIT("Credit"), DEBIT("Debit");
        private final String value;
        private CreditDebitInd(String value) {
            this. = value;
        }
        public String xmlValue() {
            return ;
        }
        public static CreditDebitInd convert(String value) {
            for (CreditDebitInd inst : values()) {
                if (inst.xmlValue().equals(value)) {
                    return inst;
                }
            }
            return null;
        }
    }
New to GrepCode? Check out our FAQ X