Show / Hide Table of Contents

Class ScriptRebuild

Export payroll from Payroll API to JSON file

Inheritance
object
ScriptRebuild
Inherited Members
object.GetType()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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

Extension Methods

ConsoleExtensions.WriteProperties(object, bool)
ValueTypeExtensions.GetValueType(object)
ObjectInfo.GetPropertyValue(object, string)
ObjectInfo.GetPropertyValue<T>(object, string, T)
ObjectInfo.ResolvePropertyValue(object, string)
ObjectInfo.SetPropertyValue(object, string, object)
☀
☾
Back to top Generated by DocFX