Skip to content

Commit 6584c2f

Browse files
committed
user attributes
1 parent aaa53e1 commit 6584c2f

File tree

12 files changed

+590
-1
lines changed

12 files changed

+590
-1
lines changed

.DS_Store

0 Bytes
Binary file not shown.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ Class | Method | HTTP request | Description
170170
- [Server](docs/Model/Server.md)
171171
- [Statistics](docs/Model/Statistics.md)
172172
- [User](docs/Model/User.md)
173+
- [UserAttributes](docs/Model/UserAttributes.md)
173174

174175

175176
## Documentation For Authorization

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "siilats/traccar-php",
2+
"name": "/",
33
"description": "",
44
"keywords": [
55
"swagger",

docs/.DS_Store

-6 KB
Binary file not shown.

docs/Model/User.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
2222
**device_readonly** | **bool** | | [optional]
2323
**limit_commands** | **bool** | | [optional]
2424
**token** | **string** | | [optional]
25+
**attributes** | [**\Swagger\Client\Model\UserAttributes**](UserAttributes.md) | | [optional]
2526
**phone** | **string** | | [optional]
2627

2728
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/Model/UserAttributes.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# UserAttributes
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**has_email** | **bool** | | [optional]
7+
**has_phone** | **bool** | | [optional]
8+
**has_phone_verified** | **bool** | | [optional]
9+
**has_deposit** | **bool** | | [optional]
10+
**has_ride** | **bool** | | [optional]
11+
12+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
13+
14+

git_push.sh

100755100644
File mode changed.

lib/Model/User.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class User implements ModelInterface, ArrayAccess
7676
'device_readonly' => 'bool',
7777
'limit_commands' => 'bool',
7878
'token' => 'string',
79+
'attributes' => '\Swagger\Client\Model\UserAttributes',
7980
'phone' => 'string'
8081
];
8182

@@ -104,6 +105,7 @@ class User implements ModelInterface, ArrayAccess
104105
'device_readonly' => null,
105106
'limit_commands' => null,
106107
'token' => null,
108+
'attributes' => null,
107109
'phone' => null
108110
];
109111

@@ -153,6 +155,7 @@ public static function swaggerFormats()
153155
'device_readonly' => 'deviceReadonly',
154156
'limit_commands' => 'limitCommands',
155157
'token' => 'token',
158+
'attributes' => 'attributes',
156159
'phone' => 'phone'
157160
];
158161

@@ -181,6 +184,7 @@ public static function swaggerFormats()
181184
'device_readonly' => 'setDeviceReadonly',
182185
'limit_commands' => 'setLimitCommands',
183186
'token' => 'setToken',
187+
'attributes' => 'setAttributes',
184188
'phone' => 'setPhone'
185189
];
186190

@@ -209,6 +213,7 @@ public static function swaggerFormats()
209213
'device_readonly' => 'getDeviceReadonly',
210214
'limit_commands' => 'getLimitCommands',
211215
'token' => 'getToken',
216+
'attributes' => 'getAttributes',
212217
'phone' => 'getPhone'
213218
];
214219

@@ -291,6 +296,7 @@ public function __construct(array $data = null)
291296
$this->container['device_readonly'] = isset($data['device_readonly']) ? $data['device_readonly'] : null;
292297
$this->container['limit_commands'] = isset($data['limit_commands']) ? $data['limit_commands'] : null;
293298
$this->container['token'] = isset($data['token']) ? $data['token'] : null;
299+
$this->container['attributes'] = isset($data['attributes']) ? $data['attributes'] : null;
294300
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
295301
}
296302

@@ -775,6 +781,30 @@ public function setToken($token)
775781
return $this;
776782
}
777783

784+
/**
785+
* Gets attributes
786+
*
787+
* @return \Swagger\Client\Model\UserAttributes
788+
*/
789+
public function getAttributes()
790+
{
791+
return $this->container['attributes'];
792+
}
793+
794+
/**
795+
* Sets attributes
796+
*
797+
* @param \Swagger\Client\Model\UserAttributes $attributes attributes
798+
*
799+
* @return $this
800+
*/
801+
public function setAttributes($attributes)
802+
{
803+
$this->container['attributes'] = $attributes;
804+
805+
return $this;
806+
}
807+
778808
/**
779809
* Gets phone
780810
*

0 commit comments

Comments
 (0)