/home/desid573/public_html/payment/xero-2/lib/Models/Accounting
NameSizeModeActions
Account.php297560644editdlrm
Accounts.php67260644editdlrm
AccountsPayable.php68970644editdlrm
AccountsReceivable.php69090644editdlrm
AccountType.php26370644editdlrm
Action.php78310644editdlrm
Actions.php66890644editdlrm
Address.php181490644editdlrm
AddressForOrganisation.php184310644editdlrm
Allocation.php131990644editdlrm
Allocations.php68370644editdlrm
Attachment.php98520644editdlrm
Attachments.php68370644editdlrm
BalanceDetails.php80140644editdlrm
Balances.php76430644editdlrm
BankTransaction.php275060644editdlrm
BankTransactions.php70460644editdlrm
BankTransfer.php189580644editdlrm
BankTransfers.php69350644editdlrm
BatchPayment.php246140644editdlrm
BatchPaymentDetails.php111060644editdlrm
BatchPayments.php69350644editdlrm
Bill.php67530644editdlrm
BrandingTheme.php111630644editdlrm
BrandingThemes.php69720644editdlrm
Budget.php118630644editdlrm
BudgetBalance.php94460644editdlrm
BudgetLine.php78930644editdlrm
BudgetLines.php94100644editdlrm
Budgets.php66890644editdlrm
CISOrgSetting.php82110644editdlrm
CISOrgSettings.php68850644editdlrm
CISSetting.php69670644editdlrm
CISSettings.php68610644editdlrm
Contact.php459810644editdlrm
ContactGroup.php98340644editdlrm
ContactGroups.php69350644editdlrm
ContactPerson.php86050644editdlrm
Contacts.php67260644editdlrm
ConversionBalances.php80600644editdlrm
ConversionDate.php68980644editdlrm
CountryCode.php114860644editdlrm
CreditNote.php351340644editdlrm
CreditNotes.php68610644editdlrm
Currencies.php67970644editdlrm
Currency.php68440644editdlrm
CurrencyCode.php89140644editdlrm
Element.php119610644editdlrm
Employee.php146130644editdlrm
Employees.php67630644editdlrm
Error.php82840644editdlrm
ExpenseClaim.php169020644editdlrm
ExpenseClaims.php69350644editdlrm
ExternalLink.php88890644editdlrm
HistoryRecord.php83760644editdlrm
HistoryRecords.php69720644editdlrm
ImportSummary.php72950644editdlrm
ImportSummaryAccounts.php115640644editdlrm
ImportSummaryObject.php64380644editdlrm
ImportSummaryOrganisation.php61880644editdlrm
Invoice.php458640644editdlrm
InvoiceReminder.php61620644editdlrm
InvoiceReminders.php70460644editdlrm
Invoices.php67260644editdlrm
Item.php218100644editdlrm
Items.php66150644editdlrm
Journal.php163010644editdlrm
JournalLine.php149380644editdlrm
Journals.php67260644editdlrm
LineAmountTypes.php14760644editdlrm
LineItem.php170840644editdlrm
LineItemTracking.php90610644editdlrm
LinkedTransaction.php199550644editdlrm
LinkedTransactions.php71200644editdlrm
ManualJournal.php197520644editdlrm
ManualJournalLine.php115500644editdlrm
ManualJournals.php69720644editdlrm
ModelInterface.php20830644editdlrm
OnlineInvoice.php63770644editdlrm
OnlineInvoices.php69720644editdlrm
Organisation.php495230644editdlrm
Organisations.php69110644editdlrm
Overpayment.php237420644editdlrm
Overpayments.php68740644editdlrm
Payment.php308210644editdlrm
PaymentDelete.php62620644editdlrm
Payments.php67260644editdlrm
PaymentService.php110350644editdlrm
PaymentServices.php70090644editdlrm
PaymentTerm.php69030644editdlrm
PaymentTermType.php15170644editdlrm
Phone.php114230644editdlrm
Prepayment.php245240644editdlrm
Prepayments.php68370644editdlrm
Purchase.php87970644editdlrm
PurchaseOrder.php333200644editdlrm
PurchaseOrders.php69720644editdlrm
Quote.php285070644editdlrm
QuoteLineAmountTypes.php14890644editdlrm
Quotes.php66520644editdlrm
QuoteStatusCodes.php15600644editdlrm
Receipt.php217340644editdlrm
Receipts.php67260644editdlrm
RepeatingInvoice.php200120644editdlrm
RepeatingInvoices.php70830644editdlrm
Report.php114550644editdlrm
ReportAttribute.php66580644editdlrm
ReportCell.php69440644editdlrm
ReportFields.php75020644editdlrm
ReportRow.php75950644editdlrm
ReportRows.php83070644editdlrm
Reports.php66890644editdlrm
ReportWithRow.php126250644editdlrm
ReportWithRows.php62820644editdlrm
RequestEmpty.php61700644editdlrm
RowType.php13780644editdlrm
SalesTrackingCategory.php74640644editdlrm
Schedule.php162240644editdlrm
Setup.php82950644editdlrm
SetupBalanceDetails.php79840644editdlrm
SetupConversionBalances.php80730644editdlrm
SetupConversionDate.php69670644editdlrm
TaxComponent.php84300644editdlrm
TaxRate.php251500644editdlrm
TaxRates.php67500644editdlrm
TaxType.php51190644editdlrm
TenNinetyNineContact.php196150644editdlrm
TenNinteyNineContact.php196410644editdlrm
TimeZone.php116900644editdlrm
TrackingCategories.php71170644editdlrm
TrackingCategory.php122810644editdlrm
TrackingOption.php102940644editdlrm
TrackingOptions.php67530644editdlrm
User.php129350644editdlrm
Users.php66150644editdlrm
ValidationError.php61710644editdlrm
Edit: /home/desid573/public_html/payment/xero-2/lib/Models/Accounting/AddressForOrganisation.php (18431B)
'string', 'address_line1' => 'string', 'address_line2' => 'string', 'address_line3' => 'string', 'address_line4' => 'string', 'city' => 'string', 'region' => 'string', 'postal_code' => 'string', 'country' => 'string', 'attention_to' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $openAPIFormats = [ 'address_type' => null, 'address_line1' => null, 'address_line2' => null, 'address_line3' => null, 'address_line4' => null, 'city' => null, 'region' => null, 'postal_code' => null, 'country' => null, 'attention_to' => 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 = [ 'address_type' => 'AddressType', 'address_line1' => 'AddressLine1', 'address_line2' => 'AddressLine2', 'address_line3' => 'AddressLine3', 'address_line4' => 'AddressLine4', 'city' => 'City', 'region' => 'Region', 'postal_code' => 'PostalCode', 'country' => 'Country', 'attention_to' => 'AttentionTo' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'address_type' => 'setAddressType', 'address_line1' => 'setAddressLine1', 'address_line2' => 'setAddressLine2', 'address_line3' => 'setAddressLine3', 'address_line4' => 'setAddressLine4', 'city' => 'setCity', 'region' => 'setRegion', 'postal_code' => 'setPostalCode', 'country' => 'setCountry', 'attention_to' => 'setAttentionTo' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'address_type' => 'getAddressType', 'address_line1' => 'getAddressLine1', 'address_line2' => 'getAddressLine2', 'address_line3' => 'getAddressLine3', 'address_line4' => 'getAddressLine4', 'city' => 'getCity', 'region' => 'getRegion', 'postal_code' => 'getPostalCode', 'country' => 'getCountry', 'attention_to' => 'getAttentionTo' ]; /** * 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 ADDRESS_TYPE_POBOX = 'POBOX'; const ADDRESS_TYPE_STREET = 'STREET'; const ADDRESS_TYPE_DELIVERY = 'DELIVERY'; /** * Gets allowable values of the enum * * @return string[] */ public function getAddressTypeAllowableValues() { return [ self::ADDRESS_TYPE_POBOX, self::ADDRESS_TYPE_STREET, self::ADDRESS_TYPE_DELIVERY, ]; } /** * 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['address_type'] = isset($data['address_type']) ? $data['address_type'] : null; $this->container['address_line1'] = isset($data['address_line1']) ? $data['address_line1'] : null; $this->container['address_line2'] = isset($data['address_line2']) ? $data['address_line2'] : null; $this->container['address_line3'] = isset($data['address_line3']) ? $data['address_line3'] : null; $this->container['address_line4'] = isset($data['address_line4']) ? $data['address_line4'] : null; $this->container['city'] = isset($data['city']) ? $data['city'] : null; $this->container['region'] = isset($data['region']) ? $data['region'] : null; $this->container['postal_code'] = isset($data['postal_code']) ? $data['postal_code'] : null; $this->container['country'] = isset($data['country']) ? $data['country'] : null; $this->container['attention_to'] = isset($data['attention_to']) ? $data['attention_to'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; $allowedValues = $this->getAddressTypeAllowableValues(); if (!is_null($this->container['address_type']) && !in_array($this->container['address_type'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'address_type', must be one of '%s'", implode("', '", $allowedValues) ); } if (!is_null($this->container['address_line1']) && (mb_strlen($this->container['address_line1']) > 500)) { $invalidProperties[] = "invalid value for 'address_line1', the character length must be smaller than or equal to 500."; } if (!is_null($this->container['address_line2']) && (mb_strlen($this->container['address_line2']) > 500)) { $invalidProperties[] = "invalid value for 'address_line2', the character length must be smaller than or equal to 500."; } if (!is_null($this->container['address_line3']) && (mb_strlen($this->container['address_line3']) > 500)) { $invalidProperties[] = "invalid value for 'address_line3', the character length must be smaller than or equal to 500."; } if (!is_null($this->container['address_line4']) && (mb_strlen($this->container['address_line4']) > 500)) { $invalidProperties[] = "invalid value for 'address_line4', the character length must be smaller than or equal to 500."; } if (!is_null($this->container['city']) && (mb_strlen($this->container['city']) > 255)) { $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['region']) && (mb_strlen($this->container['region']) > 255)) { $invalidProperties[] = "invalid value for 'region', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['postal_code']) && (mb_strlen($this->container['postal_code']) > 50)) { $invalidProperties[] = "invalid value for 'postal_code', the character length must be smaller than or equal to 50."; } if (!is_null($this->container['country']) && (mb_strlen($this->container['country']) > 50)) { $invalidProperties[] = "invalid value for 'country', the character length must be smaller than or equal to 50."; } if (!is_null($this->container['attention_to']) && (mb_strlen($this->container['attention_to']) > 255)) { $invalidProperties[] = "invalid value for 'attention_to', the character length must be smaller than or equal to 255."; } 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 address_type * * @return string|null */ public function getAddressType() { return $this->container['address_type']; } /** * Sets address_type * * @param string|null $address_type define the type of address * * @return $this */ public function setAddressType($address_type) { $allowedValues = $this->getAddressTypeAllowableValues(); if (!is_null($address_type) && !in_array($address_type, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'address_type', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['address_type'] = $address_type; return $this; } /** * Gets address_line1 * * @return string|null */ public function getAddressLine1() { return $this->container['address_line1']; } /** * Sets address_line1 * * @param string|null $address_line1 max length = 500 * * @return $this */ public function setAddressLine1($address_line1) { if (!is_null($address_line1) && (mb_strlen($address_line1) > 500)) { throw new \InvalidArgumentException('invalid length for $address_line1 when calling AddressForOrganisation., must be smaller than or equal to 500.'); } $this->container['address_line1'] = $address_line1; return $this; } /** * Gets address_line2 * * @return string|null */ public function getAddressLine2() { return $this->container['address_line2']; } /** * Sets address_line2 * * @param string|null $address_line2 max length = 500 * * @return $this */ public function setAddressLine2($address_line2) { if (!is_null($address_line2) && (mb_strlen($address_line2) > 500)) { throw new \InvalidArgumentException('invalid length for $address_line2 when calling AddressForOrganisation., must be smaller than or equal to 500.'); } $this->container['address_line2'] = $address_line2; return $this; } /** * Gets address_line3 * * @return string|null */ public function getAddressLine3() { return $this->container['address_line3']; } /** * Sets address_line3 * * @param string|null $address_line3 max length = 500 * * @return $this */ public function setAddressLine3($address_line3) { if (!is_null($address_line3) && (mb_strlen($address_line3) > 500)) { throw new \InvalidArgumentException('invalid length for $address_line3 when calling AddressForOrganisation., must be smaller than or equal to 500.'); } $this->container['address_line3'] = $address_line3; return $this; } /** * Gets address_line4 * * @return string|null */ public function getAddressLine4() { return $this->container['address_line4']; } /** * Sets address_line4 * * @param string|null $address_line4 max length = 500 * * @return $this */ public function setAddressLine4($address_line4) { if (!is_null($address_line4) && (mb_strlen($address_line4) > 500)) { throw new \InvalidArgumentException('invalid length for $address_line4 when calling AddressForOrganisation., must be smaller than or equal to 500.'); } $this->container['address_line4'] = $address_line4; return $this; } /** * Gets city * * @return string|null */ public function getCity() { return $this->container['city']; } /** * Sets city * * @param string|null $city max length = 255 * * @return $this */ public function setCity($city) { if (!is_null($city) && (mb_strlen($city) > 255)) { throw new \InvalidArgumentException('invalid length for $city when calling AddressForOrganisation., must be smaller than or equal to 255.'); } $this->container['city'] = $city; return $this; } /** * Gets region * * @return string|null */ public function getRegion() { return $this->container['region']; } /** * Sets region * * @param string|null $region max length = 255 * * @return $this */ public function setRegion($region) { if (!is_null($region) && (mb_strlen($region) > 255)) { throw new \InvalidArgumentException('invalid length for $region when calling AddressForOrganisation., must be smaller than or equal to 255.'); } $this->container['region'] = $region; return $this; } /** * Gets postal_code * * @return string|null */ public function getPostalCode() { return $this->container['postal_code']; } /** * Sets postal_code * * @param string|null $postal_code max length = 50 * * @return $this */ public function setPostalCode($postal_code) { if (!is_null($postal_code) && (mb_strlen($postal_code) > 50)) { throw new \InvalidArgumentException('invalid length for $postal_code when calling AddressForOrganisation., must be smaller than or equal to 50.'); } $this->container['postal_code'] = $postal_code; return $this; } /** * Gets country * * @return string|null */ public function getCountry() { return $this->container['country']; } /** * Sets country * * @param string|null $country max length = 50, [A-Z], [a-z] only * * @return $this */ public function setCountry($country) { if (!is_null($country) && (mb_strlen($country) > 50)) { throw new \InvalidArgumentException('invalid length for $country when calling AddressForOrganisation., must be smaller than or equal to 50.'); } $this->container['country'] = $country; return $this; } /** * Gets attention_to * * @return string|null */ public function getAttentionTo() { return $this->container['attention_to']; } /** * Sets attention_to * * @param string|null $attention_to max length = 255 * * @return $this */ public function setAttentionTo($attention_to) { if (!is_null($attention_to) && (mb_strlen($attention_to) > 255)) { throw new \InvalidArgumentException('invalid length for $attention_to when calling AddressForOrganisation., must be smaller than or equal to 255.'); } $this->container['attention_to'] = $attention_to; 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 ); } }