@managespace/sdk 0.0.215 → 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.
@@ -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,CAoB7G;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,CAqB5H"}
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,CAqBjG;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,CAsBhH"}
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
- * List of custom fields
51
- * @type {object}
56
+ * The price of the product in the lowest denomination of the currency
57
+ * @type {number}
52
58
  * @memberof UpdateProduct
53
59
  */
54
- customFields?: object;
60
+ price: number;
55
61
  /**
56
- * Code of Chart of Account
62
+ * Revenue Rule ID.
57
63
  * @type {string}
58
64
  * @memberof UpdateProduct
59
65
  */
60
- incomeAccount?: string;
66
+ revenueRuleId: string;
61
67
  /**
62
- * Select which tax group to be used
68
+ * Date revenue will begin to be recognized.
63
69
  * @type {string}
64
70
  * @memberof UpdateProduct
65
71
  */
66
- productTaxGroupName?: string;
72
+ recognitionStartDate: string;
67
73
  /**
68
- * The product name
69
- * @type {string}
74
+ *
75
+ * @type {Array<TransactionPostingEntries>}
70
76
  * @memberof UpdateProduct
71
77
  */
72
- name?: string;
78
+ transactionPostingEntries: Array<TransactionPostingEntries>;
73
79
  /**
74
- * The price of the product in the lowest denomination of the currency
75
- * @type {number}
80
+ * List of custom fields
81
+ * @type {object}
76
82
  * @memberof UpdateProduct
77
83
  */
78
- price?: number;
84
+ customFields?: object;
79
85
  /**
80
- * Revenue Rule ID.
86
+ * Code of Chart of Account
81
87
  * @type {string}
82
88
  * @memberof UpdateProduct
83
89
  */
84
- revenueRuleId?: string;
90
+ incomeAccount?: string;
85
91
  /**
86
- * Date revenue will begin to be recognized.
92
+ * Date revenue will end to be recognized.
87
93
  * @type {string}
88
94
  * @memberof UpdateProduct
89
95
  */
90
- recognitionStartDate?: string;
96
+ recognitionEndDate?: string;
91
97
  /**
92
- *
93
- * @type {Array<TransactionPostingEntries>}
98
+ * Currency
99
+ * @type {string}
94
100
  * @memberof UpdateProduct
95
101
  */
96
- transactionPostingEntries?: Array<TransactionPostingEntries>;
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,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"}
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': value['transactionPostingEntries'] == null ? undefined : (value['transactionPostingEntries'].map(transaction_posting_entries_1.TransactionPostingEntriesToJSON)),
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managespace/sdk",
3
- "version": "0.0.215",
3
+ "version": "0.0.217",
4
4
  "scripts": {
5
5
  "dev": "tsc -w --preserveWatchOutput",
6
6
  "build": "tsc",
@@ -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
  };
@@ -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,76 @@ export interface UpdateProduct {
58
64
  */
59
65
  description?: string;
60
66
  /**
61
- * List of custom fields
62
- * @type {object}
67
+ * The price of the product in the lowest denomination of the currency
68
+ * @type {number}
63
69
  * @memberof UpdateProduct
64
70
  */
65
- customFields?: object;
71
+ price: number;
66
72
  /**
67
- * Code of Chart of Account
73
+ * Revenue Rule ID.
68
74
  * @type {string}
69
75
  * @memberof UpdateProduct
70
76
  */
71
- incomeAccount?: string;
77
+ revenueRuleId: string;
72
78
  /**
73
- * Select which tax group to be used
79
+ * Date revenue will begin to be recognized.
74
80
  * @type {string}
75
81
  * @memberof UpdateProduct
76
82
  */
77
- productTaxGroupName?: string;
83
+ recognitionStartDate: string;
78
84
  /**
79
- * The product name
80
- * @type {string}
85
+ *
86
+ * @type {Array<TransactionPostingEntries>}
81
87
  * @memberof UpdateProduct
82
88
  */
83
- name?: string;
89
+ transactionPostingEntries: Array<TransactionPostingEntries>;
84
90
  /**
85
- * The price of the product in the lowest denomination of the currency
86
- * @type {number}
91
+ * List of custom fields
92
+ * @type {object}
93
+ * @memberof UpdateProduct
94
+ */
95
+ customFields?: object;
96
+ /**
97
+ * Code of Chart of Account
98
+ * @type {string}
87
99
  * @memberof UpdateProduct
88
100
  */
89
- price?: number;
101
+ incomeAccount?: string;
90
102
  /**
91
- * Revenue Rule ID.
103
+ * Date revenue will end to be recognized.
92
104
  * @type {string}
93
105
  * @memberof UpdateProduct
94
106
  */
95
- revenueRuleId?: string;
107
+ recognitionEndDate?: string;
96
108
  /**
97
- * Date revenue will begin to be recognized.
109
+ * Currency
98
110
  * @type {string}
99
111
  * @memberof UpdateProduct
100
112
  */
101
- recognitionStartDate?: string;
113
+ currency?: string;
102
114
  /**
103
- *
104
- * @type {Array<TransactionPostingEntries>}
115
+ * Show revenue schedules
116
+ * @type {boolean}
105
117
  * @memberof UpdateProduct
106
118
  */
107
- transactionPostingEntries?: Array<TransactionPostingEntries>;
119
+ showRevenueSchedules?: boolean;
120
+ /**
121
+ * Select which tax group to be used
122
+ * @type {string}
123
+ * @memberof UpdateProduct
124
+ */
125
+ productTaxGroupName?: string;
108
126
  }
109
127
 
110
128
  /**
111
129
  * Check if a given object implements the UpdateProduct interface.
112
130
  */
113
131
  export function instanceOfUpdateProduct(value: object): value is UpdateProduct {
132
+ if (!('name' in value) || value['name'] === undefined) return false;
133
+ if (!('price' in value) || value['price'] === undefined) return false;
134
+ if (!('revenueRuleId' in value) || value['revenueRuleId'] === undefined) return false;
135
+ if (!('recognitionStartDate' in value) || value['recognitionStartDate'] === undefined) return false;
136
+ if (!('transactionPostingEntries' in value) || value['transactionPostingEntries'] === undefined) return false;
114
137
  return true;
115
138
  }
116
139
 
@@ -124,19 +147,22 @@ export function UpdateProductFromJSONTyped(json: any, ignoreDiscriminator: boole
124
147
  }
125
148
  return {
126
149
 
150
+ 'name': json['name'],
127
151
  'sku': json['sku'] == null ? undefined : json['sku'],
128
152
  'status': json['status'] == null ? undefined : json['status'],
129
153
  'taxable': json['taxable'] == null ? undefined : json['taxable'],
130
154
  'isDefault': json['isDefault'] == null ? undefined : json['isDefault'],
131
155
  'description': json['description'] == null ? undefined : json['description'],
156
+ 'price': json['price'],
157
+ 'revenueRuleId': json['revenueRuleId'],
158
+ 'recognitionStartDate': json['recognitionStartDate'],
159
+ 'transactionPostingEntries': ((json['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesFromJSON)),
132
160
  'customFields': json['customFields'] == null ? undefined : json['customFields'],
133
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'],
134
165
  '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
166
  };
141
167
  }
142
168
 
@@ -151,19 +177,22 @@ export function UpdateProductToJSONTyped(value?: UpdateProduct | null, ignoreDis
151
177
 
152
178
  return {
153
179
 
180
+ 'name': value['name'],
154
181
  'sku': value['sku'],
155
182
  'status': value['status'],
156
183
  'taxable': value['taxable'],
157
184
  'isDefault': value['isDefault'],
158
185
  'description': value['description'],
159
- 'customFields': value['customFields'],
160
- 'incomeAccount': value['incomeAccount'],
161
- 'productTaxGroupName': value['productTaxGroupName'],
162
- 'name': value['name'],
163
186
  'price': value['price'],
164
187
  'revenueRuleId': value['revenueRuleId'],
165
188
  'recognitionStartDate': value['recognitionStartDate'],
166
- 'transactionPostingEntries': value['transactionPostingEntries'] == null ? undefined : ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
189
+ 'transactionPostingEntries': ((value['transactionPostingEntries'] as Array<any>).map(TransactionPostingEntriesToJSON)),
190
+ 'customFields': value['customFields'],
191
+ 'incomeAccount': value['incomeAccount'],
192
+ 'recognitionEndDate': value['recognitionEndDate'],
193
+ 'currency': value['currency'],
194
+ 'showRevenueSchedules': value['showRevenueSchedules'],
195
+ 'productTaxGroupName': value['productTaxGroupName'],
167
196
  };
168
197
  }
169
198