1
0
Fork 0
m365-php/vendor/microsoft/microsoft-graph/src/Beta/Microsoft/Graph/Model/AgedAccountsPayable.php

322 lines
8.2 KiB
PHP

<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AgedAccountsPayable 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;
/**
* AgedAccountsPayable 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 AgedAccountsPayable extends Entity
{
/**
* Gets the agedAsOfDate
*
* @return \DateTime|null The agedAsOfDate
*/
public function getAgedAsOfDate()
{
if (array_key_exists("agedAsOfDate", $this->_propDict)) {
if (is_a($this->_propDict["agedAsOfDate"], "\DateTime") || is_null($this->_propDict["agedAsOfDate"])) {
return $this->_propDict["agedAsOfDate"];
} else {
$this->_propDict["agedAsOfDate"] = new \DateTime($this->_propDict["agedAsOfDate"]);
return $this->_propDict["agedAsOfDate"];
}
}
return null;
}
/**
* Sets the agedAsOfDate
*
* @param \DateTime $val The agedAsOfDate
*
* @return AgedAccountsPayable
*/
public function setAgedAsOfDate($val)
{
$this->_propDict["agedAsOfDate"] = $val;
return $this;
}
/**
* Gets the balanceDue
*
* @return Decimal|null The balanceDue
*/
public function getBalanceDue()
{
if (array_key_exists("balanceDue", $this->_propDict)) {
if (is_a($this->_propDict["balanceDue"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["balanceDue"])) {
return $this->_propDict["balanceDue"];
} else {
$this->_propDict["balanceDue"] = new Decimal($this->_propDict["balanceDue"]);
return $this->_propDict["balanceDue"];
}
}
return null;
}
/**
* Sets the balanceDue
*
* @param Decimal $val The balanceDue
*
* @return AgedAccountsPayable
*/
public function setBalanceDue($val)
{
$this->_propDict["balanceDue"] = $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 AgedAccountsPayable
*/
public function setCurrencyCode($val)
{
$this->_propDict["currencyCode"] = $val;
return $this;
}
/**
* Gets the currentAmount
*
* @return Decimal|null The currentAmount
*/
public function getCurrentAmount()
{
if (array_key_exists("currentAmount", $this->_propDict)) {
if (is_a($this->_propDict["currentAmount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["currentAmount"])) {
return $this->_propDict["currentAmount"];
} else {
$this->_propDict["currentAmount"] = new Decimal($this->_propDict["currentAmount"]);
return $this->_propDict["currentAmount"];
}
}
return null;
}
/**
* Sets the currentAmount
*
* @param Decimal $val The currentAmount
*
* @return AgedAccountsPayable
*/
public function setCurrentAmount($val)
{
$this->_propDict["currentAmount"] = $val;
return $this;
}
/**
* Gets the name
*
* @return string|null The name
*/
public function getName()
{
if (array_key_exists("name", $this->_propDict)) {
return $this->_propDict["name"];
} else {
return null;
}
}
/**
* Sets the name
*
* @param string $val The name
*
* @return AgedAccountsPayable
*/
public function setName($val)
{
$this->_propDict["name"] = $val;
return $this;
}
/**
* Gets the period1Amount
*
* @return Decimal|null The period1Amount
*/
public function getPeriod1Amount()
{
if (array_key_exists("period1Amount", $this->_propDict)) {
if (is_a($this->_propDict["period1Amount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["period1Amount"])) {
return $this->_propDict["period1Amount"];
} else {
$this->_propDict["period1Amount"] = new Decimal($this->_propDict["period1Amount"]);
return $this->_propDict["period1Amount"];
}
}
return null;
}
/**
* Sets the period1Amount
*
* @param Decimal $val The period1Amount
*
* @return AgedAccountsPayable
*/
public function setPeriod1Amount($val)
{
$this->_propDict["period1Amount"] = $val;
return $this;
}
/**
* Gets the period2Amount
*
* @return Decimal|null The period2Amount
*/
public function getPeriod2Amount()
{
if (array_key_exists("period2Amount", $this->_propDict)) {
if (is_a($this->_propDict["period2Amount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["period2Amount"])) {
return $this->_propDict["period2Amount"];
} else {
$this->_propDict["period2Amount"] = new Decimal($this->_propDict["period2Amount"]);
return $this->_propDict["period2Amount"];
}
}
return null;
}
/**
* Sets the period2Amount
*
* @param Decimal $val The period2Amount
*
* @return AgedAccountsPayable
*/
public function setPeriod2Amount($val)
{
$this->_propDict["period2Amount"] = $val;
return $this;
}
/**
* Gets the period3Amount
*
* @return Decimal|null The period3Amount
*/
public function getPeriod3Amount()
{
if (array_key_exists("period3Amount", $this->_propDict)) {
if (is_a($this->_propDict["period3Amount"], "\Beta\Microsoft\Graph\Model\Decimal") || is_null($this->_propDict["period3Amount"])) {
return $this->_propDict["period3Amount"];
} else {
$this->_propDict["period3Amount"] = new Decimal($this->_propDict["period3Amount"]);
return $this->_propDict["period3Amount"];
}
}
return null;
}
/**
* Sets the period3Amount
*
* @param Decimal $val The period3Amount
*
* @return AgedAccountsPayable
*/
public function setPeriod3Amount($val)
{
$this->_propDict["period3Amount"] = $val;
return $this;
}
/**
* Gets the periodLengthFilter
*
* @return string|null The periodLengthFilter
*/
public function getPeriodLengthFilter()
{
if (array_key_exists("periodLengthFilter", $this->_propDict)) {
return $this->_propDict["periodLengthFilter"];
} else {
return null;
}
}
/**
* Sets the periodLengthFilter
*
* @param string $val The periodLengthFilter
*
* @return AgedAccountsPayable
*/
public function setPeriodLengthFilter($val)
{
$this->_propDict["periodLengthFilter"] = $val;
return $this;
}
/**
* Gets the vendorNumber
*
* @return string|null The vendorNumber
*/
public function getVendorNumber()
{
if (array_key_exists("vendorNumber", $this->_propDict)) {
return $this->_propDict["vendorNumber"];
} else {
return null;
}
}
/**
* Sets the vendorNumber
*
* @param string $val The vendorNumber
*
* @return AgedAccountsPayable
*/
public function setVendorNumber($val)
{
$this->_propDict["vendorNumber"] = $val;
return $this;
}
}