1026 lines
25 KiB
PHP
1026 lines
25 KiB
PHP
<?php
|
|
/**
|
|
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
|
|
*
|
|
* SalesOrder File
|
|
* PHP version 7
|
|
*
|
|
* @category Library
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
namespace Beta\Microsoft\Graph\Model;
|
|
|
|
/**
|
|
* SalesOrder class
|
|
*
|
|
* @category Model
|
|
* @package Microsoft.Graph
|
|
* @copyright (c) Microsoft Corporation. All rights reserved.
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
|
* @link https://graph.microsoft.com
|
|
*/
|
|
class SalesOrder extends Entity
|
|
{
|
|
/**
|
|
* Gets the billingPostalAddress
|
|
*
|
|
* @return PostalAddressType|null The billingPostalAddress
|
|
*/
|
|
public function getBillingPostalAddress()
|
|
{
|
|
if (array_key_exists("billingPostalAddress", $this->_propDict)) {
|
|
if (is_a($this->_propDict["billingPostalAddress"], "\Beta\Microsoft\Graph\Model\PostalAddressType") || is_null($this->_propDict["billingPostalAddress"])) {
|
|
return $this->_propDict["billingPostalAddress"];
|
|
} else {
|
|
$this->_propDict["billingPostalAddress"] = new PostalAddressType($this->_propDict["billingPostalAddress"]);
|
|
return $this->_propDict["billingPostalAddress"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the billingPostalAddress
|
|
*
|
|
* @param PostalAddressType $val The billingPostalAddress
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setBillingPostalAddress($val)
|
|
{
|
|
$this->_propDict["billingPostalAddress"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the billToCustomerId
|
|
*
|
|
* @return string|null The billToCustomerId
|
|
*/
|
|
public function getBillToCustomerId()
|
|
{
|
|
if (array_key_exists("billToCustomerId", $this->_propDict)) {
|
|
return $this->_propDict["billToCustomerId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the billToCustomerId
|
|
*
|
|
* @param string $val The billToCustomerId
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setBillToCustomerId($val)
|
|
{
|
|
$this->_propDict["billToCustomerId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the billToCustomerNumber
|
|
*
|
|
* @return string|null The billToCustomerNumber
|
|
*/
|
|
public function getBillToCustomerNumber()
|
|
{
|
|
if (array_key_exists("billToCustomerNumber", $this->_propDict)) {
|
|
return $this->_propDict["billToCustomerNumber"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the billToCustomerNumber
|
|
*
|
|
* @param string $val The billToCustomerNumber
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setBillToCustomerNumber($val)
|
|
{
|
|
$this->_propDict["billToCustomerNumber"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the billToName
|
|
*
|
|
* @return string|null The billToName
|
|
*/
|
|
public function getBillToName()
|
|
{
|
|
if (array_key_exists("billToName", $this->_propDict)) {
|
|
return $this->_propDict["billToName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the billToName
|
|
*
|
|
* @param string $val The billToName
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setBillToName($val)
|
|
{
|
|
$this->_propDict["billToName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the currencyCode
|
|
*
|
|
* @return string|null The currencyCode
|
|
*/
|
|
public function getCurrencyCode()
|
|
{
|
|
if (array_key_exists("currencyCode", $this->_propDict)) {
|
|
return $this->_propDict["currencyCode"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the currencyCode
|
|
*
|
|
* @param string $val The currencyCode
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCurrencyCode($val)
|
|
{
|
|
$this->_propDict["currencyCode"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the currencyId
|
|
*
|
|
* @return string|null The currencyId
|
|
*/
|
|
public function getCurrencyId()
|
|
{
|
|
if (array_key_exists("currencyId", $this->_propDict)) {
|
|
return $this->_propDict["currencyId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the currencyId
|
|
*
|
|
* @param string $val The currencyId
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCurrencyId($val)
|
|
{
|
|
$this->_propDict["currencyId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the customerId
|
|
*
|
|
* @return string|null The customerId
|
|
*/
|
|
public function getCustomerId()
|
|
{
|
|
if (array_key_exists("customerId", $this->_propDict)) {
|
|
return $this->_propDict["customerId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the customerId
|
|
*
|
|
* @param string $val The customerId
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCustomerId($val)
|
|
{
|
|
$this->_propDict["customerId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the customerName
|
|
*
|
|
* @return string|null The customerName
|
|
*/
|
|
public function getCustomerName()
|
|
{
|
|
if (array_key_exists("customerName", $this->_propDict)) {
|
|
return $this->_propDict["customerName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the customerName
|
|
*
|
|
* @param string $val The customerName
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCustomerName($val)
|
|
{
|
|
$this->_propDict["customerName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the customerNumber
|
|
*
|
|
* @return string|null The customerNumber
|
|
*/
|
|
public function getCustomerNumber()
|
|
{
|
|
if (array_key_exists("customerNumber", $this->_propDict)) {
|
|
return $this->_propDict["customerNumber"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the customerNumber
|
|
*
|
|
* @param string $val The customerNumber
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCustomerNumber($val)
|
|
{
|
|
$this->_propDict["customerNumber"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the discountAmount
|
|
*
|
|
* @return Decimal|null The discountAmount
|
|
*/
|
|
public function getDiscountAmount()
|
|
{
|
|
if (array_key_exists("discountAmount", $this->_propDict)) {
|
|
if (is_a($this->_propDict["discountAmount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["discountAmount"])) {
|
|
return $this->_propDict["discountAmount"];
|
|
} else {
|
|
$this->_propDict["discountAmount"] = new Decimal($this->_propDict["discountAmount"]);
|
|
return $this->_propDict["discountAmount"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the discountAmount
|
|
*
|
|
* @param Decimal $val The discountAmount
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setDiscountAmount($val)
|
|
{
|
|
$this->_propDict["discountAmount"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the discountAppliedBeforeTax
|
|
*
|
|
* @return bool|null The discountAppliedBeforeTax
|
|
*/
|
|
public function getDiscountAppliedBeforeTax()
|
|
{
|
|
if (array_key_exists("discountAppliedBeforeTax", $this->_propDict)) {
|
|
return $this->_propDict["discountAppliedBeforeTax"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the discountAppliedBeforeTax
|
|
*
|
|
* @param bool $val The discountAppliedBeforeTax
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setDiscountAppliedBeforeTax($val)
|
|
{
|
|
$this->_propDict["discountAppliedBeforeTax"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the email
|
|
*
|
|
* @return string|null The email
|
|
*/
|
|
public function getEmail()
|
|
{
|
|
if (array_key_exists("email", $this->_propDict)) {
|
|
return $this->_propDict["email"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the email
|
|
*
|
|
* @param string $val The email
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setEmail($val)
|
|
{
|
|
$this->_propDict["email"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the externalDocumentNumber
|
|
*
|
|
* @return string|null The externalDocumentNumber
|
|
*/
|
|
public function getExternalDocumentNumber()
|
|
{
|
|
if (array_key_exists("externalDocumentNumber", $this->_propDict)) {
|
|
return $this->_propDict["externalDocumentNumber"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the externalDocumentNumber
|
|
*
|
|
* @param string $val The externalDocumentNumber
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setExternalDocumentNumber($val)
|
|
{
|
|
$this->_propDict["externalDocumentNumber"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the fullyShipped
|
|
*
|
|
* @return bool|null The fullyShipped
|
|
*/
|
|
public function getFullyShipped()
|
|
{
|
|
if (array_key_exists("fullyShipped", $this->_propDict)) {
|
|
return $this->_propDict["fullyShipped"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the fullyShipped
|
|
*
|
|
* @param bool $val The fullyShipped
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setFullyShipped($val)
|
|
{
|
|
$this->_propDict["fullyShipped"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the lastModifiedDateTime
|
|
*
|
|
* @return \DateTime|null The lastModifiedDateTime
|
|
*/
|
|
public function getLastModifiedDateTime()
|
|
{
|
|
if (array_key_exists("lastModifiedDateTime", $this->_propDict)) {
|
|
if (is_a($this->_propDict["lastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["lastModifiedDateTime"])) {
|
|
return $this->_propDict["lastModifiedDateTime"];
|
|
} else {
|
|
$this->_propDict["lastModifiedDateTime"] = new \DateTime($this->_propDict["lastModifiedDateTime"]);
|
|
return $this->_propDict["lastModifiedDateTime"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the lastModifiedDateTime
|
|
*
|
|
* @param \DateTime $val The lastModifiedDateTime
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setLastModifiedDateTime($val)
|
|
{
|
|
$this->_propDict["lastModifiedDateTime"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the number
|
|
*
|
|
* @return string|null The number
|
|
*/
|
|
public function getNumber()
|
|
{
|
|
if (array_key_exists("number", $this->_propDict)) {
|
|
return $this->_propDict["number"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the number
|
|
*
|
|
* @param string $val The number
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setNumber($val)
|
|
{
|
|
$this->_propDict["number"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the orderDate
|
|
*
|
|
* @return \DateTime|null The orderDate
|
|
*/
|
|
public function getOrderDate()
|
|
{
|
|
if (array_key_exists("orderDate", $this->_propDict)) {
|
|
if (is_a($this->_propDict["orderDate"], "\DateTime") || is_null($this->_propDict["orderDate"])) {
|
|
return $this->_propDict["orderDate"];
|
|
} else {
|
|
$this->_propDict["orderDate"] = new \DateTime($this->_propDict["orderDate"]);
|
|
return $this->_propDict["orderDate"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the orderDate
|
|
*
|
|
* @param \DateTime $val The orderDate
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setOrderDate($val)
|
|
{
|
|
$this->_propDict["orderDate"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the partialShipping
|
|
*
|
|
* @return bool|null The partialShipping
|
|
*/
|
|
public function getPartialShipping()
|
|
{
|
|
if (array_key_exists("partialShipping", $this->_propDict)) {
|
|
return $this->_propDict["partialShipping"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the partialShipping
|
|
*
|
|
* @param bool $val The partialShipping
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setPartialShipping($val)
|
|
{
|
|
$this->_propDict["partialShipping"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the paymentTermsId
|
|
*
|
|
* @return string|null The paymentTermsId
|
|
*/
|
|
public function getPaymentTermsId()
|
|
{
|
|
if (array_key_exists("paymentTermsId", $this->_propDict)) {
|
|
return $this->_propDict["paymentTermsId"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the paymentTermsId
|
|
*
|
|
* @param string $val The paymentTermsId
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setPaymentTermsId($val)
|
|
{
|
|
$this->_propDict["paymentTermsId"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the phoneNumber
|
|
*
|
|
* @return string|null The phoneNumber
|
|
*/
|
|
public function getPhoneNumber()
|
|
{
|
|
if (array_key_exists("phoneNumber", $this->_propDict)) {
|
|
return $this->_propDict["phoneNumber"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the phoneNumber
|
|
*
|
|
* @param string $val The phoneNumber
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setPhoneNumber($val)
|
|
{
|
|
$this->_propDict["phoneNumber"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the pricesIncludeTax
|
|
*
|
|
* @return bool|null The pricesIncludeTax
|
|
*/
|
|
public function getPricesIncludeTax()
|
|
{
|
|
if (array_key_exists("pricesIncludeTax", $this->_propDict)) {
|
|
return $this->_propDict["pricesIncludeTax"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the pricesIncludeTax
|
|
*
|
|
* @param bool $val The pricesIncludeTax
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setPricesIncludeTax($val)
|
|
{
|
|
$this->_propDict["pricesIncludeTax"] = boolval($val);
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the requestedDeliveryDate
|
|
*
|
|
* @return \DateTime|null The requestedDeliveryDate
|
|
*/
|
|
public function getRequestedDeliveryDate()
|
|
{
|
|
if (array_key_exists("requestedDeliveryDate", $this->_propDict)) {
|
|
if (is_a($this->_propDict["requestedDeliveryDate"], "\DateTime") || is_null($this->_propDict["requestedDeliveryDate"])) {
|
|
return $this->_propDict["requestedDeliveryDate"];
|
|
} else {
|
|
$this->_propDict["requestedDeliveryDate"] = new \DateTime($this->_propDict["requestedDeliveryDate"]);
|
|
return $this->_propDict["requestedDeliveryDate"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the requestedDeliveryDate
|
|
*
|
|
* @param \DateTime $val The requestedDeliveryDate
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setRequestedDeliveryDate($val)
|
|
{
|
|
$this->_propDict["requestedDeliveryDate"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the salesperson
|
|
*
|
|
* @return string|null The salesperson
|
|
*/
|
|
public function getSalesperson()
|
|
{
|
|
if (array_key_exists("salesperson", $this->_propDict)) {
|
|
return $this->_propDict["salesperson"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the salesperson
|
|
*
|
|
* @param string $val The salesperson
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setSalesperson($val)
|
|
{
|
|
$this->_propDict["salesperson"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the sellingPostalAddress
|
|
*
|
|
* @return PostalAddressType|null The sellingPostalAddress
|
|
*/
|
|
public function getSellingPostalAddress()
|
|
{
|
|
if (array_key_exists("sellingPostalAddress", $this->_propDict)) {
|
|
if (is_a($this->_propDict["sellingPostalAddress"], "\Beta\Microsoft\Graph\Model\PostalAddressType") || is_null($this->_propDict["sellingPostalAddress"])) {
|
|
return $this->_propDict["sellingPostalAddress"];
|
|
} else {
|
|
$this->_propDict["sellingPostalAddress"] = new PostalAddressType($this->_propDict["sellingPostalAddress"]);
|
|
return $this->_propDict["sellingPostalAddress"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the sellingPostalAddress
|
|
*
|
|
* @param PostalAddressType $val The sellingPostalAddress
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setSellingPostalAddress($val)
|
|
{
|
|
$this->_propDict["sellingPostalAddress"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the shippingPostalAddress
|
|
*
|
|
* @return PostalAddressType|null The shippingPostalAddress
|
|
*/
|
|
public function getShippingPostalAddress()
|
|
{
|
|
if (array_key_exists("shippingPostalAddress", $this->_propDict)) {
|
|
if (is_a($this->_propDict["shippingPostalAddress"], "\Beta\Microsoft\Graph\Model\PostalAddressType") || is_null($this->_propDict["shippingPostalAddress"])) {
|
|
return $this->_propDict["shippingPostalAddress"];
|
|
} else {
|
|
$this->_propDict["shippingPostalAddress"] = new PostalAddressType($this->_propDict["shippingPostalAddress"]);
|
|
return $this->_propDict["shippingPostalAddress"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the shippingPostalAddress
|
|
*
|
|
* @param PostalAddressType $val The shippingPostalAddress
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setShippingPostalAddress($val)
|
|
{
|
|
$this->_propDict["shippingPostalAddress"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the shipToContact
|
|
*
|
|
* @return string|null The shipToContact
|
|
*/
|
|
public function getShipToContact()
|
|
{
|
|
if (array_key_exists("shipToContact", $this->_propDict)) {
|
|
return $this->_propDict["shipToContact"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the shipToContact
|
|
*
|
|
* @param string $val The shipToContact
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setShipToContact($val)
|
|
{
|
|
$this->_propDict["shipToContact"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the shipToName
|
|
*
|
|
* @return string|null The shipToName
|
|
*/
|
|
public function getShipToName()
|
|
{
|
|
if (array_key_exists("shipToName", $this->_propDict)) {
|
|
return $this->_propDict["shipToName"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the shipToName
|
|
*
|
|
* @param string $val The shipToName
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setShipToName($val)
|
|
{
|
|
$this->_propDict["shipToName"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the status
|
|
*
|
|
* @return string|null The status
|
|
*/
|
|
public function getStatus()
|
|
{
|
|
if (array_key_exists("status", $this->_propDict)) {
|
|
return $this->_propDict["status"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the status
|
|
*
|
|
* @param string $val The status
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setStatus($val)
|
|
{
|
|
$this->_propDict["status"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the totalAmountExcludingTax
|
|
*
|
|
* @return Decimal|null The totalAmountExcludingTax
|
|
*/
|
|
public function getTotalAmountExcludingTax()
|
|
{
|
|
if (array_key_exists("totalAmountExcludingTax", $this->_propDict)) {
|
|
if (is_a($this->_propDict["totalAmountExcludingTax"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["totalAmountExcludingTax"])) {
|
|
return $this->_propDict["totalAmountExcludingTax"];
|
|
} else {
|
|
$this->_propDict["totalAmountExcludingTax"] = new Decimal($this->_propDict["totalAmountExcludingTax"]);
|
|
return $this->_propDict["totalAmountExcludingTax"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the totalAmountExcludingTax
|
|
*
|
|
* @param Decimal $val The totalAmountExcludingTax
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setTotalAmountExcludingTax($val)
|
|
{
|
|
$this->_propDict["totalAmountExcludingTax"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the totalAmountIncludingTax
|
|
*
|
|
* @return Decimal|null The totalAmountIncludingTax
|
|
*/
|
|
public function getTotalAmountIncludingTax()
|
|
{
|
|
if (array_key_exists("totalAmountIncludingTax", $this->_propDict)) {
|
|
if (is_a($this->_propDict["totalAmountIncludingTax"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["totalAmountIncludingTax"])) {
|
|
return $this->_propDict["totalAmountIncludingTax"];
|
|
} else {
|
|
$this->_propDict["totalAmountIncludingTax"] = new Decimal($this->_propDict["totalAmountIncludingTax"]);
|
|
return $this->_propDict["totalAmountIncludingTax"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the totalAmountIncludingTax
|
|
*
|
|
* @param Decimal $val The totalAmountIncludingTax
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setTotalAmountIncludingTax($val)
|
|
{
|
|
$this->_propDict["totalAmountIncludingTax"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the totalTaxAmount
|
|
*
|
|
* @return Decimal|null The totalTaxAmount
|
|
*/
|
|
public function getTotalTaxAmount()
|
|
{
|
|
if (array_key_exists("totalTaxAmount", $this->_propDict)) {
|
|
if (is_a($this->_propDict["totalTaxAmount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["totalTaxAmount"])) {
|
|
return $this->_propDict["totalTaxAmount"];
|
|
} else {
|
|
$this->_propDict["totalTaxAmount"] = new Decimal($this->_propDict["totalTaxAmount"]);
|
|
return $this->_propDict["totalTaxAmount"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the totalTaxAmount
|
|
*
|
|
* @param Decimal $val The totalTaxAmount
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setTotalTaxAmount($val)
|
|
{
|
|
$this->_propDict["totalTaxAmount"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the currency
|
|
*
|
|
* @return Currency|null The currency
|
|
*/
|
|
public function getCurrency()
|
|
{
|
|
if (array_key_exists("currency", $this->_propDict)) {
|
|
if (is_a($this->_propDict["currency"], "\Beta\Microsoft\Graph\Model\Currency") || is_null($this->_propDict["currency"])) {
|
|
return $this->_propDict["currency"];
|
|
} else {
|
|
$this->_propDict["currency"] = new Currency($this->_propDict["currency"]);
|
|
return $this->_propDict["currency"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the currency
|
|
*
|
|
* @param Currency $val The currency
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCurrency($val)
|
|
{
|
|
$this->_propDict["currency"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the customer
|
|
*
|
|
* @return Customer|null The customer
|
|
*/
|
|
public function getCustomer()
|
|
{
|
|
if (array_key_exists("customer", $this->_propDict)) {
|
|
if (is_a($this->_propDict["customer"], "\Beta\Microsoft\Graph\Model\Customer") || is_null($this->_propDict["customer"])) {
|
|
return $this->_propDict["customer"];
|
|
} else {
|
|
$this->_propDict["customer"] = new Customer($this->_propDict["customer"]);
|
|
return $this->_propDict["customer"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the customer
|
|
*
|
|
* @param Customer $val The customer
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setCustomer($val)
|
|
{
|
|
$this->_propDict["customer"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gets the paymentTerm
|
|
*
|
|
* @return PaymentTerm|null The paymentTerm
|
|
*/
|
|
public function getPaymentTerm()
|
|
{
|
|
if (array_key_exists("paymentTerm", $this->_propDict)) {
|
|
if (is_a($this->_propDict["paymentTerm"], "\Beta\Microsoft\Graph\Model\PaymentTerm") || is_null($this->_propDict["paymentTerm"])) {
|
|
return $this->_propDict["paymentTerm"];
|
|
} else {
|
|
$this->_propDict["paymentTerm"] = new PaymentTerm($this->_propDict["paymentTerm"]);
|
|
return $this->_propDict["paymentTerm"];
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* Sets the paymentTerm
|
|
*
|
|
* @param PaymentTerm $val The paymentTerm
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setPaymentTerm($val)
|
|
{
|
|
$this->_propDict["paymentTerm"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
|
|
/**
|
|
* Gets the salesOrderLines
|
|
*
|
|
* @return array|null The salesOrderLines
|
|
*/
|
|
public function getSalesOrderLines()
|
|
{
|
|
if (array_key_exists("salesOrderLines", $this->_propDict)) {
|
|
return $this->_propDict["salesOrderLines"];
|
|
} else {
|
|
return null;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Sets the salesOrderLines
|
|
*
|
|
* @param SalesOrderLine[] $val The salesOrderLines
|
|
*
|
|
* @return SalesOrder
|
|
*/
|
|
public function setSalesOrderLines($val)
|
|
{
|
|
$this->_propDict["salesOrderLines"] = $val;
|
|
return $this;
|
|
}
|
|
|
|
}
|