PenaltyType

public final class PenaltyType

Container for no show penalty element

Parameters

type

What the penalty amount is based on. should be one of the following values:AMOUNT : it means the user is charged a fixed amount specified in the value node. Say 50$ for example.PERCENT : it means the user is charged a percentage of the base rate/total rate.PERDAY : it means the user is charged Per Day Price. For eg.., if the value is 2, it means the penalty amount will the Per day price of 2 days.

value Value to indicate how many/much of the type listed above is going to be charged as a penalty.

currency

The currency of the amount, only valid when Type=AMOUNT

Constructors

Link copied to clipboard
public PenaltyType PenaltyType(String type, String value, String currency)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@NotNull()
@Valid()
private final String currency
Link copied to clipboard
@NotNull()
@Valid()
private final String type
Link copied to clipboard
@NotNull()
@Valid()
private final String value

Functions

Link copied to clipboard
public final static PenaltyType.Builder builder()
Link copied to clipboard
public final String getCurrency()
Link copied to clipboard
public final String getType()
Link copied to clipboard
public final String getValue()
Link copied to clipboard