@colijnit/transactionapi 1.1.32 → 1.1.33
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/ione-api-transaction.d.ts +1 -1
- package/build/model/relation.bo.d.ts +11 -11
- package/build/model/relation.bo.js +15 -15
- package/build/model/transaction-line-info.bo.d.ts +3 -0
- package/build/model/transaction-line-info.bo.js +12 -0
- package/build/transaction-auth.d.ts +1 -1
- package/build/transaction-auth.js +6 -2
- package/build/transaction-public.d.ts +1 -1
- package/build/transaction-public.js +1 -1
- package/build/transaction.d.ts +1 -1
- package/build/transaction.js +2 -2
- package/build/transaction.unit.test.js +17 -5
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ export declare abstract class IoneApiTransaction {
|
|
|
108
108
|
abstract insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
109
109
|
abstract updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
110
110
|
abstract getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
111
|
-
abstract getDeliveryOptions(): Promise<DataServiceResponseData>;
|
|
111
|
+
abstract getDeliveryOptions(method?: string): Promise<DataServiceResponseData>;
|
|
112
112
|
abstract getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
113
113
|
abstract getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
114
114
|
abstract setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { BusinessObject } from
|
|
2
|
-
import { Address } from
|
|
3
|
-
import { RelationKind } from
|
|
4
|
-
import { RelationNameKind } from
|
|
5
|
-
import { GenderType } from
|
|
6
|
-
import { ContactOption } from
|
|
7
|
-
import { CommunicationType } from
|
|
8
|
-
import { AddressType } from
|
|
9
|
-
import { RelationEmployeeFte } from
|
|
10
|
-
import { VatType } from
|
|
11
|
-
import { RelationContactLink } from
|
|
1
|
+
import { BusinessObject } from './business-object';
|
|
2
|
+
import { Address } from './address.bo';
|
|
3
|
+
import { RelationKind } from '../enum/relation-kind.enum';
|
|
4
|
+
import { RelationNameKind } from '../enum/relation-name-kind.enum';
|
|
5
|
+
import { GenderType } from '../enum/gender-type.enum';
|
|
6
|
+
import { ContactOption } from './contact-option.bo';
|
|
7
|
+
import { CommunicationType } from '../enum/communication-type.enum';
|
|
8
|
+
import { AddressType } from '../enum/address-type.enum';
|
|
9
|
+
import { RelationEmployeeFte } from './relation-employee-fte.bo';
|
|
10
|
+
import { VatType } from '../enum/vat-type.enum';
|
|
11
|
+
import { RelationContactLink } from './relation-contact-link.bo';
|
|
12
12
|
export declare class Relation extends BusinessObject {
|
|
13
13
|
relationId: number;
|
|
14
14
|
relationType: RelationKind;
|
|
@@ -20,21 +20,21 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
20
20
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
21
21
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
22
22
|
};
|
|
23
|
-
import { BusinessObject } from
|
|
24
|
-
import { DateField } from
|
|
25
|
-
import { BooleanText } from
|
|
26
|
-
import { ComplexArray } from
|
|
27
|
-
import { Address } from
|
|
28
|
-
import { NoDbField } from
|
|
29
|
-
import { DbFieldAlias } from
|
|
30
|
-
import { ContactOption } from
|
|
31
|
-
import { CommunicationType } from
|
|
32
|
-
import { ArrayUtils } from
|
|
33
|
-
import { AddressType } from
|
|
34
|
-
import { BusinessObjectUtils } from
|
|
35
|
-
import { RelationEmployeeFte } from
|
|
36
|
-
import { VatType } from
|
|
37
|
-
import { RelationContactLink } from
|
|
23
|
+
import { BusinessObject } from './business-object';
|
|
24
|
+
import { DateField } from '../factory/decorators/date-field.decorator';
|
|
25
|
+
import { BooleanText } from '../factory/decorators/boolean.decorator';
|
|
26
|
+
import { ComplexArray } from '../factory/decorators/complex-array.decorator';
|
|
27
|
+
import { Address } from './address.bo';
|
|
28
|
+
import { NoDbField } from '../factory/decorators/no-db-field.decorator';
|
|
29
|
+
import { DbFieldAlias } from '../factory/decorators/db-field-alias.decorator';
|
|
30
|
+
import { ContactOption } from './contact-option.bo';
|
|
31
|
+
import { CommunicationType } from '../enum/communication-type.enum';
|
|
32
|
+
import { ArrayUtils } from '../utils/array-utils';
|
|
33
|
+
import { AddressType } from '../enum/address-type.enum';
|
|
34
|
+
import { BusinessObjectUtils } from '../utils/business-object-utils';
|
|
35
|
+
import { RelationEmployeeFte } from './relation-employee-fte.bo';
|
|
36
|
+
import { VatType } from '../enum/vat-type.enum';
|
|
37
|
+
import { RelationContactLink } from './relation-contact-link.bo';
|
|
38
38
|
var Relation = (function (_super) {
|
|
39
39
|
__extends(Relation, _super);
|
|
40
40
|
function Relation() {
|
|
@@ -39,8 +39,11 @@ export declare class TransactionLineInfo extends BusinessObject {
|
|
|
39
39
|
priceDeclaration: string;
|
|
40
40
|
netto: boolean;
|
|
41
41
|
warehouseNumber: number;
|
|
42
|
+
warehouseDescription: string;
|
|
42
43
|
commissionCode: string;
|
|
44
|
+
commissionDescription: string;
|
|
43
45
|
deliveryMethodCode: string;
|
|
46
|
+
deliveryMethodDescription: string;
|
|
44
47
|
deliveryDate: Date;
|
|
45
48
|
assemblyTime: number;
|
|
46
49
|
editTime: number;
|
|
@@ -86,6 +86,18 @@ var TransactionLineInfo = (function (_super) {
|
|
|
86
86
|
enumerable: true,
|
|
87
87
|
configurable: true
|
|
88
88
|
});
|
|
89
|
+
__decorate([
|
|
90
|
+
NoDbField(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], TransactionLineInfo.prototype, "warehouseDescription", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
NoDbField(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], TransactionLineInfo.prototype, "commissionDescription", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
NoDbField(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], TransactionLineInfo.prototype, "deliveryMethodDescription", void 0);
|
|
89
101
|
__decorate([
|
|
90
102
|
NoDbField(),
|
|
91
103
|
__metadata("design:type", Array),
|
|
@@ -140,7 +140,7 @@ export declare class TransactionAuth extends IoneApiTransaction {
|
|
|
140
140
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
141
141
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
142
142
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
143
|
-
getDeliveryOptions(): Promise<DataServiceResponseData>;
|
|
143
|
+
getDeliveryOptions(method?: string): Promise<DataServiceResponseData>;
|
|
144
144
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
145
145
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
146
146
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
@@ -857,8 +857,12 @@ var TransactionAuth = (function (_super) {
|
|
|
857
857
|
TransactionAuth.prototype.getDeliveryMethods = function () {
|
|
858
858
|
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryMethod, OperationName.GetAll);
|
|
859
859
|
};
|
|
860
|
-
TransactionAuth.prototype.getDeliveryOptions = function () {
|
|
861
|
-
|
|
860
|
+
TransactionAuth.prototype.getDeliveryOptions = function (method) {
|
|
861
|
+
var params = {};
|
|
862
|
+
if (method) {
|
|
863
|
+
params.deliveryMethod = method;
|
|
864
|
+
}
|
|
865
|
+
return this.selectMultiple(ModuleName.MasterData, MasterDataObjectName.DeliveryOption, undefined, params);
|
|
862
866
|
};
|
|
863
867
|
TransactionAuth.prototype.getPostalCodeRetrieval = function (postalCode, houseNumber) {
|
|
864
868
|
var params = {
|
|
@@ -141,7 +141,7 @@ export declare class TransactionPublic extends IoneApiTransaction {
|
|
|
141
141
|
getPriceLists(code?: string): Promise<DataServiceResponseData>;
|
|
142
142
|
getVatList(onlyValid: boolean): Promise<DataServiceResponseData>;
|
|
143
143
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
144
|
-
getDeliveryOptions(): Promise<DataServiceResponseData>;
|
|
144
|
+
getDeliveryOptions(method?: string): Promise<DataServiceResponseData>;
|
|
145
145
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
146
146
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
147
147
|
setRelationByUser(uuid: string, username: string, password: string): Promise<DataServiceResponseData>;
|
|
@@ -736,7 +736,7 @@ var TransactionPublic = (function (_super) {
|
|
|
736
736
|
});
|
|
737
737
|
});
|
|
738
738
|
};
|
|
739
|
-
TransactionPublic.prototype.getDeliveryOptions = function () {
|
|
739
|
+
TransactionPublic.prototype.getDeliveryOptions = function (method) {
|
|
740
740
|
return __awaiter(this, void 0, void 0, function () {
|
|
741
741
|
var data;
|
|
742
742
|
return __generator(this, function (_a) {
|
package/build/transaction.d.ts
CHANGED
|
@@ -159,7 +159,7 @@ export declare class Transaction {
|
|
|
159
159
|
insertCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
160
160
|
updateCustomer(customer: CustomerFullObject): Promise<DataServiceResponseData>;
|
|
161
161
|
getDeliveryMethods(): Promise<DataServiceResponseData>;
|
|
162
|
-
getDeliveryOptions(): Promise<DataServiceResponseData>;
|
|
162
|
+
getDeliveryOptions(method?: string): Promise<DataServiceResponseData>;
|
|
163
163
|
getPostalCodeRetrieval(postalCode: string, houseNumber: string): Promise<DataServiceResponseData>;
|
|
164
164
|
getRelationListObjects(relationRequest: RelationRequest): Promise<DataServiceResponseData>;
|
|
165
165
|
getGoodsReceiptStatusWithHistory(transId: number, lineNr: number): Promise<DataServiceResponseData>;
|
package/build/transaction.js
CHANGED
|
@@ -325,8 +325,8 @@ var Transaction = (function () {
|
|
|
325
325
|
Transaction.prototype.getDeliveryMethods = function () {
|
|
326
326
|
return this.transaction.getDeliveryMethods();
|
|
327
327
|
};
|
|
328
|
-
Transaction.prototype.getDeliveryOptions = function () {
|
|
329
|
-
return this.transaction.getDeliveryOptions();
|
|
328
|
+
Transaction.prototype.getDeliveryOptions = function (method) {
|
|
329
|
+
return this.transaction.getDeliveryOptions(method);
|
|
330
330
|
};
|
|
331
331
|
Transaction.prototype.getPostalCodeRetrieval = function (postalCode, houseNumber) {
|
|
332
332
|
return this.transaction.getPostalCodeRetrieval(postalCode, houseNumber);
|
|
@@ -39,11 +39,11 @@ import { RelationRequest } from './model/relation-request';
|
|
|
39
39
|
import { TransactionKind } from './enum/transaction-kind.enum';
|
|
40
40
|
import { SequenceName } from './enum/sequence-name.enum';
|
|
41
41
|
import { TransactionSearchViewRequest } from './model/transaction-search-view-request';
|
|
42
|
-
import { PurchaseAdviceFilters } from
|
|
43
|
-
import { PurchasePortalFilters } from
|
|
44
|
-
import { GetPurchasePortalLine } from
|
|
45
|
-
import { PurchasePortalLine } from
|
|
46
|
-
import { DocDeliveryBatch } from
|
|
42
|
+
import { PurchaseAdviceFilters } from './model/purchase-advice-filters';
|
|
43
|
+
import { PurchasePortalFilters } from './model/purchase-portal-filters.bo';
|
|
44
|
+
import { GetPurchasePortalLine } from './model/get-purchase-portal-line';
|
|
45
|
+
import { PurchasePortalLine } from './model/purchase-portal-line.bo';
|
|
46
|
+
import { DocDeliveryBatch } from './model/doc-delivery-batch.bo';
|
|
47
47
|
var options = {
|
|
48
48
|
url: 'http',
|
|
49
49
|
ajaxUrl: 'http'
|
|
@@ -435,6 +435,18 @@ describe("TransactionAPI", function () {
|
|
|
435
435
|
}
|
|
436
436
|
});
|
|
437
437
|
}); });
|
|
438
|
+
it('getDeliveryOptions', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
|
+
var result;
|
|
440
|
+
return __generator(this, function (_a) {
|
|
441
|
+
switch (_a.label) {
|
|
442
|
+
case 0: return [4, transaction.getDeliveryOptions("AFH")];
|
|
443
|
+
case 1:
|
|
444
|
+
result = _a.sent();
|
|
445
|
+
expect(result.validationResult.success).toBeTruthy();
|
|
446
|
+
return [2];
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}); });
|
|
438
450
|
it('searchTransactions', function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
439
451
|
var request, result;
|
|
440
452
|
return __generator(this, function (_a) {
|