195 lines
5.1 KiB
JavaScript
195 lines
5.1 KiB
JavaScript
import Environment from '../environment';
|
|
|
|
export const api_url = Environment.API_URL;
|
|
const notifications = Environment.NOTIFICATIONS_URL;
|
|
const account_fcm = Environment.ACCOUNT_FCM_URL;
|
|
const fcm_register = Environment.FCM_REGISTER_URL;
|
|
// const post_pay = Environment.POST_PAY_URL;
|
|
const post_pay = api_url + "p97/";
|
|
const iqair_url = Environment.IQAIR_URL;
|
|
|
|
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 station_search_name = api_url + "stationSearchName";
|
|
|
|
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 tracker = api_url + "fueltracker";
|
|
|
|
const fuel_types = api_url + "fueltype";
|
|
|
|
const validate_mobile = api_url + "checkMobile";
|
|
const paymaya_tokens = api_url + "paymayatokens";
|
|
|
|
const getIOSAppVersion = api_url + "getVersion/ios";
|
|
const getAndroidAppVersion = api_url + "getVersion/android";
|
|
const getPercentageRadius = api_url + "percentageRadius";
|
|
|
|
const verifyAmount = api_url + "getTopUpLimit";
|
|
const payTopUp = api_url + "paymaya_pay";
|
|
|
|
//IQAIR API
|
|
const getAirData = iqair_url + "nearest_city"
|
|
|
|
// P97 API
|
|
const getStores = post_pay + "stores";
|
|
const getStoreDetails = post_pay + "stores";
|
|
const getTransactionDetails = post_pay + "transactions";
|
|
const getTransactionStatusDetails = post_pay + "transactions/statuspoll";
|
|
const postClaim = post_pay + "postpay/claim";
|
|
const postpay = post_pay + "postpay";
|
|
const getWalletPublicKey = post_pay + "wallet/publickey";
|
|
const addCreditCard = post_pay + "wallet/register";
|
|
const deleteCreditCard = post_pay + "wallet/unregister";
|
|
const getFunding = post_pay + "wallet";
|
|
const postPayDefaultCard = post_pay + "wallet/preferences";
|
|
|
|
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,
|
|
station_search_name,
|
|
|
|
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,
|
|
|
|
tracker,
|
|
|
|
validate_mobile,
|
|
|
|
notifications,
|
|
account_fcm,
|
|
fcm_register,
|
|
|
|
paymaya_tokens,
|
|
|
|
mobileOTP,
|
|
registerAndValidate,
|
|
validateMobileOTP,
|
|
submitRegistration,
|
|
validateOTP,
|
|
|
|
getIOSAppVersion,
|
|
getAndroidAppVersion,
|
|
getPercentageRadius,
|
|
|
|
getStores,
|
|
getStoreDetails,
|
|
getTransactionDetails,
|
|
getTransactionStatusDetails,
|
|
postClaim,
|
|
postpay,
|
|
getFunding,
|
|
getWalletPublicKey,
|
|
addCreditCard,
|
|
deleteCreditCard,
|
|
postPayDefaultCard,
|
|
|
|
getAirData,
|
|
|
|
verifyAmount,
|
|
payTopUp
|
|
} |