com.chargebee.internal.PrimitiveParameter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chargebee-java Show documentation
Show all versions of chargebee-java Show documentation
Java client library for ChargeBee API
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;
}
}