Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
The projection these were generated from was a month old and predated the
compute migration, so every one of them described /v1/visor — which the API
serves at zero paths now. That is why a hand-written console client and a
generated one had drifted the same way at the same time.

No /v1/visor path survives here. The word still appears as a source-plane
value and inside gvisor and supervisor, which are not this rename.
2026-09-05 18:07:13 -07:00

163 lines
4.4 KiB
C++

/**
* Hanzo Cloud API
* The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
*
* The version of the OpenAPI document: v1
*
* NOTE: This class is auto generated by OpenAPI-Generator 7.14.0.
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/*
* GLRow.h
*
*
*/
#ifndef HANZO_MODEL_GLRow_H_
#define HANZO_MODEL_GLRow_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class GLRow
: public ModelBase
{
public:
GLRow();
virtual ~GLRow();
/////////////////////////////////////////////
/// ModelBase overrides
void validate() override;
web::json::value toJson() const override;
bool fromJson(const web::json::value& json) override;
void toMultipart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) const override;
bool fromMultiPart(std::shared_ptr<MultipartFormData> multipart, const utility::string_t& namePrefix) override;
/////////////////////////////////////////////
/// GLRow members
/// <summary>
/// Account is the chart-of-accounts number this leg posts to.
/// </summary>
utility::string_t getAccount() const;
bool accountIsSet() const;
void unsetAccount();
void setAccount(const utility::string_t& value);
/// <summary>
/// Against names the OTHER accounts in the same voucher — the contra side of this leg — so a single row reads as an entry rather than as half of one.
/// </summary>
utility::string_t getAgainst() const;
bool againstIsSet() const;
void unsetAgainst();
void setAgainst(const utility::string_t& value);
/// <summary>
/// Credit is the amount credited to that account, in whole cents.
/// </summary>
int64_t getCredit() const;
bool creditIsSet() const;
void unsetCredit();
void setCredit(int64_t value);
/// <summary>
/// Debit is the amount debited to that account, in whole cents. Exactly one of debit and credit is non-zero on a leg; a negative amount is never used to mean the other side.
/// </summary>
int64_t getDebit() const;
bool debitIsSet() const;
void unsetDebit();
void setDebit(int64_t value);
/// <summary>
/// ID is the entry&#39;s position in the ledger. The ledger is append-only, so ids ascend with posting order and a higher id is a later entry.
/// </summary>
int64_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(int64_t value);
/// <summary>
/// PostingAt is the accounting date this entry belongs to — what the reports window on, which need not be when the row was written.
/// </summary>
utility::string_t getPostingAt() const;
bool postingAtIsSet() const;
void unsetPostingAt();
void setPostingAt(const utility::string_t& value);
/// <summary>
/// Remarks is the memo carried onto the entry, for a human reading the ledger.
/// </summary>
utility::string_t getRemarks() const;
bool remarksIsSet() const;
void unsetRemarks();
void setRemarks(const utility::string_t& value);
/// <summary>
/// SourceID identifies that originating record within its kind.
/// </summary>
utility::string_t getSourceId() const;
bool sourceIdIsSet() const;
void unsetSourceId();
void setSourceId(const utility::string_t& value);
/// <summary>
/// SourceKind is what caused the posting: a bank line, a scanned document, a commerce sale. With sourceId it traces the entry back to the thing that produced it.
/// </summary>
utility::string_t getSourceKind() const;
bool sourceKindIsSet() const;
void unsetSourceKind();
void setSourceKind(const utility::string_t& value);
protected:
utility::string_t m_Account;
bool m_AccountIsSet;
utility::string_t m_Against;
bool m_AgainstIsSet;
int64_t m_Credit;
bool m_CreditIsSet;
int64_t m_Debit;
bool m_DebitIsSet;
int64_t m_Id;
bool m_IdIsSet;
utility::string_t m_PostingAt;
bool m_PostingAtIsSet;
utility::string_t m_Remarks;
bool m_RemarksIsSet;
utility::string_t m_SourceId;
bool m_SourceIdIsSet;
utility::string_t m_SourceKind;
bool m_SourceKindIsSet;
};
}
}
#endif /* HANZO_MODEL_GLRow_H_ */