Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
CmdCardSvReload.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/* Keyple Card Calypso */
20#include "AbstractApduCommand.h"
21#include "AbstractCardCommand.h"
22#include "CalypsoCardClass.h"
23
24namespace keyple {
25namespace card {
26namespace calypso {
27
29
62public:
80 CmdCardSvReload(const CalypsoCardClass calypsoCardClass,
81 const int amount,
82 const uint8_t kvc,
83 const std::vector<uint8_t>& date,
84 const std::vector<uint8_t>& time,
85 const std::vector<uint8_t>& free,
86 const bool isExtendedModeAllowed);
87
105 void finalizeCommand(const std::vector<uint8_t>& reloadComplementaryData);
106
114 const std::vector<uint8_t> getSvReloadData() const;
115
122 bool isSessionBufferUsed() const override;
123
132 CmdCardSvReload& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse) override;
133
143 const std::vector<uint8_t> getSignatureLo() const;
144
150 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
151 override;
152
153private:
157 static const CalypsoCardCommand mCommand;
158
162 static const int SV_POSTPONED_DATA_IN_SESSION;
163
167 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
168
172 CalypsoCardClass mCalypsoCardClass;
173
177 bool mIsExtendedModeAllowed = false;
178
182 std::vector<uint8_t> mDataIn;
183
187 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
188};
189
190}
191}
192}
CmdCardSvReload(const CalypsoCardClass calypsoCardClass, const int amount, const uint8_t kvc, const std::vector< uint8_t > &date, const std::vector< uint8_t > &time, const std::vector< uint8_t > &free, const bool isExtendedModeAllowed)
const std::vector< uint8_t > getSvReloadData() const
const std::vector< uint8_t > getSignatureLo() const
CmdCardSvReload & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
void finalizeCommand(const std::vector< uint8_t > &reloadComplementaryData)
AbstractApduCommand::StatusProperties StatusProperties