case class Building(description: Option[String], firstLineOfAddress: Option[String], postcode: Option[String], earliestWrittenContract: Option[LocalDate], nonResidentialActivityStart: Option[LocalDate], costsClaimedInThisPeriod: Option[Boolean], cost: Option[Int], claim: Option[Int], broughtForward: Option[Int] = None, carriedForward: Option[Int] = None, claimNote: Option[String] = None) extends ValidatableBox[ComputationsBoxRetriever] with ExtraValidation with SBAHelper with SBACalculator with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Building
- Serializable
- Serializable
- Product
- Equals
- SBACalculator
- AccountingPeriodHelper
- NumberRounding
- SBAHelper
- ValidatableBox
- ExtraValidation
- Validators
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new Building(description: Option[String], firstLineOfAddress: Option[String], postcode: Option[String], earliestWrittenContract: Option[LocalDate], nonResidentialActivityStart: Option[LocalDate], costsClaimedInThisPeriod: Option[Boolean], cost: Option[Int], claim: Option[Int], broughtForward: Option[Int] = None, carriedForward: Option[Int] = None, claimNote: Option[String] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
And(predicates: () ⇒ Boolean*)(): Boolean
- Attributes
- protected
- Definition Classes
- Validators
-
def
Or(predicates: () ⇒ Boolean*)(): Boolean
- Attributes
- protected
- Definition Classes
- Validators
-
def
accountingPeriodDaysInFinancialYear(year: Int, accountingPeriod: HmrcAccountingPeriod): BigDecimal
- Definition Classes
- AccountingPeriodHelper
-
def
accountingPeriodSpansTwoFinancialYears(accountingPeriod: HmrcAccountingPeriod): Boolean
- Definition Classes
- AccountingPeriodHelper
-
def
apportionedCostOfBuilding(cost: BigDecimal, daysInTheYear: Int, rateForTy: SBARateForTaxYear): BigDecimal
- Definition Classes
- SBACalculator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atLeastOneBoxHasValue(boxId: String, boxes: OptionalCtValue[_]*)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
belowMin(value: Option[Int], min: Int = MIN_MONEY_AMOUNT_ALLOWED)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
belowMinWithMax(value: Option[Int], max: Int, min: Int = MIN_MONEY_AMOUNT_ALLOWED)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
val
boxId: String
- Attributes
- protected
- Definition Classes
- Validators
- val broughtForward: Option[Int]
-
val
broughtForwardId: String
- Definition Classes
- SBAHelper
-
def
cannotExistErrorIf(predicate: ⇒ Boolean)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
- val carriedForward: Option[Int]
-
val
carriedForwardId: String
- Definition Classes
- SBAHelper
- val claim: Option[Int]
-
val
claimId: String
- Definition Classes
- SBAHelper
- val claimNote: Option[String]
-
val
claimNoteId: String
- Definition Classes
- SBAHelper
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
collectErrors(predicates: () ⇒ Set[CtValidation]*): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
collectWithBoxId(newBoxId: String)(errors: Set[CtValidation]): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
- val cost: Option[Int]
-
val
costId: String
- Definition Classes
- SBAHelper
- val costsClaimedInThisPeriod: Option[Boolean]
-
val
dateLowerBound: LocalDate
- Definition Classes
- SBAHelper
-
def
daysBetween(start: LocalDate, end: LocalDate): Int
- Definition Classes
- AccountingPeriodHelper
-
def
daysInAccountingPeriod(accountingPeriod: HmrcAccountingPeriod): Int
- Definition Classes
- AccountingPeriodHelper
- val description: Option[String]
-
val
descriptionId: String
- Definition Classes
- SBAHelper
- val earliestWrittenContract: Option[LocalDate]
-
val
earliestWrittenContractId: String
- Definition Classes
- SBAHelper
-
def
endingFinancialYear(date: EndDate): Int
- Definition Classes
- AccountingPeriodHelper
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
errorMessage[A](messageKey: String, errorArguments: Seq[A] = Seq.empty): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
val
exampleUpperBoundDate: LocalDate
- Definition Classes
- SBAHelper
-
def
exceedsMax(value: Option[Int], max: Int = MAX_MONEY_AMOUNT_ALLOWED, errorMsg: String = "exceeds.max")(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
failIf(condition: ⇒ Boolean)(validationErrors: ⇒ Set[CtValidation])(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
val
filingPeriodQuestionId: String
- Definition Classes
- SBAHelper
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
financialYearForDate(date: LocalDate): Int
- Definition Classes
- AccountingPeriodHelper
-
def
financialYearStartingIn(year: Int): (LocalDate, LocalDate)
- Definition Classes
- AccountingPeriodHelper
- val firstLineOfAddress: Option[String]
-
val
firstLineOfAddressId: String
- Definition Classes
- SBAHelper
- def getApportionedRates(apStartDate: LocalDate, apEndDate: LocalDate): Int
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
getDaysIntheYear(apStartDate: LocalDate): Int
- Definition Classes
- SBACalculator
-
def
getSbaDetails(apStartDate: LocalDate, apEndDate: LocalDate, maybeFirstUsageDate: Option[LocalDate], maybeCost: Option[Int]): Option[SbaResults]
- Definition Classes
- SBACalculator
-
def
isEarliestWrittenContractAfterAPStart(contractDate: LocalDate, apStartDate: LocalDate): Boolean
- Definition Classes
- SBACalculator
-
def
isEmpty(value: Option[_]): Boolean
- Attributes
- protected
- Definition Classes
- Validators
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
nonEmpty(value: Option[_]): Boolean
- Attributes
- protected
- Definition Classes
- Validators
-
val
nonResActivityId: String
- Definition Classes
- SBAHelper
- val nonResidentialActivityStart: Option[LocalDate]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
passIf(condition: ⇒ Boolean)(validationErrors: ⇒ Set[CtValidation])(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
val
postCodeRegex: String
- Attributes
- protected
- Definition Classes
- ExtraValidation
- val postcode: Option[String]
-
val
postcodeId: String
- Definition Classes
- SBAHelper
-
val
rateAfterTy2020: SBARateForTaxYear
- Definition Classes
- SBACalculator
-
val
ratePriorTy2020: SBARateForTaxYear
- Definition Classes
- SBACalculator
-
def
replaceBoxId(newBoxId: String, errors: () ⇒ Set[CtValidation])(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
requiredErrorIf(predicate: ⇒ Boolean)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
roundedToInt(value: BigDecimal): Int
- Definition Classes
- NumberRounding
-
def
roundedToIntHalfDown(value: BigDecimal): Int
- Definition Classes
- NumberRounding
-
def
roundedToIntHalfUp(value: BigDecimal): Int
- Definition Classes
- NumberRounding
-
def
roundedTwoDecimalPlaces(value: BigDecimal): BigDecimal
- Definition Classes
- NumberRounding
-
val
sba01BoxId: String
- Definition Classes
- SBAHelper
-
def
startingFinancialYear(date: StartDate): Int
- Definition Classes
- AccountingPeriodHelper
-
def
sumAmount(xs: List[Option[Int]]): Option[Int]
- Definition Classes
- SBACalculator
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
validate(boxRetriever: ComputationsBoxRetriever): Set[CtValidation]
- Definition Classes
- Building → ValidatableBox
-
def
validateAccountingPeriod(accountingPeriod: HmrcAccountingPeriod): Unit
- Definition Classes
- AccountingPeriodHelper
-
def
validateAllFilledOrEmptyStrings(boxId: String, allBoxes: Set[CtValue[String]])(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateAllFilledOrEmptyStringsForBankDetails(boxRetriever: RepaymentsBoxRetriever, boxId: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateAsMandatory[U](box: CtValue[U] with CtBoxIdentifier)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateAsMandatory[A](boxId: String, value: Option[A])(): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validateBooleanAsMandatory(boxId: String, box: OptionalBooleanIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateBooleanAsTrue(boxId: String, box: OptionalBooleanIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateCoHoStringReturnIllegalChars(boxId: String, value: String, errorCodeBoxId: Option[String] = None)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateCoHoStringReturnIllegalChars(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateCohoNameField(boxId: String, box: StringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateCohoOptionalNameField(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsAfter(boxId: String, box: OptionalDateIdBox, dateToCompare: LocalDate)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsBefore(boxId: String, box: OptionalDateIdBox, dateToCompare: LocalDate)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsBetweenInclusive(boxId: String, date: Option[LocalDate], minDate: LocalDate, maxDate: LocalDate, messageId: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsBetweenInclusive(boxId: String, box: OptionalDateIdBox, minDate: LocalDate, maxDate: LocalDate)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsBlank(boxId: String, box: OptionalDateIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsMandatory(boxId: String, date: Option[LocalDate], messageId: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateAsMandatory(boxId: String, box: OptionalDateIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateDateIsInclusive(boxId: String, minDate: LocalDate, dateToCompare: Option[LocalDate], maxDate: LocalDate): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validateIntegerAsBlank(boxId: String, box: OptionalIntIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateIntegerAsMandatory(boxId: String, box: OptionalIntIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateIntegerRange(boxId: String, box: OptionalIntIdBox, min: Int, max: Int)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateMoney(value: Option[Int], min: Int = -99999999, max: Int = 99999999)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- Validators
-
def
validateNotEmptyStringByLength(boxId: String, value: String, min: Int, max: Int)(): Set[CtValidation]
- Definition Classes
- ValidatableBox
-
def
validateNotEmptyStringByLengthMin(boxId: String, value: String, min: Int)(): Set[CtValidation]
- Definition Classes
- ValidatableBox
-
def
validateOptionalIntegerAsEqualTo(box: CtBoxIdentifier with CtOptionalInteger, equalToBox: CtBoxIdentifier with CtOptionalInteger): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateOptionalStringByLength(boxId: String, box: OptionalStringIdBox, min: Int, max: Int)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateOptionalStringByLength(value: Option[String], min: Int, max: Int, boxId: String, boxIdPrefix: Option[String])(): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validateOptionalStringByLengthMax(boxId: String, box: OptionalStringIdBox, max: Int)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateOptionalStringByLengthMin(boxId: String, box: OptionalStringIdBox, min: Int)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateOptionalStringByRegex(boxId: String, box: OptionalStringIdBox, regex: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validatePositiveBigDecimal(box: OptionalBigDecimalIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validatePositiveInteger(box: OptionalIntIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validatePostcode(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Definition Classes
- ValidatableBox
-
def
validatePostcode(boxId: String, postcode: Option[String]): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validatePostcodeLength(boxId: String, postcode: String): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validatePostcodeRegex(boxId: String, postcode: String): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validateRawStringByRegex(boxId: String, value: String, errorCodeBoxId: String, regex: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringAsBlank(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringAsMandatory(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringAsMandatoryIfPAYEEQ1False(boxRetriever: RepaymentsBoxRetriever, boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringAsMandatoryWithNoTrailingWhitespace(boxId: String, box: OptionalStringIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringByLength(boxId: String, value: String, errorCodeId: String, min: Int, max: Int)(): Set[CtValidation]
- Definition Classes
- ValidatableBox
-
def
validateStringByLength(boxId: String, box: StringIdBox, min: Int, max: Int)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringByRegex(boxId: String, box: StringIdBox, regex: String)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateStringByRegex(boxId: String, str: String, regex: String): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
def
validateStringMaxLength(boxId: String, value: String, max: Int)(): Set[CtValidation]
- Definition Classes
- ValidatableBox
-
def
validateZeroOrNegativeInteger(box: OptionalIntIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateZeroOrPositiveBigDecimal(box: OptionalBigDecimalIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateZeroOrPositiveInteger(box: OptionalIntIdBox)(): Set[CtValidation]
- Attributes
- protected
- Definition Classes
- ValidatableBox
-
def
validateZeroOrPositiveInteger(boxId: String, value: Option[Int]): Set[CtValidation]
- Definition Classes
- ExtraValidation
-
val
validationSuccess: Set[CtValidation]
- Definition Classes
- ValidatableBox
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()