UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

92 lines (74 loc) 3.44 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.Ptsv2creditsSenderInformationAccount = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Ptsv2creditsSenderInformationAccount model module. * @module model/Ptsv2creditsSenderInformationAccount * @version 0.0.1 */ /** * Constructs a new <code>Ptsv2creditsSenderInformationAccount</code>. * @alias module:model/Ptsv2creditsSenderInformationAccount * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv2creditsSenderInformationAccount</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/Ptsv2creditsSenderInformationAccount} obj Optional instance to populate. * @return {module:model/Ptsv2creditsSenderInformationAccount} The populated <code>Ptsv2creditsSenderInformationAccount</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'String'); } if (data.hasOwnProperty('fundsSource')) { obj['fundsSource'] = ApiClient.convertToType(data['fundsSource'], 'String'); } } return obj; } /** * Account number of the sender of the funds. For Gaming Payment of Winnings transactions this is the merchant account number. * Required for Mastercard Payment of Winnings (POW) transactions. * Must contain only ASCII characters in range 32-122. * Must not be greater than 50 characters. * Required for POW on Barclays. * @member {String} number */ exports.prototype['number'] = undefined; /** * Source of funds for the sender. For Gaming Payment of Winnings transactions this is the merchant account type. * Required for Mastercard Payment of Winnings (POW) transactions. * Valid values: * 00 - Other * 01 - RTN + Bank Account * 02 - IBAN * 03 - Card Account * 04 - Email * 05 - PhoneNumber * 06 - Bank account number (BAN) + Bank Identification Code (BIC) * 07 - Wallet ID * 08 - Social Network ID * @member {String} fundsSource */ exports.prototype['fundsSource'] = undefined; return exports; }));