Holiday
A sub namespace of Document, exclusive for holiday operations
get
Description
This method can be used to get holidays from a company between two dates.
Method(s)
1 declare function get(companyId?: string, startDate?: Date, endDate?: Date): Promise<HolidayInfoDto[]>
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
companyId | string | true | Company's id | |
startDate | Date | false | Range start date | |
endDate | Date | false | Range end date |
Basic Usage
SW.Document.Holiday.get("bf54366c-4212-4099-b959-7c969b6c878f");