public bool ProcessMethodBool <T>(string methodName, bool useCache, SDK sdk) where T : MPBase { Dictionary <string, string> parameters = (Dictionary <string, string>)null; MPBase.ProcessMethod <T>(this.GetType(), (T)this, methodName, parameters, useCache, sdk); return(this.Errors.HasValue); }
public static MPBase ProcessMethod(string methodName, bool useCache, SDK sdk) { Type typeFromStack = MPBase.GetTypeFromStack(); MPBase.AdmitIdempotencyKey(typeFromStack); Dictionary <string, string> parameters = new Dictionary <string, string>(); return(MPBase.ProcessMethod <MPBase>(typeFromStack, (MPBase)null, methodName, parameters, useCache, sdk)); }
public static MPBase ProcessMethod <T>(string methodName, string param, bool useCache, SDK sdk) where T : MPBase { Type typeFromStack = MPBase.GetTypeFromStack(); MPBase.AdmitIdempotencyKey(typeFromStack); return((MPBase)MPBase.ProcessMethod <T>(typeFromStack, default(T), methodName, new Dictionary <string, string>() { { "id", param } }, useCache, sdk)); }
public static MPBase ProcessMethod <T>( Type clazz, string methodName, string param1, string param2, bool useCache, SDK sdk) where T : MPBase { return((MPBase)MPBase.ProcessMethod <T>(clazz, default(T), methodName, new Dictionary <string, string>() { { "param0", param1 }, { nameof(param1), param2 } }, useCache, sdk)); }
public static MercadoPago.Customer FindById(string id, bool useCache, SDK sdk) { return((MercadoPago.Customer)MPBase.ProcessMethod <MercadoPago.Customer>(nameof(FindById), id, useCache, sdk)); }