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
11b7efd5
Commit
11b7efd5
authored
Aug 14, 2023
by
Jose Hugo Torres
Browse files
SuspendNumber
parent
600d1af0
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
gatewayGK/Comandosgk/UpdateTerminalTenderAuthorizationCmdGk.cs
0 → 100644
View file @
11b7efd5
This diff is collapsed.
Click to expand it.
gatewayGK/POSGk/EntornoGK.cs
View file @
11b7efd5
...
@@ -25,6 +25,27 @@ public class EntornoGK
...
@@ -25,6 +25,27 @@ public class EntornoGK
/// </summary>
/// </summary>
public
string
BusinessUnitGroupID
{
get
;
set
;
}
=
""
;
public
string
BusinessUnitGroupID
{
get
;
set
;
}
=
""
;
/// <summary>
/// Número de secuencia de la transacción, usado en la suspención de transacción.
/// </summary>
private
int
_sequenceNumber
=
0
;
public
int
SequenceNumber
{
get
=>
_sequenceNumber
;
set
{
_sequenceNumber
=
value
;
SuspendNumber
=
DateTime
.
Now
.
ToString
(
"0ddHHmmss"
)
+
SequenceNumber
.
ToString
().
PadLeft
(
6
,
'0'
);
}
}
/// <summary>
/// Número de referencia para la suspención de transacción.
/// </summary>
public
string
SuspendNumber
{
get
;
set
;
}
=
""
;
/// <summary>
/// <summary>
/// GK Language.
/// GK Language.
/// </summary>
/// </summary>
...
@@ -52,7 +73,7 @@ public class EntornoGK
...
@@ -52,7 +73,7 @@ public class EntornoGK
/// </summary>
/// </summary>
public
string
UrlBase
public
string
UrlBase
{
{
get
=>
_urlBase
??
throw
new
ApplicationException
(
"UrlBase no inicializada."
);
get
=>
_urlBase
??
throw
new
ApplicationException
(
"UrlBase no inicializada."
);
private
set
{
}
private
set
{
}
}
}
}
}
\ No newline at end of file
gatewayGKManualTest/Program.cs
View file @
11b7efd5
...
@@ -66,6 +66,8 @@ namespace pruebas
...
@@ -66,6 +66,8 @@ namespace pruebas
resp
=
Subtotal
();
resp
=
Subtotal
();
resp
=
Pago
();
Logout
();
Logout
();
}
}
...
@@ -150,6 +152,17 @@ namespace pruebas
...
@@ -150,6 +152,17 @@ namespace pruebas
return
resps
;
return
resps
;
}
}
public
Respuestas
Pago
()
{
Log
.
Debug
(
$"-- UpdateTerminalTenderAuthorization"
);
var
request
=
new
AddItemRequestDTO
(
0
,
new
TipoMensaje
());
var
cmd
=
new
UpdateTerminalTenderAuthorizationCmdGk
();
cmd
.
CargaDTO
(
request
);
Respuestas
resps
=
cmd
.
Ejecutar
();
return
resps
;
}
public
void
Logout
()
public
void
Logout
()
{
{
Log
.
Debug
(
"-- Logout"
);
Log
.
Debug
(
"-- Logout"
);
...
...
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