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.
132 lines
3.2 KiB
C++
132 lines
3.2 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.
|
|
*/
|
|
|
|
/*
|
|
* TreasuryReport.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_TreasuryReport_H_
|
|
#define HANZO_MODEL_TreasuryReport_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/SharePolicy.h"
|
|
#include <map>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class SharePolicy;
|
|
|
|
|
|
class TreasuryReport
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
TreasuryReport();
|
|
virtual ~TreasuryReport();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// TreasuryReport members
|
|
|
|
|
|
/// <summary>
|
|
/// lifetime revenue-share into the fund
|
|
/// </summary>
|
|
int64_t getAccruedCents() const;
|
|
bool accruedCentsIsSet() const;
|
|
void unsetAccruedCents();
|
|
void setAccruedCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// program → lifetime paid
|
|
/// </summary>
|
|
std::map<utility::string_t, int64_t> getByProgramCents() const;
|
|
bool byProgramCentsIsSet() const;
|
|
void unsetByProgramCents();
|
|
void setByProgramCents(std::map<utility::string_t, int64_t> value);
|
|
|
|
/// <summary>
|
|
/// lifetime backed payouts out of the fund
|
|
/// </summary>
|
|
int64_t getPaidCents() const;
|
|
bool paidCentsIsSet() const;
|
|
void unsetPaidCents();
|
|
void setPaidCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// current revenue-share policy
|
|
/// </summary>
|
|
std::shared_ptr<SharePolicy> getPolicy() const;
|
|
bool policyIsSet() const;
|
|
void unsetPolicy();
|
|
void setPolicy(const std::shared_ptr<SharePolicy>& value);
|
|
|
|
/// <summary>
|
|
/// fund:reserve balance (available now)
|
|
/// </summary>
|
|
int64_t getReserveCents() const;
|
|
bool reserveCentsIsSet() const;
|
|
void unsetReserveCents();
|
|
void setReserveCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// reserve > 0: at least some payout is backable
|
|
/// </summary>
|
|
bool isSolventForPayout() const;
|
|
bool solventForPayoutIsSet() const;
|
|
void unsetSolventForPayout();
|
|
void setSolventForPayout(bool value);
|
|
|
|
|
|
protected:
|
|
int64_t m_AccruedCents;
|
|
bool m_AccruedCentsIsSet;
|
|
|
|
std::map<utility::string_t, int64_t> m_ByProgramCents;
|
|
bool m_ByProgramCentsIsSet;
|
|
|
|
int64_t m_PaidCents;
|
|
bool m_PaidCentsIsSet;
|
|
|
|
std::shared_ptr<SharePolicy> m_Policy;
|
|
bool m_PolicyIsSet;
|
|
|
|
int64_t m_ReserveCents;
|
|
bool m_ReserveCentsIsSet;
|
|
|
|
bool m_SolventForPayout;
|
|
bool m_SolventForPayoutIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_TreasuryReport_H_ */
|