Subversion Repositories SmartDukaan

Rev

Rev 4141 | Rev 4600 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4141 Rev 4421
Line 139... Line 139...
139
     */
139
     */
140
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
140
    public long createRefund(long orderId, long merchantTxnId, double amount) throws PaymentException, org.apache.thrift.TException;
141
 
141
 
142
    /**
142
    /**
143
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
143
     * Capture the payment for the given merchant transaction id. It processes the last payment for the given
144
     * transaction. If the capture attempt failed, the payment is marked as failed.
144
     * transaction. If the capture attempt failed, the payment is marked as failed. PaymentException with error
-
 
145
     * code 104 is	thrown in case no payments are found for the transaction id passed.
-
 
146
     * PaymentException is also thrown with error code 106 in case capture was not possible due to connection
-
 
147
     * issue. Here, we	payment also gets updated to CAPTURE_INPROCESS state
145
     * 
148
     * 
146
     * @param merchantTxnId
149
     * @param merchantTxnId
147
     */
150
     */
148
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
151
    public boolean capturePayment(long merchantTxnId) throws PaymentException, org.apache.thrift.TException;
149
 
152
 
Line 2170... Line 2173...
2170
      }
2173
      }
2171
    }
2174
    }
2172
 
2175
 
2173
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2176
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2174
      try {
2177
      try {
2175
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
2176
        __isset_bit_vector = new BitSet(1);
-
 
2177
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2178
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2178
      } catch (org.apache.thrift.TException te) {
2179
      } catch (org.apache.thrift.TException te) {
2179
        throw new java.io.IOException(te);
2180
        throw new java.io.IOException(te);
2180
      }
2181
      }
2181
    }
2182
    }