Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2014 Groupon, Inc
  *
  * Groupon licenses this file to you under the Apache License, version 2.0
  * (the "License"); you may not use this file except in compliance with the
  * License.  You may obtain a copy of the License at:
  *
  *    http://www.apache.org/licenses/LICENSE-2.0
  *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
 * License for the specific language governing permissions and limitations
 * under the License.
 */
package org.killbill.billing.payment.api;
public interface DirectPayment extends Entity {

    

Returns:
the account id
    UUID getAccountId();

    

Returns:
the payment method id
    UUID getPaymentMethodId();

    

Returns:
the payment number
    Integer getPaymentNumber();

    

Returns:
the external key
    String getExternalKey();

    

Returns:
the authorized amount
    BigDecimal getAuthAmount();

    

Returns:
the captured amount
    BigDecimal getCapturedAmount();

    

Returns:
the purchased amount
    BigDecimal getPurchasedAmount();

    

Returns:
the credited amount
    BigDecimal getCreditedAmount();

    

Returns:
the refunded amount
    BigDecimal getRefundedAmount();

    

Returns:
true if there was a void operation following an authorization
    Boolean isAuthVoided();

    

Returns:
the currency associated with that payment
    Currency getCurrency();

    

Returns:
the list of attempts on that payment
New to GrepCode? Check out our FAQ X