Files
zeekay 189ce08e51 Regenerate against the document the deployment answers for
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.
2026-09-05 18:07:13 -07:00

199 lines
5.2 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.
*/
/*
* Invoice.h
*
*
*/
#ifndef HANZO_MODEL_Invoice_H_
#define HANZO_MODEL_Invoice_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/InvoiceLine.h"
#include <vector>
namespace hanzo {
namespace model {
class InvoiceLine;
class Invoice
: public ModelBase
{
public:
Invoice();
virtual ~Invoice();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// Invoice members
/// <summary>
/// AmountDueCents is what remains collectible.
/// </summary>
int64_t getAmountDueCents() const;
bool amountDueCentsIsSet() const;
void unsetAmountDueCents();
void setAmountDueCents(int64_t value);
/// <summary>
/// AmountPaidCents is what has been collected so far.
/// </summary>
int64_t getAmountPaidCents() const;
bool amountPaidCentsIsSet() const;
void unsetAmountPaidCents();
void setAmountPaidCents(int64_t value);
/// <summary>
/// CreatedAt is when the draft was raised, RFC3339.
/// </summary>
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
/// <summary>
/// Currency is the ISO 4217 code.
/// </summary>
utility::string_t getCurrency() const;
bool currencyIsSet() const;
void unsetCurrency();
void setCurrency(const utility::string_t& value);
/// <summary>
/// CustomerEmail is where it is sent.
/// </summary>
utility::string_t getCustomerEmail() const;
bool customerEmailIsSet() const;
void unsetCustomerEmail();
void setCustomerEmail(const utility::string_t& value);
/// <summary>
/// ID is the invoice id — what the issue, collect and void ops address.
/// </summary>
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// Lines are the charges on the invoice.
/// </summary>
std::vector<std::shared_ptr<InvoiceLine>> getLines() const;
bool linesIsSet() const;
void unsetLines();
void setLines(const std::vector<std::shared_ptr<InvoiceLine>>& value);
/// <summary>
/// Number is the human-facing invoice number, e.g. \&quot;INV-0042\&quot;. A draft has none; issuing assigns it.
/// </summary>
utility::string_t getNumber() const;
bool numberIsSet() const;
void unsetnumber();
void setNumber(const utility::string_t& value);
/// <summary>
/// PaymentRef is the processor reference for the collection, once paid.
/// </summary>
utility::string_t getPaymentRef() const;
bool paymentRefIsSet() const;
void unsetPaymentRef();
void setPaymentRef(const utility::string_t& value);
/// <summary>
/// Status is draft, open, paid, void or uncollectible. A draft is not collectible; issuing moves it to open.
/// </summary>
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
/// <summary>
/// SubtotalCents is the sum of the lines.
/// </summary>
int64_t getSubtotalCents() const;
bool subtotalCentsIsSet() const;
void unsetSubtotalCents();
void setSubtotalCents(int64_t value);
/// <summary>
/// UserID is the customer billed.
/// </summary>
utility::string_t getUserId() const;
bool userIdIsSet() const;
void unsetUserId();
void setUserId(const utility::string_t& value);
protected:
int64_t m_AmountDueCents;
bool m_AmountDueCentsIsSet;
int64_t m_AmountPaidCents;
bool m_AmountPaidCentsIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
utility::string_t m_Currency;
bool m_CurrencyIsSet;
utility::string_t m_CustomerEmail;
bool m_CustomerEmailIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
std::vector<std::shared_ptr<InvoiceLine>> m_Lines;
bool m_LinesIsSet;
utility::string_t m_number;
bool m_numberIsSet;
utility::string_t m_PaymentRef;
bool m_PaymentRefIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
int64_t m_SubtotalCents;
bool m_SubtotalCentsIsSet;
utility::string_t m_UserId;
bool m_UserIdIsSet;
};
}
}
#endif /* HANZO_MODEL_Invoice_H_ */