Skip to content

Latest commit

 

History

History
657 lines (454 loc) · 19.3 KB

File metadata and controls

657 lines (454 loc) · 19.3 KB

SynergiTech\Staffology\PayCodeApi

All URIs are relative to http://localhost, except if the operation defines another base path.

Method HTTP request Description
createPayCode() POST /employers/{employerId}/paycodes Create PayCode
deletePayCode() DELETE /employers/{employerId}/paycodes/{code} Delete PayCode (deprecated)
deletePayCodePayCode() DELETE /employers/{employerId}/paycodes/paycode Delete PayCode
getPayCode() GET /employers/{employerId}/paycodes/{code} Get PayCode (deprecated)
getPayCodePayCode() GET /employers/{employerId}/paycodes/paycode Get PayCode
indexPayCode() GET /employers/{employerId}/paycodes List PayCodes
nominalCodeMappingsPayCode() GET /employers/{employerId}/paycodes/nominalcodes Get Nominal Code Mappings
updateNominalCodeMappingsPayCode() PUT /employers/{employerId}/paycodes/nominalcodes Updates Nominal Code Mappings
updatePayCode() PUT /employers/{employerId}/paycodes/{code} Update PayCode (deprecated)
updatePayCodePayCode() PUT /employers/{employerId}/paycodes/paycode Update PayCode

createPayCode()

createPayCode($employerId, $payCode): \SynergiTech\Staffology\Model\PayCode

Create PayCode

Creates a new PayCode for the Employer.

Example

<?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\PayCodeApi(
    // 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
$payCode = new \SynergiTech\Staffology\Model\PayCode(); // \SynergiTech\Staffology\Model\PayCode

try {
    $result = $apiInstance->createPayCode($employerId, $payCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->createPayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
payCode \SynergiTech\Staffology\Model\PayCode [optional]

Return type

\SynergiTech\Staffology\Model\PayCode

Authorization

Basic

HTTP request headers

  • Content-Type: application/*+json, application/json, application/json-patch+json, text/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deletePayCode()

deletePayCode($employerId, $code)

Delete PayCode (deprecated)

Deletes the specified PayCode. Use the other Delete endpoint that supports non-alphanumeric characters for a pay code

Example

<?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\PayCodeApi(
    // 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
$code = 'code_example'; // string

try {
    $apiInstance->deletePayCode($employerId, $code);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->deletePayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
code string

Return type

void (empty response body)

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

deletePayCodePayCode()

deletePayCodePayCode($employerId, $code)

Delete PayCode

Deletes the specified PayCode.

Example

<?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\PayCodeApi(
    // 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
$code = 'code_example'; // string

try {
    $apiInstance->deletePayCodePayCode($employerId, $code);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->deletePayCodePayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
code string [optional]

Return type

void (empty response body)

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getPayCode()

getPayCode($employerId, $code): \SynergiTech\Staffology\Model\PayCode

Get PayCode (deprecated)

Gets the PayCode specified. Use the other GET endpoint that supports non-alphanumeric characters for a pay code

Example

<?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\PayCodeApi(
    // 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 Pay Code belongs.
$code = 'code_example'; // string | The code of the Pay Code you want to retrieve.

try {
    $result = $apiInstance->getPayCode($employerId, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->getPayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The Id of the Employer to which the Pay Code belongs.
code string The code of the Pay Code you want to retrieve.

Return type

\SynergiTech\Staffology\Model\PayCode

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getPayCodePayCode()

getPayCodePayCode($employerId, $code): \SynergiTech\Staffology\Model\PayCode

Get PayCode

Gets the PayCode specified.

Example

<?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\PayCodeApi(
    // 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 Pay Code belongs.
$code = 'code_example'; // string | The code of the Pay Code you want to retrieve.

try {
    $result = $apiInstance->getPayCodePayCode($employerId, $code);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->getPayCodePayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The Id of the Employer to which the Pay Code belongs.
code string The code of the Pay Code you want to retrieve. [optional]

Return type

\SynergiTech\Staffology\Model\PayCode

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

indexPayCode()

indexPayCode($employerId, $verbose): \SynergiTech\Staffology\Model\PayCode[]

List PayCodes

Lists all PayCodes for the Employer specified.

Example

<?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\PayCodeApi(
    // 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 for which you want to list Pay Codes
$verbose = false; // bool | If provided and set to true then full details of all Pay Codes will be returned instead of just a summary

try {
    $result = $apiInstance->indexPayCode($employerId, $verbose);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->indexPayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The Id of the Employer for which you want to list Pay Codes
verbose bool If provided and set to true then full details of all Pay Codes will be returned instead of just a summary [optional] [default to false]

Return type

\SynergiTech\Staffology\Model\PayCode[]

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

nominalCodeMappingsPayCode()

nominalCodeMappingsPayCode($employerId): \SynergiTech\Staffology\Model\NominalCodeMapping[]

Get Nominal Code Mappings

Returns the list of mappings of PayCodes to NominalCodes

Example

<?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\PayCodeApi(
    // 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 for which you want to get the mapping

try {
    $result = $apiInstance->nominalCodeMappingsPayCode($employerId);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->nominalCodeMappingsPayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The Id of the Employer for which you want to get the mapping

Return type

\SynergiTech\Staffology\Model\NominalCodeMapping[]

Authorization

Basic

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updateNominalCodeMappingsPayCode()

updateNominalCodeMappingsPayCode($employerId, $nominalCodeMapping): \SynergiTech\Staffology\Model\NominalCodeMapping[]

Updates Nominal Code Mappings

Updates the list of mappings of PayCodes to NominalCodes

Example

<?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\PayCodeApi(
    // 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
$nominalCodeMapping = array(new \SynergiTech\Staffology\Model\NominalCodeMapping()); // \SynergiTech\Staffology\Model\NominalCodeMapping[]

try {
    $result = $apiInstance->updateNominalCodeMappingsPayCode($employerId, $nominalCodeMapping);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->updateNominalCodeMappingsPayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
nominalCodeMapping \SynergiTech\Staffology\Model\NominalCodeMapping[] [optional]

Return type

\SynergiTech\Staffology\Model\NominalCodeMapping[]

Authorization

Basic

HTTP request headers

  • Content-Type: application/*+json, application/json, application/json-patch+json, text/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updatePayCode()

updatePayCode($employerId, $code, $payCode): \SynergiTech\Staffology\Model\PayCode

Update PayCode (deprecated)

Updates the details of an existing PayCode. Use the other Update endpoint that supports non-alphanumeric characters for a pay code

Example

<?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\PayCodeApi(
    // 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
$code = 'code_example'; // string
$payCode = new \SynergiTech\Staffology\Model\PayCode(); // \SynergiTech\Staffology\Model\PayCode

try {
    $result = $apiInstance->updatePayCode($employerId, $code, $payCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->updatePayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
code string
payCode \SynergiTech\Staffology\Model\PayCode [optional]

Return type

\SynergiTech\Staffology\Model\PayCode

Authorization

Basic

HTTP request headers

  • Content-Type: application/*+json, application/json, application/json-patch+json, text/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

updatePayCodePayCode()

updatePayCodePayCode($employerId, $code, $payCode): \SynergiTech\Staffology\Model\PayCode

Update PayCode

Updates the details of an existing PayCode.

Example

<?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\PayCodeApi(
    // 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
$code = 'code_example'; // string
$payCode = new \SynergiTech\Staffology\Model\PayCode(); // \SynergiTech\Staffology\Model\PayCode

try {
    $result = $apiInstance->updatePayCodePayCode($employerId, $code, $payCode);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PayCodeApi->updatePayCodePayCode: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
code string [optional]
payCode \SynergiTech\Staffology\Model\PayCode [optional]

Return type

\SynergiTech\Staffology\Model\PayCode

Authorization

Basic

HTTP request headers

  • Content-Type: application/*+json, application/json, application/json-patch+json, text/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]