/home/desid573/public_html/angel/payment/xero/lib/Models/Accounting
NameSizeModeActions
Account.php293160644editdlrm
Accounts.php62520644editdlrm
AccountsPayable.php68850644editdlrm
AccountsReceivable.php68970644editdlrm
AccountType.php26310644editdlrm
Address.php182000644editdlrm
Allocation.php78690644editdlrm
Allocations.php63360644editdlrm
Attachment.php98340644editdlrm
Attachments.php63360644editdlrm
Balances.php76310644editdlrm
BankTransaction.php267100644editdlrm
BankTransactions.php64920644editdlrm
BankTransfer.php153720644editdlrm
BankTransfers.php64080644editdlrm
BatchPayment.php218690644editdlrm
BatchPaymentDetails.php115500644editdlrm
BatchPayments.php64080644editdlrm
Bill.php67410644editdlrm
BrandingTheme.php108770644editdlrm
BrandingThemes.php64360644editdlrm
CISOrgSetting.php81840644editdlrm
CISSetting.php69430644editdlrm
CISSettings.php63520644editdlrm
Contact.php447110644editdlrm
ContactGroup.php98160644editdlrm
ContactGroups.php64080644editdlrm
ContactPerson.php85870644editdlrm
Contacts.php62520644editdlrm
CountryCode.php114890644editdlrm
CreditNote.php267520644editdlrm
CreditNotes.php63520644editdlrm
Currencies.php63050644editdlrm
Currency.php69140644editdlrm
CurrencyCode.php86970644editdlrm
Element.php64720644editdlrm
Employee.php122280644editdlrm
Employees.php62800644editdlrm
Error.php82660644editdlrm
ExpenseClaim.php160790644editdlrm
ExpenseClaims.php64080644editdlrm
ExternalLink.php88740644editdlrm
HistoryRecord.php81170644editdlrm
HistoryRecords.php64360644editdlrm
Invoice.php398590644editdlrm
InvoiceReminder.php61530644editdlrm
InvoiceReminders.php64920644editdlrm
Invoices.php62520644editdlrm
Item.php206830644editdlrm
Items.php61680644editdlrm
Journal.php151850644editdlrm
JournalLine.php149770644editdlrm
Journals.php62520644editdlrm
LineAmountTypes.php14700644editdlrm
LineItem.php163240644editdlrm
LineItemTracking.php81400644editdlrm
LinkedTransaction.php197930644editdlrm
LinkedTransactions.php65480644editdlrm
ManualJournal.php178380644editdlrm
ManualJournalLine.php108100644editdlrm
ManualJournals.php64360644editdlrm
ModelInterface.php21090644editdlrm
OnlineInvoice.php63680644editdlrm
OnlineInvoices.php64360644editdlrm
Organisation.php463360644editdlrm
Organisations.php63920644editdlrm
Overpayment.php220120644editdlrm
Overpayments.php63640644editdlrm
Payment.php270610644editdlrm
Payments.php62520644editdlrm
PaymentService.php110110644editdlrm
PaymentServices.php64640644editdlrm
PaymentTerm.php68910644editdlrm
PaymentTermType.php15110644editdlrm
Phone.php114050644editdlrm
Prepayment.php212630644editdlrm
Prepayments.php63360644editdlrm
Purchase.php87790644editdlrm
PurchaseOrder.php306740644editdlrm
PurchaseOrders.php64360644editdlrm
Quote.php249590644editdlrm
Quotes.php61960644editdlrm
QuoteStatusCodes.php14960644editdlrm
Receipt.php202930644editdlrm
Receipts.php62520644editdlrm
RepeatingInvoice.php200560644editdlrm
RepeatingInvoices.php65200644editdlrm
Report.php118650644editdlrm
ReportAttribute.php66460644editdlrm
ReportCell.php69320644editdlrm
ReportFields.php74890644editdlrm
ReportRow.php75800644editdlrm
ReportRows.php82890644editdlrm
Reports.php62240644editdlrm
ReportWithRow.php123230644editdlrm
ReportWithRows.php62730644editdlrm
RequestEmpty.php61610644editdlrm
RowType.php13720644editdlrm
SalesTrackingCategory.php74520644editdlrm
Schedule.php132510644editdlrm
TaxComponent.php84120644editdlrm
TaxRate.php211870644editdlrm
TaxRates.php62680644editdlrm
TaxType.php46530644editdlrm
TenNinteyNineContact.php195430644editdlrm
TimeZone.php115220644editdlrm
TrackingCategories.php65450644editdlrm
TrackingCategory.php122570644editdlrm
TrackingOption.php102690644editdlrm
TrackingOptions.php62800644editdlrm
User.php126460644editdlrm
Users.php61680644editdlrm
ValidationError.php61620644editdlrm
Edit: /home/desid573/public_html/angel/payment/xero/lib/Models/Accounting/TaxRate.php (21187B)
'string', 'tax_type' => 'string', 'tax_components' => '\XeroAPI\XeroPHP\Models\Accounting\TaxComponent[]', 'status' => 'string', 'report_tax_type' => 'string', 'can_apply_to_assets' => 'bool', 'can_apply_to_equity' => 'bool', 'can_apply_to_expenses' => 'bool', 'can_apply_to_liabilities' => 'bool', 'can_apply_to_revenue' => 'bool', 'display_tax_rate' => 'double', 'effective_rate' => 'double' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $openAPIFormats = [ 'name' => null, 'tax_type' => null, 'tax_components' => null, 'status' => null, 'report_tax_type' => null, 'can_apply_to_assets' => null, 'can_apply_to_equity' => null, 'can_apply_to_expenses' => null, 'can_apply_to_liabilities' => null, 'can_apply_to_revenue' => null, 'display_tax_rate' => 'double', 'effective_rate' => 'double' ]; /** * Array of property to type mappings. Used for (de)serialization * * @return array */ public static function openAPITypes() { return self::$openAPITypes; } /** * Array of property to format mappings. Used for (de)serialization * * @return array */ public static function openAPIFormats() { return self::$openAPIFormats; } /** * Array of attributes where the key is the local name, * and the value is the original name * * @var string[] */ protected static $attributeMap = [ 'name' => 'Name', 'tax_type' => 'TaxType', 'tax_components' => 'TaxComponents', 'status' => 'Status', 'report_tax_type' => 'ReportTaxType', 'can_apply_to_assets' => 'CanApplyToAssets', 'can_apply_to_equity' => 'CanApplyToEquity', 'can_apply_to_expenses' => 'CanApplyToExpenses', 'can_apply_to_liabilities' => 'CanApplyToLiabilities', 'can_apply_to_revenue' => 'CanApplyToRevenue', 'display_tax_rate' => 'DisplayTaxRate', 'effective_rate' => 'EffectiveRate' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'name' => 'setName', 'tax_type' => 'setTaxType', 'tax_components' => 'setTaxComponents', 'status' => 'setStatus', 'report_tax_type' => 'setReportTaxType', 'can_apply_to_assets' => 'setCanApplyToAssets', 'can_apply_to_equity' => 'setCanApplyToEquity', 'can_apply_to_expenses' => 'setCanApplyToExpenses', 'can_apply_to_liabilities' => 'setCanApplyToLiabilities', 'can_apply_to_revenue' => 'setCanApplyToRevenue', 'display_tax_rate' => 'setDisplayTaxRate', 'effective_rate' => 'setEffectiveRate' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'name' => 'getName', 'tax_type' => 'getTaxType', 'tax_components' => 'getTaxComponents', 'status' => 'getStatus', 'report_tax_type' => 'getReportTaxType', 'can_apply_to_assets' => 'getCanApplyToAssets', 'can_apply_to_equity' => 'getCanApplyToEquity', 'can_apply_to_expenses' => 'getCanApplyToExpenses', 'can_apply_to_liabilities' => 'getCanApplyToLiabilities', 'can_apply_to_revenue' => 'getCanApplyToRevenue', 'display_tax_rate' => 'getDisplayTaxRate', 'effective_rate' => 'getEffectiveRate' ]; /** * Array of attributes where the key is the local name, * and the value is the original name * * @return array */ public static function attributeMap() { return self::$attributeMap; } /** * Array of attributes to setter functions (for deserialization of responses) * * @return array */ public static function setters() { return self::$setters; } /** * Array of attributes to getter functions (for serialization of requests) * * @return array */ public static function getters() { return self::$getters; } /** * The original name of the model. * * @return string */ public function getModelName() { return self::$openAPIModelName; } const STATUS_ACTIVE = 'ACTIVE'; const STATUS_DELETED = 'DELETED'; const STATUS_ARCHIVED = 'ARCHIVED'; const STATUS_PENDING = 'PENDING'; const REPORT_TAX_TYPE_AVALARA = 'AVALARA'; const REPORT_TAX_TYPE_BASEXCLUDED = 'BASEXCLUDED'; const REPORT_TAX_TYPE_CAPITALSALESOUTPUT = 'CAPITALSALESOUTPUT'; const REPORT_TAX_TYPE_CAPITALEXPENSESINPUT = 'CAPITALEXPENSESINPUT'; const REPORT_TAX_TYPE_ECOUTPUT = 'ECOUTPUT'; const REPORT_TAX_TYPE_ECOUTPUTSERVICES = 'ECOUTPUTSERVICES'; const REPORT_TAX_TYPE_ECINPUT = 'ECINPUT'; const REPORT_TAX_TYPE_ECACQUISITIONS = 'ECACQUISITIONS'; const REPORT_TAX_TYPE_EXEMPTEXPENSES = 'EXEMPTEXPENSES'; const REPORT_TAX_TYPE_EXEMPTINPUT = 'EXEMPTINPUT'; const REPORT_TAX_TYPE_EXEMPTOUTPUT = 'EXEMPTOUTPUT'; const REPORT_TAX_TYPE_GSTONIMPORTS = 'GSTONIMPORTS'; const REPORT_TAX_TYPE_INPUT = 'INPUT'; const REPORT_TAX_TYPE_INPUTTAXED = 'INPUTTAXED'; const REPORT_TAX_TYPE_MOSSSALES = 'MOSSSALES'; const REPORT_TAX_TYPE_NONE = 'NONE'; const REPORT_TAX_TYPE_NONEOUTPUT = 'NONEOUTPUT'; const REPORT_TAX_TYPE_OUTPUT = 'OUTPUT'; const REPORT_TAX_TYPE_PURCHASESINPUT = 'PURCHASESINPUT'; const REPORT_TAX_TYPE_SALESOUTPUT = 'SALESOUTPUT'; const REPORT_TAX_TYPE_EXEMPTCAPITAL = 'EXEMPTCAPITAL'; const REPORT_TAX_TYPE_EXEMPTEXPORT = 'EXEMPTEXPORT'; const REPORT_TAX_TYPE_CAPITALEXINPUT = 'CAPITALEXINPUT'; const REPORT_TAX_TYPE_GSTONCAPIMPORTS = 'GSTONCAPIMPORTS'; const REPORT_TAX_TYPE_REVERSECHARGES = 'REVERSECHARGES'; const REPORT_TAX_TYPE_PAYMENTS = 'PAYMENTS'; const REPORT_TAX_TYPE_INVOICE = 'INVOICE'; const REPORT_TAX_TYPE_CASH = 'CASH'; const REPORT_TAX_TYPE_ACCRUAL = 'ACCRUAL'; const REPORT_TAX_TYPE_FLATRATECASH = 'FLATRATECASH'; const REPORT_TAX_TYPE_FLATRATEACCRUAL = 'FLATRATEACCRUAL'; const REPORT_TAX_TYPE_ACCRUALS = 'ACCRUALS'; /** * Gets allowable values of the enum * * @return string[] */ public function getStatusAllowableValues() { return [ self::STATUS_ACTIVE, self::STATUS_DELETED, self::STATUS_ARCHIVED, self::STATUS_PENDING, ]; } /** * Gets allowable values of the enum * * @return string[] */ public function getReportTaxTypeAllowableValues() { return [ self::REPORT_TAX_TYPE_AVALARA, self::REPORT_TAX_TYPE_BASEXCLUDED, self::REPORT_TAX_TYPE_CAPITALSALESOUTPUT, self::REPORT_TAX_TYPE_CAPITALEXPENSESINPUT, self::REPORT_TAX_TYPE_ECOUTPUT, self::REPORT_TAX_TYPE_ECOUTPUTSERVICES, self::REPORT_TAX_TYPE_ECINPUT, self::REPORT_TAX_TYPE_ECACQUISITIONS, self::REPORT_TAX_TYPE_EXEMPTEXPENSES, self::REPORT_TAX_TYPE_EXEMPTINPUT, self::REPORT_TAX_TYPE_EXEMPTOUTPUT, self::REPORT_TAX_TYPE_GSTONIMPORTS, self::REPORT_TAX_TYPE_INPUT, self::REPORT_TAX_TYPE_INPUTTAXED, self::REPORT_TAX_TYPE_MOSSSALES, self::REPORT_TAX_TYPE_NONE, self::REPORT_TAX_TYPE_NONEOUTPUT, self::REPORT_TAX_TYPE_OUTPUT, self::REPORT_TAX_TYPE_PURCHASESINPUT, self::REPORT_TAX_TYPE_SALESOUTPUT, self::REPORT_TAX_TYPE_EXEMPTCAPITAL, self::REPORT_TAX_TYPE_EXEMPTEXPORT, self::REPORT_TAX_TYPE_CAPITALEXINPUT, self::REPORT_TAX_TYPE_GSTONCAPIMPORTS, self::REPORT_TAX_TYPE_REVERSECHARGES, self::REPORT_TAX_TYPE_PAYMENTS, self::REPORT_TAX_TYPE_INVOICE, self::REPORT_TAX_TYPE_CASH, self::REPORT_TAX_TYPE_ACCRUAL, self::REPORT_TAX_TYPE_FLATRATECASH, self::REPORT_TAX_TYPE_FLATRATEACCRUAL, self::REPORT_TAX_TYPE_ACCRUALS, ]; } /** * Associative array for storing property values * * @var mixed[] */ protected $container = []; /** * Constructor * * @param mixed[] $data Associated array of property values * initializing the model */ public function __construct(array $data = null) { $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['tax_type'] = isset($data['tax_type']) ? $data['tax_type'] : null; $this->container['tax_components'] = isset($data['tax_components']) ? $data['tax_components'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['report_tax_type'] = isset($data['report_tax_type']) ? $data['report_tax_type'] : null; $this->container['can_apply_to_assets'] = isset($data['can_apply_to_assets']) ? $data['can_apply_to_assets'] : null; $this->container['can_apply_to_equity'] = isset($data['can_apply_to_equity']) ? $data['can_apply_to_equity'] : null; $this->container['can_apply_to_expenses'] = isset($data['can_apply_to_expenses']) ? $data['can_apply_to_expenses'] : null; $this->container['can_apply_to_liabilities'] = isset($data['can_apply_to_liabilities']) ? $data['can_apply_to_liabilities'] : null; $this->container['can_apply_to_revenue'] = isset($data['can_apply_to_revenue']) ? $data['can_apply_to_revenue'] : null; $this->container['display_tax_rate'] = isset($data['display_tax_rate']) ? $data['display_tax_rate'] : null; $this->container['effective_rate'] = isset($data['effective_rate']) ? $data['effective_rate'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getStatusAllowableValues(); if (!is_null($this->container['status']) && !in_array($this->container['status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'status', must be one of '%s'", implode("', '", $allowedValues) ); } if ($this->container['report_tax_type'] === null) { $invalidProperties[] = "'report_tax_type' can't be null"; } $allowedValues = $this->getReportTaxTypeAllowableValues(); if (!is_null($this->container['report_tax_type']) && !in_array($this->container['report_tax_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'report_tax_type', must be one of '%s'", implode("', '", $allowedValues) ); } return $invalidProperties; } /** * Validate all the properties in the model * return true if all passed * * @return bool True if all properties are valid */ public function valid() { return count($this->listInvalidProperties()) === 0; } /** * Gets name * * @return string|null */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string|null $name Name of tax rate * * @return $this */ public function setName($name) { $this->container['name'] = $name; return $this; } /** * Gets tax_type * * @return string|null */ public function getTaxType() { return $this->container['tax_type']; } /** * Sets tax_type * * @param string|null $tax_type The tax type * * @return $this */ public function setTaxType($tax_type) { $this->container['tax_type'] = $tax_type; return $this; } /** * Gets tax_components * * @return \XeroAPI\XeroPHP\Models\Accounting\TaxComponent[]|null */ public function getTaxComponents() { return $this->container['tax_components']; } /** * Sets tax_components * * @param \XeroAPI\XeroPHP\Models\Accounting\TaxComponent[]|null $tax_components See TaxComponents * * @return $this */ public function setTaxComponents($tax_components) { $this->container['tax_components'] = $tax_components; return $this; } /** * Gets status * * @return string|null */ public function getStatus() { return $this->container['status']; } /** * Sets status * * @param string|null $status See Status Codes * * @return $this */ public function setStatus($status) { $allowedValues = $this->getStatusAllowableValues(); if (!is_null($status) && !in_array($status, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'status', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['status'] = $status; return $this; } /** * Gets report_tax_type * * @return string */ public function getReportTaxType() { return $this->container['report_tax_type']; } /** * Sets report_tax_type * * @param string $report_tax_type See ReportTaxTypes * * @return $this */ public function setReportTaxType($report_tax_type) { $allowedValues = $this->getReportTaxTypeAllowableValues(); if (!in_array($report_tax_type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'report_tax_type', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['report_tax_type'] = $report_tax_type; return $this; } /** * Gets can_apply_to_assets * * @return bool|null */ public function getCanApplyToAssets() { return $this->container['can_apply_to_assets']; } /** * Sets can_apply_to_assets * * @param bool|null $can_apply_to_assets Boolean to describe if tax rate can be used for asset accounts i.e. true,false * * @return $this */ public function setCanApplyToAssets($can_apply_to_assets) { $this->container['can_apply_to_assets'] = $can_apply_to_assets; return $this; } /** * Gets can_apply_to_equity * * @return bool|null */ public function getCanApplyToEquity() { return $this->container['can_apply_to_equity']; } /** * Sets can_apply_to_equity * * @param bool|null $can_apply_to_equity Boolean to describe if tax rate can be used for equity accounts i.e true,false * * @return $this */ public function setCanApplyToEquity($can_apply_to_equity) { $this->container['can_apply_to_equity'] = $can_apply_to_equity; return $this; } /** * Gets can_apply_to_expenses * * @return bool|null */ public function getCanApplyToExpenses() { return $this->container['can_apply_to_expenses']; } /** * Sets can_apply_to_expenses * * @param bool|null $can_apply_to_expenses Boolean to describe if tax rate can be used for expense accounts i.e. true,false * * @return $this */ public function setCanApplyToExpenses($can_apply_to_expenses) { $this->container['can_apply_to_expenses'] = $can_apply_to_expenses; return $this; } /** * Gets can_apply_to_liabilities * * @return bool|null */ public function getCanApplyToLiabilities() { return $this->container['can_apply_to_liabilities']; } /** * Sets can_apply_to_liabilities * * @param bool|null $can_apply_to_liabilities Boolean to describe if tax rate can be used for liability accounts i.e. true,false * * @return $this */ public function setCanApplyToLiabilities($can_apply_to_liabilities) { $this->container['can_apply_to_liabilities'] = $can_apply_to_liabilities; return $this; } /** * Gets can_apply_to_revenue * * @return bool|null */ public function getCanApplyToRevenue() { return $this->container['can_apply_to_revenue']; } /** * Sets can_apply_to_revenue * * @param bool|null $can_apply_to_revenue Boolean to describe if tax rate can be used for revenue accounts i.e. true,false * * @return $this */ public function setCanApplyToRevenue($can_apply_to_revenue) { $this->container['can_apply_to_revenue'] = $can_apply_to_revenue; return $this; } /** * Gets display_tax_rate * * @return double|null */ public function getDisplayTaxRate() { return $this->container['display_tax_rate']; } /** * Sets display_tax_rate * * @param double|null $display_tax_rate Tax Rate (decimal to 4dp) e.g 12.5000 * * @return $this */ public function setDisplayTaxRate($display_tax_rate) { $this->container['display_tax_rate'] = $display_tax_rate; return $this; } /** * Gets effective_rate * * @return double|null */ public function getEffectiveRate() { return $this->container['effective_rate']; } /** * Sets effective_rate * * @param double|null $effective_rate Effective Tax Rate (decimal to 4dp) e.g 12.5000 * * @return $this */ public function setEffectiveRate($effective_rate) { $this->container['effective_rate'] = $effective_rate; return $this; } /** * Returns true if offset exists. False otherwise. * * @param integer $offset Offset * * @return boolean */ public function offsetExists($offset) { return isset($this->container[$offset]); } /** * Gets offset. * * @param integer $offset Offset * * @return mixed */ public function offsetGet($offset) { return isset($this->container[$offset]) ? $this->container[$offset] : null; } /** * Sets value based on offset. * * @param integer $offset Offset * @param mixed $value Value to be set * * @return void */ public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } } /** * Unsets offset. * * @param integer $offset Offset * * @return void */ public function offsetUnset($offset) { unset($this->container[$offset]); } /** * Gets the string presentation of the object * * @return string */ public function __toString() { return json_encode( AccountingObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); } }