com.flutterwave.rave.java.entry.ebills Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of Rave-Java Show documentation
Show all versions of Rave-Java Show documentation
A Java API wrapper for the Rave API
The newest version!
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.flutterwave.rave.java.entry;
import com.flutterwave.rave.java.config.raveConfig;
import com.flutterwave.rave.java.payload.ebillpayload;
import com.flutterwave.rave.java.service.ebillServices;
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.json.JSONObject;
/**
*
* @author cleopatradouglas
*/
public class ebills {
public String doebillscreate(ebillpayload ebillpayload) {
ebillServices ebillServices = new ebillServices();
ebillpayload.setCountry("NG");
String payload = new JSONObject(ebillpayload).toString();
String response = ebillServices.doebillscreate(payload, ebillpayload);
return response;
}
public String doebillsupdate(ebillpayload ebillpayload) {
ebillServices ebillServices = new ebillServices();
ebillpayload.setCountry("NG");
String payload = new JSONObject(ebillpayload).toString();
String response = ebillServices.doebillsupdate(payload, ebillpayload);
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy