Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Brayan Sarmiento
API-Gateway-CHEC
Commits
2e963f0b
Commit
2e963f0b
authored
Jul 11, 2023
by
bsarmiento31
Browse files
Initial commit
parents
Changes
105
Show whitespace changes
Inline
Side-by-side
gatewayGK/RespuestasXML/POSBCStatusEventPinPadStatus.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Evento de respuesta que espera la respuesta del datafono.
/// </summary>
public
class
POSBCStatusEventPinPadStatus
:
Respuesta
{
public
string
Severity
{
get
;
private
set
;
}
public
string
Status
{
get
;
private
set
;
}
public
string
Message
{
get
;
private
set
;
}
private
string
_xml
;
public
POSBCStatusEventPinPadStatus
(
int
sessionId
,
TipoMensaje
messageType
,
string
severity
,
string
status
,
string
message
)
:
base
(
sessionId
,
messageType
)
{
Severity
=
severity
;
Status
=
status
;
Message
=
message
;
}
// P2L_3_POSBCStatusEvent
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSBCStatusEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PinpadStatus
>
<
Severity
>{
Severity
}</
Severity
>
<
Status
>{
Status
}</
Status
>
<
StatusMessage
>{
Message
}</
StatusMessage
>
</
PinpadStatus
>
</
schema
:
POSBCStatusEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSBCStatusEventResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición del cuarto mensaje de la posbc - (impresora)
/// </summary>
public
class
POSBCStatusEventResponse
:
Respuesta
{
public
string
Severity
{
get
;
set
;
}
public
string
Status
{
get
;
set
;
}
public
string
StatusMessage
{
get
;
set
;
}
private
string
_xml
;
public
POSBCStatusEventResponse
(
int
sessionId
,
TipoMensaje
messageType
,
string
severity
,
string
status
,
string
statusMessage
)
:
base
(
sessionId
,
messageType
)
{
Severity
=
severity
;
Status
=
status
;
StatusMessage
=
statusMessage
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSBCStatusEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PrinterStatus
>
<
Severity
>{
Severity
}</
Severity
>
<
Status
>{
Status
}</
Status
>
<
StatusMessage
>{
StatusMessage
}</
StatusMessage
>
</
PrinterStatus
>
</
schema
:
POSBCStatusEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEvent.cs
0 → 100644
View file @
2e963f0b
using
EvaPOS_API_FRAME.DTO
;
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Globalization
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
public
class
POSReceiptEvent
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
string
Type
{
get
;
set
;
}
public
int
Index
{
get
;
set
;
}
public
string
Section
{
get
;
set
;
}
public
int
Group
{
get
;
set
;
}
public
int
Feeds
{
get
;
set
;
}
public
string
Align
{
get
;
set
;
}
public
string
LineCategory
{
get
;
set
;
}
public
string
LineType
{
get
;
set
;
}
public
string
Text
{
get
;
set
;
}
//este valor es referente al tipo de evento que se tiene que mandar, o se manda ADD O MODIFY
public
string
ValorXml
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEvent
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
string
type
,
int
index
,
string
section
,
int
group
,
int
feeds
,
string
align
,
string
lineCategory
,
string
lineType
,
string
text
,
string
valorXml
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
Type
=
type
;
Index
=
index
;
Section
=
section
;
Group
=
group
;
Feeds
=
feeds
;
Align
=
align
;
LineCategory
=
lineCategory
;
LineType
=
lineType
;
Text
=
text
;
ValorXml
=
valorXml
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"{ValorXml}"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>{
Type
}</
Type
>
<
Index
>{
Index
}</
Index
>
<
Section
>{
Section
}</
Section
>
<
Group
>{
Group
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Text
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventBodyResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición de los demas mensaje de agregar item - (AddItem) - Body
/// </summary>
public
class
POSReceiptEventBodyResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
string
Type
{
get
;
set
;
}
public
int
Index
{
get
;
set
;
}
public
string
Section
{
get
;
set
;
}
public
int
Group
{
get
;
set
;
}
public
int
Feeds
{
get
;
set
;
}
public
string
Align
{
get
;
set
;
}
public
string
LineCategory
{
get
;
set
;
}
public
string
LineType
{
get
;
set
;
}
public
string
Text
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEventBodyResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
string
type
,
int
index
,
string
section
,
int
group
,
int
feeds
,
string
align
,
string
lineCategory
,
string
lineType
,
string
text
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
Type
=
type
;
Index
=
index
;
Section
=
section
;
Group
=
group
;
Feeds
=
feeds
;
Align
=
align
;
LineCategory
=
lineCategory
;
LineType
=
lineType
;
Text
=
text
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Add"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>{
Type
}</
Type
>
<
Index
>{
Index
}</
Index
>
<
Section
>{
Section
}</
Section
>
<
Group
>{
Group
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Text
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventDebit.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Evento para mandar el primer mensaje cuando se paga con tarjeta debito
/// </summary>
public
class
POSReceiptEventDebit
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
string
Text
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEventDebit
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
string
text
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
Text
=
text
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Modify"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>
Customer
</
Type
>
<
Index
>
0
</
Index
>
<
Section
>
Trailer
</
Section
>
<
Group
>{
RequestID
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Trailer
</
LineCategory
>
<
LineType
>
WorkstationInfo
</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Text
}
1
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Trailer
</
LineCategory
>
<
LineType
>
LoyaltyMessages
</
LineType
>
<
TextReceiptLine
>
<
Text
>***************************************</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Trailer
</
LineCategory
>
<
LineType
>
LoyaltyMessages
</
LineType
>
<
TextReceiptLine
>
<
Text
>
Thank
you
for
learning
with
us
.</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Trailer
</
LineCategory
>
<
LineType
>
LoyaltyMessages
</
LineType
>
<
TextReceiptLine
>
<
Text
>***************************************</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventFooter.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
public
class
POSReceiptEventFooter
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
string
Type
{
get
;
set
;
}
public
int
Index
{
get
;
set
;
}
public
string
ArticulosVendidos
{
get
;
set
;
}
public
string
Section
{
get
;
set
;
}
public
int
Group
{
get
;
set
;
}
public
int
Feeds
{
get
;
set
;
}
public
string
Align
{
get
;
set
;
}
public
string
LineCategory
{
get
;
set
;
}
public
string
LineType
{
get
;
set
;
}
public
string
Text
{
get
;
set
;
}
//Impuestos
public
int
TipoImpuestoC
{
get
;
set
;
}
public
int
TipoImpuestoD
{
get
;
set
;
}
public
double
CompraC
{
get
;
set
;
}
public
double
CompraD
{
get
;
set
;
}
public
double
BaseImpuestoC
{
get
;
set
;
}
public
double
BaseImpuestoD
{
get
;
set
;
}
public
double
ImpuestoC
{
get
;
set
;
}
public
double
ImpuestoD
{
get
;
set
;
}
public
double
TotalCompra
{
get
;
set
;
}
public
double
TotalBaseImp
{
get
;
set
;
}
public
double
TotalImp
{
get
;
set
;
}
//Filas de los impuestos
public
string
Fila1Imp
{
get
;
set
;
}
public
string
Fila2Imp
{
get
;
set
;
}
public
string
Fila3Imp
{
get
;
set
;
}
public
string
FilaTotalImp
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEventFooter
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
string
type
,
int
index
,
string
section
,
int
group
,
int
feeds
,
string
align
,
string
lineCategory
,
string
lineType
,
string
text
,
string
articulosVendidos
,
string
fila1Imp
,
string
fila2Imp
,
string
fila3Imp
,
string
filaTotalImp
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
Type
=
type
;
Index
=
index
;
Section
=
section
;
Group
=
group
;
Feeds
=
feeds
;
Align
=
align
;
LineCategory
=
lineCategory
;
LineType
=
lineType
;
Text
=
text
;
ArticulosVendidos
=
articulosVendidos
;
Fila1Imp
=
fila1Imp
;
Fila2Imp
=
fila2Imp
;
Fila3Imp
=
fila3Imp
;
FilaTotalImp
=
filaTotalImp
;
//TipoImpuestoC = tipoImpuestoC;
//TipoImpuestoD = tipoImpuestoD;
//CompraC = compraC;
//CompraD = compraD;
//BaseImpuestoC = baseImpuestoC;
//BaseImpuestoD = baseImpuestoD;
//ImpuestoC = impuestoC;
//ImpuestoD = impuestoD;
//TotalCompra = totalCompra;
//TotalBaseImp = totalBaseImp;
//TotalImp = totalImp;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Add"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>{
Type
}</
Type
>
<
Index
>{
Index
}</
Index
>
<
Section
>{
Section
}</
Section
>
<
Group
>{
Group
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Text
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
ArticulosVendidos
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
****
DETALLES
DE
LOS
IMPUESTOS
****</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
Tipo
Compra
Base
/
Imp
IMP
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>----
------
------
----</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Fila1Imp
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Fila2Imp
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
Fila3Imp
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>-------
-------
-------
-----</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>{
FilaTotalImp
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>-------
-------
-------
-----</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
REGIMEN
COMUN
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
Lo
Atendio
:
ROCIO
SERRANO
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>*
DCTO
/
EQUIVALENTE
:
BC36
-
00247754
*</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
RANGO
:
BC3600186000
-
BC3699999999
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
Resol
:
4027705927
de
Abr
12
/
2022
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
GARDENIA
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
||||||||||||||||||||||||
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
Mzo
/
1
/
2023
18
:
48
0001208
0295
4242218
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
PROHIBIDA
LA
VENTA
DE
LICORES
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>{
Feeds
}</
Feeds
>
<
Align
>{
Align
}</
Align
>
<
LineCategory
>{
LineCategory
}</
LineCategory
>
<
LineType
>{
LineType
}</
LineType
>
<
TextReceiptLine
>
<
Text
>
A
MENORES
DE
EDAD
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventHeaderResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
//Nota:la secuencia de xml que se envian son: POSBCStatus,POSReceiptEvent,POSTotalEvents,AddItemResponse
/// Respuesta a petición del primer mensaje de agregar item - (AddItem) - Cabecera
/// </summary>
public
class
POSReceiptEventHeaderResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEventHeaderResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Add"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>
Customer
</
Type
>
<
Index
>
0
</
Index
>
<
Section
>
Header
</
Section
>
<
Group
>{
RequestID
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Header
</
LineCategory
>
<
LineType
>
StoreHeader
</
LineType
>
<
TextReceiptLine
>
<
Text
>***************************************</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Header
</
LineCategory
>
<
LineType
>
StoreHeader
</
LineType
>
<
TextReceiptLine
>
<
Text
>
TIENDAS
ISIMO
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
Header
</
LineCategory
>
<
LineType
>
StoreHeader
</
LineType
>
<
TextReceiptLine
>
<
Text
>***************************************</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventItem.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
public
class
POSReceiptEventItem
:
Respuesta
{
private
string
_xml
;
public
int
RequestID
{
get
;
set
;
}
public
POSReceiptEventItem
(
int
sessionId
,
TipoMensaje
tipo
,
int
requestID
)
:
base
(
sessionId
,
tipo
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Add"
>
<
RequestID
>
102
</
RequestID
>
<
Type
>
Customer
</
Type
>
<
Index
>
0
</
Index
>
<
Section
>
Body
</
Section
>
<
Group
>
102
</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
LineItem
</
LineCategory
>
<
LineType
>
ItemSale
</
LineType
>
<
TextReceiptLine
>
<
Text
>
Cheerios
35500
</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/POSReceiptEventResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición de finalizar y pagar, primera respuesta
/// </summary>
public
class
POSReceiptEventResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
int
Group
{
get
;
set
;
}
public
string
Text1
{
get
;
set
;
}
public
string
Text2
{
get
;
set
;
}
private
string
_xml
;
public
POSReceiptEventResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
int
group
,
string
text1
,
string
text2
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
Group
=
group
;
Text1
=
text1
;
Text2
=
text2
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSReceiptEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
UpdateType
=
"Add"
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
Type
>
Customer
</
Type
>
<
Index
>
0
</
Index
>
<
Section
>
Body
</
Section
>
<
Group
>{
Group
}</
Group
>
<
FormattedReceiptLineList
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
LineItem
</
LineCategory
>
<
LineType
>
TransactionTotal
</
LineType
>
<
TextReceiptLine
>
<
Text
>
TAX
{
Text1
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
<
FormattedReceiptLine
>
<
Feeds
>
1
</
Feeds
>
<
Align
>
center
</
Align
>
<
LineCategory
>
LineItem
</
LineCategory
>
<
LineType
>
TransactionTotal
</
LineType
>
<
TextReceiptLine
>
<
Text
>
****
BALANCE
{
Text2
}</
Text
>
</
TextReceiptLine
>
</
FormattedReceiptLine
>
</
FormattedReceiptLineList
>
</
schema
:
POSReceiptEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/Printer/POSBCStatusEventPrinter.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML.Printer
{
/// <summary>
/// Evento que se envia cuando chec manda el request de la impresora
/// </summary>
public
class
POSBCStatusEventPrinter
:
Respuesta
{
public
string
Severity
{
get
;
set
;
}
public
string
Status
{
get
;
set
;
}
public
string
StatusMessage
{
get
;
set
;
}
public
int
JobIndex
{
get
;
set
;
}
public
int
JobTotal
{
get
;
set
;
}
private
string
_xml
;
public
POSBCStatusEventPrinter
(
int
sessionId
,
TipoMensaje
messageType
,
string
severity
,
string
status
,
string
statusMessage
,
int
jobIndex
,
int
jobTotal
)
:
base
(
sessionId
,
messageType
)
{
Severity
=
severity
;
Status
=
status
;
StatusMessage
=
statusMessage
;
JobIndex
=
jobIndex
;
JobTotal
=
jobTotal
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSBCStatusEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PrinterStatus
>
<
Severity
>{
Severity
}</
Severity
>
<
Status
>{
Status
}</
Status
>
<
StatusMessage
>
{
StatusMessage
}
</
StatusMessage
>
<
JobIndex
>{
JobIndex
}</
JobIndex
>
<
JobTotal
>{
JobTotal
}</
JobTotal
>
</
PrinterStatus
>
</
schema
:
POSBCStatusEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/Printer/POSBCStatusEventPrinterSingle.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML.Printer
{
/// <summary>
/// Respuesta del estado de la impresora con menos valores
/// </summary>
public
class
POSBCStatusEventPrinterSingle
:
Respuesta
{
public
string
Severity
{
get
;
set
;
}
public
string
Status
{
get
;
set
;
}
public
string
StatusMessage
{
get
;
set
;
}
private
string
_xml
;
public
POSBCStatusEventPrinterSingle
(
int
sessionId
,
TipoMensaje
messageType
,
string
severity
,
string
status
,
string
statusMessage
)
:
base
(
sessionId
,
messageType
)
{
Severity
=
severity
;
Status
=
status
;
StatusMessage
=
statusMessage
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSBCStatusEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PrinterStatus
>
<
Severity
>{
Severity
}</
Severity
>
<
Status
>{
Status
}</
Status
>
<
StatusMessage
>{
StatusMessage
}</
StatusMessage
>
</
PrinterStatus
>
</
schema
:
POSBCStatusEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/Printer/PrintCurrentReceiptsResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPOS_API_FRAME.Comandos
;
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta de la impresora cuando se termina la transaccion
/// </summary>
public
class
PrintCurrentReceiptsResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
PrintCurrentReceiptsResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
PrintCurrentReceiptsResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PrintCurrentReceiptsResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
PrintCurrentReceiptsResult
>
</
schema
:
PrintCurrentReceiptsResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/PrinterStatusResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPOS_API_FRAME.DTO
;
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Envia una respuesta(evento) de cual es el estado de la impresora.
/// La realiza cuando viene un request de ReportStatusEvents(Cuando inicia la pos)
/// </summary>
public
class
PrinterStatusResponse
:
Respuesta
{
public
string
Severity
{
get
;
set
;
}
public
string
Status
{
get
;
set
;
}
public
string
StatusMessage
{
get
;
set
;
}
private
string
_xml
;
public
PrinterStatusResponse
(
int
sessionId
,
TipoMensaje
messageType
,
string
severity
,
string
status
,
string
statusMessage
)
:
base
(
sessionId
,
messageType
)
{
Severity
=
severity
;
Status
=
status
;
StatusMessage
=
statusMessage
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
POSBCStatusEvent
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
PrinterStatus
>
<
Severity
>{
Severity
}</
Severity
>
<
Status
>{
Status
}</
Status
>
<
StatusMessage
>{
StatusMessage
}</
StatusMessage
>
</
PrinterStatus
>
</
schema
:
POSBCStatusEvent
>
""";
}
}
}
gatewayGK/RespuestasXML/QueryStatusResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición del tercer mensaje de la posbc
/// </summary>
public
class
QueryStatusResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
public
string
POSBCStatus
{
get
;
set
;
}
public
int
Version
{
get
;
set
;
}
public
int
Release
{
get
;
set
;
}
public
int
MaintenanceLevel
{
get
;
set
;
}
public
string
Description
{
get
;
set
;
}
public
string
CurrentDateAndTime
{
get
;
set
;
}
public
int
LastSuccessfulRequestID
{
get
;
set
;
}
public
bool
IsInTransaction
{
get
;
set
;
}
private
string
_xml
;
public
QueryStatusResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
,
string
posbStatus
,
int
version
,
int
release
,
int
maintenanceLevel
,
string
description
,
string
currentDateAndTime
,
int
lastSuccessfulRequestId
,
bool
isInTransaction
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
POSBCStatus
=
posbStatus
;
Version
=
version
;
Release
=
release
;
MaintenanceLevel
=
maintenanceLevel
;
Description
=
description
;
CurrentDateAndTime
=
currentDateAndTime
;
LastSuccessfulRequestID
=
lastSuccessfulRequestId
;
IsInTransaction
=
isInTransaction
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
QueryStatusResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
QueryStatusResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
<
APIHistory
/>
<
POSBCStatus
>{
POSBCStatus
}</
POSBCStatus
>
<
POSBCVersion
>
<
Version
>{
Version
}</
Version
>
<
Release
>{
Release
}</
Release
>
<
MaintenanceLevel
>{
MaintenanceLevel
}</
MaintenanceLevel
>
<
Description
>{
Description
}</
Description
>
</
POSBCVersion
>
<
CurrentDateAndTime
>{
CurrentDateAndTime
}</
CurrentDateAndTime
>
<
LastSuccessfulRequestID
>{
LastSuccessfulRequestID
}</
LastSuccessfulRequestID
>
<
IsInTransaction
>{
IsInTransaction
}</
IsInTransaction
>
</
QueryStatusResult
>
</
schema
:
QueryStatusResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/RemoveReceiptLinesResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
public
class
RemoveReceiptLinesResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
RemoveReceiptLinesResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
RemoveReceiptLinesResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
RemoveReceiptLinesResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
RemoveReceiptLinesResult
>
</
schema
:
RemoveReceiptLinesResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/ReportStatusEventsResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición del cuarto mensaje de la posbc - (ReportStatusEventsResult)
/// </summary>
public
class
ReportStatusEventsResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
ReportStatusEventsResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
ReportStatusEventsResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
ReportStatusEventsResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
ReportStatusEventsResult
>
</
schema
:
ReportStatusEventsResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/Reprint/ReprintReceiptsResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPOS_API_FRAME.DTO
;
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML.Reprint
{
public
class
ReprintReceiptsResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
ReprintReceiptsResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
ReprintReceiptsResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
ReprintReceiptsResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
ReprintReceiptsResult
>
</
schema
:
ReprintReceiptsResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/RestriccionEdad/AddCustomerBirthdateResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
//using System.Runtime.Remoting.Lifetime;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML.RestriccionEdad
{
/// <summary>
/// Respuesta procesada de la restriccion de edad
/// </summary>
public
class
AddCustomerBirthdateResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
AddCustomerBirthdateResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
AddCustomerBirthdateResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
AddCustomerBirthdateResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
AddCustomerBirthdateResult
>
</
schema
:
AddCustomerBirthdateResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/SaltarEmpaque/AddReceiptLinesResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
/// <summary>
/// Respuesta a petición de agregar item - (AddReceiptLinesResponse)
/// </summary>
public
class
AddReceiptLinesResponse
:
Respuesta
{
public
int
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
AddReceiptLinesResponse
(
int
sessionId
,
TipoMensaje
messageType
,
int
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
AddReceiptLinesResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
AddReceiptLinesResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
AddReceiptLinesResult
>
</
schema
:
AddReceiptLinesResponse
>
""";
}
}
}
gatewayGK/RespuestasXML/SignOffResponse.cs
0 → 100644
View file @
2e963f0b
using
EvaPosSrvDTO
;
using
EvaPosSrvResp
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
namespace
EvaPOS_API_FRAME.RespuestasXML
{
public
class
SignOffResponse
:
Respuesta
{
public
string
RequestID
{
get
;
set
;
}
private
string
_xml
;
public
SignOffResponse
(
int
sessionId
,
TipoMensaje
messageType
,
string
requestID
)
:
base
(
sessionId
,
messageType
)
{
RequestID
=
requestID
;
}
public
override
string
TextoXML
{
get
=>
_xml
=
$"""
<?
xml
version
=
"1.0"
encoding
=
"UTF-8"
?>
<
schema
:
SignOffResponse
xmlns
:
schema
=
"http://bc.si.retail.ibm.com/POSBCSchema"
>
<
SignOffResult
>
<
RequestID
>{
RequestID
}</
RequestID
>
</
SignOffResult
>
</
schema
:
SignOffResponse
>
""";
}
}
}
Prev
1
2
3
4
5
6
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment