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

270 lines
6.9 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.
*/
/*
* BillingInvoice.h
*
*
*/
#ifndef HANZO_MODEL_BillingInvoice_H_
#define HANZO_MODEL_BillingInvoice_H_
#include <boost/optional.hpp>
#include "hanzo/ModelBase.h"
#include <cpprest/details/basic_types.h>
#include "hanzo/model/InvoiceLineItem.h"
#include <vector>
namespace hanzo {
namespace model {
class InvoiceLineItem;
class BillingInvoice
: public ModelBase
{
public:
BillingInvoice();
virtual ~BillingInvoice();
/////////////////////////////////////////////
/// 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;
/////////////////////////////////////////////
/// BillingInvoice members
int64_t getAmountDue() const;
bool amountDueIsSet() const;
void unsetAmountDue();
void setAmountDue(int64_t value);
int64_t getAmountPaid() const;
bool amountPaidIsSet() const;
void unsetAmountPaid();
void setAmountPaid(int64_t value);
int64_t getAttemptCount() const;
bool attemptCountIsSet() const;
void unsetAttemptCount();
void setAttemptCount(int64_t value);
utility::string_t getCreatedAt() const;
bool createdAtIsSet() const;
void unsetCreatedAt();
void setCreatedAt(const utility::string_t& value);
int64_t getCreditApplied() const;
bool creditAppliedIsSet() const;
void unsetCreditApplied();
void setCreditApplied(int64_t value);
utility::string_t getCurrency() const;
bool currencyIsSet() const;
void unsetCurrency();
void setCurrency(const utility::string_t& value);
utility::string_t getCustomerEmail() const;
bool customerEmailIsSet() const;
void unsetCustomerEmail();
void setCustomerEmail(const utility::string_t& value);
int64_t getDiscount() const;
bool discountIsSet() const;
void unsetDiscount();
void setDiscount(int64_t value);
utility::string_t getDueDate() const;
bool dueDateIsSet() const;
void unsetDueDate();
void setDueDate(const utility::string_t& value);
utility::string_t getId() const;
bool idIsSet() const;
void unsetId();
void setId(const utility::string_t& value);
/// <summary>
/// LineItems carries no omitempty and is never allocated empty, because the wire it reproduces sends &#x60;null&#x60; for an invoice with no lines. An empty array there would be a different answer to \&quot;were there lines\&quot;.
/// </summary>
std::vector<std::shared_ptr<InvoiceLineItem>> getLineItems() const;
bool lineItemsIsSet() const;
void unsetLineItems();
void setLineItems(const std::vector<std::shared_ptr<InvoiceLineItem>>& value);
int64_t getNumber() const;
bool numberIsSet() const;
void unsetnumber();
void setNumber(int64_t value);
utility::string_t getNumberStr() const;
bool numberStrIsSet() const;
void unsetNumberStr();
void setNumberStr(const utility::string_t& value);
utility::string_t getPaidAt() const;
bool paidAtIsSet() const;
void unsetPaidAt();
void setPaidAt(const utility::string_t& value);
utility::string_t getPaymentMethod() const;
bool paymentMethodIsSet() const;
void unsetPaymentMethod();
void setPaymentMethod(const utility::string_t& value);
utility::string_t getPaymentRef() const;
bool paymentRefIsSet() const;
void unsetPaymentRef();
void setPaymentRef(const utility::string_t& value);
utility::string_t getPeriodEnd() const;
bool periodEndIsSet() const;
void unsetPeriodEnd();
void setPeriodEnd(const utility::string_t& value);
utility::string_t getPeriodStart() const;
bool periodStartIsSet() const;
void unsetPeriodStart();
void setPeriodStart(const utility::string_t& value);
utility::string_t getStatus() const;
bool statusIsSet() const;
void unsetStatus();
void setStatus(const utility::string_t& value);
utility::string_t getSubscriptionId() const;
bool subscriptionIdIsSet() const;
void unsetSubscriptionId();
void setSubscriptionId(const utility::string_t& value);
int64_t getSubtotal() const;
bool subtotalIsSet() const;
void unsetSubtotal();
void setSubtotal(int64_t value);
int64_t getTax() const;
bool taxIsSet() const;
void unsetTax();
void setTax(int64_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);
utility::string_t getVoidedAt() const;
bool voidedAtIsSet() const;
void unsetVoidedAt();
void setVoidedAt(const utility::string_t& value);
protected:
int64_t m_AmountDue;
bool m_AmountDueIsSet;
int64_t m_AmountPaid;
bool m_AmountPaidIsSet;
int64_t m_AttemptCount;
bool m_AttemptCountIsSet;
utility::string_t m_CreatedAt;
bool m_CreatedAtIsSet;
int64_t m_CreditApplied;
bool m_CreditAppliedIsSet;
utility::string_t m_Currency;
bool m_CurrencyIsSet;
utility::string_t m_CustomerEmail;
bool m_CustomerEmailIsSet;
int64_t m_Discount;
bool m_DiscountIsSet;
utility::string_t m_DueDate;
bool m_DueDateIsSet;
utility::string_t m_Id;
bool m_IdIsSet;
std::vector<std::shared_ptr<InvoiceLineItem>> m_LineItems;
bool m_LineItemsIsSet;
int64_t m_number;
bool m_numberIsSet;
utility::string_t m_NumberStr;
bool m_NumberStrIsSet;
utility::string_t m_PaidAt;
bool m_PaidAtIsSet;
utility::string_t m_PaymentMethod;
bool m_PaymentMethodIsSet;
utility::string_t m_PaymentRef;
bool m_PaymentRefIsSet;
utility::string_t m_PeriodEnd;
bool m_PeriodEndIsSet;
utility::string_t m_PeriodStart;
bool m_PeriodStartIsSet;
utility::string_t m_Status;
bool m_StatusIsSet;
utility::string_t m_SubscriptionId;
bool m_SubscriptionIdIsSet;
int64_t m_Subtotal;
bool m_SubtotalIsSet;
int64_t m_Tax;
bool m_TaxIsSet;
utility::string_t m_UpdatedAt;
bool m_UpdatedAtIsSet;
utility::string_t m_UserId;
bool m_UserIdIsSet;
utility::string_t m_VoidedAt;
bool m_VoidedAtIsSet;
};
}
}
#endif /* HANZO_MODEL_BillingInvoice_H_ */