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

br.com.moip.request.MultiorderRequest Maven / Gradle / Ivy

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

import java.util.ArrayList;
import java.util.List;

public class MultiorderRequest {

    private String ownId;
    private List orders = new ArrayList<>();

    public MultiorderRequest ownId(String ownId) {
        this.ownId = ownId;

        return this;
    }

    public String getOwnId() {
        return ownId;
    }

    public MultiorderRequest addOrder(OrderRequest order) {
        orders.add(order);

        return this;
    }

    public List getOrders() {
        return orders;
    }

    @Override
    public String toString() {
        return new StringBuilder("MultiorderRequest {")
            .append("ownId='").append(ownId).append('\'')
            .append(", orders=").append(orders)
            .append("}").toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy