Open-Transactions
0.93.0-ge03d287
|
#include <OTRecord.hpp>
Public Types | |
enum | OTRecordType { Mail = 0, Transfer, Receipt, Instrument, ErrorState } |
Public Member Functions | |
EXPORT void | SetSpecialMail (bool bIsSpecial=true) |
EXPORT bool | IsSpecialMail () const |
EXPORT bool | IsPending () const |
EXPORT bool | IsOutgoing () const |
EXPORT bool | IsRecord () const |
EXPORT bool | IsReceipt () const |
EXPORT bool | IsMail () const |
EXPORT bool | IsTransfer () const |
EXPORT bool | IsCheque () const |
EXPORT bool | IsInvoice () const |
EXPORT bool | IsVoucher () const |
EXPORT bool | IsContract () const |
EXPORT bool | IsPaymentPlan () const |
EXPORT bool | IsCash () const |
EXPORT bool | HasContents () const |
EXPORT bool | HasMemo () const |
EXPORT bool | IsExpired () const |
EXPORT bool | IsCanceled () const |
EXPORT void | SetExpired () |
EXPORT void | SetCanceled () |
EXPORT time64_t | GetValidFrom () const |
EXPORT time64_t | GetValidTo () const |
EXPORT void | SetDateRange (time64_t tValidFrom, time64_t tValidTo) |
EXPORT bool | CanDeleteRecord () const |
EXPORT bool | CanAcceptIncoming () const |
EXPORT bool | CanDiscardIncoming () const |
EXPORT bool | CanCancelOutgoing () const |
EXPORT bool | CanDiscardOutgoingCash () const |
EXPORT bool | CancelOutgoing (std::string str_via_acct) const |
EXPORT bool | AcceptIncomingInstrument (const std::string &str_into_acct) const |
EXPORT bool | AcceptIncomingTransfer () const |
EXPORT bool | AcceptIncomingReceipt () const |
EXPORT bool | DiscardIncoming () const |
EXPORT bool | DeleteRecord () const |
EXPORT bool | DiscardOutgoingCash () const |
EXPORT int32_t | GetBoxIndex () const |
EXPORT void | SetBoxIndex (int32_t nBoxIndex) |
EXPORT int32_t | GetMethodID () const |
EXPORT void | SetMethodID (int32_t nMethodID) |
EXPORT const std::string & | GetMsgID () const |
EXPORT void | SetMsgID (const std::string &str_id) |
EXPORT const std::string & | GetMsgType () const |
EXPORT void | SetMsgType (const std::string &str_type) |
EXPORT const std::string & | GetMsgTypeDisplay () const |
EXPORT void | SetMsgTypeDisplay (const std::string &str_type) |
EXPORT int64_t | GetTransactionNum () const |
EXPORT void | SetTransactionNum (int64_t lTransNum) |
EXPORT int64_t | GetTransNumForDisplay () const |
EXPORT void | SetTransNumForDisplay (int64_t lTransNum) |
EXPORT OTRecordType | GetRecordType () const |
EXPORT const std::string & | GetServerID () const |
EXPORT const std::string & | GetAssetID () const |
EXPORT const std::string & | GetCurrencyTLA () const |
EXPORT const std::string & | GetNymID () const |
EXPORT const std::string & | GetAccountID () const |
EXPORT const std::string & | GetAddress () const |
EXPORT const std::string & | GetOtherNymID () const |
EXPORT const std::string & | GetOtherAccountID () const |
EXPORT const std::string & | GetOtherAddress () const |
EXPORT const std::string & | GetName () const |
EXPORT const std::string & | GetDate () const |
EXPORT const std::string & | GetAmount () const |
EXPORT const std::string & | GetInstrumentType () const |
EXPORT const std::string & | GetMemo () const |
EXPORT const std::string & | GetContents () const |
EXPORT void | SetOtherNymID (const std::string &str_ID) |
EXPORT void | SetOtherAccountID (const std::string &str_ID) |
EXPORT void | SetAddress (const std::string &str_Address) |
EXPORT void | SetOtherAddress (const std::string &str_Address) |
EXPORT void | SetMemo (const std::string &str_memo) |
EXPORT void | SetContents (const std::string &str_contents) |
EXPORT bool | HasInitialPayment () const |
EXPORT bool | HasPaymentPlan () const |
EXPORT time64_t | GetInitialPaymentDate () const |
EXPORT time64_t | GetPaymentPlanStartDate () const |
EXPORT time64_t | GetTimeBetweenPayments () const |
EXPORT int64_t | GetInitialPaymentAmount () const |
EXPORT int64_t | GetPaymentPlanAmount () const |
EXPORT int32_t | GetMaximumNoPayments () const |
EXPORT bool | FormatAmount (std::string &str_output) const |
EXPORT bool | FormatDescription (std::string &str_output) const |
EXPORT bool | FormatShortMailDescription (std::string &str_output) const |
EXPORT bool | FormatMailSubject (std::string &str_output) const |
bool | operator< (const OTRecord &rhs) |
OTRecord (const std::string &str_server_id, const std::string &str_asset_id, const std::string &str_currency_tla, const std::string &str_nym_id, const std::string &str_account_id, const std::string &str_name, const std::string &str_date, const std::string &str_amount, const std::string &str_type, bool bIsPending, bool bIsOutgoing, bool bIsRecord, bool bIsReceipt, OTRecordType eRecordType) | |
Definition at line 141 of file OTRecord.hpp.
Enumerator | |
---|---|
Transfer | |
Receipt | |
Instrument | |
ErrorState |
Definition at line 144 of file OTRecord.hpp.
opentxs::OTRecord::OTRecord | ( | const std::string & | str_server_id, |
const std::string & | str_asset_id, | ||
const std::string & | str_currency_tla, | ||
const std::string & | str_nym_id, | ||
const std::string & | str_account_id, | ||
const std::string & | str_name, | ||
const std::string & | str_date, | ||
const std::string & | str_amount, | ||
const std::string & | str_type, | ||
bool | bIsPending, | ||
bool | bIsOutgoing, | ||
bool | bIsRecord, | ||
bool | bIsReceipt, | ||
OTRecordType | eRecordType | ||
) |
Definition at line 1389 of file OTRecord.cpp.
bool opentxs::OTRecord::AcceptIncomingInstrument | ( | const std::string & | str_into_acct | ) | const |
Definition at line 854 of file OTRecord.cpp.
bool opentxs::OTRecord::AcceptIncomingReceipt | ( | ) | const |
Definition at line 780 of file OTRecord.cpp.
bool opentxs::OTRecord::AcceptIncomingTransfer | ( | ) | const |
Definition at line 776 of file OTRecord.cpp.
bool opentxs::OTRecord::CanAcceptIncoming | ( | ) | const |
Definition at line 546 of file OTRecord.cpp.
bool opentxs::OTRecord::CanCancelOutgoing | ( | ) | const |
Definition at line 618 of file OTRecord.cpp.
bool opentxs::OTRecord::CancelOutgoing | ( | std::string | str_via_acct | ) | const |
Definition at line 1016 of file OTRecord.cpp.
bool opentxs::OTRecord::CanDeleteRecord | ( | ) | const |
Definition at line 532 of file OTRecord.cpp.
bool opentxs::OTRecord::CanDiscardIncoming | ( | ) | const |
Definition at line 578 of file OTRecord.cpp.
bool opentxs::OTRecord::CanDiscardOutgoingCash | ( | ) | const |
Definition at line 601 of file OTRecord.cpp.
bool opentxs::OTRecord::DeleteRecord | ( | ) | const |
Definition at line 655 of file OTRecord.cpp.
bool opentxs::OTRecord::DiscardIncoming | ( | ) | const |
Definition at line 924 of file OTRecord.cpp.
bool opentxs::OTRecord::DiscardOutgoingCash | ( | ) | const |
Definition at line 646 of file OTRecord.cpp.
bool opentxs::OTRecord::FormatAmount | ( | std::string & | str_output | ) | const |
Definition at line 153 of file OTRecord.cpp.
bool opentxs::OTRecord::FormatDescription | ( | std::string & | str_output | ) | const |
Definition at line 235 of file OTRecord.cpp.
bool opentxs::OTRecord::FormatMailSubject | ( | std::string & | str_output | ) | const |
Definition at line 167 of file OTRecord.cpp.
bool opentxs::OTRecord::FormatShortMailDescription | ( | std::string & | str_output | ) | const |
Definition at line 198 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetAccountID | ( | ) | const |
Definition at line 1221 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetAddress | ( | ) | const |
Definition at line 1265 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetAmount | ( | ) | const |
Definition at line 1241 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetAssetID | ( | ) | const |
Definition at line 1209 of file OTRecord.cpp.
int32_t opentxs::OTRecord::GetBoxIndex | ( | ) | const |
Definition at line 1313 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetContents | ( | ) | const |
Definition at line 1253 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetCurrencyTLA | ( | ) | const |
Definition at line 1213 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetDate | ( | ) | const |
Definition at line 1237 of file OTRecord.cpp.
int64_t opentxs::OTRecord::GetInitialPaymentAmount | ( | ) | const |
Definition at line 467 of file OTRecord.cpp.
time64_t opentxs::OTRecord::GetInitialPaymentDate | ( | ) | const |
Definition at line 455 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetInstrumentType | ( | ) | const |
Definition at line 1245 of file OTRecord.cpp.
int32_t opentxs::OTRecord::GetMaximumNoPayments | ( | ) | const |
Definition at line 515 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetMemo | ( | ) | const |
Definition at line 1249 of file OTRecord.cpp.
int32_t opentxs::OTRecord::GetMethodID | ( | ) | const |
Definition at line 1261 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetMsgID | ( | ) | const |
Definition at line 1273 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetMsgType | ( | ) | const |
Definition at line 1277 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetMsgTypeDisplay | ( | ) | const |
Definition at line 1281 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetName | ( | ) | const |
Definition at line 1233 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetNymID | ( | ) | const |
Definition at line 1217 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetOtherAccountID | ( | ) | const |
Definition at line 1229 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetOtherAddress | ( | ) | const |
Definition at line 1269 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetOtherNymID | ( | ) | const |
Definition at line 1225 of file OTRecord.cpp.
int64_t opentxs::OTRecord::GetPaymentPlanAmount | ( | ) | const |
Definition at line 503 of file OTRecord.cpp.
time64_t opentxs::OTRecord::GetPaymentPlanStartDate | ( | ) | const |
Definition at line 479 of file OTRecord.cpp.
OTRecord::OTRecordType opentxs::OTRecord::GetRecordType | ( | ) | const |
Definition at line 526 of file OTRecord.cpp.
const std::string & opentxs::OTRecord::GetServerID | ( | ) | const |
Definition at line 1205 of file OTRecord.cpp.
time64_t opentxs::OTRecord::GetTimeBetweenPayments | ( | ) | const |
Definition at line 491 of file OTRecord.cpp.
int64_t opentxs::OTRecord::GetTransactionNum | ( | ) | const |
Definition at line 1142 of file OTRecord.cpp.
int64_t opentxs::OTRecord::GetTransNumForDisplay | ( | ) | const |
Definition at line 1151 of file OTRecord.cpp.
time64_t opentxs::OTRecord::GetValidFrom | ( | ) | const |
Definition at line 1368 of file OTRecord.cpp.
time64_t opentxs::OTRecord::GetValidTo | ( | ) | const |
Definition at line 1372 of file OTRecord.cpp.
bool opentxs::OTRecord::HasContents | ( | ) | const |
Definition at line 1189 of file OTRecord.cpp.
bool opentxs::OTRecord::HasInitialPayment | ( | ) | const |
Definition at line 431 of file OTRecord.cpp.
bool opentxs::OTRecord::HasMemo | ( | ) | const |
Definition at line 1193 of file OTRecord.cpp.
bool opentxs::OTRecord::HasPaymentPlan | ( | ) | const |
Definition at line 443 of file OTRecord.cpp.
bool opentxs::OTRecord::IsCanceled | ( | ) | const |
Definition at line 1201 of file OTRecord.cpp.
bool opentxs::OTRecord::IsCash | ( | ) | const |
Definition at line 990 of file OTRecord.cpp.
bool opentxs::OTRecord::IsCheque | ( | ) | const |
Definition at line 998 of file OTRecord.cpp.
bool opentxs::OTRecord::IsContract | ( | ) | const |
Definition at line 1006 of file OTRecord.cpp.
bool opentxs::OTRecord::IsExpired | ( | ) | const |
Definition at line 1197 of file OTRecord.cpp.
bool opentxs::OTRecord::IsInvoice | ( | ) | const |
Definition at line 994 of file OTRecord.cpp.
bool opentxs::OTRecord::IsMail | ( | ) | const |
Definition at line 1169 of file OTRecord.cpp.
bool opentxs::OTRecord::IsOutgoing | ( | ) | const |
Definition at line 1177 of file OTRecord.cpp.
bool opentxs::OTRecord::IsPaymentPlan | ( | ) | const |
Definition at line 1010 of file OTRecord.cpp.
bool opentxs::OTRecord::IsPending | ( | ) | const |
Definition at line 1173 of file OTRecord.cpp.
bool opentxs::OTRecord::IsReceipt | ( | ) | const |
Definition at line 1185 of file OTRecord.cpp.
bool opentxs::OTRecord::IsRecord | ( | ) | const |
Definition at line 1181 of file OTRecord.cpp.
bool opentxs::OTRecord::IsSpecialMail | ( | ) | const |
Definition at line 1257 of file OTRecord.cpp.
bool opentxs::OTRecord::IsTransfer | ( | ) | const |
Definition at line 986 of file OTRecord.cpp.
bool opentxs::OTRecord::IsVoucher | ( | ) | const |
Definition at line 1002 of file OTRecord.cpp.
bool opentxs::OTRecord::operator< | ( | const OTRecord & | rhs | ) |
Definition at line 1385 of file OTRecord.cpp.
void opentxs::OTRecord::SetAddress | ( | const std::string & | str_Address | ) |
Definition at line 1293 of file OTRecord.cpp.
void opentxs::OTRecord::SetBoxIndex | ( | int32_t | nBoxIndex | ) |
Definition at line 1317 of file OTRecord.cpp.
void opentxs::OTRecord::SetCanceled | ( | ) |
Definition at line 1165 of file OTRecord.cpp.
void opentxs::OTRecord::SetContents | ( | const std::string & | str_contents | ) |
Definition at line 1333 of file OTRecord.cpp.
Definition at line 1376 of file OTRecord.cpp.
void opentxs::OTRecord::SetExpired | ( | ) |
Definition at line 1161 of file OTRecord.cpp.
void opentxs::OTRecord::SetMemo | ( | const std::string & | str_memo | ) |
Definition at line 1321 of file OTRecord.cpp.
void opentxs::OTRecord::SetMethodID | ( | int32_t | nMethodID | ) |
Definition at line 1289 of file OTRecord.cpp.
void opentxs::OTRecord::SetMsgID | ( | const std::string & | str_id | ) |
Definition at line 1301 of file OTRecord.cpp.
void opentxs::OTRecord::SetMsgType | ( | const std::string & | str_type | ) |
Definition at line 1305 of file OTRecord.cpp.
void opentxs::OTRecord::SetMsgTypeDisplay | ( | const std::string & | str_type | ) |
Definition at line 1309 of file OTRecord.cpp.
void opentxs::OTRecord::SetOtherAccountID | ( | const std::string & | str_ID | ) |
Definition at line 1329 of file OTRecord.cpp.
void opentxs::OTRecord::SetOtherAddress | ( | const std::string & | str_Address | ) |
Definition at line 1297 of file OTRecord.cpp.
void opentxs::OTRecord::SetOtherNymID | ( | const std::string & | str_ID | ) |
Definition at line 1325 of file OTRecord.cpp.
void opentxs::OTRecord::SetSpecialMail | ( | bool | bIsSpecial = true | ) |
Definition at line 1285 of file OTRecord.cpp.
void opentxs::OTRecord::SetTransactionNum | ( | int64_t | lTransNum | ) |
Definition at line 1147 of file OTRecord.cpp.
void opentxs::OTRecord::SetTransNumForDisplay | ( | int64_t | lTransNum | ) |
Definition at line 1157 of file OTRecord.cpp.