cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
245 lines (210 loc) • 10.1 kB
JavaScript
/**
* 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.TmsBinLookupPaymentAccountInformationFeatures = factory(root.CyberSource.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The TmsBinLookupPaymentAccountInformationFeatures model module.
* @module model/TmsBinLookupPaymentAccountInformationFeatures
* @version 0.0.1
*/
/**
* Constructs a new <code>TmsBinLookupPaymentAccountInformationFeatures</code>.
* @alias module:model/TmsBinLookupPaymentAccountInformationFeatures
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>TmsBinLookupPaymentAccountInformationFeatures</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/TmsBinLookupPaymentAccountInformationFeatures} obj Optional instance to populate.
* @return {module:model/TmsBinLookupPaymentAccountInformationFeatures} The populated <code>TmsBinLookupPaymentAccountInformationFeatures</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('accountFundingSource')) {
obj['accountFundingSource'] = ApiClient.convertToType(data['accountFundingSource'], 'String');
}
if (data.hasOwnProperty('accountFundingSourceSubType')) {
obj['accountFundingSourceSubType'] = ApiClient.convertToType(data['accountFundingSourceSubType'], 'String');
}
if (data.hasOwnProperty('cardProduct')) {
obj['cardProduct'] = ApiClient.convertToType(data['cardProduct'], 'String');
}
if (data.hasOwnProperty('messageType')) {
obj['messageType'] = ApiClient.convertToType(data['messageType'], 'String');
}
if (data.hasOwnProperty('acceptanceLevel')) {
obj['acceptanceLevel'] = ApiClient.convertToType(data['acceptanceLevel'], 'String');
}
if (data.hasOwnProperty('cardPlatform')) {
obj['cardPlatform'] = ApiClient.convertToType(data['cardPlatform'], 'String');
}
if (data.hasOwnProperty('comboCard')) {
obj['comboCard'] = ApiClient.convertToType(data['comboCard'], 'String');
}
if (data.hasOwnProperty('corporatePurchase')) {
obj['corporatePurchase'] = ApiClient.convertToType(data['corporatePurchase'], 'Boolean');
}
if (data.hasOwnProperty('healthCard')) {
obj['healthCard'] = ApiClient.convertToType(data['healthCard'], 'Boolean');
}
if (data.hasOwnProperty('sharedBIN')) {
obj['sharedBIN'] = ApiClient.convertToType(data['sharedBIN'], 'Boolean');
}
if (data.hasOwnProperty('posDomesticOnly')) {
obj['posDomesticOnly'] = ApiClient.convertToType(data['posDomesticOnly'], 'Boolean');
}
if (data.hasOwnProperty('gamblingAllowed')) {
obj['gamblingAllowed'] = ApiClient.convertToType(data['gamblingAllowed'], 'Boolean');
}
if (data.hasOwnProperty('commercialCardLevel2')) {
obj['commercialCardLevel2'] = ApiClient.convertToType(data['commercialCardLevel2'], 'Boolean');
}
if (data.hasOwnProperty('commercialCardLevel3')) {
obj['commercialCardLevel3'] = ApiClient.convertToType(data['commercialCardLevel3'], 'Boolean');
}
if (data.hasOwnProperty('exemptBIN')) {
obj['exemptBIN'] = ApiClient.convertToType(data['exemptBIN'], 'Boolean');
}
if (data.hasOwnProperty('accountLevelManagement')) {
obj['accountLevelManagement'] = ApiClient.convertToType(data['accountLevelManagement'], 'Boolean');
}
if (data.hasOwnProperty('onlineGamblingBlock')) {
obj['onlineGamblingBlock'] = ApiClient.convertToType(data['onlineGamblingBlock'], 'Boolean');
}
if (data.hasOwnProperty('autoSubstantiation')) {
obj['autoSubstantiation'] = ApiClient.convertToType(data['autoSubstantiation'], 'Boolean');
}
if (data.hasOwnProperty('flexCredential')) {
obj['flexCredential'] = ApiClient.convertToType(data['flexCredential'], 'Boolean');
}
}
return obj;
}
/**
* This field contains the account funding source. Possible values: - `CREDIT` - `DEBIT` - `PREPAID` - `DEFERRED DEBIT` - `CHARGE`
* @member {String} accountFundingSource
*/
exports.prototype['accountFundingSource'] = undefined;
/**
* This field contains the type of prepaid card. Possible values: - `Reloadable` - `Non-reloadable`
* @member {String} accountFundingSourceSubType
*/
exports.prototype['accountFundingSourceSubType'] = undefined;
/**
* This field contains the type of issuer product. Example values: - Visa Classic - Visa Signature - Visa Infinite
* @member {String} cardProduct
*/
exports.prototype['cardProduct'] = undefined;
/**
* This field contains the type of BIN based authentication. Possible values: - `S`: Single Message - `D`: Dual Message
* @member {String} messageType
*/
exports.prototype['messageType'] = undefined;
/**
* This field contains the acceptance level of the PAN. Possible values: - `0` : Normal - `1` : Monitor - `2` : Refuse - `3` : Not Allowed - `4` : Private - `5` : Test
* @member {String} acceptanceLevel
*/
exports.prototype['acceptanceLevel'] = undefined;
/**
* This field contains the type of card platform. Possible values: - `BUSINESS` - `CONSUMER` - `CORPORATE` - `COMMERCIAL` - `GOVERNMENT`
* @member {String} cardPlatform
*/
exports.prototype['cardPlatform'] = undefined;
/**
* This field indicates the type of combo card. Possible values: - 0 (Not a combo card) - 1 (Credit and Prepaid Combo card) - 2 (Credit and Debit Combo card) - 3 (Prepaid Credit and Prepaid Debit combo card)
* @member {String} comboCard
*/
exports.prototype['comboCard'] = undefined;
/**
* This field indicates if the instrument can be used for corporate purchasing. This field is only applicable for American Express cards. Possible values: - `true` - `false`
* @member {Boolean} corporatePurchase
*/
exports.prototype['corporatePurchase'] = undefined;
/**
* This field indicates if the BIN is for healthcare (HSA/FSA). Currently, this field is only supported for Visa BINs. Possible values: - `true` - `false`
* @member {Boolean} healthCard
*/
exports.prototype['healthCard'] = undefined;
/**
* This field indicates if the BIN is shared by multiple issuers Possible values: - `true` - `false`
* @member {Boolean} sharedBIN
*/
exports.prototype['sharedBIN'] = undefined;
/**
* This field indicates if the BIN is valid only for POS domestic usage. Possible values: - `true` - `false`
* @member {Boolean} posDomesticOnly
*/
exports.prototype['posDomesticOnly'] = undefined;
/**
* This field indicates if gambling transactions are allowed on the BIN. Possible values: - `true` - `false`
* @member {Boolean} gamblingAllowed
*/
exports.prototype['gamblingAllowed'] = undefined;
/**
* This field indicates if a transaction on the instrument qualifies for level 2 interchange rates. Possible values: - `true` - `false`
* @member {Boolean} commercialCardLevel2
*/
exports.prototype['commercialCardLevel2'] = undefined;
/**
* This field indicates if a transaction on the instrument qualifies for level 3 interchange rates. Possible values: - `true` - `false`
* @member {Boolean} commercialCardLevel3
*/
exports.prototype['commercialCardLevel3'] = undefined;
/**
* This field indicates if a transaction on the instrument qualifies for government exempt interchange fee. Possible values: - `true` - `false`
* @member {Boolean} exemptBIN
*/
exports.prototype['exemptBIN'] = undefined;
/**
* This field indicates if the BIN participates in Account Level Management (ALM). Possible values: - `true` - `false`
* @member {Boolean} accountLevelManagement
*/
exports.prototype['accountLevelManagement'] = undefined;
/**
* This field indicates if online gambling is blocked on the BIN. Possible values: - `true` - `false`
* @member {Boolean} onlineGamblingBlock
*/
exports.prototype['onlineGamblingBlock'] = undefined;
/**
* This field indicates if auto-substantiation is enabled on the BIN. Possible values: - `true` - `false`
* @member {Boolean} autoSubstantiation
*/
exports.prototype['autoSubstantiation'] = undefined;
/**
* This field indicates if the instrument is a flex credential. Possible values: - `true` - `false`
* @member {Boolean} flexCredential
*/
exports.prototype['flexCredential'] = undefined;
return exports;
}));