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.
96 lines
2.6 KiB
C++
96 lines
2.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.
|
|
*/
|
|
|
|
/*
|
|
* LevelView.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_LevelView_H_
|
|
#define HANZO_MODEL_LevelView_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
|
|
|
|
class LevelView
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
LevelView();
|
|
virtual ~LevelView();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// LevelView members
|
|
|
|
|
|
/// <summary>
|
|
/// DownlineCount is how many orgs sit exactly this many hops below the caller. It is 0 in the schedule quoted to a caller that has not applied, which has no downline to count.
|
|
/// </summary>
|
|
int64_t getDownlineCount() const;
|
|
bool downlineCountIsSet() const;
|
|
void unsetDownlineCount();
|
|
void setDownlineCount(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Level is the upline distance from the org whose spend is being shared: 1 is the direct referrer, 2 and 3 the referrers above it. Nothing accrues past 3.
|
|
/// </summary>
|
|
int64_t getLevel() const;
|
|
bool levelIsSet() const;
|
|
void unsetLevel();
|
|
void setLevel(int64_t value);
|
|
|
|
/// <summary>
|
|
/// RateBps is the commission paid at this level, in basis points OF Hanzo's margin (2000 = 20% of margin, never of the customer's bill). Level 1 is the affiliate's own negotiated rate; 2 and 3 are platform switches read live, so this is the schedule actually in force, not one compiled in.
|
|
/// </summary>
|
|
int64_t getRateBps() const;
|
|
bool rateBpsIsSet() const;
|
|
void unsetRateBps();
|
|
void setRateBps(int64_t value);
|
|
|
|
|
|
protected:
|
|
int64_t m_DownlineCount;
|
|
bool m_DownlineCountIsSet;
|
|
|
|
int64_t m_Level;
|
|
bool m_LevelIsSet;
|
|
|
|
int64_t m_RateBps;
|
|
bool m_RateBpsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_LevelView_H_ */
|