cybersource-rest-client
Version:
Node.js SDK for the CyberSource REST API
110 lines (90 loc) • 4.83 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.Ptsv1pullfundstransferSenderInformationPersonalIdentification = factory(root.CyberSource.ApiClient);
}
}(this, function(ApiClient) {
'use strict';
/**
* The Ptsv1pullfundstransferSenderInformationPersonalIdentification model module.
* @module model/Ptsv1pullfundstransferSenderInformationPersonalIdentification
* @version 0.0.1
*/
/**
* Constructs a new <code>Ptsv1pullfundstransferSenderInformationPersonalIdentification</code>.
* @alias module:model/Ptsv1pullfundstransferSenderInformationPersonalIdentification
* @class
*/
var exports = function() {
var _this = this;
};
/**
* Constructs a <code>Ptsv1pullfundstransferSenderInformationPersonalIdentification</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/Ptsv1pullfundstransferSenderInformationPersonalIdentification} obj Optional instance to populate.
* @return {module:model/Ptsv1pullfundstransferSenderInformationPersonalIdentification} The populated <code>Ptsv1pullfundstransferSenderInformationPersonalIdentification</code> instance.
*/
exports.constructFromObject = function(data, obj) {
if (data) {
obj = obj || new exports();
if (data.hasOwnProperty('issuingCountry')) {
obj['issuingCountry'] = ApiClient.convertToType(data['issuingCountry'], 'String');
}
if (data.hasOwnProperty('id')) {
obj['id'] = ApiClient.convertToType(data['id'], 'String');
}
if (data.hasOwnProperty('type')) {
obj['type'] = ApiClient.convertToType(data['type'], 'String');
}
if (data.hasOwnProperty('personalIdType')) {
obj['personalIdType'] = ApiClient.convertToType(data['personalIdType'], 'String');
}
}
return obj;
}
/**
* Issuing country of the identification. The field format should be a 2 character ISO 3166-1 alpha-2 country code.
* @member {String} issuingCountry
*/
exports.prototype['issuingCountry'] = undefined;
/**
* The ID number/value. Visa Direct(35 characters) This tag will contain an acquirer-populated id value associated with the API. If `senderInformation.personalIdentification.type`=`BTHD`, then the id format must be `YYYYMMDD`.
* @member {String} id
*/
exports.prototype['id'] = undefined;
/**
* Visa Direct This tag will contain the type of sender identification. The valid values are: • `BTHD` (Date of birth) • `CUID` (Customer identification (unspecified)) • `NTID` (National identification) • `PASN` (Passport number) • `DRLN` (Driver license) • `TXIN` (Tax identification) • `CPNY` (Company registration number) • `PRXY` (Proxy identification) • `SSNB` (Social security number) • `ARNB` (Alien registration number) • `LAWE` (Law enforcement identification) • `MILI` (Military identification) • `TRVL` (Travel identification (non-passport)) • `EMAL` (Email) • `PHON` (Phone number)
* @member {String} type
*/
exports.prototype['type'] = undefined;
/**
* It denotes whether the tax ID is a business or individual tax ID. The valid values are: • `B` (Business) • `I` (Individual) Visa Direct This field is required when `senderInformation.personalIdentification.type` has the value of `TXIN` (Tax identification). A value for `senderInformation.personalInformation.id` is required when `senderInformation.personalIdentification.personalIdType` is present in a request.
* @member {String} personalIdType
*/
exports.prototype['personalIdType'] = undefined;
return exports;
}));