/
home
/
desid573
/
public_html
/
angel
/
payment
/
xero
/
lib
/
Models
/
Accounting
/
/home/desid573/public_html/angel/payment/xero/lib/Models/Accounting
mkdir
upload
Name
Size
Mode
Actions
Account.php
29316
0644
edit
dl
rm
Accounts.php
6252
0644
edit
dl
rm
AccountsPayable.php
6885
0644
edit
dl
rm
AccountsReceivable.php
6897
0644
edit
dl
rm
AccountType.php
2631
0644
edit
dl
rm
Address.php
18200
0644
edit
dl
rm
Allocation.php
7869
0644
edit
dl
rm
Allocations.php
6336
0644
edit
dl
rm
Attachment.php
9834
0644
edit
dl
rm
Attachments.php
6336
0644
edit
dl
rm
Balances.php
7631
0644
edit
dl
rm
BankTransaction.php
26710
0644
edit
dl
rm
BankTransactions.php
6492
0644
edit
dl
rm
BankTransfer.php
15372
0644
edit
dl
rm
BankTransfers.php
6408
0644
edit
dl
rm
BatchPayment.php
21869
0644
edit
dl
rm
BatchPaymentDetails.php
11550
0644
edit
dl
rm
BatchPayments.php
6408
0644
edit
dl
rm
Bill.php
6741
0644
edit
dl
rm
BrandingTheme.php
10877
0644
edit
dl
rm
BrandingThemes.php
6436
0644
edit
dl
rm
CISOrgSetting.php
8184
0644
edit
dl
rm
CISSetting.php
6943
0644
edit
dl
rm
CISSettings.php
6352
0644
edit
dl
rm
Contact.php
44711
0644
edit
dl
rm
ContactGroup.php
9816
0644
edit
dl
rm
ContactGroups.php
6408
0644
edit
dl
rm
ContactPerson.php
8587
0644
edit
dl
rm
Contacts.php
6252
0644
edit
dl
rm
CountryCode.php
11489
0644
edit
dl
rm
CreditNote.php
26752
0644
edit
dl
rm
CreditNotes.php
6352
0644
edit
dl
rm
Currencies.php
6305
0644
edit
dl
rm
Currency.php
6914
0644
edit
dl
rm
CurrencyCode.php
8697
0644
edit
dl
rm
Element.php
6472
0644
edit
dl
rm
Employee.php
12228
0644
edit
dl
rm
Employees.php
6280
0644
edit
dl
rm
Error.php
8266
0644
edit
dl
rm
ExpenseClaim.php
16079
0644
edit
dl
rm
ExpenseClaims.php
6408
0644
edit
dl
rm
ExternalLink.php
8874
0644
edit
dl
rm
HistoryRecord.php
8117
0644
edit
dl
rm
HistoryRecords.php
6436
0644
edit
dl
rm
Invoice.php
39859
0644
edit
dl
rm
InvoiceReminder.php
6153
0644
edit
dl
rm
InvoiceReminders.php
6492
0644
edit
dl
rm
Invoices.php
6252
0644
edit
dl
rm
Item.php
20683
0644
edit
dl
rm
Items.php
6168
0644
edit
dl
rm
Journal.php
15185
0644
edit
dl
rm
JournalLine.php
14977
0644
edit
dl
rm
Journals.php
6252
0644
edit
dl
rm
LineAmountTypes.php
1470
0644
edit
dl
rm
LineItem.php
16324
0644
edit
dl
rm
LineItemTracking.php
8140
0644
edit
dl
rm
LinkedTransaction.php
19793
0644
edit
dl
rm
LinkedTransactions.php
6548
0644
edit
dl
rm
ManualJournal.php
17838
0644
edit
dl
rm
ManualJournalLine.php
10810
0644
edit
dl
rm
ManualJournals.php
6436
0644
edit
dl
rm
ModelInterface.php
2109
0644
edit
dl
rm
OnlineInvoice.php
6368
0644
edit
dl
rm
OnlineInvoices.php
6436
0644
edit
dl
rm
Organisation.php
46336
0644
edit
dl
rm
Organisations.php
6392
0644
edit
dl
rm
Overpayment.php
22012
0644
edit
dl
rm
Overpayments.php
6364
0644
edit
dl
rm
Payment.php
27061
0644
edit
dl
rm
Payments.php
6252
0644
edit
dl
rm
PaymentService.php
11011
0644
edit
dl
rm
PaymentServices.php
6464
0644
edit
dl
rm
PaymentTerm.php
6891
0644
edit
dl
rm
PaymentTermType.php
1511
0644
edit
dl
rm
Phone.php
11405
0644
edit
dl
rm
Prepayment.php
21263
0644
edit
dl
rm
Prepayments.php
6336
0644
edit
dl
rm
Purchase.php
8779
0644
edit
dl
rm
PurchaseOrder.php
30674
0644
edit
dl
rm
PurchaseOrders.php
6436
0644
edit
dl
rm
Quote.php
24959
0644
edit
dl
rm
Quotes.php
6196
0644
edit
dl
rm
QuoteStatusCodes.php
1496
0644
edit
dl
rm
Receipt.php
20293
0644
edit
dl
rm
Receipts.php
6252
0644
edit
dl
rm
RepeatingInvoice.php
20056
0644
edit
dl
rm
RepeatingInvoices.php
6520
0644
edit
dl
rm
Report.php
11865
0644
edit
dl
rm
ReportAttribute.php
6646
0644
edit
dl
rm
ReportCell.php
6932
0644
edit
dl
rm
ReportFields.php
7489
0644
edit
dl
rm
ReportRow.php
7580
0644
edit
dl
rm
ReportRows.php
8289
0644
edit
dl
rm
Reports.php
6224
0644
edit
dl
rm
ReportWithRow.php
12323
0644
edit
dl
rm
ReportWithRows.php
6273
0644
edit
dl
rm
RequestEmpty.php
6161
0644
edit
dl
rm
RowType.php
1372
0644
edit
dl
rm
SalesTrackingCategory.php
7452
0644
edit
dl
rm
Schedule.php
13251
0644
edit
dl
rm
TaxComponent.php
8412
0644
edit
dl
rm
TaxRate.php
21187
0644
edit
dl
rm
TaxRates.php
6268
0644
edit
dl
rm
TaxType.php
4653
0644
edit
dl
rm
TenNinteyNineContact.php
19543
0644
edit
dl
rm
TimeZone.php
11522
0644
edit
dl
rm
TrackingCategories.php
6545
0644
edit
dl
rm
TrackingCategory.php
12257
0644
edit
dl
rm
TrackingOption.php
10269
0644
edit
dl
rm
TrackingOptions.php
6280
0644
edit
dl
rm
User.php
12646
0644
edit
dl
rm
Users.php
6168
0644
edit
dl
rm
ValidationError.php
6162
0644
edit
dl
rm
Edit:
/home/desid573/public_html/angel/payment/xero/lib/Models/Accounting/Journal.php
(15185B)
<?php /** * Journal * * PHP version 5 * * @category Class * @package XeroAPI\XeroPHP * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Accounting API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * OpenAPI spec version: 2.0.0 * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 4.0.0 */ /** * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ namespace XeroAPI\XeroPHP\Models\Accounting; use \ArrayAccess; use \XeroAPI\XeroPHP\AccountingObjectSerializer; /** * Journal Class Doc Comment * * @category Class * @package XeroAPI\XeroPHP * @author OpenAPI Generator team * @link https://openapi-generator.tech */ class Journal implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $openAPIModelName = 'Journal'; /** * Array of property to type mappings. Used for (de)serialization * * @var string[] */ protected static $openAPITypes = [ 'journal_id' => 'string', 'journal_date' => '\DateTime', 'journal_number' => 'string', 'created_date_utc' => '\DateTime', 'reference' => 'string', 'source_id' => 'string', 'source_type' => 'string', 'journal_lines' => '\XeroAPI\XeroPHP\Models\Accounting\JournalLine[]' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $openAPIFormats = [ 'journal_id' => 'uuid', 'journal_date' => 'date', 'journal_number' => null, 'created_date_utc' => 'date-time', 'reference' => null, 'source_id' => 'uuid', 'source_type' => null, 'journal_lines' => null ]; /** * 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 = [ 'journal_id' => 'JournalID', 'journal_date' => 'JournalDate', 'journal_number' => 'JournalNumber', 'created_date_utc' => 'CreatedDateUTC', 'reference' => 'Reference', 'source_id' => 'SourceID', 'source_type' => 'SourceType', 'journal_lines' => 'JournalLines' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'journal_id' => 'setJournalId', 'journal_date' => 'setJournalDate', 'journal_number' => 'setJournalNumber', 'created_date_utc' => 'setCreatedDateUtc', 'reference' => 'setReference', 'source_id' => 'setSourceId', 'source_type' => 'setSourceType', 'journal_lines' => 'setJournalLines' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'journal_id' => 'getJournalId', 'journal_date' => 'getJournalDate', 'journal_number' => 'getJournalNumber', 'created_date_utc' => 'getCreatedDateUtc', 'reference' => 'getReference', 'source_id' => 'getSourceId', 'source_type' => 'getSourceType', 'journal_lines' => 'getJournalLines' ]; /** * 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 SOURCE_TYPE_ACCREC = 'ACCREC'; const SOURCE_TYPE_ACCPAY = 'ACCPAY'; const SOURCE_TYPE_ACCRECCREDIT = 'ACCRECCREDIT'; const SOURCE_TYPE_ACCPAYCREDIT = 'ACCPAYCREDIT'; const SOURCE_TYPE_ACCRECPAYMENT = 'ACCRECPAYMENT'; const SOURCE_TYPE_ACCPAYPAYMENT = 'ACCPAYPAYMENT'; const SOURCE_TYPE_ARCREDITPAYMENT = 'ARCREDITPAYMENT'; const SOURCE_TYPE_APCREDITPAYMENT = 'APCREDITPAYMENT'; const SOURCE_TYPE_CASHREC = 'CASHREC'; const SOURCE_TYPE_CASHPAID = 'CASHPAID'; const SOURCE_TYPE_TRANSFER = 'TRANSFER'; const SOURCE_TYPE_ARPREPAYMENT = 'ARPREPAYMENT'; const SOURCE_TYPE_APPREPAYMENT = 'APPREPAYMENT'; const SOURCE_TYPE_AROVERPAYMENT = 'AROVERPAYMENT'; const SOURCE_TYPE_APOVERPAYMENT = 'APOVERPAYMENT'; const SOURCE_TYPE_EXPCLAIM = 'EXPCLAIM'; const SOURCE_TYPE_EXPPAYMENT = 'EXPPAYMENT'; const SOURCE_TYPE_MANJOURNAL = 'MANJOURNAL'; const SOURCE_TYPE_PAYSLIP = 'PAYSLIP'; const SOURCE_TYPE_WAGEPAYABLE = 'WAGEPAYABLE'; const SOURCE_TYPE_INTEGRATEDPAYROLLPE = 'INTEGRATEDPAYROLLPE'; const SOURCE_TYPE_INTEGRATEDPAYROLLPT = 'INTEGRATEDPAYROLLPT'; const SOURCE_TYPE_EXTERNALSPENDMONEY = 'EXTERNALSPENDMONEY'; const SOURCE_TYPE_INTEGRATEDPAYROLLPTPAYMENT = 'INTEGRATEDPAYROLLPTPAYMENT'; const SOURCE_TYPE_INTEGRATEDPAYROLLCN = 'INTEGRATEDPAYROLLCN'; /** * Gets allowable values of the enum * * @return string[] */ public function getSourceTypeAllowableValues() { return [ self::SOURCE_TYPE_ACCREC, self::SOURCE_TYPE_ACCPAY, self::SOURCE_TYPE_ACCRECCREDIT, self::SOURCE_TYPE_ACCPAYCREDIT, self::SOURCE_TYPE_ACCRECPAYMENT, self::SOURCE_TYPE_ACCPAYPAYMENT, self::SOURCE_TYPE_ARCREDITPAYMENT, self::SOURCE_TYPE_APCREDITPAYMENT, self::SOURCE_TYPE_CASHREC, self::SOURCE_TYPE_CASHPAID, self::SOURCE_TYPE_TRANSFER, self::SOURCE_TYPE_ARPREPAYMENT, self::SOURCE_TYPE_APPREPAYMENT, self::SOURCE_TYPE_AROVERPAYMENT, self::SOURCE_TYPE_APOVERPAYMENT, self::SOURCE_TYPE_EXPCLAIM, self::SOURCE_TYPE_EXPPAYMENT, self::SOURCE_TYPE_MANJOURNAL, self::SOURCE_TYPE_PAYSLIP, self::SOURCE_TYPE_WAGEPAYABLE, self::SOURCE_TYPE_INTEGRATEDPAYROLLPE, self::SOURCE_TYPE_INTEGRATEDPAYROLLPT, self::SOURCE_TYPE_EXTERNALSPENDMONEY, self::SOURCE_TYPE_INTEGRATEDPAYROLLPTPAYMENT, self::SOURCE_TYPE_INTEGRATEDPAYROLLCN, ]; } /** * 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['journal_id'] = isset($data['journal_id']) ? $data['journal_id'] : null; $this->container['journal_date'] = isset($data['journal_date']) ? $data['journal_date'] : null; $this->container['journal_number'] = isset($data['journal_number']) ? $data['journal_number'] : null; $this->container['created_date_utc'] = isset($data['created_date_utc']) ? $data['created_date_utc'] : null; $this->container['reference'] = isset($data['reference']) ? $data['reference'] : null; $this->container['source_id'] = isset($data['source_id']) ? $data['source_id'] : null; $this->container['source_type'] = isset($data['source_type']) ? $data['source_type'] : null; $this->container['journal_lines'] = isset($data['journal_lines']) ? $data['journal_lines'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getSourceTypeAllowableValues(); if (!is_null($this->container['source_type']) && !in_array($this->container['source_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'source_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 journal_id * * @return string|null */ public function getJournalId() { return $this->container['journal_id']; } /** * Sets journal_id * * @param string|null $journal_id Xero identifier * * @return $this */ public function setJournalId($journal_id) { $this->container['journal_id'] = $journal_id; return $this; } /** * Gets journal_date * * @return \DateTime|null */ public function getJournalDate() { return $this->container['journal_date']; } /** * Sets journal_date * * @param \DateTime|null $journal_date Date the journal was posted * * @return $this */ public function setJournalDate($journal_date) { $this->container['journal_date'] = $journal_date; return $this; } /** * Gets journal_number * * @return string|null */ public function getJournalNumber() { return $this->container['journal_number']; } /** * Sets journal_number * * @param string|null $journal_number Xero generated journal number * * @return $this */ public function setJournalNumber($journal_number) { $this->container['journal_number'] = $journal_number; return $this; } /** * Gets created_date_utc * * @return \DateTime|null */ public function getCreatedDateUtc() { return $this->container['created_date_utc']; } /** * Sets created_date_utc * * @param \DateTime|null $created_date_utc Created date UTC format * * @return $this */ public function setCreatedDateUtc($created_date_utc) { $this->container['created_date_utc'] = $created_date_utc; return $this; } /** * Gets reference * * @return string|null */ public function getReference() { return $this->container['reference']; } /** * Sets reference * * @param string|null $reference reference field for additional indetifying information * * @return $this */ public function setReference($reference) { $this->container['reference'] = $reference; return $this; } /** * Gets source_id * * @return string|null */ public function getSourceId() { return $this->container['source_id']; } /** * Sets source_id * * @param string|null $source_id The identifier for the source transaction (e.g. InvoiceID) * * @return $this */ public function setSourceId($source_id) { $this->container['source_id'] = $source_id; return $this; } /** * Gets source_type * * @return string|null */ public function getSourceType() { return $this->container['source_type']; } /** * Sets source_type * * @param string|null $source_type The journal source type. The type of transaction that created the journal * * @return $this */ public function setSourceType($source_type) { $allowedValues = $this->getSourceTypeAllowableValues(); if (!is_null($source_type) && !in_array($source_type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'source_type', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['source_type'] = $source_type; return $this; } /** * Gets journal_lines * * @return \XeroAPI\XeroPHP\Models\Accounting\JournalLine[]|null */ public function getJournalLines() { return $this->container['journal_lines']; } /** * Sets journal_lines * * @param \XeroAPI\XeroPHP\Models\Accounting\JournalLine[]|null $journal_lines See JournalLines * * @return $this */ public function setJournalLines($journal_lines) { $this->container['journal_lines'] = $journal_lines; 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 ); } }
Save
cmd:
run