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.
100 lines
3.4 KiB
C++
100 lines
3.4 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.
|
|
*/
|
|
|
|
/*
|
|
* RiskResolveIn.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_RiskResolveIn_H_
|
|
#define HANZO_MODEL_RiskResolveIn_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/RiskLabelEvent.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class RiskLabelEvent;
|
|
|
|
|
|
class RiskResolveIn
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
RiskResolveIn();
|
|
virtual ~RiskResolveIn();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// RiskResolveIn members
|
|
|
|
|
|
/// <summary>
|
|
/// Horizon is how many days an event must age before it may be resolved at all, and it is the whole of the no-leakage rule. 120 for the payment lane (past the Visa and Mastercard dispute windows), 14 for signup abuse. Unstated takes 120.
|
|
/// </summary>
|
|
int64_t getHorizon() const;
|
|
bool horizonIsSet() const;
|
|
void unsetHorizon();
|
|
void setHorizon(int64_t value);
|
|
|
|
/// <summary>
|
|
/// Now moves the observation instant BACKWARDS, RFC 3339. It exists so a BACKTEST can resolve labels as the plane stood at a past moment; without it, every backtest would score a model against knowledge that arrived after the decision it is being scored on. An instant after the server clock is refused: a backtest resolves the past, and a future one would declare unmatured events matured and hand a training set negatives for rows whose chargeback has not had time to arrive.
|
|
/// </summary>
|
|
utility::string_t getNow() const;
|
|
bool nowIsSet() const;
|
|
void unsetNow();
|
|
void setNow(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Subjects are the exact events being judged. Each carries its own event time, because the as-of that keeps the future out is derived from that instant plus the horizon — one as-of over a whole batch would give a January row six extra months of hindsight. One entry per DISTINCT (kind, subject, at): naming an event twice answers once, because an event resolved twice would list its own winner as a contrary claim and would hand a materialiser duplicate training rows.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<RiskLabelEvent>> getSubjects() const;
|
|
bool subjectsIsSet() const;
|
|
void unsetSubjects();
|
|
void setSubjects(const std::vector<std::shared_ptr<RiskLabelEvent>>& value);
|
|
|
|
|
|
protected:
|
|
int64_t m_Horizon;
|
|
bool m_HorizonIsSet;
|
|
|
|
utility::string_t m_Now;
|
|
bool m_NowIsSet;
|
|
|
|
std::vector<std::shared_ptr<RiskLabelEvent>> m_Subjects;
|
|
bool m_SubjectsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_RiskResolveIn_H_ */
|