Skip to content

Commit ba3f2d1

Browse files
Incremented version to 1.1.8
- Corrected SynchronizationRequest property forced to isForced. - Added Account property mode
1 parent 6abdbab commit ba3f2d1

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "API wrapper for Securibox Cloud Agents.",
55
"homepage": "https://github.com/Securibox/cloudagents-php",
66
"keywords": ["cloud","agents","connectors","securibox","sca","sbx","cloudagents"],
7-
"version": "1.1.7",
7+
"version": "1.1.8",
88
"license": "GPL-3.0-only",
99
"authors": [
1010
{

src/Documents/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public function SynchronizeAccount($accountId = null, $userId = null, $isForced
326326
$body['customerUserId'] = $userId;
327327
}
328328
if($isForced){
329-
$body['forced'] = $isForced ? 'true':'false';
329+
$body['isForced'] = $isForced ? 'true':'false';
330330
}
331331
$response = $this->httpClient->accounts()->$accountId()->synchronizations()->post($body);
332332
$jsonData = json_decode($response->body());

src/Documents/Entities/Account.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class Account {
2929
/** @var string ID of the agent that the account belongs to. */
3030
public $agentId;
3131

32+
/** @var string ID of the agent that the account belongs to. */
33+
public $mode;
34+
3235
/** @var array[Credentials] Set of credentials for this account */
3336
public $credentials;
3437

@@ -38,6 +41,7 @@ public static function LoadFromJson($jsonData){
3841
$account->customerUserId = $jsonData->customerUserId;
3942
$account->name = $jsonData->name;
4043
$account->agentId = $jsonData->agentId;
44+
$account->mode = $jsonData->mode;
4145
$account->credentials = Credential::LoadFromJsonArray($jsonData->credentials);
4246
return $account;
4347
}

0 commit comments

Comments
 (0)