@bebapps/rapyd-sdk
Version:
An un-official [Rapyd](https://rapyd.net) SDK for Node.js.
39 lines (38 loc) • 1.28 kB
text/typescript
export interface Outcome {
/**
* Network status of the payment. One of the following:
* * **approved_by_network**
* * **declined_by_network**
* * **not_sent_to_network**
* * **reversed_after_approval**
*/
network_status: 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
/**
* Assessment of the risk level of the payment. One of the following:
* * **normal**
* * **elevated**
* * **highest**
* * **not_assessed**
*/
risk_level: 'normal' | 'elevated' | 'highest' | 'not_assessed';
/**
* Message to the merchant.
*/
seller_message: string;
/**
* Indicates the outcome of the risk assessment. One of the following:
* * **authorized**
* * **manual_review**
* * **issuer_declined**
* * **blocked**
* * **invalid**
*/
type: 'authorized' | 'manual_review' | 'issuer_declined' | 'blocked' | 'invalid';
/**
* More detailed indication of the reason indicated by `type`. One of the following:
* * **highest_risk_level** - Blocked by default rules.
* * **elevated_risk_level** - Placed in review by default rules.
* * **rule** - Placed in review by customer-designed rules.
*/
reason: 'highest_risk_level' | 'elevated_risk_level' | 'rule';
};