Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <SvGetRespPars.h>
Inherits keyple::calypso::command::po::AbstractPoResponseParser.
Public Member Functions | |
SvGetRespPars (const std::vector< uint8_t > &svCommandHeader, std::shared_ptr< ApduResponse > response, SvGetCmdBuild *builder) | |
const std::vector< uint8_t > & | getSvGetCommandHeader () const |
uint8_t | getCurrentKVC () const |
int | getTransactionNumber () const |
const std::vector< uint8_t > & | getPreviousSignatureLo () const |
const std::vector< uint8_t > & | getChallengeOut () const |
int | getBalance () const |
const std::shared_ptr< SvLoadLogRecord > | getLoadLog () const |
const std::shared_ptr< SvDebitLogRecord > | getDebitLog () const |
![]() | |
AbstractPoResponseParser (std::shared_ptr< ApduResponse > response, AbstractPoCommandBuilder< AbstractPoResponseParser > *builder) | |
AbstractPoResponseParser (const AbstractPoResponseParser &arp)=default | |
virtual | ~AbstractPoResponseParser ()=default |
virtual AbstractPoCommandBuilder< AbstractPoResponseParser > * | getBuilder () const override |
void | checkStatus () const override |
![]() | |
AbstractApduResponseParser (const std::shared_ptr< ApduResponse > response, AbstractApduCommandBuilder *builder) | |
AbstractApduResponseParser (const AbstractApduResponseParser &aarp)=default | |
virtual | ~AbstractApduResponseParser ()=default |
void | setApduResponse (const std::shared_ptr< ApduResponse > &response) |
const std::shared_ptr< ApduResponse > | getApduResponse () const |
virtual bool | isSuccessful () const |
std::string | getStatusInformation () const |
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 Get (007C) response parser. See specs: Calypso
keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::SvGetRespPars | ( | const std::vector< uint8_t > & | svCommandHeader, |
std::shared_ptr< ApduResponse > | response, | ||
SvGetCmdBuild * | builder | ||
) |
Constructor to build a parser of the SvGet command response.
svCommandHeader | the SvGet command header bytes |
response | response to parse |
builder | the reference to the builder that created this parser |
int keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getBalance | ( | ) | const |
Gets the current SV balance
const std::vector< uint8_t > & keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getChallengeOut | ( | ) | const |
Gets the new challenge value generated by the command
uint8_t keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getCurrentKVC | ( | ) | const |
Gets the current SV KVC
const std::shared_ptr< SvDebitLogRecord > keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getDebitLog | ( | ) | const |
Gets a keyple::calypso::transaction::SvDebitLogRecord containing the last debit record
May return null if the debit record is not available (load case for PO rev < 3.2)
const std::shared_ptr< SvLoadLogRecord > keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getLoadLog | ( | ) | const |
Gets a keyple::calypso::transaction::SvLoadLogRecord containing the load record
May return null if the load record is not available (debit/undebit case for PO rev < 3.2)
const std::vector< uint8_t > & keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getPreviousSignatureLo | ( | ) | const |
Gets the SignatureLo value of the last SV transaction (reload, debit, undebit)
|
overrideprotectedvirtual |
Reimplemented from keyple::core::command::AbstractApduResponseParser.
const std::vector< uint8_t > & keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getSvGetCommandHeader | ( | ) | const |
Gets the command header used to build the prepare load/debit/undebit SAM commands
int keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getTransactionNumber | ( | ) | const |
Gets the SV transaction number