public void addBody(AcEdiMessage message, AcUspsD1InvoiceClaimV2R1Claim model) { message.add(createMessageCreationDtm(model)); addLineItems(message, model.getLineItems()); message.add(createControlUns()); message.add(createLineCountCnt(model)); message.add(createAdjustmentAmountMoa(model)); }
private AcEdiSegmentAbstract createLineCountCnt(AcUspsD1InvoiceClaimV2R1Claim model) { AcEdiUspsD1InvoiceClaimV2R1Cnt cnt = new AcEdiUspsD1InvoiceClaimV2R1Cnt(); cnt.setLineCount(model.getLineItems().size()); return cnt; }