/home/desid573/public_html/gcdriver/square/lib/Model
Edit: /home/desid573/public_html/gcdriver/square/lib/Model/Location.php (25943B)
'string',
'name' => 'string',
'address' => '\SquareConnect\Model\Address',
'timezone' => 'string',
'capabilities' => 'string[]',
'status' => 'string',
'created_at' => 'string',
'merchant_id' => 'string',
'country' => 'string',
'language_code' => 'string',
'currency' => 'string',
'phone_number' => 'string',
'business_name' => 'string',
'type' => 'string',
'website_url' => 'string',
'business_hours' => '\SquareConnect\Model\BusinessHours',
'business_email' => 'string',
'description' => 'string',
'twitter_username' => 'string',
'instagram_username' => 'string',
'facebook_url' => 'string',
'coordinates' => '\SquareConnect\Model\Coordinates',
'logo_url' => 'string',
'pos_background_url' => 'string'
);
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'id' => 'id',
'name' => 'name',
'address' => 'address',
'timezone' => 'timezone',
'capabilities' => 'capabilities',
'status' => 'status',
'created_at' => 'created_at',
'merchant_id' => 'merchant_id',
'country' => 'country',
'language_code' => 'language_code',
'currency' => 'currency',
'phone_number' => 'phone_number',
'business_name' => 'business_name',
'type' => 'type',
'website_url' => 'website_url',
'business_hours' => 'business_hours',
'business_email' => 'business_email',
'description' => 'description',
'twitter_username' => 'twitter_username',
'instagram_username' => 'instagram_username',
'facebook_url' => 'facebook_url',
'coordinates' => 'coordinates',
'logo_url' => 'logo_url',
'pos_background_url' => 'pos_background_url'
);
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'id' => 'setId',
'name' => 'setName',
'address' => 'setAddress',
'timezone' => 'setTimezone',
'capabilities' => 'setCapabilities',
'status' => 'setStatus',
'created_at' => 'setCreatedAt',
'merchant_id' => 'setMerchantId',
'country' => 'setCountry',
'language_code' => 'setLanguageCode',
'currency' => 'setCurrency',
'phone_number' => 'setPhoneNumber',
'business_name' => 'setBusinessName',
'type' => 'setType',
'website_url' => 'setWebsiteUrl',
'business_hours' => 'setBusinessHours',
'business_email' => 'setBusinessEmail',
'description' => 'setDescription',
'twitter_username' => 'setTwitterUsername',
'instagram_username' => 'setInstagramUsername',
'facebook_url' => 'setFacebookUrl',
'coordinates' => 'setCoordinates',
'logo_url' => 'setLogoUrl',
'pos_background_url' => 'setPosBackgroundUrl'
);
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'id' => 'getId',
'name' => 'getName',
'address' => 'getAddress',
'timezone' => 'getTimezone',
'capabilities' => 'getCapabilities',
'status' => 'getStatus',
'created_at' => 'getCreatedAt',
'merchant_id' => 'getMerchantId',
'country' => 'getCountry',
'language_code' => 'getLanguageCode',
'currency' => 'getCurrency',
'phone_number' => 'getPhoneNumber',
'business_name' => 'getBusinessName',
'type' => 'getType',
'website_url' => 'getWebsiteUrl',
'business_hours' => 'getBusinessHours',
'business_email' => 'getBusinessEmail',
'description' => 'getDescription',
'twitter_username' => 'getTwitterUsername',
'instagram_username' => 'getInstagramUsername',
'facebook_url' => 'getFacebookUrl',
'coordinates' => 'getCoordinates',
'logo_url' => 'getLogoUrl',
'pos_background_url' => 'getPosBackgroundUrl'
);
/**
* $id The location's unique ID.
* @var string
*/
protected $id;
/**
* $name The location's name. Location names are set by the account owner and displayed in the dashboard as the location's nickname
* @var string
*/
protected $name;
/**
* $address The location's physical address.
* @var \SquareConnect\Model\Address
*/
protected $address;
/**
* $timezone The [IANA Timezone Database](https://www.iana.org/time-zones) identifier for the location's timezone.
* @var string
*/
protected $timezone;
/**
* $capabilities Indicates which Square features are enabled for the location. See [LocationCapability](#type-locationcapability) for possible values
* @var string[]
*/
protected $capabilities;
/**
* $status The location's status See [LocationStatus](#type-locationstatus) for possible values
* @var string
*/
protected $status;
/**
* $created_at The time when the location was created, in RFC 3339 format.
* @var string
*/
protected $created_at;
/**
* $merchant_id The identifier of the merchant that owns the location.
* @var string
*/
protected $merchant_id;
/**
* $country The location's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values
* @var string
*/
protected $country;
/**
* $language_code The language associated with the location in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A).
* @var string
*/
protected $language_code;
/**
* $currency The currency used for all transactions at this location, specified in __ISO 4217 format__. For example, the currency for a location processing transactions in the United States is 'USD'. See [Currency](#type-currency) for possible values
* @var string
*/
protected $currency;
/**
* $phone_number The location's phone_number.
* @var string
*/
protected $phone_number;
/**
* $business_name The location's business_name which is shown to its customers. For example, this is the name printed on its customer's receipts.
* @var string
*/
protected $business_name;
/**
* $type The location's type, as set by the account owner in the Square dashboard. Typically used to indicate whether or not the location object represents a physical space like a building or mall space. See [LocationType](#type-locationtype) for possible values
* @var string
*/
protected $type;
/**
* $website_url The location's website, as set by the account owner in the Square dashboard. Default: none; only exists if explicitly set.
* @var string
*/
protected $website_url;
/**
* $business_hours The hours of operation for a business location. Default: none; only exists if explicitly set.
* @var \SquareConnect\Model\BusinessHours
*/
protected $business_hours;
/**
* $business_email The email of the location.
* @var string
*/
protected $business_email;
/**
* $description The business description of the location.
* @var string
*/
protected $description;
/**
* $twitter_username The Twitter username of the location without the '
* @var string
*/
protected $twitter_username;
/**
* $instagram_username The Instagram username of the location without the '
* @var string
*/
protected $instagram_username;
/**
* $facebook_url The Facebook profile URL of the location. The URL should begin with 'facebook.com/'.
* @var string
*/
protected $facebook_url;
/**
* $coordinates The physical coordinates (latitude and longitude) of the location.
* @var \SquareConnect\Model\Coordinates
*/
protected $coordinates;
/**
* $logo_url The logo image URL of the location.
* @var string
*/
protected $logo_url;
/**
* $pos_background_url The Point of Sale background image URL of the location.
* @var string
*/
protected $pos_background_url;
/**
* Constructor
* @param mixed[] $data Associated array of property value initializing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
if (isset($data["id"])) {
$this->id = $data["id"];
} else {
$this->id = null;
}
if (isset($data["name"])) {
$this->name = $data["name"];
} else {
$this->name = null;
}
if (isset($data["address"])) {
$this->address = $data["address"];
} else {
$this->address = null;
}
if (isset($data["timezone"])) {
$this->timezone = $data["timezone"];
} else {
$this->timezone = null;
}
if (isset($data["capabilities"])) {
$this->capabilities = $data["capabilities"];
} else {
$this->capabilities = null;
}
if (isset($data["status"])) {
$this->status = $data["status"];
} else {
$this->status = null;
}
if (isset($data["created_at"])) {
$this->created_at = $data["created_at"];
} else {
$this->created_at = null;
}
if (isset($data["merchant_id"])) {
$this->merchant_id = $data["merchant_id"];
} else {
$this->merchant_id = null;
}
if (isset($data["country"])) {
$this->country = $data["country"];
} else {
$this->country = null;
}
if (isset($data["language_code"])) {
$this->language_code = $data["language_code"];
} else {
$this->language_code = null;
}
if (isset($data["currency"])) {
$this->currency = $data["currency"];
} else {
$this->currency = null;
}
if (isset($data["phone_number"])) {
$this->phone_number = $data["phone_number"];
} else {
$this->phone_number = null;
}
if (isset($data["business_name"])) {
$this->business_name = $data["business_name"];
} else {
$this->business_name = null;
}
if (isset($data["type"])) {
$this->type = $data["type"];
} else {
$this->type = null;
}
if (isset($data["website_url"])) {
$this->website_url = $data["website_url"];
} else {
$this->website_url = null;
}
if (isset($data["business_hours"])) {
$this->business_hours = $data["business_hours"];
} else {
$this->business_hours = null;
}
if (isset($data["business_email"])) {
$this->business_email = $data["business_email"];
} else {
$this->business_email = null;
}
if (isset($data["description"])) {
$this->description = $data["description"];
} else {
$this->description = null;
}
if (isset($data["twitter_username"])) {
$this->twitter_username = $data["twitter_username"];
} else {
$this->twitter_username = null;
}
if (isset($data["instagram_username"])) {
$this->instagram_username = $data["instagram_username"];
} else {
$this->instagram_username = null;
}
if (isset($data["facebook_url"])) {
$this->facebook_url = $data["facebook_url"];
} else {
$this->facebook_url = null;
}
if (isset($data["coordinates"])) {
$this->coordinates = $data["coordinates"];
} else {
$this->coordinates = null;
}
if (isset($data["logo_url"])) {
$this->logo_url = $data["logo_url"];
} else {
$this->logo_url = null;
}
if (isset($data["pos_background_url"])) {
$this->pos_background_url = $data["pos_background_url"];
} else {
$this->pos_background_url = null;
}
}
}
/**
* Gets id
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Sets id
* @param string $id The location's unique ID.
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets name
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name
* @param string $name The location's name. Location names are set by the account owner and displayed in the dashboard as the location's nickname
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets address
* @return \SquareConnect\Model\Address
*/
public function getAddress()
{
return $this->address;
}
/**
* Sets address
* @param \SquareConnect\Model\Address $address The location's physical address.
* @return $this
*/
public function setAddress($address)
{
$this->address = $address;
return $this;
}
/**
* Gets timezone
* @return string
*/
public function getTimezone()
{
return $this->timezone;
}
/**
* Sets timezone
* @param string $timezone The [IANA Timezone Database](https://www.iana.org/time-zones) identifier for the location's timezone.
* @return $this
*/
public function setTimezone($timezone)
{
$this->timezone = $timezone;
return $this;
}
/**
* Gets capabilities
* @return string[]
*/
public function getCapabilities()
{
return $this->capabilities;
}
/**
* Sets capabilities
* @param string[] $capabilities Indicates which Square features are enabled for the location. See [LocationCapability](#type-locationcapability) for possible values
* @return $this
*/
public function setCapabilities($capabilities)
{
$this->capabilities = $capabilities;
return $this;
}
/**
* Gets status
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status
* @param string $status The location's status See [LocationStatus](#type-locationstatus) for possible values
* @return $this
*/
public function setStatus($status)
{
$this->status = $status;
return $this;
}
/**
* Gets created_at
* @return string
*/
public function getCreatedAt()
{
return $this->created_at;
}
/**
* Sets created_at
* @param string $created_at The time when the location was created, in RFC 3339 format.
* @return $this
*/
public function setCreatedAt($created_at)
{
$this->created_at = $created_at;
return $this;
}
/**
* Gets merchant_id
* @return string
*/
public function getMerchantId()
{
return $this->merchant_id;
}
/**
* Sets merchant_id
* @param string $merchant_id The identifier of the merchant that owns the location.
* @return $this
*/
public function setMerchantId($merchant_id)
{
$this->merchant_id = $merchant_id;
return $this;
}
/**
* Gets country
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Sets country
* @param string $country The location's country, in ISO 3166-1-alpha-2 format. See [Country](#type-country) for possible values
* @return $this
*/
public function setCountry($country)
{
$this->country = $country;
return $this;
}
/**
* Gets language_code
* @return string
*/
public function getLanguageCode()
{
return $this->language_code;
}
/**
* Sets language_code
* @param string $language_code The language associated with the location in [BCP 47 format](https://tools.ietf.org/html/bcp47#appendix-A).
* @return $this
*/
public function setLanguageCode($language_code)
{
$this->language_code = $language_code;
return $this;
}
/**
* Gets currency
* @return string
*/
public function getCurrency()
{
return $this->currency;
}
/**
* Sets currency
* @param string $currency The currency used for all transactions at this location, specified in __ISO 4217 format__. For example, the currency for a location processing transactions in the United States is 'USD'. See [Currency](#type-currency) for possible values
* @return $this
*/
public function setCurrency($currency)
{
$this->currency = $currency;
return $this;
}
/**
* Gets phone_number
* @return string
*/
public function getPhoneNumber()
{
return $this->phone_number;
}
/**
* Sets phone_number
* @param string $phone_number The location's phone_number.
* @return $this
*/
public function setPhoneNumber($phone_number)
{
$this->phone_number = $phone_number;
return $this;
}
/**
* Gets business_name
* @return string
*/
public function getBusinessName()
{
return $this->business_name;
}
/**
* Sets business_name
* @param string $business_name The location's business_name which is shown to its customers. For example, this is the name printed on its customer's receipts.
* @return $this
*/
public function setBusinessName($business_name)
{
$this->business_name = $business_name;
return $this;
}
/**
* Gets type
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Sets type
* @param string $type The location's type, as set by the account owner in the Square dashboard. Typically used to indicate whether or not the location object represents a physical space like a building or mall space. See [LocationType](#type-locationtype) for possible values
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* Gets website_url
* @return string
*/
public function getWebsiteUrl()
{
return $this->website_url;
}
/**
* Sets website_url
* @param string $website_url The location's website, as set by the account owner in the Square dashboard. Default: none; only exists if explicitly set.
* @return $this
*/
public function setWebsiteUrl($website_url)
{
$this->website_url = $website_url;
return $this;
}
/**
* Gets business_hours
* @return \SquareConnect\Model\BusinessHours
*/
public function getBusinessHours()
{
return $this->business_hours;
}
/**
* Sets business_hours
* @param \SquareConnect\Model\BusinessHours $business_hours The hours of operation for a business location. Default: none; only exists if explicitly set.
* @return $this
*/
public function setBusinessHours($business_hours)
{
$this->business_hours = $business_hours;
return $this;
}
/**
* Gets business_email
* @return string
*/
public function getBusinessEmail()
{
return $this->business_email;
}
/**
* Sets business_email
* @param string $business_email The email of the location.
* @return $this
*/
public function setBusinessEmail($business_email)
{
$this->business_email = $business_email;
return $this;
}
/**
* Gets description
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Sets description
* @param string $description The business description of the location.
* @return $this
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Gets twitter_username
* @return string
*/
public function getTwitterUsername()
{
return $this->twitter_username;
}
/**
* Sets twitter_username
* @param string $twitter_username The Twitter username of the location without the '
* @return $this
*/
public function setTwitterUsername($twitter_username)
{
$this->twitter_username = $twitter_username;
return $this;
}
/**
* Gets instagram_username
* @return string
*/
public function getInstagramUsername()
{
return $this->instagram_username;
}
/**
* Sets instagram_username
* @param string $instagram_username The Instagram username of the location without the '
* @return $this
*/
public function setInstagramUsername($instagram_username)
{
$this->instagram_username = $instagram_username;
return $this;
}
/**
* Gets facebook_url
* @return string
*/
public function getFacebookUrl()
{
return $this->facebook_url;
}
/**
* Sets facebook_url
* @param string $facebook_url The Facebook profile URL of the location. The URL should begin with 'facebook.com/'.
* @return $this
*/
public function setFacebookUrl($facebook_url)
{
$this->facebook_url = $facebook_url;
return $this;
}
/**
* Gets coordinates
* @return \SquareConnect\Model\Coordinates
*/
public function getCoordinates()
{
return $this->coordinates;
}
/**
* Sets coordinates
* @param \SquareConnect\Model\Coordinates $coordinates The physical coordinates (latitude and longitude) of the location.
* @return $this
*/
public function setCoordinates($coordinates)
{
$this->coordinates = $coordinates;
return $this;
}
/**
* Gets logo_url
* @return string
*/
public function getLogoUrl()
{
return $this->logo_url;
}
/**
* Sets logo_url
* @param string $logo_url The logo image URL of the location.
* @return $this
*/
public function setLogoUrl($logo_url)
{
$this->logo_url = $logo_url;
return $this;
}
/**
* Gets pos_background_url
* @return string
*/
public function getPosBackgroundUrl()
{
return $this->pos_background_url;
}
/**
* Sets pos_background_url
* @param string $pos_background_url The Point of Sale background image URL of the location.
* @return $this
*/
public function setPosBackgroundUrl($pos_background_url)
{
$this->pos_background_url = $pos_background_url;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) {
return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\SquareConnect\ObjectSerializer::sanitizeForSerialization($this));
}
}
}