All Verbs | /pago/ReversarPago |
---|
"use strict";
export class DatosBanco {
/** @param {{Banco?:string,Sucursal?:string,Usuario?:string,Terminal?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
Banco;
/** @type {?string} */
Sucursal;
/** @type {?string} */
Usuario;
/** @type {?string} */
Terminal;
}
export class CoreRes {
/** @param {{TranId?:string,Code?:string,InfoMsg?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
TranId;
/** @type {?string} */
Code;
/** @type {?string} */
InfoMsg;
}
export class ResultadoTransaccion {
/** @param {{Resultado?:string,Mensaje?:string,FechaTransaccion?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
Resultado;
/** @type {?string} */
Mensaje;
/** @type {?string} */
FechaTransaccion;
}
export class AMDCReversarPagoRS extends CoreRes {
/** @param {{PagoReversadoRespuesta?:ResultadoTransaccion,TranId?:string,Code?:string,InfoMsg?:string,TranId?:string,Code?:string,InfoMsg?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?ResultadoTransaccion} */
PagoReversadoRespuesta;
/** @type {?string} */
TranId;
/** @type {?string} */
Code;
/** @type {?string} */
InfoMsg;
}
export class AMDCReversarPagoRQ extends DatosBanco {
/** @param {{IdTransaccionBanco?:string,Banco?:string,Sucursal?:string,Usuario?:string,Terminal?:string,Banco?:string,Sucursal?:string,Usuario?:string,Terminal?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {?string} */
IdTransaccionBanco;
/** @type {?string} */
Banco;
/** @type {?string} */
Sucursal;
/** @type {?string} */
Usuario;
/** @type {?string} */
Terminal;
}
JavaScript AMDCReversarPagoRQ 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 /pago/ReversarPago HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AMDCReversarPagoRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Tipo.Pago">
<Banco xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</Banco>
<Sucursal xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</Sucursal>
<Terminal xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</Terminal>
<Usuario xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</Usuario>
<IdTransaccionBanco>String</IdTransaccionBanco>
</AMDCReversarPagoRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <AMDCReversarPagoRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Tipo.Pago"> <Code xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</Code> <InfoMsg xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</InfoMsg> <TranId xmlns="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General">String</TranId> <PagoReversadoRespuesta xmlns:d2p1="http://schemas.datacontract.org/2004/07/AMDC.Modelo.Contexto.General"> <d2p1:FechaTransaccion>String</d2p1:FechaTransaccion> <d2p1:MensajeResultado>String</d2p1:MensajeResultado> <d2p1:Resultado>String</d2p1:Resultado> </PagoReversadoRespuesta> </AMDCReversarPagoRS>