CarsCancellationPolicy

public final class CarsCancellationPolicy

Cancellation Policy Container.

Parameters

cancellable

Indicates if this car can be cancelled (free cancel or penalty cancel)

freeCancellation

Indicates if this car may be cancelled without a penalty.

freeCancellationEndDateTime

Indicates the latest time that the car can be cancelled for free.

penaltyRules

Container for penalty rules

nonCancellableDateTimeRange

Constructors

Link copied to clipboard
public CarsCancellationPolicy CarsCancellationPolicy(Boolean cancellable, Boolean freeCancellation, LocalDateTime freeCancellationEndDateTime, List<PenaltyRule> penaltyRules, NonCancellableDateTimeRange nonCancellableDateTimeRange)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final Boolean cancellable
Link copied to clipboard
@Valid()
private final Boolean freeCancellation
Link copied to clipboard
@Valid()
private final List<PenaltyRule> penaltyRules

Functions

Link copied to clipboard
Link copied to clipboard
public final Boolean getCancellable()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard