UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

130 lines (110 loc) 5.42 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', 'model/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Acpv1instructionsinstructionIdcredentialsMerchantInformation = factory(root.CyberSource.ApiClient, root.CyberSource.Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor); } }(this, function(ApiClient, Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor) { 'use strict'; /** * The Acpv1instructionsinstructionIdcredentialsMerchantInformation model module. * @module model/Acpv1instructionsinstructionIdcredentialsMerchantInformation * @version 0.0.1 */ /** * Constructs a new <code>Acpv1instructionsinstructionIdcredentialsMerchantInformation</code>. * Merchant Information data. * @alias module:model/Acpv1instructionsinstructionIdcredentialsMerchantInformation * @class * @param merchantName {String} Merchant name. Required for the Network's system to facilitate authentication. * @param merchantDescriptor {module:model/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor} */ var exports = function(merchantName, merchantDescriptor) { var _this = this; _this['merchantName'] = merchantName; _this['merchantDescriptor'] = merchantDescriptor; }; /** * Constructs a <code>Acpv1instructionsinstructionIdcredentialsMerchantInformation</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/Acpv1instructionsinstructionIdcredentialsMerchantInformation} obj Optional instance to populate. * @return {module:model/Acpv1instructionsinstructionIdcredentialsMerchantInformation} The populated <code>Acpv1instructionsinstructionIdcredentialsMerchantInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('merchantId')) { obj['merchantId'] = ApiClient.convertToType(data['merchantId'], 'String'); } if (data.hasOwnProperty('merchantName')) { obj['merchantName'] = ApiClient.convertToType(data['merchantName'], 'String'); } if (data.hasOwnProperty('categoryCode')) { obj['categoryCode'] = ApiClient.convertToType(data['categoryCode'], 'String'); } if (data.hasOwnProperty('merchantDescriptor')) { obj['merchantDescriptor'] = Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor.constructFromObject(data['merchantDescriptor']); } if (data.hasOwnProperty('domainName')) { obj['domainName'] = ApiClient.convertToType(data['domainName'], 'String'); } if (data.hasOwnProperty('language')) { obj['language'] = ApiClient.convertToType(data['language'], 'String'); } } return obj; } /** * (Conditional) Identifier of the DPA generated by VISA based on the previously provided during the Merchant Registration Process when known. * @member {String} merchantId */ exports.prototype['merchantId'] = undefined; /** * Merchant name. Required for the Network's system to facilitate authentication. * @member {String} merchantName */ exports.prototype['merchantName'] = undefined; /** * (Conditional) Code associated with Merchant Category. Describes the merchant's type of business, product or service. If it is checked, it has to be valid value. Ex, \"5311\" * @member {String} categoryCode */ exports.prototype['categoryCode'] = undefined; /** * @member {module:model/Acpv1instructionsinstructionIdcredentialsMerchantInformationMerchantDescriptor} merchantDescriptor */ exports.prototype['merchantDescriptor'] = undefined; /** * (Conditional) Merchant URL. * @member {String} domainName */ exports.prototype['domainName'] = undefined; /** * Merchant's preferred locale. For example:[\"en_US\",\"fr_CA\"] ISO language country pair. [ISO 639-1 Code] [ISO 3166-1 alpha-2 country code] * @member {String} language */ exports.prototype['language'] = undefined; return exports; }));