/*
 * Copyright 2018 The RoboZonky Project
 *
 * Licensed 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.github.robozonky.api.remote.entities;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.Collections;
import javax.xml.bind.annotation.XmlElement;

public class BorrowerRelatedInvestmentInfo extends BaseEntity {

    private BigDecimal totalPrincipalToLoan, remainingPrincipalToLoan, totalPrincipalToBorrower,
            remainingPrincipalToBorrower;

    private Collection<String> otherBorrowerNicknames = Collections.emptyList();

    BorrowerRelatedInvestmentInfo() {
        // for JAXB
    }

    /**
     * @return Will be null if no other nicknames.
     */
    @XmlElement
    public Collection<String> getOtherBorrowerNicknames() {
        return otherBorrowerNicknames;
    }

    @XmlElement
    public BigDecimal getTotalPrincipalToLoan() {
        return totalPrincipalToLoan;
    }

    @XmlElement
    public BigDecimal getRemainingPrincipalToLoan() {
        return remainingPrincipalToLoan;
    }

    /**
     * @return Will be null if no other loans to the borrower.
     */
    @XmlElement
    public BigDecimal getTotalPrincipalToBorrower() {
        return totalPrincipalToBorrower;
    }

    /**
     * @return Will be null if no other loans to the borrower.
     */
    @XmlElement
    public BigDecimal getRemainingPrincipalToBorrower() {
        return remainingPrincipalToBorrower;
    }
}

@@ -986,16 +986,91 @@
 Borrower
+, totalSoldAmountToLoan;%0A    private int activeCountToLoan, soldCountToLoan
 ;%0A%0A    p
@@ -2028,11 +2028,313 @@
 r;%0A    %7D
+%0A%0A    @XmlElement%0A    public BigDecimal getTotalSoldAmountToLoan() %7B%0A        return totalSoldAmountToLoan;%0A    %7D%0A%0A    @XmlElement%0A    public int getActiveCountToLoan() %7B%0A        return activeCountToLoan;%0A    %7D%0A%0A    @XmlElement%0A    public int getSoldCountToLoan() %7B%0A        return soldCountToLoan;%0A    %7D
 %0A%7D%0A

Upgrade to Zonky API v 0.90