ReservationBlueprints

Allows you to generate the possible reservation collections based on a reservation blueprint

Methods

Description

This method takes a blueprint name, a date range, and a prototype Reservation. It will return a list of Reservation Collections that matches the blueprint definition.

Signature

global static B25.ReservationBlueprints.Result createReservationsFromBlueprint(B25.ReservationBlueprints.Context context)

Parameters

B25.ReservationBlueprints.Context

An instance of B25.ReservationBlueprints.Context. This class wraps the input parameters, such as the blueprint name, a date range, and a prototype Reservation.

Return Type

B25.ReservationBlueprints.Result

An instance of B25.ReservationBlueprints.Result. This contains a list of Reservation Collections that matches the blueprint definition.

Inner Classes

Description

This class wraps the input parameters, such as the blueprint name, a date range, and a prototype Reservation.

Properties

Name of the blueprint to use.

Reservation with values to use for the ‘copy from parent reservation', ’Child of Parent Resource', and 'Available at Parent Resource' blueprint options.

Start of the date range used with the 'Available at Parent Resource' blueprint option. It is used to determine the active MDA records to find the correct dimension records.

End of the date range used with the 'Available at Parent Resource' blueprint option. It is used to determine the active MDA records to find the correct dimension records.

Description

An instance of B25.ReservationBlueprints.Result. This contains a list of Reservation Collections that matches the blueprint definition.

Properties

List of Reservation collections matching the blueprint provided. If no options for multiple values like: ’Child of Parent Resource', and 'Available at Parent Resource' are were on the blueprint this will have one collection. Otherwise all permutations will be present.

Example

This example shows how you can use the class in your own code.