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

io.conekta.Utils Maven / Gradle / Ivy

package io.conekta;

import java.util.HashMap;

/**
 *
 * @author L.Carlos
 */
public class Utils {

    HashMap types = new HashMap();
    HashMap classes = new HashMap();

    private Utils() {
        types.put("Order", Order.class.getSimpleName());
        classes.put("discount_lines", DiscountLine.class.getCanonicalName());
        classes.put("shipping_contacts", ShippingContact.class.getCanonicalName());
        classes.put("tax_lines", TaxLine.class.getCanonicalName());
        classes.put("charges", Charge.class.getCanonicalName());
        classes.put("shipping_lines", ShippingLine.class.getCanonicalName());
        classes.put("line_items", LineItems.class.getCanonicalName());
        classes.put("payment_sources", PaymentSource.class.getCanonicalName());
    }

    public static Utils getInstance() {
        return UtilsHolder.INSTANCE;
    }

    private static class UtilsHolder {

        private static final Utils INSTANCE = new Utils();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy