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

#include <SvDebitLogRecord.h>

Public Member Functions

 SvDebitLogRecord (const std::vector< uint8_t > &poResponse, const int offset)
 
int getAmount () const
 
int getBalance () const
 
int getDebitTime () const
 
const std::vector< uint8_t > getDebitTimeBytes () const
 
int getDebitDate () const
 
const std::vector< uint8_t > getDebitDateBytes () 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 debit log.

Since
0.9

Constructor & Destructor Documentation

◆ SvDebitLogRecord()

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

Constructor

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

Member Function Documentation

◆ getAmount()

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

Gets the debit amount

Returns
the amount value
Since
0.9

◆ getBalance()

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

Gets the SV balance

Returns
the balance value
Since
0.9

◆ getDebitDate()

int keyple::calypso::transaction::SvDebitLogRecord::getDebitDate ( ) const

Gets the debit date

Returns
the date value as an int
Since
0.9

◆ getDebitDateBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvDebitLogRecord::getDebitDateBytes ( ) const

Gets the debit date

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

◆ getDebitTime()

int keyple::calypso::transaction::SvDebitLogRecord::getDebitTime ( ) const

Gets the debit time

Returns
the time value as an int
Since
0.9

◆ getDebitTimeBytes()

const std::vector< uint8_t > keyple::calypso::transaction::SvDebitLogRecord::getDebitTimeBytes ( ) const

Gets the debit time

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

◆ getKvc()

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

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

Returns
the KVC value
Since
0.9

◆ getSamId()

uint32_t keyple::calypso::transaction::SvDebitLogRecord::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::SvDebitLogRecord::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::SvDebitLogRecord::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::SvDebitLogRecord::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::SvDebitLogRecord::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::SvDebitLogRecord::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::SvDebitLogRecord::toString ( ) const
Returns
a JSON formatted string with the load log content

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