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

168 lines
4.5 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.
*/
/*
* Spend.h
*
*
*/
#ifndef HANZO_MODEL_Spend_H_
#define HANZO_MODEL_Spend_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/SpendPoint.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/CategorySpend.h"
#include <vector>
namespace hanzo {
namespace model {
class CategorySpend;
class SpendPoint;
class Spend
: public ModelBase
{
public:
Spend();
virtual ~Spend();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Spend members
/// <summary>
/// Available is false when the commerce ledger was unconfigured or unreachable. Every number below is then an honest zero, NOT a measured one.
/// </summary>
bool isAvailable() const;
bool availableIsSet() const;
void unsetAvailable();
void setAvailable(bool value);
/// <summary>
/// AvailableCents is what of that balance is still spendable.
/// </summary>
int64_t getAvailableCents() const;
bool availableCentsIsSet() const;
void unsetAvailableCents();
void setAvailableCents(int64_t value);
/// <summary>
/// BalanceCents is the prepaid wallet&#39;s balance, in US cents.
/// </summary>
int64_t getBalanceCents() const;
bool balanceCentsIsSet() const;
void unsetBalanceCents();
void setBalanceCents(int64_t value);
/// <summary>
/// ByCategory is the window&#39;s spend split by ledger category, largest first.
/// </summary>
std::vector<std::shared_ptr<CategorySpend>> getByCategory() const;
bool byCategoryIsSet() const;
void unsetByCategory();
void setByCategory(const std::vector<std::shared_ptr<CategorySpend>>& value);
/// <summary>
/// MTDCents is commerce&#39;s authoritative month-to-date consumed figure, which is a different period from the window and is not derived from it.
/// </summary>
int64_t getMtdCents() const;
bool mtdCentsIsSet() const;
void unsetMtdCents();
void setMtdCents(int64_t value);
/// <summary>
/// OverageCents is month-to-date consumption beyond the plan&#39;s allowance.
/// </summary>
int64_t getOverageCents() const;
bool overageCentsIsSet() const;
void unsetOverageCents();
void setOverageCents(int64_t value);
/// <summary>
/// Series is the window&#39;s spend over time, gap-filled at the window&#39;s interval.
/// </summary>
std::vector<std::shared_ptr<SpendPoint>> getSeries() const;
bool seriesIsSet() const;
void unsetSeries();
void setSeries(const std::vector<std::shared_ptr<SpendPoint>>& value);
/// <summary>
/// Source names where the roll-up came from.
/// </summary>
utility::string_t getSource() const;
bool sourceIsSet() const;
void unsetSource();
void setSource(const utility::string_t& value);
/// <summary>
/// TotalCents is consumption over the requested window, in US cents. It is self-consistent with ByCategory and Series.
/// </summary>
int64_t getTotalCents() const;
bool totalCentsIsSet() const;
void unsetTotalCents();
void setTotalCents(int64_t value);
protected:
bool m_Available;
bool m_AvailableIsSet;
int64_t m_AvailableCents;
bool m_AvailableCentsIsSet;
int64_t m_BalanceCents;
bool m_BalanceCentsIsSet;
std::vector<std::shared_ptr<CategorySpend>> m_ByCategory;
bool m_ByCategoryIsSet;
int64_t m_MtdCents;
bool m_MtdCentsIsSet;
int64_t m_OverageCents;
bool m_OverageCentsIsSet;
std::vector<std::shared_ptr<SpendPoint>> m_Series;
bool m_SeriesIsSet;
utility::string_t m_Source;
bool m_SourceIsSet;
int64_t m_TotalCents;
bool m_TotalCentsIsSet;
};
}
}
#endif /* HANZO_MODEL_Spend_H_ */