All URIs are relative to http://localhost, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
createAverageHolidayPayHistory() | POST /{employerId}/employees/AverageHolidayPay/PayHistory | Create multiple AverageHolidayPayHistory for an Employer |
deleteAverageHolidayPayHistory() | DELETE /{employerId}/employees/AverageHolidayPay/PayHistory/{id} | Delete an AverageHolidayPayHistory record |
deleteByEmployeeIdAverageHolidayPayHistory() | DELETE /{employerId}/employees/{employeeId}/AverageHolidayPay/PayHistory | Delete all AverageHolidayPayHistory for an Employee |
getByEmployeeAverageHolidayPayHistory() | GET /{employerId}/employees/{employeeId}/AverageHolidayPay/PayHistory/{taxYear} | List AverageHolidayPayHistory for Employee |
getByEmployerAverageHolidayPayHistory() | GET /{employerId}/employees/AverageHolidayPay/PayHistory | Get AverageHolidayPayHistory for Employer |
importCsvAverageHolidayPayHistory() | POST /{employerId}/employees/AverageHolidayPay/PayHistory/import | Import AverageHistoryPayHistory from csv file |
updateAverageHolidayPayHistory() | PUT /{employerId}/employees/AverageHolidayPay/PayHistory | Update multiple AverageHolidayPayHistory for an Employer |
createAverageHolidayPayHistory($employerId, $contractPayHistoryRequest)
Create multiple AverageHolidayPayHistory for an Employer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string |
$contractPayHistoryRequest = array(new \SynergiTech\Staffology\Model\ContractPayHistoryRequest()); // \SynergiTech\Staffology\Model\ContractPayHistoryRequest[] |
try {
$apiInstance->createAverageHolidayPayHistory($employerId, $contractPayHistoryRequest);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->createAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
contractPayHistoryRequest | \SynergiTech\Staffology\Model\ContractPayHistoryRequest[] | [optional] |
void (empty response body)
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteAverageHolidayPayHistory($employerId, $id)
Delete an AverageHolidayPayHistory record
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Employee belongs
$id = 'id_example'; // string | The pay history unique id
try {
$apiInstance->deleteAverageHolidayPayHistory($employerId, $id);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->deleteAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Employee belongs | |
id | string | The pay history unique id |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteByEmployeeIdAverageHolidayPayHistory($employerId, $employeeId)
Delete all AverageHolidayPayHistory for an Employee
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string | The Id of the Employer to which the Employee belongs
$employeeId = 'employeeId_example'; // string | The Id of the Employee
try {
$apiInstance->deleteByEmployeeIdAverageHolidayPayHistory($employerId, $employeeId);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->deleteByEmployeeIdAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer to which the Employee belongs | |
employeeId | string | The Id of the Employee |
void (empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getByEmployeeAverageHolidayPayHistory($employerId, $employeeId, $taxYear): \SynergiTech\Staffology\Model\ContractPayHistoryResponse[]
List AverageHolidayPayHistory for Employee
List AverageHistoryPayHistory for the given Employee in the specified TaxYear
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string | The Id of the Employer.
$employeeId = 'employeeId_example'; // string | The Employee Id.
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear | The TaxYear for which you want the history.
try {
$result = $apiInstance->getByEmployeeAverageHolidayPayHistory($employerId, $employeeId, $taxYear);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->getByEmployeeAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | The Id of the Employer. | |
employeeId | string | The Employee Id. | |
taxYear | \SynergiTech\Staffology\Model\TaxYear | The TaxYear for which you want the history. |
\SynergiTech\Staffology\Model\ContractPayHistoryResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getByEmployerAverageHolidayPayHistory($employerId): \SynergiTech\Staffology\Model\ContractPayHistoryResponse[]
Get AverageHolidayPayHistory for Employer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string
try {
$result = $apiInstance->getByEmployerAverageHolidayPayHistory($employerId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->getByEmployerAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string |
\SynergiTech\Staffology\Model\ContractPayHistoryResponse[]
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
importCsvAverageHolidayPayHistory($employerId, $previewOnly, $file): \SynergiTech\Staffology\Model\Item[]
Import AverageHistoryPayHistory from csv file
Import Pay History from a CSV file.
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string
$previewOnly = false; // bool | Set to true and nothing will be imported but you'll be shown a preview of the data.
$file = '/path/to/file.txt'; // \SplFileObject
try {
$result = $apiInstance->importCsvAverageHolidayPayHistory($employerId, $previewOnly, $file);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->importCsvAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
previewOnly | bool | Set to true and nothing will be imported but you'll be shown a preview of the data. | [optional] [default to false] |
file | \SplFileObject**\SplFileObject** | [optional] |
\SynergiTech\Staffology\Model\Item[]
- Content-Type:
multipart/form-data
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
updateAverageHolidayPayHistory($employerId, $contractPayHistoryUpdateRequest)
Update multiple AverageHolidayPayHistory for an Employer
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: Basic
$config = SynergiTech\Staffology\Configuration::getDefaultConfiguration()
->setUsername('YOUR_USERNAME')
->setPassword('YOUR_PASSWORD');
$apiInstance = new SynergiTech\Staffology\Api\AverageHolidayPayHistoryApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$employerId = 'employerId_example'; // string |
$contractPayHistoryUpdateRequest = array(new \SynergiTech\Staffology\Model\ContractPayHistoryUpdateRequest()); // \SynergiTech\Staffology\Model\ContractPayHistoryUpdateRequest[] |
try {
$apiInstance->updateAverageHolidayPayHistory($employerId, $contractPayHistoryUpdateRequest);
} catch (Exception $e) {
echo 'Exception when calling AverageHolidayPayHistoryApi->updateAverageHolidayPayHistory: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
employerId | string | ||
contractPayHistoryUpdateRequest | \SynergiTech\Staffology\Model\ContractPayHistoryUpdateRequest[] | [optional] |
void (empty response body)
- Content-Type:
application/json-patch+json
,application/json
,text/json
,application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]