Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | Protected Member Functions | List of all members
keyple::calypso::command::po::parser::storedvalue::SvGetRespPars Class Referencefinal

#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< SvLoadLogRecordgetLoadLog () const
 
const std::shared_ptr< SvDebitLogRecordgetDebitLog () const
 
- Public Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
 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
 
- Public Member Functions inherited from keyple::core::command::AbstractApduResponseParser
 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< ApduResponsegetApduResponse () const
 
virtual bool isSuccessful () const
 
std::string getStatusInformation () const
 

Protected Member Functions

const std::map< int, std::shared_ptr< StatusProperties > > & getStatusTable () const override
 
- Protected Member Functions inherited from keyple::calypso::command::po::AbstractPoResponseParser
const KeypleSeCommandException buildCommandException (const std::type_info &exceptionClass, const std::string &message, const std::shared_ptr< SeCommand > commandRef, const int statusCode) const override
 
- Protected Member Functions inherited from keyple::core::command::AbstractApduResponseParser
virtual const std::shared_ptr< SeCommandgetCommandRef () const
 

Additional Inherited Members

- Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
std::shared_ptr< ApduResponsemResponse
 
AbstractApduCommandBuildermBuilder
 
- Static Protected Attributes inherited from keyple::core::command::AbstractApduResponseParser
static const std::map< int, std::shared_ptr< StatusProperties > > STATUS_TABLE
 

Detailed Description

SV Get (007C) response parser. See specs: Calypso

Constructor & Destructor Documentation

◆ SvGetRespPars()

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.

Parameters
svCommandHeaderthe SvGet command header bytes
responseresponse to parse
builderthe reference to the builder that created this parser

Member Function Documentation

◆ getBalance()

int keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getBalance ( ) const

Gets the current SV balance

Returns
the value of the SV balance

◆ getChallengeOut()

const std::vector< uint8_t > & keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getChallengeOut ( ) const

Gets the new challenge value generated by the command

Returns
a byte array containing the challenge

◆ getCurrentKVC()

uint8_t keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getCurrentKVC ( ) const

Gets the current SV KVC

Returns
the value of the current KVC

◆ getDebitLog()

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)

Returns
a keyple::calypso::transaction::SvDebitLogRecord object containing the log data or null

◆ getLoadLog()

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)

Returns
a keyple::calypso::transaction::SvLoadLogRecord object containing the log data or null

◆ getPreviousSignatureLo()

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)

Returns
a byte array containing the signature data

◆ getStatusTable()

const std::map< int, std::shared_ptr< StatusProperties > > & keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getStatusTable ( ) const
overrideprotectedvirtual
Returns
the internal status table

Reimplemented from keyple::core::command::AbstractApduResponseParser.

◆ getSvGetCommandHeader()

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

Returns
a byte array containing the header data

◆ getTransactionNumber()

int keyple::calypso::command::po::parser::storedvalue::SvGetRespPars::getTransactionNumber ( ) const

Gets the SV transaction number

Returns
the value of the SV transaction number

The documentation for this class was generated from the following files: