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.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.
*/
/*
* Obligation.h
*
*
*/
#ifndef HANZO_MODEL_Obligation_H_
#define HANZO_MODEL_Obligation_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class Obligation
: public ModelBase
{
public:
Obligation();
virtual ~Obligation();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Obligation members
/// <summary>
/// AmountCents is what it costs each period.
/// </summary>
int64_t getAmountCents() const;
bool amountCentsIsSet() const;
void unsetAmountCents();
void setAmountCents(int64_t value);
/// <summary>
/// AsOf is when that amount was last checked against its source, RFC 3339 date.
/// </summary>
utility::string_t getAsOf() const;
bool asOfIsSet() const;
void unsetAsOf();
void setAsOf(const utility::string_t& value);
/// <summary>
/// Code names the obligation so a caller can branch without reading prose.
/// </summary>
utility::string_t getCode() const;
bool codeIsSet() const;
void unsetCode();
void setCode(const utility::string_t& value);
/// <summary>
/// Every is how often it falls due — \&quot;yearly\&quot; for every obligation known here.
/// </summary>
utility::string_t getEvery() const;
bool everyIsSet() const;
void unsetEvery();
void setEvery(const utility::string_t& value);
/// <summary>
/// Label is what the payer sees.
/// </summary>
utility::string_t getLabel() const;
bool labelIsSet() const;
void unsetLabel();
void setLabel(const utility::string_t& value);
/// <summary>
/// Minimum marks a floor rather than a fixed price — a franchise tax that scales with shares or assets is quoted at its minimum, and an entity past the threshold owes more. Saying so is the difference between a quote and a number someone later disputes.
/// </summary>
bool isMinimum() const;
bool minimumIsSet() const;
void unsetMinimum();
void setMinimum(bool value);
/// <summary>
/// PassThrough marks money we collect and remit to the state rather than keep.
/// </summary>
bool isPassThrough() const;
bool passThroughIsSet() const;
void unsetPassThrough();
void setPassThrough(bool value);
/// <summary>
/// Source names the authority that publishes a pass-through amount, so the figure can be checked without first working out who would know.
/// </summary>
utility::string_t getSource() const;
bool sourceIsSet() const;
void unsetSource();
void setSource(const utility::string_t& value);
/// <summary>
/// Stale reports that AsOf is older than the review window. It tells; it does not block.
/// </summary>
bool isStale() const;
bool staleIsSet() const;
void unsetStale();
void setStale(bool value);
protected:
int64_t m_AmountCents;
bool m_AmountCentsIsSet;
utility::string_t m_AsOf;
bool m_AsOfIsSet;
utility::string_t m_Code;
bool m_CodeIsSet;
utility::string_t m_Every;
bool m_EveryIsSet;
utility::string_t m_Label;
bool m_LabelIsSet;
bool m_Minimum;
bool m_MinimumIsSet;
bool m_PassThrough;
bool m_PassThroughIsSet;
utility::string_t m_Source;
bool m_SourceIsSet;
bool m_Stale;
bool m_StaleIsSet;
};
}
}
#endif /* HANZO_MODEL_Obligation_H_ */