All Downloads are FREE. Search and download functionalities are using the official Maven repository.

br.com.moip.resource.Installment Maven / Gradle / Ivy

There is a newer version: 4.7.6
Show newest version
package br.com.moip.resource;

import java.util.Arrays;

public class Installment {

    private int[] quantity;
    private int addition;
    private int discount;
    private int amount;
    private int number;

    public int[] getQuantity() {
        return quantity;
    }

    public int getAddition() {
        return addition;
    }

    public int getDiscount() {
        return discount;
    }

    public int getAmount() { return amount; }

    public int getNumber() { return number; }

    @Override
    public String toString() {
        return new StringBuilder("Installment{")
                .append("quantity='").append(Arrays.toString(quantity))
                .append(", addition='").append(addition)
                .append(", discount='").append(discount)
                .append('}').toString();
    }

    public Installment setQuantity(int[] quantity) {
        this.quantity = quantity;
        return this;
    }

    public Installment setAddition(int addition) {
        this.addition = addition;
        return this;
    }

    public Installment setDiscount(int discount) {
        this.discount = discount;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy