You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: SDK update for adding contracts to employee and employment object and its relevant endpoints
* [POB-3907] SDK update for adding contracts to employee and employment object and its relevant endpoints
* [POB-3907] Fix linting error
Co-authored-by: Chris Mitchell <[email protected]>
* [POB-3907] Fix linting error
Co-authored-by: Chris Mitchell <[email protected]>
---------
Co-authored-by: Giovanni Go <[email protected]>
Co-authored-by: Chris Mitchell <[email protected]>
description: Whether the employee is an off payroll worker
5613
5653
type: boolean
5654
+
contracts:
5655
+
description: The employee's contracts
5656
+
type: array
5657
+
items:
5658
+
$ref: '#/components/schemas/Contracts'
5614
5659
EmploymentObject:
5615
5660
type: object
5616
5661
properties:
@@ -5648,7 +5693,12 @@ components:
5648
5693
description: The employee's NI categories
5649
5694
type: array
5650
5695
items:
5651
-
$ref: "#/components/schemas/NICategory"
5696
+
$ref: '#/components/schemas/NICategory'
5697
+
contracts:
5698
+
description: The employee's contracts
5699
+
type: array
5700
+
items:
5701
+
$ref: '#/components/schemas/Contracts'
5652
5702
EmployeeTaxObject:
5653
5703
type: object
5654
5704
properties:
@@ -7537,3 +7587,79 @@ components:
7537
7587
niCategory:
7538
7588
enum:
7539
7589
- V
7590
+
EmploymentStatus:
7591
+
description: The employment status of the employee.
7592
+
type: string
7593
+
example: Employee
7594
+
enum:
7595
+
- Employee
7596
+
- Worker
7597
+
- Unspecified
7598
+
ContractType:
7599
+
description: The contract type of the employee.
7600
+
type: string
7601
+
example: FullTime
7602
+
enum:
7603
+
- FullTime
7604
+
- PartTime
7605
+
- ZeroHour
7606
+
- Unspecified
7607
+
DevelopmentalRoleDetails:
7608
+
type: object
7609
+
required:
7610
+
- startDate
7611
+
- endDate
7612
+
- developmentalRole
7613
+
properties:
7614
+
startDate:
7615
+
description: The start date of the developmental role
7616
+
type: string
7617
+
format: date
7618
+
example: 2024-12-02
7619
+
x-is-date: true
7620
+
endDate:
7621
+
description: The end date of the developmental role
7622
+
type: string
7623
+
format: date
7624
+
example: 2024-12-02
7625
+
x-is-date: true
7626
+
developmentalRole:
7627
+
description: The developmental role type - "Apprentice" is the only supported role currently
7628
+
type: string
7629
+
example: Apprentice
7630
+
publicKey:
7631
+
description: The public key of the developmental role. Public key is required if the intention is to edit an existing developmental role. If no key is supplied a new developmental role will be created
7632
+
type: string
7633
+
format: uuid
7634
+
Contracts:
7635
+
type: object
7636
+
required:
7637
+
- startDate
7638
+
- employmentStatus
7639
+
- contractType
7640
+
properties:
7641
+
startDate:
7642
+
description: The contract start date of the employee. This will be locked once an employee has been paid and cannot be changed (YYYY-MM-DD)
7643
+
type: string
7644
+
format: date
7645
+
example: 2024-12-02
7646
+
x-is-date: true
7647
+
employmentStatus:
7648
+
$ref: '#/components/schemas/EmploymentStatus'
7649
+
contractType:
7650
+
$ref: '#/components/schemas/ContractType'
7651
+
publicKey:
7652
+
description: The public key of the contract. Public key is required if the intention is to edit an existing contract. If no key is supplied a new contract will be created
7653
+
type: string
7654
+
format: uuid
7655
+
isFixedTerm:
7656
+
description: describes whether the contract is fixed term (required if trying to create Fixed term contract)
7657
+
type: boolean
7658
+
fixedTermEndDate:
7659
+
description: The fixed term end date of the employee. Not required if isFixedTerm is false or not provided (required if trying to create Fixed term contract)
0 commit comments