Daml.Finance.Data.Reference.HolidayCalendar¶
Templates¶
template Factory
Implementation of the corresponding HolidayCalendar Factory.
Signatory: provider
Field Type Description provider Party The factory’s provider. observers PartiesMap The factory’s observers.
template HolidayCalendar
Holiday calendar of an entity (typically an exchange or a currency). It is maintained by a reference data provider.
Signatory: provider
Field Type Description calendar HolidayCalendarData Holiday Calendar Data used to define holidays. observers PartiesMap Observers. provider Party The party maintaining the HolidayCalendar
.
Choice Archive
Controller: provider
Returns: ()
(no fields)
Choice GetCalendar
Returns the calendar’s
HolidayCalendarData
.Controller: viewer
Returns: HolidayCalendarData
Field Type Description viewer Party The party fetching the calendar. interface instance I for HolidayCalendar
interface instance I for HolidayCalendar
Data Types¶
data HolidayCalendarKey
Key used to look up the holiday calendar of an entity, as defined by a reference data provider.
instance Eq HolidayCalendarKey
instance Show HolidayCalendarKey
instance HasExerciseByKey HolidayCalendar HolidayCalendarKey GetCalendar HolidayCalendarData
instance HasExerciseByKey HolidayCalendar HolidayCalendarKey Archive ()
instance HasFetchByKey HolidayCalendar HolidayCalendarKey
instance HasFromAnyContractKey HolidayCalendar HolidayCalendarKey
instance HasKey HolidayCalendar HolidayCalendarKey
instance HasLookupByKey HolidayCalendar HolidayCalendarKey
instance HasMaintainer HolidayCalendar HolidayCalendarKey
instance HasToAnyContractKey HolidayCalendar HolidayCalendarKey
Functions¶
- getHolidayCalendars
: Party -> Party -> [Text] -> Update [HolidayCalendarData]
Retrieve holiday calendar(s) from the ledger.
- rollSchedule
: ([Text] -> Update [HolidayCalendarData]) -> PeriodicSchedule -> [Text] -> Update (Schedule, [HolidayCalendarData])
Retrieve holiday calendar(s) from the ledger and roll out a schedule. Returns the rolled schedule and the required calendars.