br.com.moip.request.MultiorderRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Moip v2 APIs
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();
}
}