Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SvUndebitRespPars.h>
Inherits keyple::calypso::command::po::AbstractPoResponseParser.
Protected Member Functions | |
const std::map< int, std::shared_ptr< StatusProperties > > & | getStatusTable () const override |
![]() | |
const KeypleSeCommandException | buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override |
![]() | |
virtual const std::shared_ptr< SeCommand > | getCommandRef () const |
Additional Inherited Members | |
![]() | |
std::shared_ptr< ApduResponse > | mResponse |
AbstractApduCommandBuilder * | mBuilder |
![]() | |
static const std::map< int, std::shared_ptr< StatusProperties > > | STATUS_TABLE |
SV Undebit (00BA) response parser. See specs: Calypso Stored Value balance (signed binaries' coding based on the two's complement method)
balance - 3 bytes signed binary - Integer from -8,388,608 to 8,388,607
-8,388,608 %10000000.00000000.00000000 -8,388,607 %10000000.00000000.00000001 -8,388,606 %10000000.00000000.00000010
-3 %11111111.11111111.11111101 -2 %11111111.11111111.11111110 -1 %11111111.11111111.11111111 0 %00000000.00000000.00000000 1 %00000000.00000000.00000001 2 %00000000.00000000.00000010 3 %00000000.00000000.00000011
8,388,605 %01111111.11111111.11111101 8,388,606 %01111111.11111111.11111110 8,388,607 %01111111.11111111.11111111
amount - 2 bytes signed binary
amount for debit - Integer 0..32767 => for negative value
-32767 %10000000.00000001 -32766 %10000000.00000010 -3 %11111111.11111101 -2 %11111111.11111110 -1 %11111111.11111111 0 %00000000.00000000
Notice: -32768 (%10000000.00000000) is not allowed.
keyple::calypso::command::po::parser::storedvalue::SvUndebitRespPars::SvUndebitRespPars | ( | std::shared_ptr< ApduResponse > | response, |
SvUndebitCmdBuild * | builder | ||
) |
Constructor to build a parser of the SvDebit command response.
response | response to parse |
builder | the reference to the builder that created this parser |
const std::vector< uint8_t > keyple::calypso::command::po::parser::storedvalue::SvUndebitRespPars::getSignatureLo | ( | ) | const |
Gets the SV signature.
The signature can be empty here in the case of a secure session where the transmission of the signature is postponed until the end of the session.
|
overrideprotectedvirtual |
Reimplemented from keyple::core::command::AbstractApduResponseParser.
const std::string keyple::calypso::command::po::parser::storedvalue::SvUndebitRespPars::toString | ( | ) | const |