ci-sdk-n-v10
Version:
SDKN Datafono Modulo
132 lines (129 loc) • 8.73 kB
JavaScript
exports.SendFrame = {
/**
* PrepareDataphone = Trama encabezado para preparacion del Datafono. ----------------------------------------------
*/
PrepareDataphone : [0x02, 0x00, 0x16, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x03, 0x12],
/**
* LastTransacion = Trama de Verificacion de la ultima Transaccion. ------------------------------------------------
*/
LastTransacion : [0x02, 0x00, 0x28, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1c, 0x34, 0x33, 0x00, 0x06],
/**
* LastTransactionRefused = Trama de Verificacion de la ultima Transaccion rechazada.-------------------------------
*/
LastTransactionRefused : [ 0x02, 0x00, 0x24, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1C, 0x34, 0x38, 0x00, 0x02, 0x20, 0x20, 0x03, 0x02],
/**
* LastTransactionAproved = Trama de Verificacion de la ultima Transaccion Aprovada.--------------------------------
*/
LastTransactionAproved : [ 0x02, 0x00, 0x24, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1C, 0x34, 0x38, 0x00, 0x02, 0x58, 0x58, 0x03, 0x02],
/**
* AnswerLastTransaction = Trama de Verificacion de la Respuesta ultima Transaccion.--------------------------------
*/
AnswerLastTransaction : [0x02, 0x00, 0x24, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1c, 0x38, 0x37, 0x00, 0x02, 0x12, 0x01, 0x03, 0x16],
/**
* Canceltransaction = Trama cancelacion transaccion.---------------------------------------------------------------
*/
Canceltransaction :[0x02, 0x00, 0x24, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1c, 0x34, 0x38, 0x00, 0x02, 0x58, 0x58, 0x03],
/**
* InsertCard = Trama insercion de Tarjeta.-------------------------------------------------------------------------
*/
InsertCard : [0x02, 0x00, 0x62, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1c],
/**
* PayExample = Trama Pago de Ejemplo.------------------------------------------------------------------------------
*/
PayExample : [ 0x02, 0x01 , 0x11 , 0x36 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x31 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x1C , 0x34 , 0x30 , 0x00 , 0x0C , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x31 , 0x30 , 0x30 , 0x30 , 0x30 , 0x1C , 0x34 , 0x31 , 0x00 , 0x0C , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x31 , 0x33 , 0x37 , 0x39 , 0x1C , 0x34 , 0x32 , 0x00 , 0x0A , 0x30 , 0x30 , 0x31 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x20 , 0x1C , 0x34 , 0x38 , 0x00 , 0x02 , 0x20 , 0x20 , 0x1C , 0x35 , 0x33 , 0x00 , 0x0A , 0x41 , 0x31 , 0x30 , 0x32 , 0x38 , 0x33 , 0x37 , 0x42 , 0x20 , 0x20 , 0x1C , 0x38 , 0x30 , 0x00 , 0x0C , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x30 , 0x38 , 0x36 , 0x32 , 0x31 , 0x1C , 0x38 , 0x38 , 0x00 , 0x01 , 0x31 , 0x03 , 0x1E],
/**
* Pin = Trama de Pin.----------------------------------------------------------------------------------------------
*/
Pin: [0x02, 0x00, 0x31, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x20, 0x20, 0x30, 0x1c, 0x34, 0x38, 0x00, 0x02, 0x20, 0x20, 0x1c, 0x38, 0x37, 0x00, 0x02, 0x12, 0x02, 0x03],
/**
* Close = Trama de Cierre de Transaccion.--------------------------------------------------------------------------
*/
Close : [0x02, 0x00, 0x16, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x31, 0x20, 0x20, 0x03, 0x13],
/**
* ConfirmBuy = Trama compra confirmada.--------------------------------------------------------------------------
*/
ConfirmBuy : [0x02, 0x03, 0x88, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x32, 0x30, 0x30, 0x30, 0x30, 0x30, 0x1c, 0x30, 0x31, 0x00, 0x06],
/**
* StateDataphone = Trama Estado datafono.------------------------------------------------------------------------
*/
StateDataphone : [0x02, 0x00, 0x16, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x33, 0x20, 0x20, 0x03, 0x11],
/**
* StateResponse = Trama Estado de Respuesta.----------------------------------------------------------------------
*/
StateResponse : [0x02, 0x00, 0x24, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x33, 0x20, 0x20, 0x88, 0x1c, 0x34, 0x38, 0x00, 0x02, 0x20, 0x20, 0x03],
/**
* ACK : Variable para la trama de cierre byte de confirmacion------------------------------------------------------
*/
ACK : [0x06],
/**
* NACK : Variable para la trama de Datafono no reconocimiento de respuesta, confirmacion de respuesta fallida------
*/
NACK : [0x15],
/**
* BeginFrame : Variable para comienzo de Trama -------------------------------------------------------------------
*/
BeginFrame : [0x02],
/**
* EndFrame : Variable para finalizacion de Trama -----------------------------------------------------------------
*/
EndFrame : [0x03],
/**
* Asterisk : Variable para confirmacion de entrada de pin visualizado como asterisco -----------------------------
*/
Asterisk : [0x2A],
/**
* Cancel : Variable para confirmacion de confirmacion -------------------------------------------------------------
*/
Cancel : [0xFF],
/**
* Separator : Variable para separacion de mensajes dentro de la tramas --------------------------------------------
*/
Separator : [0x1C],
/**
* BuyValue : Trama de identificacion de valor de compra -----------------------------------------------------------
*/
BuyValue : [0x1C, 0x34, 0x30, 0x00, 0x0C],
/**
* IvaValue : Trama de identificacion de valor de iva --------------------------------------------------------------
*/
IvaValue : [0x1C, 0x34, 0x31, 0x00, 0x0C],
/**
* NumCash : Trama de identificacion de valor de numero de caja ----------------------------------------------------
*/
NumCash : [0x1C, 0x34, 0x32, 0x00, 0x0A],
/**
* AnswerCode : Trama de identificacion de codigo de respuesta -----------------------------------------------------
*/
AnswerCode: [0x1C, 0x34, 0x38 , 0x00 , 0x02],
/**
* ValueAnswerCode : Trama de valor codigo de respuesta ------------------------------------------------------------
*/
ValueAnswerCode:[0x20 , 0x20],
/**
* NumberTransaction : Trama de identificacion para numero de transaccion ------------------------------------------
*/
NumberTransaction : [0x1C, 0x35, 0x33, 0x00, 0x0A],
/**
* IvaDevolutionValue : Trama de identificacion para valor de devolucion de Total -Iva -----------------------------
*/
IvaDevolutionValue : [0x1C, 0x38, 0x30, 0x00, 0x0C],
/**
* CheckType : Trama de Check para Datafono ------------------------------------------------------------------------
*/
CheckType: [0x1C, 0x38, 0x38, 0x00, 0x01],
/**
* InitialFrame : Trama de Inicializacion para Datafono ------------------------------------------------------------
*/
InitialFrame :[0x02, 0x01, 0x11, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30],
InitialFrameStart :[0x02, 0x00, 0x16, 0x36, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x30, 0x31, 0x30, 0x30, 0x32, 0x20, 0x20, 0x03, 0x10],
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
//------------------------------Frames Version 1.3------------------------------------------------------------------
/**
* InitMsg : Inicio de Mensaje
*/
InitMsg :[0x02]
}
//----------------------------------------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------------------------------------
//-------------------------------------------------Fin Codigo-----------------------------------------------------------