Skip to content

Latest commit

 

History

History
73 lines (51 loc) · 1.58 KB

File metadata and controls

73 lines (51 loc) · 1.58 KB

Bills

We recommend reading the main readme first, to understand the requirements for using the library and how to initiate this in your apps. This guide assumes you've read that.

Get Bill Categories

This describes how to get bill categories

new Bills().getCategories(Optional.airtime,
        Optional.data_bundle, 
        Optional.power, 
        Optional.internet, 
        Optional.toll,
        Optional.cable, 
        Optional.biller_code);

Create a bill payment

This describes how to create a bill payment

Response response = new Bills()
        .runTransaction(new BillRequest("NG",
        "+23490803840303",
        new BigDecimal("'500'"),
        Optional.of(ONCE),
        Optional.empty()));

Validate a bill service

This describes how to validate a bill service

Response response = new Bills().validateBillService("AT099",
        "BIL099", "+2348109328188");

Create bulk bills

This describes how to create bulk bills

List<BillRequest> billRequestList = new ArrayList<>();
        billRequestList.add(billRequest);
        
Response response = new Bills()
        .runBulkTransaction("billRequestList);

Get bill payments

This describes how to get bill payments

Response response = new Bills()
        .getBills(from, to);

Get actions of a bill payment

This describes how to get actions of a bill payment

Response response = new Bills().getStatus(id);