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.
155 lines
4.3 KiB
C++
155 lines
4.3 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.
|
|
*/
|
|
|
|
/*
|
|
* Extracted.h
|
|
*
|
|
*
|
|
*/
|
|
|
|
#ifndef HANZO_MODEL_Extracted_H_
|
|
#define HANZO_MODEL_Extracted_H_
|
|
|
|
#include <boost/optional.hpp>
|
|
|
|
#include "hanzo/ModelBase.h"
|
|
|
|
#include "hanzo/model/LineItem.h"
|
|
#include <cpprest/details/basic_types.h>
|
|
#include <vector>
|
|
|
|
namespace hanzo {
|
|
namespace model {
|
|
|
|
class LineItem;
|
|
|
|
|
|
class Extracted
|
|
: public ModelBase
|
|
{
|
|
public:
|
|
Extracted();
|
|
virtual ~Extracted();
|
|
|
|
/////////////////////////////////////////////
|
|
/// 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;
|
|
|
|
|
|
/////////////////////////////////////////////
|
|
/// Extracted members
|
|
|
|
|
|
/// <summary>
|
|
/// Category is the expense bucket the SCANNER guessed, as a slug — a hint only. Vendor rules override it whenever they know better, so this is the model's reading and not the account the entry will land on.
|
|
/// </summary>
|
|
utility::string_t getCategory() const;
|
|
bool categoryIsSet() const;
|
|
void unsetCategory();
|
|
void setCategory(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Currency is the ISO code the document is denominated in.
|
|
/// </summary>
|
|
utility::string_t getCurrency() const;
|
|
bool currencyIsSet() const;
|
|
void unsetCurrency();
|
|
void setCurrency(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// IssuedAt is the document's OWN date as YYYY-MM-DD — when the bill was issued, which is not when it was uploaded or when it will post.
|
|
/// </summary>
|
|
utility::string_t getIssuedAt() const;
|
|
bool issuedAtIsSet() const;
|
|
void unsetIssuedAt();
|
|
void setIssuedAt(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// LineItems are the individual lines read off the document, where it had any. They need not sum to totalCents: a document may carry lines the scanner could not read, and the total is taken from the total.
|
|
/// </summary>
|
|
std::vector<std::shared_ptr<LineItem>> getLineItems() const;
|
|
bool lineItemsIsSet() const;
|
|
void unsetLineItems();
|
|
void setLineItems(const std::vector<std::shared_ptr<LineItem>>& value);
|
|
|
|
/// <summary>
|
|
/// Merchant is the supplier as printed on the document.
|
|
/// </summary>
|
|
utility::string_t getMerchant() const;
|
|
bool merchantIsSet() const;
|
|
void unsetMerchant();
|
|
void setMerchant(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// Note is anything else worth carrying from the document that has no field of its own.
|
|
/// </summary>
|
|
utility::string_t getNote() const;
|
|
bool noteIsSet() const;
|
|
void unsetNote();
|
|
void setNote(const utility::string_t& value);
|
|
|
|
/// <summary>
|
|
/// TaxCents is how much of that total is tax, in cents. It is part of totalCents, not additional to it.
|
|
/// </summary>
|
|
int64_t getTaxCents() const;
|
|
bool taxCentsIsSet() const;
|
|
void unsetTaxCents();
|
|
void setTaxCents(int64_t value);
|
|
|
|
/// <summary>
|
|
/// TotalCents is the document total in whole cents, tax INCLUDED.
|
|
/// </summary>
|
|
int64_t getTotalCents() const;
|
|
bool totalCentsIsSet() const;
|
|
void unsetTotalCents();
|
|
void setTotalCents(int64_t value);
|
|
|
|
|
|
protected:
|
|
utility::string_t m_Category;
|
|
bool m_CategoryIsSet;
|
|
|
|
utility::string_t m_Currency;
|
|
bool m_CurrencyIsSet;
|
|
|
|
utility::string_t m_IssuedAt;
|
|
bool m_IssuedAtIsSet;
|
|
|
|
std::vector<std::shared_ptr<LineItem>> m_LineItems;
|
|
bool m_LineItemsIsSet;
|
|
|
|
utility::string_t m_Merchant;
|
|
bool m_MerchantIsSet;
|
|
|
|
utility::string_t m_Note;
|
|
bool m_NoteIsSet;
|
|
|
|
int64_t m_TaxCents;
|
|
bool m_TaxCentsIsSet;
|
|
|
|
int64_t m_TotalCents;
|
|
bool m_TotalCentsIsSet;
|
|
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* HANZO_MODEL_Extracted_H_ */
|