/
home
/
desid573
/
olivercann.tk
/
xero-php-oauth2-master
/
lib
/
Models
/
Accounting
/
/home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/Accounting
mkdir
upload
Name
Size
Mode
Actions
Account.php
29756
0644
edit
dl
rm
Accounts.php
6726
0644
edit
dl
rm
AccountsPayable.php
6897
0644
edit
dl
rm
AccountsReceivable.php
6909
0644
edit
dl
rm
AccountType.php
2637
0644
edit
dl
rm
Action.php
7831
0644
edit
dl
rm
Actions.php
6689
0644
edit
dl
rm
Address.php
18149
0644
edit
dl
rm
AddressForOrganisation.php
18431
0644
edit
dl
rm
Allocation.php
13199
0644
edit
dl
rm
Allocations.php
6837
0644
edit
dl
rm
Attachment.php
9852
0644
edit
dl
rm
Attachments.php
6837
0644
edit
dl
rm
BalanceDetails.php
8014
0644
edit
dl
rm
Balances.php
7643
0644
edit
dl
rm
BankTransaction.php
27506
0644
edit
dl
rm
BankTransactions.php
7046
0644
edit
dl
rm
BankTransfer.php
18958
0644
edit
dl
rm
BankTransfers.php
6935
0644
edit
dl
rm
BatchPayment.php
24614
0644
edit
dl
rm
BatchPaymentDetails.php
11106
0644
edit
dl
rm
BatchPayments.php
6935
0644
edit
dl
rm
Bill.php
6753
0644
edit
dl
rm
BrandingTheme.php
11163
0644
edit
dl
rm
BrandingThemes.php
6972
0644
edit
dl
rm
Budget.php
11863
0644
edit
dl
rm
BudgetBalance.php
9446
0644
edit
dl
rm
BudgetLine.php
7893
0644
edit
dl
rm
BudgetLines.php
9410
0644
edit
dl
rm
Budgets.php
6689
0644
edit
dl
rm
CISOrgSetting.php
8211
0644
edit
dl
rm
CISOrgSettings.php
6885
0644
edit
dl
rm
CISSetting.php
6967
0644
edit
dl
rm
CISSettings.php
6861
0644
edit
dl
rm
Contact.php
45981
0644
edit
dl
rm
ContactGroup.php
9834
0644
edit
dl
rm
ContactGroups.php
6935
0644
edit
dl
rm
ContactPerson.php
8605
0644
edit
dl
rm
Contacts.php
6726
0644
edit
dl
rm
ConversionBalances.php
8060
0644
edit
dl
rm
ConversionDate.php
6898
0644
edit
dl
rm
CountryCode.php
11486
0644
edit
dl
rm
CreditNote.php
35134
0644
edit
dl
rm
CreditNotes.php
6861
0644
edit
dl
rm
Currencies.php
6797
0644
edit
dl
rm
Currency.php
6844
0644
edit
dl
rm
CurrencyCode.php
8914
0644
edit
dl
rm
Element.php
11961
0644
edit
dl
rm
Employee.php
14613
0644
edit
dl
rm
Employees.php
6763
0644
edit
dl
rm
Error.php
8284
0644
edit
dl
rm
ExpenseClaim.php
16902
0644
edit
dl
rm
ExpenseClaims.php
6935
0644
edit
dl
rm
ExternalLink.php
8889
0644
edit
dl
rm
HistoryRecord.php
8376
0644
edit
dl
rm
HistoryRecords.php
6972
0644
edit
dl
rm
ImportSummary.php
7295
0644
edit
dl
rm
ImportSummaryAccounts.php
11564
0644
edit
dl
rm
ImportSummaryObject.php
6438
0644
edit
dl
rm
ImportSummaryOrganisation.php
6188
0644
edit
dl
rm
Invoice.php
45864
0644
edit
dl
rm
InvoiceReminder.php
6162
0644
edit
dl
rm
InvoiceReminders.php
7046
0644
edit
dl
rm
Invoices.php
6726
0644
edit
dl
rm
Item.php
21810
0644
edit
dl
rm
Items.php
6615
0644
edit
dl
rm
Journal.php
16301
0644
edit
dl
rm
JournalLine.php
14938
0644
edit
dl
rm
Journals.php
6726
0644
edit
dl
rm
LineAmountTypes.php
1476
0644
edit
dl
rm
LineItem.php
17084
0644
edit
dl
rm
LineItemTracking.php
9061
0644
edit
dl
rm
LinkedTransaction.php
19955
0644
edit
dl
rm
LinkedTransactions.php
7120
0644
edit
dl
rm
ManualJournal.php
19752
0644
edit
dl
rm
ManualJournalLine.php
11550
0644
edit
dl
rm
ManualJournals.php
6972
0644
edit
dl
rm
ModelInterface.php
2083
0644
edit
dl
rm
OnlineInvoice.php
6377
0644
edit
dl
rm
OnlineInvoices.php
6972
0644
edit
dl
rm
Organisation.php
49523
0644
edit
dl
rm
Organisations.php
6911
0644
edit
dl
rm
Overpayment.php
23742
0644
edit
dl
rm
Overpayments.php
6874
0644
edit
dl
rm
Payment.php
30821
0644
edit
dl
rm
PaymentDelete.php
6262
0644
edit
dl
rm
Payments.php
6726
0644
edit
dl
rm
PaymentService.php
11035
0644
edit
dl
rm
PaymentServices.php
7009
0644
edit
dl
rm
PaymentTerm.php
6903
0644
edit
dl
rm
PaymentTermType.php
1517
0644
edit
dl
rm
Phone.php
11423
0644
edit
dl
rm
Prepayment.php
24524
0644
edit
dl
rm
Prepayments.php
6837
0644
edit
dl
rm
Purchase.php
8797
0644
edit
dl
rm
PurchaseOrder.php
33320
0644
edit
dl
rm
PurchaseOrders.php
6972
0644
edit
dl
rm
Quote.php
28507
0644
edit
dl
rm
QuoteLineAmountTypes.php
1489
0644
edit
dl
rm
Quotes.php
6652
0644
edit
dl
rm
QuoteStatusCodes.php
1560
0644
edit
dl
rm
Receipt.php
21734
0644
edit
dl
rm
Receipts.php
6726
0644
edit
dl
rm
RepeatingInvoice.php
20012
0644
edit
dl
rm
RepeatingInvoices.php
7083
0644
edit
dl
rm
Report.php
11455
0644
edit
dl
rm
ReportAttribute.php
6658
0644
edit
dl
rm
ReportCell.php
6944
0644
edit
dl
rm
ReportFields.php
7502
0644
edit
dl
rm
ReportRow.php
7595
0644
edit
dl
rm
ReportRows.php
8307
0644
edit
dl
rm
Reports.php
6689
0644
edit
dl
rm
ReportWithRow.php
12625
0644
edit
dl
rm
ReportWithRows.php
6282
0644
edit
dl
rm
RequestEmpty.php
6170
0644
edit
dl
rm
RowType.php
1378
0644
edit
dl
rm
SalesTrackingCategory.php
7464
0644
edit
dl
rm
Schedule.php
16224
0644
edit
dl
rm
Setup.php
8295
0644
edit
dl
rm
SetupBalanceDetails.php
7984
0644
edit
dl
rm
SetupConversionBalances.php
8073
0644
edit
dl
rm
SetupConversionDate.php
6967
0644
edit
dl
rm
TaxComponent.php
8430
0644
edit
dl
rm
TaxRate.php
25150
0644
edit
dl
rm
TaxRates.php
6750
0644
edit
dl
rm
TaxType.php
5119
0644
edit
dl
rm
TenNinetyNineContact.php
19615
0644
edit
dl
rm
TenNinteyNineContact.php
19641
0644
edit
dl
rm
TimeZone.php
11690
0644
edit
dl
rm
TrackingCategories.php
7117
0644
edit
dl
rm
TrackingCategory.php
12281
0644
edit
dl
rm
TrackingOption.php
10294
0644
edit
dl
rm
TrackingOptions.php
6753
0644
edit
dl
rm
User.php
12935
0644
edit
dl
rm
Users.php
6615
0644
edit
dl
rm
ValidationError.php
6171
0644
edit
dl
rm
Edit:
/home/desid573/olivercann.tk/xero-php-oauth2-master/lib/Models/Accounting/RepeatingInvoice.php
(20012B)
<?php /** * RepeatingInvoice * * PHP version 5 * * @category Class * @package XeroAPI\XeroPHP * @author OpenAPI Generator team * @link https://openapi-generator.tech */ /** * Xero Accounting API * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * Contact: api@xero.com * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 4.3.1 */ /** * 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; use \XeroAPI\XeroPHP\StringUtil; /** * RepeatingInvoice Class Doc Comment * * @category Class * @package XeroAPI\XeroPHP * @author OpenAPI Generator team * @link https://openapi-generator.tech */ class RepeatingInvoice implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $openAPIModelName = 'RepeatingInvoice'; /** * Array of property to type mappings. Used for (de)serialization * * @var string[] */ protected static $openAPITypes = [ 'type' => 'string', 'contact' => '\XeroAPI\XeroPHP\Models\Accounting\Contact', 'schedule' => '\XeroAPI\XeroPHP\Models\Accounting\Schedule', 'line_items' => '\XeroAPI\XeroPHP\Models\Accounting\LineItem[]', 'line_amount_types' => '\XeroAPI\XeroPHP\Models\Accounting\LineAmountTypes', 'reference' => 'string', 'branding_theme_id' => 'string', 'currency_code' => '\XeroAPI\XeroPHP\Models\Accounting\CurrencyCode', 'status' => 'string', 'sub_total' => 'double', 'total_tax' => 'double', 'total' => 'double', 'repeating_invoice_id' => 'string', 'id' => 'string', 'has_attachments' => 'bool', 'attachments' => '\XeroAPI\XeroPHP\Models\Accounting\Attachment[]' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $openAPIFormats = [ 'type' => null, 'contact' => null, 'schedule' => null, 'line_items' => null, 'line_amount_types' => null, 'reference' => null, 'branding_theme_id' => 'uuid', 'currency_code' => null, 'status' => null, 'sub_total' => 'double', 'total_tax' => 'double', 'total' => 'double', 'repeating_invoice_id' => 'uuid', 'id' => 'uuid', 'has_attachments' => null, 'attachments' => 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 = [ 'type' => 'Type', 'contact' => 'Contact', 'schedule' => 'Schedule', 'line_items' => 'LineItems', 'line_amount_types' => 'LineAmountTypes', 'reference' => 'Reference', 'branding_theme_id' => 'BrandingThemeID', 'currency_code' => 'CurrencyCode', 'status' => 'Status', 'sub_total' => 'SubTotal', 'total_tax' => 'TotalTax', 'total' => 'Total', 'repeating_invoice_id' => 'RepeatingInvoiceID', 'id' => 'ID', 'has_attachments' => 'HasAttachments', 'attachments' => 'Attachments' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'type' => 'setType', 'contact' => 'setContact', 'schedule' => 'setSchedule', 'line_items' => 'setLineItems', 'line_amount_types' => 'setLineAmountTypes', 'reference' => 'setReference', 'branding_theme_id' => 'setBrandingThemeId', 'currency_code' => 'setCurrencyCode', 'status' => 'setStatus', 'sub_total' => 'setSubTotal', 'total_tax' => 'setTotalTax', 'total' => 'setTotal', 'repeating_invoice_id' => 'setRepeatingInvoiceId', 'id' => 'setId', 'has_attachments' => 'setHasAttachments', 'attachments' => 'setAttachments' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'type' => 'getType', 'contact' => 'getContact', 'schedule' => 'getSchedule', 'line_items' => 'getLineItems', 'line_amount_types' => 'getLineAmountTypes', 'reference' => 'getReference', 'branding_theme_id' => 'getBrandingThemeId', 'currency_code' => 'getCurrencyCode', 'status' => 'getStatus', 'sub_total' => 'getSubTotal', 'total_tax' => 'getTotalTax', 'total' => 'getTotal', 'repeating_invoice_id' => 'getRepeatingInvoiceId', 'id' => 'getId', 'has_attachments' => 'getHasAttachments', 'attachments' => 'getAttachments' ]; /** * 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 TYPE_ACCPAY = 'ACCPAY'; const TYPE_ACCREC = 'ACCREC'; const STATUS_DRAFT = 'DRAFT'; const STATUS_AUTHORISED = 'AUTHORISED'; const STATUS_DELETED = 'DELETED'; /** * Gets allowable values of the enum * * @return string[] */ public function getTypeAllowableValues() { return [ self::TYPE_ACCPAY, self::TYPE_ACCREC, ]; } /** * Gets allowable values of the enum * * @return string[] */ public function getStatusAllowableValues() { return [ self::STATUS_DRAFT, self::STATUS_AUTHORISED, self::STATUS_DELETED, ]; } /** * 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['type'] = isset($data['type']) ? $data['type'] : null; $this->container['contact'] = isset($data['contact']) ? $data['contact'] : null; $this->container['schedule'] = isset($data['schedule']) ? $data['schedule'] : null; $this->container['line_items'] = isset($data['line_items']) ? $data['line_items'] : null; $this->container['line_amount_types'] = isset($data['line_amount_types']) ? $data['line_amount_types'] : null; $this->container['reference'] = isset($data['reference']) ? $data['reference'] : null; $this->container['branding_theme_id'] = isset($data['branding_theme_id']) ? $data['branding_theme_id'] : null; $this->container['currency_code'] = isset($data['currency_code']) ? $data['currency_code'] : null; $this->container['status'] = isset($data['status']) ? $data['status'] : null; $this->container['sub_total'] = isset($data['sub_total']) ? $data['sub_total'] : null; $this->container['total_tax'] = isset($data['total_tax']) ? $data['total_tax'] : null; $this->container['total'] = isset($data['total']) ? $data['total'] : null; $this->container['repeating_invoice_id'] = isset($data['repeating_invoice_id']) ? $data['repeating_invoice_id'] : null; $this->container['id'] = isset($data['id']) ? $data['id'] : null; $this->container['has_attachments'] = isset($data['has_attachments']) ? $data['has_attachments'] : false; $this->container['attachments'] = isset($data['attachments']) ? $data['attachments'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) ); } $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) ); } 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 type * * @return string|null */ public function getType() { return $this->container['type']; } /** * Sets type * * @param string|null $type See Invoice Types * * @return $this */ public function setType($type) { $allowedValues = $this->getTypeAllowableValues(); if (!is_null($type) && !in_array($type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'type', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['type'] = $type; return $this; } /** * Gets contact * * @return \XeroAPI\XeroPHP\Models\Accounting\Contact|null */ public function getContact() { return $this->container['contact']; } /** * Sets contact * * @param \XeroAPI\XeroPHP\Models\Accounting\Contact|null $contact contact * * @return $this */ public function setContact($contact) { $this->container['contact'] = $contact; return $this; } /** * Gets schedule * * @return \XeroAPI\XeroPHP\Models\Accounting\Schedule|null */ public function getSchedule() { return $this->container['schedule']; } /** * Sets schedule * * @param \XeroAPI\XeroPHP\Models\Accounting\Schedule|null $schedule schedule * * @return $this */ public function setSchedule($schedule) { $this->container['schedule'] = $schedule; return $this; } /** * Gets line_items * * @return \XeroAPI\XeroPHP\Models\Accounting\LineItem[]|null */ public function getLineItems() { return $this->container['line_items']; } /** * Sets line_items * * @param \XeroAPI\XeroPHP\Models\Accounting\LineItem[]|null $line_items See LineItems * * @return $this */ public function setLineItems($line_items) { $this->container['line_items'] = $line_items; return $this; } /** * Gets line_amount_types * * @return string|null */ public function getLineAmountTypes() { return $this->container['line_amount_types']; } /** * Sets line_amount_types * * @param string|null $line_amount_types line_amount_types * * @return $this */ public function setLineAmountTypes($line_amount_types) { $this->container['line_amount_types'] = $line_amount_types; return $this; } /** * Gets reference * * @return string|null */ public function getReference() { return $this->container['reference']; } /** * Sets reference * * @param string|null $reference ACCREC only – additional reference number * * @return $this */ public function setReference($reference) { $this->container['reference'] = $reference; return $this; } /** * Gets branding_theme_id * * @return string|null */ public function getBrandingThemeId() { return $this->container['branding_theme_id']; } /** * Sets branding_theme_id * * @param string|null $branding_theme_id See BrandingThemes * * @return $this */ public function setBrandingThemeId($branding_theme_id) { $this->container['branding_theme_id'] = $branding_theme_id; return $this; } /** * Gets currency_code * * @return string|null */ public function getCurrencyCode() { return $this->container['currency_code']; } /** * Sets currency_code * * @param string|null $currency_code currency_code * * @return $this */ public function setCurrencyCode($currency_code) { $this->container['currency_code'] = $currency_code; return $this; } /** * Gets status * * @return string|null */ public function getStatus() { return $this->container['status']; } /** * Sets status * * @param string|null $status One of the following - DRAFT or AUTHORISED – See Invoice 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 sub_total * * @return double|null */ public function getSubTotal() { return $this->container['sub_total']; } /** * Sets sub_total * * @param double|null $sub_total Total of invoice excluding taxes * * @return $this */ public function setSubTotal($sub_total) { $this->container['sub_total'] = $sub_total; return $this; } /** * Gets total_tax * * @return double|null */ public function getTotalTax() { return $this->container['total_tax']; } /** * Sets total_tax * * @param double|null $total_tax Total tax on invoice * * @return $this */ public function setTotalTax($total_tax) { $this->container['total_tax'] = $total_tax; return $this; } /** * Gets total * * @return double|null */ public function getTotal() { return $this->container['total']; } /** * Sets total * * @param double|null $total Total of Invoice tax inclusive (i.e. SubTotal + TotalTax) * * @return $this */ public function setTotal($total) { $this->container['total'] = $total; return $this; } /** * Gets repeating_invoice_id * * @return string|null */ public function getRepeatingInvoiceId() { return $this->container['repeating_invoice_id']; } /** * Sets repeating_invoice_id * * @param string|null $repeating_invoice_id Xero generated unique identifier for repeating invoice template * * @return $this */ public function setRepeatingInvoiceId($repeating_invoice_id) { $this->container['repeating_invoice_id'] = $repeating_invoice_id; return $this; } /** * Gets id * * @return string|null */ public function getId() { return $this->container['id']; } /** * Sets id * * @param string|null $id Xero generated unique identifier for repeating invoice template * * @return $this */ public function setId($id) { $this->container['id'] = $id; return $this; } /** * Gets has_attachments * * @return bool|null */ public function getHasAttachments() { return $this->container['has_attachments']; } /** * Sets has_attachments * * @param bool|null $has_attachments boolean to indicate if an invoice has an attachment * * @return $this */ public function setHasAttachments($has_attachments) { $this->container['has_attachments'] = $has_attachments; return $this; } /** * Gets attachments * * @return \XeroAPI\XeroPHP\Models\Accounting\Attachment[]|null */ public function getAttachments() { return $this->container['attachments']; } /** * Sets attachments * * @param \XeroAPI\XeroPHP\Models\Accounting\Attachment[]|null $attachments Displays array of attachments from the API * * @return $this */ public function setAttachments($attachments) { $this->container['attachments'] = $attachments; 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