mirror of
https://github.com/hanzo-cpp/sdk.git
synced 2026-11-20 19:55:32 +00:00
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.
155 lines
4.7 KiB
C++
155 lines
4.7 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.
|
|
*/
|
|
|
|
/*
|
|
* BalanceSheet.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_BalanceSheet_H_
|
|
#define HANZO_MODEL_BalanceSheet_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/BalanceLine.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class BalanceLine;
|
|
|
|
|
|
class BalanceSheet
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
BalanceSheet();
|
|
virtual ~BalanceSheet();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// BalanceSheet members
|
|
|
|
|
|
/// <summary>
|
|
/// AsOf is the posting time the statement is taken at, inclusive. A balance sheet is a snapshot, not a window, so there is no From. Absent means as of now.
|
|
/// </summary>
|
|
utility::string_t getAsOf() const;
|
|
bool asOfIsSet() const;
|
|
void unsetAsOf();
|
|
void setAsOf(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Assets are what the org OWNS at that instant, one line per account that has a balance. Cash, receivables, funds captured but not yet settled.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<BalanceLine>> getAssets() const;
|
|
bool assetsIsSet() const;
|
|
void unsetAssets();
|
|
void setAssets(const std::vector<std::shared_ptr<BalanceLine>>& value);
|
|
|
|
/// <summary>
|
|
/// Balanced is whether assets equal liabilities plus equity — the accounting equation, computed from the totals above rather than assumed. False means the ledger is broken, not that the statement is.
|
|
/// </summary>
|
|
bool isBalanced() const;
|
|
bool balancedIsSet() const;
|
|
void unsetBalanced();
|
|
void setBalanced(bool value);
|
|
|
|
/// <summary>
|
|
/// Equity is what is left over for the owners. It carries a DERIVED retained earnings line holding cumulative income minus expense, because this ledger has no period close that sweeps the P&L into equity — without that line the equation would not close.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<BalanceLine>> getEquity() const;
|
|
bool equityIsSet() const;
|
|
void unsetEquity();
|
|
void setEquity(const std::vector<std::shared_ptr<BalanceLine>>& value);
|
|
|
|
/// <summary>
|
|
/// Liabilities are what the org OWES — including customers' unspent prepaid credit, which is their money until it is consumed and so is carried here rather than counted as revenue.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<BalanceLine>> getLiabilities() const;
|
|
bool liabilitiesIsSet() const;
|
|
void unsetLiabilities();
|
|
void setLiabilities(const std::vector<std::shared_ptr<BalanceLine>>& value);
|
|
|
|
/// <summary>
|
|
/// TotalAssets is the sum of the asset lines, in cents.
|
|
/// </summary>
|
|
int64_t getTotalAssets() const;
|
|
bool totalAssetsIsSet() const;
|
|
void unsetTotalAssets();
|
|
void setTotalAssets(int64_t value);
|
|
|
|
/// <summary>
|
|
/// TotalEquity is the sum of the equity lines including retained earnings, in cents.
|
|
/// </summary>
|
|
int64_t getTotalEquity() const;
|
|
bool totalEquityIsSet() const;
|
|
void unsetTotalEquity();
|
|
void setTotalEquity(int64_t value);
|
|
|
|
/// <summary>
|
|
/// TotalLiabilities is the sum of the liability lines, in cents.
|
|
/// </summary>
|
|
int64_t getTotalLiabilities() const;
|
|
bool totalLiabilitiesIsSet() const;
|
|
void unsetTotalLiabilities();
|
|
void setTotalLiabilities(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_AsOf;
|
|
bool m_AsOfIsSet;
|
|
|
|
std::vector<std::shared_ptr<BalanceLine>> m_Assets;
|
|
bool m_AssetsIsSet;
|
|
|
|
bool m_Balanced;
|
|
bool m_BalancedIsSet;
|
|
|
|
std::vector<std::shared_ptr<BalanceLine>> m_Equity;
|
|
bool m_EquityIsSet;
|
|
|
|
std::vector<std::shared_ptr<BalanceLine>> m_Liabilities;
|
|
bool m_LiabilitiesIsSet;
|
|
|
|
int64_t m_TotalAssets;
|
|
bool m_TotalAssetsIsSet;
|
|
|
|
int64_t m_TotalEquity;
|
|
bool m_TotalEquityIsSet;
|
|
|
|
int64_t m_TotalLiabilities;
|
|
bool m_TotalLiabilitiesIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_BalanceSheet_H_ */
|