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.
218 lines
5.9 KiB
C++
218 lines
5.9 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.
|
|
*/
|
|
|
|
/*
|
|
* CaptableShareClass.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_CaptableShareClass_H_
|
|
#define HANZO_MODEL_CaptableShareClass_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class CaptableShareClass
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
CaptableShareClass();
|
|
virtual ~CaptableShareClass();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// CaptableShareClass members
|
|
|
|
|
|
/// <summary>
|
|
/// ClassType is COMMON or PREFERRED.
|
|
/// </summary>
|
|
utility::string_t getClassType() const;
|
|
bool classTypeIsSet() const;
|
|
void unsetClassType();
|
|
void setClassType(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// CompanyName is the name of the company whose cap table this is.
|
|
/// </summary>
|
|
utility::string_t getCompanyName() const;
|
|
bool companyNameIsSet() const;
|
|
void unsetCompanyName();
|
|
void setCompanyName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ConversionRights describes what the class converts into, e.g. CONVERTS_TO_FUTURE_ROUND.
|
|
/// </summary>
|
|
utility::string_t getConversionRights() const;
|
|
bool conversionRightsIsSet() const;
|
|
void unsetConversionRights();
|
|
void setConversionRights(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ID is the share class id.
|
|
/// </summary>
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Idx is the class's 1-based position within the company, in creation order.
|
|
/// </summary>
|
|
int64_t getIdx() const;
|
|
bool idxIsSet() const;
|
|
void unsetIdx();
|
|
void setIdx(int64_t value);
|
|
|
|
/// <summary>
|
|
/// InitialSharesAuthorized is how many shares of this class are authorized.
|
|
/// </summary>
|
|
int64_t getInitialSharesAuthorized() const;
|
|
bool initialSharesAuthorizedIsSet() const;
|
|
void unsetInitialSharesAuthorized();
|
|
void setInitialSharesAuthorized(int64_t value);
|
|
|
|
/// <summary>
|
|
/// LiquidationPreferenceMultiple is the preference multiple on liquidation.
|
|
/// </summary>
|
|
double getLiquidationPreferenceMultiple() const;
|
|
bool liquidationPreferenceMultipleIsSet() const;
|
|
void unsetLiquidationPreferenceMultiple();
|
|
void setLiquidationPreferenceMultiple(double value);
|
|
|
|
/// <summary>
|
|
/// Name is the class name, e.g. \"Common\" or \"Series A Preferred\".
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// ParValue is the par value per share.
|
|
/// </summary>
|
|
double getParValue() const;
|
|
bool parValueIsSet() const;
|
|
void unsetParValue();
|
|
void setParValue(double value);
|
|
|
|
/// <summary>
|
|
/// ParticipationCapMultiple caps participation on liquidation; 0 is uncapped.
|
|
/// </summary>
|
|
double getParticipationCapMultiple() const;
|
|
bool participationCapMultipleIsSet() const;
|
|
void unsetParticipationCapMultiple();
|
|
void setParticipationCapMultiple(double value);
|
|
|
|
/// <summary>
|
|
/// Prefix is the certificate prefix, CS for common and PS for preferred.
|
|
/// </summary>
|
|
utility::string_t getPrefix() const;
|
|
bool prefixIsSet() const;
|
|
void unsetPrefix();
|
|
void setPrefix(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// PricePerShare is the issue price per share.
|
|
/// </summary>
|
|
double getPricePerShare() const;
|
|
bool pricePerShareIsSet() const;
|
|
void unsetPricePerShare();
|
|
void setPricePerShare(double value);
|
|
|
|
/// <summary>
|
|
/// Seniority orders classes in a liquidation waterfall; higher is more senior.
|
|
/// </summary>
|
|
int64_t getSeniority() const;
|
|
bool seniorityIsSet() const;
|
|
void unsetSeniority();
|
|
void setSeniority(int64_t value);
|
|
|
|
/// <summary>
|
|
/// VotesPerShare is how many votes one share of this class carries.
|
|
/// </summary>
|
|
int64_t getVotesPerShare() const;
|
|
bool votesPerShareIsSet() const;
|
|
void unsetVotesPerShare();
|
|
void setVotesPerShare(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_ClassType;
|
|
bool m_ClassTypeIsSet;
|
|
|
|
utility::string_t m_CompanyName;
|
|
bool m_CompanyNameIsSet;
|
|
|
|
utility::string_t m_ConversionRights;
|
|
bool m_ConversionRightsIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
int64_t m_Idx;
|
|
bool m_IdxIsSet;
|
|
|
|
int64_t m_InitialSharesAuthorized;
|
|
bool m_InitialSharesAuthorizedIsSet;
|
|
|
|
double m_LiquidationPreferenceMultiple;
|
|
bool m_LiquidationPreferenceMultipleIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
double m_ParValue;
|
|
bool m_ParValueIsSet;
|
|
|
|
double m_ParticipationCapMultiple;
|
|
bool m_ParticipationCapMultipleIsSet;
|
|
|
|
utility::string_t m_Prefix;
|
|
bool m_PrefixIsSet;
|
|
|
|
double m_PricePerShare;
|
|
bool m_PricePerShareIsSet;
|
|
|
|
int64_t m_Seniority;
|
|
bool m_SeniorityIsSet;
|
|
|
|
int64_t m_VotesPerShare;
|
|
bool m_VotesPerShareIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_CaptableShareClass_H_ */
|