@colijnit/transactionapi 1.1.9 → 1.1.12
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/discount-type.enum.d.ts +9 -0
- package/build/enum/discount-type.enum.js +10 -0
- package/build/enum/master-data-object-name.enum.d.ts +4 -1
- package/build/enum/master-data-object-name.enum.js +3 -0
- package/build/enum/operation-name.enum.d.ts +3 -1
- package/build/enum/operation-name.enum.js +2 -0
- package/build/enum/public-service-method.d.ts +4 -1
- package/build/enum/public-service-method.js +3 -0
- package/build/enum/transaction-method.enum.d.ts +18 -4
- package/build/enum/transaction-method.enum.js +17 -3
- package/build/ione-api-transaction.d.ts +36 -4
- package/build/model/cash-register.d.ts +13 -0
- package/build/model/cash-register.js +25 -0
- package/build/model/change-line-assembly-time-request.d.ts +5 -0
- package/build/model/change-line-assembly-time-request.js +6 -0
- package/build/model/change-line-collection-code-request.d.ts +5 -0
- package/build/model/change-line-collection-code-request.js +6 -0
- package/build/model/change-line-commission-code-request.d.ts +5 -0
- package/build/model/change-line-commission-code-request.js +6 -0
- package/build/model/change-line-delivery-date-request.d.ts +5 -0
- package/build/model/change-line-delivery-date-request.js +20 -0
- package/build/model/change-line-delivery-method-request.d.ts +5 -0
- package/build/model/change-line-delivery-method-request.js +6 -0
- package/build/model/change-line-discount-request.d.ts +8 -0
- package/build/model/change-line-discount-request.js +6 -0
- package/build/model/change-line-edit-time-request.d.ts +5 -0
- package/build/model/change-line-edit-time-request.js +6 -0
- package/build/model/change-line-price-list-request.d.ts +5 -0
- package/build/model/change-line-price-list-request.js +6 -0
- package/build/model/change-line-price-request.d.ts +5 -0
- package/build/model/change-line-price-request.js +6 -0
- package/build/model/change-line-quantity-request.d.ts +5 -0
- package/build/model/change-line-quantity-request.js +6 -0
- package/build/model/change-line-reference-request.d.ts +5 -0
- package/build/model/change-line-reference-request.js +6 -0
- package/build/model/change-line-sequence-request.d.ts +6 -0
- package/build/model/change-line-sequence-request.js +6 -0
- package/build/model/change-line-supplier-article-number-request.d.ts +5 -0
- package/build/model/change-line-supplier-article-number-request.js +6 -0
- package/build/model/change-line-vat-request.d.ts +5 -0
- package/build/model/change-line-vat-request.js +6 -0
- package/build/model/change-line-warehouse-request.d.ts +5 -0
- package/build/model/change-line-warehouse-request.js +6 -0
- package/build/model/customer-full-object.bo.d.ts +1 -2
- package/build/model/customer-full-object.bo.js +0 -6
- package/build/model/price-list.d.ts +2 -0
- package/build/model/price-list.js +18 -0
- package/build/model/resolve-pending-reason-request.bo.d.ts +1 -1
- package/build/model/resolve-pending-reason-request.bo.js +4 -4
- 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-info-response.bo.js +2 -0
- package/build/model/transaction-line-info.bo.d.ts +26 -3
- package/build/model/transaction-line-info.bo.js +12 -0
- package/build/model/vat.d.ts +15 -0
- package/build/model/vat.js +43 -0
- package/build/transaction-auth.d.ts +38 -5
- package/build/transaction-auth.js +179 -25
- package/build/transaction-public.d.ts +37 -4
- package/build/transaction-public.js +105 -18
- package/build/transaction.d.ts +36 -4
- package/build/transaction.js +56 -4
- package/build/transaction.unit.test.js +86 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
function
|
|
1
|
+
var ResolveLinePendingReasonRequest = (function () {
|
|
2
|
+
function ResolveLinePendingReasonRequest(uuid, reason, reasonType, confirmation, warehouseNr, commissionCode, textualUserInput) {
|
|
3
3
|
if (confirmation === void 0) { confirmation = false; }
|
|
4
4
|
if (warehouseNr === void 0) { warehouseNr = undefined; }
|
|
5
5
|
if (commissionCode === void 0) { commissionCode = undefined; }
|
|
@@ -12,6 +12,6 @@ var ResolvePendingLineReasonRequest = (function () {
|
|
|
12
12
|
this.commissionCode = commissionCode;
|
|
13
13
|
this.textualUserInput = textualUserInput;
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return ResolveLinePendingReasonRequest;
|
|
16
16
|
}());
|
|
17
|
-
export {
|
|
17
|
+
export { ResolveLinePendingReasonRequest };
|
|
@@ -13,4 +13,11 @@ export declare class SetTransactionDeliveryOptionsRequest extends BusinessObject
|
|
|
13
13
|
ownReference: string;
|
|
14
14
|
transactionAddress: number;
|
|
15
15
|
invoiceAddress: number;
|
|
16
|
+
confirmedDeliveryDate: Date;
|
|
17
|
+
downpaymentPercentage: number;
|
|
18
|
+
downpaymentAmount: number;
|
|
19
|
+
downpaymentBR: number;
|
|
20
|
+
downpaymentOnDelivery: number;
|
|
21
|
+
branch: string;
|
|
22
|
+
relationAdmin: string;
|
|
16
23
|
}
|
|
@@ -35,6 +35,10 @@ var SetTransactionDeliveryOptionsRequest = (function (_super) {
|
|
|
35
35
|
DateField(),
|
|
36
36
|
__metadata("design:type", Date)
|
|
37
37
|
], SetTransactionDeliveryOptionsRequest.prototype, "preferredDeliveryDate", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
DateField(),
|
|
40
|
+
__metadata("design:type", Date)
|
|
41
|
+
], SetTransactionDeliveryOptionsRequest.prototype, "confirmedDeliveryDate", void 0);
|
|
38
42
|
return SetTransactionDeliveryOptionsRequest;
|
|
39
43
|
}(BusinessObject));
|
|
40
44
|
export { SetTransactionDeliveryOptionsRequest };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
export declare class TransactionAddTextLineRequest extends BusinessObject {
|
|
3
|
+
transactionUuid: string;
|
|
4
|
+
showOnDocuments: number;
|
|
5
|
+
text: string;
|
|
6
|
+
articleBound: boolean;
|
|
7
|
+
refArticleLineNr: number;
|
|
8
|
+
aboveLineNr: number;
|
|
9
|
+
belowLineNr: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
import { BusinessObject } from "./business-object";
|
|
21
|
+
import { BusinessObjectData } from "../factory/decorators/business-object-data.decorator";
|
|
22
|
+
import { DataMapping } from "../enum/data-mapping.enum";
|
|
23
|
+
var TransactionAddTextLineRequest = (function (_super) {
|
|
24
|
+
__extends(TransactionAddTextLineRequest, _super);
|
|
25
|
+
function TransactionAddTextLineRequest() {
|
|
26
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27
|
+
_this.articleBound = false;
|
|
28
|
+
return _this;
|
|
29
|
+
}
|
|
30
|
+
TransactionAddTextLineRequest = __decorate([
|
|
31
|
+
BusinessObjectData({
|
|
32
|
+
name: "TransactionLineInfo",
|
|
33
|
+
mapping: DataMapping.Transaction,
|
|
34
|
+
})
|
|
35
|
+
], TransactionAddTextLineRequest);
|
|
36
|
+
return TransactionAddTextLineRequest;
|
|
37
|
+
}(BusinessObject));
|
|
38
|
+
export { TransactionAddTextLineRequest };
|
|
@@ -30,7 +30,9 @@ var TransactionInfoResponse = (function (_super) {
|
|
|
30
30
|
__extends(TransactionInfoResponse, _super);
|
|
31
31
|
function TransactionInfoResponse() {
|
|
32
32
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
33
|
+
_this.transactionInfo = new TransactionInfo();
|
|
33
34
|
_this.transactionLines = [];
|
|
35
|
+
_this.transactionTotal = new TransactionTotal();
|
|
34
36
|
_this.lineOperationStatuses = [];
|
|
35
37
|
return _this;
|
|
36
38
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { BusinessObject } from "./business-object";
|
|
2
|
-
import { CommissionCodeType } from "../enum/refcode/commission-code-type.enum";
|
|
3
2
|
import { TransactionLineType } from "../enum/transaction-line-type.enum";
|
|
4
3
|
import { TextKindType } from "../enum/text-kind-type.enum";
|
|
5
4
|
export declare class TransactionLineInfo extends BusinessObject {
|
|
@@ -8,27 +7,50 @@ export declare class TransactionLineInfo extends BusinessObject {
|
|
|
8
7
|
previousLineNr: number;
|
|
9
8
|
nextLineNr: number;
|
|
10
9
|
lineType: TransactionLineType;
|
|
11
|
-
|
|
10
|
+
state: string;
|
|
12
11
|
articleNumber: string;
|
|
12
|
+
articleFreePrice: boolean;
|
|
13
|
+
articleFreeSupplier: boolean;
|
|
14
|
+
articleFreeDescription: boolean;
|
|
15
|
+
articleFreeCommissionCode: boolean;
|
|
13
16
|
amount: number;
|
|
14
17
|
price: number;
|
|
15
18
|
priceListCode: string;
|
|
16
19
|
lineDiscount: number;
|
|
20
|
+
lineDiscountCode: string;
|
|
21
|
+
lineDiscountReason: string;
|
|
17
22
|
quantumDiscount: number;
|
|
23
|
+
quantumDiscountCode: string;
|
|
24
|
+
quantumDiscountReason: string;
|
|
18
25
|
specialDiscount: number;
|
|
26
|
+
specialDiscountCode: string;
|
|
27
|
+
specialDiscountReason: string;
|
|
19
28
|
discountAmount: number;
|
|
29
|
+
discountAmountCode: string;
|
|
30
|
+
discountAmountReason: string;
|
|
20
31
|
surchargeAmount: number;
|
|
21
32
|
assemblyCost: number;
|
|
22
33
|
vatId: number;
|
|
34
|
+
vatCode: string;
|
|
23
35
|
priceDeclaration: string;
|
|
24
36
|
netto: boolean;
|
|
25
37
|
warehouseNumber: number;
|
|
26
|
-
commissionCode:
|
|
38
|
+
commissionCode: string;
|
|
39
|
+
deliveryMethodCode: string;
|
|
40
|
+
deliveryDate: Date;
|
|
41
|
+
assemblyTime: number;
|
|
42
|
+
editTime: number;
|
|
43
|
+
supplierArticleNumber: string;
|
|
44
|
+
reference: string;
|
|
45
|
+
collectionCode: string;
|
|
27
46
|
goodDescription: string;
|
|
28
47
|
grossLineTotal: number;
|
|
29
48
|
netLineTotal: number;
|
|
30
49
|
lineTotalDiscountAmount: number;
|
|
50
|
+
articleBoundConcatenatedText: string;
|
|
51
|
+
hasInvoices: boolean;
|
|
31
52
|
text: string;
|
|
53
|
+
showOnDocuments: number;
|
|
32
54
|
textKind: TextKindType;
|
|
33
55
|
refLineNr: number;
|
|
34
56
|
articleBound: boolean;
|
|
@@ -36,6 +58,7 @@ export declare class TransactionLineInfo extends BusinessObject {
|
|
|
36
58
|
private _configuration;
|
|
37
59
|
salesUnitDecimals: number;
|
|
38
60
|
selected: boolean;
|
|
61
|
+
get articleTestAsArray(): string[];
|
|
39
62
|
get configuration(): string;
|
|
40
63
|
set configuration(value: string);
|
|
41
64
|
configurationReadable: string;
|
|
@@ -31,6 +31,13 @@ var TransactionLineInfo = (function (_super) {
|
|
|
31
31
|
_this.selected = false;
|
|
32
32
|
return _this;
|
|
33
33
|
}
|
|
34
|
+
Object.defineProperty(TransactionLineInfo.prototype, "articleTestAsArray", {
|
|
35
|
+
get: function () {
|
|
36
|
+
return this.articleBoundConcatenatedText.split('\r\n');
|
|
37
|
+
},
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true
|
|
40
|
+
});
|
|
34
41
|
Object.defineProperty(TransactionLineInfo.prototype, "configuration", {
|
|
35
42
|
get: function () {
|
|
36
43
|
return this._configuration;
|
|
@@ -79,6 +86,11 @@ var TransactionLineInfo = (function (_super) {
|
|
|
79
86
|
enumerable: true,
|
|
80
87
|
configurable: true
|
|
81
88
|
});
|
|
89
|
+
__decorate([
|
|
90
|
+
NoDbField(),
|
|
91
|
+
__metadata("design:type", Array),
|
|
92
|
+
__metadata("design:paramtypes", [])
|
|
93
|
+
], TransactionLineInfo.prototype, "articleTestAsArray", null);
|
|
82
94
|
__decorate([
|
|
83
95
|
NoDbField(),
|
|
84
96
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BusinessObject } from "./business-object";
|
|
2
|
+
import { VatType } from "../enum/vat-type.enum";
|
|
3
|
+
export declare class Vat extends BusinessObject {
|
|
4
|
+
vatId: number;
|
|
5
|
+
vatCode: number;
|
|
6
|
+
vatType: VatType;
|
|
7
|
+
percentage: number;
|
|
8
|
+
startDate: Date;
|
|
9
|
+
endDate: Date;
|
|
10
|
+
description: string;
|
|
11
|
+
vatTypedescription: string;
|
|
12
|
+
vatCodeExternal: string;
|
|
13
|
+
ledgers: any;
|
|
14
|
+
getId(): number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
15
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
16
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
17
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
+
};
|
|
20
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
|
+
};
|
|
23
|
+
import { BusinessObject } from "./business-object";
|
|
24
|
+
import { DateField } from "../factory/decorators/date-field.decorator";
|
|
25
|
+
var Vat = (function (_super) {
|
|
26
|
+
__extends(Vat, _super);
|
|
27
|
+
function Vat() {
|
|
28
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
29
|
+
}
|
|
30
|
+
Vat.prototype.getId = function () {
|
|
31
|
+
return this.vatCode;
|
|
32
|
+
};
|
|
33
|
+
__decorate([
|
|
34
|
+
DateField(),
|
|
35
|
+
__metadata("design:type", Date)
|
|
36
|
+
], Vat.prototype, "startDate", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
DateField(),
|
|
39
|
+
__metadata("design:type", Date)
|
|
40
|
+
], Vat.prototype, "endDate", void 0);
|
|
41
|
+
return Vat;
|
|
42
|
+
}(BusinessObject));
|
|
43
|
+
export { Vat };
|
|
@@ -5,14 +5,30 @@ import { SequenceName } from "./enum/sequence-name.enum";
|
|
|
5
5
|
import { TransactionLineType } from "./enum/transaction-line-type.enum";
|
|
6
6
|
import { SetTransactionDeliveryOptionsRequest } from "./model/set-transaction-delivery-options-request.bo";
|
|
7
7
|
import { RelationRequest } from "./model/relation-request";
|
|
8
|
-
import {
|
|
8
|
+
import { ResolveLinePendingReasonRequest } from "./model/resolve-pending-reason-request.bo";
|
|
9
9
|
import { DataServiceResponseData } from "./model/data-service-response-data";
|
|
10
|
+
import { ChangeLineSequenceRequest } from "./model/change-line-sequence-request";
|
|
11
|
+
import { ChangeLineQuantityRequest } from "./model/change-line-quantity-request";
|
|
12
|
+
import { ChangeLineCommissionCodeRequest } from "./model/change-line-commission-code-request";
|
|
13
|
+
import { ChangeLineWarehouseRequest } from "./model/change-line-warehouse-request";
|
|
14
|
+
import { ChangeLinePriceRequest } from "./model/change-line-price-request";
|
|
15
|
+
import { ChangeLinePriceListRequest } from "./model/change-line-price-list-request";
|
|
16
|
+
import { ChangeLineVatRequest } from "./model/change-line-vat-request";
|
|
17
|
+
import { ChangeLineDiscountRequest } from "./model/change-line-discount-request";
|
|
18
|
+
import { ChangeLineDeliveryMethodRequest } from "./model/change-line-delivery-method-request";
|
|
19
|
+
import { ChangeLineDeliveryDateRequest } from "./model/change-line-delivery-date-request";
|
|
20
|
+
import { ChangeLineAssemblyTimeRequest } from "./model/change-line-assembly-time-request";
|
|
21
|
+
import { ChangeLineEditTimeRequest } from "./model/change-line-edit-time-request";
|
|
22
|
+
import { ChangeLineSupplierArticleNumberRequest } from "./model/change-line-supplier-article-number-request";
|
|
23
|
+
import { ChangeLineReferenceRequest } from "./model/change-line-reference-request";
|
|
24
|
+
import { ChangeLineCollectionCodeRequest } from "./model/change-line-collection-code-request";
|
|
10
25
|
export declare class TransactionAuth extends IoneApiTransaction {
|
|
11
26
|
private _boSerializer;
|
|
12
27
|
getArticleFullObject(id: number): Promise<DataServiceResponseData>;
|
|
13
28
|
getGoodIdFromArticleNr(sku: string): Promise<DataServiceResponseData>;
|
|
14
29
|
getSingleImage(nodeId: number | string, publication?: number, includeMimetype?: boolean, thumb?: boolean): Promise<DataServiceResponseData>;
|
|
15
30
|
getDocumentContent(id: number, thumbnail?: boolean): Promise<DataServiceResponseData>;
|
|
31
|
+
getCashRegisters(branch?: string, group?: number): Promise<DataServiceResponseData>;
|
|
16
32
|
getCountries(): Promise<DataServiceResponseData>;
|
|
17
33
|
getCustomerGroups(): Promise<DataServiceResponseData>;
|
|
18
34
|
commit(): Promise<DataServiceResponseData>;
|
|
@@ -21,26 +37,41 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
21
37
|
getCommissionCodes(languageCode: string): Promise<DataServiceResponseData>;
|
|
22
38
|
getInOutCollection(languageCode: string): Promise<DataServiceResponseData>;
|
|
23
39
|
getTextTypes(languageCode: string): Promise<DataServiceResponseData>;
|
|
24
|
-
private _getDomainCollection;
|
|
25
40
|
getStandardTexts(languageCode: any): Promise<DataServiceResponseData>;
|
|
26
41
|
getTransactionArticleWarehouses(goodId: number, branchNr?: string): Promise<DataServiceResponseData>;
|
|
27
42
|
getMarketingCodes(): Promise<DataServiceResponseData>;
|
|
28
43
|
createTransaction(kind: TransactionKind, branchNr: string): Promise<DataServiceResponseData>;
|
|
29
44
|
getTransactionByNrAndKind(kind: TransactionKind, transactionNo: number): Promise<DataServiceResponseData>;
|
|
30
45
|
getTransactionById(transactionId: number): Promise<DataServiceResponseData>;
|
|
46
|
+
getArticleBoundTextLinesOfArticleLine(articleLineUuid: string): Promise<DataServiceResponseData>;
|
|
31
47
|
addRelationToTransaction(uuid: string, relationId: number): Promise<DataServiceResponseData>;
|
|
32
48
|
saveTransaction(uuid: string): Promise<DataServiceResponseData>;
|
|
33
49
|
setTransactionDeliveryOptions(request: SetTransactionDeliveryOptionsRequest): Promise<DataServiceResponseData>;
|
|
34
50
|
addTransactionLine(uuid: string, lineType: TransactionLineType, articleNumber: string, amount: number, warehouseNr?: number, commissionCode?: string, isReturn?: boolean, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
35
51
|
addTextLineToTransaction(uuid: string, showOnDocuments: number, text: string, amount: number, articleBound: boolean, refArticleLineNr: number, aboveLineNr?: number, belowLineNr?: number): Promise<DataServiceResponseData>;
|
|
36
|
-
changeLineSequence(
|
|
52
|
+
changeLineSequence(request: ChangeLineSequenceRequest): Promise<DataServiceResponseData>;
|
|
37
53
|
cancelAddTransactionLine(lineUuid: string): Promise<DataServiceResponseData>;
|
|
38
54
|
deleteTransactionLine(transactionUuid: string, lineUuid: string): Promise<DataServiceResponseData>;
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
changeLineQuantity(request: ChangeLineQuantityRequest): Promise<DataServiceResponseData>;
|
|
56
|
+
changeLineCommissionCode(request: ChangeLineCommissionCodeRequest): Promise<DataServiceResponseData>;
|
|
57
|
+
changeLineWarehouse(request: ChangeLineWarehouseRequest): Promise<DataServiceResponseData>;
|
|
58
|
+
changeLinePrice(request: ChangeLinePriceRequest): Promise<DataServiceResponseData>;
|
|
59
|
+
changeLinePriceList(request: ChangeLinePriceListRequest): Promise<DataServiceResponseData>;
|
|
60
|
+
changeLineVat(request: ChangeLineVatRequest): Promise<DataServiceResponseData>;
|
|
61
|
+
changeLineDiscount(request: ChangeLineDiscountRequest): Promise<DataServiceResponseData>;
|
|
62
|
+
changeLineDeliveryMethod(request: ChangeLineDeliveryMethodRequest): Promise<DataServiceResponseData>;
|
|
63
|
+
changeLineDeliveryDate(request: ChangeLineDeliveryDateRequest): Promise<DataServiceResponseData>;
|
|
64
|
+
changeLineAssemblyTime(request: ChangeLineAssemblyTimeRequest): Promise<DataServiceResponseData>;
|
|
65
|
+
changeLineEditTime(request: ChangeLineEditTimeRequest): Promise<DataServiceResponseData>;
|
|
66
|
+
changeLineSupplierArticleNumber(request: ChangeLineSupplierArticleNumberRequest): Promise<DataServiceResponseData>;
|
|
67
|
+
changeLineReference(request: ChangeLineReferenceRequest): Promise<DataServiceResponseData>;
|
|
68
|
+
changeLineCollectionCode(request: ChangeLineCollectionCodeRequest): Promise<DataServiceResponseData>;
|
|
69
|
+
resolvePendingLineReason(pendingLineValues: ResolveLinePendingReasonRequest): Promise<DataServiceResponseData>;
|
|
41
70
|
getCustomerFullObject(relationNo: number): Promise<DataServiceResponseData>;
|
|
42
71
|
getRelationNumber(relationId: any): Promise<DataServiceResponseData>;
|
|
43
72
|
getSequenceValue(sequenceName: SequenceName, noSequence?: boolean): Promise<DataServiceResponseData>;
|
|
73
|
+
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
74
|
+
getVatList(onlyValid: boolean): Promise<DataServiceResponseData>;
|
|
44
75
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
45
76
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
46
77
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
@@ -48,6 +79,8 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
48
79
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
49
80
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
50
81
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
82
|
+
private _getDomainCollection;
|
|
83
|
+
private _getMultipleDomainCollection;
|
|
51
84
|
private callGetNodeData;
|
|
52
85
|
private callDeliveryDate2;
|
|
53
86
|
private _callGetSingleImage;
|
|
@@ -126,6 +126,16 @@ 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
140
|
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.Country);
|
|
131
141
|
};
|
|
@@ -148,14 +158,7 @@ var TransactionAuth = (function (_super) {
|
|
|
148
158
|
return this._getDomainCollection(languageCode, DomainName.InOutCollection);
|
|
149
159
|
};
|
|
150
160
|
TransactionAuth.prototype.getTextTypes = function (languageCode) {
|
|
151
|
-
return this.
|
|
152
|
-
};
|
|
153
|
-
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
154
|
-
var params = {
|
|
155
|
-
domainName: domainName,
|
|
156
|
-
language: languageCode
|
|
157
|
-
};
|
|
158
|
-
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoDomainValue, "", params);
|
|
161
|
+
return this._getMultipleDomainCollection(languageCode, DomainName.TextType);
|
|
159
162
|
};
|
|
160
163
|
TransactionAuth.prototype.getStandardTexts = function (languageCode) {
|
|
161
164
|
var params = {
|
|
@@ -217,6 +220,18 @@ var TransactionAuth = (function (_super) {
|
|
|
217
220
|
};
|
|
218
221
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
219
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);
|
|
234
|
+
};
|
|
220
235
|
TransactionAuth.prototype.addRelationToTransaction = function (uuid, relationId) {
|
|
221
236
|
var params = {
|
|
222
237
|
transactionUuid: uuid,
|
|
@@ -304,17 +319,11 @@ var TransactionAuth = (function (_super) {
|
|
|
304
319
|
};
|
|
305
320
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
306
321
|
};
|
|
307
|
-
TransactionAuth.prototype.changeLineSequence = function (
|
|
308
|
-
var params = {
|
|
309
|
-
lineUuid: lineUuid,
|
|
310
|
-
transactionUuid: uuid,
|
|
311
|
-
aboveLineNr: aboveLineNr,
|
|
312
|
-
belowLineNr: belowLineNr
|
|
313
|
-
};
|
|
322
|
+
TransactionAuth.prototype.changeLineSequence = function (request) {
|
|
314
323
|
var data = {
|
|
315
324
|
moduleName: ModuleName.Transaction,
|
|
316
325
|
methodName: TransactionMethod.ChangeLineSequence,
|
|
317
|
-
parameterValues:
|
|
326
|
+
parameterValues: request,
|
|
318
327
|
refCursorAsArray: true,
|
|
319
328
|
};
|
|
320
329
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
@@ -334,7 +343,7 @@ var TransactionAuth = (function (_super) {
|
|
|
334
343
|
TransactionAuth.prototype.deleteTransactionLine = function (transactionUuid, lineUuid) {
|
|
335
344
|
var params = {
|
|
336
345
|
transactionUuid: transactionUuid,
|
|
337
|
-
|
|
346
|
+
lineUuid: lineUuid,
|
|
338
347
|
};
|
|
339
348
|
var data = {
|
|
340
349
|
moduleName: ModuleName.Transaction,
|
|
@@ -344,16 +353,128 @@ var TransactionAuth = (function (_super) {
|
|
|
344
353
|
};
|
|
345
354
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
346
355
|
};
|
|
347
|
-
TransactionAuth.prototype.
|
|
348
|
-
var
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
356
|
+
TransactionAuth.prototype.changeLineQuantity = function (request) {
|
|
357
|
+
var data = {
|
|
358
|
+
moduleName: ModuleName.Transaction,
|
|
359
|
+
methodName: TransactionMethod.ChangeLineQuantity,
|
|
360
|
+
parameterValues: request,
|
|
361
|
+
refCursorAsArray: true,
|
|
352
362
|
};
|
|
363
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
364
|
+
};
|
|
365
|
+
TransactionAuth.prototype.changeLineCommissionCode = function (request) {
|
|
353
366
|
var data = {
|
|
354
367
|
moduleName: ModuleName.Transaction,
|
|
355
|
-
methodName: TransactionMethod.
|
|
356
|
-
parameterValues:
|
|
368
|
+
methodName: TransactionMethod.ChangeLineCommissionCode,
|
|
369
|
+
parameterValues: request,
|
|
370
|
+
refCursorAsArray: true,
|
|
371
|
+
};
|
|
372
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
373
|
+
};
|
|
374
|
+
TransactionAuth.prototype.changeLineWarehouse = function (request) {
|
|
375
|
+
var data = {
|
|
376
|
+
moduleName: ModuleName.Transaction,
|
|
377
|
+
methodName: TransactionMethod.ChangeLineWarehouse,
|
|
378
|
+
parameterValues: request,
|
|
379
|
+
refCursorAsArray: true,
|
|
380
|
+
};
|
|
381
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
382
|
+
};
|
|
383
|
+
TransactionAuth.prototype.changeLinePrice = function (request) {
|
|
384
|
+
var data = {
|
|
385
|
+
moduleName: ModuleName.Transaction,
|
|
386
|
+
methodName: TransactionMethod.ChangeLinePrice,
|
|
387
|
+
parameterValues: request,
|
|
388
|
+
refCursorAsArray: true,
|
|
389
|
+
};
|
|
390
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
391
|
+
};
|
|
392
|
+
TransactionAuth.prototype.changeLinePriceList = function (request) {
|
|
393
|
+
var data = {
|
|
394
|
+
moduleName: ModuleName.Transaction,
|
|
395
|
+
methodName: TransactionMethod.ChangeLinePriceList,
|
|
396
|
+
parameterValues: request,
|
|
397
|
+
refCursorAsArray: true,
|
|
398
|
+
};
|
|
399
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
400
|
+
};
|
|
401
|
+
TransactionAuth.prototype.changeLineVat = function (request) {
|
|
402
|
+
var data = {
|
|
403
|
+
moduleName: ModuleName.Transaction,
|
|
404
|
+
methodName: TransactionMethod.ChangeLineVat,
|
|
405
|
+
parameterValues: request,
|
|
406
|
+
refCursorAsArray: true,
|
|
407
|
+
};
|
|
408
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
409
|
+
};
|
|
410
|
+
TransactionAuth.prototype.changeLineDiscount = function (request) {
|
|
411
|
+
var data = {
|
|
412
|
+
moduleName: ModuleName.Transaction,
|
|
413
|
+
methodName: TransactionMethod.ChangeLineDiscount,
|
|
414
|
+
parameterValues: request,
|
|
415
|
+
refCursorAsArray: true,
|
|
416
|
+
};
|
|
417
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
418
|
+
};
|
|
419
|
+
TransactionAuth.prototype.changeLineDeliveryMethod = function (request) {
|
|
420
|
+
var data = {
|
|
421
|
+
moduleName: ModuleName.Transaction,
|
|
422
|
+
methodName: TransactionMethod.ChangeLineDeliveryMethod,
|
|
423
|
+
parameterValues: request,
|
|
424
|
+
refCursorAsArray: true,
|
|
425
|
+
};
|
|
426
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
427
|
+
};
|
|
428
|
+
TransactionAuth.prototype.changeLineDeliveryDate = function (request) {
|
|
429
|
+
var data = {
|
|
430
|
+
moduleName: ModuleName.Transaction,
|
|
431
|
+
methodName: TransactionMethod.ChangeLineDeliveryDate,
|
|
432
|
+
parameterValues: request,
|
|
433
|
+
refCursorAsArray: true,
|
|
434
|
+
};
|
|
435
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
436
|
+
};
|
|
437
|
+
TransactionAuth.prototype.changeLineAssemblyTime = function (request) {
|
|
438
|
+
var data = {
|
|
439
|
+
moduleName: ModuleName.Transaction,
|
|
440
|
+
methodName: TransactionMethod.ChangeLineAssemblyTime,
|
|
441
|
+
parameterValues: request,
|
|
442
|
+
refCursorAsArray: true,
|
|
443
|
+
};
|
|
444
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
445
|
+
};
|
|
446
|
+
TransactionAuth.prototype.changeLineEditTime = function (request) {
|
|
447
|
+
var data = {
|
|
448
|
+
moduleName: ModuleName.Transaction,
|
|
449
|
+
methodName: TransactionMethod.ChangeLineEditTime,
|
|
450
|
+
parameterValues: request,
|
|
451
|
+
refCursorAsArray: true,
|
|
452
|
+
};
|
|
453
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
454
|
+
};
|
|
455
|
+
TransactionAuth.prototype.changeLineSupplierArticleNumber = function (request) {
|
|
456
|
+
var data = {
|
|
457
|
+
moduleName: ModuleName.Transaction,
|
|
458
|
+
methodName: TransactionMethod.ChangeLineSupplierArticleNumber,
|
|
459
|
+
parameterValues: request,
|
|
460
|
+
refCursorAsArray: true,
|
|
461
|
+
};
|
|
462
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
463
|
+
};
|
|
464
|
+
TransactionAuth.prototype.changeLineReference = function (request) {
|
|
465
|
+
var data = {
|
|
466
|
+
moduleName: ModuleName.Transaction,
|
|
467
|
+
methodName: TransactionMethod.ChangeLineReference,
|
|
468
|
+
parameterValues: request,
|
|
469
|
+
refCursorAsArray: true,
|
|
470
|
+
};
|
|
471
|
+
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
472
|
+
};
|
|
473
|
+
TransactionAuth.prototype.changeLineCollectionCode = function (request) {
|
|
474
|
+
var data = {
|
|
475
|
+
moduleName: ModuleName.Transaction,
|
|
476
|
+
methodName: TransactionMethod.ChangeLineCollectionCode,
|
|
477
|
+
parameterValues: request,
|
|
357
478
|
refCursorAsArray: true,
|
|
358
479
|
};
|
|
359
480
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
@@ -361,7 +482,7 @@ var TransactionAuth = (function (_super) {
|
|
|
361
482
|
TransactionAuth.prototype.resolvePendingLineReason = function (pendingLineValues) {
|
|
362
483
|
var data = {
|
|
363
484
|
moduleName: ModuleName.Transaction,
|
|
364
|
-
methodName: TransactionMethod.
|
|
485
|
+
methodName: TransactionMethod.ResolveLinePendingReason,
|
|
365
486
|
parameterValues: pendingLineValues,
|
|
366
487
|
refCursorAsArray: true,
|
|
367
488
|
};
|
|
@@ -419,6 +540,25 @@ var TransactionAuth = (function (_super) {
|
|
|
419
540
|
});
|
|
420
541
|
});
|
|
421
542
|
};
|
|
543
|
+
TransactionAuth.prototype.getPriceLists = function (code) {
|
|
544
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
545
|
+
var params;
|
|
546
|
+
return __generator(this, function (_a) {
|
|
547
|
+
params = {};
|
|
548
|
+
if (code) {
|
|
549
|
+
params.code = code;
|
|
550
|
+
}
|
|
551
|
+
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.PriceList, undefined, params)];
|
|
552
|
+
});
|
|
553
|
+
});
|
|
554
|
+
};
|
|
555
|
+
TransactionAuth.prototype.getVatList = function (onlyValid) {
|
|
556
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
557
|
+
return __generator(this, function (_a) {
|
|
558
|
+
return [2, this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.Vat, onlyValid ? OperationName.AllValidVatRecords : OperationName.AllVatRecords)];
|
|
559
|
+
});
|
|
560
|
+
});
|
|
561
|
+
};
|
|
422
562
|
TransactionAuth.prototype.insertCustomer = function (customer) {
|
|
423
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
424
564
|
var _a, _b, _c, data;
|
|
@@ -486,6 +626,20 @@ var TransactionAuth = (function (_super) {
|
|
|
486
626
|
};
|
|
487
627
|
return this._call(DataServiceMethod.ExecuteMethod, data);
|
|
488
628
|
};
|
|
629
|
+
TransactionAuth.prototype._getDomainCollection = function (languageCode, domainName) {
|
|
630
|
+
var params = {
|
|
631
|
+
domainName: domainName,
|
|
632
|
+
language: languageCode
|
|
633
|
+
};
|
|
634
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoDomainValue, "", params);
|
|
635
|
+
};
|
|
636
|
+
TransactionAuth.prototype._getMultipleDomainCollection = function (languageCode, domainName) {
|
|
637
|
+
var params = {
|
|
638
|
+
domainName: domainName,
|
|
639
|
+
language: languageCode
|
|
640
|
+
};
|
|
641
|
+
return this.selectMultiple(ModuleName.General, MasterDataObjectName.CoMultipleValue, "", params);
|
|
642
|
+
};
|
|
489
643
|
TransactionAuth.prototype.callGetNodeData = function (params) {
|
|
490
644
|
var data = {
|
|
491
645
|
moduleName: ModuleName.Articles,
|