package org.mifos.api.accounts;

import java.math.BigDecimal;
import org.joda.time.LocalDate;

public class AccountPaymentParametersDTO {
    public final UserReferenceDTO userMakingPayment;
    public final AccountReferenceDTO account;
    public final BigDecimal paymentAmount;
    public final LocalDate paymentDate;
    public final LocalDate receiptDate;
    public final String receiptId;
    public final PaymentTypeDTO paymentType;
    public final String comment;

    public AccountPaymentParametersDTO(UserReferenceDTO userMakingPayment, AccountReferenceDTO account,
            BigDecimal paymentAmount, LocalDate paymentDate, PaymentTypeDTO paymentType, String comment) {
        this.userMakingPayment = userMakingPayment;
        this.account = account;
        this.paymentAmount = paymentAmount;
        this.paymentDate = paymentDate;
        this.paymentType = paymentType;
        this.receiptDate = null;
        this.receiptId = null;
        this.comment = comment;
    }

    public AccountPaymentParametersDTO(UserReferenceDTO userMakingPayment, AccountReferenceDTO account,
            BigDecimal paymentAmount, LocalDate paymentDate, LocalDate receiptDate, String receiptId,
            PaymentTypeDTO paymentType, String comment) {
        super();
        this.userMakingPayment = userMakingPayment;
        this.account = account;
        this.paymentAmount = paymentAmount;
        this.paymentDate = paymentDate;
        this.receiptDate = receiptDate;
        this.receiptId = receiptId;
        this.paymentType = paymentType;
        this.comment = comment;
    }

}

@@ -1,8 +1,775 @@
+/*%0A * Copyright (c) 2005-2009 Grameen Foundation USA%0A * All rights reserved.%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A * %0A *     http://www.apache.org/licenses/LICENSE-2.0%0A * %0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or%0A * implied. See the License for the specific language governing%0A * permissions and limitations under the License.%0A * %0A * See also http://www.apache.org/licenses/LICENSE-2.0.html for an%0A * explanation of the license and how it is applied.%0A */%0A%0A
 package 

use boilerplate Mifos licensing text from http://mifos.org/developers/wiki/MifosLicensing