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

io.conekta.Token Maven / Gradle / Ivy

package io.conekta;

import org.json.JSONObject;

/**
 *
 * @author mauricio
 */
public class Token extends Resource {

    public Boolean livemode;
    public Boolean used;

    public Token(String id) {
        super(id);
    }

    public Token() {
        super();
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy