Keyple C++  0.9.0
Keyple, an Open Source SDK for Ticketing
Public Member Functions | List of all members
keyple::calypso::transaction::SvLoadLogRecord Class Reference

#include <SvLoadLogRecord.h>

Public Member Functions

 SvLoadLogRecord (const std::vector< uint8_t > &poResponse, const int offset)
 
int getAmount () const
 
int getBalance () const
 
int getLoadTime () const
 
const std::vector< uint8_t > getLoadTimeBytes () const
 
int getLoadDate () const
 
const std::vector< uint8_t > getLoadDateBytes () const
 
std::string getFreeByte () const
 
const std::vector< uint8_t > getFreeByteBytes () const
 
uint8_t getKvc () const
 
uint32_t getSamId () const
 
const std::vector< uint8_t > getSamIdBytes () const
 
int getSvTNum () const
 
const std::vector< uint8_t > getSvTNumBytes () const
 
int getSamTNum () const
 
const std::vector< uint8_t > getSamTNumBytes () const
 
const std::string toString () const
 

Detailed Description

The class

contains the data of a Stored Value load log.

Since
0.9

Constructor & Destructor Documentation

◆ SvLoadLogRecord()

keyple::calypso::transaction::SvLoadLogRecord::SvLoadLogRecord ( const std::vector< uint8_t > &  poResponse,
const int  offset 
)

Constructor

Parameters
poResponsethe Sv Get or Read Record (SV Debit log file) response data
offsetthe load log offset in the response (may change from a PO to another)

Member Function Documentation

◆ getAmount()

int keyple::calypso::transaction::SvLoadLogRecord::getAmount ( ) const

Gets the load amount

Returns
the amount value
Since
0.9

◆ getBalance()

int keyple::calypso::transaction::SvLoadLogRecord::getBalance ( ) const

Gets the SV balance

Returns
the balance value
Since
0.9

◆ getFreeByte()

std::string keyple::calypso::transaction::SvLoadLogRecord::getFreeByte ( ) const

Gets the free bytes as a String

Returns
the free value as an Ascii string
Since
0.9

◆ getFreeByteBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getFreeByteBytes ( ) const

Gets the free bytes

Returns
the free value as a 2-byte byte array
Since
0.9

◆ getKvc()

uint8_t keyple::calypso::transaction::SvLoadLogRecord::getKvc ( ) const

Gets the KVC of the load key (as given in the last SV Reload)

Returns
the KVC value
Since
0.9

◆ getLoadDate()

int keyple::calypso::transaction::SvLoadLogRecord::getLoadDate ( ) const

Gets the load date

Returns
the date value as an int
Since
0.9

◆ getLoadDateBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getLoadDateBytes ( ) const

Gets the load date

Returns
the date value as a 2-byte byte array
Since
0.9

◆ getLoadTime()

int keyple::calypso::transaction::SvLoadLogRecord::getLoadTime ( ) const

Gets the load time

Returns
the time value as an int
Since
0.9

◆ getLoadTimeBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getLoadTimeBytes ( ) const

Gets the load time

Returns
the time value as a 2-byte byte array
Since
0.9

◆ getSamId()

uint32_t keyple::calypso::transaction::SvLoadLogRecord::getSamId ( ) const

Gets the SAM ID

Returns
the SAM ID value as an int
Since
0.9

◆ getSamIdBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getSamIdBytes ( ) const

Gets the SAM ID

Returns
the SAM ID value as a 4-byte byte array
Since
0.9

◆ getSamTNum()

int keyple::calypso::transaction::SvLoadLogRecord::getSamTNum ( ) const

Gets the SAM transaction number

Returns
the SAM transaction number value as an int
Since
0.9

◆ getSamTNumBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getSamTNumBytes ( ) const

Gets the SAM transaction number

Returns
the SAM transaction number value as a 3-byte byte array
Since
0.9

◆ getSvTNum()

int keyple::calypso::transaction::SvLoadLogRecord::getSvTNum ( ) const

Gets the SV transaction number

Returns
the SV transaction number value as an int
Since
0.9

◆ getSvTNumBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvLoadLogRecord::getSvTNumBytes ( ) const

Gets the SV transaction number

Returns
the SV transaction number value as a 2-byte byte array
Since
0.9

◆ toString()

const std::string keyple::calypso::transaction::SvLoadLogRecord::toString ( ) const
Returns
a JSON formatted string with the debit log content

The documentation for this class was generated from the following files:
keyple::calypso::transaction::SvLoadLogRecord::SvLoadLogRecord
SvLoadLogRecord(const std::vector< uint8_t > &poResponse, const int offset)
Definition: SvLoadLogRecord.cpp:30