Class ScriptRebuild
Export payroll from Payroll API to JSON file
Inherited Members
Namespace: PayrollEngine.Client.Script
Assembly: PayrollEngine.Client.Core.dll
Syntax
public sealed class ScriptRebuild
Constructors
ScriptRebuild(PayrollHttpClient, int)
Initializes a new instance of the ScriptRebuild class
Declaration
public ScriptRebuild(PayrollHttpClient httpClient, int tenantId)
Parameters
| Type | Name | Description |
|---|---|---|
| PayrollHttpClient | httpClient | The payroll http client |
| int | tenantId | The tenant id |
Properties
HttpClient
The Payroll http client
Declaration
public PayrollHttpClient HttpClient { get; }
Property Value
| Type | Description |
|---|---|
| PayrollHttpClient |
TenantId
The tenant id
Declaration
public int TenantId { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
RebuildPayrunAsync(string)
Rebuild the payrun script
Declaration
public Task RebuildPayrunAsync(string payrunName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | payrunName | The payrun name |
Returns
| Type | Description |
|---|---|
| Task |
RebuildRegulationAsync(string)
Rebuild a regulation
Declaration
public Task RebuildRegulationAsync(string regulationName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | regulationName | The item name or identifier |
Returns
| Type | Description |
|---|---|
| Task |
RebuildRegulationObjectAsync(string, RegulationScriptObject, string)
Rebuild a regulation object script
Declaration
public Task RebuildRegulationObjectAsync(string regulationName, RegulationScriptObject scriptObject, string objectKey = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | regulationName | The item name or identifier |
| RegulationScriptObject | scriptObject | The script object |
| string | objectKey | The object key |
Returns
| Type | Description |
|---|---|
| Task |