package com.bigcommerce.api;

import org.w3c.dom.Element;

public class Order extends Response {

	public Order(Element document) {
		super(document);
	}

	public String getCustomerId() {
		return getScalarField("customer_id");
	}

	public Integer getId() {
		String id = getScalarField("id");
		if (id != null) {
			return Integer.parseInt(id);
		} else {
			return null;
		}
	}

	public String getStatus() {
		return getScalarField("status");
	}
	
	public Integer getItemsTotal() {
		String itemsTotal = getScalarField("items_total");
		if (itemsTotal != null) {
			return Integer.parseInt(itemsTotal);
		} else {
			return null;
		}
	}
	
	public Integer getItemsShipped() {
		String itemsShipped = getScalarField("items_shipped");
		if (itemsShipped != null) {
			return Integer.parseInt(itemsShipped);
		} else {
			return null;
		}
	}
	
}

@@ -23,16 +23,40 @@
 e.api;%0A%0A
+import java.util.List;%0A%0A
 import o
@@ -115,16 +115,62 @@
 onse %7B%0A%0A
+%09private List%3COrderProduct%3E orderProducts;%0A%09%09%0A
 %09public 
@@ -902,13 +902,197 @@
 ;%0A%09%09%7D%0A%09%7D
+%0A%0A%09public List%3COrderProduct%3E getOrderProducts() %7B%0A%09%09return orderProducts;%0A%09%7D%0A%0A%09public void setOrderProducts(List%3COrderProduct%3E orderProducts) %7B%0A%09%09this.orderProducts = orderProducts;%0A%09%7D
 %0A%09%0A%7D%0A

Update Order.java