UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

152 lines (127 loc) 4.71 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.Upv1capturecontextsDataRecipientInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Upv1capturecontextsDataRecipientInformation model module. * @module model/Upv1capturecontextsDataRecipientInformation * @version 0.0.1 */ /** * Constructs a new <code>Upv1capturecontextsDataRecipientInformation</code>. * @alias module:model/Upv1capturecontextsDataRecipientInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Upv1capturecontextsDataRecipientInformation</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/Upv1capturecontextsDataRecipientInformation} obj Optional instance to populate. * @return {module:model/Upv1capturecontextsDataRecipientInformation} The populated <code>Upv1capturecontextsDataRecipientInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('firstName')) { obj['firstName'] = ApiClient.convertToType(data['firstName'], 'String'); } if (data.hasOwnProperty('middleName')) { obj['middleName'] = ApiClient.convertToType(data['middleName'], 'String'); } if (data.hasOwnProperty('lastName')) { obj['lastName'] = ApiClient.convertToType(data['lastName'], 'String'); } if (data.hasOwnProperty('country')) { obj['country'] = ApiClient.convertToType(data['country'], 'String'); } if (data.hasOwnProperty('accountId')) { obj['accountId'] = ApiClient.convertToType(data['accountId'], 'String'); } if (data.hasOwnProperty('administrativeArea')) { obj['administrativeArea'] = ApiClient.convertToType(data['administrativeArea'], 'String'); } if (data.hasOwnProperty('accountType')) { obj['accountType'] = ApiClient.convertToType(data['accountType'], 'String'); } if (data.hasOwnProperty('dateOfBirth')) { obj['dateOfBirth'] = ApiClient.convertToType(data['dateOfBirth'], 'String'); } if (data.hasOwnProperty('postalCode')) { obj['postalCode'] = ApiClient.convertToType(data['postalCode'], 'String'); } } return obj; } /** * @member {String} firstName */ exports.prototype['firstName'] = undefined; /** * @member {String} middleName */ exports.prototype['middleName'] = undefined; /** * @member {String} lastName */ exports.prototype['lastName'] = undefined; /** * The country code of the recipient's country * @member {String} country */ exports.prototype['country'] = undefined; /** * The account ID of the recipient * @member {String} accountId */ exports.prototype['accountId'] = undefined; /** * The administrative area of the recipient * @member {String} administrativeArea */ exports.prototype['administrativeArea'] = undefined; /** * The account type of the recipient * @member {String} accountType */ exports.prototype['accountType'] = undefined; /** * The date of birth of the recipient * @member {String} dateOfBirth */ exports.prototype['dateOfBirth'] = undefined; /** * The postal code of the recipient * @member {String} postalCode */ exports.prototype['postalCode'] = undefined; return exports; }));