UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

109 lines (89 loc) 5.24 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/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS-like environments that support module.exports, like Node. module.exports = factory(require('../ApiClient'), require('./Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction')); } else { // Browser globals (root is window) if (!root.CyberSource) { root.CyberSource = {}; } root.CyberSource.Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator = factory(root.CyberSource.ApiClient, root.CyberSource.Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction); } }(this, function(ApiClient, Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction) { 'use strict'; /** * The Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator model module. * @module model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator * @version 0.0.1 */ /** * Constructs a new <code>Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator</code>. * @alias module:model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator</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/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator} obj Optional instance to populate. * @return {module:model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator} The populated <code>Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiator</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('originatorInitiatedTransaction')) { obj['originatorInitiatedTransaction'] = Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction.constructFromObject(data['originatorInitiatedTransaction']); } if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('storedCredentialUsed')) { obj['storedCredentialUsed'] = ApiClient.convertToType(data['storedCredentialUsed'], 'Boolean'); } if (data.hasOwnProperty('credentialStoredOnFile')) { obj['credentialStoredOnFile'] = ApiClient.convertToType(data['credentialStoredOnFile'], 'Boolean'); } } return obj; } /** * @member {module:model/Ptsv1pullfundstransferProcessingInformationFundingOptionsInitiatorOriginatorInitiatedTransaction} originatorInitiatedTransaction */ exports.prototype['originatorInitiatedTransaction'] = undefined; /** * This field indicates whether the transaction is a originator-initiated transaction or sender-initiated transaction. Valid values: - `sender` - `originator` Conditional field. If value in this field is `originator`, this field is mandatory for originator-initated transactions. * @member {String} type */ exports.prototype['type'] = undefined; /** * Indicates to an issuing bank whether an originator-initiated transaction came from a card that was already stored on file. Possible values: - `True` = originator-initiated transaction came from a card that was already stored on file - `False` = originator-initiated transaction came from a card that was not stored on file Conditional for MITCOF transactions * @member {Boolean} storedCredentialUsed */ exports.prototype['storedCredentialUsed'] = undefined; /** * Flag that indicates whether the transaction is the first originator-initiated transaction in a series, which means that the customer initiated the previous transaction. Possible values: - `True`: First originator-initiated transaction - `False`: Not the first originator-initiated transaction Conditional for MITCOF transactions * @member {Boolean} credentialStoredOnFile */ exports.prototype['credentialStoredOnFile'] = undefined; return exports; }));