UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

101 lines (82 loc) 5.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.PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor model module. * @module model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor</code>. * @alias module:model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor</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/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor} obj Optional instance to populate. * @return {module:model/PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor} The populated <code>PtsV2PayoutsPost201ResponseMerchantInformationMerchantDescriptor</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('locality')) { obj['locality'] = ApiClient.convertToType(data['locality'], 'String'); } if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } } return obj; } /** * Your merchant name. **Note** For Paymentech processor using Cybersource Payouts, the maximum data length is 22. #### PIN debit Your business name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. Optional field for PIN debit credit or PIN debit purchase requests. #### Airline processing Your merchant name. This name is displayed on the cardholder's statement. When you include more than one consecutive space, extra spaces are removed. **Note** Some airline fee programs may require the original ticket number (ticket identifier) or the ancillary service description in positions 13 through 23 of this field. **Important** This value must consist of English characters. Required for captures and credits. * @member {String} name */ exports.prototype['name'] = undefined; /** * Merchant's City. #### PIN debit City for your business location. This value might be displayed on the cardholder's statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. Optional field for PIN debit credit or PIN debit purchase requests. * @member {String} locality */ exports.prototype['locality'] = undefined; /** * Merchant's country. #### PIN debit Country code for your business location. Use the [ISO Standard Country Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/countries_alpha_list.pdf) This value might be displayed on the cardholder's statement. When you do not include this value in your PIN debit request, the merchant name from your account is used. **Important** This value must consist of English characters. **Note** If your business is located in the U.S. or Canada and you include this field in a request, you must also include `merchantInformation.merchantDescriptor.administrativeArea`. Optional field for PIN debit credit or PIN debit purchase. * @member {String} country */ exports.prototype['country'] = undefined; return exports; }));