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

141 lines
4.2 KiB
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 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.
*/
/*
* CodeView.h
*
*
*/
#ifndef HANZO_MODEL_CodeView_H_
#define HANZO_MODEL_CodeView_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
namespace hanzo {
namespace model {
class CodeView
: public ModelBase
{
public:
CodeView();
virtual ~CodeView();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// CodeView members
/// <summary>
/// Clicks is how many pings this code has taken. The one STORED counter here and pure vanity: no accrual or payout reads it, pings are coalesced in memory and flushed in batches, and a dropped tally is accepted rather than contending with the money write path. Do not reconcile it against anything.
/// </summary>
int64_t getClicks() const;
bool clicksIsSet() const;
void unsetClicks();
void setClicks(int64_t value);
/// <summary>
/// Code is the link&#39;s slug — 3–32 chars of a–z, 0–9 and hyphen — unique across the WHOLE directory, so any affiliate&#39;s code resolves an attribution.
/// </summary>
utility::string_t getCode() const;
bool codeIsSet() const;
void unsetCode();
void setCode(const utility::string_t& value);
/// <summary>
/// Conversions is how many of those signups have actually produced positive commission for the caller. Also derived, from the accrual rows, so it is ≤ signups and lags a referral until the first sweep after it spends.
/// </summary>
int64_t getConversions() const;
bool conversionsIsSet() const;
void unsetConversions();
void setConversions(int64_t value);
/// <summary>
/// CreatedAt is when the link was minted, Unix seconds UTC.
/// </summary>
int64_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(int64_t value);
/// <summary>
/// Label is the caller&#39;s own note for the link (\&quot;twitter\&quot;, \&quot;newsletter\&quot;). Cosmetic: trimmed, stripped of control characters, capped at 48 bytes, and never part of the code. \&quot;primary\&quot; on the link mirrored at approval.
/// </summary>
utility::string_t getLabel() const;
bool labelIsSet() const;
void unsetLabel();
void setLabel(const utility::string_t& value);
/// <summary>
/// Signups is how many orgs were attributed with this code — DERIVED by counting attribution edges, never stored, so it cannot drift from the ledger.
/// </summary>
int64_t getSignups() const;
bool signupsIsSet() const;
void unsetSignups();
void setSignups(int64_t value);
/// <summary>
/// URL is the full shareable link, the brand host plus ?aff&#x3D;&lt;code&gt;. The host is the deployment&#39;s own brand, so a Lux or Zoo install never mints a hanzo.ai link.
/// </summary>
utility::string_t getUrl() const;
bool urlIsSet() const;
void unsetUrl();
void setUrl(const utility::string_t& value);
protected:
int64_t m_Clicks;
bool m_ClicksIsSet;
utility::string_t m_Code;
bool m_CodeIsSet;
int64_t m_Conversions;
bool m_ConversionsIsSet;
int64_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Label;
bool m_LabelIsSet;
int64_t m_Signups;
bool m_SignupsIsSet;
utility::string_t m_Url;
bool m_UrlIsSet;
};
}
}
#endif /* HANZO_MODEL_CodeView_H_ */