zungtaz156

Untitled

Apr 19th, 2021
601
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. val createTransTypeTPEOffline = udf((transtype: Long, appid: Long, ordersouce: Long, embeddata: String) => {
  2.     if (transtype == 18 & embeddata.contains("ACCEPTED"))
  3.       "Zalo Receiving Transaction"
  4.     else if (transtype == 18 & embeddata.contains("REJECTED"))
  5.       "Zalo Reject Transaction"
  6.     else if (transtype == 19)
  7.       "Zalo Refund Transaction"
  8.     else if (appid == 45)
  9.       "Credit Card Billing Transaction"
  10.     else if (appid == 241)
  11.       "IBFT - Inter Bank Fund Transfer"
  12.     else if (appid == 454)
  13.       "Fill-in Transaction"
  14.     else if (appid == 452)
  15.       "Withdraw Transaction"
  16.     else if (appid == 10000) {
  17.       if (embeddata.contains("\\\"type\\\":1"))
  18.         "Redpacket Sending Transaction"
  19.       else
  20.         "Zalo Sending Transaction"
  21.     } else if (appid == 200)
  22.       "DirectDiscount"
  23.     else if (appid == 5)
  24.       "eVoucher"
  25.     else if (appid == 3)
  26.       "App Test"
  27.     else if (transtype == 1) {
  28.       if (!TpeConfig.appIDNotPaymentLong.contains(appid))
  29.         "Merchant Paying Transaction"
  30.       else if (appid == 6)
  31.         "Redpacket Sending Transaction"
  32.       else
  33.         ""
  34.     } else if (transtype == 4 || appid == 450) {
  35.       if (embeddata.contains("\\\"dataType\\\":\\\"BUY\\\"")) {
  36.         if (embeddata.contains("\\\"feature\\\":1"))
  37.           "Zalo Sending Transaction"
  38.         else
  39.           "Redpacket Sending Transaction"
  40.       } else if (embeddata.contains("\\\"dataType\\\":\\\"OPEN\\\"")) {
  41.         if (embeddata.contains("\\\"feature\\\":1"))
  42.           "Zalo Receiving Transaction"
  43.         else
  44.           "Redpacket Receiving Transaction"
  45.       } else if (embeddata.contains("\\\"dataType\\\":\\\"REFUND\\\"")) {
  46.         if (embeddata.contains("\\\"feature\\\":1"))
  47.           "Zalo Refund Transaction"
  48.         else
  49.           "Redpacket Refund Transaction"
  50.       } else if (ordersouce == 1)
  51.         "Inter-accounts Paying Transaction"
  52.       else
  53.         "Inter-accounts Transfer Transaction"
  54.     } else if (transtype == 5)
  55.       "Withdraw Transaction"
  56.     else if (transtype == 2 || transtype == 12)
  57.       "Fill-in Transaction"
  58.     else if (transtype == 11 & embeddata.contains("campaignID"))
  59.       "Promotional Cashback"
  60.     else if (transtype == 6)
  61.       "Redpacket Receiving Transaction"
  62.     else if (transtype == 7)
  63.       "Redpacket Refund Transaction"
  64.     else if (transtype == 11)
  65.       "Cashin Merchant"
  66.     else if (transtype == 8)
  67.       "Final Settlement"
  68.     else if (transtype == 15)
  69.       "ZaloPay GateWay"
  70.     else if (transtype == 17)
  71.       "FA Refund"
  72.     else if (transtype == 14)
  73.       "Payment Code"
  74.     else if (transtype == 10)
  75.       "Get Money Back"
  76.     else
  77.       ""
  78.   })
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×