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

io.conekta.Payee Maven / Gradle / Ivy

package io.conekta;

import org.json.JSONObject;

/**
 *
 * @author picharras
 */
public class Payee extends Resource{
    public Boolean livemode;
    
    public Payee(String id) {
        super(id);
    }

    public Payee() {
        super();
    }

    public static Payee find(String id) throws Error, ErrorList {
        String className = Charge.class.getCanonicalName();
        return (Payee) scpFind(className, id);
    }

    public static ConektaObject where(JSONObject params) throws Error, ErrorList {
        String className = Payee.class.getCanonicalName();
        return (ConektaObject) scpWhere(className, params);
    }

    public static ConektaObject where() throws Error, ErrorList {
        String className = Payee.class.getCanonicalName();
        return (ConektaObject) scpWhere(className, null);
    }

    public static Payee create(JSONObject params) throws Error, ErrorList {
        String className = Payee.class.getCanonicalName();
        return (Payee) scpCreate(className, params);
    }

    public void delete() throws Error, ErrorList {
        this.delete(null, null);
    }

    @Override
    public void update(JSONObject params) throws Error, ErrorList {
        super.update(params);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy