Skip to content

Commit bb6c329

Browse files
Merge pull request #6 from ddietz-xqueue/patch-1
feature: support uiVersion
2 parents d7ff9ac + c98251d commit bb6c329

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ $response = $this->jobService->createAccountJob(
113113
$accountTemplateId ?? null,
114114
$users ?? null,
115115
$customerAccountId ?? null,
116-
$domainAsLogin ?? null
116+
$domainAsLogin ?? null,
117+
$uiVersion ?? null
117118
);
118119

119120
if(!$response->getResponse()->isSuccess()){
@@ -144,4 +145,4 @@ Run the following commands to run the tests:
144145
```shell
145146
docker exec -it partner-api composer test
146147
docker exec -it partner-api composer test-coverage // or this if you want to have the coverage generated
147-
```
148+
```

src/Services/JobService.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,13 @@ public function getJobById(int $id): JobResponse
4242
* @param int|null $accountTemplateId
4343
* @param array|null $users
4444
* @param int|null $customerAccountId
45-
* @param string|null $customerAccountName
46-
* @param string|null $newsletterAccountName
45+
* @param string $customerAccountName
46+
* @param string $newsletterAccountName
4747
* @param string|null $customDomain
4848
* @param string|null $providedDomain
4949
* @param string|null $subdomain
5050
* @param bool|null $domainAsLogin
51+
* @param string|null $uiVersion
5152
*
5253
* @return GeneralResponse
5354
*/
@@ -64,7 +65,8 @@ public function createAccountJob(
6465
?int $accountTemplateId = null,
6566
?array $users = null,
6667
?int $customerAccountId = null,
67-
?bool $domainAsLogin = null
68+
?bool $domainAsLogin = null,
69+
?string $uiVersion = null
6870
): GeneralResponse {
6971
$data = [
7072
'locale' => $locale,
@@ -80,10 +82,11 @@ public function createAccountJob(
8082
'providedDomain' => $providedDomain,
8183
'subdomain' => $subdomain,
8284
'domainAsLogin' => $domainAsLogin,
85+
'uiVersion' => $uiVersion,
8386
];
8487

8588
$response = $this->create('account-jobs', $data);
8689

8790
return new GeneralResponse($response['data'], $response['response']);
8891
}
89-
}
92+
}

version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dist.version = 1.0.1
2-
dist.version.stable = 1.0.1
1+
dist.version = 1.1.0
2+
dist.version.stable = 1.1.0

0 commit comments

Comments
 (0)