How do I access the method getDateTime in the following class.
I tried ZuoraObject zo = new ZuoraObject();
but get the error constructor not defined
public class ZuoraObject {
private Zuora.zObject xObj;
private string xObjectType;
private string xNamespace;
private Map<String, object> xAttributes;
public ZuoraObject(string objectType)
{
if (Test.isRunningTest()) {
xObjectType = objectType;
xNamespace = 'http://object.api.zuora.com/';
xAttributes = new Map<String, object>();
}
else{
xObj = new Zuora.zObject(objectType);
}
}
public DateTime getDateTime(String fieldName){
if(String.isBlank(fieldName)){
return null;
}
}
}
getDateTime()
falls off the end with no explicit return value.