133 #ifndef OPENTXS_CORE_SCRIPT_OTAGENT_HPP
134 #define OPENTXS_CORE_SCRIPT_OTAGENT_HPP
136 #include "../OTString.hpp"
146 class OTPartyAccount;
148 class OTSmartContract;
150 typedef std::map<std::string, OTPseudonym*>
mapOfNyms;
167 bool m_bNymRepresentsSelf;
170 bool m_bIsAnIndividual;
213 bool bNymRepresentsSelf =
true);
219 OTAgent(
bool bNymRepresentsSelf,
bool bIsAnIndividual,
252 const int64_t& lNumber,
const OTString& strServerID,
442 const int64_t& lNewTransactionNumber,
451 const OTIdentifier& theAccountID,
const int64_t& lNewTransactionNumber,
452 const int64_t& lClosingNumber,
const OTString& strOrigCronItem,
458 const int64_t& lNewTransactionNumber,
const int64_t& lInReferenceTo,
465 #endif // OPENTXS_CORE_SCRIPT_OTAGENT_HPP
void RetrieveNymPointer(mapOfNyms &map_Nyms_Already_Loaded)
bool DropServerNoticeToNymbox(bool bSuccessMsg, OTPseudonym &theServerNym, const OTIdentifier &theServerID, const int64_t &lNewTransactionNumber, const int64_t &lInReferenceTo, const OTString &strReference, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr)
bool DoesRepresentAnEntity() const
void ClearTemporaryPointers()
bool ReserveOpeningTransNum(const OTString &strServerID)
bool VerifySignature(const OTContract &theContract) const
EXPORT bool GetNymID(OTIdentifier &theOutput) const
void SetNymPointer(OTPseudonym &theNym)
int32_t GetCountAuthorizedAccts()
bool ReserveClosingTransNum(const OTString &strServerID, OTPartyAccount &thePartyAcct)
bool GetSignerID(OTIdentifier &theOutput) const
bool GetRoleID(OTIdentifier &theOutput) const
OTPseudonym * LoadNym(OTPseudonym &theServerNym)
bool VerifyTransactionNumber(const int64_t &lNumber, const OTString &strServerID)
std::map< std::string, OTPseudonym * > mapOfNyms
EXPORT bool IsValidSignerID(const OTIdentifier &theNymID)
bool RemoveIssuedNumber(const int64_t &lNumber, const OTString &strServerID, bool bSave=false, OTPseudonym *pSignerNym=nullptr)
EXPORT bool SignContract(OTContract &theInput) const
bool GetEntityID(OTIdentifier &theOutput) const
EXPORT bool IsValidSigner(OTPseudonym &theNym)
EXPORT const OTString & GetName()
bool VerifyIssuedNumber(const int64_t &lNumber, const OTString &strServerID)
bool DropFinalReceiptToInbox(mapOfNyms *pNymMap, const OTString &strServerID, OTPseudonym &theServerNym, OTSmartContract &theSmartContract, const OTIdentifier &theAccountID, const int64_t &lNewTransactionNumber, const int64_t &lClosingNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr)
bool GetGroupName(OTString &strGroupName)
bool HarvestTransactionNumber(const int64_t &lNumber, const OTString &strServerID, bool bSave=false, OTPseudonym *pSignerNym=nullptr)
bool DoesRepresentHimself() const
bool DropFinalReceiptToNymbox(OTSmartContract &theSmartContract, const int64_t &lNewTransactionNumber, const OTString &strOrigCronItem, OTString *pstrNote=nullptr, OTString *pstrAttachment=nullptr, OTPseudonym *pActualNym=nullptr)
EXPORT bool IsAnIndividual() const
bool GetPartyID(OTIdentifier &theOutput) const
void SetParty(OTParty &theOwnerParty)
bool VerifyAgencyOfAccount(const OTAccount &theAccount) const
void Serialize(OTString &strAppend) const
bool RemoveTransactionNumber(const int64_t &lNumber, const OTString &strServerID, OTPseudonym &SIGNER_NYM, bool bSave=true)
OTParty * GetParty() const
bool IsAuthorizingAgentForParty()