@colijnit/transactionapi 1.1.8 → 1.1.11
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/build/enum/data-service-method.enum.d.ts +2 -1
- package/build/enum/data-service-method.enum.js +1 -0
- package/build/enum/master-data-object-name.enum.d.ts +3 -1
- package/build/enum/master-data-object-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +6 -1
- package/build/enum/public-service-method.js +5 -0
- package/build/enum/transaction-method.enum.d.ts +1 -0
- package/build/enum/transaction-method.enum.js +1 -0
- package/build/ione-api-transaction.d.ts +4 -0
- package/build/model/cash-register.d.ts +13 -0
- package/build/model/cash-register.js +25 -0
- package/build/model/customer-group.bo.d.ts +6 -0
- package/build/model/customer-group.bo.js +36 -0
- package/build/model/set-transaction-delivery-options-request.bo.d.ts +7 -0
- package/build/model/set-transaction-delivery-options-request.bo.js +4 -0
- package/build/model/transaction-add-text-line-request.bo.d.ts +10 -0
- package/build/model/transaction-add-text-line-request.bo.js +38 -0
- package/build/model/transaction-line-info.bo.d.ts +2 -0
- package/build/model/transaction-line-info.bo.js +12 -0
- package/build/transaction-auth.d.ts +6 -1
- package/build/transaction-auth.js +316 -418
- package/build/transaction-public.d.ts +5 -0
- package/build/transaction-public.js +43 -1
- package/build/transaction.d.ts +4 -0
- package/build/transaction.js +12 -0
- package/build/transaction.unit.test.js +81 -7
- package/package.json +7 -4
|
@@ -126,396 +126,311 @@ var TransactionAuth = (function (_super) {
|
|
|
126
126
|
};
|
|
127
127
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
128
128
|
};
|
|
129
|
+
TransactionAuth.prototype.getCashRegisters = function (branch, group) {
|
|
130
|
+
var params = {};
|
|
131
|
+
if (branch !== undefined && branch !== null) {
|
|
132
|
+
params.branchNumber = branch;
|
|
133
|
+
}
|
|
134
|
+
if (group !== undefined && group !== null) {
|
|
135
|
+
params.cashRegistry = group;
|
|
136
|
+
}
|
|
137
|
+
return this.selectMultiple(ModuleName.Transaction, 'CashRegister', undefined, params);
|
|
138
|
+
};
|
|
129
139
|
TransactionAuth.prototype.getCountries = function () {
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
140
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.Country);
|
|
141
|
+
};
|
|
142
|
+
TransactionAuth.prototype.getCustomerGroups = function () {
|
|
143
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.CustomerGroup);
|
|
144
|
+
};
|
|
145
|
+
TransactionAuth.prototype.commit = function () {
|
|
146
|
+
return this._call(DataServiceMethod.Commit, {}, BackendServiceName.DatasessionService);
|
|
135
147
|
};
|
|
136
148
|
TransactionAuth.prototype.getPrivacySettings = function () {
|
|
137
|
-
return
|
|
138
|
-
return __generator(this, function (_a) {
|
|
139
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PrivacySettingDTO)];
|
|
140
|
-
});
|
|
141
|
-
});
|
|
149
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PrivacySettingDTO);
|
|
142
150
|
};
|
|
143
151
|
TransactionAuth.prototype.getRelationPrivacySettings = function () {
|
|
144
|
-
return
|
|
145
|
-
return __generator(this, function (_a) {
|
|
146
|
-
return [2, this.getPrivacySettings()];
|
|
147
|
-
});
|
|
148
|
-
});
|
|
152
|
+
return this.getPrivacySettings();
|
|
149
153
|
};
|
|
150
154
|
TransactionAuth.prototype.getCommissionCodes = function (languageCode) {
|
|
151
|
-
return
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
return [2, this._getDomainCollection(languageCode, DomainName.CommissionCode)];
|
|
154
|
-
});
|
|
155
|
-
});
|
|
155
|
+
return this._getDomainCollection(languageCode, DomainName.CommissionCode);
|
|
156
156
|
};
|
|
157
157
|
TransactionAuth.prototype.getInOutCollection = function (languageCode) {
|
|
158
|
-
return
|
|
159
|
-
return __generator(this, function (_a) {
|
|
160
|
-
return [2, this._getDomainCollection(languageCode, DomainName.InOutCollection)];
|
|
161
|
-
});
|
|
162
|
-
});
|
|
158
|
+
return this._getDomainCollection(languageCode, DomainName.InOutCollection);
|
|
163
159
|
};
|
|
164
160
|
TransactionAuth.prototype.getTextTypes = function (languageCode) {
|
|
165
|
-
return
|
|
166
|
-
return __generator(this, function (_a) {
|
|
167
|
-
return [2, this._getDomainCollection(languageCode, DomainName.TextType)];
|
|
168
|
-
});
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
172
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var params;
|
|
174
|
-
return __generator(this, function (_a) {
|
|
175
|
-
params = {
|
|
176
|
-
domainName: domainName,
|
|
177
|
-
language: languageCode
|
|
178
|
-
};
|
|
179
|
-
return [2, this.selectMultiple(ModuleName.General, MasterDataObjectName.CoDomainValue, "", params)];
|
|
180
|
-
});
|
|
181
|
-
});
|
|
161
|
+
return this._getMultipleDomainCollection(languageCode, DomainName.TextType);
|
|
182
162
|
};
|
|
183
163
|
TransactionAuth.prototype.getStandardTexts = function (languageCode) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
refCursorAsArray: true
|
|
195
|
-
};
|
|
196
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
197
|
-
});
|
|
198
|
-
});
|
|
164
|
+
var params = {
|
|
165
|
+
language: languageCode
|
|
166
|
+
};
|
|
167
|
+
var data = {
|
|
168
|
+
moduleName: ModuleName.Transaction,
|
|
169
|
+
methodName: TransactionMethod.GetStandardTextsNoHeadOrFeet,
|
|
170
|
+
parameterValues: params,
|
|
171
|
+
refCursorAsArray: true
|
|
172
|
+
};
|
|
173
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
199
174
|
};
|
|
200
175
|
TransactionAuth.prototype.getTransactionArticleWarehouses = function (goodId, branchNr) {
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
goodId: goodId
|
|
207
|
-
};
|
|
208
|
-
return [2, this.selectMultiple(ModuleName.Transaction, MasterDataObjectName.WareHouse, "", params)];
|
|
209
|
-
});
|
|
210
|
-
});
|
|
176
|
+
var params = {
|
|
177
|
+
branchNr: branchNr,
|
|
178
|
+
goodId: goodId
|
|
179
|
+
};
|
|
180
|
+
return this.selectMultiple(ModuleName.Transaction, MasterDataObjectName.WareHouse, "", params);
|
|
211
181
|
};
|
|
212
182
|
TransactionAuth.prototype.getMarketingCodes = function () {
|
|
213
|
-
return
|
|
214
|
-
return __generator(this, function (_a) {
|
|
215
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.MarketingCode)];
|
|
216
|
-
});
|
|
217
|
-
});
|
|
183
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.MarketingCode);
|
|
218
184
|
};
|
|
219
185
|
TransactionAuth.prototype.createTransaction = function (kind, branchNr) {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
refCursorAsArray: true
|
|
232
|
-
};
|
|
233
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
234
|
-
});
|
|
235
|
-
});
|
|
186
|
+
var params = {
|
|
187
|
+
transactionKind: kind,
|
|
188
|
+
branchNr: branchNr
|
|
189
|
+
};
|
|
190
|
+
var data = {
|
|
191
|
+
moduleName: ModuleName.Transaction,
|
|
192
|
+
methodName: TransactionMethod.CreateTransaction,
|
|
193
|
+
parameterValues: params,
|
|
194
|
+
refCursorAsArray: true
|
|
195
|
+
};
|
|
196
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
236
197
|
};
|
|
237
198
|
TransactionAuth.prototype.getTransactionByNrAndKind = function (kind, transactionNo) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
refCursorAsArray: true
|
|
250
|
-
};
|
|
251
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
252
|
-
});
|
|
253
|
-
});
|
|
199
|
+
var params = {
|
|
200
|
+
transactionNr: transactionNo,
|
|
201
|
+
transactionKind: kind
|
|
202
|
+
};
|
|
203
|
+
var data = {
|
|
204
|
+
moduleName: ModuleName.Transaction,
|
|
205
|
+
methodName: TransactionMethod.GetTransactionByNrAndKind,
|
|
206
|
+
parameterValues: params,
|
|
207
|
+
refCursorAsArray: true
|
|
208
|
+
};
|
|
209
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
254
210
|
};
|
|
255
211
|
TransactionAuth.prototype.getTransactionById = function (transactionId) {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}
|
|
212
|
+
var params = {
|
|
213
|
+
transactionId: transactionId
|
|
214
|
+
};
|
|
215
|
+
var data = {
|
|
216
|
+
moduleName: ModuleName.Transaction,
|
|
217
|
+
methodName: TransactionMethod.GetTransactionById,
|
|
218
|
+
parameterValues: params,
|
|
219
|
+
refCursorAsArray: true
|
|
220
|
+
};
|
|
221
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
222
|
+
};
|
|
223
|
+
TransactionAuth.prototype.getArticleBoundTextLinesOfArticleLine = function (articleLineUuid) {
|
|
224
|
+
var params = {
|
|
225
|
+
articleLineUuid: articleLineUuid
|
|
226
|
+
};
|
|
227
|
+
var data = {
|
|
228
|
+
moduleName: ModuleName.Transaction,
|
|
229
|
+
methodName: TransactionMethod.GetArticleBoundTextLinesOfArticleLine,
|
|
230
|
+
parameterValues: params,
|
|
231
|
+
refCursorAsArray: true
|
|
232
|
+
};
|
|
233
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
271
234
|
};
|
|
272
235
|
TransactionAuth.prototype.addRelationToTransaction = function (uuid, relationId) {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
refCursorAsArray: true,
|
|
285
|
-
};
|
|
286
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
287
|
-
});
|
|
288
|
-
});
|
|
236
|
+
var params = {
|
|
237
|
+
transactionUuid: uuid,
|
|
238
|
+
relationId: relationId
|
|
239
|
+
};
|
|
240
|
+
var data = {
|
|
241
|
+
moduleName: ModuleName.Transaction,
|
|
242
|
+
methodName: TransactionMethod.SetTransactionRelation,
|
|
243
|
+
parameterValues: params,
|
|
244
|
+
refCursorAsArray: true,
|
|
245
|
+
};
|
|
246
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
289
247
|
};
|
|
290
248
|
TransactionAuth.prototype.saveTransaction = function (uuid) {
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
refCursorAsArray: true,
|
|
302
|
-
};
|
|
303
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
304
|
-
});
|
|
305
|
-
});
|
|
249
|
+
var params = {
|
|
250
|
+
uuid: uuid
|
|
251
|
+
};
|
|
252
|
+
var data = {
|
|
253
|
+
moduleName: ModuleName.Transaction,
|
|
254
|
+
methodName: TransactionMethod.SaveTransaction,
|
|
255
|
+
parameterValues: params,
|
|
256
|
+
refCursorAsArray: true,
|
|
257
|
+
};
|
|
258
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
306
259
|
};
|
|
307
260
|
TransactionAuth.prototype.setTransactionDeliveryOptions = function (request) {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
refCursorAsArray: true,
|
|
331
|
-
};
|
|
332
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
333
|
-
});
|
|
334
|
-
});
|
|
261
|
+
var params = {
|
|
262
|
+
transactionUuid: request.transactionUuid,
|
|
263
|
+
deliveryMethod: request.deliveryMethod,
|
|
264
|
+
deliveryOptions: request.deliveryOptions,
|
|
265
|
+
deliveryDate: request.deliveryDate,
|
|
266
|
+
allowPartialDelivery: request.allowPartialDelivery,
|
|
267
|
+
preferredDeliveryDate: request.preferredDeliveryDate,
|
|
268
|
+
preferredDeliveryDate2: request.preferredDeliveryDate2,
|
|
269
|
+
remark: request.remark,
|
|
270
|
+
marketingCode: request.marketingCode,
|
|
271
|
+
relationReference: request.relationReference,
|
|
272
|
+
ownReference: request.ownReference,
|
|
273
|
+
transactionAddress: request.transactionAddress,
|
|
274
|
+
invoiceAddress: request.invoiceAddress,
|
|
275
|
+
};
|
|
276
|
+
var data = {
|
|
277
|
+
moduleName: ModuleName.Transaction,
|
|
278
|
+
methodName: TransactionMethod.SetTransactionDeliveryOptions,
|
|
279
|
+
parameterValues: params,
|
|
280
|
+
refCursorAsArray: true,
|
|
281
|
+
};
|
|
282
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
335
283
|
};
|
|
336
284
|
TransactionAuth.prototype.addTransactionLine = function (uuid, lineType, articleNumber, amount, warehouseNr, commissionCode, isReturn, aboveLineNr, belowLineNr) {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
refCursorAsArray: true,
|
|
356
|
-
};
|
|
357
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
358
|
-
});
|
|
359
|
-
});
|
|
285
|
+
var params = {
|
|
286
|
+
transactionUuid: uuid,
|
|
287
|
+
articleNumber: articleNumber,
|
|
288
|
+
lineType: lineType,
|
|
289
|
+
amount: amount,
|
|
290
|
+
warehouseNr: warehouseNr,
|
|
291
|
+
commissionCode: commissionCode,
|
|
292
|
+
isReturn: isReturn,
|
|
293
|
+
aboveLineNr: aboveLineNr,
|
|
294
|
+
belowLineNr: belowLineNr
|
|
295
|
+
};
|
|
296
|
+
var data = {
|
|
297
|
+
moduleName: ModuleName.Transaction,
|
|
298
|
+
methodName: TransactionMethod.AddTransactionLine,
|
|
299
|
+
parameterValues: params,
|
|
300
|
+
refCursorAsArray: true,
|
|
301
|
+
};
|
|
302
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
360
303
|
};
|
|
361
304
|
TransactionAuth.prototype.addTextLineToTransaction = function (uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
refCursorAsArray: true,
|
|
379
|
-
};
|
|
380
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
381
|
-
});
|
|
382
|
-
});
|
|
305
|
+
var params = {
|
|
306
|
+
transactionUuid: uuid,
|
|
307
|
+
showOnDocuments: showOnDocuments,
|
|
308
|
+
text: text,
|
|
309
|
+
articleBound: articleBound,
|
|
310
|
+
refArticleLineNr: refArticleLineNr,
|
|
311
|
+
aboveLineNr: aboveLineNr,
|
|
312
|
+
belowLineNr: belowLineNr
|
|
313
|
+
};
|
|
314
|
+
var data = {
|
|
315
|
+
moduleName: ModuleName.Transaction,
|
|
316
|
+
methodName: TransactionMethod.AddTextLineToTransaction,
|
|
317
|
+
parameterValues: params,
|
|
318
|
+
refCursorAsArray: true,
|
|
319
|
+
};
|
|
320
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
383
321
|
};
|
|
384
322
|
TransactionAuth.prototype.changeLineSequence = function (uuid, lineUuid, aboveLineNr, belowLineNr) {
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
refCursorAsArray: true,
|
|
399
|
-
};
|
|
400
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
401
|
-
});
|
|
402
|
-
});
|
|
323
|
+
var params = {
|
|
324
|
+
lineUuid: lineUuid,
|
|
325
|
+
transactionUuid: uuid,
|
|
326
|
+
aboveLineNr: aboveLineNr,
|
|
327
|
+
belowLineNr: belowLineNr
|
|
328
|
+
};
|
|
329
|
+
var data = {
|
|
330
|
+
moduleName: ModuleName.Transaction,
|
|
331
|
+
methodName: TransactionMethod.ChangeLineSequence,
|
|
332
|
+
parameterValues: params,
|
|
333
|
+
refCursorAsArray: true,
|
|
334
|
+
};
|
|
335
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
403
336
|
};
|
|
404
337
|
TransactionAuth.prototype.cancelAddTransactionLine = function (lineUuid) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
refCursorAsArray: true,
|
|
416
|
-
};
|
|
417
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
418
|
-
});
|
|
419
|
-
});
|
|
338
|
+
var params = {
|
|
339
|
+
lineUuid: lineUuid
|
|
340
|
+
};
|
|
341
|
+
var data = {
|
|
342
|
+
moduleName: ModuleName.Transaction,
|
|
343
|
+
methodName: TransactionMethod.CancelAddTransactionLine,
|
|
344
|
+
parameterValues: params,
|
|
345
|
+
refCursorAsArray: true,
|
|
346
|
+
};
|
|
347
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
420
348
|
};
|
|
421
349
|
TransactionAuth.prototype.deleteTransactionLine = function (transactionUuid, lineUuid) {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
refCursorAsArray: true,
|
|
434
|
-
};
|
|
435
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
436
|
-
});
|
|
437
|
-
});
|
|
350
|
+
var params = {
|
|
351
|
+
transactionUuid: transactionUuid,
|
|
352
|
+
lineUuid: lineUuid,
|
|
353
|
+
};
|
|
354
|
+
var data = {
|
|
355
|
+
moduleName: ModuleName.Transaction,
|
|
356
|
+
methodName: TransactionMethod.DeleteTransactionLine,
|
|
357
|
+
parameterValues: params,
|
|
358
|
+
refCursorAsArray: true,
|
|
359
|
+
};
|
|
360
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
438
361
|
};
|
|
439
362
|
TransactionAuth.prototype.changeTransactionLineQuantity = function (transactionUuid, lineUuid, quantity) {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
refCursorAsArray: true,
|
|
453
|
-
};
|
|
454
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
455
|
-
});
|
|
456
|
-
});
|
|
363
|
+
var params = {
|
|
364
|
+
transactionUuid: transactionUuid,
|
|
365
|
+
transactionLineUuid: lineUuid,
|
|
366
|
+
newQuantity: quantity
|
|
367
|
+
};
|
|
368
|
+
var data = {
|
|
369
|
+
moduleName: ModuleName.Transaction,
|
|
370
|
+
methodName: TransactionMethod.ChangeTransactionLineQuantity,
|
|
371
|
+
parameterValues: params,
|
|
372
|
+
refCursorAsArray: true,
|
|
373
|
+
};
|
|
374
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
457
375
|
};
|
|
458
376
|
TransactionAuth.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
refCursorAsArray: true,
|
|
467
|
-
};
|
|
468
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
469
|
-
});
|
|
470
|
-
});
|
|
377
|
+
var data = {
|
|
378
|
+
moduleName: ModuleName.Transaction,
|
|
379
|
+
methodName: TransactionMethod.ResolvePendingLineReason,
|
|
380
|
+
parameterValues: pendingLineValues,
|
|
381
|
+
refCursorAsArray: true,
|
|
382
|
+
};
|
|
383
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
471
384
|
};
|
|
472
385
|
TransactionAuth.prototype.getCustomerFullObject = function (relationNo) {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
objectId: relationNo
|
|
481
|
-
};
|
|
482
|
-
return [2, this._call(DataServiceMethod.SelectSingleObject, data)];
|
|
483
|
-
});
|
|
484
|
-
});
|
|
386
|
+
var data = {
|
|
387
|
+
moduleName: ModuleName.Relation,
|
|
388
|
+
objectName: RelationObjectName.CustomerFullObject,
|
|
389
|
+
refCursorAsArray: true,
|
|
390
|
+
objectId: relationNo
|
|
391
|
+
};
|
|
392
|
+
return this._call(DataServiceMethod.SelectSingleObject, data);
|
|
485
393
|
};
|
|
486
394
|
TransactionAuth.prototype.getRelationNumber = function (relationId) {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
refCursorAsArray: true
|
|
498
|
-
};
|
|
499
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
500
|
-
});
|
|
501
|
-
});
|
|
395
|
+
var params = {
|
|
396
|
+
relationId: relationId
|
|
397
|
+
};
|
|
398
|
+
var data = {
|
|
399
|
+
moduleName: ModuleName.Relation,
|
|
400
|
+
methodName: RelationObjectName.GetRelationNumber,
|
|
401
|
+
parameterValues: params,
|
|
402
|
+
refCursorAsArray: true
|
|
403
|
+
};
|
|
404
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
502
405
|
};
|
|
503
406
|
TransactionAuth.prototype.getSequenceValue = function (sequenceName, noSequence) {
|
|
504
407
|
if (noSequence === void 0) { noSequence = false; }
|
|
505
408
|
return __awaiter(this, void 0, void 0, function () {
|
|
506
|
-
var params, data;
|
|
409
|
+
var params, data, response;
|
|
507
410
|
return __generator(this, function (_a) {
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
411
|
+
switch (_a.label) {
|
|
412
|
+
case 0:
|
|
413
|
+
params = {
|
|
414
|
+
seqName: sequenceName,
|
|
415
|
+
noSequence: noSequence
|
|
416
|
+
};
|
|
417
|
+
data = {
|
|
418
|
+
moduleName: ModuleName.General,
|
|
419
|
+
methodName: GeneralMethod.GetSequenceValue,
|
|
420
|
+
parameterValues: params,
|
|
421
|
+
refCursorAsArray: true
|
|
422
|
+
};
|
|
423
|
+
return [4, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
424
|
+
case 1:
|
|
425
|
+
response = _a.sent();
|
|
426
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
427
|
+
return [2, response.resultObject];
|
|
428
|
+
}
|
|
429
|
+
else {
|
|
430
|
+
return [2, null];
|
|
431
|
+
}
|
|
432
|
+
return [2];
|
|
433
|
+
}
|
|
519
434
|
});
|
|
520
435
|
});
|
|
521
436
|
};
|
|
@@ -542,76 +457,63 @@ var TransactionAuth = (function (_super) {
|
|
|
542
457
|
});
|
|
543
458
|
};
|
|
544
459
|
TransactionAuth.prototype.updateCustomer = function (customer) {
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
object: this._boSerializer.prepareBusinessObjectForSend(customer),
|
|
553
|
-
};
|
|
554
|
-
return [2, this._call(DataServiceMethod.UpdateObject, data)];
|
|
555
|
-
});
|
|
556
|
-
});
|
|
460
|
+
var data = {
|
|
461
|
+
moduleName: ModuleName.Relation,
|
|
462
|
+
objectName: RelationObjectName.CustomerFullObject,
|
|
463
|
+
methodName: DataServiceMethod.UpdateObject,
|
|
464
|
+
object: this._boSerializer.prepareBusinessObjectForSend(customer),
|
|
465
|
+
};
|
|
466
|
+
return this._call(DataServiceMethod.UpdateObject, data);
|
|
557
467
|
};
|
|
558
468
|
TransactionAuth.prototype.getDeliveryMethods = function () {
|
|
559
|
-
return
|
|
560
|
-
return __generator(this, function (_a) {
|
|
561
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryMethod, OperationName.GetAll)];
|
|
562
|
-
});
|
|
563
|
-
});
|
|
469
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryMethod, OperationName.GetAll);
|
|
564
470
|
};
|
|
565
471
|
TransactionAuth.prototype.getDeliveryOptions = function () {
|
|
566
|
-
return
|
|
567
|
-
return __generator(this, function (_a) {
|
|
568
|
-
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryOption)];
|
|
569
|
-
});
|
|
570
|
-
});
|
|
472
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryOption);
|
|
571
473
|
};
|
|
572
474
|
TransactionAuth.prototype.getPostalCodeRetrieval = function (postalCode, houseNumber) {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
refCursorAsArray: true
|
|
585
|
-
};
|
|
586
|
-
return [2, this._call(DataServiceMethod.ExecuteMethod, data)];
|
|
587
|
-
});
|
|
588
|
-
});
|
|
475
|
+
var params = {
|
|
476
|
+
postalCode: postalCode,
|
|
477
|
+
houseNumber: houseNumber
|
|
478
|
+
};
|
|
479
|
+
var data = {
|
|
480
|
+
moduleName: ModuleName.Relation,
|
|
481
|
+
methodName: GeneralMethod.PostalCodeRetrieval,
|
|
482
|
+
parameterValues: params,
|
|
483
|
+
refCursorAsArray: true
|
|
484
|
+
};
|
|
485
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
589
486
|
};
|
|
590
487
|
TransactionAuth.prototype.getRelationListObjects = function (relationRequest) {
|
|
591
|
-
return
|
|
592
|
-
return __generator(this, function (_a) {
|
|
593
|
-
return [2, this.selectMultiple(ModuleName.Relation, "RelationListObject", undefined, relationRequest)];
|
|
594
|
-
});
|
|
595
|
-
});
|
|
488
|
+
return this.selectMultiple(ModuleName.Relation, "RelationListObject", undefined, relationRequest);
|
|
596
489
|
};
|
|
597
490
|
TransactionAuth.prototype.setRelationByUser = function (uuid, username, password) {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
491
|
+
var paramValues = {
|
|
492
|
+
uuid: uuid,
|
|
493
|
+
username: username,
|
|
494
|
+
password: password
|
|
495
|
+
};
|
|
496
|
+
var data = {
|
|
497
|
+
moduleName: ModuleName.Transaction,
|
|
498
|
+
methodName: TransactionMethod.SetRelationByUser,
|
|
499
|
+
parameterValues: paramValues,
|
|
500
|
+
refCursorAsArray: true
|
|
501
|
+
};
|
|
502
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
503
|
+
};
|
|
504
|
+
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
505
|
+
var params = {
|
|
506
|
+
domainName: domainName,
|
|
507
|
+
language: languageCode
|
|
508
|
+
};
|
|
509
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoDomainValue, "", params);
|
|
510
|
+
};
|
|
511
|
+
TransactionAuth.prototype._getMultipleDomainCollection = function (languageCode, domainName) {
|
|
512
|
+
var params = {
|
|
513
|
+
domainName: domainName,
|
|
514
|
+
language: languageCode
|
|
515
|
+
};
|
|
516
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoMultipleValue, "", params);
|
|
615
517
|
};
|
|
616
518
|
TransactionAuth.prototype.callGetNodeData = function (params) {
|
|
617
519
|
var data = {
|
|
@@ -651,29 +553,25 @@ var TransactionAuth = (function (_super) {
|
|
|
651
553
|
return response && response.data && response.data.validationResult && response.data.validationResult.success === true;
|
|
652
554
|
};
|
|
653
555
|
TransactionAuth.prototype.selectMultiple = function (moduleName, objectName, operationName, parameterValues) {
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
});
|
|
670
|
-
});
|
|
671
|
-
};
|
|
672
|
-
TransactionAuth.prototype._call = function (method, data, showLoader) {
|
|
556
|
+
var stronglyTypedResults = [];
|
|
557
|
+
var data = {
|
|
558
|
+
moduleName: moduleName,
|
|
559
|
+
objectName: objectName
|
|
560
|
+
};
|
|
561
|
+
if (operationName) {
|
|
562
|
+
data.operationName = operationName;
|
|
563
|
+
}
|
|
564
|
+
if (parameterValues) {
|
|
565
|
+
data.parameterValues = parameterValues;
|
|
566
|
+
}
|
|
567
|
+
return this._call(DataServiceMethod.SelectMultipleObjects, data);
|
|
568
|
+
};
|
|
569
|
+
TransactionAuth.prototype._call = function (method, data, service, showLoader) {
|
|
570
|
+
if (service === void 0) { service = BackendServiceName.DataService; }
|
|
673
571
|
if (showLoader === void 0) { showLoader = false; }
|
|
674
572
|
return __awaiter(this, void 0, void 0, function () {
|
|
675
573
|
return __generator(this, function (_a) {
|
|
676
|
-
return [2, this.connector.call(method, data, showLoader,
|
|
574
|
+
return [2, this.connector.call(method, data, showLoader, service, this.endPoint)];
|
|
677
575
|
});
|
|
678
576
|
});
|
|
679
577
|
};
|