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

109 lines
3.1 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.
*/
/*
* RedeemResult.h
*
*
*/
#ifndef HANZO_MODEL_RedeemResult_H_
#define HANZO_MODEL_RedeemResult_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include "hanzo/model/Redemption.h"
namespace hanzo {
namespace model {
class Redemption;
class RedeemResult
: public ModelBase
{
public:
RedeemResult();
virtual ~RedeemResult();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// RedeemResult members
/// <summary>
/// AlreadyRedeemed is true when this org had already taken the promo and the call was an idempotent replay.
/// </summary>
bool isAlreadyRedeemed() const;
bool alreadyRedeemedIsSet() const;
void unsetAlreadyRedeemed();
void setAlreadyRedeemed(bool value);
/// <summary>
/// ChargeCents is what month one costs after the discount, DiscountCents the discount that produced it. Both are quoted figures against the org&#39;s derived plan — NOTHING WAS CREDITED and no wallet moved.
/// </summary>
int64_t getChargeCents() const;
bool chargeCentsIsSet() const;
void unsetChargeCents();
void setChargeCents(int64_t value);
/// <summary>
/// DiscountCents is the discount claimed for month one, in USD cents, at the single-seat floor. It is the same figure recorded on the Redemption, and it is evidence an admin may later grant against — not a balance.
/// </summary>
int64_t getDiscountCents() const;
bool discountCentsIsSet() const;
void unsetDiscountCents();
void setDiscountCents(int64_t value);
/// <summary>
/// Redemption is the row that was recorded — the org&#39;s claim on this promo, with the server-derived plan and seat count. On a replay it is the ORIGINAL row, so its redeemedAt is when the org first took the promo, not now.
/// </summary>
std::shared_ptr<Redemption> getRedemption() const;
bool redemptionIsSet() const;
void unsetRedemption();
void setRedemption(const std::shared_ptr<Redemption>& value);
protected:
bool m_AlreadyRedeemed;
bool m_AlreadyRedeemedIsSet;
int64_t m_ChargeCents;
bool m_ChargeCentsIsSet;
int64_t m_DiscountCents;
bool m_DiscountCentsIsSet;
std::shared_ptr<Redemption> m_Redemption;
bool m_RedemptionIsSet;
};
}
}
#endif /* HANZO_MODEL_RedeemResult_H_ */