if (externalChargeJson.getBundleId() != null) { externalCharge = invoiceApi.insertExternalChargeForInvoiceAndBundle(account.getId(), invoiceId, UUID.fromString(externalChargeJson.getBundleId()), externalChargeJson.getAmount(), externalChargeJson.getDescription(), requestedDate, currency, callContext); } else { externalCharge = invoiceApi.insertExternalChargeForInvoice(account.getId(), invoiceId, externalChargeJson.getAmount(), externalChargeJson.getDescription(), requestedDate, currency, callContext);
if (externalChargeJson.getBundleId() != null) { externalCharge = invoiceApi.insertExternalChargeForBundle(account.getId(), UUID.fromString(externalChargeJson.getBundleId()), externalChargeJson.getAmount(), externalChargeJson.getDescription(), requestedDate, currency, callContext); } else { externalCharge = invoiceApi.insertExternalCharge(account.getId(), externalChargeJson.getAmount(), externalChargeJson.getDescription(), requestedDate, currency, callContext);
Assert.assertEquals(invoiceItemJson.getPhaseName(), phaseName); Assert.assertEquals(invoiceItemJson.getItemType(), type); Assert.assertEquals(invoiceItemJson.getDescription(), description); Assert.assertEquals(invoiceItemJson.getStartDate(), startDate); Assert.assertEquals(invoiceItemJson.getEndDate(), endDate);
Assert.assertEquals(invoiceItemJson.getPlanName(), invoiceItem.getPlanName()); Assert.assertEquals(invoiceItemJson.getPhaseName(), invoiceItem.getPhaseName()); Assert.assertEquals(invoiceItemJson.getDescription(), invoiceItem.getDescription()); Assert.assertEquals(invoiceItemJson.getStartDate(), invoiceItem.getStartDate()); Assert.assertEquals(invoiceItemJson.getEndDate(), invoiceItem.getEndDate());