UNPKG

cybersource-rest-client

Version:

Node.js SDK for the CyberSource REST API

102 lines (83 loc) 3.9 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.Ptsv2paymentsOrderInformationDigitalCurrency = factory(root.CyberSource.ApiClient); } }(this, function(ApiClient) { 'use strict'; /** * The Ptsv2paymentsOrderInformationDigitalCurrency model module. * @module model/Ptsv2paymentsOrderInformationDigitalCurrency * @version 0.0.1 */ /** * Constructs a new <code>Ptsv2paymentsOrderInformationDigitalCurrency</code>. * Digital currency information for the order. * @alias module:model/Ptsv2paymentsOrderInformationDigitalCurrency * @class */ var exports = function() { var _this = this; }; /** * Constructs a <code>Ptsv2paymentsOrderInformationDigitalCurrency</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/Ptsv2paymentsOrderInformationDigitalCurrency} obj Optional instance to populate. * @return {module:model/Ptsv2paymentsOrderInformationDigitalCurrency} The populated <code>Ptsv2paymentsOrderInformationDigitalCurrency</code> instance. */ exports.constructFromObject = function(data, obj) { if (data) { obj = obj || new exports(); if (data.hasOwnProperty('type')) { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('rampProviderCountry')) { obj['rampProviderCountry'] = ApiClient.convertToType(data['rampProviderCountry'], 'String'); } if (data.hasOwnProperty('conversionAffiliate')) { obj['conversionAffiliate'] = ApiClient.convertToType(data['conversionAffiliate'], 'String'); } } return obj; } /** * Currently, Visa uses a broad \"cryptocurrency\" indicator. The enhancement will introduce specific values to identify the type of digital currency or coin involved, such as Central Bank Digital Currency (CBDC), stable coins, blockchain-native tokens, and Non-Fungible Tokens (NFTs). Values: - 1: CBDC_TOKENDEPOSIT - 2: STABLE_COIN - 3: BLOCKCHAIN_NATIVE_TOKEN - 4: NFT * @member {String} type */ exports.prototype['type'] = undefined; /** * Ramp is a platform where we can buy Digital currency, for example Coinbase. This value identifies the country where the Ramp provider is registered. * @member {String} rampProviderCountry */ exports.prototype['rampProviderCountry'] = undefined; /** * Affiliate is the platform for the digital currency transactions. The merchant provides the Affiliate country for transaction processing. The combination of affiliate country and ramp country helps to derive the foreign retail indicator. * @member {String} conversionAffiliate */ exports.prototype['conversionAffiliate'] = undefined; return exports; }));