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.
280 lines
8.0 KiB
C++
280 lines
8.0 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.
|
|
*/
|
|
|
|
/*
|
|
* Formation.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Formation_H_
|
|
#define HANZO_MODEL_Formation_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/Founder.h"
|
|
#include "hanzo/model/Genesis.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/Filing.h"
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class Filing;
|
|
class Founder;
|
|
class Genesis;
|
|
|
|
|
|
class Formation
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Formation();
|
|
virtual ~Formation();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Formation members
|
|
|
|
|
|
/// <summary>
|
|
/// AlreadyIncorporated declares an org that already has a legal entity, which takes the import path (structure → import → company) instead of forming one.
|
|
/// </summary>
|
|
bool isAlreadyIncorporated() const;
|
|
bool alreadyIncorporatedIsSet() const;
|
|
void unsetAlreadyIncorporated();
|
|
void setAlreadyIncorporated(bool value);
|
|
|
|
/// <summary>
|
|
/// CapTableImported reports whether the existing company's cap table has been imported onto the canonical cap table.
|
|
/// </summary>
|
|
bool isCapTableImported() const;
|
|
bool capTableImportedIsSet() const;
|
|
void unsetCapTableImported();
|
|
void setCapTableImported(bool value);
|
|
|
|
/// <summary>
|
|
/// CreatedAt is the unix second the formation was opened.
|
|
/// </summary>
|
|
int64_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(int64_t value);
|
|
|
|
/// <summary>
|
|
/// DocumentIDs are the data room ids of the GENERATED formation documents.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getDocumentIds() const;
|
|
bool documentIdsIsSet() const;
|
|
void unsetDocumentIds();
|
|
void setDocumentIds(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// EsignRef is the e-signature provider's reference for the signature request.
|
|
/// </summary>
|
|
utility::string_t getEsignRef() const;
|
|
bool esignRefIsSet() const;
|
|
void unsetEsignRef();
|
|
void setEsignRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Filing is the state-of-incorporation filing record, once documents exist.
|
|
/// </summary>
|
|
std::shared_ptr<Filing> getFiling() const;
|
|
bool filingIsSet() const;
|
|
void unsetFiling();
|
|
void setFiling(const std::shared_ptr<Filing>& value);
|
|
|
|
/// <summary>
|
|
/// Founders is every founding stakeholder, with its equity split and KYC state.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<Founder>> getFounders() const;
|
|
bool foundersIsSet() const;
|
|
void unsetFounders();
|
|
void setFounders(const std::vector<std::shared_ptr<Founder>>& value);
|
|
|
|
/// <summary>
|
|
/// Genesis is the cap-table equity genesis, once recorded.
|
|
/// </summary>
|
|
std::shared_ptr<Genesis> getGenesis() const;
|
|
bool genesisIsSet() const;
|
|
void unsetGenesis();
|
|
void setGenesis(const std::shared_ptr<Genesis>& value);
|
|
|
|
/// <summary>
|
|
/// Imported reports whether the existing company's corporate documents have been ingested into the org's data room.
|
|
/// </summary>
|
|
bool isImported() const;
|
|
bool importedIsSet() const;
|
|
void unsetImported();
|
|
void setImported(bool value);
|
|
|
|
/// <summary>
|
|
/// ImportedDocs are the data room ids of the documents ingested from Drive.
|
|
/// </summary>
|
|
std::vector<utility::string_t> getImportedDocs() const;
|
|
bool importedDocsIsSet() const;
|
|
void unsetImportedDocs();
|
|
void setImportedDocs(const std::vector<utility::string_t>& value);
|
|
|
|
/// <summary>
|
|
/// Jurisdiction is the state of formation: DE or WY.
|
|
/// </summary>
|
|
utility::string_t getJurisdiction() const;
|
|
bool jurisdictionIsSet() const;
|
|
void unsetJurisdiction();
|
|
void setJurisdiction(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Name is the company name the entity is being formed under.
|
|
/// </summary>
|
|
utility::string_t getName() const;
|
|
bool nameIsSet() const;
|
|
void unsetName();
|
|
void setName(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Org is the owning org — the tenant key, and the reason there is exactly one formation per org.
|
|
/// </summary>
|
|
utility::string_t getOrg() const;
|
|
bool orgIsSet() const;
|
|
void unsetOrg();
|
|
void setOrg(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Paid reports whether the one-time formation fee has been charged.
|
|
/// </summary>
|
|
bool isPaid() const;
|
|
bool paidIsSet() const;
|
|
void unsetPaid();
|
|
void setPaid(bool value);
|
|
|
|
/// <summary>
|
|
/// PaymentRef is the billing reference recorded for the charged formation fee on the org's own ledger.
|
|
/// </summary>
|
|
utility::string_t getPaymentRef() const;
|
|
bool paymentRefIsSet() const;
|
|
void unsetPaymentRef();
|
|
void setPaymentRef(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Signed reports whether the formation documents have come back signed — the e-signature provider's answer, which a real provider's webhook drives.
|
|
/// </summary>
|
|
bool isRSigned() const;
|
|
bool rSignedIsSet() const;
|
|
void unsetr_signed();
|
|
void setRSigned(bool value);
|
|
|
|
/// <summary>
|
|
/// Stage is the machine's current state: structure, founders, payment, documents, esign or genesis on the formation path, import on the skip path, and company at the terminal.
|
|
/// </summary>
|
|
utility::string_t getStage() const;
|
|
bool stageIsSet() const;
|
|
void unsetStage();
|
|
void setStage(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Structure is the legal entity being formed: c-corp, llc or dao-llc.
|
|
/// </summary>
|
|
utility::string_t getStructure() const;
|
|
bool structureIsSet() const;
|
|
void unsetStructure();
|
|
void setStructure(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// UpdatedAt is the unix second of the most recent write to the formation.
|
|
/// </summary>
|
|
int64_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdatedAt();
|
|
void setUpdatedAt(int64_t value);
|
|
|
|
|
|
protected:
|
|
bool m_AlreadyIncorporated;
|
|
bool m_AlreadyIncorporatedIsSet;
|
|
|
|
bool m_CapTableImported;
|
|
bool m_CapTableImportedIsSet;
|
|
|
|
int64_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
std::vector<utility::string_t> m_DocumentIds;
|
|
bool m_DocumentIdsIsSet;
|
|
|
|
utility::string_t m_EsignRef;
|
|
bool m_EsignRefIsSet;
|
|
|
|
std::shared_ptr<Filing> m_Filing;
|
|
bool m_FilingIsSet;
|
|
|
|
std::vector<std::shared_ptr<Founder>> m_Founders;
|
|
bool m_FoundersIsSet;
|
|
|
|
std::shared_ptr<Genesis> m_Genesis;
|
|
bool m_GenesisIsSet;
|
|
|
|
bool m_Imported;
|
|
bool m_ImportedIsSet;
|
|
|
|
std::vector<utility::string_t> m_ImportedDocs;
|
|
bool m_ImportedDocsIsSet;
|
|
|
|
utility::string_t m_Jurisdiction;
|
|
bool m_JurisdictionIsSet;
|
|
|
|
utility::string_t m_Name;
|
|
bool m_NameIsSet;
|
|
|
|
utility::string_t m_Org;
|
|
bool m_OrgIsSet;
|
|
|
|
bool m_Paid;
|
|
bool m_PaidIsSet;
|
|
|
|
utility::string_t m_PaymentRef;
|
|
bool m_PaymentRefIsSet;
|
|
|
|
bool m_r_signed;
|
|
bool m_r_signedIsSet;
|
|
|
|
utility::string_t m_Stage;
|
|
bool m_StageIsSet;
|
|
|
|
utility::string_t m_Structure;
|
|
bool m_StructureIsSet;
|
|
|
|
int64_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Formation_H_ */
|