x
This commit is contained in:
114
gen/proto/php/Printer/V1/Invoice/DocumentResponse.php
Normal file
114
gen/proto/php/Printer/V1/Invoice/DocumentResponse.php
Normal file
@@ -0,0 +1,114 @@
|
||||
<?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;
|
||||
|
||||
/**
|
||||
* PDF Response
|
||||
*
|
||||
* Generated from protobuf message <code>printer.v1.invoice.DocumentResponse</code>
|
||||
*/
|
||||
class DocumentResponse extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>bytes document = 1 [json_name = "document"];</code>
|
||||
*/
|
||||
protected $document = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
|
||||
*/
|
||||
protected $signature = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
|
||||
*/
|
||||
protected $sha512 = '';
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $document
|
||||
* @type string $signature
|
||||
* @type string $sha512
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>bytes document = 1 [json_name = "document"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDocument()
|
||||
{
|
||||
return $this->document;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>bytes document = 1 [json_name = "document"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDocument($var)
|
||||
{
|
||||
GPBUtil::checkString($var, False);
|
||||
$this->document = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSignature()
|
||||
{
|
||||
return $this->signature;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string signature = 2 [json_name = "signature"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSignature($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->signature = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getSha512()
|
||||
{
|
||||
return $this->sha512;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string sha512 = 3 [json_name = "sha512"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setSha512($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->sha512 = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
BIN
gen/proto/php/Printer/V1/Invoice/GPBMetadata/PdfInvoice.php
Normal file
BIN
gen/proto/php/Printer/V1/Invoice/GPBMetadata/PdfInvoice.php
Normal file
Binary file not shown.
144
gen/proto/php/Printer/V1/Invoice/Invoice.php
Normal file
144
gen/proto/php/Printer/V1/Invoice/Invoice.php
Normal file
@@ -0,0 +1,144 @@
|
||||
<?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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
159
gen/proto/php/Printer/V1/Invoice/InvoiceInfo.php
Normal file
159
gen/proto/php/Printer/V1/Invoice/InvoiceInfo.php
Normal file
@@ -0,0 +1,159 @@
|
||||
<?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.InvoiceInfo</code>
|
||||
*/
|
||||
class InvoiceInfo extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
|
||||
*/
|
||||
protected $invoice_id = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
|
||||
*/
|
||||
protected $invoice_date = null;
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
|
||||
*/
|
||||
protected $invoice_due_date = null;
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
|
||||
*/
|
||||
protected $invoice_type = 0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $invoice_id
|
||||
* @type \Google\Type\DateTime $invoice_date
|
||||
* @type \Google\Type\DateTime $invoice_due_date
|
||||
* @type int $invoice_type
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getInvoiceId()
|
||||
{
|
||||
return $this->invoice_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string invoice_id = 1 [json_name = "invoiceId"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvoiceId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->invoice_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getInvoiceDate()
|
||||
{
|
||||
return $this->invoice_date;
|
||||
}
|
||||
|
||||
public function hasInvoiceDate()
|
||||
{
|
||||
return isset($this->invoice_date);
|
||||
}
|
||||
|
||||
public function clearInvoiceDate()
|
||||
{
|
||||
unset($this->invoice_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_date = 2 [json_name = "invoiceDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvoiceDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->invoice_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getInvoiceDueDate()
|
||||
{
|
||||
return $this->invoice_due_date;
|
||||
}
|
||||
|
||||
public function hasInvoiceDueDate()
|
||||
{
|
||||
return isset($this->invoice_due_date);
|
||||
}
|
||||
|
||||
public function clearInvoiceDueDate()
|
||||
{
|
||||
unset($this->invoice_due_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime invoice_due_date = 3 [json_name = "invoiceDueDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvoiceDueDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->invoice_due_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
|
||||
* @return int
|
||||
*/
|
||||
public function getInvoiceType()
|
||||
{
|
||||
return $this->invoice_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.printer.v1.invoice.InvoiceType invoice_type = 4 [json_name = "invoiceType"];</code>
|
||||
* @param int $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setInvoiceType($var)
|
||||
{
|
||||
GPBUtil::checkEnum($var, \Printer\V1\Invoice\InvoiceType::class);
|
||||
$this->invoice_type = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
56
gen/proto/php/Printer/V1/Invoice/InvoiceType.php
Normal file
56
gen/proto/php/Printer/V1/Invoice/InvoiceType.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: printer/v1/pdf_invoice.proto
|
||||
|
||||
namespace Printer\V1\Invoice;
|
||||
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* PaymentProvider represents the supported set
|
||||
* of payment providers.
|
||||
*
|
||||
* Protobuf type <code>printer.v1.invoice.InvoiceType</code>
|
||||
*/
|
||||
class InvoiceType
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf enum <code>INVOICE_TYPE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const INVOICE_TYPE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Generated from protobuf enum <code>INVOICE_TYPE_PAID = 1;</code>
|
||||
*/
|
||||
const INVOICE_TYPE_PAID = 1;
|
||||
/**
|
||||
* Generated from protobuf enum <code>INVOICE_TYPE_OPEN = 2;</code>
|
||||
*/
|
||||
const INVOICE_TYPE_OPEN = 2;
|
||||
|
||||
private static $valueToName = [
|
||||
self::INVOICE_TYPE_UNSPECIFIED => 'INVOICE_TYPE_UNSPECIFIED',
|
||||
self::INVOICE_TYPE_PAID => 'INVOICE_TYPE_PAID',
|
||||
self::INVOICE_TYPE_OPEN => 'INVOICE_TYPE_OPEN',
|
||||
];
|
||||
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
|
||||
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . strtoupper($name);
|
||||
if (!defined($const)) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return constant($const);
|
||||
}
|
||||
}
|
||||
|
||||
132
gen/proto/php/Printer/V1/Invoice/OfferInfo.php
Normal file
132
gen/proto/php/Printer/V1/Invoice/OfferInfo.php
Normal file
@@ -0,0 +1,132 @@
|
||||
<?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.OfferInfo</code>
|
||||
*/
|
||||
class OfferInfo extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>string offer_id = 1 [json_name = "offerId"];</code>
|
||||
*/
|
||||
protected $offer_id = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_date = 2 [json_name = "offerDate"];</code>
|
||||
*/
|
||||
protected $offer_date = null;
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];</code>
|
||||
*/
|
||||
protected $offer_due_date = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $offer_id
|
||||
* @type \Google\Type\DateTime $offer_date
|
||||
* @type \Google\Type\DateTime $offer_due_date
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string offer_id = 1 [json_name = "offerId"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getOfferId()
|
||||
{
|
||||
return $this->offer_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string offer_id = 1 [json_name = "offerId"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOfferId($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->offer_id = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_date = 2 [json_name = "offerDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getOfferDate()
|
||||
{
|
||||
return $this->offer_date;
|
||||
}
|
||||
|
||||
public function hasOfferDate()
|
||||
{
|
||||
return isset($this->offer_date);
|
||||
}
|
||||
|
||||
public function clearOfferDate()
|
||||
{
|
||||
unset($this->offer_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_date = 2 [json_name = "offerDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOfferDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->offer_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];</code>
|
||||
* @return \Google\Type\DateTime|null
|
||||
*/
|
||||
public function getOfferDueDate()
|
||||
{
|
||||
return $this->offer_due_date;
|
||||
}
|
||||
|
||||
public function hasOfferDueDate()
|
||||
{
|
||||
return isset($this->offer_due_date);
|
||||
}
|
||||
|
||||
public function clearOfferDueDate()
|
||||
{
|
||||
unset($this->offer_due_date);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.google.type.DateTime offer_due_date = 3 [json_name = "offerDueDate"];</code>
|
||||
* @param \Google\Type\DateTime $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setOfferDueDate($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \Google\Type\DateTime::class);
|
||||
$this->offer_due_date = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
193
gen/proto/php/Printer/V1/Invoice/OrderItem.php
Normal file
193
gen/proto/php/Printer/V1/Invoice/OrderItem.php
Normal file
@@ -0,0 +1,193 @@
|
||||
<?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.OrderItem</code>
|
||||
*/
|
||||
class OrderItem extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
*/
|
||||
protected $vat = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
|
||||
*/
|
||||
protected $count = 0;
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
|
||||
*/
|
||||
protected $price_single = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
|
||||
*/
|
||||
protected $price_sum = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
|
||||
*/
|
||||
protected $price_net = false;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $description
|
||||
* @type float $vat
|
||||
* @type int|string $count
|
||||
* @type float $price_single
|
||||
* @type float $price_sum
|
||||
* @type bool $price_net
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getVat()
|
||||
{
|
||||
return $this->vat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setVat($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->vat = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getCount()
|
||||
{
|
||||
return $this->count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 count = 3 [json_name = "count"];</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCount($var)
|
||||
{
|
||||
GPBUtil::checkUint64($var);
|
||||
$this->count = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getPriceSingle()
|
||||
{
|
||||
return $this->price_single;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_single = 4 [json_name = "priceSingle"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPriceSingle($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->price_single = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getPriceSum()
|
||||
{
|
||||
return $this->price_sum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double price_sum = 5 [json_name = "priceSum"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPriceSum($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->price_sum = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
|
||||
* @return bool
|
||||
*/
|
||||
public function getPriceNet()
|
||||
{
|
||||
return $this->price_net;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>bool price_net = 6 [json_name = "priceNet"];</code>
|
||||
* @param bool $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setPriceNet($var)
|
||||
{
|
||||
GPBUtil::checkBool($var);
|
||||
$this->price_net = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
58
gen/proto/php/Printer/V1/Invoice/OrderType.php
Normal file
58
gen/proto/php/Printer/V1/Invoice/OrderType.php
Normal file
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: printer/v1/pdf_invoice.proto
|
||||
|
||||
namespace Printer\V1\Invoice;
|
||||
|
||||
use UnexpectedValueException;
|
||||
|
||||
/**
|
||||
* Protobuf type <code>printer.v1.invoice.OrderType</code>
|
||||
*/
|
||||
class OrderType
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf enum <code>ORDER_TYPE_UNSPECIFIED = 0;</code>
|
||||
*/
|
||||
const ORDER_TYPE_UNSPECIFIED = 0;
|
||||
/**
|
||||
* Generated from protobuf enum <code>ORDER_TYPE_PHONE = 1;</code>
|
||||
*/
|
||||
const ORDER_TYPE_PHONE = 1;
|
||||
/**
|
||||
* Generated from protobuf enum <code>ORDER_TYPE_WWW = 2;</code>
|
||||
*/
|
||||
const ORDER_TYPE_WWW = 2;
|
||||
/**
|
||||
* Generated from protobuf enum <code>ORDER_TYPE_EMAIL = 3;</code>
|
||||
*/
|
||||
const ORDER_TYPE_EMAIL = 3;
|
||||
|
||||
private static $valueToName = [
|
||||
self::ORDER_TYPE_UNSPECIFIED => 'ORDER_TYPE_UNSPECIFIED',
|
||||
self::ORDER_TYPE_PHONE => 'ORDER_TYPE_PHONE',
|
||||
self::ORDER_TYPE_WWW => 'ORDER_TYPE_WWW',
|
||||
self::ORDER_TYPE_EMAIL => 'ORDER_TYPE_EMAIL',
|
||||
];
|
||||
|
||||
public static function name($value)
|
||||
{
|
||||
if (!isset(self::$valueToName[$value])) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no name defined for value %s', __CLASS__, $value));
|
||||
}
|
||||
return self::$valueToName[$value];
|
||||
}
|
||||
|
||||
|
||||
public static function value($name)
|
||||
{
|
||||
$const = __CLASS__ . '::' . strtoupper($name);
|
||||
if (!defined($const)) {
|
||||
throw new UnexpectedValueException(sprintf(
|
||||
'Enum %s has no value defined for name %s', __CLASS__, $name));
|
||||
}
|
||||
return constant($const);
|
||||
}
|
||||
}
|
||||
|
||||
139
gen/proto/php/Printer/V1/Invoice/OrderVatItem.php
Normal file
139
gen/proto/php/Printer/V1/Invoice/OrderVatItem.php
Normal file
@@ -0,0 +1,139 @@
|
||||
<?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.OrderVatItem</code>
|
||||
*/
|
||||
class OrderVatItem extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
*/
|
||||
protected $description = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
*/
|
||||
protected $vat = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat_money_sum = 3 [json_name = "vatMoneySum"];</code>
|
||||
*/
|
||||
protected $vat_money_sum = 0.0;
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 items_count = 4 [json_name = "itemsCount"];</code>
|
||||
*/
|
||||
protected $items_count = 0;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type string $description
|
||||
* @type float $vat
|
||||
* @type float $vat_money_sum
|
||||
* @type int|string $items_count
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\Printer\V1\Invoice\GPBMetadata\PdfInvoice::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string description = 1 [json_name = "description"];</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setDescription($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->description = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getVat()
|
||||
{
|
||||
return $this->vat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat = 2 [json_name = "vat"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setVat($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->vat = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat_money_sum = 3 [json_name = "vatMoneySum"];</code>
|
||||
* @return float
|
||||
*/
|
||||
public function getVatMoneySum()
|
||||
{
|
||||
return $this->vat_money_sum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>double vat_money_sum = 3 [json_name = "vatMoneySum"];</code>
|
||||
* @param float $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setVatMoneySum($var)
|
||||
{
|
||||
GPBUtil::checkDouble($var);
|
||||
$this->vat_money_sum = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 items_count = 4 [json_name = "itemsCount"];</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getItemsCount()
|
||||
{
|
||||
return $this->items_count;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>uint64 items_count = 4 [json_name = "itemsCount"];</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setItemsCount($var)
|
||||
{
|
||||
GPBUtil::checkUint64($var);
|
||||
$this->items_count = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user