UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

101 lines (82 loc) 4.93 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.PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails model module. * @module model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails * @version 0.0.1 */ /** * Constructs a new <code>PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails</code>. * @alias module:model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails</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/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails} obj Optional instance to populate. * @return {module:model/PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails} The populated <code>PtsV2PaymentsCapturesPost201ResponseOrderInformationAmountDetails</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('totalAmount')) { obj['totalAmount'] = ApiClient.convertToType(data['totalAmount'], 'String'); } if (data.hasOwnProperty('currency')) { obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); } if (data.hasOwnProperty('processorTransactionFee')) { obj['processorTransactionFee'] = ApiClient.convertToType(data['processorTransactionFee'], 'String'); } } return obj; } /** * Amount you requested for the capture. * @member {String} totalAmount */ exports.prototype['totalAmount'] = undefined; /** * Currency used for the order. Use the three-character [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) #### Used by **Authorization** Required field. **Authorization Reversal** For an authorization reversal (`reversalInformation`) or a capture (`processingOptions.capture` is set to `true`), you must use the same currency that you used in your payment authorization request. #### PIN Debit Currency for the amount you requested for the PIN debit purchase. This value is returned for partial authorizations. The issuing bank can approve a partial amount if the balance on the debit card is less than the requested transaction amount. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Returned by PIN debit purchase. For PIN debit reversal requests, you must use the same currency that was used for the PIN debit purchase or PIN debit credit that you are reversing. For the possible values, see the [ISO Standard Currency Codes](https://developer.cybersource.com/library/documentation/sbc/quickref/currencies.pdf). Required field for PIN Debit purchase and PIN Debit credit requests. Optional field for PIN Debit reversal requests. #### GPX This field is optional for reversing an authorization or credit. #### DCC for First Data Your local currency. #### Tax Calculation Required for international tax and value added tax only. Optional for U.S. and Canadian taxes. Your local currency. * @member {String} currency */ exports.prototype['currency'] = undefined; /** * The fee decided by the PSP/Processor per transaction. * @member {String} processorTransactionFee */ exports.prototype['processorTransactionFee'] = undefined; return exports; }));