use of org.killbill.billing.client.model.Payment in project killbill by killbill.
the class TestChargeback method testBadRequest.
@Test(groups = "slow", description = "Cannot add a badly formatted chargeback")
public void testBadRequest() throws Exception {
final Payment payment = createAccountWithInvoiceAndPayment();
final InvoicePaymentTransaction input = new InvoicePaymentTransaction();
input.setPaymentId(payment.getPaymentId());
try {
killBillClient.createInvoicePaymentChargeback(input, createdBy, reason, comment);
fail();
} catch (final KillBillClientException e) {
}
}
use of org.killbill.billing.client.model.Payment in project killbill by killbill.
the class TestChargeback method testAddChargeback.
@Test(groups = "slow", description = "Can create a chargeback")
public void testAddChargeback() throws Exception {
final Payment payment = createAccountWithInvoiceAndPayment();
createAndVerifyChargeback(payment);
}
Aggregations