@managespace/sdk 0.1.26 → 0.1.28
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/extensibility/functions/project/billing.d.ts +19 -3
- package/dist/extensibility/functions/project/billing.d.ts.map +1 -1
- package/dist/extensibility/functions/project/billing.js +5 -0
- package/dist/generated/apis/default-api.d.ts +21 -3
- package/dist/generated/apis/default-api.d.ts.map +1 -1
- package/dist/generated/apis/default-api.js +67 -9
- package/dist/generated/models/index.d.ts +1 -0
- package/dist/generated/models/index.d.ts.map +1 -1
- package/dist/generated/models/index.js +1 -0
- package/dist/generated/models/update-product.d.ts +106 -0
- package/dist/generated/models/update-product.d.ts.map +1 -0
- package/dist/generated/models/update-product.js +84 -0
- package/package.json +1 -1
- package/src/extensibility/functions/project/billing.ts +13 -4
- package/src/generated/.openapi-generator/FILES +1 -0
- package/src/generated/apis/default-api.ts +130 -9
- package/src/generated/models/index.ts +1 -0
- package/src/generated/models/update-product.ts +174 -0
|
@@ -927,6 +927,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
927
927
|
/**
|
|
928
928
|
*/
|
|
929
929
|
async createPlanRaw(requestParameters, initOverrides) {
|
|
930
|
+
if (requestParameters['siteId'] == null) {
|
|
931
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling createPlan().');
|
|
932
|
+
}
|
|
930
933
|
if (requestParameters['customCreatePlan'] == null) {
|
|
931
934
|
throw new runtime.RequiredError('customCreatePlan', 'Required parameter "customCreatePlan" was null or undefined when calling createPlan().');
|
|
932
935
|
}
|
|
@@ -941,7 +944,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
941
944
|
}
|
|
942
945
|
}
|
|
943
946
|
const response = await this.request({
|
|
944
|
-
path: `/api/billing/plans`,
|
|
947
|
+
path: `/api/sites/{siteId}/billing/plans`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
945
948
|
method: 'POST',
|
|
946
949
|
headers: headerParameters,
|
|
947
950
|
query: queryParameters,
|
|
@@ -958,6 +961,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
958
961
|
/**
|
|
959
962
|
*/
|
|
960
963
|
async createProductRaw(requestParameters, initOverrides) {
|
|
964
|
+
if (requestParameters['siteId'] == null) {
|
|
965
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling createProduct().');
|
|
966
|
+
}
|
|
961
967
|
if (requestParameters['createProductCustom'] == null) {
|
|
962
968
|
throw new runtime.RequiredError('createProductCustom', 'Required parameter "createProductCustom" was null or undefined when calling createProduct().');
|
|
963
969
|
}
|
|
@@ -972,7 +978,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
972
978
|
}
|
|
973
979
|
}
|
|
974
980
|
const response = await this.request({
|
|
975
|
-
path: `/api/billing/products`,
|
|
981
|
+
path: `/api/sites/{siteId}/billing/products`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
976
982
|
method: 'POST',
|
|
977
983
|
headers: headerParameters,
|
|
978
984
|
query: queryParameters,
|
|
@@ -3066,6 +3072,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3066
3072
|
/**
|
|
3067
3073
|
*/
|
|
3068
3074
|
async getPlanRaw(requestParameters, initOverrides) {
|
|
3075
|
+
if (requestParameters['siteId'] == null) {
|
|
3076
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getPlan().');
|
|
3077
|
+
}
|
|
3069
3078
|
if (requestParameters['planId'] == null) {
|
|
3070
3079
|
throw new runtime.RequiredError('planId', 'Required parameter "planId" was null or undefined when calling getPlan().');
|
|
3071
3080
|
}
|
|
@@ -3079,7 +3088,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3079
3088
|
}
|
|
3080
3089
|
}
|
|
3081
3090
|
const response = await this.request({
|
|
3082
|
-
path: `/api/billing/plans/{planId}`.replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
3091
|
+
path: `/api/sites/{siteId}/billing/plans/{planId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
3083
3092
|
method: 'GET',
|
|
3084
3093
|
headers: headerParameters,
|
|
3085
3094
|
query: queryParameters,
|
|
@@ -3095,6 +3104,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3095
3104
|
/**
|
|
3096
3105
|
*/
|
|
3097
3106
|
async getPlansRaw(requestParameters, initOverrides) {
|
|
3107
|
+
if (requestParameters['siteId'] == null) {
|
|
3108
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getPlans().');
|
|
3109
|
+
}
|
|
3098
3110
|
const queryParameters = {};
|
|
3099
3111
|
if (requestParameters['offset'] != null) {
|
|
3100
3112
|
queryParameters['offset'] = requestParameters['offset'];
|
|
@@ -3123,7 +3135,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3123
3135
|
}
|
|
3124
3136
|
}
|
|
3125
3137
|
const response = await this.request({
|
|
3126
|
-
path: `/api/billing/plans`,
|
|
3138
|
+
path: `/api/sites/{siteId}/billing/plans`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
3127
3139
|
method: 'GET',
|
|
3128
3140
|
headers: headerParameters,
|
|
3129
3141
|
query: queryParameters,
|
|
@@ -3132,7 +3144,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3132
3144
|
}
|
|
3133
3145
|
/**
|
|
3134
3146
|
*/
|
|
3135
|
-
async getPlans(requestParameters
|
|
3147
|
+
async getPlans(requestParameters, initOverrides) {
|
|
3136
3148
|
const response = await this.getPlansRaw(requestParameters, initOverrides);
|
|
3137
3149
|
return await response.value();
|
|
3138
3150
|
}
|
|
@@ -3186,6 +3198,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3186
3198
|
/**
|
|
3187
3199
|
*/
|
|
3188
3200
|
async getProductRaw(requestParameters, initOverrides) {
|
|
3201
|
+
if (requestParameters['siteId'] == null) {
|
|
3202
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getProduct().');
|
|
3203
|
+
}
|
|
3189
3204
|
if (requestParameters['productId'] == null) {
|
|
3190
3205
|
throw new runtime.RequiredError('productId', 'Required parameter "productId" was null or undefined when calling getProduct().');
|
|
3191
3206
|
}
|
|
@@ -3199,7 +3214,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3199
3214
|
}
|
|
3200
3215
|
}
|
|
3201
3216
|
const response = await this.request({
|
|
3202
|
-
path: `/api/billing/products/{productId}`.replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
3217
|
+
path: `/api/sites/{siteId}/billing/products/{productId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
3203
3218
|
method: 'GET',
|
|
3204
3219
|
headers: headerParameters,
|
|
3205
3220
|
query: queryParameters,
|
|
@@ -3279,6 +3294,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3279
3294
|
/**
|
|
3280
3295
|
*/
|
|
3281
3296
|
async getProductsRaw(requestParameters, initOverrides) {
|
|
3297
|
+
if (requestParameters['siteId'] == null) {
|
|
3298
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling getProducts().');
|
|
3299
|
+
}
|
|
3282
3300
|
const queryParameters = {};
|
|
3283
3301
|
if (requestParameters['offset'] != null) {
|
|
3284
3302
|
queryParameters['offset'] = requestParameters['offset'];
|
|
@@ -3304,7 +3322,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3304
3322
|
}
|
|
3305
3323
|
}
|
|
3306
3324
|
const response = await this.request({
|
|
3307
|
-
path: `/api/billing/products`,
|
|
3325
|
+
path: `/api/sites/{siteId}/billing/products`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))),
|
|
3308
3326
|
method: 'GET',
|
|
3309
3327
|
headers: headerParameters,
|
|
3310
3328
|
query: queryParameters,
|
|
@@ -3313,7 +3331,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
3313
3331
|
}
|
|
3314
3332
|
/**
|
|
3315
3333
|
*/
|
|
3316
|
-
async getProducts(requestParameters
|
|
3334
|
+
async getProducts(requestParameters, initOverrides) {
|
|
3317
3335
|
const response = await this.getProductsRaw(requestParameters, initOverrides);
|
|
3318
3336
|
return await response.value();
|
|
3319
3337
|
}
|
|
@@ -4947,6 +4965,9 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
4947
4965
|
/**
|
|
4948
4966
|
*/
|
|
4949
4967
|
async updatePlanRaw(requestParameters, initOverrides) {
|
|
4968
|
+
if (requestParameters['siteId'] == null) {
|
|
4969
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling updatePlan().');
|
|
4970
|
+
}
|
|
4950
4971
|
if (requestParameters['planId'] == null) {
|
|
4951
4972
|
throw new runtime.RequiredError('planId', 'Required parameter "planId" was null or undefined when calling updatePlan().');
|
|
4952
4973
|
}
|
|
@@ -4964,7 +4985,7 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
4964
4985
|
}
|
|
4965
4986
|
}
|
|
4966
4987
|
const response = await this.request({
|
|
4967
|
-
path: `/api/billing/plans/{planId}`.replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
4988
|
+
path: `/api/sites/{siteId}/billing/plans/{planId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"planId"}}`, encodeURIComponent(String(requestParameters['planId']))),
|
|
4968
4989
|
method: 'PUT',
|
|
4969
4990
|
headers: headerParameters,
|
|
4970
4991
|
query: queryParameters,
|
|
@@ -4978,6 +4999,43 @@ class DefaultApi extends runtime.BaseAPI {
|
|
|
4978
4999
|
const response = await this.updatePlanRaw(requestParameters, initOverrides);
|
|
4979
5000
|
return await response.value();
|
|
4980
5001
|
}
|
|
5002
|
+
/**
|
|
5003
|
+
*/
|
|
5004
|
+
async updateProductRaw(requestParameters, initOverrides) {
|
|
5005
|
+
if (requestParameters['siteId'] == null) {
|
|
5006
|
+
throw new runtime.RequiredError('siteId', 'Required parameter "siteId" was null or undefined when calling updateProduct().');
|
|
5007
|
+
}
|
|
5008
|
+
if (requestParameters['productId'] == null) {
|
|
5009
|
+
throw new runtime.RequiredError('productId', 'Required parameter "productId" was null or undefined when calling updateProduct().');
|
|
5010
|
+
}
|
|
5011
|
+
if (requestParameters['updateProduct'] == null) {
|
|
5012
|
+
throw new runtime.RequiredError('updateProduct', 'Required parameter "updateProduct" was null or undefined when calling updateProduct().');
|
|
5013
|
+
}
|
|
5014
|
+
const queryParameters = {};
|
|
5015
|
+
const headerParameters = {};
|
|
5016
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
5017
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
5018
|
+
const token = this.configuration.accessToken;
|
|
5019
|
+
const tokenString = await token("bearer", []);
|
|
5020
|
+
if (tokenString) {
|
|
5021
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
5022
|
+
}
|
|
5023
|
+
}
|
|
5024
|
+
const response = await this.request({
|
|
5025
|
+
path: `/api/sites/{siteId}/billing/products/{productId}`.replace(`{${"siteId"}}`, encodeURIComponent(String(requestParameters['siteId']))).replace(`{${"productId"}}`, encodeURIComponent(String(requestParameters['productId']))),
|
|
5026
|
+
method: 'PUT',
|
|
5027
|
+
headers: headerParameters,
|
|
5028
|
+
query: queryParameters,
|
|
5029
|
+
body: (0, index_1.UpdateProductToJSON)(requestParameters['updateProduct']),
|
|
5030
|
+
}, initOverrides);
|
|
5031
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProductCustomFromJSON)(jsonValue));
|
|
5032
|
+
}
|
|
5033
|
+
/**
|
|
5034
|
+
*/
|
|
5035
|
+
async updateProduct(requestParameters, initOverrides) {
|
|
5036
|
+
const response = await this.updateProductRaw(requestParameters, initOverrides);
|
|
5037
|
+
return await response.value();
|
|
5038
|
+
}
|
|
4981
5039
|
/**
|
|
4982
5040
|
*/
|
|
4983
5041
|
async updateSiteRaw(requestParameters, initOverrides) {
|
|
@@ -209,6 +209,7 @@ export * from './update-map-feature';
|
|
|
209
209
|
export * from './update-note';
|
|
210
210
|
export * from './update-org';
|
|
211
211
|
export * from './update-plan';
|
|
212
|
+
export * from './update-product';
|
|
212
213
|
export * from './update-smart-bar-prompt';
|
|
213
214
|
export * from './update-subscription';
|
|
214
215
|
export * from './update-subscription-charge';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generated/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,8CAA8C,CAAC;AAC7D,cAAc,y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D,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC"}
|
|
@@ -227,6 +227,7 @@ __exportStar(require("./update-map-feature"), exports);
|
|
|
227
227
|
__exportStar(require("./update-note"), exports);
|
|
228
228
|
__exportStar(require("./update-org"), exports);
|
|
229
229
|
__exportStar(require("./update-plan"), exports);
|
|
230
|
+
__exportStar(require("./update-product"), exports);
|
|
230
231
|
__exportStar(require("./update-smart-bar-prompt"), exports);
|
|
231
232
|
__exportStar(require("./update-subscription"), exports);
|
|
232
233
|
__exportStar(require("./update-subscription-charge"), exports);
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ManageSpace API
|
|
3
|
+
* ManageSpace API Documentation
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransactionPostingEntries } from './transaction-posting-entries';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateProduct
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateProduct {
|
|
19
|
+
/**
|
|
20
|
+
* The product name
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof UpdateProduct
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
* Stock keeping unit
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof UpdateProduct
|
|
29
|
+
*/
|
|
30
|
+
sku?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Product status
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateProduct
|
|
35
|
+
*/
|
|
36
|
+
status?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Tax exempt
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof UpdateProduct
|
|
41
|
+
*/
|
|
42
|
+
taxable?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Indicated whether it is the default product or not
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof UpdateProduct
|
|
47
|
+
*/
|
|
48
|
+
isDefault?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Description of product
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateProduct
|
|
53
|
+
*/
|
|
54
|
+
description?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The price of the product in the lowest denomination of the currency
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof UpdateProduct
|
|
59
|
+
*/
|
|
60
|
+
price: number;
|
|
61
|
+
/**
|
|
62
|
+
* Revenue Rule ID.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof UpdateProduct
|
|
65
|
+
*/
|
|
66
|
+
revenueRuleId: string;
|
|
67
|
+
/**
|
|
68
|
+
* Date revenue will begin to be recognized.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UpdateProduct
|
|
71
|
+
*/
|
|
72
|
+
recognitionStartDate: string;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<TransactionPostingEntries>}
|
|
76
|
+
* @memberof UpdateProduct
|
|
77
|
+
*/
|
|
78
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
79
|
+
/**
|
|
80
|
+
* List of custom fields
|
|
81
|
+
* @type {object}
|
|
82
|
+
* @memberof UpdateProduct
|
|
83
|
+
*/
|
|
84
|
+
customFields?: object;
|
|
85
|
+
/**
|
|
86
|
+
* Code of Chart of Account
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof UpdateProduct
|
|
89
|
+
*/
|
|
90
|
+
incomeAccount?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Select which tax group to be used
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof UpdateProduct
|
|
95
|
+
*/
|
|
96
|
+
productTaxGroupName?: string;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Check if a given object implements the UpdateProduct interface.
|
|
100
|
+
*/
|
|
101
|
+
export declare function instanceOfUpdateProduct(value: object): value is UpdateProduct;
|
|
102
|
+
export declare function UpdateProductFromJSON(json: any): UpdateProduct;
|
|
103
|
+
export declare function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateProduct;
|
|
104
|
+
export declare function UpdateProductToJSON(json: any): UpdateProduct;
|
|
105
|
+
export declare function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDiscriminator?: boolean): any;
|
|
106
|
+
//# sourceMappingURL=update-product.d.ts.map
|
|
@@ -0,0 +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,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,oBAAoB,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,yBAAyB,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC;IAC5D;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAO7E;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"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* ManageSpace API
|
|
6
|
+
* ManageSpace API Documentation
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.UpdateProductToJSONTyped = exports.UpdateProductToJSON = exports.UpdateProductFromJSONTyped = exports.UpdateProductFromJSON = exports.instanceOfUpdateProduct = void 0;
|
|
17
|
+
const transaction_posting_entries_1 = require("./transaction-posting-entries");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the UpdateProduct interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfUpdateProduct(value) {
|
|
22
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('price' in value) || value['price'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
exports.instanceOfUpdateProduct = instanceOfUpdateProduct;
|
|
35
|
+
function UpdateProductFromJSON(json) {
|
|
36
|
+
return UpdateProductFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
exports.UpdateProductFromJSON = UpdateProductFromJSON;
|
|
39
|
+
function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
40
|
+
if (json == null) {
|
|
41
|
+
return json;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'name': json['name'],
|
|
45
|
+
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
46
|
+
'status': json['status'] == null ? undefined : json['status'],
|
|
47
|
+
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
48
|
+
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
49
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
50
|
+
'price': json['price'],
|
|
51
|
+
'revenueRuleId': json['revenueRuleId'],
|
|
52
|
+
'recognitionStartDate': json['recognitionStartDate'],
|
|
53
|
+
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
54
|
+
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
55
|
+
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
56
|
+
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.UpdateProductFromJSONTyped = UpdateProductFromJSONTyped;
|
|
60
|
+
function UpdateProductToJSON(json) {
|
|
61
|
+
return UpdateProductToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
exports.UpdateProductToJSON = UpdateProductToJSON;
|
|
64
|
+
function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
'name': value['name'],
|
|
70
|
+
'sku': value['sku'],
|
|
71
|
+
'status': value['status'],
|
|
72
|
+
'taxable': value['taxable'],
|
|
73
|
+
'isDefault': value['isDefault'],
|
|
74
|
+
'description': value['description'],
|
|
75
|
+
'price': value['price'],
|
|
76
|
+
'revenueRuleId': value['revenueRuleId'],
|
|
77
|
+
'recognitionStartDate': value['recognitionStartDate'],
|
|
78
|
+
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
79
|
+
'customFields': value['customFields'],
|
|
80
|
+
'incomeAccount': value['incomeAccount'],
|
|
81
|
+
'productTaxGroupName': value['productTaxGroupName'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
exports.UpdateProductToJSONTyped = UpdateProductToJSONTyped;
|
package/package.json
CHANGED
|
@@ -35,6 +35,7 @@ import {
|
|
|
35
35
|
ProductTaxGroup,
|
|
36
36
|
CreateProductTaxGroup as _CreateProductTaxGroup,
|
|
37
37
|
GetInvoicesQuery,
|
|
38
|
+
UpdateProduct as _UpdateProduct,
|
|
38
39
|
} from '../../../generated';
|
|
39
40
|
import { CustomCreateContact } from '../../../generated/models/custom-create-contact';
|
|
40
41
|
import { CustomUpdateCustomer } from '../../../generated/models/custom-update-customer';
|
|
@@ -176,6 +177,7 @@ export namespace Billing {
|
|
|
176
177
|
export class GetPlans implements ExtPlugin {
|
|
177
178
|
responseType!: PlanCustom[];
|
|
178
179
|
payload!: BasePaginationQuery & {
|
|
180
|
+
siteId: string;
|
|
179
181
|
name?: string;
|
|
180
182
|
active?: boolean;
|
|
181
183
|
isDefault?: boolean;
|
|
@@ -184,7 +186,7 @@ export namespace Billing {
|
|
|
184
186
|
|
|
185
187
|
export class GetPlan implements ExtPlugin {
|
|
186
188
|
responseType!: PlanCustom;
|
|
187
|
-
payload!: { planId: string };
|
|
189
|
+
payload!: { siteId: string; planId: string };
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
export class GetProducts implements ExtPlugin {
|
|
@@ -196,12 +198,13 @@ export namespace Billing {
|
|
|
196
198
|
active?: boolean;
|
|
197
199
|
name?: string;
|
|
198
200
|
isDefault?: boolean;
|
|
201
|
+
siteId: string;
|
|
199
202
|
};
|
|
200
203
|
}
|
|
201
204
|
|
|
202
205
|
export class GetProduct implements ExtPlugin {
|
|
203
206
|
responseType!: Omit<ProductCustom, 'org' | 'orgId' | 'site' | 'siteId'>;
|
|
204
|
-
payload!: { productId: string };
|
|
207
|
+
payload!: { siteId: string; productId: string };
|
|
205
208
|
}
|
|
206
209
|
|
|
207
210
|
export class GetSubscriptions implements ExtPlugin {
|
|
@@ -216,12 +219,12 @@ export namespace Billing {
|
|
|
216
219
|
|
|
217
220
|
export class CreateProduct implements ExtPlugin {
|
|
218
221
|
responseType!: ProductCustom;
|
|
219
|
-
payload!: CreateProductCustom;
|
|
222
|
+
payload!: CreateProductCustom & { siteId: string };
|
|
220
223
|
}
|
|
221
224
|
|
|
222
225
|
export class CreatePlan implements ExtPlugin {
|
|
223
226
|
responseType!: PlanCustom;
|
|
224
|
-
payload!: CustomCreatePlan;
|
|
227
|
+
payload!: CustomCreatePlan & { siteId: string };
|
|
225
228
|
}
|
|
226
229
|
|
|
227
230
|
export class UpdateCustomer implements ExtPlugin {
|
|
@@ -332,6 +335,7 @@ export namespace Billing {
|
|
|
332
335
|
export class UpdatePlan implements ExtPlugin {
|
|
333
336
|
responseType!: PlanCustom;
|
|
334
337
|
payload!: {
|
|
338
|
+
siteId: string;
|
|
335
339
|
planId: string;
|
|
336
340
|
updatePlanPayload: _UpdatePlan;
|
|
337
341
|
};
|
|
@@ -368,4 +372,9 @@ export namespace Billing {
|
|
|
368
372
|
responseType!: ProductTaxGroup[];
|
|
369
373
|
payload!: BasePaginationQuery & { status?: string };
|
|
370
374
|
}
|
|
375
|
+
|
|
376
|
+
export class UpdateProduct implements ExtPlugin {
|
|
377
|
+
responseType!: ProductCustom;
|
|
378
|
+
payload!: _UpdateProduct & { siteId: string; productId: string };
|
|
379
|
+
}
|
|
371
380
|
}
|