@managespace/sdk 0.0.214 → 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/dist/generated/apis/default-api.js +1 -1
- package/dist/generated/models/update-product.d.ts +6 -6
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +2 -4
- package/package.json +1 -1
- package/src/generated/apis/default-api.ts +1 -1
- package/src/generated/models/update-product.ts +30 -26
|
@@ -5022,7 +5022,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
5022
5022
|
}
|
|
5023
5023
|
}
|
|
5024
5024
|
const response = await this.request({
|
|
5025
|
-
path: `/api/sites/{siteId}/billing/products`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
5025
|
+
path: `/api/sites/{siteId}/billing/products/{productId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
5026
5026
|
method: 'PUT',
|
|
5027
5027
|
headers: headerParameters,
|
|
5028
5028
|
query: queryParameters,
|
|
@@ -16,12 +16,6 @@ import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
|
16
16
|
* @interface UpdateProduct
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateProduct {
|
|
19
|
-
/**
|
|
20
|
-
* The product name
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof UpdateProduct
|
|
23
|
-
*/
|
|
24
|
-
name: string;
|
|
25
19
|
/**
|
|
26
20
|
* Stock keeping unit
|
|
27
21
|
* @type {string}
|
|
@@ -70,6 +64,12 @@ export interface UpdateProduct {
|
|
|
70
64
|
* @memberof UpdateProduct
|
|
71
65
|
*/
|
|
72
66
|
productTaxGroupName?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The product name
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UpdateProduct
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
73
|
/**
|
|
74
74
|
* The price of the product in the lowest denomination of the currency
|
|
75
75
|
* @type {number}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../src/generated/models/update-product.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,yBAAyB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAoBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqBhH"}
|
|
@@ -19,8 +19,6 @@ const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
|
19
19
|
* Check if a given object implements the UpdateProduct interface.
|
|
20
20
|
*/
|
|
21
21
|
function instanceOfUpdateProduct(value) {
|
|
22
|
-
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
-
return false;
|
|
24
22
|
return true;
|
|
25
23
|
}
|
|
26
24
|
exports.instanceOfUpdateProduct = instanceOfUpdateProduct;
|
|
@@ -33,7 +31,6 @@ function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
33
31
|
return json;
|
|
34
32
|
}
|
|
35
33
|
return {
|
|
36
|
-
'name': json['name'],
|
|
37
34
|
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
38
35
|
'status': json['status'] == null ? undefined : json['status'],
|
|
39
36
|
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
@@ -42,6 +39,7 @@ function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
39
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
43
40
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
44
41
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
42
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
45
43
|
'price': json['price'] == null ? undefined : json['price'],
|
|
46
44
|
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
47
45
|
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
@@ -58,7 +56,6 @@ function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
56
|
return value;
|
|
59
57
|
}
|
|
60
58
|
return {
|
|
61
|
-
'name': value['name'],
|
|
62
59
|
'sku': value['sku'],
|
|
63
60
|
'status': value['status'],
|
|
64
61
|
'taxable': value['taxable'],
|
|
@@ -67,6 +64,7 @@ function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
67
64
|
'customFields': value['customFields'],
|
|
68
65
|
'incomeAccount': value['incomeAccount'],
|
|
69
66
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
67
|
+
'name': value['name'],
|
|
70
68
|
'price': value['price'],
|
|
71
69
|
'revenueRuleId': value['revenueRuleId'],
|
|
72
70
|
'recognitionStartDate': value['recognitionStartDate'],
|
package/package.json
CHANGED
|
@@ -8128,7 +8128,7 @@ export class DefaultApi extends runtime.BaseAPI {
|
|
|
8128
8128
|
}
|
|
8129
8129
|
}
|
|
8130
8130
|
const response = await this.request({
|
|
8131
|
-
path: `/api/sites/{siteId}/billing/products`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
8131
|
+
path: `/api/sites/{siteId}/billing/products/{productId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
8132
8132
|
method: 'PUT',
|
|
8133
8133
|
headers: headerParameters,
|
|
8134
8134
|
query: queryParameters,
|
|
@@ -64,47 +64,47 @@ export interface UpdateProduct {
|
|
|
64
64
|
*/
|
|
65
65
|
description?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
68
|
-
* @type {
|
|
67
|
+
* The price of the product in the lowest denomination of the currency
|
|
68
|
+
* @type {number}
|
|
69
69
|
* @memberof UpdateProduct
|
|
70
70
|
*/
|
|
71
|
-
|
|
71
|
+
price: number;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Revenue Rule ID.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof UpdateProduct
|
|
76
76
|
*/
|
|
77
|
-
|
|
77
|
+
revenueRuleId: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Date revenue will begin to be recognized.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof UpdateProduct
|
|
82
82
|
*/
|
|
83
|
-
|
|
83
|
+
recognitionStartDate: string;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @type {
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<TransactionPostingEntries>}
|
|
87
87
|
* @memberof UpdateProduct
|
|
88
88
|
*/
|
|
89
|
-
|
|
89
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {
|
|
91
|
+
* List of custom fields
|
|
92
|
+
* @type {object}
|
|
93
93
|
* @memberof UpdateProduct
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
customFields?: object;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Code of Chart of Account
|
|
98
98
|
* @type {string}
|
|
99
99
|
* @memberof UpdateProduct
|
|
100
100
|
*/
|
|
101
|
-
|
|
101
|
+
incomeAccount?: string;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @type {
|
|
103
|
+
* Select which tax group to be used
|
|
104
|
+
* @type {string}
|
|
105
105
|
* @memberof UpdateProduct
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
productTaxGroupName?: string;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
/**
|
|
@@ -112,6 +112,10 @@ export interface UpdateProduct {
|
|
|
112
112
|
*/
|
|
113
113
|
export function instanceOfUpdateProduct(value: object): value is UpdateProduct {
|
|
114
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;
|
|
115
119
|
return true;
|
|
116
120
|
}
|
|
117
121
|
|
|
@@ -131,13 +135,13 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
131
135
|
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
132
136
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
133
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)),
|
|
134
142
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
135
143
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
136
144
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
137
|
-
'price': json['price'] == null ? undefined : json['price'],
|
|
138
|
-
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
139
|
-
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
140
|
-
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
141
145
|
};
|
|
142
146
|
}
|
|
143
147
|
|
|
@@ -158,13 +162,13 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
|
|
|
158
162
|
'taxable': value['taxable'],
|
|
159
163
|
'isDefault': value['isDefault'],
|
|
160
164
|
'description': value['description'],
|
|
161
|
-
'customFields': value['customFields'],
|
|
162
|
-
'incomeAccount': value['incomeAccount'],
|
|
163
|
-
'productTaxGroupName': value['productTaxGroupName'],
|
|
164
165
|
'price': value['price'],
|
|
165
166
|
'revenueRuleId': value['revenueRuleId'],
|
|
166
167
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
167
|
-
'transactionPostingEntries':
|
|
168
|
+
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
169
|
+
'customFields': value['customFields'],
|
|
170
|
+
'incomeAccount': value['incomeAccount'],
|
|
171
|
+
'productTaxGroupName': value['productTaxGroupName'],
|
|
168
172
|
};
|
|
169
173
|
}
|
|
170
174
|
|