Keypop Calypso Card C++ API - 2.1.2
Component of the Keypop C++ API
SvDebitLogRecord.hpp
Go to the documentation of this file.
1
2/******************************************************************************
3 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
4 * *
5 * This program and the accompanying materials are made available under the *
6 * terms of the MIT License which is available at *
7 * https://opensource.org/licenses/MIT. *
8 * *
9 * SPDX-License-Identifier: MIT *
10 ******************************************************************************/
11
12#pragma once
13
14#include <cstdint>
15#include <vector>
16
17namespace keypop {
18namespace calypso {
19namespace card {
20namespace card {
21
28public:
35 virtual const std::vector<std::uint8_t>& getRawData() const = 0;
36
43 virtual std::vector<std::uint8_t> getDebitDate() const = 0;
44
51 virtual std::vector<std::uint8_t> getDebitTime() const = 0;
52
59 virtual int getAmount() const = 0;
60
67 virtual int getBalance() const = 0;
68
75 virtual uint8_t getKvc() const = 0;
76
83 virtual std::vector<uint8_t> getSamId() const = 0;
84
91 virtual int getSamTNum() const = 0;
92
99 virtual int getSvTNum() const = 0;
100};
101
102} /* namespace card */
103} /* namespace card */
104} /* namespace calypso */
105} /* namespace keypop */
Record of a Stored Value debit log.
virtual int getSvTNum() const =0
Gets the SV transaction number value as an int.
virtual int getBalance() const =0
Gets the SV balance value.
virtual std::vector< uint8_t > getSamId() const =0
Gets the SAM ID as an array of bytes.
virtual uint8_t getKvc() const =0
Gets the KVC of the debit key (as given in the last SV Debit)
virtual const std::vector< std::uint8_t > & getRawData() const =0
Gets the raw data of the SV debit log record.
virtual int getSamTNum() const =0
Gets the SAM transaction number value as an int.
virtual std::vector< std::uint8_t > getDebitTime() const =0
Gets the debit time as an array of bytes.
virtual std::vector< std::uint8_t > getDebitDate() const =0
Gets the debit date as an array of bytes.
virtual int getAmount() const =0
Gets the debit amount value.