Assert.assertEquals(transaction.getHref(), "https://your-subdomain.recurly.com/v2/transactions/a13acd8fe4294916b79aec87b7ea441f"); Assert.assertEquals(transaction.getAccount().getHref(), "https://your-subdomain.recurly.com/v2/accounts/1"); Assert.assertEquals(transaction.getInvoice().getHref(), "https://your-subdomain.recurly.com/v2/invoices/1108"); Assert.assertEquals(transaction.getUuid(), "a13acd8fe4294916b79aec87b7ea441f"); Assert.assertEquals(transaction.getSource(), "transaction");
Assert.assertEquals(transaction.getHref(), "https://your-subdomain.recurly.com/v2/transactions/a13acd8fe4294916b79aec87b7ea441f"); Assert.assertEquals(transaction.getAccount().getHref(), "https://your-subdomain.recurly.com/v2/accounts/1"); Assert.assertEquals(transaction.getInvoice().getHref(), "https://your-subdomain.recurly.com/v2/invoices/1108"); Assert.assertEquals(transaction.getUuid(), "a13acd8fe4294916b79aec87b7ea441f"); Assert.assertEquals(transaction.getSource(), "transaction");
Assert.assertEquals(found.getInvoice().getAccount().getAccountCode(), accountData.getAccountCode()); Assert.assertEquals(found.getInvoice().getAccount().getFirstName(), accountData.getFirstName()); Assert.assertEquals(found.getInvoice().getTotalInCents(), (Integer) 15); Assert.assertEquals(found.getInvoice().getCurrency(), CURRENCY);
Assert.assertEquals(found.getInvoice().getAccount().getAccountCode(), accountData.getAccountCode()); Assert.assertEquals(found.getInvoice().getAccount().getFirstName(), accountData.getFirstName()); Assert.assertEquals(found.getInvoice().getTotalInCents(), (Integer) 15); Assert.assertEquals(found.getInvoice().getCurrency(), CURRENCY);
Assert.assertEquals(externalPayment.getInvoice().getState(), "paid", "Invoice not closed successfully");
Assert.assertEquals(externalPayment.getInvoice().getState(), "paid", "Invoice not closed successfully");