All Verbs | /Utilidades/Procedimientos/CancelarEjecucion |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GeneralRS implements IConvertible
{
/**
* Id del código de respuesta 1: Correcto, -1: Error
*/
// @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
int? Codigo;
/**
* Mensaje que se envía al ejecutar el servicio
*/
// @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
String? Mensaje;
GeneralRS({this.Codigo,this.Mensaje});
GeneralRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Codigo = json['Codigo'];
Mensaje = json['Mensaje'];
return this;
}
Map<String, dynamic> toJson() => {
'Codigo': Codigo,
'Mensaje': Mensaje
};
getTypeName() => "GeneralRS";
TypeContext? context = _ctx;
}
class CancelarEjecucionRQ implements IConvertible
{
double? CodigoEjecucion;
String? MotivoCancela;
CancelarEjecucionRQ({this.CodigoEjecucion,this.MotivoCancela});
CancelarEjecucionRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CodigoEjecucion = JsonConverters.toDouble(json['CodigoEjecucion']);
MotivoCancela = json['MotivoCancela'];
return this;
}
Map<String, dynamic> toJson() => {
'CodigoEjecucion': CodigoEjecucion,
'MotivoCancela': MotivoCancela
};
getTypeName() => "CancelarEjecucionRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'GeneralRS': TypeInfo(TypeOf.Class, create:() => GeneralRS()),
'CancelarEjecucionRQ': TypeInfo(TypeOf.Class, create:() => CancelarEjecucionRQ()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Procedimientos/CancelarEjecucion HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"CodigoEjecucion":0,"MotivoCancela":"String"}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"Codigo":0,"Mensaje":"String"}