use of api.support.builders.LostItemFeePolicyBuilder in project mod-circulation by folio-org.
the class LostItemFeePoliciesFixture method facultyStandardPolicy.
public LostItemFeePolicyBuilder facultyStandardPolicy() {
final Period itemAgedLostOverdue = Period.months(12);
final Period patronBilledAfterAgedLost = Period.months(12);
return new LostItemFeePolicyBuilder().withName("Undergrad standard").withDescription("This is description for undergrad standard").withItemAgedToLostAfterOverdue(itemAgedLostOverdue).withPatronBilledAfterItemAgedToLost(patronBilledAfterAgedLost).withNoChargeAmountItem().doNotChargeProcessingFeeWhenDeclaredLost().withChargeAmountItemSystem(true).refundProcessingFeeWhenReturned().withReplacedLostItemProcessingFee(true).withReplacementAllowed(true).chargeOverdueFineWhenReturned();
}
use of api.support.builders.LostItemFeePolicyBuilder in project mod-circulation by folio-org.
the class LoanToChargeFeesTest method shouldNotCloseLoanIfSetCostFeeHasToBeCharged.
@Test
void shouldNotCloseLoanIfSetCostFeeHasToBeCharged() {
val lostItemPolicy = new LostItemFeePolicyBuilder().billPatronImmediatelyWhenAgedToLost().withSetCost(11.00);
assertFalse(loanForLostItemPolicy(lostItemPolicy).shouldCloseLoan());
}
use of api.support.builders.LostItemFeePolicyBuilder in project mod-circulation by folio-org.
the class LoanToChargeFeesTest method shouldNotCloseLoanIfActualCostFeeHasToBeCharged.
@Test
void shouldNotCloseLoanIfActualCostFeeHasToBeCharged() {
val lostItemPolicy = new LostItemFeePolicyBuilder().billPatronImmediatelyWhenAgedToLost().withActualCost(11.00);
assertFalse(loanForLostItemPolicy(lostItemPolicy).shouldCloseLoan());
}
use of api.support.builders.LostItemFeePolicyBuilder in project mod-circulation by folio-org.
the class LoanToChargeFeesTest method shouldNotCloseLoanIfProcessingFeeHasToBeCharged.
@Test
void shouldNotCloseLoanIfProcessingFeeHasToBeCharged() {
val lostItemPolicy = new LostItemFeePolicyBuilder().billPatronImmediatelyWhenAgedToLost().chargeProcessingFeeWhenAgedToLost(10.00);
assertFalse(loanForLostItemPolicy(lostItemPolicy).shouldCloseLoan());
}
use of api.support.builders.LostItemFeePolicyBuilder in project mod-circulation by folio-org.
the class LoanToChargeFeesTest method shouldCloseLoanIfNoFeesToChargeForDelayedBilling.
@Test
void shouldCloseLoanIfNoFeesToChargeForDelayedBilling() {
val lostItemPolicy = new LostItemFeePolicyBuilder().withPatronBilledAfterItemAgedToLost(Period.minutes(1));
assertTrue(loanForLostItemPolicy(lostItemPolicy).shouldCloseLoan());
}
Aggregations