Daml.Finance.Interface.Types.Date.Calendar

Data Types

data BusinessDayAdjustment

A data type to define how non-business days are adjusted.

BusinessDayAdjustment

Field Type Description
calendarIds [Text] A list of calendar ids to define holidays.
convention BusinessDayConventionEnum The business day convention used for the adjustment.

instance Eq BusinessDayAdjustment

instance Show BusinessDayAdjustment

data BusinessDayConventionEnum

An enum type to specify how a non-business day is adjusted.

Following

Adjust a non-business day to the next business day.

ModifiedFollowing

Adjust a non-business day to the next business day unless it is not in the same month. In this case use the previous business day.

ModifiedPreceding

Adjust a non-business day to the previous business day unless it is not in the same month. In this case use the next business day.

NoAdjustment

Non-business days are not adjusted.

Preceding

Adjust a non-business day to the previous business day.

instance Eq BusinessDayConventionEnum

instance Show BusinessDayConventionEnum

data HolidayCalendarData

Holiday Calendar Data used to define holidays (non-business days).

HolidayCalendarData

Field Type Description
id Text The id of the holiday calendar.
weekend [DayOfWeek] A list of week days defining the weekend.
holidays [Date] A list of dates defining holidays.

instance Eq HolidayCalendarData

instance Show HolidayCalendarData

instance HasExerciseByKey HolidayCalendar HolidayCalendarKey GetCalendar HolidayCalendarData