Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.jibx.schema.org.opentravel._2012B.cruise;
  
Details of payment. 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="PaymentResponseType">
   <xs:complexContent>
     <xs:extension base="ns:PaymentFormType">
       <xs:sequence>
         <xs:element name="PaymentAmount" minOccurs="0">
           <!-- Reference to inner class PaymentAmount -->
         </xs:element>
         <xs:element type="ns:UniqueID_Type" name="PaymentReferenceID" minOccurs="0"/>
         <xs:element type="ns:ErrorType" name="Error" minOccurs="0"/>
       </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>
 
 
 public class PaymentResponse extends PaymentForm
 {
     private PaymentAmount paymentAmount;
     private UniqueID paymentReferenceID;
     private _Error error;

    
Get the 'PaymentAmount' element value.

Returns:
value
 
     public PaymentAmount getPaymentAmount() {
         return ;
     }

    
Set the 'PaymentAmount' element value.

Parameters:
paymentAmount
 
     public void setPaymentAmount(PaymentAmount paymentAmount) {
         this. = paymentAmount;
     }

    
Get the 'PaymentReferenceID' element value.

Returns:
value
 
     public UniqueID getPaymentReferenceID() {
         return ;
     }

    
Set the 'PaymentReferenceID' element value.

Parameters:
paymentReferenceID
 
     public void setPaymentReferenceID(UniqueID paymentReferenceID) {
         this. = paymentReferenceID;
     }

    
Get the 'Error' element value.

Returns:
value
 
     public _Error getError() {
         return ;
     }

    
Set the 'Error' element value.

Parameters:
error
 
     public void setError(_Error error) {
         this. = error;
     }
    
Schema fragment(s) for this class:
 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="PaymentAmount" minOccurs="0">
   <xs:complexType>
     <xs:attributeGroup ref="ns:CurrencyAmountGroup"/>
     <xs:attribute type="xs:string" use="optional" name="ApprovalCode"/>
   </xs:complexType>
 </xs:element>
 
 
     public static class PaymentAmount
    {
        private CurrencyAmountGroup currencyAmountGroup;
        private String approvalCode;

        
Get the 'CurrencyAmountGroup' attributeGroup value.

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

        
Set the 'CurrencyAmountGroup' attributeGroup value.

Parameters:
currencyAmountGroup
        public void setCurrencyAmountGroup(
                CurrencyAmountGroup currencyAmountGroup) {
            this. = currencyAmountGroup;
        }

        
Get the 'ApprovalCode' attribute value. The approval code returned as part of an authorization process.

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

        
Set the 'ApprovalCode' attribute value. The approval code returned as part of an authorization process.

Parameters:
approvalCode
        public void setApprovalCode(String approvalCode) {
            this. = approvalCode;
        }
    }
New to GrepCode? Check out our FAQ X