/app/src/main/java/com/webplat/merchant/cyberplate/utils/ServiceCallApi.java
Java | 381 lines | 291 code | 86 blank | 4 comment | 0 complexity | f88d4f465201f5db29deebf29c0a05f0 MD5 | raw file
- package com.webplat.merchant.cyberplate.utils;
- import com.webplat.merchant.cyberplate.dthbooking.pojo.RegionResponse;
- import com.webplat.merchant.cyberplate.dthbooking.pojo.RegionResponseData;
- import com.webplat.merchant.cyberplate.dthbooking.pojo.productdetails.ProductDetailsResponse;
- import com.webplat.merchant.cyberplate.newbbbps.pojo.bbpsbilling.BBPSBilling;
- import com.webplat.merchant.cyberplate.pojo.ResponseFromWebService;
- import com.webplat.merchant.cyberplate.pojo.TransactionStatus;
- import com.webplat.merchant.cyberplate.pojo.VersionCheckRes;
- import com.webplat.merchant.cyberplate.pojo.auto_selection.AutoOperatorSelection;
- import com.webplat.merchant.cyberplate.pojo.balance.UserBalance;
- import com.webplat.merchant.cyberplate.pojo.bank_details.BankDetails;
- import com.webplat.merchant.cyberplate.pojo.bbpscategory.OldBBPSCategory;
- import com.webplat.merchant.cyberplate.pojo.bbpssubcategory.BBPSSubcategory;
- import com.webplat.merchant.cyberplate.pojo.check_jio_bill.CheckJioBIll;
- import com.webplat.merchant.cyberplate.pojo.commission.CommissionReport;
- import com.webplat.merchant.cyberplate.pojo.dispute_history.DisputesHistory;
- import com.webplat.merchant.cyberplate.pojo.giftcard_pojo.gift_card_category_list.GetGiftCategoryList;
- import com.webplat.merchant.cyberplate.pojo.giftcard_pojo.gift_card_product.GiftCardProduct;
- import com.webplat.merchant.cyberplate.pojo.giftcard_pojo.giftcard_placeorder.GetPlaceOrder;
- import com.webplat.merchant.cyberplate.pojo.giftcard_pojo.giftcatd_product_details.ProductDetails;
- import com.webplat.merchant.cyberplate.pojo.is_valid_domain.IsValidDomain;
- import com.webplat.merchant.cyberplate.pojo.login.LoginCheck;
- import com.webplat.merchant.cyberplate.pojo.operator.OperatorListServer;
- import com.webplat.merchant.cyberplate.pojo.pattern.PatternList;
- import com.webplat.merchant.cyberplate.pojo.payment_transfer_report.PaymentTransferReport;
- import com.webplat.merchant.cyberplate.pojo.pending_payment.PendingPaymentReport;
- import com.webplat.merchant.cyberplate.pojo.profile.UserProfile;
- import com.webplat.merchant.cyberplate.pojo.recharge_history.RechargeHistory;
- import com.webplat.merchant.cyberplate.pojo.recharge_response.RechargeResponse;
- import com.webplat.merchant.cyberplate.pojo.report.dashboard_usage.DashboardUsageReport;
- import com.webplat.merchant.cyberplate.pojo.report.dashboard_usage_details.DashboardUsageDetails;
- import com.webplat.merchant.cyberplate.pojo.report.monthly_commsiion.CommissionMonthlyReport;
- import com.webplat.merchant.cyberplate.pojo.report.statment.StatementReport;
- import com.webplat.merchant.cyberplate.pojo.reportcategory.CategoryHistory;
- import com.webplat.merchant.cyberplate.pojo.reportcategory.SubCategoryHistory;
- import com.webplat.merchant.cyberplate.pojo.service_auth.ServiceAuth;
- import com.webplat.merchant.cyberplate.pojo.summary_report.SuummaryTransaction;
- import com.webplat.merchant.cyberplate.pojo.surcharge.SurchargeReport;
- import com.webplat.merchant.cyberplate.pojo.utility_bill.CheckUtilityBIll;
- import com.webplat.merchant.cyberplate.pojo.view_user.ViewUser;
- import okhttp3.MultipartBody;
- import okhttp3.RequestBody;
- import retrofit2.Call;
- import retrofit2.http.Field;
- import retrofit2.http.FormUrlEncoded;
- import retrofit2.http.GET;
- import retrofit2.http.Multipart;
- import retrofit2.http.POST;
- import retrofit2.http.Part;
- import retrofit2.http.Query;
- /**
- * Created by pc3 on 28/11/2016.
- */
- public interface ServiceCallApi {
- @FormUrlEncoded
- @POST("operatorServices/GetOperatorName")
- Call<OperatorListServer> getOperator(@Field("ServiceId") String serviceID);
- @FormUrlEncoded
- @POST("PlanServices/GetCircleOperatorbyNumber")
- Call<AutoOperatorSelection> searchOperatorByNumber(@Field("number") String mobileNumberFiveDigit, @Field("ServiceID") String serviceId);
- @FormUrlEncoded
- @POST("UserLogin/GetSoftversionId")
- Call<VersionCheckRes> versionCode(@Field("Data") String packageName);
- @POST("UserLogin")
- Call<LoginCheck> getLoginInfo(@Query("UserName") String userName, @Query("Password") String password, @Query("IEMINo") String deviceID);
- @FormUrlEncoded
- @POST("Recharge/GetAllRecharge")
- Call<RechargeResponse> doRecharge(@Field("UserName") String userId, @Field("Password") String password, @Field("Amount") String amount,
- @Field("MobileNumber") String number, @Field("OPTID") String opcode, @Field("Circle") String circle, @Field("AccountType") String accountType,
- @Field("AccountNo") String accountNumber);
- @FormUrlEncoded
- @POST("ReportServices/GetLastTransaction")
- Call<RechargeHistory> getRechargeHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate, @Field("Categoryid") String mainCategoryID, @Field("Subcategoryid") String subCategoryID, @Field("Operatorid") String Operatorid, @Field("Status") String sname);
- @FormUrlEncoded
- @POST("Recharge/TransactionCheckStatus")
- Call<TransactionStatus> getRechargeHistoryTransactionCheck(@Field("UserName") String userName, @Field("Password") String password, @Field("TranID") String TranID);
- @FormUrlEncoded
- @POST("RGUSER/GetUtilityBillPayValidate")
- Call<CheckUtilityBIll> validateUtilityBill(@Field("UserName") String userId, @Field("Password") String password, @Field("OperatorCode") String opcode, @Field("Number") String subScriberId,
- @Field("BillUnit") String billingUnit, @Field("CycleNo") String cycleNumber);
- @FormUrlEncoded
- @POST("UserLogin/GetUserbalance")
- Call<UserBalance> getUserBalance(@Field("UserName") String userName, @Field("Password") String password);
- @POST("UserLogin/PostForgotPin")
- Call<ResponseFromWebService> forgetPassword(@Query("MobileNumber") String username);
- @FormUrlEncoded
- @POST("Recharge/GetUtilityBillPay")
- Call<RechargeResponse> submitElectricityRequest(@Field("UserName") String userId,
- @Field("Password") String password,
- @Field("Amount") String amount,
- @Field("Number") String consumerId,
- @Field("OperatorCode") String opcode,
- @Field("CircleCode") String circleCode,
- @Field("Mode") String Mode,
- @Field("Param1") String CycleOrBillingUnit,
- @Field("Param2") String param2,
- @Field("Param3") String contactNumber,
- @Field("Param4") String param4,
- @Field("Param5") String Param5,
- @Field("Param6") String Param6);
- @POST("UserLogin/GetUserActivation")
- Call<ResponseFromWebService> activationCode(@Query("MobileNumber") String activationCode);
- @POST("UserLogin/GetUserActivationConfirm")
- Call<ResponseFromWebService> getUserActivationConfirm(@Query("MobileNumber") String mobileNumber, @Query("OTP") String otp);
- @POST("UserLogin/GetUserSetPassword")
- Call<ResponseFromWebService> setNewPassWord(@Query("MobileNumber") String mobileNumber, @Query("Password") String password);
- @FormUrlEncoded
- @POST("RGUSER/GetDisputeRaised")
- Call<ResponseFromWebService> makeComplain(@Field("UserName") String userId,
- @Field("Password") String password, @Field("TransId") String id, @Field("Number") String number);
- @FormUrlEncoded
- @POST("ReportServices/GetDisputeTransaction")
- Call<DisputesHistory> getDisputeHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate);
- @FormUrlEncoded
- @POST("UserLogin/GetIsDomainCheck")
- Call<IsValidDomain> getDomainInfo(@Field("Mobile") String mobileNumber);
- @FormUrlEncoded
- @POST("ReportServices/GetCommissionTransaction")
- Call<CommissionReport> getDiscountHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate, @Field("Categoryid") String mainCategoryID, @Field("Subcategoryid") String subCategoryID);
- @FormUrlEncoded
- @POST("ReportServices/GetSurchargeTransaction")
- Call<SurchargeReport> getSurchargeHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate, @Field("Categoryid") String mainCategoryID, @Field("Subcategoryid") String subCategoryID);
- @FormUrlEncoded
- @POST("ReportServices/GetSummaryTransaction")
- Call<SuummaryTransaction> getSummaryReport(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate);
- @FormUrlEncoded
- @POST("UserLogin/GetChangePassword")
- Call<RechargeResponse> ChangePassword(@Field("UserName") String userName, @Field("Password") String oldPw, @Field("NewPassword") String newPw, @Field("OTP") String otp);
- @FormUrlEncoded
- @POST("UserLogin/GetChangeTPIN")
- Call<RechargeResponse> chnagetpin(@Field("UserName") String userName, @Field("Password") String oldPw, @Field("NewPassword") String newPw, @Field("OTP") String trim);
- @FormUrlEncoded
- @POST("UserLogin/Generateotp")
- Call<RechargeResponse> generateOTP(@Field("UserName") String userName, @Field("Password") String oldPw, @Field("Type") String newPw);
- @FormUrlEncoded
- @POST("UserLogin/GetUserProfileDetails")
- Call<UserProfile> getUserDetails(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("ReportServices/GetDashboardUsageChart")
- Call<DashboardUsageReport> getDashboardUsage(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("ReportServices/GetDashboardUsageDetails")
- Call<DashboardUsageDetails> getDashboardUsageDetailsData(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("ReportServices/GetCommissionMonthlyTransaction")
- Call<CommissionMonthlyReport> getMonthlyCommission(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("UserService/GetUserChildByName")
- Call<ViewUser> getUserByCatagory(@Field("UserName") String userName, @Field("Password") String password, @Field("UserType") String userSearchType);
- @FormUrlEncoded
- @POST("UserService/GetWallettowalletcr")
- Call<RechargeResponse> transferBalace(@Field("UserName") String userName, @Field("Password") String password, @Field("CrUserName") String name,
- @Field("Amount") String amount, @Field("Remarks") String remarks, @Field("Type") String transType, @Field("Credit") Boolean markAsCredit, @Field("TPIN") String tpin);
- @FormUrlEncoded
- @POST("UserService/GetUserChildByUserName")
- Call<ViewUser> getUserById(@Field("UserName") String userName, @Field("Password") String password, @Field("CurrentUserName") String searchUserName);
- @FormUrlEncoded
- @POST("BankServices/GetBankNameListBy")
- Call<BankDetails> getbankList(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("UserService/GetPaymentRequest")
- Call<RechargeResponse> paymentRequest(@Field("UserName") String userName, @Field("Password") String password,
- @Field("DepositbankId") String strBankCode,
- @Field("Amount") String amount, @Field("PaymentMode") String paymentTypeCode,
- @Field("RefNo") String refId, @Field("PaymentDate") String paymentDate,
- @Field("ChequeNo") String chequeNumber, @Field("ChequeDate") String chequeDate,
- @Field("Remarks") String remarks);
- @FormUrlEncoded
- @POST("ReportServices/GetChildPaymentRequestReport")
- Call<PendingPaymentReport> getChildPaymentReport(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate,
- @Field("ToDate") String toDate, @Field("Status") String status);
- @FormUrlEncoded
- @POST("UserService/GetUpdatePaymentRequest")
- Call<ResponseFromWebService> updatePendingPayment(@Field("UserName") String userName, @Field("Password") String password,
- @Field("Status") String acceptanceType, @Field("Remarks") String reason, @Field("Trxnid") String refNumber);
- @FormUrlEncoded
- @POST("ReportServices/GetPaymentRequestTransaction")
- Call<PendingPaymentReport> getpaymentRequestTransaction(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate,
- @Field("ToDate") String toDate, @Field("Status") String status);
- @FormUrlEncoded
- @POST("ReportServices/GetChildPaymentRequestTransaction")
- Call<PendingPaymentReport> getChildAcceptRejectHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate,
- @Field("ToDate") String toDate);
- @FormUrlEncoded
- @POST("RGUSER/GetUtilityBillPayValidate")
- Call<CheckJioBIll> getValidateJioBill(@Field("UserName") String userId, @Field("Password") String password, @Field("OperatorCode") String opcode, @Field("Number") String subScriberId,
- @Field("BillUnit") String billingUnit, @Field("CycleNo") String cycleNumber);
- @FormUrlEncoded
- @POST("ReportServices/GetPaymentsTransactions")
- Call<PaymentTransferReport> getPaymentTransfer(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate,
- @Field("ToDate") String toDate);
- @FormUrlEncoded
- @POST("ReportServices/GetPaymentTransaction")
- Call<PaymentTransferReport> getPaymentTransferReportCredit(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate,
- @Field("ToDate") String toDate);
- @FormUrlEncoded
- @POST("DigipaymentsServices/UPICOllectRequest")
- Call<RechargeResponse> upiPayment(@Field("UserName") String userName, @Field("Password") String password, @Field("UPIId") String upiID, @Field("Amount") String amount, @Field("Remarks") String remarks);
- @POST("UserLogin/PostUserVerification")
- Call<LoginCheck> PostUserVerification(@Query("UserName") String username, @Query("Password") String password, @Query("IEMINo") String imeI, @Query("OTP") String OTP);
- @POST("OperatorServices/Categories")
- Call<OldBBPSCategory> getBBPSCatagaryURL();
- @FormUrlEncoded
- @POST("OperatorServices/bbpsOperatorName")
- Call<OperatorListServer> getBBPSOperator(@Field("CategoryId") String id);
- @FormUrlEncoded
- @POST("Recharge/BBPSBillPay")
- Call<CheckUtilityBIll> payBBPSBill(@Field("UserName") String userName,
- @Field("Password") String password,
- @Field("Number")String subscriberID,
- @Field("Amount") String amount,
- @Field("Mode") String mMode,
- @Field("Param1") String param1,
- @Field("Param2") String params2,
- @Field("Param3") String param3,
- @Field("CustomerMobileNo") String customerMobile,
- @Field("OperatorCode") String mOurCode,
- @Field("CircleCode") String circleCode,
- @Field("Geocode") String geoCode);
- @FormUrlEncoded
- @POST("Manageuser/patternlist")
- Call<PatternList> getPatternList(@Field("UserName") String userName, @Field("Password") String password, @Field("PatternType") String PatternType);
- @FormUrlEncoded
- @POST("Manageuser/ServiceAuthList")
- Call<ServiceAuth> getServiceAuth(@Field("UserName") String userName, @Field("Password") String password);
- @Multipart
- @POST("Manageuser/Userregistration")
- Call<RechargeResponse> userRegistration(@Part("Inputdata") RequestBody addUser, @Part MultipartBody.Part mURIPanCard, @Part MultipartBody.Part mURIOUTletImage, @Part MultipartBody.Part mURIPOBImage, @Part MultipartBody.Part mURICancelledCheck);
- @FormUrlEncoded
- @POST("Manageuser/FOSCreation")
- Call<RechargeResponse> addFOS(@Field("InputString") String inputData);
- @POST("OperatorServices/GetCategoryName")
- Call<CategoryHistory> getCategory();
- @FormUrlEncoded
- @POST("OperatorServices/GetServiceName")
- Call<SubCategoryHistory> getSubCategory(@Field("CategoryId") String id);
- @FormUrlEncoded
- @POST("ReportServices/Getstatementreport")
- Call<StatementReport> getStatmentHistory(@Field("UserName") String userName, @Field("Password") String password, @Field("FromDate") String fromDate, @Field("ToDate") String toDate, @Field("Childusername") String Childusername);
- //GiftCard Services
- @FormUrlEncoded
- @POST("GiftcardCServices/GetGiftCategoryList")
- Call<GetGiftCategoryList> giftcard(@Field("UserName") String userId, @Field("Password") String password);
- @FormUrlEncoded
- @POST("GiftcardCServices/GetGiftProductList")
- Call<GiftCardProduct> giftProduct(@Field("UserName") String userId, @Field("Password") String password, @Field("category") String category);
- @FormUrlEncoded
- @POST("GiftcardCServices/GetProductAndBrand")
- Call<ProductDetails> giftProductDetails(@Field("UserName") String userId, @Field("Password") String password, @Field("Productid") String prod_id);
- @FormUrlEncoded
- @POST("GiftcardCServices/GetPlaceorder")
- Call<GetPlaceOrder> productPurchaseOrder(@Field("UserName") String userId, @Field("Password") String password, @Field("Productid") String productid, @Field("Price") String price, @Field("Quantity") String quantity, @Field("Amount") String amount, @Field("Sfname") String sfname, @Field("Slname") String slname, @Field("Semailid") String semailid, @Field("Snumber") String snumber, @Field("Rfname") String rfname, @Field("Rlname") String rlname, @Field("Remailid") String remailid, @Field("Rnumber") String rnumber,
- @Field("RechargeMode") String rechargeMode);
- @FormUrlEncoded
- @POST("Recharge/bbpsbillpay")
- Call<CheckUtilityBIll> payBBPSBillURL(@Field("UserName") String userid,
- @Field("Password") String password,
- @Field("Number") String subscriberID,
- @Field("Amount") String amount,
- @Field("Mode") String mMode,
- @Field("Param1") String param1,
- @Field("Param2") String params2,
- @Field("PaymentMode") String param3,
- @Field("CustomerMobileNo") String customerMobile,
- @Field("OperatorCode") String mCode,
- @Field("CircleCode") String s,
- @Field("Geocode") String geoCode,
- @Field("Billername") String billerName,
- @Field("Billerno") String billerNo,
- @Field("Billdate") String billDate,
- @Field("Billduedate") String BilldueDate,
- @Field("Partialbill") String partialBill);
- @FormUrlEncoded
- @POST("RGUSER/GetUtilityBillPayValidate")
- Call<com.webplat.merchant.cyberplate.pojo.utility_bbps.BBPSCheckUtilityBIll> BBPS_validateUtilityBill(
- @Field("UserName") String userid,
- @Field("Password") String password,
- @Field("OperatorCode") String opcode,
- @Field("Number") String subScriberId,
- @Field("BillUnit") String billingUnit,
- @Field("CycleNo") String cycleNumber);
- @POST("OperatorServices/GetBillerparams")
- Call<BBPSBilling> getBBPSUnit(@Query("billerid") int ourcode);
- @POST("OperatorServices/SubCategories")
- Call<BBPSSubcategory> getBBPSServiceURL(@Query("category") Integer CategoryId);
- @FormUrlEncoded
- @POST("Dth/GetRegion")
- Call<RegionResponse> getReligons(@Field("UserName") String userName, @Field("Password") String password);
- @FormUrlEncoded
- @POST("Dth/GetproductList")
- Call<RegionResponse> getReligonsOperator(@Field("UserName") String userName, @Field("Password") String password,@Field("RegionId") String RegionId);
- @FormUrlEncoded
- @POST("Dth/GetproductDetails")
- Call<ProductDetailsResponse> getProductDetails(@Field("UserName") String userName, @Field("Password") String password, @Field("ProductId") String ProductId);
- }