[R10 Payment] QOS - BizCenter DRM Query Order
Normal Scenario
Create order pay_success, push to drm, aggregator narindo
NM_XXX_001
PREPARE_USER
productOrderBiller
productOrderRewrite
bizType
TELCO
productCode
PULSA_PREPAID
goodsId
axis_102
param
082225431220
productOrderCheck
result.success
'true'
cashierMain
cashierMainRequest
externalInfo
$externalInfo
cashierMainCheck
result.success
'true'
cashierPay
cashierPayRequest
cashierOrderId
$cashierMainContext.result.cashierOrderId
channelIndex
BALANCE
payMethod
BALANCE
method
cashierPay
validateData
null
verificationMethod
null
cashierPayCheck
result.success
'true'
payQuery
cashierPayQueryRequest
method
payQuery
cashierOrderId
$cashierPayContext.result.cashierOrderId
cashierPayQueryCheck
result.attributes.processingStatus
_in[success]
productQuery
productQueryRequest
orderId
"$orderId"
acquirementId
"$acquirementId"
orderCreateType
"BIZ_CENTER_ORDER"
productQueryCheck
result.success
true
result.orderDetail
orderStatus
PAY_SUCCESS
"UPDATE_DRM"
DRMRequest
appName
bizcenter
resourceDomain
Alipay.bizcenter
resourceId
id.dana.bizcenter.biz.drm.QueryOrderDRMHandler
attributeName
orderIds
value
valid-executor-email@dana.id-$orderId
LOG_CHECK
logCheckRequest
check if trigger retry task
keyword
BIZ_ORDER_QUERY_DYNAMIC_RETRY
bizcenter
use orderId
check sgw if success trigger order query
sgw bizcenter
use rpcId from retry task
DB_CHECK
bzs_retry_task
bizId = orderId
bizType
BIZ_ORDER_QUERY_DYNAMIC_RETRY
productQueryAfterDRM
productQueryRequest
orderId
"$orderId"
acquirementId
"$acquirementId"
orderCreateType
"BIZ_CENTER_ORDER"
productQueryCheck
result.success
true
result.orderDetail
orderStatus
in [BIZ_SUCCESS, BIZ_FAIL, PAY_SUCCESS]
Create order PAY_SUCCESS, push to drm, electricity
NM_XXX_002
Create order with TELCO and Electricity PAY_SUCCESS, push to DRM
NM_XXX_003
Edge Cases
Push to DRM when switch N
expect failed, order not updated
Push to DRM when switch GREY, aggregator in whitelisted (Specific whitelisted)
Push to DRM, aggregator in whitelisted (TELCO-all)
expect success
Push to DRM when switch GREY, aggregator not in whitelisted
expect failed
orderStatus is INIT
expect failed, order not updated
order status is BIZ_SUCCESS
expect failed, order not updated
order status is BIZ_FAIL
expect failed, order not updated
invalid executor name
expect failed, order not updated
Push DRM 2 times, with same orderIds
expect success on 1st, failed on 2nd
change max execute, check in bzs
retryTask Payment to T, hit DRM
expect failed, order not update
Note
if FINAL, check retryTask in bzs
check manual
dont change the mock, make sure still pending after maximum execute
check manual