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.
213 lines
5.6 KiB
C++
213 lines
5.6 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.
|
|
*/
|
|
|
|
/*
|
|
* Subscription.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Subscription_H_
|
|
#define HANZO_MODEL_Subscription_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include <cpprest/details/basic_types.h>
|
|
#include "hanzo/model/SubscriptionPlan.h"
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class SubscriptionPlan;
|
|
|
|
|
|
class Subscription
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Subscription();
|
|
virtual ~Subscription();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Subscription members
|
|
|
|
|
|
bool isCancelAtPeriodEnd() const;
|
|
bool cancelAtPeriodEndIsSet() const;
|
|
void unsetCancelAtPeriodEnd();
|
|
void setCancelAtPeriodEnd(bool value);
|
|
|
|
utility::string_t getCanceledAt() const;
|
|
bool canceledAtIsSet() const;
|
|
void unsetCanceledAt();
|
|
void setCanceledAt(const utility::string_t& value);
|
|
|
|
utility::string_t getCreatedAt() const;
|
|
bool createdAtIsSet() const;
|
|
void unsetCreatedAt();
|
|
void setCreatedAt(const utility::string_t& value);
|
|
|
|
utility::string_t getCurrentPeriodEnd() const;
|
|
bool currentPeriodEndIsSet() const;
|
|
void unsetCurrentPeriodEnd();
|
|
void setCurrentPeriodEnd(const utility::string_t& value);
|
|
|
|
utility::string_t getCurrentPeriodStart() const;
|
|
bool currentPeriodStartIsSet() const;
|
|
void unsetCurrentPeriodStart();
|
|
void setCurrentPeriodStart(const utility::string_t& value);
|
|
|
|
utility::string_t getDefaultPaymentMethod() const;
|
|
bool defaultPaymentMethodIsSet() const;
|
|
void unsetDefaultPaymentMethod();
|
|
void setDefaultPaymentMethod(const utility::string_t& value);
|
|
|
|
utility::string_t getEndedAt() const;
|
|
bool endedAtIsSet() const;
|
|
void unsetEndedAt();
|
|
void setEndedAt(const utility::string_t& value);
|
|
|
|
utility::string_t getId() const;
|
|
bool idIsSet() const;
|
|
void unsetId();
|
|
void setId(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// MRRCents is what this subscription contributes per month — commerce's own figure, interval-normalized and multiplied by its seats, so no reader re-derives it from price and interval.
|
|
/// </summary>
|
|
int64_t getMrrCents() const;
|
|
bool mrrCentsIsSet() const;
|
|
void unsetMrrCents();
|
|
void setMrrCents(int64_t value);
|
|
|
|
std::shared_ptr<SubscriptionPlan> getPlan() const;
|
|
bool planIsSet() const;
|
|
void unsetPlan();
|
|
void setPlan(const std::shared_ptr<SubscriptionPlan>& value);
|
|
|
|
utility::string_t getPlanId() const;
|
|
bool planIdIsSet() const;
|
|
void unsetPlanId();
|
|
void setPlanId(const utility::string_t& value);
|
|
|
|
utility::string_t getProviderType() const;
|
|
bool providerTypeIsSet() const;
|
|
void unsetProviderType();
|
|
void setProviderType(const utility::string_t& value);
|
|
|
|
int64_t getQuantity() const;
|
|
bool quantityIsSet() const;
|
|
void unsetQuantity();
|
|
void setQuantity(int64_t value);
|
|
|
|
utility::string_t getStatus() const;
|
|
bool statusIsSet() const;
|
|
void unsetStatus();
|
|
void setStatus(const utility::string_t& value);
|
|
|
|
utility::string_t getTrialEnd() const;
|
|
bool trialEndIsSet() const;
|
|
void unsetTrialEnd();
|
|
void setTrialEnd(const utility::string_t& value);
|
|
|
|
utility::string_t getTrialStart() const;
|
|
bool trialStartIsSet() const;
|
|
void unsetTrialStart();
|
|
void setTrialStart(const utility::string_t& value);
|
|
|
|
utility::string_t getUpdatedAt() const;
|
|
bool updatedAtIsSet() const;
|
|
void unsetUpdatedAt();
|
|
void setUpdatedAt(const utility::string_t& value);
|
|
|
|
utility::string_t getUserId() const;
|
|
bool userIdIsSet() const;
|
|
void unsetUserId();
|
|
void setUserId(const utility::string_t& value);
|
|
|
|
|
|
protected:
|
|
bool m_CancelAtPeriodEnd;
|
|
bool m_CancelAtPeriodEndIsSet;
|
|
|
|
utility::string_t m_CanceledAt;
|
|
bool m_CanceledAtIsSet;
|
|
|
|
utility::string_t m_CreatedAt;
|
|
bool m_CreatedAtIsSet;
|
|
|
|
utility::string_t m_CurrentPeriodEnd;
|
|
bool m_CurrentPeriodEndIsSet;
|
|
|
|
utility::string_t m_CurrentPeriodStart;
|
|
bool m_CurrentPeriodStartIsSet;
|
|
|
|
utility::string_t m_DefaultPaymentMethod;
|
|
bool m_DefaultPaymentMethodIsSet;
|
|
|
|
utility::string_t m_EndedAt;
|
|
bool m_EndedAtIsSet;
|
|
|
|
utility::string_t m_Id;
|
|
bool m_IdIsSet;
|
|
|
|
int64_t m_MrrCents;
|
|
bool m_MrrCentsIsSet;
|
|
|
|
std::shared_ptr<SubscriptionPlan> m_Plan;
|
|
bool m_PlanIsSet;
|
|
|
|
utility::string_t m_PlanId;
|
|
bool m_PlanIdIsSet;
|
|
|
|
utility::string_t m_ProviderType;
|
|
bool m_ProviderTypeIsSet;
|
|
|
|
int64_t m_Quantity;
|
|
bool m_QuantityIsSet;
|
|
|
|
utility::string_t m_Status;
|
|
bool m_StatusIsSet;
|
|
|
|
utility::string_t m_TrialEnd;
|
|
bool m_TrialEndIsSet;
|
|
|
|
utility::string_t m_TrialStart;
|
|
bool m_TrialStartIsSet;
|
|
|
|
utility::string_t m_UpdatedAt;
|
|
bool m_UpdatedAtIsSet;
|
|
|
|
utility::string_t m_UserId;
|
|
bool m_UserIdIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Subscription_H_ */
|