package com.conekta;

import java.util.HashMap;
import org.json.JSONObject;

/**
 *
 * @author L.Carlos
 */
public class Order extends Resource {
    public String status;
    public String currency;
    public String customer_id;
    public Integer amount;
    public Integer created_at;
    public Boolean livemode;
    public HashMap customer_info = new HashMap();
    public HashMap metadata = new HashMap();
    public HashMap last_payment_info = new HashMap();
    public HashMap transitions = new HashMap();
    
    public Order(String id) {
        super(id);
    }

    public Order() {
        super();
    }
    
    public static Order create(JSONObject params) throws Error {
        String className = Order.class.getCanonicalName();
        return (Order) scpCreate(className, params);
    }
    
    public static Order find(String id) throws Error {
        String className = Order.class.getCanonicalName();
        
        return (Order) scpFind(className, id);
    }
}

@@ -508,21 +508,17 @@
 hMap();%0A
-    
 %0A
+
     publ
@@ -601,37 +601,33 @@
  super();%0A    %7D%0A
-    
 %0A
+
     public stati
@@ -793,21 +793,17 @@
 ;%0A    %7D%0A
-    
 %0A
+
     publ
@@ -908,24 +908,16 @@
 Name();%0A
-        
 %0A       

Add Order model