Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Copyright 2010-2013 Ning, Inc.
  *
  * Ning 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 com.ning.billing.payment.api;
public interface Payment extends Entity {

    

Returns:
the account id
    UUID getAccountId();

    

Returns:
the invoice id
    UUID getInvoiceId();

    

Returns:
the payment method id
    UUID getPaymentMethodId();

    

Returns:
the payment number
    Integer getPaymentNumber();

    

Returns:
the amount that needs to be paid
    BigDecimal getAmount();

    

Returns:
the paid amount
    BigDecimal getPaidAmount();

    
If the payment is successful, this date is the date of payment, otherwise this is the date of the last attempt

Returns:
the effective date of the payment
    DateTime getEffectiveDate();

    

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

    

Returns:
the payment status
    PaymentStatus getPaymentStatus();

    

Returns:
the list of attempts on that payment
    List<PaymentAttemptgetAttempts();

    
This will only be filled when the call requires the detail from the plugin

Returns:
the addtional info from the plugin
New to GrepCode? Check out our FAQ X