Class NamespaceUpdateTool
Payroll client exchange namespace update
Inherited Members
Namespace: PayrollEngine.Client.Exchange
Assembly: PayrollEngine.Client.Core.dll
Syntax
public class NamespaceUpdateTool : Visitor
Constructors
NamespaceUpdateTool(Exchange, string)
Initializes a new instance of the NamespaceUpdateTool class
Declaration
public NamespaceUpdateTool(Exchange exchange, string @namespace)
Parameters
| Type | Name | Description |
|---|---|---|
| Exchange | exchange | The exchange model |
| string | namespace | The target namespace name |
Remarks
Content is loaded from the working folder
Methods
UpdateNamespace()
Update the namespace
Declaration
public void UpdateNamespace()
UpdateNamespaceAsync()
Update the namespace
Declaration
public virtual Task UpdateNamespaceAsync()
Returns
| Type | Description |
|---|---|
| Task |
VisitCalendarAsync(IExchangeTenant, ICalendar)
Visit the calendar
Declaration
protected override Task VisitCalendarAsync(IExchangeTenant tenant, ICalendar calendar)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| ICalendar | calendar | The calendar |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCaseAsync(IExchangeTenant, IRegulationSet, ICaseSet)
Visit the case
Declaration
protected override Task VisitCaseAsync(IExchangeTenant tenant, IRegulationSet regulation, ICaseSet caseSet)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| ICaseSet | caseSet | The case |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCaseChangeSetupAsync(IExchangeTenant, IPayrollSet, ICaseChangeSetup)
Visit the case change
Declaration
protected override Task VisitCaseChangeSetupAsync(IExchangeTenant tenant, IPayrollSet payroll, ICaseChangeSetup caseChangeSetup)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IPayrollSet | payroll | The payroll |
| ICaseChangeSetup | caseChangeSetup | The case change setup |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCaseFieldAsync(IExchangeTenant, IRegulationSet, ICaseSet, ICaseField)
Visit the case field
Declaration
protected override Task VisitCaseFieldAsync(IExchangeTenant tenant, IRegulationSet regulation, ICaseSet caseSet, ICaseField caseField)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| ICaseSet | caseSet | The case |
| ICaseField | caseField | The case field |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCaseRelationAsync(IExchangeTenant, IRegulationSet, ICaseRelation)
Visit the case relation
Declaration
protected override Task VisitCaseRelationAsync(IExchangeTenant tenant, IRegulationSet regulation, ICaseRelation caseRelation)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| ICaseRelation | caseRelation | The case relation |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCollectorAsync(IExchangeTenant, IRegulationSet, ICollector)
Visit the collector
Declaration
protected override Task VisitCollectorAsync(IExchangeTenant tenant, IRegulationSet regulation, ICollector collector)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| ICollector | collector | The collector |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCollectorCustomResultAsync(IExchangeTenant, IPayrollResultSet, ICollectorResultSet, ICollectorCustomResult)
Visit the collector custom result
Declaration
protected override Task VisitCollectorCustomResultAsync(IExchangeTenant tenant, IPayrollResultSet payrollResult, ICollectorResultSet collectorResult, ICollectorCustomResult collectorCustomResult)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrollResultSet | payrollResult | The payroll result |
| ICollectorResultSet | collectorResult | The collector result |
| ICollectorCustomResult | collectorCustomResult | The collector custom result |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitCollectorResultAsync(IExchangeTenant, IPayrollResultSet, ICollectorResultSet)
Visit the collector result
Declaration
protected override Task VisitCollectorResultAsync(IExchangeTenant tenant, IPayrollResultSet payrollResult, ICollectorResultSet collectorResult)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrollResultSet | payrollResult | The payroll result |
| ICollectorResultSet | collectorResult | The collector result |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitDivisionAsync(IExchangeTenant, IDivision)
Visit the division
Declaration
protected override Task VisitDivisionAsync(IExchangeTenant tenant, IDivision division)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IDivision | division | The division |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitEmployeeAsync(IExchangeTenant, IEmployeeSet)
Visit the employee
Declaration
protected override Task VisitEmployeeAsync(IExchangeTenant tenant, IEmployeeSet employee)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IEmployeeSet | employee | The employee |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitExchangeTenantAsync(IExchangeTenant)
Visit the exchange tenant
Declaration
protected override Task VisitExchangeTenantAsync(IExchangeTenant tenant)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitLookupAsync(IExchangeTenant, IRegulationSet, ILookupSet)
Visit the lookup
Declaration
protected override Task VisitLookupAsync(IExchangeTenant tenant, IRegulationSet regulation, ILookupSet lookup)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| ILookupSet | lookup | The lookup |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrollAsync(IExchangeTenant, IPayrollSet)
Visit the payroll
Declaration
protected override Task VisitPayrollAsync(IExchangeTenant tenant, IPayrollSet payroll)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IPayrollSet | payroll | The payroll |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrollLayerAsync(IExchangeTenant, IPayrollSet, IPayrollLayer)
Visit the payroll layer
Declaration
protected override Task VisitPayrollLayerAsync(IExchangeTenant tenant, IPayrollSet payroll, IPayrollLayer layer)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IPayrollSet | payroll | The payroll |
| IPayrollLayer | layer | The payroll layer |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrunAsync(IExchangeTenant, IPayrun)
Visit the payrun
Declaration
protected override Task VisitPayrunAsync(IExchangeTenant tenant, IPayrun payrun)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IPayrun | payrun | The payrun |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrunJobInvocationAsync(IExchangeTenant, IPayrunJobInvocation)
Visit the payrun job invocation
Declaration
protected override Task VisitPayrunJobInvocationAsync(IExchangeTenant tenant, IPayrunJobInvocation invocation)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrunJobInvocation | invocation | The payrun job invocation |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrunParameterAsync(IExchangeTenant, IPayrun, IPayrunParameter)
Visit the payrun parameter
Declaration
protected override Task VisitPayrunParameterAsync(IExchangeTenant tenant, IPayrun payrun, IPayrunParameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IPayrun | payrun | The payrun |
| IPayrunParameter | parameter | The payrun parameter |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitPayrunResultAsync(IExchangeTenant, IPayrollResultSet, IPayrunResult)
Visit the payrun result
Declaration
protected override Task VisitPayrunResultAsync(IExchangeTenant tenant, IPayrollResultSet payrollResult, IPayrunResult payrunResult)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrollResultSet | payrollResult | The payroll result |
| IPayrunResult | payrunResult | The payrun result |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitRegulationAsync(IExchangeTenant, IRegulationSet)
Visit the regulation
Declaration
protected override Task VisitRegulationAsync(IExchangeTenant tenant, IRegulationSet regulation)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitReportAsync(IExchangeTenant, IRegulationSet, IReportSet)
Visit the report
Declaration
protected override Task VisitReportAsync(IExchangeTenant tenant, IRegulationSet regulation, IReportSet report)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| IReportSet | report | The report |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitReportParameterAsync(IExchangeTenant, IRegulationSet, IReportSet, IReportParameter)
Visit the report parameter
Declaration
protected override Task VisitReportParameterAsync(IExchangeTenant tenant, IRegulationSet regulation, IReportSet report, IReportParameter parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| IReportSet | report | The report |
| IReportParameter | parameter | The report parameter |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitScriptAsync(IExchangeTenant, IRegulationSet, IScript)
Visit the script
Declaration
protected override Task VisitScriptAsync(IExchangeTenant tenant, IRegulationSet regulation, IScript script)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| IScript | script | The script |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitTaskAsync(IExchangeTenant, ITask)
Visit the task
Declaration
protected override Task VisitTaskAsync(IExchangeTenant tenant, ITask task)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| ITask | task | The task |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitUserAsync(IExchangeTenant, IUser)
Visit the user
Declaration
protected override Task VisitUserAsync(IExchangeTenant tenant, IUser user)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IUser | user | The user |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitWageTypeAsync(IExchangeTenant, IRegulationSet, IWageType)
Visit the wage type
Declaration
protected override Task VisitWageTypeAsync(IExchangeTenant tenant, IRegulationSet regulation, IWageType wageType)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IRegulationSet | regulation | The regulation |
| IWageType | wageType | The wage type |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitWageTypeCustomResultAsync(IExchangeTenant, IPayrollResultSet, IWageTypeResultSet, IWageTypeCustomResult)
Visit the wage type custom result
Declaration
protected override Task VisitWageTypeCustomResultAsync(IExchangeTenant tenant, IPayrollResultSet payrollResult, IWageTypeResultSet wageTypeResult, IWageTypeCustomResult wageTypeCustomResult)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrollResultSet | payrollResult | The payroll result |
| IWageTypeResultSet | wageTypeResult | The wage type result |
| IWageTypeCustomResult | wageTypeCustomResult | The wage type custom result |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitWageTypeResultAsync(IExchangeTenant, IPayrollResultSet, IWageTypeResultSet)
Visit the wage type result
Declaration
protected override Task VisitWageTypeResultAsync(IExchangeTenant tenant, IPayrollResultSet payrollResult, IWageTypeResultSet wageTypeResult)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The exchange tenant |
| IPayrollResultSet | payrollResult | The payroll result |
| IWageTypeResultSet | wageTypeResult | The wage type result |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
VisitWebhookAsync(IExchangeTenant, IWebhookSet)
Visit the webhook
Declaration
protected override Task VisitWebhookAsync(IExchangeTenant tenant, IWebhookSet webhook)
Parameters
| Type | Name | Description |
|---|---|---|
| IExchangeTenant | tenant | The tenant |
| IWebhookSet | webhook | The webhook |
Returns
| Type | Description |
|---|---|
| Task |