UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

138 lines (115 loc) 7.17 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.PtsV2PaymentsPost201ResponseRiskInformationIpAddress = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsPost201ResponseRiskInformationIpAddress model module. * @module model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsPost201ResponseRiskInformationIpAddress</code>. * Contains detailed response information about the customer's IP address. * @alias module:model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsPost201ResponseRiskInformationIpAddress</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/PtsV2PaymentsPost201ResponseRiskInformationIpAddress} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsPost201ResponseRiskInformationIpAddress} The populated <code>PtsV2PaymentsPost201ResponseRiskInformationIpAddress</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('anonymizerStatus')) { obj['anonymizerStatus'] = ApiClient.convertToType(data['anonymizerStatus'], 'String'); } if (data.hasOwnProperty('locality')) { obj['locality'] = ApiClient.convertToType(data['locality'], 'String'); } if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } if (data.hasOwnProperty('administrativeArea')) { obj['administrativeArea'] = ApiClient.convertToType(data['administrativeArea'], 'String'); } if (data.hasOwnProperty('routingMethod')) { obj['routingMethod'] = ApiClient.convertToType(data['routingMethod'], 'String'); } if (data.hasOwnProperty('carrier')) { obj['carrier'] = ApiClient.convertToType(data['carrier'], 'String'); } if (data.hasOwnProperty('organization')) { obj['organization'] = ApiClient.convertToType(data['organization'], 'String'); } } return obj; } /** * Indicates whether the transaction IP address is associated with a known anonymous proxy. For all possible values, see the `score_ip_anonymizer_status` 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} anonymizerStatus */ exports.prototype['anonymizerStatus'] = undefined; /** * Name of the city decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_city` 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} locality */ exports.prototype['locality'] = undefined; /** * Name of the country decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_country` 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} country */ exports.prototype['country'] = undefined; /** * Name of the state decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_state` 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} administrativeArea */ exports.prototype['administrativeArea'] = undefined; /** * Routing method decoded from the IP address used directly or indirectly by the customer to send the order. For all possible values, see the `score_ip_routing_method` 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} routingMethod */ exports.prototype['routingMethod'] = undefined; /** * Provides the name of the organization that owns the ASN. The carrier is responsible for the traffic carried on the network or set of networks designated as an Autonomous System (AS) and identified by the ASN. While there are more than 27,000 active ASNs, there are fewer carriers, because a single carrier often manages several ASNs. * @member {String} carrier */ exports.prototype['carrier'] = undefined; /** * The Registering Organization is the entity responsible for the actions and content associated with a given block of IP addresses. This is in contrast to the carrier, which is responsible for the routing of traffic for network blocks. Registering Organizations include many types of entities, including corporate, government, or educational entities, and ISPs managing the allocation and use of network blocks. * @member {String} organization */ exports.prototype['organization'] = undefined; return exports; }));