@managespace/sdk 0.0.214 → 0.0.215

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.
@@ -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,IAAI,EAAE,MAAM,CAAC;IACb;;;;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,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,CAG7E;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"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.214",
3
+ "version": "0.0.215",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -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,
@@ -27,12 +27,6 @@ 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;
36
30
  /**
37
31
  * Stock keeping unit
38
32
  * @type {string}
@@ -81,6 +75,12 @@ export interface UpdateProduct {
81
75
  * @memberof UpdateProduct
82
76
  */
83
77
  productTaxGroupName?: string;
78
+ /**
79
+ * The product name
80
+ * @type {string}
81
+ * @memberof UpdateProduct
82
+ */
83
+ name?: string;
84
84
  /**
85
85
  * The price of the product in the lowest denomination of the currency
86
86
  * @type {number}
@@ -111,7 +111,6 @@ export interface UpdateProduct {
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
114
  return true;
116
115
  }
117
116
 
@@ -125,7 +124,6 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
125
124
  }
126
125
  return {
127
126
 
128
- 'name': json['name'],
129
127
  'sku': json['sku'] == null ? undefined : json['sku'],
130
128
  'status': json['status'] == null ? undefined : json['status'],
131
129
  'taxable': json['taxable'] == null ? undefined : json['taxable'],
@@ -134,6 +132,7 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
134
132
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
135
133
  'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
136
134
  'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
135
+ 'name': json['name'] == null ? undefined : json['name'],
137
136
  'price': json['price'] == null ? undefined : json['price'],
138
137
  'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
139
138
  'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
@@ -152,7 +151,6 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
152
151
 
153
152
  return {
154
153
 
155
- 'name': value['name'],
156
154
  'sku': value['sku'],
157
155
  'status': value['status'],
158
156
  'taxable': value['taxable'],
@@ -161,6 +159,7 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
161
159
  'customFields': value['customFields'],
162
160
  'incomeAccount': value['incomeAccount'],
163
161
  'productTaxGroupName': value['productTaxGroupName'],
162
+ 'name': value['name'],
164
163
  'price': value['price'],
165
164
  'revenueRuleId': value['revenueRuleId'],
166
165
  'recognitionStartDate': value['recognitionStartDate'],