You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2024. It is now read-only.
queueMockResponse(JSON.stringify({"risk": {"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
34
+
queueMockResponse(JSON.stringify({"risk": {"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": 1.0,"source": "External","cause_cancel": true,"display": true}}
52
+
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": "1.0","source": "External","cause_cancel": true,"display": true}}
53
53
}).toMatchMadeHttpRequest();
54
54
});
55
55
56
56
it('test_2',async()=>{
57
-
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
57
+
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": 0.0}}
112
+
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": "0.0"}}
queueMockResponse(JSON.stringify({"risk": {"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
34
+
queueMockResponse(JSON.stringify({"risk": {"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": 1.0,"source": "External","cause_cancel": true,"display": true}}
52
+
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": "1.0","source": "External","cause_cancel": true,"display": true}}
53
53
}).toMatchMadeHttpRequest();
54
54
});
55
55
56
56
it('test_2',async()=>{
57
-
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
57
+
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": 0.0}}
112
+
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": "0.0"}}
queueMockResponse(JSON.stringify({"risk": {"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
34
+
queueMockResponse(JSON.stringify({"risk": {"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": 1.0,"source": "External","cause_cancel": true,"display": true}}
52
+
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": "1.0","source": "External","cause_cancel": true,"display": true}}
53
53
}).toMatchMadeHttpRequest();
54
54
});
55
55
56
56
it('test_2',async()=>{
57
-
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
57
+
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": 0.0}}
112
+
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": "0.0"}}
queueMockResponse(JSON.stringify({"risk": {"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
34
+
queueMockResponse(JSON.stringify({"risk": {"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}}));
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": 1.0,"source": "External","cause_cancel": true,"display": true}}
52
+
data: {"risk": {"message": "This order came from an anonymous proxy","recommendation": "cancel","score": "1.0","source": "External","cause_cancel": true,"display": true}}
53
53
}).toMatchMadeHttpRequest();
54
54
});
55
55
56
56
it('test_2',async()=>{
57
-
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151490,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
57
+
queueMockResponse(JSON.stringify({"risks": [{"id": 284138680,"order_id": 450789469,"checkout_id": null,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order was placed from a proxy IP","merchant_message": "This order was placed from a proxy IP"},{"id": 1029151489,"order_id": 450789469,"checkout_id": 901414060,"source": "External","score": "1.0","recommendation": "cancel","display": true,"cause_cancel": true,"message": "This order came from an anonymous proxy","merchant_message": "This order came from an anonymous proxy"}]}));
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": 0.0}}
112
+
data: {"risk": {"message": "After further review, this is a legitimate order","recommendation": "accept","source": "External","cause_cancel": false,"score": "0.0"}}
0 commit comments