return new BusinessInvoicePaymentModelDao(accountKey, amount, cardCountry, cardType, createdDate, currency, effectiveDate, invoiceId, paymentError, paymentId, paymentMethod, paymentType, pluginName, processingStatus, requestedAmount, updatedDate, invoicePaymentType,
private BusinessInvoicePaymentModelDao createInvoicePayment(final String accountKey) { final BigDecimal amount = BigDecimal.ONE; final String cardCountry = UUID.randomUUID().toString().substring(0, 20); final String cardType = UUID.randomUUID().toString().substring(0, 20); final DateTime createdDate = new DateTime(DateTimeZone.UTC); final Currency currency = Currency.BRL; final DateTime effectiveDate = new DateTime(DateTimeZone.UTC); final UUID invoiceId = UUID.randomUUID(); final String paymentError = UUID.randomUUID().toString(); final UUID paymentId = UUID.randomUUID(); final String paymentMethod = UUID.randomUUID().toString().substring(0, 20); final String paymentType = UUID.randomUUID().toString().substring(0, 20); final String pluginName = UUID.randomUUID().toString().substring(0, 20); final String processingStatus = UUID.randomUUID().toString(); final BigDecimal requestedAmount = BigDecimal.ZERO; final DateTime updatedDate = new DateTime(DateTimeZone.UTC); final String invoicePaymentType = UUID.randomUUID().toString().substring(0, 10); final UUID linkedInvoicePaymentId = UUID.randomUUID(); return new BusinessInvoicePaymentModelDao(accountKey, amount, cardCountry, cardType, createdDate, currency, effectiveDate, invoiceId, paymentError, paymentId, paymentMethod, paymentType, pluginName, processingStatus, requestedAmount, updatedDate, invoicePaymentType, linkedInvoicePaymentId); } }
final String invoicePaymentType = UUID.randomUUID().toString(); final UUID linkedInvoicePaymentId = UUID.randomUUID(); final BusinessInvoicePaymentModelDao invoicePayment = new BusinessInvoicePaymentModelDao(accountKey, amount, cardCountry, cardType, createdDate, currency, effectiveDate, invoiceId, Assert.assertEquals(invoicePayment.getLinkedInvoicePaymentId(), linkedInvoicePaymentId); final BusinessInvoicePaymentModelDao otherInvoicePayment = new BusinessInvoicePaymentModelDao(null, null, null, null, createdDate, null, null, null, null, paymentId, null, null, null, null, null, null, null, null);
final BusinessInvoicePaymentModelDao businessInvoicePayment = new BusinessInvoicePaymentModelDao( account.getExternalKey(), payment.getAmount(),