| Total Complexity | 3 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | /* |
||
| 15 | public class Refund { |
||
| 16 | private ApiConnection apiConnection; |
||
| 17 | final private RaveConstant key= new RaveConstant(); |
||
| 18 | Endpoints end= new Endpoints(); |
||
| 19 | private String ref; |
||
| 20 | /** |
||
| 21 | * @return JSONObject |
||
| 22 | * |
||
| 23 | */ |
||
| 24 | public JSONObject refund(){ |
||
| 25 | this.apiConnection = new ApiConnection(end.getRefundEndPoint()); |
||
| 26 | ApiQuery api= new ApiQuery(); |
||
| 27 | |||
| 28 | api.putParams("ref", this.getRef()); |
||
| 29 | api.putParams("seckey", RaveConstant.SECRET_KEY); |
||
| 30 | |||
| 31 | |||
| 32 | return this.apiConnection.connectAndQuery(api); |
||
| 33 | } |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return the ref |
||
| 37 | */ |
||
| 38 | public String getRef() { |
||
| 39 | return ref; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param ref the ref to set |
||
| 44 | */ |
||
| 45 | public void setRef(String ref) { |
||
| 46 | this.ref = ref; |
||
| 47 | } |
||
| 49 |
The Java specification lists the customary order.