133 #ifndef OPENTXS_CLIENT_OTRECORD_HPP
134 #define OPENTXS_CLIENT_OTRECORD_HPP
150 const std::string& m_str_server_id;
151 const std::string& m_str_asset_id;
152 const std::string& m_str_currency_tla;
153 const std::string& m_str_nym_id;
154 const std::string& m_str_account_id;
155 std::string m_str_other_nym_id;
156 std::string m_str_other_account_id;
157 std::string m_str_name;
158 std::string m_str_date;
159 std::string m_str_amount;
160 std::string m_str_type;
161 std::string m_str_memo;
165 std::string m_str_contents;
177 bool m_bIsSpecialMail;
182 std::string m_str_my_address;
183 std::string m_str_other_address;
185 std::string m_str_msg_id;
187 std::string m_str_msg_type;
188 std::string m_str_msg_type_display;
193 int64_t m_lTransactionNum;
194 int64_t m_lTransNumForDisplay;
199 bool m_bIsPaymentPlan;
200 bool m_bIsSmartContract;
208 bool AcceptIncomingTransferOrReceipt()
const;
217 EXPORT
bool IsMail()
const;
224 EXPORT
bool IsCash()
const;
254 const std::string& str_into_acct)
const;
277 EXPORT
const std::string&
GetMsgID()
const;
278 EXPORT
void SetMsgID(
const std::string& str_id);
280 EXPORT
void SetMsgType(
const std::string& str_type);
297 EXPORT
const std::string&
GetNymID()
const;
309 EXPORT
const std::string&
GetName()
const;
310 EXPORT
const std::string&
GetDate()
const;
311 EXPORT
const std::string&
GetAmount()
const;
313 EXPORT
const std::string&
GetMemo()
const;
317 EXPORT
void SetAddress(
const std::string& str_Address);
322 EXPORT
void SetMemo(
const std::string& str_memo);
323 EXPORT
void SetContents(
const std::string& str_contents);
338 EXPORT
bool FormatAmount(std::string& str_output)
const;
343 OTRecord(
const std::string& str_server_id,
const std::string& str_asset_id,
344 const std::string& str_currency_tla,
const std::string& str_nym_id,
345 const std::string& str_account_id,
const std::string& str_name,
346 const std::string& str_date,
const std::string& str_amount,
347 const std::string& str_type,
bool bIsPending,
bool bIsOutgoing,
348 bool bIsRecord,
bool bIsReceipt,
OTRecordType eRecordType);
353 #endif // OPENTXS_CLIENT_OTRECORD_HPP
EXPORT bool HasPaymentPlan() const
EXPORT const std::string & GetMsgType() const
EXPORT int64_t GetPaymentPlanAmount() const
EXPORT bool IsCheque() const
EXPORT const std::string & GetCurrencyTLA() const
EXPORT time64_t GetValidFrom() const
EXPORT int32_t GetMaximumNoPayments() const
EXPORT bool CanAcceptIncoming() const
EXPORT time64_t GetTimeBetweenPayments() const
EXPORT int64_t GetInitialPaymentAmount() const
EXPORT bool CanDeleteRecord() const
EXPORT void SetContents(const std::string &str_contents)
EXPORT int64_t GetTransactionNum() const
EXPORT void SetTransactionNum(int64_t lTransNum)
EXPORT bool IsSpecialMail() const
EXPORT const std::string & GetOtherAddress() const
EXPORT bool DiscardOutgoingCash() const
EXPORT void SetSpecialMail(bool bIsSpecial=true)
EXPORT bool IsMail() const
EXPORT bool IsOutgoing() const
EXPORT const std::string & GetMsgTypeDisplay() const
EXPORT void SetDateRange(time64_t tValidFrom, time64_t tValidTo)
EXPORT const std::string & GetAccountID() const
EXPORT time64_t GetInitialPaymentDate() const
EXPORT bool IsCash() const
EXPORT int32_t GetBoxIndex() const
EXPORT void SetMsgTypeDisplay(const std::string &str_type)
EXPORT bool FormatDescription(std::string &str_output) const
EXPORT time64_t GetValidTo() const
EXPORT void SetTransNumForDisplay(int64_t lTransNum)
EXPORT bool HasMemo() const
EXPORT void SetOtherAddress(const std::string &str_Address)
EXPORT const std::string & GetOtherAccountID() const
EXPORT OTRecordType GetRecordType() const
EXPORT bool FormatMailSubject(std::string &str_output) const
EXPORT bool FormatShortMailDescription(std::string &str_output) const
EXPORT bool IsTransfer() const
EXPORT void SetMemo(const std::string &str_memo)
EXPORT bool HasInitialPayment() const
EXPORT void SetMsgID(const std::string &str_id)
EXPORT bool IsRecord() const
EXPORT const std::string & GetAmount() const
EXPORT bool IsCanceled() const
EXPORT time64_t GetPaymentPlanStartDate() const
EXPORT const std::string & GetMemo() const
EXPORT void SetOtherNymID(const std::string &str_ID)
EXPORT const std::string & GetAssetID() const
EXPORT const std::string & GetDate() const
EXPORT bool IsInvoice() const
EXPORT bool IsExpired() const
EXPORT void SetBoxIndex(int32_t nBoxIndex)
bool operator<(const OTRecord &rhs)
EXPORT bool FormatAmount(std::string &str_output) const
EXPORT const std::string & GetMsgID() const
EXPORT bool CanCancelOutgoing() const
EXPORT bool IsPaymentPlan() const
EXPORT bool AcceptIncomingInstrument(const std::string &str_into_acct) const
EXPORT const std::string & GetContents() const
EXPORT bool HasContents() const
EXPORT const std::string & GetInstrumentType() const
EXPORT bool CanDiscardIncoming() const
EXPORT bool IsPending() const
EXPORT bool CanDiscardOutgoingCash() const
EXPORT bool IsReceipt() const
EXPORT bool AcceptIncomingTransfer() const
EXPORT int32_t GetMethodID() const
EXPORT bool DiscardIncoming() const
EXPORT void SetCanceled()
EXPORT void SetMethodID(int32_t nMethodID)
EXPORT void SetAddress(const std::string &str_Address)
EXPORT const std::string & GetOtherNymID() const
EXPORT bool AcceptIncomingReceipt() const
EXPORT bool DeleteRecord() const
EXPORT int64_t GetTransNumForDisplay() const
EXPORT const std::string & GetAddress() const
EXPORT const std::string & GetName() const
EXPORT const std::string & GetNymID() const
EXPORT bool CancelOutgoing(std::string str_via_acct) const
EXPORT bool IsVoucher() const
EXPORT const std::string & GetServerID() const
EXPORT void SetMsgType(const std::string &str_type)
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)
EXPORT void SetOtherAccountID(const std::string &str_ID)
EXPORT bool IsContract() const