x
This commit is contained in:
250
gen/proto/php/Printer/V1/Invoice/OrderInfo.php
Normal file
250
gen/proto/php/Printer/V1/Invoice/OrderInfo.php
Normal file
@@ -0,0 +1,250 @@
|
||||
<?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;
|
||||
|
||||
/**
|
||||
* Generated from protobuf message <code>printer.v1.invoice.OrderInfo</code>
|
||||
*/
|
||||
class OrderInfo extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>string order_id = 1 [json_name = "orderId"];</code>
|
||||
*/
|
||||
protected $order_id = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_date = 2 [json_name = "orderDate"];</code>
|
||||
*/
|
||||
protected $order_date = null;
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_due_date = 3 [json_name = "orderDueDate"];</code>
|
||||
*/
|
||||
protected $order_due_date = null;
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.OrderType order_type = 4 [json_name = "orderType"];</code>
|
||||
*/
|
||||
protected $order_type = 0;
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderItem order_items = 5 [json_name = "orderItems"];</code>
|
||||
*/
|
||||
private $order_items;
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderVatItem order_vat_items = 6 [json_name = "orderVatItems"];</code>
|
||||
*/
|
||||
private $order_vat_items;
|
||||
/**
|
||||
* Generated from protobuf field <code>optional double deposit = 7 [json_name = "deposit"];</code>
|
||||
*/
|
||||
protected $deposit = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $order_id
|
||||
* @type \Google\Type\DateTime $order_date
|
||||
* @type \Google\Type\DateTime $order_due_date
|
||||
* @type int $order_type
|
||||
* @type \Printer\V1\Invoice\OrderItem[]|\Google\Protobuf\Internal\RepeatedField $order_items
|
||||
* @type \Printer\V1\Invoice\OrderVatItem[]|\Google\Protobuf\Internal\RepeatedField $order_vat_items
|
||||
* @type float $deposit
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string order_id = 1 [json_name = "orderId"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getOrderId()
|
||||
{
|
||||
return $this->order_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string order_id = 1 [json_name = "orderId"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->order_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_date = 2 [json_name = "orderDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getOrderDate()
|
||||
{
|
||||
return $this->order_date;
|
||||
}
|
||||
|
||||
public function hasOrderDate()
|
||||
{
|
||||
return isset($this->order_date);
|
||||
}
|
||||
|
||||
public function clearOrderDate()
|
||||
{
|
||||
unset($this->order_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_date = 2 [json_name = "orderDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->order_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_due_date = 3 [json_name = "orderDueDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getOrderDueDate()
|
||||
{
|
||||
return $this->order_due_date;
|
||||
}
|
||||
|
||||
public function hasOrderDueDate()
|
||||
{
|
||||
return isset($this->order_due_date);
|
||||
}
|
||||
|
||||
public function clearOrderDueDate()
|
||||
{
|
||||
unset($this->order_due_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime order_due_date = 3 [json_name = "orderDueDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderDueDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->order_due_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.OrderType order_type = 4 [json_name = "orderType"];</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getOrderType()
|
||||
{
|
||||
return $this->order_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.OrderType order_type = 4 [json_name = "orderType"];</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \Printer\V1\Invoice\OrderType::class);
|
||||
$this->order_type = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderItem order_items = 5 [json_name = "orderItems"];</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getOrderItems()
|
||||
{
|
||||
return $this->order_items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderItem order_items = 5 [json_name = "orderItems"];</code>
|
||||
* @param \Printer\V1\Invoice\OrderItem[]|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderItems($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Printer\V1\Invoice\OrderItem::class);
|
||||
$this->order_items = $arr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderVatItem order_vat_items = 6 [json_name = "orderVatItems"];</code>
|
||||
* @return \Google\Protobuf\Internal\RepeatedField
|
||||
*/
|
||||
public function getOrderVatItems()
|
||||
{
|
||||
return $this->order_vat_items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>repeated .printer.v1.invoice.OrderVatItem order_vat_items = 6 [json_name = "orderVatItems"];</code>
|
||||
* @param \Printer\V1\Invoice\OrderVatItem[]|\Google\Protobuf\Internal\RepeatedField $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOrderVatItems($var)
|
||||
{
|
||||
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Printer\V1\Invoice\OrderVatItem::class);
|
||||
$this->order_vat_items = $arr;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>optional double deposit = 7 [json_name = "deposit"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getDeposit()
|
||||
{
|
||||
return isset($this->deposit) ? $this->deposit : 0.0;
|
||||
}
|
||||
|
||||
public function hasDeposit()
|
||||
{
|
||||
return isset($this->deposit);
|
||||
}
|
||||
|
||||
public function clearDeposit()
|
||||
{
|
||||
unset($this->deposit);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>optional double deposit = 7 [json_name = "deposit"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDeposit($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->deposit = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user