Skip to content

Commit 328b803

Browse files
Merge pull request #7 from INDA-HR/marco-headers-to-merge
feat: added Employer and Header model in JobAd
2 parents 8981139 + ce2b619 commit 328b803

File tree

4 files changed

+412
-19
lines changed

4 files changed

+412
-19
lines changed

docs/Model/JobAdMatchingData.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**job_title** | [**\OpenAPI\Client\Model\JobTitleHeader**](JobTitleHeader.md) | |
8+
**header** | [**\OpenAPI\Client\Model\BaseBenefitsValueModelStrictStr**](BaseBenefitsValueModelStrictStr.md) | | [optional]
89
**job_description** | [**\OpenAPI\Client\Model\JobDescription**](JobDescription.md) | |
9-
**employer_id** | **string** | CompanyID of the employer company. | [optional]
10+
**employer** | [**\OpenAPI\Client\Model\JobadCommonEmployer**](JobadCommonEmployer.md) | | [optional]
1011
**contact_info** | [**\OpenAPI\Client\Model\JobadContactInfoContactInfo[]**](JobadContactInfoContactInfo.md) | Whom to contact for the job position. | [optional]
1112
**job_locations** | [**\OpenAPI\Client\Model\BaseLocationsLocation[]**](BaseLocationsLocation.md) | Locations of the opened position. | [optional]
1213
**relocation_preferences** | [**\OpenAPI\Client\Model\RelocationPreferences**](RelocationPreferences.md) | | [optional]

docs/Model/JobadCommonEmployer.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# # JobadCommonEmployer
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**id** | **string** | CompanyID of the employer company. | [optional]
8+
**name** | [**\OpenAPI\Client\Model\BaseBenefitsValueModelStrictStr**](BaseBenefitsValueModelStrictStr.md) | |
9+
10+
[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)

lib/Model/JobAdMatchingData.php

Lines changed: 46 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,9 @@ class JobAdMatchingData implements ModelInterface, ArrayAccess, \JsonSerializabl
5959
*/
6060
protected static $openAPITypes = [
6161
'job_title' => '\OpenAPI\Client\Model\JobTitleHeader',
62+
'header' => '\OpenAPI\Client\Model\BaseBenefitsValueModelStrictStr',
6263
'job_description' => '\OpenAPI\Client\Model\JobDescription',
63-
'employer_id' => 'string',
64+
'employer' => '\OpenAPI\Client\Model\JobadCommonEmployer',
6465
'contact_info' => '\OpenAPI\Client\Model\JobadContactInfoContactInfo[]',
6566
'job_locations' => '\OpenAPI\Client\Model\BaseLocationsLocation[]',
6667
'relocation_preferences' => '\OpenAPI\Client\Model\RelocationPreferences',
@@ -92,8 +93,9 @@ class JobAdMatchingData implements ModelInterface, ArrayAccess, \JsonSerializabl
9293
*/
9394
protected static $openAPIFormats = [
9495
'job_title' => null,
96+
'header' => null,
9597
'job_description' => null,
96-
'employer_id' => 'uuid4',
98+
'employer' => null,
9799
'contact_info' => null,
98100
'job_locations' => null,
99101
'relocation_preferences' => null,
@@ -123,8 +125,9 @@ class JobAdMatchingData implements ModelInterface, ArrayAccess, \JsonSerializabl
123125
*/
124126
protected static array $openAPINullables = [
125127
'job_title' => false,
128+
'header' => false,
126129
'job_description' => false,
127-
'employer_id' => false,
130+
'employer' => false,
128131
'contact_info' => false,
129132
'job_locations' => false,
130133
'relocation_preferences' => false,
@@ -234,8 +237,9 @@ public function isNullableSetToNull(string $property): bool
234237
*/
235238
protected static $attributeMap = [
236239
'job_title' => 'JobTitle',
240+
'header' => 'Header',
237241
'job_description' => 'JobDescription',
238-
'employer_id' => 'EmployerID',
242+
'employer' => 'Employer',
239243
'contact_info' => 'ContactInfo',
240244
'job_locations' => 'JobLocations',
241245
'relocation_preferences' => 'RelocationPreferences',
@@ -265,8 +269,9 @@ public function isNullableSetToNull(string $property): bool
265269
*/
266270
protected static $setters = [
267271
'job_title' => 'setJobTitle',
272+
'header' => 'setHeader',
268273
'job_description' => 'setJobDescription',
269-
'employer_id' => 'setEmployerId',
274+
'employer' => 'setEmployer',
270275
'contact_info' => 'setContactInfo',
271276
'job_locations' => 'setJobLocations',
272277
'relocation_preferences' => 'setRelocationPreferences',
@@ -296,8 +301,9 @@ public function isNullableSetToNull(string $property): bool
296301
*/
297302
protected static $getters = [
298303
'job_title' => 'getJobTitle',
304+
'header' => 'getHeader',
299305
'job_description' => 'getJobDescription',
300-
'employer_id' => 'getEmployerId',
306+
'employer' => 'getEmployer',
301307
'contact_info' => 'getContactInfo',
302308
'job_locations' => 'getJobLocations',
303309
'relocation_preferences' => 'getRelocationPreferences',
@@ -378,8 +384,9 @@ public function getModelName()
378384
public function __construct(array $data = null)
379385
{
380386
$this->setIfExists('job_title', $data ?? [], null);
387+
$this->setIfExists('header', $data ?? [], null);
381388
$this->setIfExists('job_description', $data ?? [], null);
382-
$this->setIfExists('employer_id', $data ?? [], null);
389+
$this->setIfExists('employer', $data ?? [], null);
383390
$this->setIfExists('contact_info', $data ?? [], null);
384391
$this->setIfExists('job_locations', $data ?? [], null);
385392
$this->setIfExists('relocation_preferences', $data ?? [], null);
@@ -488,6 +495,30 @@ public function setJobTitle($job_title)
488495
return $this;
489496
}
490497

498+
/**
499+
* Gets header
500+
*
501+
* @return \OpenAPI\Client\Model\BaseBenefitsValueModelStrictStr|null
502+
*/
503+
public function getHeader()
504+
{
505+
return $this->container['header'];
506+
}
507+
508+
/**
509+
* Sets header
510+
*
511+
* @param \OpenAPI\Client\Model\BaseBenefitsValueModelStrictStr|null $header header
512+
*
513+
* @return self
514+
*/
515+
public function setHeader($header)
516+
{
517+
$this->container['header'] = $header;
518+
519+
return $this;
520+
}
521+
491522
/**
492523
* Gets job_description
493524
*
@@ -516,28 +547,25 @@ public function setJobDescription($job_description)
516547
}
517548

518549
/**
519-
* Gets employer_id
550+
* Gets employer
520551
*
521-
* @return string|null
552+
* @return \OpenAPI\Client\Model\JobadCommonEmployer|null
522553
*/
523-
public function getEmployerId()
554+
public function getEmployer()
524555
{
525-
return $this->container['employer_id'];
556+
return $this->container['employer'];
526557
}
527558

528559
/**
529-
* Sets employer_id
560+
* Sets employer
530561
*
531-
* @param string|null $employer_id CompanyID of the employer company.
562+
* @param \OpenAPI\Client\Model\JobadCommonEmployer|null $employer employer
532563
*
533564
* @return self
534565
*/
535-
public function setEmployerId($employer_id)
566+
public function setEmployer($employer)
536567
{
537-
if (is_null($employer_id)) {
538-
throw new \InvalidArgumentException('non-nullable employer_id cannot be null');
539-
}
540-
$this->container['employer_id'] = $employer_id;
568+
$this->container['employer'] = $employer;
541569

542570
return $this;
543571
}

0 commit comments

Comments
 (0)