68 lines
2.0 KiB
JavaScript
68 lines
2.0 KiB
JavaScript
export const FINANCE_PERMISSIONS = {
|
|
auditWithdrawalApplications: "finance-withdrawal:audit",
|
|
configureCoinSellerRechargeExchangeRate: "coin-seller:exchange-rate",
|
|
createCoinSellerRechargeOrder: "finance-order:coin-seller-recharge:create",
|
|
grantCoinSellerRechargeOrder: "finance-order:coin-seller-recharge:grant",
|
|
verifyCoinSellerRechargeOrder: "finance-order:coin-seller-recharge:verify",
|
|
viewCoinSellerRechargeOrders: "finance-order:coin-seller-recharge:view",
|
|
viewAppRechargeDetails: "payment-bill:view",
|
|
viewWithdrawalApplications: "finance-withdrawal:view",
|
|
};
|
|
|
|
export const WITHDRAWAL_STATUS = [
|
|
["pending", "待审核"],
|
|
["approved", "已通过"],
|
|
["rejected", "已拒绝"],
|
|
];
|
|
|
|
export const COIN_SELLER_RECHARGE_PROVIDERS = [
|
|
["mifapay", "MiFaPay"],
|
|
["v5pay", "V5Pay"],
|
|
["usdt", "USDT"],
|
|
];
|
|
|
|
export const COIN_SELLER_RECHARGE_CHAINS = [
|
|
["TRON", "TRON"],
|
|
["BSC", "BSC"],
|
|
];
|
|
|
|
export const COIN_SELLER_RECHARGE_PROVIDER_CURRENCIES = {
|
|
mifapay: ["PHP", "INR", "IDR", "VND", "SAR", "AED", "BHD", "QAR", "OMR", "KWD", "BDT", "PKR", "EGP"],
|
|
v5pay: ["PHP", "SAR", "EGP", "AED", "IDR", "INR", "PKR", "TRY", "MXN"],
|
|
};
|
|
|
|
export const COIN_SELLER_RECHARGE_STATUS = [
|
|
["pending", "待处理"],
|
|
["verified", "已校验"],
|
|
["granted", "已发放"],
|
|
["failed", "失败"],
|
|
["canceled", "已取消"],
|
|
];
|
|
|
|
export const COIN_SELLER_RECHARGE_VERIFY_STATUS = [
|
|
["pending", "待校验"],
|
|
["verified", "校验通过"],
|
|
["failed", "校验失败"],
|
|
];
|
|
|
|
export const COIN_SELLER_RECHARGE_GRANT_STATUS = [
|
|
["pending", "待发放"],
|
|
["granted", "已发放"],
|
|
["failed", "发放失败"],
|
|
];
|
|
|
|
export const DEFAULT_COIN_SELLER_RECHARGE_ORDER_FORM = {
|
|
appCode: "",
|
|
chain: "",
|
|
coinAmount: "",
|
|
externalOrderNo: "",
|
|
isMakeup: false,
|
|
orderDateMs: "",
|
|
providerAmount: "",
|
|
providerCode: "mifapay",
|
|
providerCurrencyCode: "",
|
|
remark: "",
|
|
targetUserId: "",
|
|
usdAmount: "",
|
|
};
|