add compact tariff tests
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#include "mobilisis/compact_api.h"
|
||||
namespace Mobilisis {
|
||||
bool compactStayQuote(CompactEngine &engine, const QString &product,
|
||||
const QDateTime &entry, const QDateTime &end, CompactChoice "e, qint64 &paidSeconds)
|
||||
{
|
||||
return engine.quoteStay(product, entry, end, quote, paidSeconds);
|
||||
}
|
||||
bool loadCompactTariff(CompactEngine &engine, const QString &path)
|
||||
{
|
||||
return engine.load(path);
|
||||
}
|
||||
bool compactTicketChoices(CompactEngine &engine, const QString &product,
|
||||
const QDateTime &start, QVector<CompactChoice> &choices)
|
||||
{
|
||||
return engine.choices(product, start, choices);
|
||||
}
|
||||
bool compactPaymentChoice(CompactEngine &engine, const QString &product,
|
||||
const QDateTime &start, const QVector<CompactChoice> &choices, qint64 amount,
|
||||
CompactChoice &choice, int &index, bool &dayTicket)
|
||||
{
|
||||
return engine.paymentChoice(product, start, choices, amount, choice, index, dayTicket);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user