br.com.moip.resource.Order 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.resource;
import java.util.ArrayList;
import java.util.List;
public class Order {
private String id;
private Amount amount;
private String ownId;
private final List- items = new ArrayList
- ();
private Customer customer;
public String getId() {
return id;
}
public Amount getAmount() {
return amount;
}
public String getOwnId() {
return ownId;
}
public List
- getItems() {
return items;
}
public Customer getCustomer() {
return customer;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Order{");
sb.append("ownId='").append(ownId).append('\'');
sb.append(", id='").append(id).append('\'');
sb.append(", amount=").append(amount);
sb.append(", customer=").append(customer);
sb.append(", items=").append(items);
sb.append('}');
return sb.toString();
}
public static final class Item {
private String product;
private Integer quantity;
private String detail;
private Integer price;
public String getProduct() {
return product;
}
public Integer getQuantity() {
return quantity;
}
public String getDetail() {
return detail;
}
public Integer getPrice() {
return price;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("Item{");
sb.append("product='").append(product).append('\'');
sb.append(", quantity=").append(quantity);
sb.append(", detail='").append(detail).append('\'');
sb.append(", price=").append(price);
sb.append('}');
return sb.toString();
}
}
}