HEX
Server: nginx/1.18.0
System: Linux test-ipsremont 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
User: ips (1000)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/fintechfuel/node_modules/pipedrive/dist/model/MessageObjectAttachments.js
"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
/**
 * Pipedrive API v1
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 *
 */
/**
 * The MessageObjectAttachments model module.
 * @module model/MessageObjectAttachments
 * @version 1.0.0
 */
var MessageObjectAttachments = /*#__PURE__*/function () {
  /**
   * Constructs a new <code>MessageObjectAttachments</code>.
   * @alias module:model/MessageObjectAttachments
   * @param id {String} The ID of the attachment
   * @param type {String} The mime-type of the attachment
   * @param url {String} A URL to the file
   */
  function MessageObjectAttachments(id, type, url) {
    (0, _classCallCheck2["default"])(this, MessageObjectAttachments);
    MessageObjectAttachments.initialize(this, id, type, url);
  }

  /**
   * Initializes the fields of this object.
   * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
   * Only for internal use.
   */
  (0, _createClass2["default"])(MessageObjectAttachments, null, [{
    key: "initialize",
    value: function initialize(obj, id, type, url) {
      obj['id'] = id;
      obj['type'] = type;
      obj['url'] = url;
    }

    /**
     * Constructs a <code>MessageObjectAttachments</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/MessageObjectAttachments} obj Optional instance to populate.
     * @return {module:model/MessageObjectAttachments} The populated <code>MessageObjectAttachments</code> instance.
     */
  }, {
    key: "constructFromObject",
    value: function constructFromObject(data, obj) {
      if (data) {
        obj = obj || new MessageObjectAttachments();
        if (data.hasOwnProperty('id')) {
          obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
          delete data['id'];
        }
        if (data.hasOwnProperty('type')) {
          obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String');
          delete data['type'];
        }
        if (data.hasOwnProperty('name')) {
          obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String');
          delete data['name'];
        }
        if (data.hasOwnProperty('size')) {
          obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number');
          delete data['size'];
        }
        if (data.hasOwnProperty('url')) {
          obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String');
          delete data['url'];
        }
        if (data.hasOwnProperty('preview_url')) {
          obj['preview_url'] = _ApiClient["default"].convertToType(data['preview_url'], 'String');
          delete data['preview_url'];
        }
        if (data.hasOwnProperty('link_expires')) {
          obj['link_expires'] = _ApiClient["default"].convertToType(data['link_expires'], 'Boolean');
          delete data['link_expires'];
        }
        if (Object.keys(data).length > 0) {
          Object.assign(obj, data);
        }
      }
      return obj;
    }
  }]);
  return MessageObjectAttachments;
}();
/**
 * The ID of the attachment
 * @member {String} id
 */
MessageObjectAttachments.prototype['id'] = undefined;

/**
 * The mime-type of the attachment
 * @member {String} type
 */
MessageObjectAttachments.prototype['type'] = undefined;

/**
 * The name of the attachment
 * @member {String} name
 */
MessageObjectAttachments.prototype['name'] = undefined;

/**
 * The size of the attachment
 * @member {Number} size
 */
MessageObjectAttachments.prototype['size'] = undefined;

/**
 * A URL to the file
 * @member {String} url
 */
MessageObjectAttachments.prototype['url'] = undefined;

/**
 * A URL to a preview picture of the file
 * @member {String} preview_url
 */
MessageObjectAttachments.prototype['preview_url'] = undefined;

/**
 * If true, it will use the getMessageById endpoint for fetching updated attachment's urls. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension)
 * @member {Boolean} link_expires
 * @default false
 */
MessageObjectAttachments.prototype['link_expires'] = false;
var _default = MessageObjectAttachments;
exports["default"] = _default;