145 lines
3.6 KiB
PHP
145 lines
3.6 KiB
PHP
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: printer/v1/pdf_invoice.proto
|
|
|
|
namespace Printer\V1\Invoice;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Invoice
|
|
*
|
|
* Generated from protobuf message <code>printer.v1.invoice.Invoice</code>
|
|
*/
|
|
class Invoice extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OrderInfo order = 1 [json_name = "order"];</code>
|
|
*/
|
|
protected $order = null;
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"];</code>
|
|
*/
|
|
protected $offer = null;
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"];</code>
|
|
*/
|
|
protected $info = null;
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type \Printer\V1\Invoice\OrderInfo $order
|
|
* @type \Printer\V1\Invoice\OfferInfo $offer
|
|
* @type \Printer\V1\Invoice\InvoiceInfo $info
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OrderInfo order = 1 [json_name = "order"];</code>
|
|
* @return \Printer\V1\Invoice\OrderInfo|null
|
|
*/
|
|
public function getOrder()
|
|
{
|
|
return $this->order;
|
|
}
|
|
|
|
public function hasOrder()
|
|
{
|
|
return isset($this->order);
|
|
}
|
|
|
|
public function clearOrder()
|
|
{
|
|
unset($this->order);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OrderInfo order = 1 [json_name = "order"];</code>
|
|
* @param \Printer\V1\Invoice\OrderInfo $var
|
|
* @return $this
|
|
*/
|
|
public function setOrder($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Printer\V1\Invoice\OrderInfo::class);
|
|
$this->order = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"];</code>
|
|
* @return \Printer\V1\Invoice\OfferInfo|null
|
|
*/
|
|
public function getOffer()
|
|
{
|
|
return $this->offer;
|
|
}
|
|
|
|
public function hasOffer()
|
|
{
|
|
return isset($this->offer);
|
|
}
|
|
|
|
public function clearOffer()
|
|
{
|
|
unset($this->offer);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.OfferInfo offer = 2 [json_name = "offer"];</code>
|
|
* @param \Printer\V1\Invoice\OfferInfo $var
|
|
* @return $this
|
|
*/
|
|
public function setOffer($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Printer\V1\Invoice\OfferInfo::class);
|
|
$this->offer = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"];</code>
|
|
* @return \Printer\V1\Invoice\InvoiceInfo|null
|
|
*/
|
|
public function getInfo()
|
|
{
|
|
return $this->info;
|
|
}
|
|
|
|
public function hasInfo()
|
|
{
|
|
return isset($this->info);
|
|
}
|
|
|
|
public function clearInfo()
|
|
{
|
|
unset($this->info);
|
|
}
|
|
|
|
/**
|
|
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceInfo info = 3 [json_name = "info"];</code>
|
|
* @param \Printer\V1\Invoice\InvoiceInfo $var
|
|
* @return $this
|
|
*/
|
|
public function setInfo($var)
|
|
{
|
|
GPBUtil::checkMessage($var, \Printer\V1\Invoice\InvoiceInfo::class);
|
|
$this->info = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|