/** * Pipedrive API v2 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 2.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. */ /** * * @export * @interface ProductRequest */ export interface ProductRequest { /** * The product code * @type {string} */ 'code'?: string; /** * The product description * @type {string} */ 'description'?: string; /** * The unit in which this product is sold * @type {string} */ 'unit'?: string; /** * The tax percentage * @type {number} */ 'tax'?: number; /** * The category of the product * @type {number} */ 'category'?: number; /** * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used * @type {number} */ 'owner_id'?: number; /** * Whether this product can be added to a deal or not * @type {boolean} */ 'is_linkable'?: boolean; /** * * @type {number} */ 'visible_to'?: ProductRequestVisibleToConst; /** * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `direct_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned. * @type {Array} */ 'prices'?: Array; /** * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes. To clear a custom field value, set it to `null`. For multi-option fields (field type `set`), use `null` to clear the selection — sending an empty array `[]` is not supported and will result in a validation error. * @type {{ [key: string]: any | undefined; }} */ 'custom_fields'?: { [key: string]: any | undefined; }; } export declare const ProductRequestVisibleToConst: { readonly NUMBER_1: 1; readonly NUMBER_3: 3; readonly NUMBER_5: 5; readonly NUMBER_7: 7; }; export type ProductRequestVisibleToConst = typeof ProductRequestVisibleToConst[keyof typeof ProductRequestVisibleToConst];