Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardSvUndebit.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2022 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#pragma once
14
15#include <cstdint>
16#include <map>
17#include <vector>
18
19/* Calypsonet Terminal Calypso */
20#include "CalypsoCard.h"
21
22/* Keyple Card Calypso */
23#include "AbstractApduCommand.h"
24#include "AbstractCardCommand.h"
25
26namespace keyple {
27namespace card {
28namespace calypso {
29
30using namespace calypsonet::terminal::calypso::card;
31
33
79public:
92 CmdCardSvUndebit(const std::shared_ptr<CalypsoCard> calypsoCard,
93 const int amount,
94 const uint8_t kvc,
95 const std::vector<uint8_t>& date,
96 const std::vector<uint8_t>& time);
97
114 void finalizeCommand(const std::vector<uint8_t>& undebitComplementaryData);
115
123 const std::vector<uint8_t> getSvUndebitData() const;
124
131 bool isSessionBufferUsed() const override;
132
141 CmdCardSvUndebit& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse) override;
142
151 const std::vector<uint8_t> getSignatureLo() const;
152
158 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
159 override;
160
161private:
165 static const CalypsoCardCommand mCommand;
166
170 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
171
175 std::shared_ptr<CalypsoCard> mCalypsoCard;
176
180 std::vector<uint8_t> mDataIn;
181
185 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
186};
187
188}
189}
190}
void finalizeCommand(const std::vector< uint8_t > &undebitComplementaryData)
CmdCardSvUndebit & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::vector< uint8_t > getSvUndebitData() const
CmdCardSvUndebit(const std::shared_ptr< CalypsoCard > calypsoCard, const int amount, const uint8_t kvc, const std::vector< uint8_t > &date, const std::vector< uint8_t > &time)
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
const std::vector< uint8_t > getSignatureLo() const
AbstractApduCommand::StatusProperties StatusProperties