/
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/Contact.php
(45981B)
<?php /** * Contact * * 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; /** * Contact Class Doc Comment * * @category Class * @package XeroAPI\XeroPHP * @author OpenAPI Generator team * @link https://openapi-generator.tech */ class Contact implements ModelInterface, ArrayAccess { const DISCRIMINATOR = null; /** * The original name of the model. * * @var string */ protected static $openAPIModelName = 'Contact'; /** * Array of property to type mappings. Used for (de)serialization * * @var string[] */ protected static $openAPITypes = [ 'contact_id' => 'string', 'contact_number' => 'string', 'account_number' => 'string', 'contact_status' => 'string', 'name' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'email_address' => 'string', 'skype_user_name' => 'string', 'contact_persons' => '\XeroAPI\XeroPHP\Models\Accounting\ContactPerson[]', 'bank_account_details' => 'string', 'tax_number' => 'string', 'accounts_receivable_tax_type' => 'string', 'accounts_payable_tax_type' => 'string', 'addresses' => '\XeroAPI\XeroPHP\Models\Accounting\Address[]', 'phones' => '\XeroAPI\XeroPHP\Models\Accounting\Phone[]', 'is_supplier' => 'bool', 'is_customer' => 'bool', 'default_currency' => '\XeroAPI\XeroPHP\Models\Accounting\CurrencyCode', 'xero_network_key' => 'string', 'sales_default_account_code' => 'string', 'purchases_default_account_code' => 'string', 'sales_tracking_categories' => '\XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]', 'purchases_tracking_categories' => '\XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]', 'tracking_category_name' => 'string', 'tracking_category_option' => 'string', 'payment_terms' => '\XeroAPI\XeroPHP\Models\Accounting\PaymentTerm', 'updated_date_utc' => 'string', 'contact_groups' => '\XeroAPI\XeroPHP\Models\Accounting\ContactGroup[]', 'website' => 'string', 'branding_theme' => '\XeroAPI\XeroPHP\Models\Accounting\BrandingTheme', 'batch_payments' => '\XeroAPI\XeroPHP\Models\Accounting\BatchPaymentDetails', 'discount' => 'double', 'balances' => '\XeroAPI\XeroPHP\Models\Accounting\Balances', 'attachments' => '\XeroAPI\XeroPHP\Models\Accounting\Attachment[]', 'has_attachments' => 'bool', 'validation_errors' => '\XeroAPI\XeroPHP\Models\Accounting\ValidationError[]', 'has_validation_errors' => 'bool', 'status_attribute_string' => 'string' ]; /** * Array of property to format mappings. Used for (de)serialization * * @var string[] */ protected static $openAPIFormats = [ 'contact_id' => 'uuid', 'contact_number' => null, 'account_number' => null, 'contact_status' => null, 'name' => null, 'first_name' => null, 'last_name' => null, 'email_address' => null, 'skype_user_name' => null, 'contact_persons' => null, 'bank_account_details' => null, 'tax_number' => null, 'accounts_receivable_tax_type' => null, 'accounts_payable_tax_type' => null, 'addresses' => null, 'phones' => null, 'is_supplier' => null, 'is_customer' => null, 'default_currency' => null, 'xero_network_key' => null, 'sales_default_account_code' => null, 'purchases_default_account_code' => null, 'sales_tracking_categories' => null, 'purchases_tracking_categories' => null, 'tracking_category_name' => null, 'tracking_category_option' => null, 'payment_terms' => null, 'updated_date_utc' => null, 'contact_groups' => null, 'website' => null, 'branding_theme' => null, 'batch_payments' => null, 'discount' => 'double', 'balances' => null, 'attachments' => null, 'has_attachments' => null, 'validation_errors' => null, 'has_validation_errors' => null, 'status_attribute_string' => 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 = [ 'contact_id' => 'ContactID', 'contact_number' => 'ContactNumber', 'account_number' => 'AccountNumber', 'contact_status' => 'ContactStatus', 'name' => 'Name', 'first_name' => 'FirstName', 'last_name' => 'LastName', 'email_address' => 'EmailAddress', 'skype_user_name' => 'SkypeUserName', 'contact_persons' => 'ContactPersons', 'bank_account_details' => 'BankAccountDetails', 'tax_number' => 'TaxNumber', 'accounts_receivable_tax_type' => 'AccountsReceivableTaxType', 'accounts_payable_tax_type' => 'AccountsPayableTaxType', 'addresses' => 'Addresses', 'phones' => 'Phones', 'is_supplier' => 'IsSupplier', 'is_customer' => 'IsCustomer', 'default_currency' => 'DefaultCurrency', 'xero_network_key' => 'XeroNetworkKey', 'sales_default_account_code' => 'SalesDefaultAccountCode', 'purchases_default_account_code' => 'PurchasesDefaultAccountCode', 'sales_tracking_categories' => 'SalesTrackingCategories', 'purchases_tracking_categories' => 'PurchasesTrackingCategories', 'tracking_category_name' => 'TrackingCategoryName', 'tracking_category_option' => 'TrackingCategoryOption', 'payment_terms' => 'PaymentTerms', 'updated_date_utc' => 'UpdatedDateUTC', 'contact_groups' => 'ContactGroups', 'website' => 'Website', 'branding_theme' => 'BrandingTheme', 'batch_payments' => 'BatchPayments', 'discount' => 'Discount', 'balances' => 'Balances', 'attachments' => 'Attachments', 'has_attachments' => 'HasAttachments', 'validation_errors' => 'ValidationErrors', 'has_validation_errors' => 'HasValidationErrors', 'status_attribute_string' => 'StatusAttributeString' ]; /** * Array of attributes to setter functions (for deserialization of responses) * * @var string[] */ protected static $setters = [ 'contact_id' => 'setContactId', 'contact_number' => 'setContactNumber', 'account_number' => 'setAccountNumber', 'contact_status' => 'setContactStatus', 'name' => 'setName', 'first_name' => 'setFirstName', 'last_name' => 'setLastName', 'email_address' => 'setEmailAddress', 'skype_user_name' => 'setSkypeUserName', 'contact_persons' => 'setContactPersons', 'bank_account_details' => 'setBankAccountDetails', 'tax_number' => 'setTaxNumber', 'accounts_receivable_tax_type' => 'setAccountsReceivableTaxType', 'accounts_payable_tax_type' => 'setAccountsPayableTaxType', 'addresses' => 'setAddresses', 'phones' => 'setPhones', 'is_supplier' => 'setIsSupplier', 'is_customer' => 'setIsCustomer', 'default_currency' => 'setDefaultCurrency', 'xero_network_key' => 'setXeroNetworkKey', 'sales_default_account_code' => 'setSalesDefaultAccountCode', 'purchases_default_account_code' => 'setPurchasesDefaultAccountCode', 'sales_tracking_categories' => 'setSalesTrackingCategories', 'purchases_tracking_categories' => 'setPurchasesTrackingCategories', 'tracking_category_name' => 'setTrackingCategoryName', 'tracking_category_option' => 'setTrackingCategoryOption', 'payment_terms' => 'setPaymentTerms', 'updated_date_utc' => 'setUpdatedDateUtc', 'contact_groups' => 'setContactGroups', 'website' => 'setWebsite', 'branding_theme' => 'setBrandingTheme', 'batch_payments' => 'setBatchPayments', 'discount' => 'setDiscount', 'balances' => 'setBalances', 'attachments' => 'setAttachments', 'has_attachments' => 'setHasAttachments', 'validation_errors' => 'setValidationErrors', 'has_validation_errors' => 'setHasValidationErrors', 'status_attribute_string' => 'setStatusAttributeString' ]; /** * Array of attributes to getter functions (for serialization of requests) * * @var string[] */ protected static $getters = [ 'contact_id' => 'getContactId', 'contact_number' => 'getContactNumber', 'account_number' => 'getAccountNumber', 'contact_status' => 'getContactStatus', 'name' => 'getName', 'first_name' => 'getFirstName', 'last_name' => 'getLastName', 'email_address' => 'getEmailAddress', 'skype_user_name' => 'getSkypeUserName', 'contact_persons' => 'getContactPersons', 'bank_account_details' => 'getBankAccountDetails', 'tax_number' => 'getTaxNumber', 'accounts_receivable_tax_type' => 'getAccountsReceivableTaxType', 'accounts_payable_tax_type' => 'getAccountsPayableTaxType', 'addresses' => 'getAddresses', 'phones' => 'getPhones', 'is_supplier' => 'getIsSupplier', 'is_customer' => 'getIsCustomer', 'default_currency' => 'getDefaultCurrency', 'xero_network_key' => 'getXeroNetworkKey', 'sales_default_account_code' => 'getSalesDefaultAccountCode', 'purchases_default_account_code' => 'getPurchasesDefaultAccountCode', 'sales_tracking_categories' => 'getSalesTrackingCategories', 'purchases_tracking_categories' => 'getPurchasesTrackingCategories', 'tracking_category_name' => 'getTrackingCategoryName', 'tracking_category_option' => 'getTrackingCategoryOption', 'payment_terms' => 'getPaymentTerms', 'updated_date_utc' => 'getUpdatedDateUtc', 'contact_groups' => 'getContactGroups', 'website' => 'getWebsite', 'branding_theme' => 'getBrandingTheme', 'batch_payments' => 'getBatchPayments', 'discount' => 'getDiscount', 'balances' => 'getBalances', 'attachments' => 'getAttachments', 'has_attachments' => 'getHasAttachments', 'validation_errors' => 'getValidationErrors', 'has_validation_errors' => 'getHasValidationErrors', 'status_attribute_string' => 'getStatusAttributeString' ]; /** * 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 CONTACT_STATUS_ACTIVE = 'ACTIVE'; const CONTACT_STATUS_ARCHIVED = 'ARCHIVED'; const CONTACT_STATUS_GDPRREQUEST = 'GDPRREQUEST'; /** * Gets allowable values of the enum * * @return string[] */ public function getContactStatusAllowableValues() { return [ self::CONTACT_STATUS_ACTIVE, self::CONTACT_STATUS_ARCHIVED, self::CONTACT_STATUS_GDPRREQUEST, ]; } /** * 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['contact_id'] = isset($data['contact_id']) ? $data['contact_id'] : null; $this->container['contact_number'] = isset($data['contact_number']) ? $data['contact_number'] : null; $this->container['account_number'] = isset($data['account_number']) ? $data['account_number'] : null; $this->container['contact_status'] = isset($data['contact_status']) ? $data['contact_status'] : null; $this->container['name'] = isset($data['name']) ? $data['name'] : null; $this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null; $this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null; $this->container['email_address'] = isset($data['email_address']) ? $data['email_address'] : null; $this->container['skype_user_name'] = isset($data['skype_user_name']) ? $data['skype_user_name'] : null; $this->container['contact_persons'] = isset($data['contact_persons']) ? $data['contact_persons'] : null; $this->container['bank_account_details'] = isset($data['bank_account_details']) ? $data['bank_account_details'] : null; $this->container['tax_number'] = isset($data['tax_number']) ? $data['tax_number'] : null; $this->container['accounts_receivable_tax_type'] = isset($data['accounts_receivable_tax_type']) ? $data['accounts_receivable_tax_type'] : null; $this->container['accounts_payable_tax_type'] = isset($data['accounts_payable_tax_type']) ? $data['accounts_payable_tax_type'] : null; $this->container['addresses'] = isset($data['addresses']) ? $data['addresses'] : null; $this->container['phones'] = isset($data['phones']) ? $data['phones'] : null; $this->container['is_supplier'] = isset($data['is_supplier']) ? $data['is_supplier'] : null; $this->container['is_customer'] = isset($data['is_customer']) ? $data['is_customer'] : null; $this->container['default_currency'] = isset($data['default_currency']) ? $data['default_currency'] : null; $this->container['xero_network_key'] = isset($data['xero_network_key']) ? $data['xero_network_key'] : null; $this->container['sales_default_account_code'] = isset($data['sales_default_account_code']) ? $data['sales_default_account_code'] : null; $this->container['purchases_default_account_code'] = isset($data['purchases_default_account_code']) ? $data['purchases_default_account_code'] : null; $this->container['sales_tracking_categories'] = isset($data['sales_tracking_categories']) ? $data['sales_tracking_categories'] : null; $this->container['purchases_tracking_categories'] = isset($data['purchases_tracking_categories']) ? $data['purchases_tracking_categories'] : null; $this->container['tracking_category_name'] = isset($data['tracking_category_name']) ? $data['tracking_category_name'] : null; $this->container['tracking_category_option'] = isset($data['tracking_category_option']) ? $data['tracking_category_option'] : null; $this->container['payment_terms'] = isset($data['payment_terms']) ? $data['payment_terms'] : null; $this->container['updated_date_utc'] = isset($data['updated_date_utc']) ? $data['updated_date_utc'] : null; $this->container['contact_groups'] = isset($data['contact_groups']) ? $data['contact_groups'] : null; $this->container['website'] = isset($data['website']) ? $data['website'] : null; $this->container['branding_theme'] = isset($data['branding_theme']) ? $data['branding_theme'] : null; $this->container['batch_payments'] = isset($data['batch_payments']) ? $data['batch_payments'] : null; $this->container['discount'] = isset($data['discount']) ? $data['discount'] : null; $this->container['balances'] = isset($data['balances']) ? $data['balances'] : null; $this->container['attachments'] = isset($data['attachments']) ? $data['attachments'] : null; $this->container['has_attachments'] = isset($data['has_attachments']) ? $data['has_attachments'] : false; $this->container['validation_errors'] = isset($data['validation_errors']) ? $data['validation_errors'] : null; $this->container['has_validation_errors'] = isset($data['has_validation_errors']) ? $data['has_validation_errors'] : false; $this->container['status_attribute_string'] = isset($data['status_attribute_string']) ? $data['status_attribute_string'] : null; } /** * Show all the invalid properties with reasons. * * @return array invalid properties with reasons */ public function listInvalidProperties() { $invalidProperties = []; if (!is_null($this->container['contact_number']) && (mb_strlen($this->container['contact_number']) > 50)) { $invalidProperties[] = "invalid value for 'contact_number', the character length must be smaller than or equal to 50."; } if (!is_null($this->container['account_number']) && (mb_strlen($this->container['account_number']) > 50)) { $invalidProperties[] = "invalid value for 'account_number', the character length must be smaller than or equal to 50."; } $allowedValues = $this->getContactStatusAllowableValues(); if (!is_null($this->container['contact_status']) && !in_array($this->container['contact_status'], $allowedValues, true)) { $invalidProperties[] = sprintf( "invalid value for 'contact_status', must be one of '%s'", implode("', '", $allowedValues) ); } if (!is_null($this->container['name']) && (mb_strlen($this->container['name']) > 255)) { $invalidProperties[] = "invalid value for 'name', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['first_name']) && (mb_strlen($this->container['first_name']) > 255)) { $invalidProperties[] = "invalid value for 'first_name', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['last_name']) && (mb_strlen($this->container['last_name']) > 255)) { $invalidProperties[] = "invalid value for 'last_name', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['email_address']) && (mb_strlen($this->container['email_address']) > 255)) { $invalidProperties[] = "invalid value for 'email_address', the character length must be smaller than or equal to 255."; } if (!is_null($this->container['tax_number']) && (mb_strlen($this->container['tax_number']) > 50)) { $invalidProperties[] = "invalid value for 'tax_number', the character length must be smaller than or equal to 50."; } 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 contact_id * * @return string|null */ public function getContactId() { return $this->container['contact_id']; } /** * Sets contact_id * * @param string|null $contact_id Xero identifier * * @return $this */ public function setContactId($contact_id) { $this->container['contact_id'] = $contact_id; return $this; } /** * Gets contact_number * * @return string|null */ public function getContactNumber() { return $this->container['contact_number']; } /** * Sets contact_number * * @param string|null $contact_number This can be updated via the API only i.e. This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50). If the Contact Number is used, this is displayed as Contact Code in the Contacts UI in Xero. * * @return $this */ public function setContactNumber($contact_number) { if (!is_null($contact_number) && (mb_strlen($contact_number) > 50)) { throw new \InvalidArgumentException('invalid length for $contact_number when calling Contact., must be smaller than or equal to 50.'); } $this->container['contact_number'] = $contact_number; return $this; } /** * Gets account_number * * @return string|null */ public function getAccountNumber() { return $this->container['account_number']; } /** * Sets account_number * * @param string|null $account_number A user defined account number. This can be updated via the API and the Xero UI (max length = 50) * * @return $this */ public function setAccountNumber($account_number) { if (!is_null($account_number) && (mb_strlen($account_number) > 50)) { throw new \InvalidArgumentException('invalid length for $account_number when calling Contact., must be smaller than or equal to 50.'); } $this->container['account_number'] = $account_number; return $this; } /** * Gets contact_status * * @return string|null */ public function getContactStatus() { return $this->container['contact_status']; } /** * Sets contact_status * * @param string|null $contact_status Current status of a contact – see contact status types * * @return $this */ public function setContactStatus($contact_status) { $allowedValues = $this->getContactStatusAllowableValues(); if (!is_null($contact_status) && !in_array($contact_status, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value for 'contact_status', must be one of '%s'", implode("', '", $allowedValues) ) ); } $this->container['contact_status'] = $contact_status; return $this; } /** * Gets name * * @return string|null */ public function getName() { return $this->container['name']; } /** * Sets name * * @param string|null $name Full name of contact/organisation (max length = 255) * * @return $this */ public function setName($name) { if (!is_null($name) && (mb_strlen($name) > 255)) { throw new \InvalidArgumentException('invalid length for $name when calling Contact., must be smaller than or equal to 255.'); } $this->container['name'] = $name; return $this; } /** * Gets first_name * * @return string|null */ public function getFirstName() { return $this->container['first_name']; } /** * Sets first_name * * @param string|null $first_name First name of contact person (max length = 255) * * @return $this */ public function setFirstName($first_name) { if (!is_null($first_name) && (mb_strlen($first_name) > 255)) { throw new \InvalidArgumentException('invalid length for $first_name when calling Contact., must be smaller than or equal to 255.'); } $this->container['first_name'] = $first_name; return $this; } /** * Gets last_name * * @return string|null */ public function getLastName() { return $this->container['last_name']; } /** * Sets last_name * * @param string|null $last_name Last name of contact person (max length = 255) * * @return $this */ public function setLastName($last_name) { if (!is_null($last_name) && (mb_strlen($last_name) > 255)) { throw new \InvalidArgumentException('invalid length for $last_name when calling Contact., must be smaller than or equal to 255.'); } $this->container['last_name'] = $last_name; return $this; } /** * Gets email_address * * @return string|null */ public function getEmailAddress() { return $this->container['email_address']; } /** * Sets email_address * * @param string|null $email_address Email address of contact person (umlauts not supported) (max length = 255) * * @return $this */ public function setEmailAddress($email_address) { if (!is_null($email_address) && (mb_strlen($email_address) > 255)) { throw new \InvalidArgumentException('invalid length for $email_address when calling Contact., must be smaller than or equal to 255.'); } $this->container['email_address'] = $email_address; return $this; } /** * Gets skype_user_name * * @return string|null */ public function getSkypeUserName() { return $this->container['skype_user_name']; } /** * Sets skype_user_name * * @param string|null $skype_user_name Skype user name of contact * * @return $this */ public function setSkypeUserName($skype_user_name) { $this->container['skype_user_name'] = $skype_user_name; return $this; } /** * Gets contact_persons * * @return \XeroAPI\XeroPHP\Models\Accounting\ContactPerson[]|null */ public function getContactPersons() { return $this->container['contact_persons']; } /** * Sets contact_persons * * @param \XeroAPI\XeroPHP\Models\Accounting\ContactPerson[]|null $contact_persons See contact persons * * @return $this */ public function setContactPersons($contact_persons) { $this->container['contact_persons'] = $contact_persons; return $this; } /** * Gets bank_account_details * * @return string|null */ public function getBankAccountDetails() { return $this->container['bank_account_details']; } /** * Sets bank_account_details * * @param string|null $bank_account_details Bank account number of contact * * @return $this */ public function setBankAccountDetails($bank_account_details) { $this->container['bank_account_details'] = $bank_account_details; return $this; } /** * Gets tax_number * * @return string|null */ public function getTaxNumber() { return $this->container['tax_number']; } /** * Sets tax_number * * @param string|null $tax_number Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length = 50) * * @return $this */ public function setTaxNumber($tax_number) { if (!is_null($tax_number) && (mb_strlen($tax_number) > 50)) { throw new \InvalidArgumentException('invalid length for $tax_number when calling Contact., must be smaller than or equal to 50.'); } $this->container['tax_number'] = $tax_number; return $this; } /** * Gets accounts_receivable_tax_type * * @return string|null */ public function getAccountsReceivableTaxType() { return $this->container['accounts_receivable_tax_type']; } /** * Sets accounts_receivable_tax_type * * @param string|null $accounts_receivable_tax_type The tax type from TaxRates * * @return $this */ public function setAccountsReceivableTaxType($accounts_receivable_tax_type) { $this->container['accounts_receivable_tax_type'] = $accounts_receivable_tax_type; return $this; } /** * Gets accounts_payable_tax_type * * @return string|null */ public function getAccountsPayableTaxType() { return $this->container['accounts_payable_tax_type']; } /** * Sets accounts_payable_tax_type * * @param string|null $accounts_payable_tax_type The tax type from TaxRates * * @return $this */ public function setAccountsPayableTaxType($accounts_payable_tax_type) { $this->container['accounts_payable_tax_type'] = $accounts_payable_tax_type; return $this; } /** * Gets addresses * * @return \XeroAPI\XeroPHP\Models\Accounting\Address[]|null */ public function getAddresses() { return $this->container['addresses']; } /** * Sets addresses * * @param \XeroAPI\XeroPHP\Models\Accounting\Address[]|null $addresses Store certain address types for a contact – see address types * * @return $this */ public function setAddresses($addresses) { $this->container['addresses'] = $addresses; return $this; } /** * Gets phones * * @return \XeroAPI\XeroPHP\Models\Accounting\Phone[]|null */ public function getPhones() { return $this->container['phones']; } /** * Sets phones * * @param \XeroAPI\XeroPHP\Models\Accounting\Phone[]|null $phones Store certain phone types for a contact – see phone types * * @return $this */ public function setPhones($phones) { $this->container['phones'] = $phones; return $this; } /** * Gets is_supplier * * @return bool|null */ public function getIsSupplier() { return $this->container['is_supplier']; } /** * Sets is_supplier * * @param bool|null $is_supplier true or false – Boolean that describes if a contact that has any AP invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts payable invoice is generated against this contact. * * @return $this */ public function setIsSupplier($is_supplier) { $this->container['is_supplier'] = $is_supplier; return $this; } /** * Gets is_customer * * @return bool|null */ public function getIsCustomer() { return $this->container['is_customer']; } /** * Sets is_customer * * @param bool|null $is_customer true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact. * * @return $this */ public function setIsCustomer($is_customer) { $this->container['is_customer'] = $is_customer; return $this; } /** * Gets default_currency * * @return string|null */ public function getDefaultCurrency() { return $this->container['default_currency']; } /** * Sets default_currency * * @param string|null $default_currency default_currency * * @return $this */ public function setDefaultCurrency($default_currency) { $this->container['default_currency'] = $default_currency; return $this; } /** * Gets xero_network_key * * @return string|null */ public function getXeroNetworkKey() { return $this->container['xero_network_key']; } /** * Sets xero_network_key * * @param string|null $xero_network_key Store XeroNetworkKey for contacts. * * @return $this */ public function setXeroNetworkKey($xero_network_key) { $this->container['xero_network_key'] = $xero_network_key; return $this; } /** * Gets sales_default_account_code * * @return string|null */ public function getSalesDefaultAccountCode() { return $this->container['sales_default_account_code']; } /** * Sets sales_default_account_code * * @param string|null $sales_default_account_code The default sales account code for contacts * * @return $this */ public function setSalesDefaultAccountCode($sales_default_account_code) { $this->container['sales_default_account_code'] = $sales_default_account_code; return $this; } /** * Gets purchases_default_account_code * * @return string|null */ public function getPurchasesDefaultAccountCode() { return $this->container['purchases_default_account_code']; } /** * Sets purchases_default_account_code * * @param string|null $purchases_default_account_code The default purchases account code for contacts * * @return $this */ public function setPurchasesDefaultAccountCode($purchases_default_account_code) { $this->container['purchases_default_account_code'] = $purchases_default_account_code; return $this; } /** * Gets sales_tracking_categories * * @return \XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]|null */ public function getSalesTrackingCategories() { return $this->container['sales_tracking_categories']; } /** * Sets sales_tracking_categories * * @param \XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]|null $sales_tracking_categories The default sales tracking categories for contacts * * @return $this */ public function setSalesTrackingCategories($sales_tracking_categories) { $this->container['sales_tracking_categories'] = $sales_tracking_categories; return $this; } /** * Gets purchases_tracking_categories * * @return \XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]|null */ public function getPurchasesTrackingCategories() { return $this->container['purchases_tracking_categories']; } /** * Sets purchases_tracking_categories * * @param \XeroAPI\XeroPHP\Models\Accounting\SalesTrackingCategory[]|null $purchases_tracking_categories The default purchases tracking categories for contacts * * @return $this */ public function setPurchasesTrackingCategories($purchases_tracking_categories) { $this->container['purchases_tracking_categories'] = $purchases_tracking_categories; return $this; } /** * Gets tracking_category_name * * @return string|null */ public function getTrackingCategoryName() { return $this->container['tracking_category_name']; } /** * Sets tracking_category_name * * @param string|null $tracking_category_name The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories * * @return $this */ public function setTrackingCategoryName($tracking_category_name) { $this->container['tracking_category_name'] = $tracking_category_name; return $this; } /** * Gets tracking_category_option * * @return string|null */ public function getTrackingCategoryOption() { return $this->container['tracking_category_option']; } /** * Sets tracking_category_option * * @param string|null $tracking_category_option The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories * * @return $this */ public function setTrackingCategoryOption($tracking_category_option) { $this->container['tracking_category_option'] = $tracking_category_option; return $this; } /** * Gets payment_terms * * @return \XeroAPI\XeroPHP\Models\Accounting\PaymentTerm|null */ public function getPaymentTerms() { return $this->container['payment_terms']; } /** * Sets payment_terms * * @param \XeroAPI\XeroPHP\Models\Accounting\PaymentTerm|null $payment_terms payment_terms * * @return $this */ public function setPaymentTerms($payment_terms) { $this->container['payment_terms'] = $payment_terms; return $this; } /** * Gets updated_date_utc * * @return string|null */ public function getUpdatedDateUtc() { return $this->container['updated_date_utc']; } public function getUpdatedDateUtcAsDate() { if ($this->getUpdatedDateUtc() != null) { return StringUtil::convertStringToDateTime($this->getUpdatedDateUtc()); } else { throw new \Exception('can not convert null string to date'); } } /** * Sets updated_date_utc * * @param string|null $updated_date_utc UTC timestamp of last update to contact * * @return $this */ public function setUpdatedDateUtc($updated_date_utc) { $this->container['updated_date_utc'] = $updated_date_utc; return $this; } /** * Gets contact_groups * * @return \XeroAPI\XeroPHP\Models\Accounting\ContactGroup[]|null */ public function getContactGroups() { return $this->container['contact_groups']; } /** * Sets contact_groups * * @param \XeroAPI\XeroPHP\Models\Accounting\ContactGroup[]|null $contact_groups Displays which contact groups a contact is included in * * @return $this */ public function setContactGroups($contact_groups) { $this->container['contact_groups'] = $contact_groups; return $this; } /** * Gets website * * @return string|null */ public function getWebsite() { return $this->container['website']; } /** * Sets website * * @param string|null $website Website address for contact (read only) * * @return $this */ public function setWebsite($website) { $this->container['website'] = $website; return $this; } /** * Gets branding_theme * * @return \XeroAPI\XeroPHP\Models\Accounting\BrandingTheme|null */ public function getBrandingTheme() { return $this->container['branding_theme']; } /** * Sets branding_theme * * @param \XeroAPI\XeroPHP\Models\Accounting\BrandingTheme|null $branding_theme branding_theme * * @return $this */ public function setBrandingTheme($branding_theme) { $this->container['branding_theme'] = $branding_theme; return $this; } /** * Gets batch_payments * * @return \XeroAPI\XeroPHP\Models\Accounting\BatchPaymentDetails|null */ public function getBatchPayments() { return $this->container['batch_payments']; } /** * Sets batch_payments * * @param \XeroAPI\XeroPHP\Models\Accounting\BatchPaymentDetails|null $batch_payments batch_payments * * @return $this */ public function setBatchPayments($batch_payments) { $this->container['batch_payments'] = $batch_payments; return $this; } /** * Gets discount * * @return double|null */ public function getDiscount() { return $this->container['discount']; } /** * Sets discount * * @param double|null $discount The default discount rate for the contact (read only) * * @return $this */ public function setDiscount($discount) { $this->container['discount'] = $discount; return $this; } /** * Gets balances * * @return \XeroAPI\XeroPHP\Models\Accounting\Balances|null */ public function getBalances() { return $this->container['balances']; } /** * Sets balances * * @param \XeroAPI\XeroPHP\Models\Accounting\Balances|null $balances balances * * @return $this */ public function setBalances($balances) { $this->container['balances'] = $balances; 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; } /** * Gets has_attachments * * @return bool|null */ public function getHasAttachments() { return $this->container['has_attachments']; } /** * Sets has_attachments * * @param bool|null $has_attachments A boolean to indicate if a contact has an attachment * * @return $this */ public function setHasAttachments($has_attachments) { $this->container['has_attachments'] = $has_attachments; return $this; } /** * Gets validation_errors * * @return \XeroAPI\XeroPHP\Models\Accounting\ValidationError[]|null */ public function getValidationErrors() { return $this->container['validation_errors']; } /** * Sets validation_errors * * @param \XeroAPI\XeroPHP\Models\Accounting\ValidationError[]|null $validation_errors Displays validation errors returned from the API * * @return $this */ public function setValidationErrors($validation_errors) { $this->container['validation_errors'] = $validation_errors; return $this; } /** * Gets has_validation_errors * * @return bool|null */ public function getHasValidationErrors() { return $this->container['has_validation_errors']; } /** * Sets has_validation_errors * * @param bool|null $has_validation_errors A boolean to indicate if a contact has an validation errors * * @return $this */ public function setHasValidationErrors($has_validation_errors) { $this->container['has_validation_errors'] = $has_validation_errors; return $this; } /** * Gets status_attribute_string * * @return string|null */ public function getStatusAttributeString() { return $this->container['status_attribute_string']; } /** * Sets status_attribute_string * * @param string|null $status_attribute_string Status of object * * @return $this */ public function setStatusAttributeString($status_attribute_string) { $this->container['status_attribute_string'] = $status_attribute_string; 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