@managespace/sdk 0.0.216 → 0.0.217
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/models/create-product-custom.d.ts +18 -0
- package/dist/generated/models/create-product-custom.d.ts.map +1 -1
- package/dist/generated/models/create-product-custom.js +6 -0
- package/dist/generated/models/product-custom.d.ts +18 -0
- package/dist/generated/models/product-custom.d.ts.map +1 -1
- package/dist/generated/models/product-custom.js +6 -0
- package/dist/generated/models/update-product.d.ts +38 -20
- package/dist/generated/models/update-product.d.ts.map +1 -1
- package/dist/generated/models/update-product.js +26 -10
- package/package.json +1 -1
- package/src/generated/models/create-product-custom.ts +24 -0
- package/src/generated/models/product-custom.ts +24 -0
- package/src/generated/models/update-product.ts +24 -0
|
@@ -88,6 +88,24 @@ export interface CreateProductCustom {
|
|
|
88
88
|
* @memberof CreateProductCustom
|
|
89
89
|
*/
|
|
90
90
|
incomeAccount?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Date revenue will end to be recognized.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof CreateProductCustom
|
|
95
|
+
*/
|
|
96
|
+
recognitionEndDate?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Currency
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof CreateProductCustom
|
|
101
|
+
*/
|
|
102
|
+
currency?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Show revenue schedules
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof CreateProductCustom
|
|
107
|
+
*/
|
|
108
|
+
showRevenueSchedules?: boolean;
|
|
91
109
|
/**
|
|
92
110
|
* Select which tax group to be used
|
|
93
111
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-product-custom.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;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,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAOzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,
|
|
1
|
+
{"version":3,"file":"create-product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/create-product-custom.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;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,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAOzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAuB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwB5H"}
|
|
@@ -53,6 +53,9 @@ function CreateProductCustomFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
53
53
|
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
54
54
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
55
55
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
56
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
57
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
58
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
56
59
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
57
60
|
};
|
|
58
61
|
}
|
|
@@ -78,6 +81,9 @@ function CreateProductCustomToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
81
|
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
79
82
|
'customFields': value['customFields'],
|
|
80
83
|
'incomeAccount': value['incomeAccount'],
|
|
84
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
85
|
+
'currency': value['currency'],
|
|
86
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
81
87
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
82
88
|
};
|
|
83
89
|
}
|
|
@@ -88,6 +88,24 @@ export interface ProductCustom {
|
|
|
88
88
|
* @memberof ProductCustom
|
|
89
89
|
*/
|
|
90
90
|
incomeAccount?: string;
|
|
91
|
+
/**
|
|
92
|
+
* Date revenue will end to be recognized.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof ProductCustom
|
|
95
|
+
*/
|
|
96
|
+
recognitionEndDate?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Currency
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof ProductCustom
|
|
101
|
+
*/
|
|
102
|
+
currency?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Show revenue schedules
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof ProductCustom
|
|
107
|
+
*/
|
|
108
|
+
showRevenueSchedules?: boolean;
|
|
91
109
|
/**
|
|
92
110
|
* Select which tax group to be used
|
|
93
111
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom.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;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAQ7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"product-custom.d.ts","sourceRoot":"","sources":["../../../src/generated/models/product-custom.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,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAQ7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAwBjG;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,CAyBhH"}
|
|
@@ -55,6 +55,9 @@ function ProductCustomFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
55
|
'transactionPostingEntries': (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
56
56
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
57
57
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
58
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
59
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
60
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
58
61
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
59
62
|
'id': json['id'],
|
|
60
63
|
};
|
|
@@ -81,6 +84,9 @@ function ProductCustomToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
81
84
|
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
82
85
|
'customFields': value['customFields'],
|
|
83
86
|
'incomeAccount': value['incomeAccount'],
|
|
87
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
88
|
+
'currency': value['currency'],
|
|
89
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
84
90
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
85
91
|
'id': value['id'],
|
|
86
92
|
};
|
|
@@ -16,6 +16,12 @@ 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;
|
|
19
25
|
/**
|
|
20
26
|
* Stock keeping unit
|
|
21
27
|
* @type {string}
|
|
@@ -47,53 +53,65 @@ export interface UpdateProduct {
|
|
|
47
53
|
*/
|
|
48
54
|
description?: string;
|
|
49
55
|
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {
|
|
56
|
+
* The price of the product in the lowest denomination of the currency
|
|
57
|
+
* @type {number}
|
|
52
58
|
* @memberof UpdateProduct
|
|
53
59
|
*/
|
|
54
|
-
|
|
60
|
+
price: number;
|
|
55
61
|
/**
|
|
56
|
-
*
|
|
62
|
+
* Revenue Rule ID.
|
|
57
63
|
* @type {string}
|
|
58
64
|
* @memberof UpdateProduct
|
|
59
65
|
*/
|
|
60
|
-
|
|
66
|
+
revenueRuleId: string;
|
|
61
67
|
/**
|
|
62
|
-
*
|
|
68
|
+
* Date revenue will begin to be recognized.
|
|
63
69
|
* @type {string}
|
|
64
70
|
* @memberof UpdateProduct
|
|
65
71
|
*/
|
|
66
|
-
|
|
72
|
+
recognitionStartDate: string;
|
|
67
73
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<TransactionPostingEntries>}
|
|
70
76
|
* @memberof UpdateProduct
|
|
71
77
|
*/
|
|
72
|
-
|
|
78
|
+
transactionPostingEntries: Array<TransactionPostingEntries>;
|
|
73
79
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @type {
|
|
80
|
+
* List of custom fields
|
|
81
|
+
* @type {object}
|
|
76
82
|
* @memberof UpdateProduct
|
|
77
83
|
*/
|
|
78
|
-
|
|
84
|
+
customFields?: object;
|
|
79
85
|
/**
|
|
80
|
-
*
|
|
86
|
+
* Code of Chart of Account
|
|
81
87
|
* @type {string}
|
|
82
88
|
* @memberof UpdateProduct
|
|
83
89
|
*/
|
|
84
|
-
|
|
90
|
+
incomeAccount?: string;
|
|
85
91
|
/**
|
|
86
|
-
* Date revenue will
|
|
92
|
+
* Date revenue will end to be recognized.
|
|
87
93
|
* @type {string}
|
|
88
94
|
* @memberof UpdateProduct
|
|
89
95
|
*/
|
|
90
|
-
|
|
96
|
+
recognitionEndDate?: string;
|
|
91
97
|
/**
|
|
92
|
-
*
|
|
93
|
-
* @type {
|
|
98
|
+
* Currency
|
|
99
|
+
* @type {string}
|
|
94
100
|
* @memberof UpdateProduct
|
|
95
101
|
*/
|
|
96
|
-
|
|
102
|
+
currency?: string;
|
|
103
|
+
/**
|
|
104
|
+
* Show revenue schedules
|
|
105
|
+
* @type {boolean}
|
|
106
|
+
* @memberof UpdateProduct
|
|
107
|
+
*/
|
|
108
|
+
showRevenueSchedules?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Select which tax group to be used
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof UpdateProduct
|
|
113
|
+
*/
|
|
114
|
+
productTaxGroupName?: string;
|
|
97
115
|
}
|
|
98
116
|
/**
|
|
99
117
|
* Check if a given object implements the UpdateProduct interface.
|
|
@@ -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,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,
|
|
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,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;;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,CAuBjG;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,CAwBhH"}
|
|
@@ -19,6 +19,16 @@ 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
|
+
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;
|
|
22
32
|
return true;
|
|
23
33
|
}
|
|
24
34
|
exports.instanceOfUpdateProduct = instanceOfUpdateProduct;
|
|
@@ -31,19 +41,22 @@ function UpdateProductFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
31
41
|
return json;
|
|
32
42
|
}
|
|
33
43
|
return {
|
|
44
|
+
'name': json['name'],
|
|
34
45
|
'sku': json['sku'] == null ? undefined : json['sku'],
|
|
35
46
|
'status': json['status'] == null ? undefined : json['status'],
|
|
36
47
|
'taxable': json['taxable'] == null ? undefined : json['taxable'],
|
|
37
48
|
'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
|
|
38
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)),
|
|
39
54
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
40
55
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
56
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
57
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
58
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
41
59
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
42
|
-
'name': json['name'] == null ? undefined : json['name'],
|
|
43
|
-
'price': json['price'] == null ? undefined : json['price'],
|
|
44
|
-
'revenueRuleId': json['revenueRuleId'] == null ? undefined : json['revenueRuleId'],
|
|
45
|
-
'recognitionStartDate': json['recognitionStartDate'] == null ? undefined : json['recognitionStartDate'],
|
|
46
|
-
'transactionPostingEntries': json['transactionPostingEntries'] == null ? undefined : (json['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesFromJSON)),
|
|
47
60
|
};
|
|
48
61
|
}
|
|
49
62
|
exports.UpdateProductFromJSONTyped = UpdateProductFromJSONTyped;
|
|
@@ -56,19 +69,22 @@ function UpdateProductToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
69
|
return value;
|
|
57
70
|
}
|
|
58
71
|
return {
|
|
72
|
+
'name': value['name'],
|
|
59
73
|
'sku': value['sku'],
|
|
60
74
|
'status': value['status'],
|
|
61
75
|
'taxable': value['taxable'],
|
|
62
76
|
'isDefault': value['isDefault'],
|
|
63
77
|
'description': value['description'],
|
|
64
|
-
'customFields': value['customFields'],
|
|
65
|
-
'incomeAccount': value['incomeAccount'],
|
|
66
|
-
'productTaxGroupName': value['productTaxGroupName'],
|
|
67
|
-
'name': value['name'],
|
|
68
78
|
'price': value['price'],
|
|
69
79
|
'revenueRuleId': value['revenueRuleId'],
|
|
70
80
|
'recognitionStartDate': value['recognitionStartDate'],
|
|
71
|
-
'transactionPostingEntries':
|
|
81
|
+
'transactionPostingEntries': (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
|
|
82
|
+
'customFields': value['customFields'],
|
|
83
|
+
'incomeAccount': value['incomeAccount'],
|
|
84
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
85
|
+
'currency': value['currency'],
|
|
86
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
87
|
+
'productTaxGroupName': value['productTaxGroupName'],
|
|
72
88
|
};
|
|
73
89
|
}
|
|
74
90
|
exports.UpdateProductToJSONTyped = UpdateProductToJSONTyped;
|
package/package.json
CHANGED
|
@@ -99,6 +99,24 @@ export interface CreateProductCustom {
|
|
|
99
99
|
* @memberof CreateProductCustom
|
|
100
100
|
*/
|
|
101
101
|
incomeAccount?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Date revenue will end to be recognized.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof CreateProductCustom
|
|
106
|
+
*/
|
|
107
|
+
recognitionEndDate?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Currency
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof CreateProductCustom
|
|
112
|
+
*/
|
|
113
|
+
currency?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Show revenue schedules
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof CreateProductCustom
|
|
118
|
+
*/
|
|
119
|
+
showRevenueSchedules?: boolean;
|
|
102
120
|
/**
|
|
103
121
|
* Select which tax group to be used
|
|
104
122
|
* @type {string}
|
|
@@ -141,6 +159,9 @@ export function CreateProductCustomFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
141
159
|
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
142
160
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
143
161
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
162
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
163
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
164
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
144
165
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
145
166
|
};
|
|
146
167
|
}
|
|
@@ -168,6 +189,9 @@ export function CreateProductCustomToJSONTyped(value?: CreateProductCustom | nul
|
|
|
168
189
|
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
169
190
|
'customFields': value['customFields'],
|
|
170
191
|
'incomeAccount': value['incomeAccount'],
|
|
192
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
193
|
+
'currency': value['currency'],
|
|
194
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
171
195
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
172
196
|
};
|
|
173
197
|
}
|
|
@@ -99,6 +99,24 @@ export interface ProductCustom {
|
|
|
99
99
|
* @memberof ProductCustom
|
|
100
100
|
*/
|
|
101
101
|
incomeAccount?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Date revenue will end to be recognized.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ProductCustom
|
|
106
|
+
*/
|
|
107
|
+
recognitionEndDate?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Currency
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof ProductCustom
|
|
112
|
+
*/
|
|
113
|
+
currency?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Show revenue schedules
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof ProductCustom
|
|
118
|
+
*/
|
|
119
|
+
showRevenueSchedules?: boolean;
|
|
102
120
|
/**
|
|
103
121
|
* Select which tax group to be used
|
|
104
122
|
* @type {string}
|
|
@@ -148,6 +166,9 @@ export function ProductCustomFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
148
166
|
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
149
167
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
150
168
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
169
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
170
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
171
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
151
172
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
152
173
|
'id': json['id'],
|
|
153
174
|
};
|
|
@@ -176,6 +197,9 @@ export function ProductCustomToJSONTyped(value?: ProductCustom | null, ignoreDis
|
|
|
176
197
|
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
177
198
|
'customFields': value['customFields'],
|
|
178
199
|
'incomeAccount': value['incomeAccount'],
|
|
200
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
201
|
+
'currency': value['currency'],
|
|
202
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
179
203
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
180
204
|
'id': value['id'],
|
|
181
205
|
};
|
|
@@ -99,6 +99,24 @@ export interface UpdateProduct {
|
|
|
99
99
|
* @memberof UpdateProduct
|
|
100
100
|
*/
|
|
101
101
|
incomeAccount?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Date revenue will end to be recognized.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof UpdateProduct
|
|
106
|
+
*/
|
|
107
|
+
recognitionEndDate?: string;
|
|
108
|
+
/**
|
|
109
|
+
* Currency
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof UpdateProduct
|
|
112
|
+
*/
|
|
113
|
+
currency?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Show revenue schedules
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof UpdateProduct
|
|
118
|
+
*/
|
|
119
|
+
showRevenueSchedules?: boolean;
|
|
102
120
|
/**
|
|
103
121
|
* Select which tax group to be used
|
|
104
122
|
* @type {string}
|
|
@@ -141,6 +159,9 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
141
159
|
'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
|
|
142
160
|
'customFields': json['customFields'] == null ? undefined : json['customFields'],
|
|
143
161
|
'incomeAccount': json['incomeAccount'] == null ? undefined : json['incomeAccount'],
|
|
162
|
+
'recognitionEndDate': json['recognitionEndDate'] == null ? undefined : json['recognitionEndDate'],
|
|
163
|
+
'currency': json['currency'] == null ? undefined : json['currency'],
|
|
164
|
+
'showRevenueSchedules': json['showRevenueSchedules'] == null ? undefined : json['showRevenueSchedules'],
|
|
144
165
|
'productTaxGroupName': json['productTaxGroupName'] == null ? undefined : json['productTaxGroupName'],
|
|
145
166
|
};
|
|
146
167
|
}
|
|
@@ -168,6 +189,9 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
|
|
|
168
189
|
'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
|
|
169
190
|
'customFields': value['customFields'],
|
|
170
191
|
'incomeAccount': value['incomeAccount'],
|
|
192
|
+
'recognitionEndDate': value['recognitionEndDate'],
|
|
193
|
+
'currency': value['currency'],
|
|
194
|
+
'showRevenueSchedules': value['showRevenueSchedules'],
|
|
171
195
|
'productTaxGroupName': value['productTaxGroupName'],
|
|
172
196
|
};
|
|
173
197
|
}
|