Search in sources :

Example 1 with AdminPayment

use of org.killbill.billing.client.model.gen.AdminPayment in project killbill by killbill.

the class TestAdmin method fixPaymentState.

private void fixPaymentState(final Payment payment, final String lastSuccessPaymentState, final String currentPaymentStateName, final TransactionStatus transactionStatus) throws KillBillClientException {
    callbackServlet.pushExpectedEvent(ExtBusEventType.PAYMENT_FAILED);
    final AdminPayment body = new AdminPayment(lastSuccessPaymentState, currentPaymentStateName, transactionStatus.toString());
    adminApi.updatePaymentTransactionState(payment.getPaymentId(), payment.getTransactions().get(0).getTransactionId(), body, requestOptions);
    callbackServlet.assertListenerStatus();
}
Also used : AdminPayment(org.killbill.billing.client.model.gen.AdminPayment)

Aggregations

AdminPayment (org.killbill.billing.client.model.gen.AdminPayment)1