195 lines
6.0 KiB
JavaScript
195 lines
6.0 KiB
JavaScript
// const api_url = "https://mobileapid.unioil.com/api/mobile/";
|
|
// export const api_url = "https://mobileapi.unioilapps.com/api/mobile/";
|
|
// export const api_url = "https://unioilapi.lbteksystems.com/api/mobile/";
|
|
export const api_url = "https://stag-mobapi.unioilapps.com/api/mobile/"; // staging
|
|
// export const api_url = "https://mobilerest.unioilapps.com/api/mobile/"; // prod
|
|
// const api_url = "https://unioilapi.taxikel.com/api/mobile/"
|
|
|
|
const notifications = "https://stag-notifapi.unioilapps.com/api/notification/mobile/all"; //staging
|
|
const account_fcm = "https://stag-notifapi.unioilapps.com/api/fcmtoken/notifs"; //staging
|
|
const fcm_register = "https://stag-notifapi.unioilapps.com/api/fcmtoken"; //staging
|
|
|
|
// const notifications = "https://notification.unioilapps.com/api/notification/mobile/all"; //prod
|
|
// const account_fcm = "https://notification.unioilapps.com/api/fcmtoken/notifs"; //prod
|
|
// const fcm_register = "https://notification.unioilapps.com/api/fcmtoken"; //prod
|
|
// const notifications = "https://unioil-notif-api.herokuapp.com/api/notification/mobile/all";
|
|
// const account_fcm = "https://unioil-notif-api.herokuapp.com/api/fcmtoken/notifs";
|
|
// const fcm_register = "https://unioil-notif-api.herokuapp.com/api/fcmtoken";
|
|
// const fcm_regoster = "https://mhcuuigdea.execute-api.us-east-1.amazonaws.com/dev/api/fcmtoken";
|
|
|
|
// const post_pay = "https://partnerapi-lab.petrozone.com/v5/";
|
|
// const post_pay = "https://partnerapi-au-uat.petrozone.com/v5/";
|
|
const iqair_url = "http://api.airvisual.com/v2/";
|
|
const post_pay = "https://partnerapi-int.petrozone.com/v5/";
|
|
const card_validation = api_url + "loginCardNumber";
|
|
const card_validation_enroll = api_url + "loginCardNumberEnroll";
|
|
const login = api_url + "loginBirthdate";
|
|
const login_mobile = api_url + "loginMobileNumber";
|
|
const security_question = api_url + "securityQuestion";
|
|
const setup_mpin = api_url + "mpinUpdate";
|
|
const requestOTP = api_url + "requestOtp";
|
|
const sendOTP = api_url + "sendOTP";
|
|
const mobileOTP = api_url + "mobileOtp";
|
|
const registerAndValidate = api_url + "registerAndValidate";
|
|
const validateMobileOTP = api_url + "validateMobileOTP";
|
|
const submitRegistration = api_url + "submitRegistration";
|
|
const validateOTP = api_url + "validateOtp";
|
|
const terms_and_privacy = api_url + "termsAndPrivacy";
|
|
const contact_us = api_url + "contactus";
|
|
|
|
const user_profile = api_url + "userProfile";
|
|
const send_card_pin = api_url + "validatePin";
|
|
const activateCard = api_url + "activateCard";
|
|
const apply = api_url + "signUp";
|
|
const signup_id_number = api_url + "signUpIDNumber";
|
|
|
|
const get_card_prompt_info = api_url + "systemPreference/information_guide_details";
|
|
|
|
const gas_stations = api_url + "stationNearby";
|
|
const gas_stations_city = api_url + "stationViaCity";
|
|
const gas_station_details = api_url + "stationDetails";
|
|
const gas_station_fuel = api_url + "stationfuels";
|
|
|
|
const loyalty_cards = api_url + "getcardtype";
|
|
const products = api_url + "products";
|
|
const cities = api_url + "cityList";
|
|
const station_search = api_url + "stationSearch";
|
|
|
|
const whats_hot = api_url + "whatshot";
|
|
const new_promos = api_url + "getpromo";
|
|
const promo_gps = api_url + "promotionsGPS";
|
|
const promos = api_url + "promotions";
|
|
|
|
const update_profile_no_otp = api_url + "editProfile";
|
|
const update_profile_with_otp = api_url + "editProfileOTP";
|
|
|
|
const shared_treats = api_url + "sharedtreats";
|
|
const logout = api_url + "logout";
|
|
|
|
const station_favorites = api_url + "stationFavorites";
|
|
const station_add_favorite = api_url + "stationSetFavorite";
|
|
const station_delete_favorite = api_url + "stationDeleteFavorite";
|
|
|
|
const transactions = api_url + "transactions";
|
|
const transaction_rate = api_url + "rateTransaction";
|
|
const transaction_single = api_url + "singleTransaction";
|
|
|
|
const topup_paypal = api_url + "paypalURL";
|
|
const topup = api_url + "paymaya_execute";
|
|
const topup_paypal_execute = api_url + "transactionStatus";
|
|
const topup_transaction_entry = api_url + "transactionEntry";
|
|
|
|
// const fuel_types = api_url + "fuelList";
|
|
const fuel_types = api_url + "fuels";
|
|
|
|
const validate_mobile = api_url + "checkMobile";
|
|
const paymaya_tokens = api_url + "paymayatokens";
|
|
|
|
const getAppVersion = api_url + "getVersion/ios";
|
|
|
|
//IQAIR API
|
|
const iqair_api_key = "66e6fd6b-65bb-446f-bcea-b1d85f803490";
|
|
const getAirData = iqair_url + "nearest_city"
|
|
|
|
// P97 API
|
|
const post_pay_api_key = "BZ3SGKGaGPNb9PtIoALywvizQZC26qgSFx3Ac9zc3yNQKw79CI5mabma3eXcBzo5IfUKy84JgIj";
|
|
const getStores = post_pay + "stores";
|
|
const getStoreDetails = post_pay + "stores/details";
|
|
const payOutsideStore = post_pay + "pay/outside/store";
|
|
const getTransactionDetails = post_pay + "transactions";
|
|
const postClaim = post_pay + "postpay/claim";
|
|
const postpay = post_pay + "postpay";
|
|
const getWalletPublicKey = post_pay + "wallet/register/publickey";
|
|
const addCreditCard = post_pay + "wallet/register";
|
|
const deleteCreditCard = post_pay + "wallet/unregister";
|
|
const getFunding = post_pay + "wallet/funding";
|
|
|
|
export default {
|
|
|
|
server: api_url,
|
|
|
|
card_validation,
|
|
card_validation_enroll,
|
|
login,
|
|
login_mobile,
|
|
security_question,
|
|
setup_mpin,
|
|
requestOTP,
|
|
sendOTP,
|
|
terms_and_privacy,
|
|
contact_us,
|
|
|
|
user_profile,
|
|
send_card_pin,
|
|
activateCard,
|
|
apply,
|
|
signup_id_number,
|
|
|
|
get_card_prompt_info,
|
|
|
|
gas_stations,
|
|
gas_stations_city,
|
|
gas_station_details,
|
|
gas_station_fuel,
|
|
|
|
loyalty_cards,
|
|
products,
|
|
cities,
|
|
station_search,
|
|
|
|
whats_hot,
|
|
new_promos,
|
|
promo_gps,
|
|
promos,
|
|
|
|
update_profile_no_otp,
|
|
update_profile_with_otp,
|
|
|
|
shared_treats,
|
|
logout,
|
|
|
|
station_favorites,
|
|
station_add_favorite,
|
|
station_delete_favorite,
|
|
|
|
transactions,
|
|
transaction_rate,
|
|
transaction_single,
|
|
|
|
topup_paypal,
|
|
topup_paypal_execute,
|
|
topup_transaction_entry,
|
|
fuel_types,
|
|
topup,
|
|
|
|
validate_mobile,
|
|
|
|
notifications,
|
|
account_fcm,
|
|
fcm_register,
|
|
|
|
paymaya_tokens,
|
|
|
|
mobileOTP,
|
|
registerAndValidate,
|
|
validateMobileOTP,
|
|
submitRegistration,
|
|
validateOTP,
|
|
|
|
getAppVersion,
|
|
|
|
post_pay_api_key,
|
|
getStores,
|
|
getStoreDetails,
|
|
payOutsideStore,
|
|
getTransactionDetails,
|
|
postClaim,
|
|
postpay,
|
|
getFunding,
|
|
getWalletPublicKey,
|
|
addCreditCard,
|
|
deleteCreditCard,
|
|
|
|
iqair_api_key,
|
|
getAirData
|
|
} |