UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

83 lines (66 loc) 3.56 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.Ucv1sessionsDataInstallmentInformation = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Ucv1sessionsDataInstallmentInformation model module. * @module model/Ucv1sessionsDataInstallmentInformation * @version 0.0.1 */ /** * Constructs a new <code>Ucv1sessionsDataInstallmentInformation</code>. * @alias module:model/Ucv1sessionsDataInstallmentInformation * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ucv1sessionsDataInstallmentInformation</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/Ucv1sessionsDataInstallmentInformation} obj Optional instance to populate. * @return {module:model/Ucv1sessionsDataInstallmentInformation} The populated <code>Ucv1sessionsDataInstallmentInformation</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('sequence')) { obj['sequence'] = ApiClient.convertToType(data['sequence'], 'Number'); } } return obj; } /** * Installment number when making payments in installments. Used along with `totalCount` to track which payment is being processed. For example, the second of 5 payments would be passed to CyberSource as `sequence` = 2 and `totalCount` = 5. #### Chase Paymentech Solutions and FDC Compass This field is optional because this value is required in the merchant descriptors. #### CyberSource through VisaNet When you do not include this field in a request for a Crediario installment payment, CyberSource sends a value of 0 to the processor. For Crediario installment payments, the value for this field corresponds to the following data in the TC 33 capture file*: - Record: CP01 TCR9 - Position: 38-40 - Field: Installment Payment Number * The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant's acquirer, who uses this information to facilitate end-of-day clearing processing with payment card companies. * @member {Number} sequence */ exports.prototype['sequence'] = undefined; return exports; }));