@managespace/sdk 0.0.215 → 0.0.216
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -27,6 +27,12 @@ import {
|
|
|
27
27
|
* @interface UpdateProduct
|
|
28
28
|
*/
|
|
29
29
|
export interface UpdateProduct {
|
|
30
|
+
/**
|
|
31
|
+
* The product name
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateProduct
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
30
36
|
/**
|
|
31
37
|
* Stock keeping unit
|
|
32
38
|
* @type {string}
|
|
@@ -58,59 +64,58 @@ export interface UpdateProduct {
|
|
|
58
64
|
*/
|
|
59
65
|
description?: string;
|
|
60
66
|
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {
|
|
67
|
+
* The price of the product in the lowest denomination of the currency
|
|
68
|
+
* @type {number}
|
|
63
69
|
* @memberof UpdateProduct
|
|
64
70
|
*/
|
|
65
|
-
|
|
71
|
+
price: number;
|
|
66
72
|
/**
|
|
67
|
-
*
|
|
73
|
+
* Revenue Rule ID.
|
|
68
74
|
* @type {string}
|
|
69
75
|
* @memberof UpdateProduct
|
|
70
76
|
*/
|
|
71
|
-
|
|
77
|
+
revenueRuleId: string;
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* Date revenue will begin to be recognized.
|
|
74
80
|
* @type {string}
|
|
75
81
|
* @memberof UpdateProduct
|
|
76
82
|
*/
|
|
77
|
-
|
|
83
|
+
recognitionStartDate: string;
|
|
78
84
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<TransactionPostingEntries>}
|
|
81
87
|
* @memberof UpdateProduct
|
|
82
88
|
*/
|
|
83
|
-
|
|
89
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
84
90
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {
|
|
91
|
+
* List of custom fields
|
|
92
|
+
* @type {object}
|
|
87
93
|
* @memberof UpdateProduct
|
|
88
94
|
*/
|
|
89
|
-
|
|
95
|
+
customFields?: object;
|
|
90
96
|
/**
|
|
91
|
-
*
|
|
97
|
+
* Code of Chart of Account
|
|
92
98
|
* @type {string}
|
|
93
99
|
* @memberof UpdateProduct
|
|
94
100
|
*/
|
|
95
|
-
|
|
101
|
+
incomeAccount?: string;
|
|
96
102
|
/**
|
|
97
|
-
*
|
|
103
|
+
* Select which tax group to be used
|
|
98
104
|
* @type {string}
|
|
99
105
|
* @memberof UpdateProduct
|
|
100
106
|
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {Array<TransactionPostingEntries>}
|
|
105
|
-
* @memberof UpdateProduct
|
|
106
|
-
*/
|
|
107
|
-
transactionPostingEntries?: Array<TransactionPostingEntries>;
|
|
107
|
+
productTaxGroupName?: string;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
111
|
* Check if a given object implements the UpdateProduct interface.
|
|
112
112
|
*/
|
|
113
113
|
export function instanceOfUpdateProduct(value: object): value is UpdateProduct {
|
|
114
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
115
|
+
if (!('price' in value) || value['price'] === undefined) return false;
|
|
116
|
+
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
|
|
117
|
+
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
|
|
118
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
|
|
114
119
|
return true;
|
|
115
120
|
}
|
|
116
121
|
|
|
@@ -124,19 +129,19 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
124
129
|
}
|
|
125
130
|
return {
|
|
126
131
|
|
|
132
|
+
'name': json['name'],
|
|
127
133
|
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
128
134
|
'status': json['status'] == null ? undefined : json['status'],
|
|
129
135
|
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
130
136
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
131
137
|
'description': json['description'] == null ? undefined : json['description'],
|
|
138
|
+
'price': json['price'],
|
|
139
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
140
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
141
|
+
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
132
142
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
133
143
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
134
144
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
135
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
136
|
-
'price': json['price'] == null ? undefined : json['price'],
|
|
137
|
-
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
138
|
-
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
139
|
-
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
140
145
|
};
|
|
141
146
|
}
|
|
142
147
|
|
|
@@ -151,19 +156,19 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
|
|
|
151
156
|
|
|
152
157
|
return {
|
|
153
158
|
|
|
159
|
+
'name': value['name'],
|
|
154
160
|
'sku': value['sku'],
|
|
155
161
|
'status': value['status'],
|
|
156
162
|
'taxable': value['taxable'],
|
|
157
163
|
'isDefault': value['isDefault'],
|
|
158
164
|
'description': value['description'],
|
|
159
|
-
'customFields': value['customFields'],
|
|
160
|
-
'incomeAccount': value['incomeAccount'],
|
|
161
|
-
'productTaxGroupName': value['productTaxGroupName'],
|
|
162
|
-
'name': value['name'],
|
|
163
165
|
'price': value['price'],
|
|
164
166
|
'revenueRuleId': value['revenueRuleId'],
|
|
165
167
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
166
|
-
'transactionPostingEntries':
|
|
168
|
+
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
169
|
+
'customFields': value['customFields'],
|
|
170
|
+
'incomeAccount': value['incomeAccount'],
|
|
171
|
+
'productTaxGroupName': value['productTaxGroupName'],
|
|
167
172
|
};
|
|
168
173
|
}
|
|
169
174
|
|