All Verbs | /Utilidades/Formas/GuardarDatos |
---|
"use strict";
export class NovedadesCarga {
/** @param {{Fila?:number,Columna?:number,TipoError?:string,Novedad?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
Fila;
/** @type {number} */
Columna;
/** @type {string} */
TipoError;
/** @type {string} */
Novedad;
}
export class GuardarDatosFormaDetalleRS {
/** @param {{IDDetalle?:number,Novedades?:NovedadesCarga[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
IDDetalle;
/** @type {NovedadesCarga[]} */
Novedades;
}
export class GeneralRS {
/** @param {{Codigo?:number,Mensaje?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description Id del código de respuesta 1: Correcto, -1: Error */
Codigo;
/**
* @type {string}
* @description Mensaje que se envía al ejecutar el servicio */
Mensaje;
}
export class ExecuteDBFunctionRS extends GeneralRS {
/** @param {{Respuesta?:Object,IDEjecucion?:number,URLArchivo?:string,TipoRespuesta?:string,Background?:boolean,TiempoRespuestaBD?:number,TiempoRespuestaTotal?:number,Codigo?:number,Mensaje?:string,Codigo?:number,Mensaje?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {Object} */
Respuesta;
/** @type {number} */
IDEjecucion;
/** @type {string} */
URLArchivo;
/** @type {string} */
TipoRespuesta;
/** @type {boolean} */
Background;
/** @type {number} */
TiempoRespuestaBD;
/** @type {number} */
TiempoRespuestaTotal;
/**
* @type {number}
* @description Id del código de respuesta 1: Correcto, -1: Error */
Codigo;
/**
* @type {string}
* @description Mensaje que se envía al ejecutar el servicio */
Mensaje;
}
export class GuardarDatosFormaRS {
/** @param {{Success?:boolean,Error?:string,DatosLlaveMaestro?:{ [index: string]: Object; },NovedadesDetalles?:GuardarDatosFormaDetalleRS[],RespuestaProcAlmacenado?:ExecuteDBFunctionRS}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {boolean} */
Success;
/** @type {string} */
Error;
/** @type {{ [index: string]: Object; }} */
DatosLlaveMaestro;
/** @type {GuardarDatosFormaDetalleRS[]} */
NovedadesDetalles;
/** @type {ExecuteDBFunctionRS} */
RespuestaProcAlmacenado;
}
/** @typedef {'INSERT'|'UPDATE'|'DELETE'} */
export var OperacionDatos;
(function (OperacionDatos) {
OperacionDatos["INSERT"] = "INSERT"
OperacionDatos["UPDATE"] = "UPDATE"
OperacionDatos["DELETE"] = "DELETE"
})(OperacionDatos || (OperacionDatos = {}));
export class GuardarDatosDetalle {
/** @param {{IDDetalle?:number,DatosInsert?:{ [index:string]: Object; }[],DatosUpdate?:{ [index:string]: Object; }[],DatosDelete?:{ [index:string]: Object; }[],NombreArchivo?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
IDDetalle;
/** @type {{ [index:string]: Object; }[]} */
DatosInsert;
/** @type {{ [index:string]: Object; }[]} */
DatosUpdate;
/** @type {{ [index:string]: Object; }[]} */
DatosDelete;
/** @type {string} */
NombreArchivo;
}
export class GuardarDatosFormaRQ {
/** @param {{IDForma?:number,Operacion?:OperacionDatos,DatosMaestro?:{ [index: string]: Object; },DatosDetalle?:GuardarDatosDetalle[],FormasDep?:GuardarDatosFormaRQ[],TokenCargaArchivos?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
IDForma;
/** @type {OperacionDatos} */
Operacion;
/** @type {{ [index: string]: Object; }} */
DatosMaestro;
/** @type {GuardarDatosDetalle[]} */
DatosDetalle;
/** @type {GuardarDatosFormaRQ[]} */
FormasDep;
/** @type {string} */
TokenCargaArchivos;
}
JavaScript GuardarDatosFormaRQ DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Formas/GuardarDatos HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GuardarDatosFormaRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep i:nil="true" />
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GuardarDatosFormaRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <DatosLlaveMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:KeyValueOfstringanyType> <d2p1:Key>String</d2p1:Key> <d2p1:Value /> </d2p1:KeyValueOfstringanyType> </DatosLlaveMaestro> <Error>String</Error> <NovedadesDetalles> <GuardarDatosFormaDetalleRS> <IDDetalle>0</IDDetalle> <Novedades xmlns:d4p1="http://schemas.datacontract.org/2004/07/Administrador.Modelo"> <d4p1:NovedadesCarga> <d4p1:Columna>0</d4p1:Columna> <d4p1:Fila>0</d4p1:Fila> <d4p1:Novedad>String</d4p1:Novedad> <d4p1:TipoError>String</d4p1:TipoError> </d4p1:NovedadesCarga> </Novedades> </GuardarDatosFormaDetalleRS> </NovedadesDetalles> <RespuestaProcAlmacenado> <Codigo>0</Codigo> <Mensaje>String</Mensaje> <Background>false</Background> <IDEjecucion>0</IDEjecucion> <Respuesta /> <TiempoRespuestaBD>0</TiempoRespuestaBD> <TiempoRespuestaTotal>0</TiempoRespuestaTotal> <TipoRespuesta>String</TipoRespuesta> <URLArchivo>String</URLArchivo> </RespuestaProcAlmacenado> <Success>false</Success> </GuardarDatosFormaRS>