Skip to content

Latest commit

 

History

History
1009 lines (707 loc) · 35.4 KB

File metadata and controls

1009 lines (707 loc) · 35.4 KB

SynergiTech\Staffology\ImportApi

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

Method HTTP request Description
createPaymentsCsvMappingImport() POST /employers/{employerId}/import/payments/mappings Create PaymentsCsvMapping
deletePaymentCsvMappingImport() DELETE /employers/{employerId}/import/payments/mappings/{id} Delete PaymentsCsvMapping
employeeImportCsvImport() POST /employers/{employerId}/import/employees/async Import Employees Asynchronously (Beta)
importBenefitsImport() POST /employers/{employerId}/import/benefits Import Benefits
importEmployeePayImport() POST /employers/{employerId}/import/pay Import Pay To Employee
importLeaveImport() POST /employers/{employerId}/import/leave Import Leave Asynchronously
importPayRunOverridesImport() POST /employers/{employerId}/import/{taxYear}/{payPeriod}/{periodNumber}/{ordinal}/payrun-overrides Import Pay Run Overrides
importPaymentsImport() POST /employers/{employerId}/import/payments Import Permanent Addition and Deductions Payments
importPensionMembershipsImport() POST /employers/{employerId}/import/pensionmemberships Import PensionMemberships from csv file
importRolesImport() POST /employers/{employerId}/import/import Import EmployeeRoles from csv file
listPaymentsCsvMappingsImport() GET /employers/{employerId}/import/payments/mappings List PaymentsCsvMappings
paymentsCsvMappingCsvFileImport() GET /employers/{employerId}/import/payments/mappings/{id}/csv Get PaymentsCsvMapping CSV File
paymentsCsvMappingImport() GET /employers/{employerId}/import/payments/mappings/{id} Get PaymentsCsvMapping
pensionImportCsvImport() POST /employers/{employerId}/import/pensionmemberships/async Import PensionMemberships from csv file (async)
updatePaymentsCsvMappingImport() PUT /employers/{employerId}/import/payments/mappings/{id} Update PaymentsCsvMapping

createPaymentsCsvMappingImport()

createPaymentsCsvMappingImport($employerId, $paymentsCsvMapping)

Create PaymentsCsvMapping

Creates a new PaymentsCsvMapping 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\ImportApi(
    // 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
$paymentsCsvMapping = new \SynergiTech\Staffology\Model\PaymentsCsvMapping(); // \SynergiTech\Staffology\Model\PaymentsCsvMapping

try {
    $apiInstance->createPaymentsCsvMappingImport($employerId, $paymentsCsvMapping);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->createPaymentsCsvMappingImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
paymentsCsvMapping \SynergiTech\Staffology\Model\PaymentsCsvMapping [optional]

Return type

void (empty response body)

Authorization

Basic

HTTP request headers

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

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

deletePaymentCsvMappingImport()

deletePaymentCsvMappingImport($employerId, $id)

Delete PaymentsCsvMapping

Deletes the specified PaymentsCsvMapping.

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\ImportApi(
    // 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
$id = 'id_example'; // string

try {
    $apiInstance->deletePaymentCsvMappingImport($employerId, $id);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->deletePaymentCsvMappingImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
id 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]

employeeImportCsvImport()

employeeImportCsvImport($employerId, $format, $allowUpdates, $file): \SynergiTech\Staffology\Model\ContractJobResponse

Import Employees Asynchronously (Beta)

This endpoint is currently being beta tested and subject to unannounced breaking changes. Allows the import of employees asynchronously from a CSV file.

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\ImportApi(
    // 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 employer id.
$format = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\CsvFileFormat(); // \SynergiTech\Staffology\Model\CsvFileFormat | The CSV format.
$allowUpdates = false; // bool | If set to true, and if the payroll code matches an existing employee, then that employee will be updated.
$file = '/path/to/file.txt'; // \SplFileObject

try {
    $result = $apiInstance->employeeImportCsvImport($employerId, $format, $allowUpdates, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->employeeImportCsvImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The employer id.
format \SynergiTech\Staffology\Model\CsvFileFormat The CSV format. [optional]
allowUpdates bool If set to true, and if the payroll code matches an existing employee, then that employee will be updated. [optional] [default to false]
file \SplFileObject**\SplFileObject** [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

Authorization

Basic

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

importBenefitsImport()

importBenefitsImport($employerId, $contractBenefitImportRequest): \SynergiTech\Staffology\Model\ContractJobResponse

Import Benefits

Allows the import of benefits asynchronously.

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\ImportApi(
    // 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 employer id.
$contractBenefitImportRequest = array(new \SynergiTech\Staffology\Model\ContractBenefitImportRequest()); // \SynergiTech\Staffology\Model\ContractBenefitImportRequest[] | The import benefit items.

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

Parameters

Name Type Description Notes
employerId string The employer id.
contractBenefitImportRequest \SynergiTech\Staffology\Model\ContractBenefitImportRequest[] The import benefit items. [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

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]

importEmployeePayImport()

importEmployeePayImport($employerId, $linesOnly, $append, $updateExisting, $validateOnly, $payOptionsImport)

Import Pay To Employee

Takes a list PayOptionsImport and updates employees PayOptions to use the values provided.

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\ImportApi(
    // 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
$linesOnly = false; // bool | If set to true then only lines will be imported. Changes to regular pay will be ignored. Defaults to false.
$append = false; // bool | If set to true then the lines submitted will be appended to existing lines rather than replace them. Defaults to false.
$updateExisting = false; // bool | If set to true then any submitted lines that match the paycode of one (and only one) existing line will be used to update the value of that lines. Any unmatched lines will be appended to existing lines.
$validateOnly = false; // bool | If set to true, the import will only be validated for data correctness. If false, the import is validated and then imported.
$payOptionsImport = array(new \SynergiTech\Staffology\Model\PayOptionsImport()); // \SynergiTech\Staffology\Model\PayOptionsImport[]

try {
    $apiInstance->importEmployeePayImport($employerId, $linesOnly, $append, $updateExisting, $validateOnly, $payOptionsImport);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->importEmployeePayImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string
linesOnly bool If set to true then only lines will be imported. Changes to regular pay will be ignored. Defaults to false. [optional] [default to false]
append bool If set to true then the lines submitted will be appended to existing lines rather than replace them. Defaults to false. [optional] [default to false]
updateExisting bool If set to true then any submitted lines that match the paycode of one (and only one) existing line will be used to update the value of that lines. Any unmatched lines will be appended to existing lines. [optional] [default to false]
validateOnly bool If set to true, the import will only be validated for data correctness. If false, the import is validated and then imported. [optional] [default to false]
payOptionsImport \SynergiTech\Staffology\Model\PayOptionsImport[] [optional]

Return type

void (empty response body)

Authorization

Basic

HTTP request headers

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

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

importLeaveImport()

importLeaveImport($employerId, $contractLeaveImportRequest): \SynergiTech\Staffology\Model\ContractJobResponse

Import Leave Asynchronously

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\ImportApi(
    // 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 employer id.
$contractLeaveImportRequest = array(new \SynergiTech\Staffology\Model\ContractLeaveImportRequest()); // \SynergiTech\Staffology\Model\ContractLeaveImportRequest[] | The import leave items.

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

Parameters

Name Type Description Notes
employerId string The employer id.
contractLeaveImportRequest \SynergiTech\Staffology\Model\ContractLeaveImportRequest[] The import leave items. [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

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]

importPayRunOverridesImport()

importPayRunOverridesImport($employerId, $taxYear, $payPeriod, $periodNumber, $ordinal, $contractPayRunOverridesImportRequest): \SynergiTech\Staffology\Model\ContractJobResponse

Import Pay Run Overrides

Allows the import of payrun overrides asynchronously.

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\ImportApi(
    // 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 employer id
$taxYear = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\TaxYear(); // \SynergiTech\Staffology\Model\TaxYear | The tax year for the pay run overrides import.
$payPeriod = new \SynergiTech\Staffology\Model\\SynergiTech\Staffology\Model\PayPeriods(); // \SynergiTech\Staffology\Model\PayPeriods | The period number for the pay run overrides import.
$periodNumber = 56; // int | The period number for the pay run overrides import.
$ordinal = 56; // int | The ordinal for the pay run overrides import.
$contractPayRunOverridesImportRequest = array(new \SynergiTech\Staffology\Model\ContractPayRunOverridesImportRequest()); // \SynergiTech\Staffology\Model\ContractPayRunOverridesImportRequest[] | The import payrun ovverides items.

try {
    $result = $apiInstance->importPayRunOverridesImport($employerId, $taxYear, $payPeriod, $periodNumber, $ordinal, $contractPayRunOverridesImportRequest);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->importPayRunOverridesImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
employerId string The employer id
taxYear \SynergiTech\Staffology\Model\TaxYear The tax year for the pay run overrides import.
payPeriod \SynergiTech\Staffology\Model\PayPeriods The period number for the pay run overrides import.
periodNumber int The period number for the pay run overrides import.
ordinal int The ordinal for the pay run overrides import.
contractPayRunOverridesImportRequest \SynergiTech\Staffology\Model\ContractPayRunOverridesImportRequest[] The import payrun ovverides items. [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

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]

importPaymentsImport()

importPaymentsImport($employerId, $updateOpenPayrun, $contractPaymentImportRequest): \SynergiTech\Staffology\Model\ContractJobResponse

Import Permanent Addition and Deductions Payments

Allows the import of permanent addition and deductions payments asynchronously.

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\ImportApi(
    // 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 employer id.
$updateOpenPayrun = false; // bool | If set to true, and there are any open pay runs, the imported values will be applied to those pay runs.
$contractPaymentImportRequest = array(new \SynergiTech\Staffology\Model\ContractPaymentImportRequest()); // \SynergiTech\Staffology\Model\ContractPaymentImportRequest[] | The import payment items.

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

Parameters

Name Type Description Notes
employerId string The employer id.
updateOpenPayrun bool If set to true, and there are any open pay runs, the imported values will be applied to those pay runs. [optional] [default to false]
contractPaymentImportRequest \SynergiTech\Staffology\Model\ContractPaymentImportRequest[] The import payment items. [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

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]

importPensionMembershipsImport()

importPensionMembershipsImport($employerId, $previewOnly, $allowUpdates, $file): \SynergiTech\Staffology\Model\Item[]

Import PensionMemberships from csv file

Import Pension Memberships from a CSV file.

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\ImportApi(
    // 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.
$allowUpdates = false; // bool
$file = '/path/to/file.txt'; // \SplFileObject

try {
    $result = $apiInstance->importPensionMembershipsImport($employerId, $previewOnly, $allowUpdates, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->importPensionMembershipsImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

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]
allowUpdates bool [optional] [default to false]
file \SplFileObject**\SplFileObject** [optional]

Return type

\SynergiTech\Staffology\Model\Item[]

Authorization

Basic

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

importRolesImport()

importRolesImport($employerId, $previewOnly, $allowUpdates, $file): \SynergiTech\Staffology\Model\Item[]

Import EmployeeRoles from csv file

Import Employee Roles from a CSV file.

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\ImportApi(
    // 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.
$allowUpdates = false; // bool
$file = '/path/to/file.txt'; // \SplFileObject

try {
    $result = $apiInstance->importRolesImport($employerId, $previewOnly, $allowUpdates, $file);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ImportApi->importRolesImport: ', $e->getMessage(), PHP_EOL;
}

Parameters

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]
allowUpdates bool [optional] [default to false]
file \SplFileObject**\SplFileObject** [optional]

Return type

\SynergiTech\Staffology\Model\Item[]

Authorization

Basic

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

listPaymentsCsvMappingsImport()

listPaymentsCsvMappingsImport($employerId): \SynergiTech\Staffology\Model\Item[]

List PaymentsCsvMappings

Lists all PaymentsCsvMappings for an 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\ImportApi(
    // 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 mappings

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

Parameters

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

Return type

\SynergiTech\Staffology\Model\Item[]

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]

paymentsCsvMappingCsvFileImport()

paymentsCsvMappingCsvFileImport($employerId, $id): \SynergiTech\Staffology\Model\ReportResponse

Get PaymentsCsvMapping CSV File

Gets a CSV file in the format needed to import for the specified PaymentsCsvMapping This is only available for PaymentsCsvMapping with a Type of ColumnBased

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\ImportApi(
    // 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 PaymentCsvMapping belongs.
$id = 'id_example'; // string

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

Parameters

Name Type Description Notes
employerId string The Id of the Employer to which the PaymentCsvMapping belongs.
id string

Return type

\SynergiTech\Staffology\Model\ReportResponse

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]

paymentsCsvMappingImport()

paymentsCsvMappingImport($employerId, $id): \SynergiTech\Staffology\Model\PaymentsCsvMapping

Get PaymentsCsvMapping

Gets the PaymentsCsvMapping 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\ImportApi(
    // 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 PaymentCsvMapping belongs.
$id = 'id_example'; // string

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

Parameters

Name Type Description Notes
employerId string The Id of the Employer to which the PaymentCsvMapping belongs.
id string

Return type

\SynergiTech\Staffology\Model\PaymentsCsvMapping

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]

pensionImportCsvImport()

pensionImportCsvImport($employerId, $allowUpdates, $file): \SynergiTech\Staffology\Model\ContractJobResponse

Import PensionMemberships from csv file (async)

Import Pension Memberships from a CSV file.

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\ImportApi(
    // 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 employer id.
$allowUpdates = false; // bool | If set to true, and if the pension membership matches an existing one, then that membership will be updated.
$file = '/path/to/file.txt'; // \SplFileObject

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

Parameters

Name Type Description Notes
employerId string The employer id.
allowUpdates bool If set to true, and if the pension membership matches an existing one, then that membership will be updated. [optional] [default to false]
file \SplFileObject**\SplFileObject** [optional]

Return type

\SynergiTech\Staffology\Model\ContractJobResponse

Authorization

Basic

HTTP request headers

  • Content-Type: multipart/form-data
  • Accept: application/json

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

updatePaymentsCsvMappingImport()

updatePaymentsCsvMappingImport($employerId, $id, $paymentsCsvMapping): \SynergiTech\Staffology\Model\PaymentsCsvMapping

Update PaymentsCsvMapping

Updates the PaymentsCsvMapping 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\ImportApi(
    // 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 PaymentsCsvMapping belongs.
$id = 'id_example'; // string
$paymentsCsvMapping = new \SynergiTech\Staffology\Model\PaymentsCsvMapping(); // \SynergiTech\Staffology\Model\PaymentsCsvMapping

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

Parameters

Name Type Description Notes
employerId string The Id of the Employer to which the PaymentsCsvMapping belongs.
id string
paymentsCsvMapping \SynergiTech\Staffology\Model\PaymentsCsvMapping [optional]

Return type

\SynergiTech\Staffology\Model\PaymentsCsvMapping

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]