2026-10-06 15:39:17 +02:00
|
|
|
//SPDX-License-Identifier: LGPL-3.0-only
|
|
|
|
|
//SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
|
|
|
|
|
|
|
|
|
export module Nostro:Transaction;
|
|
|
|
|
|
|
|
|
|
import std;
|
|
|
|
|
import :Currency;
|
|
|
|
|
|
|
|
|
|
namespace Nostro {
|
|
|
|
|
export struct Transaction {
|
2026-10-31 20:50:57 +01:00
|
|
|
std::string name;
|
|
|
|
|
std::string bic;
|
|
|
|
|
std::string iban;
|
|
|
|
|
std::string description;
|
2026-10-06 15:39:17 +02:00
|
|
|
Currency currency;
|
|
|
|
|
std::int64_t amount;
|
2026-10-31 20:50:57 +01:00
|
|
|
std::chrono::system_clock::time_point timePoint;
|
|
|
|
|
|
|
|
|
|
Transaction();
|
|
|
|
|
Transaction(std::string&& name, std::string&& bic, std::string&& iban, std::string&& description, Currency currency, std::int64_t amount, std::chrono::system_clock::time_point timePoint);
|
2026-10-06 15:39:17 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|