UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

93 lines (75 loc) 3.86 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.Tmsv2TokenizedCardVerificationResults = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Tmsv2TokenizedCardVerificationResults model module. * @module model/Tmsv2TokenizedCardVerificationResults * @version 0.0.1 */ /** * Constructs a new <code>Tmsv2TokenizedCardVerificationResults</code>. * Verification results returned by the issuer during the provisioning when Security Code or Billing Address data is provided on the request. Supported only for VTS tokens. * @alias module:model/Tmsv2TokenizedCardVerificationResults * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Tmsv2TokenizedCardVerificationResults</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/Tmsv2TokenizedCardVerificationResults} obj Optional instance to populate. * @return {module:model/Tmsv2TokenizedCardVerificationResults} The populated <code>Tmsv2TokenizedCardVerificationResults</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('securityCode')) { obj['securityCode'] = ApiClient.convertToType(data['securityCode'], 'String'); } if (data.hasOwnProperty('address')) { obj['address'] = ApiClient.convertToType(data['address'], 'String'); } } return obj; } /** * Indicates whether the security code (CVV/CVC) was verified by the issuer during the provisioning request. Supported only for VTS tokens. Possible Values: - MATCH: Verified, CVV2 data matched. - NO_MATCH: Verified, CVV2 data did not match. - NOT_SUPPORTED: Verification not supported by card issuer. - SKIPPED: Verification was not performed. * @member {String} securityCode */ exports.prototype['securityCode'] = undefined; /** * Indicates whether the billing address was verified by the issuer during the provisioning request. Supported only for VTS tokens. Possible Values: - MATCH: Verified, address and postal code data matched. - PARTIAL_MATCH: Verified, either address data matched or postal code data matched. - PARTIAL_MATCH_FORMAT_UNSUPPORTED: Verified, either address data matched or postal code data matched, but the other could not be verified due to format issues. - NO_MATCH: Verified, address and postal code data did not match. - NOT_SUPPORTED: Verification not supported by card issuer. - SKIPPED: Verification was not performed. * @member {String} address */ exports.prototype['address'] = undefined; return exports; }));