コード例 #1
0
 @Override
 protected void validateInstance() throws BillyValidationException, ValidationException {
   super.validateInstance();
   ESPaymentEntity p = this.getTypeInstance();
   BillyValidator.mandatory(
       p.getPaymentAmount(), ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_amount"));
   BillyValidator.mandatory(
       p.getPaymentMethod(), ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_method"));
   BillyValidator.mandatory(
       p.getPaymentDate(), ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_date"));
 }
コード例 #2
0
 @Override
 public TBuilder setPaymentMethod(Enum<?> method) {
   BillyValidator.notNull(
       method, ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_method"));
   this.getTypeInstance().setPaymentMethod(method);
   return this.getBuilder();
 }
コード例 #3
0
 @Override
 public TBuilder setPaymentAmount(BigDecimal amount) {
   BillyValidator.notNull(
       amount, ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_amount"));
   this.getTypeInstance().setPaymentAmount(amount);
   return this.getBuilder();
 }
コード例 #4
0
 @Override
 public TBuilder setPaymentDate(Date date) {
   BillyValidator.notNull(date, ESPaymentBuilderImpl.LOCALIZER.getString("field.payment_date"));
   this.getTypeInstance().setPaymentDate(date);
   return this.getBuilder();
 }