UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

100 lines (81 loc) 3.96 kB
/** * CyberSource Merged Spec * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html * * OpenAPI spec version: 0.0.1 * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * * Swagger Codegen version: 2.4.38 * * Do not edit the class manually. * */ (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['ApiClient'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.PtsV2PaymentsPost201ResponseRiskInformationScore = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseRiskInformationScore model module. * @module model/PtsV2PaymentsPost201ResponseRiskInformationScore * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseRiskInformationScore</code>. * @alias module:model/PtsV2PaymentsPost201ResponseRiskInformationScore * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseRiskInformationScore</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/PtsV2PaymentsPost201ResponseRiskInformationScore} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseRiskInformationScore} The populated <code>PtsV2PaymentsPost201ResponseRiskInformationScore</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('factorCodes')) { obj['factorCodes'] = ApiClient.convertToType(data['factorCodes'], ['String']); } if (data.hasOwnProperty('modelUsed')) { obj['modelUsed'] = ApiClient.convertToType(data['modelUsed'], 'String'); } if (data.hasOwnProperty('result')) { obj['result'] = ApiClient.convertToType(data['result'], 'String'); } } return obj; } /** * @member {Array.<String>} factorCodes */ exports.prototype['factorCodes'] = undefined; /** * Name of the score model used for the transaction. If you did not include a custom model in your request, this field contains the name of CyberSource's default model. For all possible values, see the `score_model_used` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link). * @member {String} modelUsed */ exports.prototype['modelUsed'] = undefined; /** * Total score calculated for this order. The value cannot be negative. For all possible values, see the `score_score_result` field description in the _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link). * @member {String} result */ exports.prototype['result'] = undefined; return exports; }));