FrameAppWS

<back to all web services

AMDCGetObligacionesXArticuloRQ

Requires Authentication
The following routes are available for this service:
All Verbs/consulta/ConsultaDeudaXArticulo
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class DatosBanco implements IConvertible
{
    String? Banco;
    String? Sucursal;
    String? Usuario;
    String? Terminal;

    DatosBanco({this.Banco,this.Sucursal,this.Usuario,this.Terminal});
    DatosBanco.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Banco = json['Banco'];
        Sucursal = json['Sucursal'];
        Usuario = json['Usuario'];
        Terminal = json['Terminal'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Banco': Banco,
        'Sucursal': Sucursal,
        'Usuario': Usuario,
        'Terminal': Terminal
    };

    getTypeName() => "DatosBanco";
    TypeContext? context = _ctx;
}

class CoreRes implements IConvertible
{
    String? TranId;
    String? Code;
    String? InfoMsg;

    CoreRes({this.TranId,this.Code,this.InfoMsg});
    CoreRes.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        TranId = json['TranId'];
        Code = json['Code'];
        InfoMsg = json['InfoMsg'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'TranId': TranId,
        'Code': Code,
        'InfoMsg': InfoMsg
    };

    getTypeName() => "CoreRes";
    TypeContext? context = _ctx;
}

class Detalle_Obligacion implements IConvertible
{
    int? Orden;
    // @DataMember(Name="IdObligacion")
    String? IdObligacion;

    // @DataMember(Name="NombreObligacion")
    String? NombreObligacion;

    // @DataMember(Name="TipoImpuesto")
    String? TipoImpuesto;

    double? Impuesto;
    double? TrenAseo;
    double? Bomberos;
    double? Otros;
    double? Intereses;
    double? Descuento;
    String? FechaExpiracion;
    double? TotalFila;
    String? Mensaje;

    Detalle_Obligacion({this.Orden,this.IdObligacion,this.NombreObligacion,this.TipoImpuesto,this.Impuesto,this.TrenAseo,this.Bomberos,this.Otros,this.Intereses,this.Descuento,this.FechaExpiracion,this.TotalFila,this.Mensaje});
    Detalle_Obligacion.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Orden = json['Orden'];
        IdObligacion = json['IdObligacion'];
        NombreObligacion = json['Obligacion'];
        TipoImpuesto = json['TipoObligacion'];
        Impuesto = JsonConverters.toDouble(json['Impuesto']);
        TrenAseo = JsonConverters.toDouble(json['TrenAseo']);
        Bomberos = JsonConverters.toDouble(json['Bomberos']);
        Otros = JsonConverters.toDouble(json['Otros']);
        Intereses = JsonConverters.toDouble(json['Intereses']);
        Descuento = JsonConverters.toDouble(json['Descuento']);
        FechaExpiracion = json['FechaExpiracion'];
        TotalFila = JsonConverters.toDouble(json['TotalFila']);
        Mensaje = json['Mensaje'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Orden': Orden,
        'IdObligacion': IdObligacion,
        'NombreObligacion': NombreObligacion,
        'TipoImpuesto': TipoImpuesto,
        'Impuesto': Impuesto,
        'TrenAseo': TrenAseo,
        'Bomberos': Bomberos,
        'Otros': Otros,
        'Intereses': Intereses,
        'Descuento': Descuento,
        'FechaExpiracion': FechaExpiracion,
        'TotalFila': TotalFila,
        'Mensaje': Mensaje
    };

    getTypeName() => "Detalle_Obligacion";
    TypeContext? context = _ctx;
}

class Deuda_Obligacion implements IConvertible
{
    // @DataMember(Name="NombreContribuyente")
    String? NombreContribuyente;

    // @DataMember(Name="TotalDeuda")
    double? TotalDeuda;

    int? Anio;
    List<Detalle_Obligacion>? DetalleObligacion;

    Deuda_Obligacion({this.NombreContribuyente,this.TotalDeuda,this.Anio,this.DetalleObligacion});
    Deuda_Obligacion.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        NombreContribuyente = json['Actor'];
        TotalDeuda = JsonConverters.toDouble(json['Total']);
        Anio = json['Anio'];
        DetalleObligacion = JsonConverters.fromJson(json['DetalleObligacion'],'List<Detalle_Obligacion>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'NombreContribuyente': NombreContribuyente,
        'TotalDeuda': TotalDeuda,
        'Anio': Anio,
        'DetalleObligacion': JsonConverters.toJson(DetalleObligacion,'List<Detalle_Obligacion>',context!)
    };

    getTypeName() => "Deuda_Obligacion";
    TypeContext? context = _ctx;
}

class AMDCGetObligacionesXArticuloRS extends CoreRes implements IConvertible
{
    Deuda_Obligacion? DeudaObligacion;
    String? TranId;
    String? Code;
    String? InfoMsg;

    AMDCGetObligacionesXArticuloRS({this.DeudaObligacion,this.TranId,this.Code,this.InfoMsg});
    AMDCGetObligacionesXArticuloRS.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        DeudaObligacion = JsonConverters.fromJson(json['DeudaObligacion'],'Deuda_Obligacion',context!);
        TranId = json['TranId'];
        Code = json['Code'];
        InfoMsg = json['InfoMsg'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'DeudaObligacion': JsonConverters.toJson(DeudaObligacion,'Deuda_Obligacion',context!),
        'TranId': TranId,
        'Code': Code,
        'InfoMsg': InfoMsg
    });

    getTypeName() => "AMDCGetObligacionesXArticuloRS";
    TypeContext? context = _ctx;
}

class AMDCGetObligacionesXArticuloRQ extends DatosBanco implements IConvertible
{
    // @DataMember(Name="IdDocumento")
    String? IdDocumento;

    int? Anio;
    // @DataMember(Name="IdTipoImpuesto")
    int? IdTipoImpuesto;

    int? PagoParcial;
    String? Banco;
    String? Sucursal;
    String? Usuario;
    String? Terminal;

    AMDCGetObligacionesXArticuloRQ({this.IdDocumento,this.Anio,this.IdTipoImpuesto,this.PagoParcial,this.Banco,this.Sucursal,this.Usuario,this.Terminal});
    AMDCGetObligacionesXArticuloRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        IdDocumento = json['NumeroDocumento'];
        Anio = json['Anio'];
        IdTipoImpuesto = json['IdTipoObligacion'];
        PagoParcial = json['PagoParcial'];
        Banco = json['Banco'];
        Sucursal = json['Sucursal'];
        Usuario = json['Usuario'];
        Terminal = json['Terminal'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'IdDocumento': IdDocumento,
        'Anio': Anio,
        'IdTipoImpuesto': IdTipoImpuesto,
        'PagoParcial': PagoParcial,
        'Banco': Banco,
        'Sucursal': Sucursal,
        'Usuario': Usuario,
        'Terminal': Terminal
    });

    getTypeName() => "AMDCGetObligacionesXArticuloRQ";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
    'DatosBanco': TypeInfo(TypeOf.Class, create:() => DatosBanco()),
    'CoreRes': TypeInfo(TypeOf.Class, create:() => CoreRes()),
    'Detalle_Obligacion': TypeInfo(TypeOf.Class, create:() => Detalle_Obligacion()),
    'Deuda_Obligacion': TypeInfo(TypeOf.Class, create:() => Deuda_Obligacion()),
    'List<Detalle_Obligacion>': TypeInfo(TypeOf.Class, create:() => <Detalle_Obligacion>[]),
    'AMDCGetObligacionesXArticuloRS': TypeInfo(TypeOf.Class, create:() => AMDCGetObligacionesXArticuloRS()),
    'AMDCGetObligacionesXArticuloRQ': TypeInfo(TypeOf.Class, create:() => AMDCGetObligacionesXArticuloRQ()),
});

Dart AMDCGetObligacionesXArticuloRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /consulta/ConsultaDeudaXArticulo HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	IdDocumento: String,
	Anio: 0,
	IdTipoImpuesto: 0,
	PagoParcial: 0,
	Banco: String,
	Sucursal: String,
	Usuario: String,
	Terminal: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	DeudaObligacion: 
	{
		NombreContribuyente: String,
		TotalDeuda: 0,
		Anio: 0
	},
	TranId: String,
	Code: String,
	InfoMsg: String
}