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.
254 lines
6.4 KiB
C++
254 lines
6.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.
|
||
*/
|
||
|
||
/*
|
||
* MetricsResponse.h
|
||
*
|
||
*
|
||
*/
|
||
|
||
#ifndef HANZO_MODEL_MetricsResponse_H_
|
||
#define HANZO_MODEL_MetricsResponse_H_
|
||
|
||
#include <boost/optional.hpp>
|
||
|
||
#include "hanzo/ModelBase.h"
|
||
|
||
#include "hanzo/model/Figure.h"
|
||
#include <cpprest/details/basic_types.h>
|
||
#include <vector>
|
||
|
||
namespace hanzo {
|
||
namespace model {
|
||
|
||
class Figure;
|
||
|
||
|
||
class MetricsResponse
|
||
: public ModelBase
|
||
{
|
||
public:
|
||
MetricsResponse();
|
||
virtual ~MetricsResponse();
|
||
|
||
/////////////////////////////////////////////
|
||
/// 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;
|
||
|
||
|
||
/////////////////////////////////////////////
|
||
/// MetricsResponse members
|
||
|
||
|
||
/// <summary>
|
||
/// ARR is annualized recurring revenue in cents (MRR × 12).
|
||
/// </summary>
|
||
int64_t getArr() const;
|
||
bool arrIsSet() const;
|
||
void unsetArr();
|
||
void setArr(int64_t value);
|
||
|
||
/// <summary>
|
||
/// Burn is total expense in cents over the period.
|
||
/// </summary>
|
||
int64_t getBurn() const;
|
||
bool burnIsSet() const;
|
||
void unsetBurn();
|
||
void setBurn(int64_t value);
|
||
|
||
/// <summary>
|
||
/// Cash is the bank + processor-clearing balance in cents as of To.
|
||
/// </summary>
|
||
int64_t getCash() const;
|
||
bool cashIsSet() const;
|
||
void unsetCash();
|
||
void setCash(int64_t value);
|
||
|
||
/// <summary>
|
||
/// COGS is cost of goods sold in cents over the period.
|
||
/// </summary>
|
||
int64_t getCogs() const;
|
||
bool cogsIsSet() const;
|
||
void unsetCogs();
|
||
void setCogs(int64_t value);
|
||
|
||
/// <summary>
|
||
/// DeferredRevenue is the customer-wallet liability in cents as of To.
|
||
/// </summary>
|
||
int64_t getDeferredRevenue() const;
|
||
bool deferredRevenueIsSet() const;
|
||
void unsetDeferredRevenue();
|
||
void setDeferredRevenue(int64_t value);
|
||
|
||
/// <summary>
|
||
/// Figures is the same snapshot rendered through books' one money formatter.
|
||
/// </summary>
|
||
std::vector<std::shared_ptr<Figure>> getFigures() const;
|
||
bool figuresIsSet() const;
|
||
void unsetFigures();
|
||
void setFigures(const std::vector<std::shared_ptr<Figure>>& value);
|
||
|
||
/// <summary>
|
||
/// From is the RFC3339 start of the reporting window, exclusive; absent for all time.
|
||
/// </summary>
|
||
utility::string_t getFrom() const;
|
||
bool fromIsSet() const;
|
||
void unsetFrom();
|
||
void setFrom(const utility::string_t& value);
|
||
|
||
/// <summary>
|
||
/// GrossMarginBps is GrossProfit / Revenue in basis points (7000 = 70%).
|
||
/// </summary>
|
||
int64_t getGrossMarginBps() const;
|
||
bool grossMarginBpsIsSet() const;
|
||
void unsetGrossMarginBps();
|
||
void setGrossMarginBps(int64_t value);
|
||
|
||
/// <summary>
|
||
/// GrossProfit is Revenue − COGS, in cents.
|
||
/// </summary>
|
||
int64_t getGrossProfit() const;
|
||
bool grossProfitIsSet() const;
|
||
void unsetGrossProfit();
|
||
void setGrossProfit(int64_t value);
|
||
|
||
/// <summary>
|
||
/// MonthlyBurn is net cash burned per month in cents; 0 when not losing cash.
|
||
/// </summary>
|
||
int64_t getMonthlyBurn() const;
|
||
bool monthlyBurnIsSet() const;
|
||
void unsetMonthlyBurn();
|
||
void setMonthlyBurn(int64_t value);
|
||
|
||
/// <summary>
|
||
/// Months is the window length in whole months used to normalize MRR and burn.
|
||
/// </summary>
|
||
int64_t getMonths() const;
|
||
bool monthsIsSet() const;
|
||
void unsetMonths();
|
||
void setMonths(int64_t value);
|
||
|
||
/// <summary>
|
||
/// MRR is monthly recurring revenue in cents.
|
||
/// </summary>
|
||
int64_t getMrr() const;
|
||
bool mrrIsSet() const;
|
||
void unsetMrr();
|
||
void setMrr(int64_t value);
|
||
|
||
/// <summary>
|
||
/// NetIncome is Revenue − Burn, in cents.
|
||
/// </summary>
|
||
int64_t getNetIncome() const;
|
||
bool netIncomeIsSet() const;
|
||
void unsetNetIncome();
|
||
void setNetIncome(int64_t value);
|
||
|
||
/// <summary>
|
||
/// Period is the human window label, e.g. \"2026-07\" or \"all-time\".
|
||
/// </summary>
|
||
utility::string_t getPeriod() const;
|
||
bool periodIsSet() const;
|
||
void unsetPeriod();
|
||
void setPeriod(const utility::string_t& value);
|
||
|
||
/// <summary>
|
||
/// Revenue is recognized revenue in cents over the period.
|
||
/// </summary>
|
||
int64_t getRevenue() const;
|
||
bool revenueIsSet() const;
|
||
void unsetRevenue();
|
||
void setRevenue(int64_t value);
|
||
|
||
/// <summary>
|
||
/// RunwayMonths is Cash / MonthlyBurn; -1 means infinite (the org is not burning).
|
||
/// </summary>
|
||
int64_t getRunwayMonths() const;
|
||
bool runwayMonthsIsSet() const;
|
||
void unsetRunwayMonths();
|
||
void setRunwayMonths(int64_t value);
|
||
|
||
/// <summary>
|
||
/// To is the RFC3339 end of the reporting window, inclusive; absent for up to now.
|
||
/// </summary>
|
||
utility::string_t getTo() const;
|
||
bool toIsSet() const;
|
||
void unsetTo();
|
||
void setTo(const utility::string_t& value);
|
||
|
||
|
||
protected:
|
||
int64_t m_Arr;
|
||
bool m_ArrIsSet;
|
||
|
||
int64_t m_Burn;
|
||
bool m_BurnIsSet;
|
||
|
||
int64_t m_Cash;
|
||
bool m_CashIsSet;
|
||
|
||
int64_t m_Cogs;
|
||
bool m_CogsIsSet;
|
||
|
||
int64_t m_DeferredRevenue;
|
||
bool m_DeferredRevenueIsSet;
|
||
|
||
std::vector<std::shared_ptr<Figure>> m_Figures;
|
||
bool m_FiguresIsSet;
|
||
|
||
utility::string_t m_From;
|
||
bool m_FromIsSet;
|
||
|
||
int64_t m_GrossMarginBps;
|
||
bool m_GrossMarginBpsIsSet;
|
||
|
||
int64_t m_GrossProfit;
|
||
bool m_GrossProfitIsSet;
|
||
|
||
int64_t m_MonthlyBurn;
|
||
bool m_MonthlyBurnIsSet;
|
||
|
||
int64_t m_Months;
|
||
bool m_MonthsIsSet;
|
||
|
||
int64_t m_Mrr;
|
||
bool m_MrrIsSet;
|
||
|
||
int64_t m_NetIncome;
|
||
bool m_NetIncomeIsSet;
|
||
|
||
utility::string_t m_Period;
|
||
bool m_PeriodIsSet;
|
||
|
||
int64_t m_Revenue;
|
||
bool m_RevenueIsSet;
|
||
|
||
int64_t m_RunwayMonths;
|
||
bool m_RunwayMonthsIsSet;
|
||
|
||
utility::string_t m_To;
|
||
bool m_ToIsSet;
|
||
|
||
};
|
||
|
||
|
||
}
|
||
}
|
||
|
||
#endif /* HANZO_MODEL_MetricsResponse_H_ */
|