-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathproduct-request.ts
More file actions
84 lines (77 loc) · 2.31 KB
/
Copy pathproduct-request.ts
File metadata and controls
84 lines (77 loc) · 2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* tslint:disable */
/* eslint-disable */
/**
* 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<object>}
*/
'prices'?: Array<object>;
/**
* An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes
* @type {{ [key: string]: any | undefined; }}
*/
'custom_fields'?: { [key: string]: any | undefined; };
}
export const ProductRequestVisibleToConst = {
NUMBER_1: 1,
NUMBER_3: 3,
NUMBER_5: 5,
NUMBER_7: 7
} as const;
export type ProductRequestVisibleToConst = typeof ProductRequestVisibleToConst[keyof typeof ProductRequestVisibleToConst];