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

com.chargebee.internal.PrimitiveParameter Maven / Gradle / Ivy

There is a newer version: 3.26.0
Show newest version
package com.chargebee.internal;

import org.json.JSONObject;

import java.util.Map;

public class PrimitiveParameter extends Parameter {

    public PrimitiveParameter(String name) {
        this.name = name;
    }

    @Override
    Map toFormURLEncoded(Map paramsMap) {
        paramsMap.put(name, value);
        return paramsMap;
    }

    @Override
    JSONObject toJSONBody(JSONObject paramsJSON) {
        paramsJSON.put(name, value);
        return paramsJSON;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy